@xenosystem/blocks 0.19.1 → 0.20.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.
@@ -4072,7 +4072,7 @@ declare const CURVE_DECLARATION: BlockDeclaration;
4072
4072
  * through `applyCurveUi`.
4073
4073
  *
4074
4074
  * Composes `@xenosystem/components/chrome`. **The host must import
4075
- * `@xenosystem/workbench/primitives.css`** or this renders unstyled with no error.
4075
+ * `ensurePanelPrimitivesInjected() from @xenosystem/components/chrome`** or this renders unstyled with no error.
4076
4076
  *
4077
4077
  * Monochromatic per `DESIGN_SYSTEM.md`. Channels are differentiated by **dash pattern and opacity**,
4078
4078
  * not colour — a host may declare an accent per channel, and only then is one used.
@@ -5069,7 +5069,7 @@ declare const FIND_DECLARATION: BlockDeclaration;
5069
5069
  * this file owns that the declaration cannot is the keyboard model on the root (`find/Keys`):
5070
5070
  * Enter / Shift+Enter walk the matches, Escape clears.
5071
5071
  *
5072
- * Composes `@xenosystem/components/chrome`; the host must ensure `@xenosystem/workbench/primitives.css` is
5072
+ * Composes `@xenosystem/components/chrome`; the host must ensure `ensurePanelPrimitivesInjected() from @xenosystem/components/chrome` is
5073
5073
  * present.
5074
5074
  *
5075
5075
  * @module
@@ -5663,7 +5663,7 @@ declare const COMMENTS_DECLARATION: BlockDeclaration;
5663
5663
  * runtime-bound unit; every intent — including the keyboard shortcuts — goes through
5664
5664
  * `applyCommentsUi`.
5665
5665
  *
5666
- * Composes `@xenosystem/components/chrome`; the host must ensure `@xenosystem/workbench/primitives.css` is
5666
+ * Composes `@xenosystem/components/chrome`; the host must ensure `ensurePanelPrimitivesInjected() from @xenosystem/components/chrome` is
5667
5667
  * present.
5668
5668
  *
5669
5669
  * @module
@@ -6647,7 +6647,7 @@ declare const NODEGRAPH_DECLARATION: BlockDeclaration;
6647
6647
  * `applyNodeGraphUi`.
6648
6648
  *
6649
6649
  * Composes `@xenosystem/components/chrome`. **The host must import
6650
- * `@xenosystem/workbench/primitives.css`** or this renders unstyled with no error.
6650
+ * `ensurePanelPrimitivesInjected() from @xenosystem/components/chrome`** or this renders unstyled with no error.
6651
6651
  *
6652
6652
  * Monochromatic per `DESIGN_SYSTEM.md`: rectangles with a corner radius, **no circles** — ports are
6653
6653
  * small squares, not dots. A host may declare an accent per node; nothing else carries colour.
@@ -632,7 +632,7 @@ declare const CONSOLE_DECLARATION: BlockDeclaration;
632
632
  * file owns that the declaration cannot is `console/Scroller`: the element the virtualizer measures,
633
633
  * whose scroll position the controller mirrors, and which follow-mode pins to the bottom.
634
634
  *
635
- * Composes `@xenosystem/components/chrome`; the host must ensure `@xenosystem/workbench/primitives.css` is
635
+ * Composes `@xenosystem/components/chrome`; the host must ensure `ensurePanelPrimitivesInjected() from @xenosystem/components/chrome` is
636
636
  * present.
637
637
  *
638
638
  * @module
@@ -1546,7 +1546,7 @@ declare const RUNS_DECLARATION: BlockDeclaration;
1546
1546
  * byte-identical (the equivalence suite holds the two together). No runtime-bound unit; every
1547
1547
  * intent goes through `applyRunsUi`.
1548
1548
  *
1549
- * Composes `@xenosystem/components/chrome`; the host must ensure `@xenosystem/workbench/primitives.css` is
1549
+ * Composes `@xenosystem/components/chrome`; the host must ensure `ensurePanelPrimitivesInjected() from @xenosystem/components/chrome` is
1550
1550
  * present.
1551
1551
  *
1552
1552
  * @module
@@ -2673,7 +2673,7 @@ declare const DIFF_DECLARATION: BlockDeclaration;
2673
2673
  * intent goes through `applyDiffUi`.
2674
2674
  *
2675
2675
  * Composes `@xenosystem/components/chrome` — a file is a `Section`, a hunk a `Hunk`, a line a
2676
- * `DiffLine` of runs; the host must ensure `@xenosystem/workbench/primitives.css` is present.
2676
+ * `DiffLine` of runs; the host must ensure `ensurePanelPrimitivesInjected() from @xenosystem/components/chrome` is present.
2677
2677
  *
2678
2678
  * @module
2679
2679
  */
@@ -2043,7 +2043,7 @@ declare const TIMELINE_DECLARATION: BlockDeclaration;
2043
2043
  * `applyTimelineUi`.
2044
2044
  *
2045
2045
  * Composes `@xenosystem/components/chrome`. **The host must import
2046
- * `@xenosystem/workbench/primitives.css`** or this renders unstyled with no error — the most common
2046
+ * `ensurePanelPrimitivesInjected() from @xenosystem/components/chrome`** or this renders unstyled with no error — the most common
2047
2047
  * integration mistake, and the hardest to diagnose because nothing fails.
2048
2048
  *
2049
2049
  * Monochromatic per `DESIGN_SYSTEM.md`: rectangles with a corner radius, no circles, compact
@@ -2605,7 +2605,7 @@ declare const CALENDAR_DECLARATION: BlockDeclaration;
2605
2605
  * `CalendarViewModel` byte-identical (the equivalence suite holds the two together). No runtime-bound
2606
2606
  * unit; every intent goes through `applyCalendarUi`.
2607
2607
  *
2608
- * Composes `@xenosystem/components/chrome`; the host must ensure `@xenosystem/workbench/primitives.css` is
2608
+ * Composes `@xenosystem/components/chrome`; the host must ensure `ensurePanelPrimitivesInjected() from @xenosystem/components/chrome` is
2609
2609
  * present.
2610
2610
  *
2611
2611
  * @module
@@ -873,7 +873,7 @@ declare const CONSENT_DECLARATION: BlockDeclaration;
873
873
  * `ConsentViewModel` byte-identical (the equivalence suite holds the two together). No runtime-bound
874
874
  * unit; every intent goes through `applyConsentUi`.
875
875
  *
876
- * Composes `@xenosystem/components/chrome`; the host must ensure `@xenosystem/workbench/primitives.css` is
876
+ * Composes `@xenosystem/components/chrome`; the host must ensure `ensurePanelPrimitivesInjected() from @xenosystem/components/chrome` is
877
877
  * present.
878
878
  *
879
879
  * @module
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xenosystem/blocks",
3
- "version": "0.19.1",
4
- "description": "XENO Blocks — rung 3 of the front ladder: components composed into a contract-bearing unit (manifest: ports, intents, commands, agent surface), rendered by @xenosystem/workbench. ONE package, one subpath per family (/auth, /edit, /data, /time, /ops, /trust, /agent), one named export per block — XENO PACKAGE NAMING - STANDARD.md.",
3
+ "version": "0.20.0",
4
+ "description": "XENO Blocks — rung 3 of the front ladder: components composed into a contract-bearing unit (manifest: ports, intents, commands, agent surface), rendered by @xenosystem/workbench. ONE package, one subpath per family (/auth, /edit, /data, /time, /ops, /trust, /agent, /docs), one named export per block — XENO PACKAGE NAMING - STANDARD.md.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
7
7
  "sideEffects": false,
@@ -49,6 +49,10 @@
49
49
  "./agent/host-source": {
50
50
  "types": "./dist/agent/host-source.d.ts",
51
51
  "import": "./dist/agent/host-source.js"
52
+ },
53
+ "./docs": {
54
+ "types": "./dist/docs/index.d.ts",
55
+ "import": "./dist/docs/index.js"
52
56
  }
53
57
  },
54
58
  "files": [
@@ -59,10 +63,29 @@
59
63
  "scripts": {
60
64
  "build": "tsup",
61
65
  "typecheck": "tsc --noEmit",
62
- "test": "vitest run"
66
+ "test": "vitest run",
67
+ "mutation:docs": "node scripts/docs-mutation-check.mjs"
63
68
  },
64
69
  "peerDependencies": {
65
70
  "@duckdb/duckdb-wasm": ">=1.28.0",
71
+ "@tiptap/core": "^2.11.0",
72
+ "@tiptap/extension-highlight": "^2.11.0",
73
+ "@tiptap/extension-image": "^2.11.0",
74
+ "@tiptap/extension-link": "^2.11.0",
75
+ "@tiptap/extension-placeholder": "^2.11.0",
76
+ "@tiptap/extension-subscript": "^2.11.0",
77
+ "@tiptap/extension-superscript": "^2.11.0",
78
+ "@tiptap/extension-table": "^2.11.0",
79
+ "@tiptap/extension-table-cell": "^2.11.0",
80
+ "@tiptap/extension-table-header": "^2.11.0",
81
+ "@tiptap/extension-table-row": "^2.11.0",
82
+ "@tiptap/extension-task-item": "^2.11.0",
83
+ "@tiptap/extension-task-list": "^2.11.0",
84
+ "@tiptap/extension-text-align": "^2.11.0",
85
+ "@tiptap/extension-typography": "^2.11.0",
86
+ "@tiptap/extension-underline": "^2.11.0",
87
+ "@tiptap/pm": "^2.11.0",
88
+ "@tiptap/starter-kit": "^2.11.0",
66
89
  "@xenosystem/block-sdk": ">=0.3.4 <1",
67
90
  "@xenosystem/components": ">=0.34.0 <1",
68
91
  "@xenosystem/data-core": "^0.1.0",
@@ -77,6 +100,24 @@
77
100
  "react-dom": ">=18.0.0"
78
101
  },
79
102
  "devDependencies": {
103
+ "@tiptap/core": "^2.27.2",
104
+ "@tiptap/extension-highlight": "^2.27.2",
105
+ "@tiptap/extension-image": "^2.27.2",
106
+ "@tiptap/extension-link": "^2.27.2",
107
+ "@tiptap/extension-placeholder": "^2.27.2",
108
+ "@tiptap/extension-subscript": "^2.27.2",
109
+ "@tiptap/extension-superscript": "^2.27.2",
110
+ "@tiptap/extension-table": "^2.27.2",
111
+ "@tiptap/extension-table-cell": "^2.27.2",
112
+ "@tiptap/extension-table-header": "^2.27.2",
113
+ "@tiptap/extension-table-row": "^2.27.2",
114
+ "@tiptap/extension-task-item": "^2.27.2",
115
+ "@tiptap/extension-task-list": "^2.27.2",
116
+ "@tiptap/extension-text-align": "^2.27.2",
117
+ "@tiptap/extension-typography": "^2.27.2",
118
+ "@tiptap/extension-underline": "^2.27.2",
119
+ "@tiptap/pm": "^2.27.2",
120
+ "@tiptap/starter-kit": "^2.27.2",
80
121
  "@types/node": "^22.0.0",
81
122
  "@types/react": "^19.0.0",
82
123
  "@types/react-dom": "^19.0.0",
@@ -101,13 +142,67 @@
101
142
  "access": "public"
102
143
  },
103
144
  "peerDependenciesMeta": {
104
- "@xterm/xterm": {
145
+ "@duckdb/duckdb-wasm": {
146
+ "optional": true
147
+ },
148
+ "@tiptap/core": {
149
+ "optional": true
150
+ },
151
+ "@tiptap/extension-highlight": {
152
+ "optional": true
153
+ },
154
+ "@tiptap/extension-image": {
155
+ "optional": true
156
+ },
157
+ "@tiptap/extension-link": {
158
+ "optional": true
159
+ },
160
+ "@tiptap/extension-placeholder": {
161
+ "optional": true
162
+ },
163
+ "@tiptap/extension-subscript": {
164
+ "optional": true
165
+ },
166
+ "@tiptap/extension-superscript": {
167
+ "optional": true
168
+ },
169
+ "@tiptap/extension-table": {
170
+ "optional": true
171
+ },
172
+ "@tiptap/extension-table-cell": {
173
+ "optional": true
174
+ },
175
+ "@tiptap/extension-table-header": {
176
+ "optional": true
177
+ },
178
+ "@tiptap/extension-table-row": {
179
+ "optional": true
180
+ },
181
+ "@tiptap/extension-task-item": {
182
+ "optional": true
183
+ },
184
+ "@tiptap/extension-task-list": {
185
+ "optional": true
186
+ },
187
+ "@tiptap/extension-text-align": {
188
+ "optional": true
189
+ },
190
+ "@tiptap/extension-typography": {
191
+ "optional": true
192
+ },
193
+ "@tiptap/extension-underline": {
194
+ "optional": true
195
+ },
196
+ "@tiptap/pm": {
197
+ "optional": true
198
+ },
199
+ "@tiptap/starter-kit": {
105
200
  "optional": true
106
201
  },
107
202
  "@xterm/addon-fit": {
108
203
  "optional": true
109
204
  },
110
- "@duckdb/duckdb-wasm": {
205
+ "@xterm/xterm": {
111
206
  "optional": true
112
207
  }
113
208
  }