@reacteditor/core 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +7 -7
  2. package/dist/{Editor-3COFH5WN.mjs → Editor-GK6JTUPD.mjs} +7 -7
  3. package/dist/{actions-B8_EA7vy.d.mts → actions-C0LX6bI4.d.mts} +1 -0
  4. package/dist/{actions-B8_EA7vy.d.ts → actions-C0LX6bI4.d.ts} +1 -0
  5. package/dist/{chunk-LRFRIIKG.mjs → chunk-56I7ST5F.mjs} +1 -1
  6. package/dist/{chunk-IIRJMJFU.mjs → chunk-ERNSJXVF.mjs} +1 -0
  7. package/dist/{chunk-PUDWMFBH.mjs → chunk-II42EKFK.mjs} +1 -1
  8. package/dist/{chunk-AD7BMXAA.mjs → chunk-MJJPWASL.mjs} +1 -1
  9. package/dist/{chunk-3IP22OOD.mjs → chunk-OKTANBAI.mjs} +1140 -1118
  10. package/dist/{chunk-BUR5T7IX.mjs → chunk-TGVAC3JP.mjs} +7 -7
  11. package/dist/{chunk-FT6UFK7G.mjs → chunk-X4EUZIHA.mjs} +1 -1
  12. package/dist/{chunk-OIFPBVSF.mjs → chunk-XLVEWZWT.mjs} +1 -1
  13. package/dist/{chunk-BZ4BQZJR.mjs → chunk-YBG2RYVF.mjs} +3 -3
  14. package/dist/{full-QT5KXRDP.mjs → full-IUPXFMQP.mjs} +6 -6
  15. package/dist/{index-JoD48fK_.d.mts → index-DMbFEg8G.d.mts} +1 -1
  16. package/dist/{index-BrHy0cc_.d.ts → index-DmThy7vE.d.ts} +1 -1
  17. package/dist/index.css +69 -65
  18. package/dist/index.d.mts +52 -7
  19. package/dist/index.d.ts +52 -7
  20. package/dist/index.js +157 -134
  21. package/dist/index.mjs +9 -9
  22. package/dist/internal.d.mts +2 -2
  23. package/dist/internal.d.ts +2 -2
  24. package/dist/{loaded-GLBLMTBL.mjs → loaded-BT7NIVEO.mjs} +3 -3
  25. package/dist/{loaded-O4QHGE26.mjs → loaded-HVOKDVC3.mjs} +3 -3
  26. package/dist/{loaded-R34BR6I5.mjs → loaded-YFYCF5F4.mjs} +3 -3
  27. package/dist/no-external.css +69 -65
  28. package/dist/no-external.d.mts +4 -4
  29. package/dist/no-external.d.ts +4 -4
  30. package/dist/no-external.js +157 -134
  31. package/dist/no-external.mjs +9 -9
  32. package/dist/rsc.d.mts +2 -2
  33. package/dist/rsc.d.ts +2 -2
  34. package/dist/rsc.js +1 -0
  35. package/dist/rsc.mjs +2 -2
  36. package/dist/{walk-tree-BR2XIZ0W.d.mts → walk-tree-5oDs6qOL.d.mts} +1 -1
  37. package/dist/{walk-tree-DpUJ9kDx.d.ts → walk-tree-B1q6t5Jp.d.ts} +1 -1
  38. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -3165,6 +3165,7 @@ var init_default_app_state = __esm({
3165
3165
  ui: {
3166
3166
  leftSideBarVisible: true,
3167
3167
  rightSideBarVisible: true,
3168
+ navBarVisible: true,
3168
3169
  arrayState: {},
3169
3170
  itemSelector: null,
3170
3171
  componentList: {},
@@ -8159,7 +8160,7 @@ init_react_import();
8159
8160
 
8160
8161
  // css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/Drawer/styles.module.css#css-module
8161
8162
  init_react_import();
8162
- var styles_module_default18 = { "Drawer": "_Drawer_146py_1", "Drawer--tile": "_Drawer--tile_146py_8", "Drawer-draggable": "_Drawer-draggable_146py_19", "Drawer-draggableBg": "_Drawer-draggableBg_146py_23", "DrawerItem-draggable": "_DrawerItem-draggable_146py_33", "DrawerItem-icon": "_DrawerItem-icon_146py_50", "DrawerItem--disabled": "_DrawerItem--disabled_146py_56", "DrawerItem": "_DrawerItem_146py_33", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_146py_66", "DrawerItem-name": "_DrawerItem-name_146py_91" };
8163
+ var styles_module_default18 = { "Drawer": "_Drawer_1h4db_1", "Drawer--tile": "_Drawer--tile_1h4db_8", "Drawer-draggable": "_Drawer-draggable_1h4db_19", "Drawer-draggableBg": "_Drawer-draggableBg_1h4db_23", "DrawerItem-draggable": "_DrawerItem-draggable_1h4db_33", "DrawerItem-icon": "_DrawerItem-icon_1h4db_50", "DrawerItem--disabled": "_DrawerItem--disabled_1h4db_56", "DrawerItem": "_DrawerItem_1h4db_33", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_1h4db_66", "DrawerItem-name": "_DrawerItem-name_1h4db_91" };
8163
8164
 
8164
8165
  // components/Drawer/index.tsx
8165
8166
  init_get_class_name_factory();
@@ -10342,15 +10343,6 @@ var DropZoneEdit = (0, import_react69.forwardRef)(
10342
10343
  }
10343
10344
  }
10344
10345
  }, [zoneType, appStoreApi]);
10345
- (0, import_react69.useEffect)(() => {
10346
- if (zoneType === "dropzone") {
10347
- if (zoneCompound !== rootDroppableId) {
10348
- console.warn(
10349
- "DropZones have been deprecated in favor of slot fields and will be removed in a future version of Editor. Please see the migration guide: https://www.frontend.co/docs/guides/migrations/dropzones-to-slots"
10350
- );
10351
- }
10352
- }
10353
- }, [zoneType]);
10354
10346
  const contentIds = (0, import_react69.useMemo)(() => {
10355
10347
  return zoneContentIds || [];
10356
10348
  }, [zoneContentIds]);
@@ -12980,7 +12972,7 @@ init_lib();
12980
12972
 
12981
12973
  // css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/Editor/components/Layout/styles.module.css#css-module
12982
12974
  init_react_import();
12983
- var styles_module_default25 = { "Editor": "_Editor_1ty8s_19", "Editor-portal": "_Editor-portal_1ty8s_32", "EditorLayout": "_EditorLayout_1ty8s_37", "EditorLayout-inner": "_EditorLayout-inner_1ty8s_41", "Editor--hidePlugins": "_Editor--hidePlugins_1ty8s_73", "EditorLayout--mounted": "_EditorLayout--mounted_1ty8s_78", "EditorLayout--mobilePanelHeightToggle": "_EditorLayout--mobilePanelHeightToggle_1ty8s_82", "EditorLayout--leftSideBarVisible": "_EditorLayout--leftSideBarVisible_1ty8s_82", "EditorLayout--mobilePanelCustomHeight": "_EditorLayout--mobilePanelCustomHeight_1ty8s_87", "EditorLayout--mobilePanelHeightMinContent": "_EditorLayout--mobilePanelHeightMinContent_1ty8s_105", "EditorLayout--rightSideBarVisible": "_EditorLayout--rightSideBarVisible_1ty8s_127", "EditorLayout-mounted": "_EditorLayout-mounted_1ty8s_146", "EditorLayout-nav": "_EditorLayout-nav_1ty8s_187", "Editor-fieldSideBarToolbar": "_Editor-fieldSideBarToolbar_1ty8s_203", "Editor-fieldSideBarHistory": "_Editor-fieldSideBarHistory_1ty8s_213", "Editor-fieldSideBarActions": "_Editor-fieldSideBarActions_1ty8s_219", "EditorLayout-mobilePanel": "_EditorLayout-mobilePanel_1ty8s_225", "EditorLayout-mobilePanelContent": "_EditorLayout-mobilePanelContent_1ty8s_245", "EditorLayout-mobileDragHandle": "_EditorLayout-mobileDragHandle_1ty8s_252", "EditorLayout-mobileDragHandlePill": "_EditorLayout-mobileDragHandlePill_1ty8s_266", "EditorPluginTab": "_EditorPluginTab_1ty8s_273", "EditorPluginTab--visible": "_EditorPluginTab--visible_1ty8s_279", "EditorPluginTab-body": "_EditorPluginTab-body_1ty8s_284" };
12975
+ var styles_module_default25 = { "Editor": "_Editor_frglt_19", "Editor-portal": "_Editor-portal_frglt_32", "EditorLayout": "_EditorLayout_frglt_37", "EditorLayout-inner": "_EditorLayout-inner_frglt_41", "Editor--hidePlugins": "_Editor--hidePlugins_frglt_73", "EditorLayout--navBarVisible": "_EditorLayout--navBarVisible_frglt_74", "EditorLayout--mounted": "_EditorLayout--mounted_frglt_83", "EditorLayout--mobilePanelHeightToggle": "_EditorLayout--mobilePanelHeightToggle_frglt_87", "EditorLayout--leftSideBarVisible": "_EditorLayout--leftSideBarVisible_frglt_87", "EditorLayout--mobilePanelCustomHeight": "_EditorLayout--mobilePanelCustomHeight_frglt_92", "EditorLayout--mobilePanelHeightMinContent": "_EditorLayout--mobilePanelHeightMinContent_frglt_110", "EditorLayout--rightSideBarVisible": "_EditorLayout--rightSideBarVisible_frglt_132", "EditorLayout-mounted": "_EditorLayout-mounted_frglt_151", "EditorLayout-nav": "_EditorLayout-nav_frglt_192", "Editor-fieldSideBarToolbar": "_Editor-fieldSideBarToolbar_frglt_208", "Editor-fieldSideBarHistory": "_Editor-fieldSideBarHistory_frglt_218", "Editor-fieldSideBarActions": "_Editor-fieldSideBarActions_frglt_224", "EditorLayout-mobilePanel": "_EditorLayout-mobilePanel_frglt_230", "EditorLayout-mobilePanelContent": "_EditorLayout-mobilePanelContent_frglt_250", "EditorLayout-mobileDragHandle": "_EditorLayout-mobileDragHandle_frglt_257", "EditorLayout-mobileDragHandlePill": "_EditorLayout-mobileDragHandlePill_frglt_271", "EditorPluginTab": "_EditorPluginTab_frglt_278", "EditorPluginTab--visible": "_EditorPluginTab--visible_frglt_284", "EditorPluginTab-body": "_EditorPluginTab-body_frglt_289" };
12984
12976
 
12985
12977
  // lib/use-inject-css.ts
12986
12978
  init_react_import();
@@ -14124,25 +14116,6 @@ var blocksPlugin = () => ({
14124
14116
  icon: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Plus, {})
14125
14117
  });
14126
14118
 
14127
- // plugins/outline/index.tsx
14128
- init_react_import();
14129
- init_lucide_react();
14130
-
14131
- // css-module:/Users/rami/Documents/apps/react-editor/packages/core/plugins/outline/styles.module.css#css-module
14132
- init_react_import();
14133
- var styles_module_default35 = { "OutlinePlugin": "_OutlinePlugin_q92j6_1" };
14134
-
14135
- // plugins/outline/index.tsx
14136
- init_lib();
14137
- var import_jsx_runtime91 = require("react/jsx-runtime");
14138
- var getClassName42 = get_class_name_factory_default("OutlinePlugin", styles_module_default35);
14139
- var outlinePlugin = () => ({
14140
- name: "outline",
14141
- label: "Outline",
14142
- render: () => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: getClassName42(), children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Outline, {}) }),
14143
- icon: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Layers, {})
14144
- });
14145
-
14146
14119
  // plugins/fields/index.tsx
14147
14120
  init_react_import();
14148
14121
  init_lucide_react();
@@ -14150,12 +14123,12 @@ init_store();
14150
14123
 
14151
14124
  // css-module:/Users/rami/Documents/apps/react-editor/packages/core/plugins/fields/styles.module.css#css-module
14152
14125
  init_react_import();
14153
- var styles_module_default36 = { "FieldsPlugin": "_FieldsPlugin_262zt_1", "FieldsPlugin-header": "_FieldsPlugin-header_262zt_7" };
14126
+ var styles_module_default35 = { "FieldsPlugin": "_FieldsPlugin_262zt_1", "FieldsPlugin-header": "_FieldsPlugin-header_262zt_7" };
14154
14127
 
14155
14128
  // plugins/fields/index.tsx
14156
14129
  init_lib();
14157
- var import_jsx_runtime92 = require("react/jsx-runtime");
14158
- var getClassName43 = get_class_name_factory_default("FieldsPlugin", styles_module_default36);
14130
+ var import_jsx_runtime91 = require("react/jsx-runtime");
14131
+ var getClassName42 = get_class_name_factory_default("FieldsPlugin", styles_module_default35);
14159
14132
  var CurrentTitle = () => {
14160
14133
  const label = useAppStore((s) => {
14161
14134
  var _a, _b;
@@ -14167,17 +14140,17 @@ var CurrentTitle = () => {
14167
14140
  var fieldsPlugin = ({ desktopSideBar = "right" } = {}) => ({
14168
14141
  name: "fields",
14169
14142
  label: "Fields",
14170
- render: () => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: getClassName43(), children: [
14171
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: getClassName43("header"), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Breadcrumbs, { numParents: 2, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CurrentTitle, {}) }) }),
14172
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Fields, {})
14143
+ render: () => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: getClassName42(), children: [
14144
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: getClassName42("header"), children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Breadcrumbs, { numParents: 2, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(CurrentTitle, {}) }) }),
14145
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Fields, {})
14173
14146
  ] }),
14174
- icon: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(RectangleEllipsis, {}),
14147
+ icon: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(RectangleEllipsis, {}),
14175
14148
  mobileOnly: desktopSideBar === "right"
14176
14149
  });
14177
14150
 
14178
14151
  // components/Editor/components/Layout/index.tsx
14179
- var import_jsx_runtime93 = require("react/jsx-runtime");
14180
- var getClassName44 = get_class_name_factory_default("Editor", styles_module_default25);
14152
+ var import_jsx_runtime92 = require("react/jsx-runtime");
14153
+ var getClassName43 = get_class_name_factory_default("Editor", styles_module_default25);
14181
14154
  var getLayoutClassName = get_class_name_factory_default("EditorLayout", styles_module_default25);
14182
14155
  var getPluginTabClassName = get_class_name_factory_default("EditorPluginTab", styles_module_default25);
14183
14156
  var FieldSideBarToolbar = () => {
@@ -14190,30 +14163,30 @@ var FieldSideBarToolbar = () => {
14190
14163
  const CustomHeaderActions = useAppStore(
14191
14164
  (s) => s.overrides.headerActions || DefaultOverride
14192
14165
  );
14193
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: getClassName44("fieldSideBarToolbar"), children: [
14194
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: getClassName44("fieldSideBarHistory"), children: [
14195
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14166
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: getClassName43("fieldSideBarToolbar"), children: [
14167
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: getClassName43("fieldSideBarHistory"), children: [
14168
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14196
14169
  IconButton,
14197
14170
  {
14198
14171
  type: "button",
14199
14172
  title: "undo",
14200
14173
  disabled: !hasPast,
14201
14174
  onClick: back,
14202
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Undo2, { size: 18 })
14175
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Undo2, { size: 18 })
14203
14176
  }
14204
14177
  ),
14205
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14178
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14206
14179
  IconButton,
14207
14180
  {
14208
14181
  type: "button",
14209
14182
  title: "redo",
14210
14183
  disabled: !hasFuture,
14211
14184
  onClick: forward,
14212
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Redo2, { size: 18 })
14185
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Redo2, { size: 18 })
14213
14186
  }
14214
14187
  )
14215
14188
  ] }),
14216
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: getClassName44("fieldSideBarActions"), children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(CustomHeaderActions, { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14189
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: getClassName43("fieldSideBarActions"), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CustomHeaderActions, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14217
14190
  Button,
14218
14191
  {
14219
14192
  onClick: () => {
@@ -14232,9 +14205,9 @@ var FieldSideBar = () => {
14232
14205
  return s.selectedItem ? (_b = (_a = s.config.components[s.selectedItem.type]) == null ? void 0 : _a["label"]) != null ? _b : s.selectedItem.type.toString() : ((_c = s.config.root) == null ? void 0 : _c.label) || "Page";
14233
14206
  }
14234
14207
  );
14235
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
14236
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(FieldSideBarToolbar, {}),
14237
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(SidebarSection, { noBorderTop: true, showBreadcrumbs: true, title, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Fields, {}) })
14208
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
14209
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(FieldSideBarToolbar, {}),
14210
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(SidebarSection, { noBorderTop: true, showBreadcrumbs: true, title, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Fields, {}) })
14238
14211
  ] });
14239
14212
  };
14240
14213
  var PluginTab = ({
@@ -14242,7 +14215,7 @@ var PluginTab = ({
14242
14215
  visible,
14243
14216
  mobileOnly
14244
14217
  }) => {
14245
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: getPluginTabClassName({ visible, mobileOnly }), children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: getPluginTabClassName("body"), children }) });
14218
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: getPluginTabClassName({ visible, mobileOnly }), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: getPluginTabClassName("body"), children }) });
14246
14219
  };
14247
14220
  var Layout = ({ children }) => {
14248
14221
  const {
@@ -14265,6 +14238,7 @@ var Layout = ({ children }) => {
14265
14238
  const rightSideBarVisible = useAppStore(
14266
14239
  (s) => s.state.ui.rightSideBarVisible
14267
14240
  );
14241
+ const navBarVisible = useAppStore((s) => s.state.ui.navBarVisible);
14268
14242
  const instanceId = useAppStore((s) => s.instanceId);
14269
14243
  const {
14270
14244
  width: leftWidth,
@@ -14409,7 +14383,7 @@ var Layout = ({ children }) => {
14409
14383
  const toggleTheme = () => {
14410
14384
  setTheme((t) => t === "dark" ? "light" : "dark");
14411
14385
  };
14412
- const themeIcon = theme === "dark" ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Sun, { size: 18 }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Moon, { size: 18 });
14386
+ const themeIcon = theme === "dark" ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Sun, { size: 18 }) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Moon, { size: 18 });
14413
14387
  const themeLabel = theme === "dark" ? "Switch to light mode" : "Switch to dark mode";
14414
14388
  const hasLegacySideBarPlugin = (0, import_react94.useMemo)(
14415
14389
  () => !!(plugins == null ? void 0 : plugins.find((p) => p.name === "legacy-side-bar")),
@@ -14417,7 +14391,7 @@ var Layout = ({ children }) => {
14417
14391
  );
14418
14392
  const pluginItems = (0, import_react94.useMemo)(() => {
14419
14393
  const details = {};
14420
- const defaultPlugins = [blocksPlugin(), outlinePlugin()];
14394
+ const defaultPlugins = [blocksPlugin()];
14421
14395
  const isLegacy = (plugin) => plugin.name === "legacy-side-bar" ? -1 : 0;
14422
14396
  const combinedPlugins = [
14423
14397
  ...defaultPlugins,
@@ -14434,7 +14408,7 @@ var Layout = ({ children }) => {
14434
14408
  }
14435
14409
  details[plugin.name] = {
14436
14410
  label: (_a = plugin.label) != null ? _a : plugin.name,
14437
- icon: (_b = plugin.icon) != null ? _b : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ToyBrick, {}),
14411
+ icon: (_b = plugin.icon) != null ? _b : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ToyBrick, {}),
14438
14412
  onClick: () => {
14439
14413
  var _a2;
14440
14414
  setMobilePanelHeightMode((_a2 = plugin.mobilePanelHeight) != null ? _a2 : "toggle");
@@ -14473,39 +14447,40 @@ var Layout = ({ children }) => {
14473
14447
  if (mobilePanelHeight && leftSideBarVisible) {
14474
14448
  mobilePanelStyle["--editor-mobile-panel-height"] = `${mobilePanelHeight}px`;
14475
14449
  }
14476
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
14450
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
14477
14451
  "div",
14478
14452
  {
14479
- className: `Editor ${getClassName44({
14453
+ className: `Editor ${getClassName43({
14480
14454
  hidePlugins: hasLegacySideBarPlugin
14481
14455
  })}`,
14482
14456
  id: instanceId,
14483
14457
  "data-theme": theme,
14484
14458
  style: { height },
14485
14459
  children: [
14486
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(DragDropContext, { disableAutoScroll: dnd == null ? void 0 : dnd.disableAutoScroll, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(CustomEditor, { children: children || /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(FrameProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14460
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(DragDropContext, { disableAutoScroll: dnd == null ? void 0 : dnd.disableAutoScroll, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CustomEditor, { children: children || /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(FrameProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14487
14461
  "div",
14488
14462
  {
14489
14463
  className: getLayoutClassName({
14490
14464
  leftSideBarVisible,
14491
14465
  mounted,
14492
14466
  rightSideBarVisible: !hasDesktopFieldsPlugin && rightSideBarVisible,
14467
+ navBarVisible,
14493
14468
  mobilePanelHeightToggle: mobilePanelHeightMode === "toggle",
14494
14469
  mobilePanelHeightMinContent: mobilePanelHeightMode === "min-content",
14495
14470
  mobilePanelCustomHeight: mobilePanelHeight !== null && leftSideBarVisible
14496
14471
  }),
14497
14472
  style: { height },
14498
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
14473
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
14499
14474
  "div",
14500
14475
  {
14501
14476
  className: getLayoutClassName("inner"),
14502
14477
  style: __spreadValues(__spreadValues({}, layoutOptions), mobilePanelStyle),
14503
14478
  children: [
14504
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: getLayoutClassName("nav"), children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14479
+ navBarVisible && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: getLayoutClassName("nav"), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14505
14480
  Nav,
14506
14481
  {
14507
14482
  items: pluginItems,
14508
- footer: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14483
+ footer: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14509
14484
  IconButton,
14510
14485
  {
14511
14486
  type: "button",
@@ -14516,19 +14491,19 @@ var Layout = ({ children }) => {
14516
14491
  )
14517
14492
  }
14518
14493
  ) }),
14519
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
14494
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
14520
14495
  "div",
14521
14496
  {
14522
14497
  ref: mobilePanelRef,
14523
14498
  className: getLayoutClassName("mobilePanel"),
14524
14499
  children: [
14525
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14500
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14526
14501
  "div",
14527
14502
  {
14528
14503
  className: getLayoutClassName("mobileDragHandle"),
14529
14504
  onTouchStart: (e) => handleMobileDragStart(e.touches[0].clientY),
14530
14505
  onMouseDown: (e) => handleMobileDragStart(e.clientY),
14531
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14506
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14532
14507
  "div",
14533
14508
  {
14534
14509
  className: getLayoutClassName("mobileDragHandlePill")
@@ -14536,17 +14511,17 @@ var Layout = ({ children }) => {
14536
14511
  )
14537
14512
  }
14538
14513
  ),
14539
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14514
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14540
14515
  "div",
14541
14516
  {
14542
14517
  className: getLayoutClassName("mobilePanelContent"),
14543
14518
  children: Object.entries(pluginItems).map(
14544
- ([id, { mobileOnly, render: Render2 }]) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14519
+ ([id, { mobileOnly, render: Render2 }]) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14545
14520
  PluginTab,
14546
14521
  {
14547
14522
  visible: currentPlugin === id,
14548
14523
  mobileOnly,
14549
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Render2, {})
14524
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Render2, {})
14550
14525
  },
14551
14526
  id
14552
14527
  )
@@ -14556,7 +14531,7 @@ var Layout = ({ children }) => {
14556
14531
  ]
14557
14532
  }
14558
14533
  ),
14559
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14534
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14560
14535
  Sidebar,
14561
14536
  {
14562
14537
  position: "left",
@@ -14565,20 +14540,20 @@ var Layout = ({ children }) => {
14565
14540
  onResize: setLeftWidth,
14566
14541
  onResizeEnd: handleLeftSidebarResizeEnd,
14567
14542
  children: Object.entries(pluginItems).map(
14568
- ([id, { mobileOnly, render: Render2, label }]) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14543
+ ([id, { mobileOnly, render: Render2, label }]) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14569
14544
  PluginTab,
14570
14545
  {
14571
14546
  visible: currentPlugin === id,
14572
14547
  mobileOnly,
14573
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Render2, {})
14548
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Render2, {})
14574
14549
  },
14575
14550
  id
14576
14551
  )
14577
14552
  )
14578
14553
  }
14579
14554
  ),
14580
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Canvas, {}),
14581
- !hasDesktopFieldsPlugin && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
14555
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Canvas, {}),
14556
+ !hasDesktopFieldsPlugin && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
14582
14557
  Sidebar,
14583
14558
  {
14584
14559
  position: "right",
@@ -14586,7 +14561,7 @@ var Layout = ({ children }) => {
14586
14561
  isVisible: rightSideBarVisible,
14587
14562
  onResize: setRightWidth,
14588
14563
  onResizeEnd: handleRightSidebarResizeEnd,
14589
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(FieldSideBar, {})
14564
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(FieldSideBar, {})
14590
14565
  }
14591
14566
  )
14592
14567
  ]
@@ -14594,17 +14569,17 @@ var Layout = ({ children }) => {
14594
14569
  )
14595
14570
  }
14596
14571
  ) }) }) }),
14597
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { id: "editor-portal-root", className: getClassName44("portal") })
14572
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { id: "editor-portal-root", className: getClassName43("portal") })
14598
14573
  ]
14599
14574
  }
14600
14575
  );
14601
14576
  };
14602
14577
 
14603
14578
  // components/Editor/index.tsx
14604
- var import_jsx_runtime94 = require("react/jsx-runtime");
14579
+ var import_jsx_runtime93 = require("react/jsx-runtime");
14605
14580
  var propsContext = (0, import_react95.createContext)({});
14606
14581
  function PropsProvider(props) {
14607
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(propsContext.Provider, { value: props, children: props.children });
14582
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(propsContext.Provider, { value: props, children: props.children });
14608
14583
  }
14609
14584
  var usePropsContext = () => (0, import_react95.useContext)(propsContext);
14610
14585
  function EditorProvider({ children }) {
@@ -14788,10 +14763,10 @@ function EditorProvider({ children }) {
14788
14763
  resolveAndCommitData();
14789
14764
  }, 0);
14790
14765
  }, []);
14791
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(appStoreContext.Provider, { value: appStore, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(UseEditorStoreContext.Provider, { value: uEditorStore, children }) });
14766
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(appStoreContext.Provider, { value: appStore, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(UseEditorStoreContext.Provider, { value: uEditorStore, children }) });
14792
14767
  }
14793
14768
  function Editor4(props) {
14794
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(PropsProvider, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(EditorProvider, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Layout, { children: props.children }) })) }));
14769
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(PropsProvider, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(EditorProvider, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Layout, { children: props.children }) })) }));
14795
14770
  }
14796
14771
  Editor4.Components = Components;
14797
14772
  Editor4.Fields = Fields;
@@ -14873,7 +14848,7 @@ var useApp = () => {
14873
14848
  };
14874
14849
 
14875
14850
  // components/App/AppProvider.tsx
14876
- var import_jsx_runtime95 = require("react/jsx-runtime");
14851
+ var import_jsx_runtime94 = require("react/jsx-runtime");
14877
14852
  var EDITOR_PATH = "/editor";
14878
14853
  var isServer = typeof window === "undefined";
14879
14854
  function AppProvider({
@@ -14894,26 +14869,26 @@ function AppProvider({
14894
14869
  }),
14895
14870
  [config, stablePages, resolvedEditorPath]
14896
14871
  );
14897
- const inner = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(appConfigContext.Provider, { value: ctxValue, children });
14872
+ const inner = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(appConfigContext.Provider, { value: ctxValue, children });
14898
14873
  if (isServer) {
14899
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_router2.StaticRouter, { location: currentPath != null ? currentPath : "/", children: inner });
14874
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_router2.StaticRouter, { location: currentPath != null ? currentPath : "/", children: inner });
14900
14875
  }
14901
14876
  if (router === "hash") {
14902
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_router2.HashRouter, { children: inner });
14877
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_router2.HashRouter, { children: inner });
14903
14878
  }
14904
14879
  if (router === "memory") {
14905
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_router2.MemoryRouter, { initialEntries: [currentPath != null ? currentPath : "/"], children: inner });
14880
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_router2.MemoryRouter, { initialEntries: [currentPath != null ? currentPath : "/"], children: inner });
14906
14881
  }
14907
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_router2.BrowserRouter, { children: inner });
14882
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_router2.BrowserRouter, { children: inner });
14908
14883
  }
14909
14884
 
14910
14885
  // components/App/App.tsx
14911
- var import_jsx_runtime96 = require("react/jsx-runtime");
14886
+ var import_jsx_runtime95 = require("react/jsx-runtime");
14912
14887
  var joinEditorPath = (editorPath, route) => {
14913
14888
  if (route === "/") return editorPath;
14914
14889
  return `${editorPath}${route}`;
14915
14890
  };
14916
- var DefaultNotFound = () => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
14891
+ var DefaultNotFound = () => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
14917
14892
  "div",
14918
14893
  {
14919
14894
  style: {
@@ -14923,20 +14898,20 @@ var DefaultNotFound = () => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
14923
14898
  justifyContent: "center",
14924
14899
  alignItems: "center"
14925
14900
  },
14926
- children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { children: [
14927
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("h1", { children: "404" }),
14928
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { children: "No page matches this route." })
14901
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { children: [
14902
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("h1", { children: "404" }),
14903
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { children: "No page matches this route." })
14929
14904
  ] })
14930
14905
  }
14931
14906
  );
14932
- function RenderRoute({
14907
+ function RenderForKey({
14933
14908
  routeKey,
14934
14909
  metadata
14935
14910
  }) {
14936
14911
  const { config, pages } = useApp();
14937
14912
  const data = pages[routeKey];
14938
14913
  if (!data) return null;
14939
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
14914
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
14940
14915
  Render,
14941
14916
  {
14942
14917
  config,
@@ -14946,91 +14921,118 @@ function RenderRoute({
14946
14921
  routeKey
14947
14922
  );
14948
14923
  }
14949
- function EditorRouteRender({
14924
+ function EditorForKey({
14950
14925
  routeKey,
14951
- layoutProps
14926
+ editorProps,
14927
+ children
14952
14928
  }) {
14953
- const {
14954
- onPublish,
14955
- onChange,
14956
- plugins,
14957
- overrides,
14958
- fieldTransforms,
14959
- metadata,
14960
- iframe,
14961
- viewports,
14962
- permissions
14963
- } = layoutProps;
14964
14929
  const { config, pages, routes, navigate } = useApp();
14965
14930
  const data = pages[routeKey];
14966
14931
  if (!data) return null;
14967
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
14932
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
14968
14933
  Editor4,
14969
14934
  {
14970
14935
  config,
14971
14936
  data,
14972
- plugins,
14973
- overrides,
14974
- fieldTransforms,
14975
- metadata,
14976
- iframe,
14977
- viewports,
14978
- permissions,
14979
- onChange,
14980
- onPublish,
14937
+ ui: editorProps.ui,
14938
+ plugins: editorProps.plugins,
14939
+ overrides: editorProps.overrides,
14940
+ fieldTransforms: editorProps.fieldTransforms,
14941
+ metadata: editorProps.metadata,
14942
+ iframe: editorProps.iframe,
14943
+ viewports: editorProps.viewports,
14944
+ permissions: editorProps.permissions,
14945
+ onChange: editorProps.onChange,
14946
+ onPublish: editorProps.onPublish,
14947
+ onAction: editorProps.onAction,
14948
+ renderHeader: editorProps.renderHeader,
14949
+ renderHeaderActions: editorProps.renderHeaderActions,
14950
+ title: editorProps.title,
14951
+ dnd: editorProps.dnd,
14952
+ initialHistory: editorProps.initialHistory,
14953
+ height: editorProps.height,
14954
+ fullScreenCanvas: editorProps.fullScreenCanvas,
14955
+ disableZoomControls: editorProps.disableZoomControls,
14956
+ _experimentalVirtualization: editorProps._experimentalVirtualization,
14981
14957
  routes,
14982
14958
  currentRoute: routeKey,
14983
- onRouteChange: (next) => navigate(next)
14959
+ onRouteChange: (next) => navigate(next),
14960
+ children
14984
14961
  },
14985
14962
  routeKey
14986
14963
  );
14987
14964
  }
14988
- function NotFoundRoute({
14989
- renderNotFound
14990
- }) {
14991
- return renderNotFound ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_jsx_runtime96.Fragment, { children: renderNotFound() }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(DefaultNotFound, {});
14992
- }
14993
- function AppLayout(layoutProps) {
14994
- const { pages, editorPath } = useApp();
14995
- const renderRoutes = Object.keys(pages);
14996
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_react_router3.Routes, { children: [
14997
- renderRoutes.map((routeKey) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
14965
+ function AppRender({ metadata, renderNotFound }) {
14966
+ const { pages, isEditing } = useApp();
14967
+ if (isEditing) return null;
14968
+ const routeKeys = Object.keys(pages);
14969
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_react_router3.Routes, { children: [
14970
+ routeKeys.map((routeKey) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
14998
14971
  import_react_router3.Route,
14999
14972
  {
15000
14973
  path: routeKey,
15001
- element: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
15002
- RenderRoute,
14974
+ element: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
14975
+ RenderForKey,
15003
14976
  {
15004
14977
  routeKey,
15005
- metadata: layoutProps.metadata
14978
+ metadata
15006
14979
  }
15007
14980
  )
15008
14981
  },
15009
14982
  `render:${routeKey}`
15010
14983
  )),
15011
- editorPath !== null && renderRoutes.map((routeKey) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
14984
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
14985
+ import_react_router3.Route,
14986
+ {
14987
+ path: "*",
14988
+ element: renderNotFound ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_jsx_runtime95.Fragment, { children: renderNotFound() }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DefaultNotFound, {})
14989
+ }
14990
+ )
14991
+ ] });
14992
+ }
14993
+ function AppEditor(props) {
14994
+ const _a = props, { children, renderNotFound } = _a, editorProps = __objRest(_a, ["children", "renderNotFound"]);
14995
+ const { pages, isEditing, editorPath } = useApp();
14996
+ if (!isEditing || editorPath === null) return null;
14997
+ const routeKeys = Object.keys(pages);
14998
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_react_router3.Routes, { children: [
14999
+ routeKeys.map((routeKey) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
15012
15000
  import_react_router3.Route,
15013
15001
  {
15014
15002
  path: joinEditorPath(editorPath, routeKey),
15015
- element: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
15016
- EditorRouteRender,
15003
+ element: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
15004
+ EditorForKey,
15017
15005
  {
15018
15006
  routeKey,
15019
- layoutProps
15007
+ editorProps,
15008
+ children
15020
15009
  }
15021
15010
  )
15022
15011
  },
15023
15012
  `edit:${routeKey}`
15024
15013
  )),
15025
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
15014
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
15026
15015
  import_react_router3.Route,
15027
15016
  {
15028
15017
  path: "*",
15029
- element: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(NotFoundRoute, { renderNotFound: layoutProps.renderNotFound })
15018
+ element: renderNotFound ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_jsx_runtime95.Fragment, { children: renderNotFound() }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DefaultNotFound, {})
15030
15019
  }
15031
15020
  )
15032
15021
  ] });
15033
15022
  }
15023
+ function DefaultAppLayout(props) {
15024
+ const _a = props, { renderNotFound } = _a, editorProps = __objRest(_a, ["renderNotFound"]);
15025
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, { children: [
15026
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
15027
+ AppRender,
15028
+ {
15029
+ metadata: editorProps.metadata,
15030
+ renderNotFound
15031
+ }
15032
+ ),
15033
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(AppEditor, __spreadProps(__spreadValues({}, editorProps), { renderNotFound }))
15034
+ ] });
15035
+ }
15034
15036
  function App(props) {
15035
15037
  const _a = props, {
15036
15038
  config,
@@ -15047,7 +15049,7 @@ function App(props) {
15047
15049
  "router",
15048
15050
  "children"
15049
15051
  ]);
15050
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
15052
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
15051
15053
  AppProvider,
15052
15054
  {
15053
15055
  config,
@@ -15055,10 +15057,12 @@ function App(props) {
15055
15057
  currentPath,
15056
15058
  editorPath,
15057
15059
  router,
15058
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(AppLayout, __spreadValues({}, layoutProps))
15060
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DefaultAppLayout, __spreadValues({}, layoutProps))
15059
15061
  }
15060
15062
  );
15061
15063
  }
15064
+ App.Render = AppRender;
15065
+ App.Editor = AppEditor;
15062
15066
 
15063
15067
  // components/App/use-route-params.ts
15064
15068
  init_react_import();
@@ -15386,6 +15390,25 @@ function resolveAllData(_0, _1) {
15386
15390
  // bundle/core.ts
15387
15391
  init_walk_tree();
15388
15392
 
15393
+ // plugins/outline/index.tsx
15394
+ init_react_import();
15395
+ init_lucide_react();
15396
+
15397
+ // css-module:/Users/rami/Documents/apps/react-editor/packages/core/plugins/outline/styles.module.css#css-module
15398
+ init_react_import();
15399
+ var styles_module_default36 = { "OutlinePlugin": "_OutlinePlugin_q92j6_1" };
15400
+
15401
+ // plugins/outline/index.tsx
15402
+ init_lib();
15403
+ var import_jsx_runtime96 = require("react/jsx-runtime");
15404
+ var getClassName44 = get_class_name_factory_default("OutlinePlugin", styles_module_default36);
15405
+ var outlinePlugin = () => ({
15406
+ name: "outline",
15407
+ label: "Outline",
15408
+ render: () => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: getClassName44(), children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Outline, {}) }),
15409
+ icon: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Layers, {})
15410
+ });
15411
+
15389
15412
  // plugins/legacy-side-bar/index.tsx
15390
15413
  init_react_import();
15391
15414
  var import_jsx_runtime97 = require("react/jsx-runtime");