@keemakr/ui-sdk 1.7.0 → 1.8.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.
- package/README.md +163 -1
- package/catalog.json +7 -19
- package/dist/build.js +48 -2
- package/dist/check-cli.d.ts +9 -0
- package/dist/check-cli.js +145 -0
- package/dist/check.d.ts +166 -0
- package/dist/check.js +408 -0
- package/dist/cli.js +5 -1
- package/dist/define.d.ts +7 -1
- package/dist/define.js +3 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +3 -2
- package/dist/media.d.ts +12 -0
- package/dist/media.js +19 -1
- package/dist/negotiate.d.ts +11 -2
- package/dist/negotiate.js +24 -1
- package/dist/node-limits.d.ts +3 -3
- package/dist/node-limits.js +2 -2
- package/dist/page.d.ts +307 -0
- package/dist/page.js +482 -0
- package/dist/reach.d.ts +66 -0
- package/dist/reach.js +151 -0
- package/dist/schema.d.ts +46 -0
- package/dist/schema.js +80 -8
- package/dist/stories.d.ts +63 -0
- package/dist/stories.js +297 -0
- package/dist/testkit.d.ts +13 -2
- package/dist/testkit.js +8 -2
- package/dist/ui-build.d.ts +46 -0
- package/dist/ui-build.js +61 -0
- package/dist/ui-nodes.d.ts +195 -0
- package/dist/ui-nodes.js +197 -0
- package/dist/ui.d.ts +61 -0
- package/dist/ui.js +22 -0
- package/package.json +22 -2
package/dist/ui-nodes.js
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-catalog.ts from the catalog: do not edit. Run
|
|
2
|
+
// `npm run gen:catalog -w @keemakr/ui-sdk` after changing the schema.
|
|
3
|
+
import { buildNode } from './ui-build.js';
|
|
4
|
+
/** The catalog these builders were generated from. A test holds it to a fresh build. */
|
|
5
|
+
export const UI_NODES_CATALOG_ID = 'kee/1+c8e17129b699';
|
|
6
|
+
/**
|
|
7
|
+
* One builder per screen node. Each takes the node's fields without `type`, applies the
|
|
8
|
+
* schema's defaults, and throws a `UiBuildError` naming the field path for a value the schema
|
|
9
|
+
* refuses, a value past its cap among them.
|
|
10
|
+
*/
|
|
11
|
+
export const nodeBuilders = {
|
|
12
|
+
/**
|
|
13
|
+
* A `heading` node. Since ui-sdk 1.1.0. Kee may draw it in a chat reply.
|
|
14
|
+
* Caps: `text` 120. Every cap is in `NODE_LIMITS.heading`.
|
|
15
|
+
*/
|
|
16
|
+
heading: (props) => buildNode('heading', props),
|
|
17
|
+
/**
|
|
18
|
+
* A `text` node. Since ui-sdk 1.1.0. Kee may draw it in a chat reply.
|
|
19
|
+
* Caps: `value` 5000. Every cap is in `NODE_LIMITS.text`.
|
|
20
|
+
*/
|
|
21
|
+
text: (props) => buildNode('text', props),
|
|
22
|
+
/**
|
|
23
|
+
* A `markdown` node. Since ui-sdk 1.1.0.
|
|
24
|
+
* Caps: `value` 20000. Every cap is in `NODE_LIMITS.markdown`.
|
|
25
|
+
*/
|
|
26
|
+
markdown: (props) => buildNode('markdown', props),
|
|
27
|
+
/**
|
|
28
|
+
* A `stat` node. Since ui-sdk 1.1.0. Kee may draw it in a chat reply.
|
|
29
|
+
* Caps: `hint` 120, `label` 80, `value` 40. Every cap is in `NODE_LIMITS.stat`.
|
|
30
|
+
*/
|
|
31
|
+
stat: (props) => buildNode('stat', props),
|
|
32
|
+
/**
|
|
33
|
+
* A `button` node. Since ui-sdk 1.1.0.
|
|
34
|
+
* Caps: `disabledReason` 200, `hint` 200, `label` 80. Every cap is in `NODE_LIMITS.button`.
|
|
35
|
+
*/
|
|
36
|
+
button: (props) => buildNode('button', props),
|
|
37
|
+
/**
|
|
38
|
+
* A `form` node. Since ui-sdk 1.1.0.
|
|
39
|
+
* Caps: `fields` 30, `key` 64, `secondary` 3. Every cap is in `NODE_LIMITS.form`.
|
|
40
|
+
*/
|
|
41
|
+
form: (props) => buildNode('form', props),
|
|
42
|
+
/**
|
|
43
|
+
* A `table` node. Since ui-sdk 1.1.0. Holds child nodes. Kee may draw it in a chat reply.
|
|
44
|
+
* Caps: `columns` 12, `empty` 200, `rows` 500. Every cap is in `NODE_LIMITS.table`.
|
|
45
|
+
*/
|
|
46
|
+
table: (props) => buildNode('table', props),
|
|
47
|
+
/**
|
|
48
|
+
* A `timeline` node. Since ui-sdk 1.1.0. Kee may draw it in a chat reply.
|
|
49
|
+
* Caps: `items` 200. Every cap is in `NODE_LIMITS.timeline`.
|
|
50
|
+
*/
|
|
51
|
+
timeline: (props) => buildNode('timeline', props),
|
|
52
|
+
/**
|
|
53
|
+
* A `pending_request` node. Since ui-sdk 1.1.0.
|
|
54
|
+
* Caps: `options` 1, `requestId` 128. Every cap is in `NODE_LIMITS.pending_request`.
|
|
55
|
+
*/
|
|
56
|
+
pending_request: (props) => buildNode('pending_request', props),
|
|
57
|
+
/**
|
|
58
|
+
* A `pending_requests` node. Since ui-sdk 1.1.0.
|
|
59
|
+
* No size caps.
|
|
60
|
+
*/
|
|
61
|
+
pending_requests: (props) => buildNode('pending_requests', props),
|
|
62
|
+
/**
|
|
63
|
+
* A `choice_cards` node. Since ui-sdk 1.1.0.
|
|
64
|
+
* Caps: `choices` 20. Every cap is in `NODE_LIMITS.choice_cards`.
|
|
65
|
+
*/
|
|
66
|
+
choice_cards: (props) => buildNode('choice_cards', props),
|
|
67
|
+
/**
|
|
68
|
+
* A `progress` node. Since ui-sdk 1.1.0.
|
|
69
|
+
* Caps: `steps` 100. Every cap is in `NODE_LIMITS.progress`.
|
|
70
|
+
*/
|
|
71
|
+
progress: (props) => buildNode('progress', props),
|
|
72
|
+
/**
|
|
73
|
+
* A `chart` node. Since ui-sdk 1.1.0. Kee may draw it in a chat reply.
|
|
74
|
+
* Caps: `categories` 120, `series` 8, `title` 120, `valueSuffix` 12. Every cap is in `NODE_LIMITS.chart`.
|
|
75
|
+
*/
|
|
76
|
+
chart: (props) => buildNode('chart', props),
|
|
77
|
+
/**
|
|
78
|
+
* A `pagination` node. Since ui-sdk 1.4.0.
|
|
79
|
+
* Caps: `param` 64. Every cap is in `NODE_LIMITS.pagination`.
|
|
80
|
+
*/
|
|
81
|
+
pagination: (props) => buildNode('pagination', props),
|
|
82
|
+
/**
|
|
83
|
+
* A `select` node. Since ui-sdk 1.4.0.
|
|
84
|
+
* Caps: `disabledReason` 200, `hint` 200, `label` 80, `name` 64, `options` 100, `value` 200, `values` 12. Every cap is in `NODE_LIMITS.select`.
|
|
85
|
+
*/
|
|
86
|
+
select: (props) => buildNode('select', props),
|
|
87
|
+
/**
|
|
88
|
+
* A `alert` node. Since ui-sdk 1.4.0. Kee may draw it in a chat reply.
|
|
89
|
+
* Caps: `text` 1000, `title` 120. Every cap is in `NODE_LIMITS.alert`.
|
|
90
|
+
*/
|
|
91
|
+
alert: (props) => buildNode('alert', props),
|
|
92
|
+
/**
|
|
93
|
+
* A `details` node. Since ui-sdk 1.4.0. Kee may draw it in a chat reply.
|
|
94
|
+
* Caps: `items` 50, `title` 120. Every cap is in `NODE_LIMITS.details`.
|
|
95
|
+
*/
|
|
96
|
+
details: (props) => buildNode('details', props),
|
|
97
|
+
/**
|
|
98
|
+
* A `timestamp` node. Since ui-sdk 1.4.0.
|
|
99
|
+
* Caps: `label` 80. Every cap is in `NODE_LIMITS.timestamp`.
|
|
100
|
+
*/
|
|
101
|
+
timestamp: (props) => buildNode('timestamp', props),
|
|
102
|
+
/**
|
|
103
|
+
* A `divider` node. Since ui-sdk 1.4.0. Kee may draw it in a chat reply.
|
|
104
|
+
* No size caps.
|
|
105
|
+
*/
|
|
106
|
+
divider: (props) => buildNode('divider', props),
|
|
107
|
+
/**
|
|
108
|
+
* A `board` node. Since ui-sdk 1.4.0.
|
|
109
|
+
* Caps: `columns` 8, `empty` 80. Every cap is in `NODE_LIMITS.board`.
|
|
110
|
+
*/
|
|
111
|
+
board: (props) => buildNode('board', props),
|
|
112
|
+
/**
|
|
113
|
+
* A `link` node. Since ui-sdk 1.4.0. Kee may draw it in a chat reply.
|
|
114
|
+
* Caps: `copy` 2000, `hint` 120, `href` 2000, `label` 120. Every cap is in `NODE_LIMITS.link`.
|
|
115
|
+
*/
|
|
116
|
+
link: (props) => buildNode('link', props),
|
|
117
|
+
/**
|
|
118
|
+
* A `tags` node. Since ui-sdk 1.4.0. Kee may draw it in a chat reply.
|
|
119
|
+
* Caps: `items` 20, `label` 80. Every cap is in `NODE_LIMITS.tags`.
|
|
120
|
+
*/
|
|
121
|
+
tags: (props) => buildNode('tags', props),
|
|
122
|
+
/**
|
|
123
|
+
* A `toggle` node. Since ui-sdk 1.4.0.
|
|
124
|
+
* Caps: `disabledReason` 200, `hint` 200, `label` 80, `name` 64. Every cap is in `NODE_LIMITS.toggle`.
|
|
125
|
+
*/
|
|
126
|
+
toggle: (props) => buildNode('toggle', props),
|
|
127
|
+
/**
|
|
128
|
+
* A `segmented` node. Since ui-sdk 1.4.0.
|
|
129
|
+
* Caps: `label` 80, `name` 64, `options` 6, `value` 200. Every cap is in `NODE_LIMITS.segmented`.
|
|
130
|
+
*/
|
|
131
|
+
segmented: (props) => buildNode('segmented', props),
|
|
132
|
+
/**
|
|
133
|
+
* A `progress_bar` node. Since ui-sdk 1.4.0. Kee may draw it in a chat reply.
|
|
134
|
+
* Caps: `label` 80, `valueLabel` 40. Every cap is in `NODE_LIMITS.progress_bar`.
|
|
135
|
+
*/
|
|
136
|
+
progress_bar: (props) => buildNode('progress_bar', props),
|
|
137
|
+
/**
|
|
138
|
+
* A `heatmap` node. Since the current release.
|
|
139
|
+
* Caps: `columns` 24, `rowHeader` 80, `rows` 50, `title` 120, `valueSuffix` 12. Every cap is in `NODE_LIMITS.heatmap`.
|
|
140
|
+
*/
|
|
141
|
+
heatmap: (props) => buildNode('heatmap', props),
|
|
142
|
+
/**
|
|
143
|
+
* A `stacked_bar` node. Since the current release.
|
|
144
|
+
* Caps: `label` 80, `segments` 6, `valueLabel` 40. Every cap is in `NODE_LIMITS.stacked_bar`.
|
|
145
|
+
*/
|
|
146
|
+
stacked_bar: (props) => buildNode('stacked_bar', props),
|
|
147
|
+
/**
|
|
148
|
+
* A `conversation` node. Since ui-sdk 1.4.0.
|
|
149
|
+
* Caps: `empty` 80, `messages` 500. Every cap is in `NODE_LIMITS.conversation`.
|
|
150
|
+
*/
|
|
151
|
+
conversation: (props) => buildNode('conversation', props),
|
|
152
|
+
/**
|
|
153
|
+
* A `composer` node. Since ui-sdk 1.4.0.
|
|
154
|
+
* Caps: `disabledReason` 200, `label` 80, `mode` 64, `modes` 4, `name` 64, `placeholder` 120, `value` 20000. Every cap is in `NODE_LIMITS.composer`.
|
|
155
|
+
*/
|
|
156
|
+
composer: (props) => buildNode('composer', props),
|
|
157
|
+
/**
|
|
158
|
+
* A `calendar` node. Since ui-sdk 1.4.0.
|
|
159
|
+
* Caps: `empty` 80, `events` 500, `resources` 12, `timeZone` 64, `views` 3. Every cap is in `NODE_LIMITS.calendar`.
|
|
160
|
+
*/
|
|
161
|
+
calendar: (props) => buildNode('calendar', props),
|
|
162
|
+
/**
|
|
163
|
+
* A `image` node. Since ui-sdk 1.4.0.
|
|
164
|
+
* Caps: `alt` 300, `caption` 200, `src` 2048. Every cap is in `NODE_LIMITS.image`.
|
|
165
|
+
*/
|
|
166
|
+
image: (props) => buildNode('image', props),
|
|
167
|
+
/**
|
|
168
|
+
* A `video` node. Since ui-sdk 1.4.0.
|
|
169
|
+
* Caps: `caption` 200, `captions` 256, `key` 64, `poster` 2048, `src` 2048, `title` 120. Every cap is in `NODE_LIMITS.video`.
|
|
170
|
+
*/
|
|
171
|
+
video: (props) => buildNode('video', props),
|
|
172
|
+
/**
|
|
173
|
+
* A `audio` node. Since the current release.
|
|
174
|
+
* Caps: `caption` 200, `key` 64, `src` 256, `title` 120. Every cap is in `NODE_LIMITS.audio`.
|
|
175
|
+
*/
|
|
176
|
+
audio: (props) => buildNode('audio', props),
|
|
177
|
+
/**
|
|
178
|
+
* A `document` node. Since the current release.
|
|
179
|
+
* Caps: `caption` 200, `src` 256, `title` 120. Every cap is in `NODE_LIMITS.document`.
|
|
180
|
+
*/
|
|
181
|
+
document: (props) => buildNode('document', props),
|
|
182
|
+
/**
|
|
183
|
+
* A `dataset` node. Since the current release.
|
|
184
|
+
* Caps: `dataset` 64, `empty` 80, `fields` 12, `groupBy` 64, `param` 64. Every cap is in `NODE_LIMITS.dataset`.
|
|
185
|
+
*/
|
|
186
|
+
dataset: (props) => buildNode('dataset', props),
|
|
187
|
+
/**
|
|
188
|
+
* A `section` node. Since ui-sdk 1.1.0. Holds child nodes. Kee may draw it in a chat reply.
|
|
189
|
+
* Caps: `badge` 24, `children` 100, `description` 300, `key` 64, `title` 120, `weights` 4. Every cap is in `NODE_LIMITS.section`.
|
|
190
|
+
*/
|
|
191
|
+
section: (props) => buildNode('section', props),
|
|
192
|
+
/**
|
|
193
|
+
* A `tabs` node. Since ui-sdk 1.1.0. Holds child nodes.
|
|
194
|
+
* Caps: `active` 64, `key` 64, `param` 64, `tabs` 10. Every cap is in `NODE_LIMITS.tabs`.
|
|
195
|
+
*/
|
|
196
|
+
tabs: (props) => buildNode('tabs', props),
|
|
197
|
+
};
|
package/dist/ui.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@keemakr/ui-sdk/ui`: typed builders for screen trees. `ui.screen(...)` sets `version`, and one
|
|
3
|
+
* builder per node (`ui.table(...)`, `ui.text(...)` …, generated from the catalog into
|
|
4
|
+
* ui-nodes.ts) sets `type`. Every builder applies the schema's defaults and throws a
|
|
5
|
+
* `UiBuildError` naming the field path for a value the schema refuses, a value past its cap
|
|
6
|
+
* among them. The result is the same plain JSON a hand-written tree would be after core parses
|
|
7
|
+
* it, so a builder is a convenience for the author and changes nothing core receives.
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { ui } from '@keemakr/ui-sdk/ui';
|
|
11
|
+
*
|
|
12
|
+
* return ui.screen({
|
|
13
|
+
* title: 'Leads',
|
|
14
|
+
* children: [ui.table({ columns: [{ key: 'name', label: 'Name' }], rows, empty: 'No leads yet' })],
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
import { buildScreen } from './ui-build.js';
|
|
19
|
+
export declare const ui: {
|
|
20
|
+
heading: (props: import("./ui-build.js").UiNodeProps<"heading">) => import("./ui-build.js").UiNode<"heading">;
|
|
21
|
+
text: (props: import("./ui-build.js").UiNodeProps<"text">) => import("./ui-build.js").UiNode<"text">;
|
|
22
|
+
markdown: (props: import("./ui-build.js").UiNodeProps<"markdown">) => import("./ui-build.js").UiNode<"markdown">;
|
|
23
|
+
stat: (props: import("./ui-build.js").UiNodeProps<"stat">) => import("./ui-build.js").UiNode<"stat">;
|
|
24
|
+
button: (props: import("./ui-build.js").UiNodeProps<"button">) => import("./ui-build.js").UiNode<"button">;
|
|
25
|
+
form: (props: import("./ui-build.js").UiNodeProps<"form">) => import("./ui-build.js").UiNode<"form">;
|
|
26
|
+
table: (props: import("./ui-build.js").UiNodeProps<"table">) => import("./ui-build.js").UiNode<"table">;
|
|
27
|
+
timeline: (props: import("./ui-build.js").UiNodeProps<"timeline">) => import("./ui-build.js").UiNode<"timeline">;
|
|
28
|
+
pending_request: (props: import("./ui-build.js").UiNodeProps<"pending_request">) => import("./ui-build.js").UiNode<"pending_request">;
|
|
29
|
+
pending_requests: (props: import("./ui-build.js").UiNodeProps<"pending_requests">) => import("./ui-build.js").UiNode<"pending_requests">;
|
|
30
|
+
choice_cards: (props: import("./ui-build.js").UiNodeProps<"choice_cards">) => import("./ui-build.js").UiNode<"choice_cards">;
|
|
31
|
+
progress: (props: import("./ui-build.js").UiNodeProps<"progress">) => import("./ui-build.js").UiNode<"progress">;
|
|
32
|
+
chart: (props: import("./ui-build.js").UiNodeProps<"chart">) => import("./ui-build.js").UiNode<"chart">;
|
|
33
|
+
pagination: (props: import("./ui-build.js").UiNodeProps<"pagination">) => import("./ui-build.js").UiNode<"pagination">;
|
|
34
|
+
select: (props: import("./ui-build.js").UiNodeProps<"select">) => import("./ui-build.js").UiNode<"select">;
|
|
35
|
+
alert: (props: import("./ui-build.js").UiNodeProps<"alert">) => import("./ui-build.js").UiNode<"alert">;
|
|
36
|
+
details: (props: import("./ui-build.js").UiNodeProps<"details">) => import("./ui-build.js").UiNode<"details">;
|
|
37
|
+
timestamp: (props: import("./ui-build.js").UiNodeProps<"timestamp">) => import("./ui-build.js").UiNode<"timestamp">;
|
|
38
|
+
divider: (props: import("./ui-build.js").UiNodeProps<"divider">) => import("./ui-build.js").UiNode<"divider">;
|
|
39
|
+
board: (props: import("./ui-build.js").UiNodeProps<"board">) => import("./ui-build.js").UiNode<"board">;
|
|
40
|
+
link: (props: import("./ui-build.js").UiNodeProps<"link">) => import("./ui-build.js").UiNode<"link">;
|
|
41
|
+
tags: (props: import("./ui-build.js").UiNodeProps<"tags">) => import("./ui-build.js").UiNode<"tags">;
|
|
42
|
+
toggle: (props: import("./ui-build.js").UiNodeProps<"toggle">) => import("./ui-build.js").UiNode<"toggle">;
|
|
43
|
+
segmented: (props: import("./ui-build.js").UiNodeProps<"segmented">) => import("./ui-build.js").UiNode<"segmented">;
|
|
44
|
+
progress_bar: (props: import("./ui-build.js").UiNodeProps<"progress_bar">) => import("./ui-build.js").UiNode<"progress_bar">;
|
|
45
|
+
heatmap: (props: import("./ui-build.js").UiNodeProps<"heatmap">) => import("./ui-build.js").UiNode<"heatmap">;
|
|
46
|
+
stacked_bar: (props: import("./ui-build.js").UiNodeProps<"stacked_bar">) => import("./ui-build.js").UiNode<"stacked_bar">;
|
|
47
|
+
conversation: (props: import("./ui-build.js").UiNodeProps<"conversation">) => import("./ui-build.js").UiNode<"conversation">;
|
|
48
|
+
composer: (props: import("./ui-build.js").UiNodeProps<"composer">) => import("./ui-build.js").UiNode<"composer">;
|
|
49
|
+
calendar: (props: import("./ui-build.js").UiNodeProps<"calendar">) => import("./ui-build.js").UiNode<"calendar">;
|
|
50
|
+
image: (props: import("./ui-build.js").UiNodeProps<"image">) => import("./ui-build.js").UiNode<"image">;
|
|
51
|
+
video: (props: import("./ui-build.js").UiNodeProps<"video">) => import("./ui-build.js").UiNode<"video">;
|
|
52
|
+
audio: (props: import("./ui-build.js").UiNodeProps<"audio">) => import("./ui-build.js").UiNode<"audio">;
|
|
53
|
+
document: (props: import("./ui-build.js").UiNodeProps<"document">) => import("./ui-build.js").UiNode<"document">;
|
|
54
|
+
dataset: (props: import("./ui-build.js").UiNodeProps<"dataset">) => import("./ui-build.js").UiNode<"dataset">;
|
|
55
|
+
section: (props: import("./ui-build.js").UiNodeProps<"section">) => import("./ui-build.js").UiNode<"section">;
|
|
56
|
+
tabs: (props: import("./ui-build.js").UiNodeProps<"tabs">) => import("./ui-build.js").UiNode<"tabs">;
|
|
57
|
+
screen: typeof buildScreen;
|
|
58
|
+
};
|
|
59
|
+
export { UI_NODES_CATALOG_ID } from './ui-nodes.js';
|
|
60
|
+
export { formatUiPath, UiBuildError } from './ui-build.js';
|
|
61
|
+
export type { UiBuildIssue, UiNode, UiNodeInput, UiNodeProps, UiNodeType, UiScreenProps, } from './ui-build.js';
|
package/dist/ui.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@keemakr/ui-sdk/ui`: typed builders for screen trees. `ui.screen(...)` sets `version`, and one
|
|
3
|
+
* builder per node (`ui.table(...)`, `ui.text(...)` …, generated from the catalog into
|
|
4
|
+
* ui-nodes.ts) sets `type`. Every builder applies the schema's defaults and throws a
|
|
5
|
+
* `UiBuildError` naming the field path for a value the schema refuses, a value past its cap
|
|
6
|
+
* among them. The result is the same plain JSON a hand-written tree would be after core parses
|
|
7
|
+
* it, so a builder is a convenience for the author and changes nothing core receives.
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { ui } from '@keemakr/ui-sdk/ui';
|
|
11
|
+
*
|
|
12
|
+
* return ui.screen({
|
|
13
|
+
* title: 'Leads',
|
|
14
|
+
* children: [ui.table({ columns: [{ key: 'name', label: 'Name' }], rows, empty: 'No leads yet' })],
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
import { buildScreen } from './ui-build.js';
|
|
19
|
+
import { nodeBuilders } from './ui-nodes.js';
|
|
20
|
+
export const ui = { screen: buildScreen, ...nodeBuilders };
|
|
21
|
+
export { UI_NODES_CATALOG_ID } from './ui-nodes.js';
|
|
22
|
+
export { formatUiPath, UiBuildError } from './ui-build.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keemakr/ui-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Product screens for keemakr marketplace modules: a versioned, server-driven UI tree schema plus defineScreen() handlers. Module code never ships to the browser — keemakr-core validates the tree and renders it with platform components.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,27 @@
|
|
|
32
32
|
"import": "./dist/catalog.js",
|
|
33
33
|
"default": "./dist/catalog.js"
|
|
34
34
|
},
|
|
35
|
-
"./
|
|
35
|
+
"./stories": {
|
|
36
|
+
"types": "./dist/stories.d.ts",
|
|
37
|
+
"import": "./dist/stories.js",
|
|
38
|
+
"default": "./dist/stories.js"
|
|
39
|
+
},
|
|
40
|
+
"./ui": {
|
|
41
|
+
"types": "./dist/ui.d.ts",
|
|
42
|
+
"import": "./dist/ui.js",
|
|
43
|
+
"default": "./dist/ui.js"
|
|
44
|
+
},
|
|
45
|
+
"./catalog.json": "./catalog.json",
|
|
46
|
+
"./check": {
|
|
47
|
+
"types": "./dist/check.d.ts",
|
|
48
|
+
"import": "./dist/check.js",
|
|
49
|
+
"default": "./dist/check.js"
|
|
50
|
+
},
|
|
51
|
+
"./page": {
|
|
52
|
+
"types": "./dist/page.d.ts",
|
|
53
|
+
"import": "./dist/page.js",
|
|
54
|
+
"default": "./dist/page.js"
|
|
55
|
+
}
|
|
36
56
|
},
|
|
37
57
|
"bin": {
|
|
38
58
|
"keemakr-ui": "./dist/cli.js"
|