camox 0.26.0 → 0.27.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.
- package/dist/core/components/lexical/InlineLexicalEditor.js +14 -11
- package/dist/core/components/lexical/SidebarLexicalEditor.js +10 -7
- package/dist/features/preview/CamoxPreview.d.ts +1 -0
- package/dist/features/preview/CamoxPreview.js +507 -147
- package/dist/features/preview/components/AssetLightbox.js +1 -1
- package/dist/features/preview/components/BlockActionsPopover.js +1 -1
- package/dist/features/preview/components/CreatePageModal.js +23 -8
- package/dist/features/preview/components/FieldToolbar.js +1 -1
- package/dist/features/preview/components/LinkFieldEditor.js +192 -204
- package/dist/features/preview/components/PageContentSheet.js +1 -1
- package/dist/features/preview/components/PageLocationFieldset.js +3 -4
- package/dist/features/preview/components/{EditPageModal.js → PageMetadataModal.js} +413 -229
- package/dist/features/preview/components/PageNicknameField.js +69 -0
- package/dist/features/preview/components/PagePicker.js +21 -84
- package/dist/features/preview/components/PageStatusBadge.js +97 -0
- package/dist/features/preview/components/PreviewToolbar.js +1 -1
- package/dist/features/preview/components/PublishDialog.js +1 -1
- package/dist/features/preview/components/UnlinkAssetButton.js +1 -1
- package/dist/features/routes/pageRoute.d.ts +3 -1
- package/dist/features/routes/pageRoute.js +34 -11
- package/dist/features/studio/components/EnvironmentMenu.js +1 -1
- package/dist/features/studio/components/ProjectMenu.js +1 -1
- package/dist/features/studio/components/UserButton.js +1 -1
- package/dist/lib/auth.js +43 -15
- package/dist/lib/queries.js +1 -0
- package/dist/lib/utils.js +1 -11
- package/dist/studio.css +1 -1
- package/package.json +4 -4
- package/skills/camox-cli/SKILL.md +71 -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] !== "
|
|
19
|
+
if ($[0] !== "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5") {
|
|
20
20
|
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
21
|
-
$[0] = "
|
|
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] !== "
|
|
78
|
+
if ($[0] !== "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5") {
|
|
79
79
|
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
80
|
-
$[0] = "
|
|
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] !== "
|
|
103
|
+
if ($[0] !== "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5") {
|
|
104
104
|
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
105
|
-
$[0] = "
|
|
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] !== "
|
|
129
|
+
if ($[0] !== "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5") {
|
|
130
130
|
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
131
|
-
$[0] = "
|
|
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, {
|
|
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] !== "
|
|
219
|
+
if ($[0] !== "4a0a85f4e9100a4a1fff0d37d18bcca0d7826f263ae50ef5a99743e122c031e5") {
|
|
217
220
|
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
218
|
-
$[0] = "
|
|
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] !== "
|
|
18
|
+
if ($[0] !== "007895f09b5a774a44cc27d8ef0328c4985b935c9b126d4ae8b5c8fe1ffd622e") {
|
|
19
19
|
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
20
|
-
$[0] = "
|
|
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] !== "
|
|
44
|
+
if ($[0] !== "007895f09b5a774a44cc27d8ef0328c4985b935c9b126d4ae8b5c8fe1ffd622e") {
|
|
45
45
|
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
46
|
-
$[0] = "
|
|
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, {
|
|
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] !== "
|
|
128
|
+
if ($[0] !== "007895f09b5a774a44cc27d8ef0328c4985b935c9b126d4ae8b5c8fe1ffd622e") {
|
|
126
129
|
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
127
|
-
$[0] = "
|
|
130
|
+
$[0] = "007895f09b5a774a44cc27d8ef0328c4985b935c9b126d4ae8b5c8fe1ffd622e";
|
|
128
131
|
}
|
|
129
132
|
const { children } = t0;
|
|
130
133
|
let t1;
|