@alneas/appkit-react 0.3.0 → 0.3.1
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/CHANGELOG.md +28 -0
- package/consumer-ai/api-index.json +10 -42
- package/consumer-ai/package-context.json +2 -2
- package/dist/ai/generative-ui/GenerativeUIRenderer.cjs.map +1 -1
- package/dist/ai/generative-ui/GenerativeUIRenderer.d.cts +5 -5
- package/dist/ai/generative-ui/GenerativeUIRenderer.d.ts +5 -5
- package/dist/ai/generative-ui/GenerativeUIRenderer.js.map +1 -1
- package/dist/consumer-ai/api-index.json +10 -42
- package/dist/consumer-ai/package-context.json +2 -2
- package/dist/tools/components/data-table/data-table.cjs +1 -1
- package/dist/tools/components/data-table/data-table.cjs.map +1 -1
- package/dist/tools/components/data-table/data-table.js +241 -240
- package/dist/tools/components/data-table/data-table.js.map +1 -1
- package/dist/tools/components/kanban/kanban-primitives.cjs +1 -1
- package/dist/tools/components/kanban/kanban-primitives.cjs.map +1 -1
- package/dist/tools/components/kanban/kanban-primitives.d.cts +2 -2
- package/dist/tools/components/kanban/kanban-primitives.d.ts +2 -2
- package/dist/tools/components/kanban/kanban-primitives.js +49 -48
- package/dist/tools/components/kanban/kanban-primitives.js.map +1 -1
- package/dist/tools/components/ui/dnd/Draggable.cjs +1 -1
- package/dist/tools/components/ui/dnd/Draggable.cjs.map +1 -1
- package/dist/tools/components/ui/dnd/Draggable.js +14 -13
- package/dist/tools/components/ui/dnd/Draggable.js.map +1 -1
- package/dist/tools/components/ui/dnd/use-accessible-drag-ref.cjs +2 -0
- package/dist/tools/components/ui/dnd/use-accessible-drag-ref.cjs.map +1 -0
- package/dist/tools/components/ui/dnd/use-accessible-drag-ref.d.cts +8 -0
- package/dist/tools/components/ui/dnd/use-accessible-drag-ref.d.ts +8 -0
- package/dist/tools/components/ui/dnd/use-accessible-drag-ref.js +27 -0
- package/dist/tools/components/ui/dnd/use-accessible-drag-ref.js.map +1 -0
- package/docs/migration.md +24 -4
- package/docs/tools.md +8 -0
- package/llms-full.txt +32 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,33 @@ may be prepared before publication; confirm availability on the
|
|
|
5
5
|
[npm package page](https://www.npmjs.com/package/@alneas/appkit-react). Publication
|
|
6
6
|
dates are recorded only when confirmed.
|
|
7
7
|
|
|
8
|
+
## [0.3.1]
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Preserve the KanbanColumnFrame registration/ref requirements in one JSDoc remarks
|
|
13
|
+
block so strict API documentation consumers retain the full guidance without
|
|
14
|
+
duplicate-tag warnings. Runtime behavior and callable types are unchanged.
|
|
15
|
+
|
|
16
|
+
- Correct GenerativeUIRenderer declaration documentation to retain all rendering
|
|
17
|
+
requirements and fallback notes in one remarks block. Strict TypeDoc consumers
|
|
18
|
+
can generate API documentation without duplicate-tag warnings; runtime behavior,
|
|
19
|
+
exports and callable types are unchanged.
|
|
20
|
+
- Require the published Core **^0.2.2** documentation patch. The compatible range
|
|
21
|
+
admits Core 0.2.x updates while excluding older declaration documentation;
|
|
22
|
+
applications retain exact resolved versions and integrity in their lockfile.
|
|
23
|
+
Verify that React and any host Core dependency resolve one shared installation.
|
|
24
|
+
- This patch aligns the delivered Core documentation and dependency resolution;
|
|
25
|
+
it adds no public API changes. The breaking migration from React 0.2.x remains
|
|
26
|
+
documented under 0.3.0 and in the bundled migration guide.
|
|
27
|
+
- This entry describes release preparation. Confirm npm availability before
|
|
28
|
+
adopting React 0.3.1; published React 0.3.0 continues to require Core 0.2.0.
|
|
29
|
+
|
|
30
|
+
- Remove deprecated `aria-grabbed` from DataTable, shared Draggable/FileBrowser activators and enabled Kanban cards while
|
|
31
|
+
retaining `aria-pressed`, keyboard/pointer dragging, screen-reader instructions
|
|
32
|
+
and live announcements. This correction requires a new React package release;
|
|
33
|
+
published 0.3.0 archives do not contain it.
|
|
34
|
+
|
|
8
35
|
## [0.3.0]
|
|
9
36
|
|
|
10
37
|
### Breaking changes
|
|
@@ -106,6 +133,7 @@ dates are recorded only when confirmed.
|
|
|
106
133
|
- Initial public release of React UI, forms, tables, providers and AI bindings,
|
|
107
134
|
with ESM, CommonJS, TypeScript declarations and explicit styles.
|
|
108
135
|
|
|
136
|
+
[0.3.1]: https://github.com/dataarthub/appkit/compare/appkit-react-v0.3.0...appkit-react-v0.3.1
|
|
109
137
|
[0.3.0]: https://github.com/dataarthub/appkit/compare/appkit-react-v0.2.0...appkit-react-v0.3.0
|
|
110
138
|
[0.2.0]: https://github.com/dataarthub/appkit/compare/v0.1.0...appkit-react-v0.2.0
|
|
111
139
|
[0.1.0]: https://github.com/dataarthub/appkit/releases/tag/v0.1.0
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@alneas/appkit-react",
|
|
4
|
-
"packageVersion": "0.3.
|
|
5
|
-
"inputDigest": "
|
|
4
|
+
"packageVersion": "0.3.1",
|
|
5
|
+
"inputDigest": "9dbd7be71694e1b1dbfc1cc74cc55088a99220401b0cff370b7443119f81b508",
|
|
6
6
|
"entries": [
|
|
7
7
|
{
|
|
8
8
|
"importPath": "@alneas/appkit-react",
|
|
@@ -22512,7 +22512,7 @@
|
|
|
22512
22512
|
"tags": [
|
|
22513
22513
|
{
|
|
22514
22514
|
"name": "remarks",
|
|
22515
|
-
"text": "Envelope validation snapshots input by reference. Pass immutable documents; replace\ninput when a response changes. Component validators run during rendering and must\nbe pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\nget a document fallback. MinimalErrorBoundary isolates client render failures.\nBlock identity includes document ID, block ID/type and data."
|
|
22515
|
+
"text": "Envelope validation snapshots input by reference. Pass immutable documents; replace\ninput when a response changes. Component validators run during rendering and must\nbe pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\nget a document fallback. MinimalErrorBoundary isolates client render failures.\nBlock identity includes document ID, block ID/type and data.\n\n\nRequires React; registered components own any other providers or CSS.\nThe default fallback is an English status paragraph. Client error boundaries handle\ndescendant render failures; React server rendering errors are not isolated by them.\nFallback callback errors propagate. Changing registry identity remounts blocks."
|
|
22516
22516
|
},
|
|
22517
22517
|
{
|
|
22518
22518
|
"name": "param",
|
|
@@ -22522,10 +22522,6 @@
|
|
|
22522
22522
|
"name": "returns",
|
|
22523
22523
|
"text": "Block wrappers and registered elements, or fallback content for invalid input."
|
|
22524
22524
|
},
|
|
22525
|
-
{
|
|
22526
|
-
"name": "remarks",
|
|
22527
|
-
"text": "Requires React; registered components own any other providers or CSS.\nThe default fallback is an English status paragraph. Client error boundaries handle\ndescendant render failures; React server rendering errors are not isolated by them.\nFallback callback errors propagate. Changing registry identity remounts blocks."
|
|
22528
|
-
},
|
|
22529
22525
|
{
|
|
22530
22526
|
"name": "example",
|
|
22531
22527
|
"text": "```tsx\nimport { createGenerativeUIRegistry, GenerativeUIRenderer } from '@alneas/appkit-react/ai/generative-ui';\nconst registry = createGenerativeUIRegistry([]);\n// Supply a parsed host response; unregistered types receive the fallback.\nexport function GeneratedResponse({ response }: { response: unknown }) {\n return <GenerativeUIRenderer input={response} registry={registry} />;\n}\n```"
|
|
@@ -23508,16 +23504,12 @@
|
|
|
23508
23504
|
},
|
|
23509
23505
|
{
|
|
23510
23506
|
"name": "remarks",
|
|
23511
|
-
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions."
|
|
23507
|
+
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions.\nOmitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
23512
23508
|
},
|
|
23513
23509
|
{
|
|
23514
23510
|
"name": "throws",
|
|
23515
23511
|
"text": "Throws Ajv configuration/format-registration failures during construction; later schema compilation failures propagate from the returned validator."
|
|
23516
23512
|
},
|
|
23517
|
-
{
|
|
23518
|
-
"name": "remarks",
|
|
23519
|
-
"text": "Omitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
23520
|
-
},
|
|
23521
23513
|
{
|
|
23522
23514
|
"name": "example",
|
|
23523
23515
|
"text": "```typescript\nimport { createAjvValidator } from '@alneas/appkit-core/ai/validation';\n\nconst validate = createAjvValidator({ locale: 'en' });\nconsole.log(validate({ type: 'object', properties: { name: { type: 'string' } }, required: ['name'] }, { name: 'Ada' }));\n```"
|
|
@@ -26109,16 +26101,12 @@
|
|
|
26109
26101
|
},
|
|
26110
26102
|
{
|
|
26111
26103
|
"name": "remarks",
|
|
26112
|
-
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions."
|
|
26104
|
+
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions.\nOmitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
26113
26105
|
},
|
|
26114
26106
|
{
|
|
26115
26107
|
"name": "throws",
|
|
26116
26108
|
"text": "Throws Ajv configuration/format-registration failures during construction; later schema compilation failures propagate from the returned validator."
|
|
26117
26109
|
},
|
|
26118
|
-
{
|
|
26119
|
-
"name": "remarks",
|
|
26120
|
-
"text": "Omitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
26121
|
-
},
|
|
26122
26110
|
{
|
|
26123
26111
|
"name": "example",
|
|
26124
26112
|
"text": "```typescript\nimport { createAjvValidator } from '@alneas/appkit-core/ai/validation';\n\nconst validate = createAjvValidator({ locale: 'en' });\nconsole.log(validate({ type: 'object', properties: { name: { type: 'string' } }, required: ['name'] }, { name: 'Ada' }));\n```"
|
|
@@ -28462,16 +28450,12 @@
|
|
|
28462
28450
|
},
|
|
28463
28451
|
{
|
|
28464
28452
|
"name": "remarks",
|
|
28465
|
-
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions."
|
|
28453
|
+
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions.\nOmitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
28466
28454
|
},
|
|
28467
28455
|
{
|
|
28468
28456
|
"name": "throws",
|
|
28469
28457
|
"text": "Throws Ajv configuration/format-registration failures during construction; later schema compilation failures propagate from the returned validator."
|
|
28470
28458
|
},
|
|
28471
|
-
{
|
|
28472
|
-
"name": "remarks",
|
|
28473
|
-
"text": "Omitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
28474
|
-
},
|
|
28475
28459
|
{
|
|
28476
28460
|
"name": "example",
|
|
28477
28461
|
"text": "```typescript\nimport { createAjvValidator } from '@alneas/appkit-core/ai/validation';\n\nconst validate = createAjvValidator({ locale: 'en' });\nconsole.log(validate({ type: 'object', properties: { name: { type: 'string' } }, required: ['name'] }, { name: 'Ada' }));\n```"
|
|
@@ -30058,7 +30042,7 @@
|
|
|
30058
30042
|
"tags": [
|
|
30059
30043
|
{
|
|
30060
30044
|
"name": "remarks",
|
|
30061
|
-
"text": "Envelope validation snapshots input by reference. Pass immutable documents; replace\ninput when a response changes. Component validators run during rendering and must\nbe pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\nget a document fallback. MinimalErrorBoundary isolates client render failures.\nBlock identity includes document ID, block ID/type and data."
|
|
30045
|
+
"text": "Envelope validation snapshots input by reference. Pass immutable documents; replace\ninput when a response changes. Component validators run during rendering and must\nbe pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\nget a document fallback. MinimalErrorBoundary isolates client render failures.\nBlock identity includes document ID, block ID/type and data.\n\n\nRequires React; registered components own any other providers or CSS.\nThe default fallback is an English status paragraph. Client error boundaries handle\ndescendant render failures; React server rendering errors are not isolated by them.\nFallback callback errors propagate. Changing registry identity remounts blocks."
|
|
30062
30046
|
},
|
|
30063
30047
|
{
|
|
30064
30048
|
"name": "param",
|
|
@@ -30068,10 +30052,6 @@
|
|
|
30068
30052
|
"name": "returns",
|
|
30069
30053
|
"text": "Block wrappers and registered elements, or fallback content for invalid input."
|
|
30070
30054
|
},
|
|
30071
|
-
{
|
|
30072
|
-
"name": "remarks",
|
|
30073
|
-
"text": "Requires React; registered components own any other providers or CSS.\nThe default fallback is an English status paragraph. Client error boundaries handle\ndescendant render failures; React server rendering errors are not isolated by them.\nFallback callback errors propagate. Changing registry identity remounts blocks."
|
|
30074
|
-
},
|
|
30075
30055
|
{
|
|
30076
30056
|
"name": "example",
|
|
30077
30057
|
"text": "```tsx\nimport { createGenerativeUIRegistry, GenerativeUIRenderer } from '@alneas/appkit-react/ai/generative-ui';\nconst registry = createGenerativeUIRegistry([]);\n// Supply a parsed host response; unregistered types receive the fallback.\nexport function GeneratedResponse({ response }: { response: unknown }) {\n return <GenerativeUIRenderer input={response} registry={registry} />;\n}\n```"
|
|
@@ -30742,16 +30722,12 @@
|
|
|
30742
30722
|
},
|
|
30743
30723
|
{
|
|
30744
30724
|
"name": "remarks",
|
|
30745
|
-
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions."
|
|
30725
|
+
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions.\nOmitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
30746
30726
|
},
|
|
30747
30727
|
{
|
|
30748
30728
|
"name": "throws",
|
|
30749
30729
|
"text": "Throws Ajv configuration/format-registration failures during construction; later schema compilation failures propagate from the returned validator."
|
|
30750
30730
|
},
|
|
30751
|
-
{
|
|
30752
|
-
"name": "remarks",
|
|
30753
|
-
"text": "Omitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
30754
|
-
},
|
|
30755
30731
|
{
|
|
30756
30732
|
"name": "example",
|
|
30757
30733
|
"text": "```typescript\nimport { createAjvValidator } from '@alneas/appkit-core/ai/validation';\n\nconst validate = createAjvValidator({ locale: 'en' });\nconsole.log(validate({ type: 'object', properties: { name: { type: 'string' } }, required: ['name'] }, { name: 'Ada' }));\n```"
|
|
@@ -33134,16 +33110,12 @@
|
|
|
33134
33110
|
},
|
|
33135
33111
|
{
|
|
33136
33112
|
"name": "remarks",
|
|
33137
|
-
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions."
|
|
33113
|
+
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions.\nOmitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
33138
33114
|
},
|
|
33139
33115
|
{
|
|
33140
33116
|
"name": "throws",
|
|
33141
33117
|
"text": "Throws Ajv configuration/format-registration failures during construction; later schema compilation failures propagate from the returned validator."
|
|
33142
33118
|
},
|
|
33143
|
-
{
|
|
33144
|
-
"name": "remarks",
|
|
33145
|
-
"text": "Omitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
33146
|
-
},
|
|
33147
33119
|
{
|
|
33148
33120
|
"name": "example",
|
|
33149
33121
|
"text": "```typescript\nimport { createAjvValidator } from '@alneas/appkit-core/ai/validation';\n\nconst validate = createAjvValidator({ locale: 'en' });\nconsole.log(validate({ type: 'object', properties: { name: { type: 'string' } }, required: ['name'] }, { name: 'Ada' }));\n```"
|
|
@@ -79375,7 +79347,7 @@
|
|
|
79375
79347
|
"tags": [
|
|
79376
79348
|
{
|
|
79377
79349
|
"name": "remarks",
|
|
79378
|
-
"text": "Retain forwardRef to compose native registration and caller refs, including\ncallback cleanup; this is not a direct DOM-ref passthrough."
|
|
79350
|
+
"text": "Retain forwardRef to compose native registration and caller refs, including\ncallback cleanup; this is not a direct DOM-ref passthrough.\nRequires the native Kanban surface. Pointer intersection excludes outside\ndrops; WIP limits are presentational and do not reject a host status callback."
|
|
79379
79351
|
},
|
|
79380
79352
|
{
|
|
79381
79353
|
"name": "param",
|
|
@@ -79389,10 +79361,6 @@
|
|
|
79389
79361
|
"name": "returns",
|
|
79390
79362
|
"text": "A column div accepting Kanban task registrations."
|
|
79391
79363
|
},
|
|
79392
|
-
{
|
|
79393
|
-
"name": "remarks",
|
|
79394
|
-
"text": "Requires the native Kanban surface. Pointer intersection excludes outside\ndrops; WIP limits are presentational and do not reject a host status callback."
|
|
79395
|
-
},
|
|
79396
79364
|
{
|
|
79397
79365
|
"name": "example",
|
|
79398
79366
|
"text": "```tsx\nimport {KanbanDragSurface, KanbanColumnFrame, KanbanDraggableCard, useKanbanDrag}\n from '@alneas/appkit-react/tools/kanban';\nimport '@alneas/appkit-react/styles';\nexport function CustomCards() {\n const tasks = [{id: 'one', title: 'Review', status: 'todo'}];\n const controller = useKanbanDrag({tasks});\n return <KanbanDragSurface controller={controller}>\n <KanbanColumnFrame column={{id: 'todo', title: 'Todo'}}>\n <KanbanDraggableCard task={tasks[0]}>Review</KanbanDraggableCard>\n </KanbanColumnFrame>\n </KanbanDragSurface>;\n}\n```"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@alneas/appkit-react",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"import": {
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"./api-index.json": "./consumer-ai/api-index.json"
|
|
352
352
|
},
|
|
353
353
|
"dependencies": {
|
|
354
|
-
"@alneas/appkit-core": "0.2.
|
|
354
|
+
"@alneas/appkit-core": "^0.2.2",
|
|
355
355
|
"@base-ui/react": "^1.9.0",
|
|
356
356
|
"@dnd-kit/collision": "0.5.1",
|
|
357
357
|
"@dnd-kit/dom": "0.5.1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerativeUIRenderer.cjs","names":["useMemo","validateGenerativeUIDocument","useState","_Fragment","MinimalErrorBoundary","require_ai_generative_ui_error_boundary","react_jsx_runtime","react","_alneas_appkit_core_ai","defaultFallback","issue","GenerativeUIRenderer","document","input","scope","setScope","registry","resolved","block","key","fallback","renderFallback"],"sources":["../../../src/ai/generative-ui/GenerativeUIRenderer.tsx"],"sourcesContent":["import { useMemo, useState, type ReactNode } from 'react';\nimport { validateGenerativeUIDocument } from \"@alneas/appkit-core/ai\";\nimport { MinimalErrorBoundary } from './error-boundary';\nimport type { GenerativeUIIssue, GenerativeUIRegistry } from './registry';\n\n/**\n * Props for rendering a fully assembled, immutable JSON response.\n * @see GenerativeUIRenderer for the canonical usage example.\n */\nexport interface GenerativeUIRendererProps {\n /** Parsed JSON input. Replace its reference to submit a new immutable document. */\n input: unknown;\n /** Only explicitly registered component types can render. */\n registry: GenerativeUIRegistry;\n /** Application-owned fallback/localization. Receives safe metadata, never raw exceptions. */\n renderFallback?: (issue: GenerativeUIIssue) => ReactNode;\n}\n\nfunction defaultFallback(issue: GenerativeUIIssue): ReactNode {\n return <p role=\"status\" data-generative-ui-error={issue.code}>This content cannot be displayed.</p>;\n}\n\n/**\n * Renders validated JSON blocks using an explicit application registry.\n *\n *\n * @remarks\n * Envelope validation snapshots input by reference. Pass immutable documents; replace\n * input when a response changes. Component validators run during rendering and must\n * be pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\n * get a document fallback. MinimalErrorBoundary isolates client render failures.\n * Block identity includes document ID, block ID/type and data.\n *\n *\n *
|
|
1
|
+
{"version":3,"file":"GenerativeUIRenderer.cjs","names":["useMemo","validateGenerativeUIDocument","useState","_Fragment","MinimalErrorBoundary","require_ai_generative_ui_error_boundary","react_jsx_runtime","react","_alneas_appkit_core_ai","defaultFallback","issue","GenerativeUIRenderer","document","input","scope","setScope","registry","resolved","block","key","fallback","renderFallback"],"sources":["../../../src/ai/generative-ui/GenerativeUIRenderer.tsx"],"sourcesContent":["import { useMemo, useState, type ReactNode } from 'react';\nimport { validateGenerativeUIDocument } from \"@alneas/appkit-core/ai\";\nimport { MinimalErrorBoundary } from './error-boundary';\nimport type { GenerativeUIIssue, GenerativeUIRegistry } from './registry';\n\n/**\n * Props for rendering a fully assembled, immutable JSON response.\n * @see GenerativeUIRenderer for the canonical usage example.\n */\nexport interface GenerativeUIRendererProps {\n /** Parsed JSON input. Replace its reference to submit a new immutable document. */\n input: unknown;\n /** Only explicitly registered component types can render. */\n registry: GenerativeUIRegistry;\n /** Application-owned fallback/localization. Receives safe metadata, never raw exceptions. */\n renderFallback?: (issue: GenerativeUIIssue) => ReactNode;\n}\n\nfunction defaultFallback(issue: GenerativeUIIssue): ReactNode {\n return <p role=\"status\" data-generative-ui-error={issue.code}>This content cannot be displayed.</p>;\n}\n\n/**\n * Renders validated JSON blocks using an explicit application registry.\n *\n *\n * @remarks\n * Envelope validation snapshots input by reference. Pass immutable documents; replace\n * input when a response changes. Component validators run during rendering and must\n * be pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\n * get a document fallback. MinimalErrorBoundary isolates client render failures.\n * Block identity includes document ID, block ID/type and data.\n *\n *\n * Requires React; registered components own any other providers or CSS.\n * The default fallback is an English status paragraph. Client error boundaries handle\n * descendant render failures; React server rendering errors are not isolated by them.\n * Fallback callback errors propagate. Changing registry identity remounts blocks.\n *\n * @param props - Immutable response, explicit registry and optional localized fallback renderer.\n *\n * @returns Block wrappers and registered elements, or fallback content for invalid input.\n *\n * @example\n * ```tsx\n * import { createGenerativeUIRegistry, GenerativeUIRenderer } from '@alneas/appkit-react/ai/generative-ui';\n * const registry = createGenerativeUIRegistry([]);\n * // Supply a parsed host response; unregistered types receive the fallback.\n * export function GeneratedResponse({ response }: { response: unknown }) {\n * return <GenerativeUIRenderer input={response} registry={registry} />;\n * }\n * ```\n */\nexport function GenerativeUIRenderer({\n input,\n registry,\n renderFallback = defaultFallback,\n}: GenerativeUIRendererProps): ReactNode {\n const document = useMemo(() => validateGenerativeUIDocument(input), [input]);\n const [scope, setScope] = useState({ registry, generation: 0 });\n if (scope.registry !== registry) setScope({ registry, generation: scope.generation + 1 });\n if (!document.ok) return renderFallback({ code: 'INVALID_DOCUMENT' });\n\n return (\n <>\n {document.data.blocks.map(block => {\n const resolved = registry.resolve(block);\n const key = JSON.stringify([scope.generation, document.data.id, block]);\n const fallback = (issue: GenerativeUIIssue) => (\n <div data-generative-ui-block={block.id}>{renderFallback(issue)}</div>\n );\n if (!resolved.ok) return <div key={key}>{fallback(resolved.issue)}</div>;\n return (\n <MinimalErrorBoundary\n key={key}\n fallback={() => fallback({ code: 'RENDER_ERROR', blockId: block.id, type: block.type })}\n >\n <div data-generative-ui-block={block.id}>{resolved.element}</div>\n </MinimalErrorBoundary>\n );\n })}\n </>\n );\n}\n"],"mappings":"A,kNAkBA,SAASS,EAAgB,EAAqC,CAC5D,OAAO,EAAAH,EAAA,IAAA,CAAC,IAAD,CAAG,KAAK,SAAS,2BAA0BI,EAAM,KAAM,SAAA,mCAAoC,CAAA,CACpG,CAiCA,SAAgBC,EAAqB,CACnC,QACA,WACA,iBAAiBF,GACsB,CACvC,IAAMG,GAAA,EAAWZ,EAAAA,QAAAA,MAAAA,EAAcC,EAAAA,6BAAAA,CAA6BY,CAAK,EAAG,CAACA,CAAK,CAAC,EACrE,CAACC,EAAOC,IAAA,EAAYb,EAAAA,SAAAA,CAAS,CAAE,WAAU,WAAY,CAAE,CAAC,EAI9D,OAHIY,EAAM,WAAaE,GAAUD,EAAS,CAAE,WAAU,WAAYD,EAAM,WAAa,CAAE,CAAC,EACnFF,EAAS,IAGZ,EAAAN,EAAA,IAAA,CAAAH,EAAAA,SAAA,CAAA,SACGS,EAAS,KAAK,OAAO,IAAI,GAAS,CACjC,IAAMK,EAAWD,EAAS,QAAQE,CAAK,EACjCC,EAAM,KAAK,UAAU,CAACL,EAAM,WAAYF,EAAS,KAAK,GAAIM,CAAK,CAAC,EAChEE,EAAY,IAChB,EAAAd,EAAA,IAAA,CAAC,MAAD,CAAK,2BAA0BY,EAAM,GAAK,SAAAG,EAAeX,CAAK,CAAO,CAAA,EAGvE,OADKO,EAAS,IAEZ,EAAAX,EAAA,IAAA,CAACF,EAAAA,qBAAD,CAEE,aAAgBgB,EAAS,CAAE,KAAM,eAAgB,QAASF,EAAM,GAAI,KAAMA,EAAM,IAAK,CAAC,EAEtF,UAAA,EAAAZ,EAAA,IAAA,CAAC,MAAD,CAAK,2BAA0BY,EAAM,GAAK,SAAAD,EAAS,OAAa,CAAA,CAC5C,EAJfE,CAIe,GAPC,EAAAb,EAAA,IAAA,CAAC,MAAD,CAAA,SAAgBc,EAASH,EAAS,KAAK,CAAO,EAApCE,CAAoC,CASzE,CAAC,CACD,CAAA,EApBqBE,EAAe,CAAE,KAAM,kBAAmB,CAAC,CAsBtE,C"}
|
|
@@ -24,15 +24,15 @@ export interface GenerativeUIRendererProps {
|
|
|
24
24
|
* Block identity includes document ID, block ID/type and data.
|
|
25
25
|
*
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* @returns Block wrappers and registered elements, or fallback content for invalid input.
|
|
30
|
-
*
|
|
31
|
-
* @remarks Requires React; registered components own any other providers or CSS.
|
|
27
|
+
* Requires React; registered components own any other providers or CSS.
|
|
32
28
|
* The default fallback is an English status paragraph. Client error boundaries handle
|
|
33
29
|
* descendant render failures; React server rendering errors are not isolated by them.
|
|
34
30
|
* Fallback callback errors propagate. Changing registry identity remounts blocks.
|
|
35
31
|
*
|
|
32
|
+
* @param props - Immutable response, explicit registry and optional localized fallback renderer.
|
|
33
|
+
*
|
|
34
|
+
* @returns Block wrappers and registered elements, or fallback content for invalid input.
|
|
35
|
+
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```tsx
|
|
38
38
|
* import { createGenerativeUIRegistry, GenerativeUIRenderer } from '@alneas/appkit-react/ai/generative-ui';
|
|
@@ -24,15 +24,15 @@ export interface GenerativeUIRendererProps {
|
|
|
24
24
|
* Block identity includes document ID, block ID/type and data.
|
|
25
25
|
*
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* @returns Block wrappers and registered elements, or fallback content for invalid input.
|
|
30
|
-
*
|
|
31
|
-
* @remarks Requires React; registered components own any other providers or CSS.
|
|
27
|
+
* Requires React; registered components own any other providers or CSS.
|
|
32
28
|
* The default fallback is an English status paragraph. Client error boundaries handle
|
|
33
29
|
* descendant render failures; React server rendering errors are not isolated by them.
|
|
34
30
|
* Fallback callback errors propagate. Changing registry identity remounts blocks.
|
|
35
31
|
*
|
|
32
|
+
* @param props - Immutable response, explicit registry and optional localized fallback renderer.
|
|
33
|
+
*
|
|
34
|
+
* @returns Block wrappers and registered elements, or fallback content for invalid input.
|
|
35
|
+
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```tsx
|
|
38
38
|
* import { createGenerativeUIRegistry, GenerativeUIRenderer } from '@alneas/appkit-react/ai/generative-ui';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerativeUIRenderer.js","names":["_Fragment","defaultFallback","issue","GenerativeUIRenderer","document","useMemo","validateGenerativeUIDocument","input","scope","setScope","useState","registry","Fragment","resolved","block","key","fallback","renderFallback","MinimalErrorBoundary"],"sources":["../../../src/ai/generative-ui/GenerativeUIRenderer.tsx"],"sourcesContent":["import { useMemo, useState, type ReactNode } from 'react';\nimport { validateGenerativeUIDocument } from \"@alneas/appkit-core/ai\";\nimport { MinimalErrorBoundary } from './error-boundary';\nimport type { GenerativeUIIssue, GenerativeUIRegistry } from './registry';\n\n/**\n * Props for rendering a fully assembled, immutable JSON response.\n * @see GenerativeUIRenderer for the canonical usage example.\n */\nexport interface GenerativeUIRendererProps {\n /** Parsed JSON input. Replace its reference to submit a new immutable document. */\n input: unknown;\n /** Only explicitly registered component types can render. */\n registry: GenerativeUIRegistry;\n /** Application-owned fallback/localization. Receives safe metadata, never raw exceptions. */\n renderFallback?: (issue: GenerativeUIIssue) => ReactNode;\n}\n\nfunction defaultFallback(issue: GenerativeUIIssue): ReactNode {\n return <p role=\"status\" data-generative-ui-error={issue.code}>This content cannot be displayed.</p>;\n}\n\n/**\n * Renders validated JSON blocks using an explicit application registry.\n *\n *\n * @remarks\n * Envelope validation snapshots input by reference. Pass immutable documents; replace\n * input when a response changes. Component validators run during rendering and must\n * be pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\n * get a document fallback. MinimalErrorBoundary isolates client render failures.\n * Block identity includes document ID, block ID/type and data.\n *\n *\n *
|
|
1
|
+
{"version":3,"file":"GenerativeUIRenderer.js","names":["_Fragment","defaultFallback","issue","GenerativeUIRenderer","document","useMemo","validateGenerativeUIDocument","input","scope","setScope","useState","registry","Fragment","resolved","block","key","fallback","renderFallback","MinimalErrorBoundary"],"sources":["../../../src/ai/generative-ui/GenerativeUIRenderer.tsx"],"sourcesContent":["import { useMemo, useState, type ReactNode } from 'react';\nimport { validateGenerativeUIDocument } from \"@alneas/appkit-core/ai\";\nimport { MinimalErrorBoundary } from './error-boundary';\nimport type { GenerativeUIIssue, GenerativeUIRegistry } from './registry';\n\n/**\n * Props for rendering a fully assembled, immutable JSON response.\n * @see GenerativeUIRenderer for the canonical usage example.\n */\nexport interface GenerativeUIRendererProps {\n /** Parsed JSON input. Replace its reference to submit a new immutable document. */\n input: unknown;\n /** Only explicitly registered component types can render. */\n registry: GenerativeUIRegistry;\n /** Application-owned fallback/localization. Receives safe metadata, never raw exceptions. */\n renderFallback?: (issue: GenerativeUIIssue) => ReactNode;\n}\n\nfunction defaultFallback(issue: GenerativeUIIssue): ReactNode {\n return <p role=\"status\" data-generative-ui-error={issue.code}>This content cannot be displayed.</p>;\n}\n\n/**\n * Renders validated JSON blocks using an explicit application registry.\n *\n *\n * @remarks\n * Envelope validation snapshots input by reference. Pass immutable documents; replace\n * input when a response changes. Component validators run during rendering and must\n * be pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\n * get a document fallback. MinimalErrorBoundary isolates client render failures.\n * Block identity includes document ID, block ID/type and data.\n *\n *\n * Requires React; registered components own any other providers or CSS.\n * The default fallback is an English status paragraph. Client error boundaries handle\n * descendant render failures; React server rendering errors are not isolated by them.\n * Fallback callback errors propagate. Changing registry identity remounts blocks.\n *\n * @param props - Immutable response, explicit registry and optional localized fallback renderer.\n *\n * @returns Block wrappers and registered elements, or fallback content for invalid input.\n *\n * @example\n * ```tsx\n * import { createGenerativeUIRegistry, GenerativeUIRenderer } from '@alneas/appkit-react/ai/generative-ui';\n * const registry = createGenerativeUIRegistry([]);\n * // Supply a parsed host response; unregistered types receive the fallback.\n * export function GeneratedResponse({ response }: { response: unknown }) {\n * return <GenerativeUIRenderer input={response} registry={registry} />;\n * }\n * ```\n */\nexport function GenerativeUIRenderer({\n input,\n registry,\n renderFallback = defaultFallback,\n}: GenerativeUIRendererProps): ReactNode {\n const document = useMemo(() => validateGenerativeUIDocument(input), [input]);\n const [scope, setScope] = useState({ registry, generation: 0 });\n if (scope.registry !== registry) setScope({ registry, generation: scope.generation + 1 });\n if (!document.ok) return renderFallback({ code: 'INVALID_DOCUMENT' });\n\n return (\n <>\n {document.data.blocks.map(block => {\n const resolved = registry.resolve(block);\n const key = JSON.stringify([scope.generation, document.data.id, block]);\n const fallback = (issue: GenerativeUIIssue) => (\n <div data-generative-ui-block={block.id}>{renderFallback(issue)}</div>\n );\n if (!resolved.ok) return <div key={key}>{fallback(resolved.issue)}</div>;\n return (\n <MinimalErrorBoundary\n key={key}\n fallback={() => fallback({ code: 'RENDER_ERROR', blockId: block.id, type: block.type })}\n >\n <div data-generative-ui-block={block.id}>{resolved.element}</div>\n </MinimalErrorBoundary>\n );\n })}\n </>\n );\n}\n"],"mappings":";;;;;;AAkBA,SAASC,EAAgB,GAAqC;CAC5D,OAAO,kBAAC,KAAD;EAAG,MAAK;EAAS,4BAA0BC,EAAM;EAAM,UAAA;CAAoC,CAAA;AACpG;AAiCA,SAAgBC,EAAqB,EACnC,UACA,aACA,oBAAiBF,KACsB;CACvC,IAAMG,IAAWC,QAAcC,EAA6BC,CAAK,GAAG,CAACA,CAAK,CAAC,GACrE,CAACC,GAAOC,KAAYC,EAAS;EAAE;EAAU,YAAY;CAAE,CAAC;CAI9D,OAHIF,EAAM,aAAaG,KAAUF,EAAS;EAAE;EAAU,YAAYD,EAAM,aAAa;CAAE,CAAC,GACnFJ,EAAS,KAGZ,kBAAAJ,GAAA,EAAA,UACGI,EAAS,KAAK,OAAO,KAAI,MAAS;EACjC,IAAMS,IAAWF,EAAS,QAAQG,CAAK,GACjCC,IAAM,KAAK,UAAU;GAACP,EAAM;GAAYJ,EAAS,KAAK;GAAIU;EAAK,CAAC,GAChEE,KAAY,MAChB,kBAAC,OAAD;GAAK,4BAA0BF,EAAM;GAAK,UAAAG,EAAef,CAAK;EAAO,CAAA;EAGvE,OADKW,EAAS,KAEZ,kBAACK,GAAD;GAEE,gBAAgBF,EAAS;IAAE,MAAM;IAAgB,SAASF,EAAM;IAAI,MAAMA,EAAM;GAAK,CAAC;GAEtF,UAAA,kBAAC,OAAD;IAAK,4BAA0BA,EAAM;IAAK,UAAAD,EAAS;GAAa,CAAA;EAC5C,GAJfE,CAIe,IAPC,kBAAC,OAAD,EAAA,UAAgBC,EAASH,EAAS,KAAK,EAAO,GAApCE,CAAoC;CASzE,CAAC,EACD,CAAA,IApBqBE,EAAe,EAAE,MAAM,mBAAmB,CAAC;AAsBtE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@alneas/appkit-react",
|
|
4
|
-
"packageVersion": "0.3.
|
|
5
|
-
"inputDigest": "
|
|
4
|
+
"packageVersion": "0.3.1",
|
|
5
|
+
"inputDigest": "9dbd7be71694e1b1dbfc1cc74cc55088a99220401b0cff370b7443119f81b508",
|
|
6
6
|
"entries": [
|
|
7
7
|
{
|
|
8
8
|
"importPath": "@alneas/appkit-react",
|
|
@@ -22512,7 +22512,7 @@
|
|
|
22512
22512
|
"tags": [
|
|
22513
22513
|
{
|
|
22514
22514
|
"name": "remarks",
|
|
22515
|
-
"text": "Envelope validation snapshots input by reference. Pass immutable documents; replace\ninput when a response changes. Component validators run during rendering and must\nbe pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\nget a document fallback. MinimalErrorBoundary isolates client render failures.\nBlock identity includes document ID, block ID/type and data."
|
|
22515
|
+
"text": "Envelope validation snapshots input by reference. Pass immutable documents; replace\ninput when a response changes. Component validators run during rendering and must\nbe pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\nget a document fallback. MinimalErrorBoundary isolates client render failures.\nBlock identity includes document ID, block ID/type and data.\n\n\nRequires React; registered components own any other providers or CSS.\nThe default fallback is an English status paragraph. Client error boundaries handle\ndescendant render failures; React server rendering errors are not isolated by them.\nFallback callback errors propagate. Changing registry identity remounts blocks."
|
|
22516
22516
|
},
|
|
22517
22517
|
{
|
|
22518
22518
|
"name": "param",
|
|
@@ -22522,10 +22522,6 @@
|
|
|
22522
22522
|
"name": "returns",
|
|
22523
22523
|
"text": "Block wrappers and registered elements, or fallback content for invalid input."
|
|
22524
22524
|
},
|
|
22525
|
-
{
|
|
22526
|
-
"name": "remarks",
|
|
22527
|
-
"text": "Requires React; registered components own any other providers or CSS.\nThe default fallback is an English status paragraph. Client error boundaries handle\ndescendant render failures; React server rendering errors are not isolated by them.\nFallback callback errors propagate. Changing registry identity remounts blocks."
|
|
22528
|
-
},
|
|
22529
22525
|
{
|
|
22530
22526
|
"name": "example",
|
|
22531
22527
|
"text": "```tsx\nimport { createGenerativeUIRegistry, GenerativeUIRenderer } from '@alneas/appkit-react/ai/generative-ui';\nconst registry = createGenerativeUIRegistry([]);\n// Supply a parsed host response; unregistered types receive the fallback.\nexport function GeneratedResponse({ response }: { response: unknown }) {\n return <GenerativeUIRenderer input={response} registry={registry} />;\n}\n```"
|
|
@@ -23508,16 +23504,12 @@
|
|
|
23508
23504
|
},
|
|
23509
23505
|
{
|
|
23510
23506
|
"name": "remarks",
|
|
23511
|
-
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions."
|
|
23507
|
+
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions.\nOmitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
23512
23508
|
},
|
|
23513
23509
|
{
|
|
23514
23510
|
"name": "throws",
|
|
23515
23511
|
"text": "Throws Ajv configuration/format-registration failures during construction; later schema compilation failures propagate from the returned validator."
|
|
23516
23512
|
},
|
|
23517
|
-
{
|
|
23518
|
-
"name": "remarks",
|
|
23519
|
-
"text": "Omitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
23520
|
-
},
|
|
23521
23513
|
{
|
|
23522
23514
|
"name": "example",
|
|
23523
23515
|
"text": "```typescript\nimport { createAjvValidator } from '@alneas/appkit-core/ai/validation';\n\nconst validate = createAjvValidator({ locale: 'en' });\nconsole.log(validate({ type: 'object', properties: { name: { type: 'string' } }, required: ['name'] }, { name: 'Ada' }));\n```"
|
|
@@ -26109,16 +26101,12 @@
|
|
|
26109
26101
|
},
|
|
26110
26102
|
{
|
|
26111
26103
|
"name": "remarks",
|
|
26112
|
-
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions."
|
|
26104
|
+
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions.\nOmitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
26113
26105
|
},
|
|
26114
26106
|
{
|
|
26115
26107
|
"name": "throws",
|
|
26116
26108
|
"text": "Throws Ajv configuration/format-registration failures during construction; later schema compilation failures propagate from the returned validator."
|
|
26117
26109
|
},
|
|
26118
|
-
{
|
|
26119
|
-
"name": "remarks",
|
|
26120
|
-
"text": "Omitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
26121
|
-
},
|
|
26122
26110
|
{
|
|
26123
26111
|
"name": "example",
|
|
26124
26112
|
"text": "```typescript\nimport { createAjvValidator } from '@alneas/appkit-core/ai/validation';\n\nconst validate = createAjvValidator({ locale: 'en' });\nconsole.log(validate({ type: 'object', properties: { name: { type: 'string' } }, required: ['name'] }, { name: 'Ada' }));\n```"
|
|
@@ -28462,16 +28450,12 @@
|
|
|
28462
28450
|
},
|
|
28463
28451
|
{
|
|
28464
28452
|
"name": "remarks",
|
|
28465
|
-
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions."
|
|
28453
|
+
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions.\nOmitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
28466
28454
|
},
|
|
28467
28455
|
{
|
|
28468
28456
|
"name": "throws",
|
|
28469
28457
|
"text": "Throws Ajv configuration/format-registration failures during construction; later schema compilation failures propagate from the returned validator."
|
|
28470
28458
|
},
|
|
28471
|
-
{
|
|
28472
|
-
"name": "remarks",
|
|
28473
|
-
"text": "Omitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
28474
|
-
},
|
|
28475
28459
|
{
|
|
28476
28460
|
"name": "example",
|
|
28477
28461
|
"text": "```typescript\nimport { createAjvValidator } from '@alneas/appkit-core/ai/validation';\n\nconst validate = createAjvValidator({ locale: 'en' });\nconsole.log(validate({ type: 'object', properties: { name: { type: 'string' } }, required: ['name'] }, { name: 'Ada' }));\n```"
|
|
@@ -30058,7 +30042,7 @@
|
|
|
30058
30042
|
"tags": [
|
|
30059
30043
|
{
|
|
30060
30044
|
"name": "remarks",
|
|
30061
|
-
"text": "Envelope validation snapshots input by reference. Pass immutable documents; replace\ninput when a response changes. Component validators run during rendering and must\nbe pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\nget a document fallback. MinimalErrorBoundary isolates client render failures.\nBlock identity includes document ID, block ID/type and data."
|
|
30045
|
+
"text": "Envelope validation snapshots input by reference. Pass immutable documents; replace\ninput when a response changes. Component validators run during rendering and must\nbe pure. Unknown types and invalid data get per-block fallbacks; malformed envelopes\nget a document fallback. MinimalErrorBoundary isolates client render failures.\nBlock identity includes document ID, block ID/type and data.\n\n\nRequires React; registered components own any other providers or CSS.\nThe default fallback is an English status paragraph. Client error boundaries handle\ndescendant render failures; React server rendering errors are not isolated by them.\nFallback callback errors propagate. Changing registry identity remounts blocks."
|
|
30062
30046
|
},
|
|
30063
30047
|
{
|
|
30064
30048
|
"name": "param",
|
|
@@ -30068,10 +30052,6 @@
|
|
|
30068
30052
|
"name": "returns",
|
|
30069
30053
|
"text": "Block wrappers and registered elements, or fallback content for invalid input."
|
|
30070
30054
|
},
|
|
30071
|
-
{
|
|
30072
|
-
"name": "remarks",
|
|
30073
|
-
"text": "Requires React; registered components own any other providers or CSS.\nThe default fallback is an English status paragraph. Client error boundaries handle\ndescendant render failures; React server rendering errors are not isolated by them.\nFallback callback errors propagate. Changing registry identity remounts blocks."
|
|
30074
|
-
},
|
|
30075
30055
|
{
|
|
30076
30056
|
"name": "example",
|
|
30077
30057
|
"text": "```tsx\nimport { createGenerativeUIRegistry, GenerativeUIRenderer } from '@alneas/appkit-react/ai/generative-ui';\nconst registry = createGenerativeUIRegistry([]);\n// Supply a parsed host response; unregistered types receive the fallback.\nexport function GeneratedResponse({ response }: { response: unknown }) {\n return <GenerativeUIRenderer input={response} registry={registry} />;\n}\n```"
|
|
@@ -30742,16 +30722,12 @@
|
|
|
30742
30722
|
},
|
|
30743
30723
|
{
|
|
30744
30724
|
"name": "remarks",
|
|
30745
|
-
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions."
|
|
30725
|
+
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions.\nOmitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
30746
30726
|
},
|
|
30747
30727
|
{
|
|
30748
30728
|
"name": "throws",
|
|
30749
30729
|
"text": "Throws Ajv configuration/format-registration failures during construction; later schema compilation failures propagate from the returned validator."
|
|
30750
30730
|
},
|
|
30751
|
-
{
|
|
30752
|
-
"name": "remarks",
|
|
30753
|
-
"text": "Omitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
30754
|
-
},
|
|
30755
30731
|
{
|
|
30756
30732
|
"name": "example",
|
|
30757
30733
|
"text": "```typescript\nimport { createAjvValidator } from '@alneas/appkit-core/ai/validation';\n\nconst validate = createAjvValidator({ locale: 'en' });\nconsole.log(validate({ type: 'object', properties: { name: { type: 'string' } }, required: ['name'] }, { name: 'Ada' }));\n```"
|
|
@@ -33134,16 +33110,12 @@
|
|
|
33134
33110
|
},
|
|
33135
33111
|
{
|
|
33136
33112
|
"name": "remarks",
|
|
33137
|
-
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions."
|
|
33113
|
+
"text": "Automatically selects draft-07/2020-12 based on $schema; compiled functions are not shared across instances.\nDo not modify schemas after compilation; provide a new schema object instead.\nThe returned ajv instance corresponds to the default draft. Specify draft explicitly when using addSchema/addKeyword.\nThe default path disables type coercion and does not insert defaults or remove\nkeys. Explicit ajvOptions can enable input mutation. Unknown x-* keywords are\nnot business validation rules merely because strict mode is disabled.\nCompilation/configuration failures throw; invalid data returns valid: false.\nRuntime compilation requires a host that permits AJV's generated functions.\nOmitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
33138
33114
|
},
|
|
33139
33115
|
{
|
|
33140
33116
|
"name": "throws",
|
|
33141
33117
|
"text": "Throws Ajv configuration/format-registration failures during construction; later schema compilation failures propagate from the returned validator."
|
|
33142
33118
|
},
|
|
33143
|
-
{
|
|
33144
|
-
"name": "remarks",
|
|
33145
|
-
"text": "Omitted options default to {}; draft-07, no explicit locale, and noncoercing data validation are used."
|
|
33146
|
-
},
|
|
33147
33119
|
{
|
|
33148
33120
|
"name": "example",
|
|
33149
33121
|
"text": "```typescript\nimport { createAjvValidator } from '@alneas/appkit-core/ai/validation';\n\nconst validate = createAjvValidator({ locale: 'en' });\nconsole.log(validate({ type: 'object', properties: { name: { type: 'string' } }, required: ['name'] }, { name: 'Ada' }));\n```"
|
|
@@ -79375,7 +79347,7 @@
|
|
|
79375
79347
|
"tags": [
|
|
79376
79348
|
{
|
|
79377
79349
|
"name": "remarks",
|
|
79378
|
-
"text": "Retain forwardRef to compose native registration and caller refs, including\ncallback cleanup; this is not a direct DOM-ref passthrough."
|
|
79350
|
+
"text": "Retain forwardRef to compose native registration and caller refs, including\ncallback cleanup; this is not a direct DOM-ref passthrough.\nRequires the native Kanban surface. Pointer intersection excludes outside\ndrops; WIP limits are presentational and do not reject a host status callback."
|
|
79379
79351
|
},
|
|
79380
79352
|
{
|
|
79381
79353
|
"name": "param",
|
|
@@ -79389,10 +79361,6 @@
|
|
|
79389
79361
|
"name": "returns",
|
|
79390
79362
|
"text": "A column div accepting Kanban task registrations."
|
|
79391
79363
|
},
|
|
79392
|
-
{
|
|
79393
|
-
"name": "remarks",
|
|
79394
|
-
"text": "Requires the native Kanban surface. Pointer intersection excludes outside\ndrops; WIP limits are presentational and do not reject a host status callback."
|
|
79395
|
-
},
|
|
79396
79364
|
{
|
|
79397
79365
|
"name": "example",
|
|
79398
79366
|
"text": "```tsx\nimport {KanbanDragSurface, KanbanColumnFrame, KanbanDraggableCard, useKanbanDrag}\n from '@alneas/appkit-react/tools/kanban';\nimport '@alneas/appkit-react/styles';\nexport function CustomCards() {\n const tasks = [{id: 'one', title: 'Review', status: 'todo'}];\n const controller = useKanbanDrag({tasks});\n return <KanbanDragSurface controller={controller}>\n <KanbanColumnFrame column={{id: 'todo', title: 'Todo'}}>\n <KanbanDraggableCard task={tasks[0]}>Review</KanbanDraggableCard>\n </KanbanColumnFrame>\n </KanbanDragSurface>;\n}\n```"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@alneas/appkit-react",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"import": {
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"./api-index.json": "./consumer-ai/api-index.json"
|
|
352
352
|
},
|
|
353
353
|
"dependencies": {
|
|
354
|
-
"@alneas/appkit-core": "0.2.
|
|
354
|
+
"@alneas/appkit-core": "^0.2.2",
|
|
355
355
|
"@base-ui/react": "^1.9.0",
|
|
356
356
|
"@dnd-kit/collision": "0.5.1",
|
|
357
357
|
"@dnd-kit/dom": "0.5.1",
|