camox 0.76.1 → 0.78.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 (33) hide show
  1. package/dist/core/lib/artifactTheme.js +43 -6
  2. package/dist/features/canvas/CamoxCanvas.js +187 -197
  3. package/dist/features/canvas/canvasCameraController.js +1 -1
  4. package/dist/features/canvas/canvasItems.js +40 -9
  5. package/dist/features/canvas/sidebar/ContentSidebarFrame.js +15 -11
  6. package/dist/features/canvas/useCanvasLayout.js +34 -0
  7. package/dist/features/memory/CamoxMemory.js +747 -0
  8. package/dist/features/preview/EditablePageExperience.js +2 -0
  9. package/dist/features/runtime/publicCache.d.ts +2 -0
  10. package/dist/features/runtime/publicCache.js +27 -4
  11. package/dist/features/runtime/runtime.d.ts +1 -1
  12. package/dist/features/runtime/runtime.js +34 -15
  13. package/dist/features/studio/FollowAgentProvider.js +1 -1
  14. package/dist/features/studio/components/AgentSidebar.js +22 -16
  15. package/dist/features/studio/components/DraftBar.js +167 -103
  16. package/dist/features/studio/components/{ReviewDraftDialog.js → DraftReview.js} +191 -218
  17. package/dist/features/studio/components/DraftsControl.js +174 -202
  18. package/dist/features/studio/components/DraftsSheet.js +102 -94
  19. package/dist/features/studio/components/LocalePicker.js +518 -134
  20. package/dist/features/studio/components/Navbar.js +121 -84
  21. package/dist/features/studio/components/PublishedTab.js +21 -20
  22. package/dist/features/studio/routes.js +3 -1
  23. package/dist/features/studio/studioStore.js +12 -9
  24. package/dist/features/studio/usePublishDraft.js +116 -0
  25. package/dist/features/studio/viewSwitch.js +10 -7
  26. package/dist/lib/locale-path.js +2 -2
  27. package/dist/lib/queries.js +12 -2
  28. package/dist/lib/studio-reads.js +6 -0
  29. package/dist/package.js +1 -1
  30. package/dist/studio.css +1 -1
  31. package/package.json +5 -5
  32. package/skills/camox/references/artifacts.md +7 -0
  33. package/LICENSE.md +0 -21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "camox",
3
- "version": "0.76.1",
4
- "license": "MIT",
3
+ "version": "0.78.0",
4
+ "license": "UNLICENSED",
5
5
  "bin": {
6
6
  "camox": "./bin/camox.mjs"
7
7
  },
@@ -148,9 +148,9 @@
148
148
  "unhead": "^3.4.3",
149
149
  "yaml": "^2.9.0",
150
150
  "zod": "^4.6.7",
151
- "@camox/api-contract": "0.76.1",
152
- "@camox/cli": "0.76.1",
153
- "@camox/ui": "0.76.1"
151
+ "@camox/api-contract": "0.78.0",
152
+ "@camox/cli": "0.78.0",
153
+ "@camox/ui": "0.78.0"
154
154
  },
155
155
  "devDependencies": {
156
156
  "@earendil-works/pi-ai": "1.3.0",
@@ -55,6 +55,13 @@ The source is content, not code: set it as the artifact field's value, like any
55
55
  </script>
56
56
  ```
57
57
 
58
+ - **Mark what stays as it is in every locale with `translate="no"`.** Camox translates an artifact's words into each of the website's locales, everything but its scripts and styles. It leaves alone every element marked `translate="no"` (the HTML attribute), with everything inside it: put it on the names of products, the UI labels of a product the artifact depicts (an English-only app shows its English labels in every locale), and code. Text a script writes is never translated.
59
+
60
+ ```html
61
+ <h2>Publish in one click</h2>
62
+ <div class="toolbar" translate="no"><button>Publish</button><span>Online</span></div>
63
+ ```
64
+
58
65
  - **A meaningful `<title>`.** It names the frame for screen readers and is the artifact's Markdown Representation. Without one, the artifact is called "Untitled artifact", and `blocks create` and `blocks edit` return a warning.
59
66
  - **Motion that plays on its own goes through the Timeline** (`camox.timeline`, below): no CSS animations, CSS transitions, Web Animations or timers that move the artifact by themselves. CSS transitions stay fine for feedback to a visitor's hover or press, and so do libraries you can drive from `render(t)`.
60
67
  - **Respect `prefers-reduced-motion`.** The Timeline does it for you (it shows its poster). For any other motion, such as a hover transition, use the native media query, in CSS (`@media (prefers-reduced-motion: reduce)`) and in scripts (`matchMedia`), by stopping or simplifying it.
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- # MIT License
2
-
3
- Copyright 2026 Rémi de Juvigny
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
- of the Software, and to permit persons to whom the Software is furnished to do
10
- so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.