@crossworks/share-ui 0.400.44 → 0.400.56
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossworks/share-ui",
|
|
3
|
-
"version": "0.400.
|
|
3
|
+
"version": "0.400.56",
|
|
4
4
|
"description": "The server-rendered share surface — the /s/<token> presenters, view-payload contract, mini-app sandbox, and the few primitives they need. Lives in MANTLE (the server renders these), published for jackdaw to consume; may depend only on @mantle/{client-types,content-core} (the jackdaw-repo-split boundary).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@dicebear/core": "^10.7.0",
|
|
43
43
|
"@dicebear/styles": "^10.6.0",
|
|
44
|
-
"@mantle/client-types": "npm:@crossworks/client-types@0.400.
|
|
45
|
-
"@mantle/content-core": "npm:@crossworks/content-core@0.400.
|
|
44
|
+
"@mantle/client-types": "npm:@crossworks/client-types@0.400.56",
|
|
45
|
+
"@mantle/content-core": "npm:@crossworks/content-core@0.400.56",
|
|
46
46
|
"@radix-ui/react-label": "^2.1.17",
|
|
47
47
|
"@radix-ui/react-slot": "^1.5.0",
|
|
48
48
|
"class-variance-authority": "^0.7.1",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runInContext, runInNewContext } from 'node:vm';
|
|
1
|
+
import { createContext, runInContext, runInNewContext } from 'node:vm';
|
|
2
2
|
import { describe, expect, it } from 'vitest';
|
|
3
3
|
import {
|
|
4
4
|
buildCanvasEmbedCsp,
|
|
@@ -250,7 +250,9 @@ describe('the frame prelude: mantle.data (DWG phase 7a)', () => {
|
|
|
250
250
|
setTimeout,
|
|
251
251
|
clearTimeout,
|
|
252
252
|
};
|
|
253
|
-
runInNewContext
|
|
253
|
+
// One realm: on Bun runInNewContext would give the prelude one of its own.
|
|
254
|
+
createContext(ctx);
|
|
255
|
+
runInContext(prelude, ctx);
|
|
254
256
|
// What a canvas runs after the prelude, in the same realm.
|
|
255
257
|
if (canvas) runInContext(canvas, ctx);
|
|
256
258
|
const api = (
|