@isoloop/dom 0.0.0 → 0.1.0-next.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.
@@ -0,0 +1,12 @@
1
+ /** `@isoloop/dom/worker`: the DOM subset and its recorder (ADR 0011). Internal to `@isoloop/runtime`. */
2
+ import { a as ISOLOOP_DOM_FMT, c as ROOT_ID, i as DomRecord, l as SerializedNode, n as DomEvent, o as Namespace, r as DomMods, s as NodeId, t as DomBatch, u as SyncedProp } from "./records-OXGckMg9.js";
3
+ import { a as WDocumentFragment, c as WText, d as createDom, i as WDocument, l as WorkerDom, n as RootOptions, o as WElement, r as WComment, s as WNode, t as RenderRoot, u as WorkerDomOptions } from "./dom-Bctskbvg.js";
4
+ /** The DOM globals the subset provides (ADR 0010 point 2), by their DOM names. */
5
+ export declare const DOM_GLOBALS: Readonly<Record<string, unknown>>;
6
+ /**
7
+ * Exposes `dom` as the worker's `document`, `window` and DOM classes, so
8
+ * frameworks find them where they look. Only for isolates with a surface; a
9
+ * headless isolate never calls this.
10
+ */
11
+ export declare function install(dom: WorkerDom, scope: object): void;
12
+ export { type DomBatch, type DomEvent, type DomMods, type DomRecord, ISOLOOP_DOM_FMT, type Namespace, type NodeId, ROOT_ID, type RenderRoot, type RootOptions, type SerializedNode, type SyncedProp, WComment, WDocument, WDocumentFragment, WElement, WNode, WText, type WorkerDom, type WorkerDomOptions, createDom };
package/dist/worker.js ADDED
@@ -0,0 +1,4 @@
1
+ import { n as ROOT_ID, t as ISOLOOP_DOM_FMT } from "./records-wVZrPpqr.js";
2
+ import { _ as WText, a as WDocumentFragment, i as WDocument, m as WNode, n as WComment, o as WElement, v as createDom } from "./dom-yLsf0Z4e.js";
3
+ import { n as install, t as DOM_GLOBALS } from "./install-D7m7By8i.js";
4
+ export { DOM_GLOBALS, ISOLOOP_DOM_FMT, ROOT_ID, WComment, WDocument, WDocumentFragment, WElement, WNode, WText, createDom, install };
package/package.json CHANGED
@@ -1,9 +1,50 @@
1
1
  {
2
2
  "name": "@isoloop/dom",
3
- "version": "0.0.0",
4
- "description": "Placeholder for @isoloop/dom. Real releases come from https://github.com/isoloop/isoloop.",
3
+ "version": "0.1.0-next.0",
4
+ "description": "Internal: Isoloop's render bridge (isoloop-dom@1). Used by @isoloop/runtime and @isoloop/host; not for app code.",
5
5
  "license": "MIT",
6
- "repository": { "type": "git", "url": "git+https://github.com/isoloop/isoloop.git", "directory": "packages/dom" },
7
- "homepage": "https://github.com/isoloop/isoloop",
8
- "publishConfig": { "access": "public" }
9
- }
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/isoloop/isoloop.git",
11
+ "directory": "packages/dom"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "exports": {
17
+ "./worker": {
18
+ "types": "./dist/worker.d.ts",
19
+ "import": "./dist/worker.js"
20
+ },
21
+ "./host": {
22
+ "types": "./dist/host.d.ts",
23
+ "import": "./dist/host.js"
24
+ },
25
+ "./testing": {
26
+ "types": "./dist/testing.d.ts",
27
+ "import": "./dist/testing.js"
28
+ },
29
+ "./testing/worker": {
30
+ "types": "./dist/testing-worker.d.ts",
31
+ "import": "./dist/testing-worker.js"
32
+ }
33
+ },
34
+ "peerDependencies": {
35
+ "vitest": "5.0.5"
36
+ },
37
+ "peerDependenciesMeta": {
38
+ "vitest": {
39
+ "optional": true
40
+ }
41
+ },
42
+ "devDependencies": {
43
+ "typescript": "7.0.2",
44
+ "vitest": "5.0.5"
45
+ },
46
+ "scripts": {
47
+ "build": "tsdown",
48
+ "typecheck": "tsc --noEmit -p tsconfig.shared.json && tsc --noEmit -p tsconfig.worker.json && tsc --noEmit -p tsconfig.host.json && tsc --noEmit -p tsconfig.testing.json"
49
+ }
50
+ }