diff --git a/.changeset/console-zod-jitless.md b/.changeset/console-zod-jitless.md new file mode 100644 index 0000000000..ef500b6e6e --- /dev/null +++ b/.changeset/console-zod-jitless.md @@ -0,0 +1,8 @@ +--- +'@object-ui/console': patch +--- + +The Console document sets zod's `jitless` before any module runs, so zod no longer probes for `eval` at boot (objectui#13511). Under a content-security-policy that refuses `eval` (the ObjectStack server's policy whenever `kind: 'react'` pages are off), that probe was refused and reported once per load; nothing broke, but each load filed a false violation report. zod now uses its interpreter on every deployment, whatever the policy. + +Clause-②: no +Metadata-protocol: none diff --git a/.changeset/react-pages-default-off.md b/.changeset/react-pages-default-off.md new file mode 100644 index 0000000000..020304e86a --- /dev/null +++ b/.changeset/react-pages-default-off.md @@ -0,0 +1,15 @@ +--- +'@object-ui/core': minor +'@object-ui/components': minor +'@object-ui/app-shell': minor +'@object-ui/console': minor +--- + +The `react-pages` capability (`kind: 'react'` pages, whose source runs in the application with no sandbox) now defaults to **off** in `@object-ui/core`. A host turns it on explicitly. This changes a published default; it is marked `minor` under this repository's version policy. + +- **ObjectStack deployments.** The server decides: with `OS_PAGE_REACT_ENABLED=true` it writes the enable global (`window.__OBJECTUI_CAPABILITIES__`) into the Console document, and otherwise the disable global. A server older than that writes only the disable global, and only when the deployment set `OS_PAGE_REACT=off`, so on such a server react pages stay off until it is upgraded. +- **A host that embeds the renderer.** FROM: react pages ran unless the host called `disableCapability('react-pages')`. TO: they run only after the host calls `enableCapability('react-pages')` (or sets the enable global before the bundle runs). +- **While off**, a react page renders the "React pages are disabled on this deployment" notice, which now names `OS_PAGE_REACT_ENABLED=true` as the switch, and the Studio's new-page dialog offers only the `html` kind. `kind: 'html'` pages are unaffected. + +Clause-②: no +Metadata-protocol: none diff --git a/apps/console/index.html b/apps/console/index.html index e4cebb7d9b..f0d70beb44 100644 --- a/apps/console/index.html +++ b/apps/console/index.html @@ -15,6 +15,31 @@