camox 0.26.0 → 0.28.0

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 (30) hide show
  1. package/dist/core/components/lexical/InlineLexicalEditor.js +14 -11
  2. package/dist/core/components/lexical/SidebarLexicalEditor.js +10 -7
  3. package/dist/features/preview/CamoxPreview.d.ts +1 -0
  4. package/dist/features/preview/CamoxPreview.js +507 -147
  5. package/dist/features/preview/components/AssetLightbox.js +1 -1
  6. package/dist/features/preview/components/BlockActionsPopover.js +1 -1
  7. package/dist/features/preview/components/CreatePageModal.js +23 -8
  8. package/dist/features/preview/components/FieldToolbar.js +1 -1
  9. package/dist/features/preview/components/LinkFieldEditor.js +192 -204
  10. package/dist/features/preview/components/PageContentSheet.js +1 -1
  11. package/dist/features/preview/components/PageLocationFieldset.js +3 -4
  12. package/dist/features/preview/components/{EditPageModal.js → PageMetadataModal.js} +413 -229
  13. package/dist/features/preview/components/PageNicknameField.js +69 -0
  14. package/dist/features/preview/components/PagePicker.js +21 -84
  15. package/dist/features/preview/components/PageStatusBadge.js +97 -0
  16. package/dist/features/preview/components/PreviewPanel.js +111 -117
  17. package/dist/features/preview/components/PreviewToolbar.js +4 -4
  18. package/dist/features/preview/components/PublishDialog.js +1 -1
  19. package/dist/features/preview/components/UnlinkAssetButton.js +1 -1
  20. package/dist/features/routes/pageRoute.d.ts +3 -1
  21. package/dist/features/routes/pageRoute.js +34 -11
  22. package/dist/features/studio/components/EnvironmentMenu.js +1 -1
  23. package/dist/features/studio/components/ProjectMenu.js +1 -1
  24. package/dist/features/studio/components/UserButton.js +1 -1
  25. package/dist/lib/auth.js +43 -15
  26. package/dist/lib/queries.js +1 -0
  27. package/dist/lib/utils.js +1 -11
  28. package/dist/studio.css +1 -1
  29. package/package.json +4 -4
  30. package/skills/camox-cli/SKILL.md +79 -12
@@ -16,9 +16,9 @@ import { COMMAND_PRIORITY_LOW, INSERT_LINE_BREAK_COMMAND, KEY_ENTER_COMMAND, KEY
16
16
  //#region src/core/components/lexical/InlineLexicalEditor.tsx
17
17
  function ExternalStateSync(t0) {
18
18
  const $ = c(8);
19
- if ($[0] !== "d55dc2470e7a8239785b31acd1a520713ae4ab4b2286f30664666de45ce709b6") {
19
+ if ($[0] !== "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5") {
20
20
  for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
21
- $[0] = "d55dc2470e7a8239785b31acd1a520713ae4ab4b2286f30664666de45ce709b6";
21
+ $[0] = "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5";
22
22
  }
23
23
  const { externalState } = t0;
24
24
  const [editor] = useLexicalComposerContext();
@@ -75,9 +75,9 @@ function ExternalStateSync(t0) {
75
75
  }
76
76
  function EscapeHandler() {
77
77
  const $ = c(4);
78
- if ($[0] !== "d55dc2470e7a8239785b31acd1a520713ae4ab4b2286f30664666de45ce709b6") {
78
+ if ($[0] !== "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5") {
79
79
  for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
80
- $[0] = "d55dc2470e7a8239785b31acd1a520713ae4ab4b2286f30664666de45ce709b6";
80
+ $[0] = "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5";
81
81
  }
82
82
  const [editor] = useLexicalComposerContext();
83
83
  let t0;
@@ -100,9 +100,9 @@ function EscapeHandler() {
100
100
  }
101
101
  function EnterAsLineBreakHandler() {
102
102
  const $ = c(4);
103
- if ($[0] !== "d55dc2470e7a8239785b31acd1a520713ae4ab4b2286f30664666de45ce709b6") {
103
+ if ($[0] !== "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5") {
104
104
  for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
105
- $[0] = "d55dc2470e7a8239785b31acd1a520713ae4ab4b2286f30664666de45ce709b6";
105
+ $[0] = "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5";
106
106
  }
107
107
  const [editor] = useLexicalComposerContext();
108
108
  let t0;
@@ -126,9 +126,9 @@ function EnterAsLineBreakHandler() {
126
126
  }
127
127
  function FocusBlurHandler(t0) {
128
128
  const $ = c(6);
129
- if ($[0] !== "d55dc2470e7a8239785b31acd1a520713ae4ab4b2286f30664666de45ce709b6") {
129
+ if ($[0] !== "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5") {
130
130
  for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
131
- $[0] = "d55dc2470e7a8239785b31acd1a520713ae4ab4b2286f30664666de45ce709b6";
131
+ $[0] = "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5";
132
132
  }
133
133
  const { onFocus, onBlur } = t0;
134
134
  const [editor] = useLexicalComposerContext();
@@ -198,7 +198,10 @@ function InlineLexicalEditor({ initialState, externalState, onChange, onFocus, o
198
198
  contentEditable: /* @__PURE__ */ jsx(InlineContentEditable, { style: { outline: "none" } }),
199
199
  ErrorBoundary: LexicalErrorBoundary
200
200
  }),
201
- /* @__PURE__ */ jsx(OnChangePlugin, { onChange: handleChange }),
201
+ /* @__PURE__ */ jsx(OnChangePlugin, {
202
+ onChange: handleChange,
203
+ ignoreSelectionChange: true
204
+ }),
202
205
  /* @__PURE__ */ jsx(HistoryPlugin, {}),
203
206
  /* @__PURE__ */ jsx(ExternalStateSync, { externalState }),
204
207
  /* @__PURE__ */ jsx(EscapeHandler, {}),
@@ -213,9 +216,9 @@ function InlineLexicalEditor({ initialState, externalState, onChange, onFocus, o
213
216
  }
214
217
  function LexicalErrorBoundary(t0) {
215
218
  const $ = c(3);
216
- if ($[0] !== "d55dc2470e7a8239785b31acd1a520713ae4ab4b2286f30664666de45ce709b6") {
219
+ if ($[0] !== "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5") {
217
220
  for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
218
- $[0] = "d55dc2470e7a8239785b31acd1a520713ae4ab4b2286f30664666de45ce709b6";
221
+ $[0] = "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5";
219
222
  }
220
223
  const { children } = t0;
221
224
  let t1;
@@ -15,9 +15,9 @@ import { ContentEditable } from "@lexical/react/LexicalContentEditable";
15
15
  //#region src/core/components/lexical/SidebarLexicalEditor.tsx
16
16
  function EnterAsLineBreakHandler() {
17
17
  const $ = c(4);
18
- if ($[0] !== "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4") {
18
+ if ($[0] !== "007895f09b5a774a44cc27d8ef0328c4985b935c9b126d4ae8b5c8fe1ffd622e") {
19
19
  for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
20
- $[0] = "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4";
20
+ $[0] = "007895f09b5a774a44cc27d8ef0328c4985b935c9b126d4ae8b5c8fe1ffd622e";
21
21
  }
22
22
  const [editor] = useLexicalComposerContext();
23
23
  let t0;
@@ -41,9 +41,9 @@ function EnterAsLineBreakHandler() {
41
41
  }
42
42
  function ExternalStateSync(t0) {
43
43
  const $ = c(6);
44
- if ($[0] !== "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4") {
44
+ if ($[0] !== "007895f09b5a774a44cc27d8ef0328c4985b935c9b126d4ae8b5c8fe1ffd622e") {
45
45
  for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
46
- $[0] = "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4";
46
+ $[0] = "007895f09b5a774a44cc27d8ef0328c4985b935c9b126d4ae8b5c8fe1ffd622e";
47
47
  }
48
48
  const { value, isSyncingRef } = t0;
49
49
  const [editor] = useLexicalComposerContext();
@@ -110,7 +110,10 @@ function SidebarLexicalEditor({ id, value, onChange, onFocus, onBlur }) {
110
110
  }),
111
111
  ErrorBoundary: LexicalErrorBoundary
112
112
  }),
113
- /* @__PURE__ */ jsx(OnChangePlugin, { onChange: handleChange }),
113
+ /* @__PURE__ */ jsx(OnChangePlugin, {
114
+ onChange: handleChange,
115
+ ignoreSelectionChange: true
116
+ }),
114
117
  /* @__PURE__ */ jsx(HistoryPlugin, {}),
115
118
  /* @__PURE__ */ jsx(ExternalStateSync, {
116
119
  value,
@@ -122,9 +125,9 @@ function SidebarLexicalEditor({ id, value, onChange, onFocus, onBlur }) {
122
125
  }
123
126
  function LexicalErrorBoundary(t0) {
124
127
  const $ = c(3);
125
- if ($[0] !== "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4") {
128
+ if ($[0] !== "007895f09b5a774a44cc27d8ef0328c4985b935c9b126d4ae8b5c8fe1ffd622e") {
126
129
  for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
127
- $[0] = "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4";
130
+ $[0] = "007895f09b5a774a44cc27d8ef0328c4985b935c9b126d4ae8b5c8fe1ffd622e";
128
131
  }
129
132
  const { children } = t0;
130
133
  let t1;
@@ -14,6 +14,7 @@ declare function usePreviewedPage(): {
14
14
  fullPath: string;
15
15
  parentPageId: number | null;
16
16
  layoutId: number;
17
+ nickname: string;
17
18
  metaTitle: string | null;
18
19
  metaDescription: string | null;
19
20
  aiSeoEnabled: boolean | null;