@dimina-kit/electron-deck 0.1.0-dev.20260616024534 → 0.1.0-dev.20260616085026
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/README.md +2 -0
- package/dist/dock-react/dock-view.d.ts +51 -0
- package/dist/dock-react/dock-view.d.ts.map +1 -0
- package/dist/dock-react/drag-redock.d.ts +95 -0
- package/dist/dock-react/drag-redock.d.ts.map +1 -0
- package/dist/dock-react/index.d.ts +12 -0
- package/dist/dock-react/index.d.ts.map +1 -0
- package/dist/dock-react/index.js +671 -0
- package/dist/dock-react/index.js.map +1 -0
- package/dist/layout/index.d.ts +13 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/index.js +2 -0
- package/dist/layout/model.d.ts +16 -0
- package/dist/layout/model.d.ts.map +1 -0
- package/dist/layout/mutations.d.ts +31 -0
- package/dist/layout/mutations.d.ts.map +1 -0
- package/dist/layout/registry.d.ts +6 -0
- package/dist/layout/registry.d.ts.map +1 -0
- package/dist/layout/serialize.d.ts +10 -0
- package/dist/layout/serialize.d.ts.map +1 -0
- package/dist/layout/types.d.ts +83 -0
- package/dist/layout/types.d.ts.map +1 -0
- package/dist/layout-CZtF0auJ.js +522 -0
- package/dist/layout-CZtF0auJ.js.map +1 -0
- package/dist/types.d.ts +52 -11
- package/dist/types.d.ts.map +1 -1
- package/package.json +26 -5
package/dist/types.d.ts
CHANGED
|
@@ -9,10 +9,26 @@ export type JsonValue = JsonPrimitive | {
|
|
|
9
9
|
export interface Disposable {
|
|
10
10
|
dispose(): void | Promise<void>;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* `@experimental` convention (used throughout this file)
|
|
14
|
+
* --------------------------------------------------------
|
|
15
|
+
* The high-level host-shell surface — `runtime.windows.*` (Window facade),
|
|
16
|
+
* `runtime.view` / `DeckViewHandle`, `runtime.scopes` / `DeckSession`,
|
|
17
|
+
* `runtime.grants`, `runtime.layout` — is fully built and wired, but has NO
|
|
18
|
+
* production consumer yet: the only callers are `examples/layout-demo` and
|
|
19
|
+
* `spike/popout`. The devtools/qdmp host integrates through the `RuntimeBackend`
|
|
20
|
+
* lifecycle path with `ownsWindows:true` and never touches this surface.
|
|
21
|
+
*
|
|
22
|
+
* Until a SECOND, real consumer adopts it, these signatures are NOT API-stable —
|
|
23
|
+
* treat them as `@experimental`. Do not assume any of it is validated against a
|
|
24
|
+
* non-demo workload. Rationale + the ROI matrix that decided devtools should NOT
|
|
25
|
+
* migrate onto it: packages/devtools/docs/deck-adoption-decision.md.
|
|
26
|
+
*/
|
|
12
27
|
/** Opaque session handle minted by `runtime.scopes.create()` (app-root) or
|
|
13
28
|
* `DeckWindow.newSession()` (window-rooted). Wraps a child Scope, so disposing
|
|
14
29
|
* it (or app shutdown / window close) tears down every view bound to it. Does
|
|
15
|
-
* NOT expose the internal Scope (no adopt/child escape).
|
|
30
|
+
* NOT expose the internal Scope (no adopt/child escape).
|
|
31
|
+
* @experimental No production consumer yet — see the convention note above. */
|
|
16
32
|
export interface DeckSession {
|
|
17
33
|
/** Release THIS session's views (and any other owned resources of its current
|
|
18
34
|
* segment), keeping the session AND its window alive — a fresh segment opens. */
|
|
@@ -20,9 +36,13 @@ export interface DeckSession {
|
|
|
20
36
|
/** Terminal: dispose every view bound to the session and close it. */
|
|
21
37
|
dispose(): Promise<void>;
|
|
22
38
|
}
|
|
23
|
-
/** A per-window close decision. `'keep'` vetoes the close; `'close'` proceeds.
|
|
39
|
+
/** A per-window close decision. `'keep'` vetoes the close; `'close'` proceeds.
|
|
40
|
+
* @experimental Only reached via the {@link DeckWindow} facade — see the
|
|
41
|
+
* convention note above. (`RuntimeBackend.onMainWindowClose` uses an inline
|
|
42
|
+
* `'keep' | 'close'`, not this alias.) */
|
|
24
43
|
export type WindowCloseDecision = 'keep' | 'close';
|
|
25
|
-
/** A cancelable per-window close decider registered via {@link DeckWindow.onClose}.
|
|
44
|
+
/** A cancelable per-window close decider registered via {@link DeckWindow.onClose}.
|
|
45
|
+
* @experimental No production consumer yet — see the convention note above. */
|
|
26
46
|
export type WindowCloseDecider = () => MaybePromise<WindowCloseDecision>;
|
|
27
47
|
/**
|
|
28
48
|
* Opaque handle over a framework-registered window (`runtime.windows.create()`
|
|
@@ -30,6 +50,8 @@ export type WindowCloseDecider = () => MaybePromise<WindowCloseDecision>;
|
|
|
30
50
|
* window-rooted session factory, and a per-window cancelable close decider.
|
|
31
51
|
*
|
|
32
52
|
* **Never exposes** the raw windowScope / substrate / trust lease.
|
|
53
|
+
*
|
|
54
|
+
* @experimental No production consumer yet — see the convention note above.
|
|
33
55
|
*/
|
|
34
56
|
export interface DeckWindow {
|
|
35
57
|
/** The BrowserWindow this handle wraps. */
|
|
@@ -229,6 +251,8 @@ export interface FrameworkEvents {
|
|
|
229
251
|
error: unknown;
|
|
230
252
|
};
|
|
231
253
|
}
|
|
254
|
+
/** @experimental Window facade option bag — no production consumer yet (see the
|
|
255
|
+
* convention note above). */
|
|
232
256
|
export interface WindowCreateOptions {
|
|
233
257
|
readonly source: WebviewSource;
|
|
234
258
|
readonly preloadPath?: string;
|
|
@@ -239,7 +263,9 @@ export interface WindowCreateOptions {
|
|
|
239
263
|
/** 默认 true */
|
|
240
264
|
readonly autoTrust?: boolean;
|
|
241
265
|
}
|
|
242
|
-
/** A screen-space rectangle (CSS px), mirroring the `view-handle` `Bounds`.
|
|
266
|
+
/** A screen-space rectangle (CSS px), mirroring the `view-handle` `Bounds`.
|
|
267
|
+
* @experimental Part of the host-view surface — no production consumer yet (see
|
|
268
|
+
* the convention note above). */
|
|
243
269
|
export interface ViewBounds {
|
|
244
270
|
readonly x: number;
|
|
245
271
|
readonly y: number;
|
|
@@ -250,6 +276,9 @@ export interface ViewBounds {
|
|
|
250
276
|
* Explicit visibility + geometry for a host-managed native view. Structurally
|
|
251
277
|
* identical to the internal `view-handle` `Placement`; re-declared here so the
|
|
252
278
|
* public `Runtime` surface adds no internal-module dependency.
|
|
279
|
+
*
|
|
280
|
+
* @experimental Part of the host-view surface — no production consumer yet (see
|
|
281
|
+
* the convention note above).
|
|
253
282
|
*/
|
|
254
283
|
export type ViewPlacement = {
|
|
255
284
|
readonly visible: true;
|
|
@@ -257,7 +286,8 @@ export type ViewPlacement = {
|
|
|
257
286
|
} | {
|
|
258
287
|
readonly visible: false;
|
|
259
288
|
};
|
|
260
|
-
/** Options for {@link Runtime.view}.
|
|
289
|
+
/** Options for {@link Runtime.view}.
|
|
290
|
+
* @experimental No production consumer yet — see the convention note above. */
|
|
261
291
|
export interface ViewCreateOptions {
|
|
262
292
|
readonly source: WebviewSource;
|
|
263
293
|
/** The view's home lifetime — a {@link DeckSession} from
|
|
@@ -286,6 +316,8 @@ export interface ViewCreateOptions {
|
|
|
286
316
|
* A host-API handle over ONE native view (`runtime.view(...)`). Chainable:
|
|
287
317
|
* `placeIn` and `applyPlacement` both return the handle so calls compose.
|
|
288
318
|
* `dispose` detaches the view and makes the placement sink inert.
|
|
319
|
+
*
|
|
320
|
+
* @experimental No production consumer yet — see the convention note above.
|
|
289
321
|
*/
|
|
290
322
|
export interface DeckViewHandle {
|
|
291
323
|
/** Mount the native view into `window`'s content view at the given zone.
|
|
@@ -332,6 +364,8 @@ export interface Runtime {
|
|
|
332
364
|
simulator(name: string, ...args: JsonValue[]): Promise<JsonValue>;
|
|
333
365
|
host(name: string, ...args: JsonValue[]): Promise<JsonValue>;
|
|
334
366
|
};
|
|
367
|
+
/** @experimental Window facade — no production consumer yet (see the
|
|
368
|
+
* convention note near the top of this file). */
|
|
335
369
|
readonly windows: {
|
|
336
370
|
create(opts: WindowCreateOptions): DeckWindow;
|
|
337
371
|
get(id: string): BrowserWindow | undefined;
|
|
@@ -372,30 +406,37 @@ export interface Runtime {
|
|
|
372
406
|
}): Disposable;
|
|
373
407
|
};
|
|
374
408
|
/** Create a host-managed native view and return a chainable handle. Throws
|
|
375
|
-
* if the build has no Electron (mirrors `windows.create`).
|
|
409
|
+
* if the build has no Electron (mirrors `windows.create`).
|
|
410
|
+
* @experimental No production consumer yet — see the convention note above. */
|
|
376
411
|
view(opts: ViewCreateOptions): DeckViewHandle;
|
|
377
412
|
/** Session factory. `create()` mints an opaque {@link DeckSession} (internally
|
|
378
413
|
* a child of the app root) — the ONLY legitimate source of a `scope` for
|
|
379
414
|
* `runtime.view`. Disposing the session tears down every view bound to it;
|
|
380
|
-
* app shutdown also cascades into it.
|
|
415
|
+
* app shutdown also cascades into it.
|
|
416
|
+
* @experimental No production consumer yet — see the convention note above. */
|
|
381
417
|
readonly scopes: {
|
|
382
418
|
create(): DeckSession;
|
|
383
419
|
};
|
|
420
|
+
/** @experimental Capability/grant surface — no production consumer yet (see
|
|
421
|
+
* the convention note near the top of this file). */
|
|
384
422
|
readonly grants: {
|
|
385
423
|
/** Authorize `controlWc` to invoke the given privileged commands. The grant
|
|
386
424
|
* is revoked automatically when the control wc's lifetime Scope resets
|
|
387
425
|
* (navigation) or closes (destroy) — wc.id-reuse safe. Throws if `controlWc`
|
|
388
426
|
* is not trusted.
|
|
389
427
|
*
|
|
390
|
-
* `targetScope` is OPTIONAL and
|
|
391
|
-
* authorization boundary for FUTURE per-target view-command
|
|
392
|
-
* current grant gate authorizes by (senderId, command-name)
|
|
393
|
-
* resolves a target view yet, so targetScope is
|
|
428
|
+
* `@experimental` `targetScope` is OPTIONAL and currently INERT: when supplied
|
|
429
|
+
* it is stored as the authorization boundary for FUTURE per-target view-command
|
|
430
|
+
* checks, but the current grant gate authorizes by (senderId, command-name)
|
|
431
|
+
* only — no command resolves a target view yet, so targetScope is NOT consulted
|
|
432
|
+
* at dispatch. Passing it today has no effect; do not rely on it for isolation. */
|
|
394
433
|
issue(controlWc: WebContents, opts: {
|
|
395
434
|
commands: readonly string[];
|
|
396
435
|
targetScope?: DeckSession;
|
|
397
436
|
}): Disposable;
|
|
398
437
|
};
|
|
438
|
+
/** @experimental Privileged-command surface — no production consumer yet (see
|
|
439
|
+
* the convention note near the top of this file). */
|
|
399
440
|
readonly layout: {
|
|
400
441
|
/** Register a PRIVILEGED command (must be a `layout.*` name) handled through
|
|
401
442
|
* the capability-gated ControlBus. A caller can only invoke it if a live
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACjG,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEtF,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AAE5C,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;AAC5D,MAAM,MAAM,SAAS,GAClB,aAAa,GACb;IAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GACnC,SAAS,SAAS,EAAE,CAAA;AAEvB,MAAM,WAAW,UAAU;IAC1B,OAAO,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC/B;AAED
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACjG,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEtF,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,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 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimina-kit/electron-deck",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.20260616085026",
|
|
4
4
|
"description": "Dimina devtools electron-deck framework — single `electronDeck(config)` entry for hosts (qdmp, dimina default).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dimina",
|
|
@@ -49,6 +49,14 @@
|
|
|
49
49
|
"./host": {
|
|
50
50
|
"types": "./dist/host/index.d.ts",
|
|
51
51
|
"default": "./dist/host/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./layout": {
|
|
54
|
+
"types": "./dist/layout/index.d.ts",
|
|
55
|
+
"default": "./dist/layout/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./dock-react": {
|
|
58
|
+
"types": "./dist/dock-react/index.d.ts",
|
|
59
|
+
"default": "./dist/dock-react/index.js"
|
|
52
60
|
}
|
|
53
61
|
},
|
|
54
62
|
"files": [
|
|
@@ -57,12 +65,22 @@
|
|
|
57
65
|
"LICENSE"
|
|
58
66
|
],
|
|
59
67
|
"dependencies": {
|
|
60
|
-
"
|
|
68
|
+
"react-resizable-panels": "^4.10.0",
|
|
69
|
+
"@dimina-kit/view-anchor": "0.1.0-dev.20260616085026"
|
|
61
70
|
},
|
|
62
71
|
"devDependencies": {
|
|
72
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
73
|
+
"@testing-library/react": "^16.3.2",
|
|
63
74
|
"@types/node": "^22.15.3",
|
|
75
|
+
"@types/react": "^18.3.12",
|
|
76
|
+
"@types/react-dom": "^18.3.1",
|
|
77
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
64
78
|
"electron": "^41.2.1",
|
|
65
79
|
"eslint": "^10.2.1",
|
|
80
|
+
"jsdom": "^29.0.2",
|
|
81
|
+
"react": "^18.3.1",
|
|
82
|
+
"react-dom": "^18.3.1",
|
|
83
|
+
"react-resizable-panels": "^4.10.0",
|
|
66
84
|
"typescript": "5.9.2",
|
|
67
85
|
"vite": "^8.0.16",
|
|
68
86
|
"vitest": "^4.1.4",
|
|
@@ -70,7 +88,8 @@
|
|
|
70
88
|
"@dimina-kit/typescript-config": "0.1.0"
|
|
71
89
|
},
|
|
72
90
|
"peerDependencies": {
|
|
73
|
-
"electron": ">=36"
|
|
91
|
+
"electron": ">=36",
|
|
92
|
+
"react": ">=18"
|
|
74
93
|
},
|
|
75
94
|
"publishConfig": {
|
|
76
95
|
"access": "public"
|
|
@@ -81,7 +100,9 @@
|
|
|
81
100
|
"lint": "eslint . --max-warnings 0",
|
|
82
101
|
"check:trust-seal": "node scripts/check-trust-seal.mjs",
|
|
83
102
|
"check:docs-api-sync": "node scripts/check-docs-api-sync.mjs",
|
|
84
|
-
"test": "node scripts/check-trust-seal.mjs && node scripts/check-docs-api-sync.mjs && vitest run",
|
|
85
|
-
"test:dev": "vitest"
|
|
103
|
+
"test": "node scripts/check-trust-seal.mjs && node scripts/check-docs-api-sync.mjs && vitest run && vitest run --config vitest.dock-react.config.ts",
|
|
104
|
+
"test:dev": "vitest",
|
|
105
|
+
"test:dock-react": "vitest run --config vitest.dock-react.config.ts",
|
|
106
|
+
"examples:dockable": "pnpm run build && node examples/dockable-demo/bundle.mjs && electron examples/dockable-demo/main.mjs"
|
|
86
107
|
}
|
|
87
108
|
}
|