@serene-pub/ui-preview 0.6.0-pr-7 → 0.6.0-pr-9

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": "@serene-pub/ui-preview",
3
- "version": "0.6.0-pr-7",
3
+ "version": "0.6.0-pr-9",
4
4
  "description": "The Serene Pub surface harness: a SvelteKit dev server that renders the UI surfaces a package announces — frame panels in a real opaque-origin sandbox, components in the host document — with hot reload. Launched by `serene-pub ui`.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/SerenePub/serene-pub-sdk/tree/main/ui-preview#readme",
@@ -41,7 +41,7 @@
41
41
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
42
42
  },
43
43
  "dependencies": {
44
- "@serene-pub/controls": "^0.6.0-pr-7",
44
+ "@serene-pub/controls": "^0.6.0-pr-9",
45
45
  "@skeletonlabs/skeleton": "^5.0.0",
46
46
  "@sveltejs/kit": "^2.22.0",
47
47
  "@sveltejs/vite-plugin-svelte": "^5.1.0",
@@ -52,10 +52,10 @@
52
52
  "vite": "^6.4.0"
53
53
  },
54
54
  "peerDependencies": {
55
- "@serene-pub/sdk": "^0.6.0-pr-7"
55
+ "@serene-pub/sdk": "^0.6.0-pr-9"
56
56
  },
57
57
  "devDependencies": {
58
- "@serene-pub/sdk": "0.6.0-pr-7",
58
+ "@serene-pub/sdk": "0.6.0-pr-9",
59
59
  "svelte-check": "^4.0.0",
60
60
  "typescript": "~5.9.0"
61
61
  },
@@ -39,7 +39,7 @@
39
39
  * file. Read `nextCursor` and hand it back; never parse it.
40
40
  */
41
41
 
42
- import { FRAME_PROTOCOL, SAVE_STATE_MAX_BYTES, type FrameHostMessage, type FramePoint, type HostFrameMessage } from '@serene-pub/sdk'
42
+ import { FRAME_PROTOCOL, SAVE_STATE_MAX_BYTES, type FrameHostMessage, type FramePoint, type HostFrameMessage, type FrontEndMount } from '@serene-pub/sdk'
43
43
 
44
44
  /** The rows the host pages over — the fixtures, as the stage holds them. */
45
45
  export type FrameRow = Record<string, unknown>
@@ -64,10 +64,14 @@ export const FRAME_PAGE_MAX = 200
64
64
  export const FRAME_STATE_MAX_BYTES = SAVE_STATE_MAX_BYTES
65
65
 
66
66
  /** `init`, as a protocol-2 host sends it. */
67
- export const initMessage = (surface: FramePoint): Extract<HostFrameMessage, { t: 'init' }> => ({
67
+ export const initMessage = (
68
+ surface: FramePoint,
69
+ mount?: FrontEndMount,
70
+ ): Extract<HostFrameMessage, { t: 'init' }> => ({
68
71
  t: 'init',
69
72
  protocol: FRAME_PROTOCOL,
70
73
  surface,
74
+ ...(mount ? { mount } : {}),
71
75
  })
72
76
 
73
77
  // ── Saved view state ────────────────────────────────────────────────────────