@reacteditor/core 0.0.9 → 0.0.11

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 (46) hide show
  1. package/README.md +7 -7
  2. package/dist/{Editor-KXEVJBNG.mjs → Editor-GK6JTUPD.mjs} +7 -7
  3. package/dist/{actions-2L-1hQ7r.d.mts → actions-C0LX6bI4.d.mts} +2 -1
  4. package/dist/{actions-2L-1hQ7r.d.ts → actions-C0LX6bI4.d.ts} +2 -1
  5. package/dist/{chunk-LRFRIIKG.mjs → chunk-56I7ST5F.mjs} +1 -1
  6. package/dist/{chunk-DU757QEH.mjs → chunk-74TOLW7F.mjs} +1561 -1266
  7. package/dist/{chunk-IIRJMJFU.mjs → chunk-ERNSJXVF.mjs} +1 -0
  8. package/dist/{chunk-TI3KC54Y.mjs → chunk-II42EKFK.mjs} +47 -1
  9. package/dist/{chunk-AD7BMXAA.mjs → chunk-MJJPWASL.mjs} +1 -1
  10. package/dist/{chunk-U7VW3V3W.mjs → chunk-TGVAC3JP.mjs} +9 -9
  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-AJWRDM22.mjs → chunk-YBG2RYVF.mjs} +5 -5
  14. package/dist/{full-ZFZZ626B.mjs → full-IUPXFMQP.mjs} +6 -6
  15. package/dist/{index-BXuSeNez.d.mts → index-DMbFEg8G.d.mts} +1 -1
  16. package/dist/{index-BNsSzMCj.d.ts → index-DmThy7vE.d.ts} +1 -1
  17. package/dist/index.css +109 -109
  18. package/dist/index.d.mts +155 -17
  19. package/dist/index.d.ts +155 -17
  20. package/dist/index.js +1080 -731
  21. package/dist/index.mjs +31 -15
  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/nextjs.d.mts +38 -0
  28. package/dist/nextjs.d.ts +38 -0
  29. package/dist/nextjs.js +65 -0
  30. package/dist/nextjs.mjs +30 -0
  31. package/dist/no-external.css +109 -109
  32. package/dist/no-external.d.mts +4 -4
  33. package/dist/no-external.d.ts +4 -4
  34. package/dist/no-external.js +1080 -731
  35. package/dist/no-external.mjs +31 -15
  36. package/dist/remix.d.mts +33 -0
  37. package/dist/remix.d.ts +33 -0
  38. package/dist/remix.js +65 -0
  39. package/dist/remix.mjs +30 -0
  40. package/dist/rsc.d.mts +2 -2
  41. package/dist/rsc.d.ts +2 -2
  42. package/dist/rsc.js +49 -0
  43. package/dist/rsc.mjs +6 -2
  44. package/dist/{walk-tree-C9GrSWsR.d.ts → walk-tree-5oDs6qOL.d.mts} +33 -2
  45. package/dist/{walk-tree-4C3ODO3X.d.mts → walk-tree-B1q6t5Jp.d.ts} +33 -2
  46. package/package.json +17 -6
package/dist/index.mjs CHANGED
@@ -1,4 +1,6 @@
1
1
  import {
2
+ App,
3
+ AppProvider,
2
4
  AutoField,
3
5
  Button,
4
6
  ComponentList,
@@ -6,6 +8,7 @@ import {
6
8
  Editor,
7
9
  FieldLabel,
8
10
  Render,
11
+ appConfigContext,
9
12
  blocksPlugin,
10
13
  createUseEditor,
11
14
  fieldsPlugin,
@@ -16,17 +19,14 @@ import {
16
19
  registerOverlayPortal,
17
20
  renderContext,
18
21
  setDeep,
22
+ useApp,
19
23
  useEditor,
20
24
  useGetEditor,
21
- usePropsContext
22
- } from "./chunk-DU757QEH.mjs";
23
- import "./chunk-AJWRDM22.mjs";
24
- import {
25
- migrate,
26
- resolveAllData,
27
- transformProps
28
- } from "./chunk-TI3KC54Y.mjs";
29
- import "./chunk-6QJ2HF4O.mjs";
25
+ usePropsContext,
26
+ useRouteParams,
27
+ useStableValue
28
+ } from "./chunk-74TOLW7F.mjs";
29
+ import "./chunk-YBG2RYVF.mjs";
30
30
  import {
31
31
  Action,
32
32
  ActionBar,
@@ -35,13 +35,21 @@ import {
35
35
  Label,
36
36
  RichTextMenu,
37
37
  Separator
38
- } from "./chunk-U7VW3V3W.mjs";
39
- import "./chunk-OIFPBVSF.mjs";
40
- import "./chunk-AD7BMXAA.mjs";
41
- import "./chunk-FT6UFK7G.mjs";
42
- import "./chunk-LRFRIIKG.mjs";
38
+ } from "./chunk-TGVAC3JP.mjs";
39
+ import "./chunk-X4EUZIHA.mjs";
40
+ import {
41
+ getRouteProps,
42
+ migrate,
43
+ resolveAllData,
44
+ resolveRouteFromString,
45
+ transformProps
46
+ } from "./chunk-II42EKFK.mjs";
47
+ import "./chunk-6QJ2HF4O.mjs";
48
+ import "./chunk-XLVEWZWT.mjs";
49
+ import "./chunk-MJJPWASL.mjs";
50
+ import "./chunk-56I7ST5F.mjs";
43
51
  import "./chunk-M4JDRFYB.mjs";
44
- import "./chunk-IIRJMJFU.mjs";
52
+ import "./chunk-ERNSJXVF.mjs";
45
53
  import "./chunk-Y2EFNT5P.mjs";
46
54
  import {
47
55
  walkTree
@@ -55,6 +63,8 @@ init_react_import();
55
63
  export {
56
64
  Action,
57
65
  ActionBar,
66
+ App,
67
+ AppProvider,
58
68
  AutoField,
59
69
  Button,
60
70
  ComponentList,
@@ -67,9 +77,11 @@ export {
67
77
  Render,
68
78
  RichTextMenu,
69
79
  Separator,
80
+ appConfigContext,
70
81
  blocksPlugin,
71
82
  createUseEditor,
72
83
  fieldsPlugin,
84
+ getRouteProps,
73
85
  legacySideBarPlugin,
74
86
  migrate,
75
87
  outlinePlugin,
@@ -78,10 +90,14 @@ export {
78
90
  registerOverlayPortal,
79
91
  renderContext,
80
92
  resolveAllData,
93
+ resolveRouteFromString,
81
94
  setDeep,
82
95
  transformProps,
96
+ useApp,
83
97
  useEditor,
84
98
  useGetEditor,
85
99
  usePropsContext,
100
+ useRouteParams,
101
+ useStableValue,
86
102
  walkTree
87
103
  };
@@ -1,6 +1,6 @@
1
1
  import { Reducer } from 'react';
2
- import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, E as EditorAction } from './actions-2L-1hQ7r.mjs';
3
- import { A as AppStore } from './index-BXuSeNez.mjs';
2
+ import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, E as EditorAction } from './actions-C0LX6bI4.mjs';
3
+ import { A as AppStore } from './index-DMbFEg8G.mjs';
4
4
  import '@tiptap/react';
5
5
  import '@tiptap/extension-blockquote';
6
6
  import '@tiptap/extension-bold';
@@ -1,6 +1,6 @@
1
1
  import { Reducer } from 'react';
2
- import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, E as EditorAction } from './actions-2L-1hQ7r.js';
3
- import { A as AppStore } from './index-BNsSzMCj.js';
2
+ import { D as Data, A as AppState, O as OnAction, P as PrivateAppState, E as EditorAction } from './actions-C0LX6bI4.js';
3
+ import { A as AppStore } from './index-DmThy7vE.js';
4
4
  import '@tiptap/react';
5
5
  import '@tiptap/extension-blockquote';
6
6
  import '@tiptap/extension-bold';
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useAlignOptions
3
- } from "./chunk-OIFPBVSF.mjs";
3
+ } from "./chunk-XLVEWZWT.mjs";
4
4
  import {
5
5
  AlignLeft,
6
6
  SelectControl,
7
7
  useControlContext
8
- } from "./chunk-LRFRIIKG.mjs";
8
+ } from "./chunk-56I7ST5F.mjs";
9
9
  import "./chunk-M4JDRFYB.mjs";
10
- import "./chunk-IIRJMJFU.mjs";
10
+ import "./chunk-ERNSJXVF.mjs";
11
11
  import "./chunk-Y2EFNT5P.mjs";
12
12
  import "./chunk-JIXMPJZA.mjs";
13
13
  import {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useListOptions
3
- } from "./chunk-FT6UFK7G.mjs";
3
+ } from "./chunk-X4EUZIHA.mjs";
4
4
  import {
5
5
  List,
6
6
  SelectControl,
7
7
  useControlContext
8
- } from "./chunk-LRFRIIKG.mjs";
8
+ } from "./chunk-56I7ST5F.mjs";
9
9
  import "./chunk-M4JDRFYB.mjs";
10
- import "./chunk-IIRJMJFU.mjs";
10
+ import "./chunk-ERNSJXVF.mjs";
11
11
  import "./chunk-Y2EFNT5P.mjs";
12
12
  import "./chunk-JIXMPJZA.mjs";
13
13
  import {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useHeadingOptions
3
- } from "./chunk-AD7BMXAA.mjs";
3
+ } from "./chunk-MJJPWASL.mjs";
4
4
  import {
5
5
  Heading,
6
6
  SelectControl,
7
7
  useControlContext
8
- } from "./chunk-LRFRIIKG.mjs";
8
+ } from "./chunk-56I7ST5F.mjs";
9
9
  import "./chunk-M4JDRFYB.mjs";
10
- import "./chunk-IIRJMJFU.mjs";
10
+ import "./chunk-ERNSJXVF.mjs";
11
11
  import "./chunk-Y2EFNT5P.mjs";
12
12
  import "./chunk-JIXMPJZA.mjs";
13
13
  import {
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Next.js helpers for `<App>`.
3
+ *
4
+ * Pure functions — no `next/*` imports — but namespaced under
5
+ * `@reacteditor/core/nextjs` so framework-specific helpers can be added
6
+ * later without breaking changes.
7
+ */
8
+ type NextRouteParams = {
9
+ /** The catch-all segment from `app/[[...pageParams]]/page.tsx`. */
10
+ pageParams?: string[];
11
+ };
12
+ type NextjsResolvedRoute = {
13
+ /** Full path including any editor prefix, e.g. "/editor/products/foo". */
14
+ route: string;
15
+ /** True when `route` starts with the editor prefix. */
16
+ isEditor: boolean;
17
+ /** Path with the editor prefix stripped — what schemas match against. */
18
+ matchRoute: string;
19
+ };
20
+ /**
21
+ * Resolve Next's catch-all params into a route descriptor for `<App>`.
22
+ *
23
+ * Mounted at `app/[[...pageParams]]/page.tsx`:
24
+ * - `/products/abc` → `{ route: "/products/abc", isEditor: false, matchRoute: "/products/abc" }`
25
+ * - `/editor/products/abc` → `{ route: "/editor/products/abc", isEditor: true, matchRoute: "/products/abc" }`
26
+ *
27
+ * `editorPath` defaults to "/editor" — same default as `<App>`. Pass `null`
28
+ * to skip editor-mode classification.
29
+ *
30
+ * Mounted at `app/shops/[shopId]/[[...pageParams]]/page.tsx`:
31
+ * the catch-all already excludes the basePath, so this returns the
32
+ * correct schema-relative route — no basePath argument needed.
33
+ */
34
+ declare const nextjsResolveRoute: (params: NextRouteParams, options?: {
35
+ editorPath?: string | null;
36
+ }) => NextjsResolvedRoute;
37
+
38
+ export { type NextRouteParams, type NextjsResolvedRoute, nextjsResolveRoute };
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Next.js helpers for `<App>`.
3
+ *
4
+ * Pure functions — no `next/*` imports — but namespaced under
5
+ * `@reacteditor/core/nextjs` so framework-specific helpers can be added
6
+ * later without breaking changes.
7
+ */
8
+ type NextRouteParams = {
9
+ /** The catch-all segment from `app/[[...pageParams]]/page.tsx`. */
10
+ pageParams?: string[];
11
+ };
12
+ type NextjsResolvedRoute = {
13
+ /** Full path including any editor prefix, e.g. "/editor/products/foo". */
14
+ route: string;
15
+ /** True when `route` starts with the editor prefix. */
16
+ isEditor: boolean;
17
+ /** Path with the editor prefix stripped — what schemas match against. */
18
+ matchRoute: string;
19
+ };
20
+ /**
21
+ * Resolve Next's catch-all params into a route descriptor for `<App>`.
22
+ *
23
+ * Mounted at `app/[[...pageParams]]/page.tsx`:
24
+ * - `/products/abc` → `{ route: "/products/abc", isEditor: false, matchRoute: "/products/abc" }`
25
+ * - `/editor/products/abc` → `{ route: "/editor/products/abc", isEditor: true, matchRoute: "/products/abc" }`
26
+ *
27
+ * `editorPath` defaults to "/editor" — same default as `<App>`. Pass `null`
28
+ * to skip editor-mode classification.
29
+ *
30
+ * Mounted at `app/shops/[shopId]/[[...pageParams]]/page.tsx`:
31
+ * the catch-all already excludes the basePath, so this returns the
32
+ * correct schema-relative route — no basePath argument needed.
33
+ */
34
+ declare const nextjsResolveRoute: (params: NextRouteParams, options?: {
35
+ editorPath?: string | null;
36
+ }) => NextjsResolvedRoute;
37
+
38
+ export { type NextRouteParams, type NextjsResolvedRoute, nextjsResolveRoute };
package/dist/nextjs.js ADDED
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // bundle/nextjs.ts
31
+ var nextjs_exports = {};
32
+ __export(nextjs_exports, {
33
+ nextjsResolveRoute: () => nextjsResolveRoute
34
+ });
35
+ module.exports = __toCommonJS(nextjs_exports);
36
+
37
+ // ../tsup-config/react-import.js
38
+ var import_react = __toESM(require("react"));
39
+
40
+ // bundle/nextjs.ts
41
+ var DEFAULT_EDITOR_PATH = "/editor";
42
+ var stripEditorPrefix = (route, editorPath) => {
43
+ if (!editorPath) return route;
44
+ if (route === editorPath) return "/";
45
+ if (!route.startsWith(`${editorPath}/`)) return route;
46
+ const rest = route.slice(editorPath.length);
47
+ return rest.startsWith("/") ? rest : `/${rest}`;
48
+ };
49
+ var buildRoute = (params) => {
50
+ var _a;
51
+ const segments = (_a = params == null ? void 0 : params.pageParams) != null ? _a : [];
52
+ if (segments.length === 0) return "/";
53
+ return "/" + segments.join("/");
54
+ };
55
+ var nextjsResolveRoute = (params, options) => {
56
+ const editorPath = (options == null ? void 0 : options.editorPath) === void 0 ? DEFAULT_EDITOR_PATH : options.editorPath;
57
+ const route = buildRoute(params);
58
+ const isEditor = editorPath !== null && (route === editorPath || route.startsWith(`${editorPath}/`));
59
+ const matchRoute = isEditor ? stripEditorPrefix(route, editorPath) : route;
60
+ return { route, isEditor, matchRoute };
61
+ };
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ nextjsResolveRoute
65
+ });
@@ -0,0 +1,30 @@
1
+ import {
2
+ init_react_import
3
+ } from "./chunk-M6W7YEVX.mjs";
4
+
5
+ // bundle/nextjs.ts
6
+ init_react_import();
7
+ var DEFAULT_EDITOR_PATH = "/editor";
8
+ var stripEditorPrefix = (route, editorPath) => {
9
+ if (!editorPath) return route;
10
+ if (route === editorPath) return "/";
11
+ if (!route.startsWith(`${editorPath}/`)) return route;
12
+ const rest = route.slice(editorPath.length);
13
+ return rest.startsWith("/") ? rest : `/${rest}`;
14
+ };
15
+ var buildRoute = (params) => {
16
+ var _a;
17
+ const segments = (_a = params == null ? void 0 : params.pageParams) != null ? _a : [];
18
+ if (segments.length === 0) return "/";
19
+ return "/" + segments.join("/");
20
+ };
21
+ var nextjsResolveRoute = (params, options) => {
22
+ const editorPath = (options == null ? void 0 : options.editorPath) === void 0 ? DEFAULT_EDITOR_PATH : options.editorPath;
23
+ const route = buildRoute(params);
24
+ const isEditor = editorPath !== null && (route === editorPath || route.startsWith(`${editorPath}/`));
25
+ const matchRoute = isEditor ? stripEditorPrefix(route, editorPath) : route;
26
+ return { route, isEditor, matchRoute };
27
+ };
28
+ export {
29
+ nextjsResolveRoute
30
+ };
@@ -1684,6 +1684,90 @@ textarea._Input-input_zwh6e_27 {
1684
1684
  padding: 14px 12px;
1685
1685
  }
1686
1686
 
1687
+ /* css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/Editor/components/Fields/styles.module.css/#css-module-data */
1688
+ ._EditorFields_3dnua_1 {
1689
+ position: relative;
1690
+ font-family: var(--editor-font-family);
1691
+ }
1692
+ ._EditorFields--isLoading_3dnua_6 {
1693
+ min-height: 48px;
1694
+ }
1695
+ ._EditorFields-loadingOverlay_3dnua_10 {
1696
+ background: var(--editor-surface-panel);
1697
+ display: flex;
1698
+ justify-content: flex-end;
1699
+ align-items: flex-start;
1700
+ height: 100%;
1701
+ width: 100%;
1702
+ top: 0px;
1703
+ position: absolute;
1704
+ z-index: 1;
1705
+ pointer-events: all;
1706
+ box-sizing: border-box;
1707
+ opacity: 0.8;
1708
+ }
1709
+ ._EditorFields-loadingOverlayInner_3dnua_25 {
1710
+ display: flex;
1711
+ padding: 16px;
1712
+ position: sticky;
1713
+ top: 0;
1714
+ }
1715
+ ._EditorFields-field_3dnua_32 * {
1716
+ box-sizing: border-box;
1717
+ }
1718
+ ._EditorFields--wrapFields_3dnua_36 ._EditorFields-field_3dnua_32 {
1719
+ color: var(--editor-text-secondary);
1720
+ padding: 14px 16px;
1721
+ display: block;
1722
+ }
1723
+ ._EditorFields--wrapFields_3dnua_36 ._EditorFields-field_3dnua_32 + ._EditorFields-field_3dnua_32 {
1724
+ border-top: 1px solid var(--editor-border-subtle);
1725
+ }
1726
+ ._EditorFields-syncButton_3dnua_46 {
1727
+ align-items: center;
1728
+ background: transparent;
1729
+ border: 1px solid var(--editor-color-global);
1730
+ border-radius: var(--editor-radius-md);
1731
+ color: var(--editor-color-global);
1732
+ cursor: pointer;
1733
+ display: flex;
1734
+ font: inherit;
1735
+ font-size: var(--editor-font-size-xxs);
1736
+ font-weight: 500;
1737
+ gap: 8px;
1738
+ justify-content: center;
1739
+ margin: 12px 16px;
1740
+ padding: 10px;
1741
+ transition:
1742
+ background-color var(--editor-motion-fast) var(--editor-ease),
1743
+ border-color var(--editor-motion-fast) var(--editor-ease),
1744
+ color var(--editor-motion-fast) var(--editor-ease);
1745
+ width: calc(100% - 32px);
1746
+ }
1747
+ @media (hover: hover) and (pointer: fine) {
1748
+ ._EditorFields-syncButton_3dnua_46:hover {
1749
+ background: var(--editor-color-global-soft);
1750
+ }
1751
+ }
1752
+ ._EditorFields-syncButton_3dnua_46:focus-visible {
1753
+ outline: none;
1754
+ box-shadow: var(--editor-ring);
1755
+ }
1756
+ ._EditorFields-syncButton--unlinked_3dnua_78 {
1757
+ border-color: var(--editor-border-default);
1758
+ color: var(--editor-text-secondary);
1759
+ }
1760
+ @media (hover: hover) and (pointer: fine) {
1761
+ ._EditorFields-syncButton--unlinked_3dnua_78:hover {
1762
+ background: var(--editor-surface-hover);
1763
+ border-color: var(--editor-border-strong);
1764
+ color: var(--editor-text-primary);
1765
+ }
1766
+ }
1767
+ ._EditorFields--wrapFields_3dnua_36 ._EditorFields-syncButton_3dnua_46 + ._EditorFields-field_3dnua_32 {
1768
+ border-top: none;
1769
+ }
1770
+
1687
1771
  /* css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/ComponentList/styles.module.css/#css-module-data */
1688
1772
  ._ComponentList_1mlcu_1 {
1689
1773
  max-width: 100%;
@@ -1739,21 +1823,21 @@ textarea._Input-input_zwh6e_27 {
1739
1823
  }
1740
1824
 
1741
1825
  /* css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/Drawer/styles.module.css/#css-module-data */
1742
- ._Drawer_146py_1 {
1826
+ ._Drawer_1h4db_1 {
1743
1827
  display: flex;
1744
1828
  flex-direction: column;
1745
1829
  font-family: var(--editor-font-family);
1746
1830
  gap: 6px;
1747
1831
  }
1748
- ._Drawer--tile_146py_8 {
1832
+ ._Drawer--tile_1h4db_8 {
1749
1833
  display: grid;
1750
1834
  grid-template-columns: repeat(auto-fill, minmax(min(88px, calc(50% - 3px)), 1fr));
1751
1835
  gap: 6px;
1752
1836
  }
1753
- ._Drawer-draggable_146py_19 {
1837
+ ._Drawer-draggable_1h4db_19 {
1754
1838
  position: relative;
1755
1839
  }
1756
- ._Drawer-draggableBg_146py_23 {
1840
+ ._Drawer-draggableBg_1h4db_23 {
1757
1841
  position: absolute;
1758
1842
  top: 0;
1759
1843
  right: 0;
@@ -1762,8 +1846,8 @@ textarea._Input-input_zwh6e_27 {
1762
1846
  pointer-events: none;
1763
1847
  z-index: -1;
1764
1848
  }
1765
- ._DrawerItem-draggable_146py_33 {
1766
- background: var(--editor-surface-panel);
1849
+ ._DrawerItem-draggable_1h4db_33 {
1850
+ background: var(--editor-surface-raised);
1767
1851
  cursor: grab;
1768
1852
  padding: 8px 10px;
1769
1853
  display: flex;
@@ -1779,43 +1863,43 @@ textarea._Input-input_zwh6e_27 {
1779
1863
  border-color var(--editor-motion-fast) var(--editor-ease),
1780
1864
  box-shadow var(--editor-motion-fast) var(--editor-ease);
1781
1865
  }
1782
- ._DrawerItem-icon_146py_50 {
1866
+ ._DrawerItem-icon_1h4db_50 {
1783
1867
  color: var(--editor-text-tertiary);
1784
1868
  display: flex;
1785
1869
  transition: color var(--editor-motion-fast) var(--editor-ease);
1786
1870
  }
1787
- ._DrawerItem--disabled_146py_56 ._DrawerItem-draggable_146py_33 {
1871
+ ._DrawerItem--disabled_1h4db_56 ._DrawerItem-draggable_1h4db_33 {
1788
1872
  background: var(--editor-surface-sunken);
1789
1873
  color: var(--editor-text-tertiary);
1790
1874
  cursor: not-allowed;
1791
1875
  }
1792
- ._DrawerItem_146py_33:focus-visible {
1876
+ ._DrawerItem_1h4db_33:focus-visible {
1793
1877
  outline: 0;
1794
1878
  }
1795
- ._Drawer_146py_1:not(._Drawer--isDraggingFrom_146py_66) ._DrawerItem_146py_33:focus-visible ._DrawerItem-draggable_146py_33 {
1879
+ ._Drawer_1h4db_1:not(._Drawer--isDraggingFrom_1h4db_66) ._DrawerItem_1h4db_33:focus-visible ._DrawerItem-draggable_1h4db_33 {
1796
1880
  border-radius: var(--editor-radius-md);
1797
1881
  outline: none;
1798
1882
  box-shadow: var(--editor-ring);
1799
1883
  }
1800
1884
  @media (hover: hover) and (pointer: fine) {
1801
- ._Drawer_146py_1:not(._Drawer--isDraggingFrom_146py_66) ._DrawerItem_146py_33:not(._DrawerItem--disabled_146py_56) ._DrawerItem-draggable_146py_33:hover {
1885
+ ._Drawer_1h4db_1:not(._Drawer--isDraggingFrom_1h4db_66) ._DrawerItem_1h4db_33:not(._DrawerItem--disabled_1h4db_56) ._DrawerItem-draggable_1h4db_33:hover {
1802
1886
  background-color: var(--editor-surface-hover);
1803
1887
  border-color: var(--editor-border-default);
1804
1888
  color: var(--editor-text-accent);
1805
1889
  box-shadow: var(--editor-shadow-sm);
1806
1890
  transition: none;
1807
1891
  }
1808
- ._Drawer_146py_1:not(._Drawer--isDraggingFrom_146py_66) ._DrawerItem_146py_33:not(._DrawerItem--disabled_146py_56) ._DrawerItem-draggable_146py_33:hover ._DrawerItem-icon_146py_50 {
1892
+ ._Drawer_1h4db_1:not(._Drawer--isDraggingFrom_1h4db_66) ._DrawerItem_1h4db_33:not(._DrawerItem--disabled_1h4db_56) ._DrawerItem-draggable_1h4db_33:hover ._DrawerItem-icon_1h4db_50 {
1809
1893
  color: var(--editor-text-accent);
1810
1894
  }
1811
1895
  }
1812
- ._DrawerItem-name_146py_91 {
1896
+ ._DrawerItem-name_1h4db_91 {
1813
1897
  overflow-x: hidden;
1814
1898
  text-overflow: ellipsis;
1815
1899
  white-space: nowrap;
1816
1900
  font-weight: 500;
1817
1901
  }
1818
- ._Drawer--tile_146py_8 ._DrawerItem-draggable_146py_33 {
1902
+ ._Drawer--tile_1h4db_8 ._DrawerItem-draggable_1h4db_33 {
1819
1903
  flex-direction: column;
1820
1904
  align-items: center;
1821
1905
  justify-content: center;
@@ -1824,16 +1908,16 @@ textarea._Input-input_zwh6e_27 {
1824
1908
  padding: 8px;
1825
1909
  gap: 6px;
1826
1910
  }
1827
- ._Drawer--tile_146py_8 ._DrawerItem-icon_146py_50 {
1911
+ ._Drawer--tile_1h4db_8 ._DrawerItem-icon_1h4db_50 {
1828
1912
  display: flex;
1829
1913
  align-items: center;
1830
1914
  justify-content: center;
1831
1915
  }
1832
- ._Drawer--tile_146py_8 ._DrawerItem-icon_146py_50 svg {
1916
+ ._Drawer--tile_1h4db_8 ._DrawerItem-icon_1h4db_50 svg {
1833
1917
  width: 22px;
1834
1918
  height: 22px;
1835
1919
  }
1836
- ._Drawer--tile_146py_8 ._DrawerItem-name_146py_91 {
1920
+ ._Drawer--tile_1h4db_8 ._DrawerItem-name_1h4db_91 {
1837
1921
  width: 100%;
1838
1922
  font-size: var(--editor-font-size-xxxs);
1839
1923
  line-height: 1.2;
@@ -2049,90 +2133,6 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
2049
2133
  display: none;
2050
2134
  }
2051
2135
 
2052
- /* css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/Editor/components/Fields/styles.module.css/#css-module-data */
2053
- ._EditorFields_3dnua_1 {
2054
- position: relative;
2055
- font-family: var(--editor-font-family);
2056
- }
2057
- ._EditorFields--isLoading_3dnua_6 {
2058
- min-height: 48px;
2059
- }
2060
- ._EditorFields-loadingOverlay_3dnua_10 {
2061
- background: var(--editor-surface-panel);
2062
- display: flex;
2063
- justify-content: flex-end;
2064
- align-items: flex-start;
2065
- height: 100%;
2066
- width: 100%;
2067
- top: 0px;
2068
- position: absolute;
2069
- z-index: 1;
2070
- pointer-events: all;
2071
- box-sizing: border-box;
2072
- opacity: 0.8;
2073
- }
2074
- ._EditorFields-loadingOverlayInner_3dnua_25 {
2075
- display: flex;
2076
- padding: 16px;
2077
- position: sticky;
2078
- top: 0;
2079
- }
2080
- ._EditorFields-field_3dnua_32 * {
2081
- box-sizing: border-box;
2082
- }
2083
- ._EditorFields--wrapFields_3dnua_36 ._EditorFields-field_3dnua_32 {
2084
- color: var(--editor-text-secondary);
2085
- padding: 14px 16px;
2086
- display: block;
2087
- }
2088
- ._EditorFields--wrapFields_3dnua_36 ._EditorFields-field_3dnua_32 + ._EditorFields-field_3dnua_32 {
2089
- border-top: 1px solid var(--editor-border-subtle);
2090
- }
2091
- ._EditorFields-syncButton_3dnua_46 {
2092
- align-items: center;
2093
- background: transparent;
2094
- border: 1px solid var(--editor-color-global);
2095
- border-radius: var(--editor-radius-md);
2096
- color: var(--editor-color-global);
2097
- cursor: pointer;
2098
- display: flex;
2099
- font: inherit;
2100
- font-size: var(--editor-font-size-xxs);
2101
- font-weight: 500;
2102
- gap: 8px;
2103
- justify-content: center;
2104
- margin: 12px 16px;
2105
- padding: 10px;
2106
- transition:
2107
- background-color var(--editor-motion-fast) var(--editor-ease),
2108
- border-color var(--editor-motion-fast) var(--editor-ease),
2109
- color var(--editor-motion-fast) var(--editor-ease);
2110
- width: calc(100% - 32px);
2111
- }
2112
- @media (hover: hover) and (pointer: fine) {
2113
- ._EditorFields-syncButton_3dnua_46:hover {
2114
- background: var(--editor-color-global-soft);
2115
- }
2116
- }
2117
- ._EditorFields-syncButton_3dnua_46:focus-visible {
2118
- outline: none;
2119
- box-shadow: var(--editor-ring);
2120
- }
2121
- ._EditorFields-syncButton--unlinked_3dnua_78 {
2122
- border-color: var(--editor-border-default);
2123
- color: var(--editor-text-secondary);
2124
- }
2125
- @media (hover: hover) and (pointer: fine) {
2126
- ._EditorFields-syncButton--unlinked_3dnua_78:hover {
2127
- background: var(--editor-surface-hover);
2128
- border-color: var(--editor-border-strong);
2129
- color: var(--editor-text-primary);
2130
- }
2131
- }
2132
- ._EditorFields--wrapFields_3dnua_36 ._EditorFields-syncButton_3dnua_46 + ._EditorFields-field_3dnua_32 {
2133
- border-top: none;
2134
- }
2135
-
2136
2136
  /* css-module:/Users/rami/Documents/apps/react-editor/packages/core/components/Editor/components/Components/styles.module.css/#css-module-data */
2137
2137
  ._Components-search_recer_1 {
2138
2138
  position: relative;
@@ -3190,14 +3190,6 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
3190
3190
  display: none;
3191
3191
  }
3192
3192
 
3193
- /* css-module:/Users/rami/Documents/apps/react-editor/packages/core/plugins/outline/styles.module.css/#css-module-data */
3194
- ._OutlinePlugin_q92j6_1 {
3195
- padding: 16px;
3196
- height: 100%;
3197
- overflow-y: auto;
3198
- box-sizing: border-box;
3199
- }
3200
-
3201
3193
  /* css-module:/Users/rami/Documents/apps/react-editor/packages/core/plugins/fields/styles.module.css/#css-module-data */
3202
3194
  ._FieldsPlugin_262zt_1 {
3203
3195
  background: white;
@@ -3217,3 +3209,11 @@ body:has(._DropZone--isAnimating_1h108_70:empty) [data-editor-overlay] {
3217
3209
  padding: 16px;
3218
3210
  }
3219
3211
  }
3212
+
3213
+ /* css-module:/Users/rami/Documents/apps/react-editor/packages/core/plugins/outline/styles.module.css/#css-module-data */
3214
+ ._OutlinePlugin_q92j6_1 {
3215
+ padding: 16px;
3216
+ height: 100%;
3217
+ overflow-y: auto;
3218
+ box-sizing: border-box;
3219
+ }