camox 0.65.1 → 0.67.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 (42) hide show
  1. package/dist/features/canvas/CamoxCanvas.js +195 -173
  2. package/dist/features/canvas/canvasFrameCapture.js +5 -12
  3. package/dist/features/canvas/canvasFrameDocument.js +90 -29
  4. package/dist/features/canvas/canvasItems.js +22 -6
  5. package/dist/features/canvas/sidebar/ContentSidebar.js +19 -21
  6. package/dist/features/canvas/sidebar/LayoutPageOverview.js +22 -49
  7. package/dist/features/canvas/sidebar/LayoutPageSeo.js +73 -76
  8. package/dist/features/canvas/sidebar/PageInspector.js +61 -50
  9. package/dist/features/canvas/sidebar/PageInspectorSkeleton.js +4 -4
  10. package/dist/features/canvas/useCanvasCamera.js +22 -5
  11. package/dist/features/content/components/MissingFromLocale.js +1 -1
  12. package/dist/features/page/UnplacedLayoutContent.js +141 -0
  13. package/dist/features/preview/components/ItemFieldsEditor.js +50 -44
  14. package/dist/features/preview/components/PageInfo.js +103 -100
  15. package/dist/features/preview/components/SelectionEditor.js +284 -231
  16. package/dist/features/preview/components/contentFieldSchema.js +5 -1
  17. package/dist/features/runtime/RuntimeChrome.js +66 -40
  18. package/dist/features/runtime/pageApp.js +24 -10
  19. package/dist/features/runtime/runtime.d.ts +13 -0
  20. package/dist/features/runtime/runtime.js +58 -2
  21. package/dist/features/studio/components/AgentSidebar.js +3 -3
  22. package/dist/features/studio/components/ChatWidget.js +34 -29
  23. package/dist/features/studio/components/ContentFindings.js +397 -0
  24. package/dist/features/studio/components/DraftsControl.js +172 -159
  25. package/dist/features/studio/components/Patrol.js +449 -426
  26. package/dist/features/studio/components/ReviewDraftSheet.js +231 -192
  27. package/dist/features/studio/components/Squareling.js +0 -9
  28. package/dist/features/studio/components/ThreadComposer.js +183 -121
  29. package/dist/features/studio/components/ThreadMessages.js +19 -11
  30. package/dist/features/studio/components/UnnamedDraftBar.js +349 -0
  31. package/dist/features/studio/findingSentence.js +3 -5
  32. package/dist/features/studio/patrollerBio.js +39 -0
  33. package/dist/features/studio/reportSentence.js +0 -5
  34. package/dist/features/studio/studioStore.js +13 -0
  35. package/dist/features/studio/workingSentence.js +2 -11
  36. package/dist/lib/revisions.js +25 -3
  37. package/dist/lib/use-thread.js +1 -1
  38. package/dist/package.js +1 -1
  39. package/dist/studio.css +1 -1
  40. package/package.json +4 -4
  41. package/dist/features/canvas/sidebar/DerivedPageInspector.js +0 -49
  42. package/dist/features/canvas/sidebar/SingletonPageInspector.js +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camox",
3
- "version": "0.65.1",
3
+ "version": "0.67.0",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "camox": "./bin/camox.mjs"
@@ -148,9 +148,9 @@
148
148
  "unhead": "^3.4.3",
149
149
  "yaml": "^2.9.0",
150
150
  "zod": "^4.6.7",
151
- "@camox/cli": "0.65.1",
152
- "@camox/api-contract": "0.65.1",
153
- "@camox/ui": "0.65.1"
151
+ "@camox/cli": "0.67.0",
152
+ "@camox/api-contract": "0.67.0",
153
+ "@camox/ui": "0.67.0"
154
154
  },
155
155
  "devDependencies": {
156
156
  "@earendil-works/pi-ai": "1.3.0",
@@ -1,49 +0,0 @@
1
- import { LayoutPageOverview } from "./LayoutPageOverview.js";
2
- import { c } from "react/compiler-runtime";
3
- import { jsx } from "react/jsx-runtime";
4
-
5
- //#region src/features/canvas/sidebar/DerivedPageInspector.tsx
6
- /**
7
- * A derived page: its layout's blocks, shared by every page of the layout, around content
8
- * its code generates. A record page's content is its record, edited from the preview.
9
- */
10
- function DerivedPageInspector(t0) {
11
- const $ = c(9);
12
- const { layoutId, pageRecord, runtimeBasePath } = t0;
13
- let t1;
14
- if ($[0] !== layoutId || $[1] !== runtimeBasePath) {
15
- t1 = {
16
- runtimeBasePath,
17
- derivedLayoutId: layoutId
18
- };
19
- $[0] = layoutId;
20
- $[1] = runtimeBasePath;
21
- $[2] = t1;
22
- } else t1 = $[2];
23
- const t2 = pageRecord ? "Changes to these blocks apply to every page using this layout. Select this page’s content in the preview to edit its record, shared everywhere it appears." : "Changes apply to every page using this layout. The generated page content is managed outside the studio.";
24
- let t3;
25
- if ($[3] !== t2) {
26
- t3 = {
27
- title: "Shared layout blocks",
28
- description: t2
29
- };
30
- $[3] = t2;
31
- $[4] = t3;
32
- } else t3 = $[4];
33
- let t4;
34
- if ($[5] !== layoutId || $[6] !== t1 || $[7] !== t3) {
35
- t4 = /* @__PURE__ */ jsx(LayoutPageOverview, {
36
- layoutId,
37
- target: t1,
38
- notice: t3
39
- });
40
- $[5] = layoutId;
41
- $[6] = t1;
42
- $[7] = t3;
43
- $[8] = t4;
44
- } else t4 = $[8];
45
- return t4;
46
- }
47
-
48
- //#endregion
49
- export { DerivedPageInspector };
@@ -1,39 +0,0 @@
1
- import { LayoutPageOverview } from "./LayoutPageOverview.js";
2
- import { c } from "react/compiler-runtime";
3
- import { jsx } from "react/jsx-runtime";
4
-
5
- //#region src/features/canvas/sidebar/SingletonPageInspector.tsx
6
- /** A singleton page: its layout's blocks are all its blocks, edited here, at a fixed URL. */
7
- function SingletonPageInspector(t0) {
8
- const $ = c(6);
9
- const { layoutId, runtimeBasePath } = t0;
10
- let t1;
11
- if ($[0] !== runtimeBasePath) {
12
- t1 = { runtimeBasePath };
13
- $[0] = runtimeBasePath;
14
- $[1] = t1;
15
- } else t1 = $[1];
16
- let t2;
17
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
18
- t2 = {
19
- title: "Fixed page structure",
20
- description: "Edit this page’s blocks here. Its URL and structure are defined in code. Synced blocks share content with their other placements."
21
- };
22
- $[2] = t2;
23
- } else t2 = $[2];
24
- let t3;
25
- if ($[3] !== layoutId || $[4] !== t1) {
26
- t3 = /* @__PURE__ */ jsx(LayoutPageOverview, {
27
- layoutId,
28
- target: t1,
29
- notice: t2
30
- });
31
- $[3] = layoutId;
32
- $[4] = t1;
33
- $[5] = t3;
34
- } else t3 = $[5];
35
- return t3;
36
- }
37
-
38
- //#endregion
39
- export { SingletonPageInspector };