import { jsx } from "react/jsx-runtime";
import deprecated from "@wordpress/deprecated";
import { forwardRef } from "@wordpress/element";
import {
  Autocomplete as RootAutocomplete,
  AlignmentToolbar as RootAlignmentToolbar,
  BlockAlignmentToolbar as RootBlockAlignmentToolbar,
  BlockControls as RootBlockControls,
  BlockEdit as RootBlockEdit,
  BlockEditorKeyboardShortcuts as RootBlockEditorKeyboardShortcuts,
  BlockFormatControls as RootBlockFormatControls,
  BlockIcon as RootBlockIcon,
  BlockInspector as RootBlockInspector,
  BlockList as RootBlockList,
  BlockMover as RootBlockMover,
  BlockNavigationDropdown as RootBlockNavigationDropdown,
  BlockSelectionClearer as RootBlockSelectionClearer,
  BlockSettingsMenu as RootBlockSettingsMenu,
  BlockTitle as RootBlockTitle,
  BlockToolbar as RootBlockToolbar,
  ColorPalette as RootColorPalette,
  ContrastChecker as RootContrastChecker,
  CopyHandler as RootCopyHandler,
  createCustomColorsHOC as rootCreateCustomColorsHOC,
  DefaultBlockAppender as RootDefaultBlockAppender,
  FontSizePicker as RootFontSizePicker,
  getColorClassName as rootGetColorClassName,
  getColorObjectByAttributeValues as rootGetColorObjectByAttributeValues,
  getColorObjectByColorValue as rootGetColorObjectByColorValue,
  getFontSize as rootGetFontSize,
  getFontSizeClass as rootGetFontSizeClass,
  Inserter as RootInserter,
  InnerBlocks as RootInnerBlocks,
  InspectorAdvancedControls as RootInspectorAdvancedControls,
  InspectorControls as RootInspectorControls,
  PanelColorSettings as RootPanelColorSettings,
  PlainText as RootPlainText,
  RichText as RootRichText,
  RichTextShortcut as RootRichTextShortcut,
  RichTextToolbarButton as RootRichTextToolbarButton,
  __unstableRichTextInputEvent as __unstableRootRichTextInputEvent,
  MediaPlaceholder as RootMediaPlaceholder,
  MediaUpload as RootMediaUpload,
  MediaUploadCheck as RootMediaUploadCheck,
  MultiSelectScrollIntoView as RootMultiSelectScrollIntoView,
  NavigableToolbar as RootNavigableToolbar,
  ObserveTyping as RootObserveTyping,
  SkipToSelectedBlock as RootSkipToSelectedBlock,
  URLInput as RootURLInput,
  URLInputButton as RootURLInputButton,
  URLPopover as RootURLPopover,
  Warning as RootWarning,
  WritingFlow as RootWritingFlow,
  withColorContext as rootWithColorContext,
  withColors as rootWithColors,
  withFontSizes as rootWithFontSizes
} from "@wordpress/block-editor";
import { default as default2 } from "@wordpress/server-side-render";
function deprecateComponent(name, Wrapped, staticsToHoist = []) {
  const Component = forwardRef((props, ref) => {
    deprecated("wp.editor." + name, {
      since: "5.3",
      alternative: "wp.blockEditor." + name,
      version: "6.2"
    });
    return /* @__PURE__ */ jsx(Wrapped, { ref, ...props });
  });
  staticsToHoist.forEach((staticName) => {
    Component[staticName] = deprecateComponent(
      name + "." + staticName,
      Wrapped[staticName]
    );
  });
  return Component;
}
function deprecateFunction(name, func) {
  return (...args) => {
    deprecated("wp.editor." + name, {
      since: "5.3",
      alternative: "wp.blockEditor." + name,
      version: "6.2"
    });
    return func(...args);
  };
}
const RichText = deprecateComponent("RichText", RootRichText, ["Content"]);
RichText.isEmpty = deprecateFunction(
  "RichText.isEmpty",
  RootRichText.isEmpty
);
const Autocomplete = deprecateComponent(
  "Autocomplete",
  RootAutocomplete
);
const AlignmentToolbar = deprecateComponent(
  "AlignmentToolbar",
  RootAlignmentToolbar
);
const BlockAlignmentToolbar = deprecateComponent(
  "BlockAlignmentToolbar",
  RootBlockAlignmentToolbar
);
const BlockControls = deprecateComponent(
  "BlockControls",
  RootBlockControls,
  ["Slot"]
);
const BlockEdit = deprecateComponent("BlockEdit", RootBlockEdit);
const BlockEditorKeyboardShortcuts = deprecateComponent(
  "BlockEditorKeyboardShortcuts",
  RootBlockEditorKeyboardShortcuts
);
const BlockFormatControls = deprecateComponent(
  "BlockFormatControls",
  RootBlockFormatControls,
  ["Slot"]
);
const BlockIcon = deprecateComponent("BlockIcon", RootBlockIcon);
const BlockInspector = deprecateComponent(
  "BlockInspector",
  RootBlockInspector
);
const BlockList = deprecateComponent("BlockList", RootBlockList);
const BlockMover = deprecateComponent("BlockMover", RootBlockMover);
const BlockNavigationDropdown = deprecateComponent(
  "BlockNavigationDropdown",
  RootBlockNavigationDropdown
);
const BlockSelectionClearer = deprecateComponent(
  "BlockSelectionClearer",
  RootBlockSelectionClearer
);
const BlockSettingsMenu = deprecateComponent(
  "BlockSettingsMenu",
  RootBlockSettingsMenu
);
const BlockTitle = deprecateComponent("BlockTitle", RootBlockTitle);
const BlockToolbar = deprecateComponent(
  "BlockToolbar",
  RootBlockToolbar
);
const ColorPalette = deprecateComponent(
  "ColorPalette",
  RootColorPalette
);
const ContrastChecker = deprecateComponent(
  "ContrastChecker",
  RootContrastChecker
);
const CopyHandler = deprecateComponent("CopyHandler", RootCopyHandler);
const DefaultBlockAppender = deprecateComponent(
  "DefaultBlockAppender",
  RootDefaultBlockAppender
);
const FontSizePicker = deprecateComponent(
  "FontSizePicker",
  RootFontSizePicker
);
const Inserter = deprecateComponent("Inserter", RootInserter);
const InnerBlocks = deprecateComponent("InnerBlocks", RootInnerBlocks, [
  "ButtonBlockAppender",
  "DefaultBlockAppender",
  "Content"
]);
const InspectorAdvancedControls = deprecateComponent(
  "InspectorAdvancedControls",
  RootInspectorAdvancedControls,
  ["Slot"]
);
const InspectorControls = deprecateComponent(
  "InspectorControls",
  RootInspectorControls,
  ["Slot"]
);
const PanelColorSettings = deprecateComponent(
  "PanelColorSettings",
  RootPanelColorSettings
);
const PlainText = deprecateComponent("PlainText", RootPlainText);
const RichTextShortcut = deprecateComponent(
  "RichTextShortcut",
  RootRichTextShortcut
);
const RichTextToolbarButton = deprecateComponent(
  "RichTextToolbarButton",
  RootRichTextToolbarButton
);
const __unstableRichTextInputEvent = deprecateComponent(
  "__unstableRichTextInputEvent",
  __unstableRootRichTextInputEvent
);
const MediaPlaceholder = deprecateComponent(
  "MediaPlaceholder",
  RootMediaPlaceholder
);
const MediaUpload = deprecateComponent("MediaUpload", RootMediaUpload);
const MediaUploadCheck = deprecateComponent(
  "MediaUploadCheck",
  RootMediaUploadCheck
);
const MultiSelectScrollIntoView = deprecateComponent(
  "MultiSelectScrollIntoView",
  RootMultiSelectScrollIntoView
);
const NavigableToolbar = deprecateComponent(
  "NavigableToolbar",
  RootNavigableToolbar
);
const ObserveTyping = deprecateComponent(
  "ObserveTyping",
  RootObserveTyping
);
const SkipToSelectedBlock = deprecateComponent(
  "SkipToSelectedBlock",
  RootSkipToSelectedBlock
);
const URLInput = deprecateComponent("URLInput", RootURLInput);
const URLInputButton = deprecateComponent(
  "URLInputButton",
  RootURLInputButton
);
const URLPopover = deprecateComponent("URLPopover", RootURLPopover);
const Warning = deprecateComponent("Warning", RootWarning);
const WritingFlow = deprecateComponent("WritingFlow", RootWritingFlow);
const createCustomColorsHOC = deprecateFunction(
  "createCustomColorsHOC",
  rootCreateCustomColorsHOC
);
const getColorClassName = deprecateFunction(
  "getColorClassName",
  rootGetColorClassName
);
const getColorObjectByAttributeValues = deprecateFunction(
  "getColorObjectByAttributeValues",
  rootGetColorObjectByAttributeValues
);
const getColorObjectByColorValue = deprecateFunction(
  "getColorObjectByColorValue",
  rootGetColorObjectByColorValue
);
const getFontSize = deprecateFunction("getFontSize", rootGetFontSize);
const getFontSizeClass = deprecateFunction(
  "getFontSizeClass",
  rootGetFontSizeClass
);
const withColorContext = deprecateFunction(
  "withColorContext",
  rootWithColorContext
);
const withColors = deprecateFunction("withColors", rootWithColors);
const withFontSizes = deprecateFunction(
  "withFontSizes",
  rootWithFontSizes
);
export {
  AlignmentToolbar,
  Autocomplete,
  BlockAlignmentToolbar,
  BlockControls,
  BlockEdit,
  BlockEditorKeyboardShortcuts,
  BlockFormatControls,
  BlockIcon,
  BlockInspector,
  BlockList,
  BlockMover,
  BlockNavigationDropdown,
  BlockSelectionClearer,
  BlockSettingsMenu,
  BlockTitle,
  BlockToolbar,
  ColorPalette,
  ContrastChecker,
  CopyHandler,
  DefaultBlockAppender,
  FontSizePicker,
  InnerBlocks,
  Inserter,
  InspectorAdvancedControls,
  InspectorControls,
  MediaPlaceholder,
  MediaUpload,
  MediaUploadCheck,
  MultiSelectScrollIntoView,
  NavigableToolbar,
  ObserveTyping,
  PanelColorSettings,
  PlainText,
  RichText,
  RichTextShortcut,
  RichTextToolbarButton,
  default2 as ServerSideRender,
  SkipToSelectedBlock,
  URLInput,
  URLInputButton,
  URLPopover,
  Warning,
  WritingFlow,
  __unstableRichTextInputEvent,
  createCustomColorsHOC,
  getColorClassName,
  getColorObjectByAttributeValues,
  getColorObjectByColorValue,
  getFontSize,
  getFontSizeClass,
  withColorContext,
  withColors,
  withFontSizes
};
//# sourceMappingURL=deprecated.js.map
