@arkitektio/bsx 4.3.0 → 5.0.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 +39 -18
- package/dist/bsx/parse.d.ts +13 -7
- package/dist/bsx/parse.d.ts.map +1 -1
- package/dist/bsx/parse.js +18 -57
- package/dist/bsx/parse.js.map +1 -1
- package/dist/bsx/print.d.ts.map +1 -1
- package/dist/bsx/print.js +22 -35
- package/dist/bsx/print.js.map +1 -1
- package/dist/bsx/references.d.ts +5 -5
- package/dist/bsx/references.d.ts.map +1 -1
- package/dist/bsx/references.js +106 -33
- package/dist/bsx/references.js.map +1 -1
- package/dist/catalogs/html.d.ts +1 -1
- package/dist/catalogs/html.d.ts.map +1 -1
- package/dist/catalogs/html.js +3 -3
- package/dist/catalogs/html.js.map +1 -1
- package/dist/catalogs/index.d.ts +126 -112
- package/dist/catalogs/index.d.ts.map +1 -1
- package/dist/catalogs/index.js +6 -2
- package/dist/catalogs/index.js.map +1 -1
- package/dist/catalogs/logo.d.ts +5 -5
- package/dist/catalogs/logo.d.ts.map +1 -1
- package/dist/catalogs/logo.js +3 -3
- package/dist/catalogs/logo.js.map +1 -1
- package/dist/catalogs/parts/data.d.ts +5 -5
- package/dist/catalogs/parts/feedback.d.ts +12 -12
- package/dist/catalogs/parts/forms.d.ts +20 -20
- package/dist/catalogs/parts/html.d.ts +1 -1
- package/dist/catalogs/parts/html.d.ts.map +1 -1
- package/dist/catalogs/parts/html.js +1 -1
- package/dist/catalogs/parts/html.js.map +1 -1
- package/dist/catalogs/parts/icons.d.ts +9 -9
- package/dist/catalogs/parts/icons.js +1 -1
- package/dist/catalogs/parts/index.d.ts +120 -110
- package/dist/catalogs/parts/index.d.ts.map +1 -1
- package/dist/catalogs/parts/layout.d.ts +11 -1
- package/dist/catalogs/parts/layout.d.ts.map +1 -1
- package/dist/catalogs/parts/layout.js +9 -0
- package/dist/catalogs/parts/layout.js.map +1 -1
- package/dist/catalogs/parts/logo.d.ts +8 -8
- package/dist/catalogs/parts/logo.d.ts.map +1 -1
- package/dist/catalogs/parts/logo.js +2 -2
- package/dist/catalogs/parts/logo.js.map +1 -1
- package/dist/catalogs/parts/navigation.d.ts +16 -16
- package/dist/catalogs/parts/overlays.d.ts +44 -44
- package/dist/catalogs/parts/run.d.ts +5 -5
- package/dist/catalogs/parts/run.js +1 -1
- package/dist/catalogs/parts/scene.d.ts +4 -4
- package/dist/catalogs/parts/structure.js +2 -2
- package/dist/catalogs/parts/toast.js +1 -1
- package/dist/catalogs/parts/toast.js.map +1 -1
- package/dist/catalogs/parts/typography.js +1 -1
- package/dist/catalogs/parts/typography.js.map +1 -1
- package/dist/catalogs/props.d.ts +2 -2
- package/dist/catalogs/scene.d.ts +5 -5
- package/dist/catalogs/scene.d.ts.map +1 -1
- package/dist/catalogs/scene.js +3 -3
- package/dist/catalogs/scene.js.map +1 -1
- package/dist/catalogs/shadcn.d.ts +47 -47
- package/dist/catalogs/shadcn.d.ts.map +1 -1
- package/dist/catalogs/shadcn.js +4 -4
- package/dist/catalogs/shadcn.js.map +1 -1
- package/dist/catalogs/structure.d.ts +1 -1
- package/dist/catalogs/structure.d.ts.map +1 -1
- package/dist/catalogs/structure.js +3 -3
- package/dist/catalogs/structure.js.map +1 -1
- package/dist/catalogs/ui.d.ts +67 -57
- package/dist/catalogs/ui.d.ts.map +1 -1
- package/dist/catalogs/ui.js +4 -3
- package/dist/catalogs/ui.js.map +1 -1
- package/dist/catalogs.d.ts +1 -1
- package/dist/catalogs.d.ts.map +1 -1
- package/dist/catalogs.js +2 -2
- package/dist/catalogs.js.map +1 -1
- package/dist/ports.js +1 -1
- package/dist/ports.js.map +1 -1
- package/dist/renderer/baseCatalog.d.ts +8 -6
- package/dist/renderer/baseCatalog.d.ts.map +1 -1
- package/dist/renderer/baseCatalog.js +7 -5
- package/dist/renderer/baseCatalog.js.map +1 -1
- package/dist/renderer/bloks/control.d.ts +2 -0
- package/dist/renderer/bloks/control.d.ts.map +1 -1
- package/dist/renderer/bloks/control.js +13 -1
- package/dist/renderer/bloks/control.js.map +1 -1
- package/dist/renderer/bloks/data.d.ts +5 -5
- package/dist/renderer/bloks/feedback.d.ts +12 -12
- package/dist/renderer/bloks/forms.d.ts +20 -20
- package/dist/renderer/bloks/html.js +2 -2
- package/dist/renderer/bloks/icons.d.ts +4 -4
- package/dist/renderer/bloks/index.d.ts +115 -107
- package/dist/renderer/bloks/index.d.ts.map +1 -1
- package/dist/renderer/bloks/index.js +1 -1
- package/dist/renderer/bloks/layout.d.ts +9 -1
- package/dist/renderer/bloks/layout.d.ts.map +1 -1
- package/dist/renderer/bloks/layout.js +15 -0
- package/dist/renderer/bloks/layout.js.map +1 -1
- package/dist/renderer/bloks/logo/index.d.ts +5 -5
- package/dist/renderer/bloks/logo/index.d.ts.map +1 -1
- package/dist/renderer/bloks/logo/index.js +2 -2
- package/dist/renderer/bloks/logo/index.js.map +1 -1
- package/dist/renderer/bloks/navigation.d.ts +16 -16
- package/dist/renderer/bloks/overlays.d.ts +44 -44
- package/dist/renderer/bloks/run/components.d.ts +2 -2
- package/dist/renderer/bloks/run/components.js +1 -1
- package/dist/renderer/bloks/scene/index.d.ts +2 -2
- package/dist/renderer/bloks/toast.d.ts +1 -1
- package/dist/renderer/bloks/typography.js +1 -1
- package/dist/renderer/catalog.d.ts +4 -7
- package/dist/renderer/catalog.d.ts.map +1 -1
- package/dist/renderer/catalog.js +7 -31
- package/dist/renderer/catalog.js.map +1 -1
- package/dist/renderer/declare.d.ts +31 -19
- package/dist/renderer/declare.d.ts.map +1 -1
- package/dist/renderer/declare.js +44 -18
- package/dist/renderer/declare.js.map +1 -1
- package/dist/renderer/runtime/catalog.d.ts +27 -7
- package/dist/renderer/runtime/catalog.d.ts.map +1 -1
- package/dist/renderer/runtime/catalog.js +30 -3
- package/dist/renderer/runtime/catalog.js.map +1 -1
- package/dist/renderer/runtime/components.d.ts +7 -1
- package/dist/renderer/runtime/components.d.ts.map +1 -1
- package/dist/renderer/runtime/components.js +3 -0
- package/dist/renderer/runtime/components.js.map +1 -1
- package/dist/renderer/runtime/describe.d.ts +14 -4
- package/dist/renderer/runtime/describe.d.ts.map +1 -1
- package/dist/renderer/runtime/describe.js +3 -0
- package/dist/renderer/runtime/describe.js.map +1 -1
- package/dist/renderer/runtime/index.d.ts +1 -0
- package/dist/renderer/runtime/index.d.ts.map +1 -1
- package/dist/renderer/runtime/index.js +1 -0
- package/dist/renderer/runtime/index.js.map +1 -1
- package/dist/renderer/runtime/preflight.d.ts.map +1 -1
- package/dist/renderer/runtime/preflight.js +5 -2
- package/dist/renderer/runtime/preflight.js.map +1 -1
- package/dist/renderer/runtime/text.d.ts +28 -0
- package/dist/renderer/runtime/text.d.ts.map +1 -0
- package/dist/renderer/runtime/text.js +82 -0
- package/dist/renderer/runtime/text.js.map +1 -0
- package/dist/runtime.d.ts +0 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +0 -1
- package/dist/runtime.js.map +1 -1
- package/dist/scene.d.ts +1 -1
- package/dist/scene.d.ts.map +1 -1
- package/dist/scene.js +2 -2
- package/dist/scene.js.map +1 -1
- package/dist/shadcn.d.ts +118 -110
- package/dist/shadcn.d.ts.map +1 -1
- package/dist/shadcn.js +6 -5
- package/dist/shadcn.js.map +1 -1
- package/dist/spec/bsx_v2.json +3080 -2436
- package/dist/spec/catalogs/base@3.json +13029 -0
- package/dist/spec/catalogs/base@3.json.js +13029 -0
- package/dist/spec/catalogs/orkestrator@1.json +489 -0
- package/dist/spec/catalogs/orkestrator@1.json.js +489 -0
- package/dist/spec/catalogs.d.ts +109 -46
- package/dist/spec/catalogs.d.ts.map +1 -1
- package/dist/spec/catalogs.js +241 -73
- package/dist/spec/catalogs.js.map +1 -1
- package/dist/spec/vocabulary.d.ts +19 -3
- package/dist/spec/vocabulary.d.ts.map +1 -1
- package/dist/spec/vocabulary.js +15 -2
- package/dist/spec/vocabulary.js.map +1 -1
- package/dist/spec/vocabulary.json +30 -16
- package/dist/spec/vocabulary.json.js +30 -16
- package/dist/vendor/core/ui/button-group.d.ts +1 -1
- package/dist/vendor/core/ui/button.d.ts +1 -1
- package/dist/vendor/core/ui/field.d.ts +1 -1
- package/package.json +1 -1
- package/src/bsx/infer.test.ts +18 -26
- package/src/bsx/language.test.ts +1 -1
- package/src/bsx/parse.ts +18 -62
- package/src/bsx/partial.test.ts +1 -1
- package/src/bsx/print.ts +24 -34
- package/src/bsx/references.test.ts +16 -14
- package/src/bsx/references.ts +96 -38
- package/src/catalogs/catalogs.test.ts +45 -14
- package/src/catalogs/html.ts +3 -3
- package/src/catalogs/index.ts +6 -2
- package/src/catalogs/logo.ts +3 -3
- package/src/catalogs/parts/html.ts +1 -1
- package/src/catalogs/parts/icons.ts +1 -1
- package/src/catalogs/parts/layout.ts +11 -0
- package/src/catalogs/parts/logo.ts +2 -2
- package/src/catalogs/parts/run.ts +1 -1
- package/src/catalogs/parts/structure.ts +2 -2
- package/src/catalogs/parts/toast.ts +1 -1
- package/src/catalogs/parts/typography.ts +1 -1
- package/src/catalogs/scene.ts +3 -3
- package/src/catalogs/shadcn.ts +4 -4
- package/src/catalogs/structure.ts +3 -3
- package/src/catalogs/ui.ts +4 -3
- package/src/catalogs.ts +9 -2
- package/src/ports.ts +1 -1
- package/src/renderer/addBlokComponents.test.tsx +8 -22
- package/src/renderer/baseCatalog.ts +7 -5
- package/src/renderer/bloks/components.test.tsx +2 -2
- package/src/renderer/bloks/control.tsx +17 -1
- package/src/renderer/bloks/flow.test.tsx +1 -1
- package/src/renderer/bloks/html.tsx +2 -2
- package/src/renderer/bloks/index.ts +1 -1
- package/src/renderer/bloks/layout.tsx +28 -0
- package/src/renderer/bloks/logo/index.tsx +2 -2
- package/src/renderer/bloks/run/components.tsx +1 -1
- package/src/renderer/bloks/time.test.tsx +1 -1
- package/src/renderer/bloks/toast.tsx +1 -1
- package/src/renderer/bloks/typography.tsx +1 -1
- package/src/renderer/catalog.tsx +7 -31
- package/src/renderer/declare.test.ts +41 -0
- package/src/renderer/declare.ts +70 -32
- package/src/renderer/runtime/catalog.ts +35 -10
- package/src/renderer/runtime/components.tsx +10 -1
- package/src/renderer/runtime/describe.ts +17 -4
- package/src/renderer/runtime/index.ts +1 -0
- package/src/renderer/runtime/preflight.ts +5 -2
- package/src/renderer/runtime/text.test.tsx +65 -0
- package/src/renderer/runtime/text.ts +88 -0
- package/src/runtime.ts +0 -1
- package/src/scene.ts +2 -2
- package/src/shadcn.ts +6 -5
- package/src/spec/bsx_v2.json +3080 -2436
- package/src/spec/catalogs/base@3.json +13029 -0
- package/src/spec/catalogs/orkestrator@1.json +489 -0
- package/src/spec/catalogs.ts +257 -101
- package/src/spec/spec.test.ts +87 -21
- package/src/spec/vocabulary.json +30 -16
- package/src/spec/vocabulary.ts +33 -7
- package/dist/renderer/modules.d.ts +0 -4
- package/dist/renderer/modules.d.ts.map +0 -1
- package/dist/renderer/modules.js +0 -11
- package/dist/renderer/modules.js.map +0 -1
- package/dist/spec/catalogs/base@2.json +0 -355
- package/dist/spec/catalogs/base@2.json.js +0 -355
- package/dist/spec/catalogs/html@1.json +0 -308
- package/dist/spec/catalogs/html@1.json.js +0 -308
- package/dist/spec/catalogs/logo@1.json +0 -1687
- package/dist/spec/catalogs/logo@1.json.js +0 -1687
- package/dist/spec/catalogs/scene@1.json +0 -878
- package/dist/spec/catalogs/scene@1.json.js +0 -878
- package/dist/spec/catalogs/shadcn@1.json +0 -4002
- package/dist/spec/catalogs/shadcn@1.json.js +0 -4002
- package/dist/spec/catalogs/structure@1.json +0 -185
- package/dist/spec/catalogs/structure@1.json.js +0 -185
- package/dist/spec/catalogs/ui@1.json +0 -5349
- package/dist/spec/catalogs/ui@1.json.js +0 -5349
- package/src/renderer/modules.ts +0 -12
- package/src/spec/catalogs/base@2.json +0 -355
- package/src/spec/catalogs/html@1.json +0 -308
- package/src/spec/catalogs/logo@1.json +0 -1687
- package/src/spec/catalogs/scene@1.json +0 -878
- package/src/spec/catalogs/shadcn@1.json +0 -4002
- package/src/spec/catalogs/structure@1.json +0 -185
- package/src/spec/catalogs/ui@1.json +0 -5349
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "structure",
|
|
3
|
-
"version": 1,
|
|
4
|
-
"description": "Pick, show and view structures, typed by `\"@package/key\"`.",
|
|
5
|
-
"components": [
|
|
6
|
-
{
|
|
7
|
-
"name": "StructureDisplay",
|
|
8
|
-
"description": "Shows a structure through the display of the module that owns it.",
|
|
9
|
-
"context": "HTML",
|
|
10
|
-
"children_context": null,
|
|
11
|
-
"inherits_context": false,
|
|
12
|
-
"accepts_children": false,
|
|
13
|
-
"downstream_of": [],
|
|
14
|
-
"not_downstream_of": [],
|
|
15
|
-
"text_prop": null,
|
|
16
|
-
"props": [
|
|
17
|
-
{
|
|
18
|
-
"key": "className",
|
|
19
|
-
"kind": "STRING",
|
|
20
|
-
"required": false,
|
|
21
|
-
"description": "Extra Tailwind classes appended to the element."
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"key": "emptyText",
|
|
25
|
-
"kind": "ANY",
|
|
26
|
-
"required": false,
|
|
27
|
-
"description": "Shown while there is no structure."
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"key": "link",
|
|
31
|
-
"kind": "BOOL",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "Link to the structure's own page."
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"key": "value",
|
|
37
|
-
"kind": "DICT",
|
|
38
|
-
"required": false,
|
|
39
|
-
"description": "The structure to show."
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"key": "variant",
|
|
43
|
-
"kind": "STRING",
|
|
44
|
-
"required": false,
|
|
45
|
-
"description": "How much of it to show. Defaults to \"card\".",
|
|
46
|
-
"values": [
|
|
47
|
-
"inline",
|
|
48
|
-
"avatar",
|
|
49
|
-
"chip",
|
|
50
|
-
"card"
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "StructurePicker",
|
|
57
|
-
"description": "A search-backed picker for one structure of a given identifier. Writes {\"object\", \"__identifier\"}, or null when cleared. The candidates come from its `query`, or from the module that owns the structure when it has none.",
|
|
58
|
-
"context": "HTML",
|
|
59
|
-
"children_context": null,
|
|
60
|
-
"inherits_context": false,
|
|
61
|
-
"accepts_children": false,
|
|
62
|
-
"downstream_of": [],
|
|
63
|
-
"not_downstream_of": [],
|
|
64
|
-
"text_prop": null,
|
|
65
|
-
"props": [
|
|
66
|
-
{
|
|
67
|
-
"key": "bind",
|
|
68
|
-
"kind": "ANY",
|
|
69
|
-
"required": false,
|
|
70
|
-
"description": "The local (or a path below one) this control reads and writes: bind={name}."
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"key": "className",
|
|
74
|
-
"kind": "STRING",
|
|
75
|
-
"required": false,
|
|
76
|
-
"description": "Extra Tailwind classes appended to the element."
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"key": "disabled",
|
|
80
|
-
"kind": "BOOL",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "Disables the control."
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"key": "identifier",
|
|
86
|
-
"kind": "STRING",
|
|
87
|
-
"required": false,
|
|
88
|
-
"description": "The kind of structure to pick, e.g. \"@mikro/arraydataset\". As the widget of an action input it defaults to the structure the input is typed on."
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"key": "onChange",
|
|
92
|
-
"kind": "CALLBACK",
|
|
93
|
-
"required": false,
|
|
94
|
-
"description": "Runs on selection. event.value is the structure reference, or null when cleared.",
|
|
95
|
-
"event": [
|
|
96
|
-
{
|
|
97
|
-
"key": "value",
|
|
98
|
-
"kind": "DICT",
|
|
99
|
-
"description": "The structure reference picked, or null when cleared."
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"key": "placeholder",
|
|
105
|
-
"kind": "ANY",
|
|
106
|
-
"required": false,
|
|
107
|
-
"description": "Shown while nothing is selected."
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"key": "query",
|
|
111
|
-
"kind": "STRING",
|
|
112
|
-
"required": false,
|
|
113
|
-
"description": "The GraphQL query that lists the candidates, run on the `ward` service: one `query` operation, never a mutation. It selects a list aliased `options` with `value` (the id), `label` and optionally `description`, and may declare: $search: String (what the user typed), $values: [ID!] (ids to resolve), $limit: Int and $offset: Int (a page), $requires (the constraints of the action input being filled). Any other variable is read from `variables`, else from the data path of the same name; a structure held there is passed as its id. A nullable one narrows the list while it has a value and the user may lift it; the picker waits for one declared non-null. Without a query the module that owns the structure answers."
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"key": "value",
|
|
117
|
-
"kind": "DICT",
|
|
118
|
-
"required": false,
|
|
119
|
-
"description": "Controlled value, a structure reference."
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"key": "variables",
|
|
123
|
-
"kind": "DICT",
|
|
124
|
-
"required": false,
|
|
125
|
-
"description": "Values for the variables `query` declares beyond the ones the picker supplies."
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"key": "ward",
|
|
129
|
-
"kind": "STRING",
|
|
130
|
-
"required": false,
|
|
131
|
-
"description": "The service that runs `query`, by its key, e.g. \"mikro\"."
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"name": "StructureViewer",
|
|
137
|
-
"description": "An interactive viewer for a structure (a mikro image or scene), provided by the module that owns it.",
|
|
138
|
-
"context": "HTML",
|
|
139
|
-
"children_context": null,
|
|
140
|
-
"inherits_context": false,
|
|
141
|
-
"accepts_children": false,
|
|
142
|
-
"downstream_of": [],
|
|
143
|
-
"not_downstream_of": [],
|
|
144
|
-
"text_prop": null,
|
|
145
|
-
"props": [
|
|
146
|
-
{
|
|
147
|
-
"key": "className",
|
|
148
|
-
"kind": "STRING",
|
|
149
|
-
"required": false,
|
|
150
|
-
"description": "Extra Tailwind classes appended to the element."
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"key": "controls",
|
|
154
|
-
"kind": "BOOL",
|
|
155
|
-
"required": false,
|
|
156
|
-
"description": "Show the viewer's own controls. Defaults to true."
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"key": "emptyText",
|
|
160
|
-
"kind": "ANY",
|
|
161
|
-
"required": false,
|
|
162
|
-
"description": "Shown while there is no structure."
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"key": "height",
|
|
166
|
-
"kind": "STRING",
|
|
167
|
-
"required": false,
|
|
168
|
-
"description": "CSS height of the viewer. Defaults to \"24rem\"."
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"key": "minHeight",
|
|
172
|
-
"kind": "STRING",
|
|
173
|
-
"required": false,
|
|
174
|
-
"description": "CSS minimum height of the viewer."
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"key": "value",
|
|
178
|
-
"kind": "DICT",
|
|
179
|
-
"required": false,
|
|
180
|
-
"description": "The structure to open."
|
|
181
|
-
}
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
"name": "structure",
|
|
3
|
-
"version": 1,
|
|
4
|
-
"description": "Pick, show and view structures, typed by `\"@package/key\"`.",
|
|
5
|
-
"components": [
|
|
6
|
-
{
|
|
7
|
-
"name": "StructureDisplay",
|
|
8
|
-
"description": "Shows a structure through the display of the module that owns it.",
|
|
9
|
-
"context": "HTML",
|
|
10
|
-
"children_context": null,
|
|
11
|
-
"inherits_context": false,
|
|
12
|
-
"accepts_children": false,
|
|
13
|
-
"downstream_of": [],
|
|
14
|
-
"not_downstream_of": [],
|
|
15
|
-
"text_prop": null,
|
|
16
|
-
"props": [
|
|
17
|
-
{
|
|
18
|
-
"key": "className",
|
|
19
|
-
"kind": "STRING",
|
|
20
|
-
"required": false,
|
|
21
|
-
"description": "Extra Tailwind classes appended to the element."
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"key": "emptyText",
|
|
25
|
-
"kind": "ANY",
|
|
26
|
-
"required": false,
|
|
27
|
-
"description": "Shown while there is no structure."
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"key": "link",
|
|
31
|
-
"kind": "BOOL",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "Link to the structure's own page."
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"key": "value",
|
|
37
|
-
"kind": "DICT",
|
|
38
|
-
"required": false,
|
|
39
|
-
"description": "The structure to show."
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"key": "variant",
|
|
43
|
-
"kind": "STRING",
|
|
44
|
-
"required": false,
|
|
45
|
-
"description": "How much of it to show. Defaults to \"card\".",
|
|
46
|
-
"values": [
|
|
47
|
-
"inline",
|
|
48
|
-
"avatar",
|
|
49
|
-
"chip",
|
|
50
|
-
"card"
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "StructurePicker",
|
|
57
|
-
"description": "A search-backed picker for one structure of a given identifier. Writes {\"object\", \"__identifier\"}, or null when cleared. The candidates come from its `query`, or from the module that owns the structure when it has none.",
|
|
58
|
-
"context": "HTML",
|
|
59
|
-
"children_context": null,
|
|
60
|
-
"inherits_context": false,
|
|
61
|
-
"accepts_children": false,
|
|
62
|
-
"downstream_of": [],
|
|
63
|
-
"not_downstream_of": [],
|
|
64
|
-
"text_prop": null,
|
|
65
|
-
"props": [
|
|
66
|
-
{
|
|
67
|
-
"key": "bind",
|
|
68
|
-
"kind": "ANY",
|
|
69
|
-
"required": false,
|
|
70
|
-
"description": "The local (or a path below one) this control reads and writes: bind={name}."
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"key": "className",
|
|
74
|
-
"kind": "STRING",
|
|
75
|
-
"required": false,
|
|
76
|
-
"description": "Extra Tailwind classes appended to the element."
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"key": "disabled",
|
|
80
|
-
"kind": "BOOL",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "Disables the control."
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"key": "identifier",
|
|
86
|
-
"kind": "STRING",
|
|
87
|
-
"required": false,
|
|
88
|
-
"description": "The kind of structure to pick, e.g. \"@mikro/arraydataset\". As the widget of an action input it defaults to the structure the input is typed on."
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"key": "onChange",
|
|
92
|
-
"kind": "CALLBACK",
|
|
93
|
-
"required": false,
|
|
94
|
-
"description": "Runs on selection. event.value is the structure reference, or null when cleared.",
|
|
95
|
-
"event": [
|
|
96
|
-
{
|
|
97
|
-
"key": "value",
|
|
98
|
-
"kind": "DICT",
|
|
99
|
-
"description": "The structure reference picked, or null when cleared."
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"key": "placeholder",
|
|
105
|
-
"kind": "ANY",
|
|
106
|
-
"required": false,
|
|
107
|
-
"description": "Shown while nothing is selected."
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"key": "query",
|
|
111
|
-
"kind": "STRING",
|
|
112
|
-
"required": false,
|
|
113
|
-
"description": "The GraphQL query that lists the candidates, run on the `ward` service: one `query` operation, never a mutation. It selects a list aliased `options` with `value` (the id), `label` and optionally `description`, and may declare: $search: String (what the user typed), $values: [ID!] (ids to resolve), $limit: Int and $offset: Int (a page), $requires (the constraints of the action input being filled). Any other variable is read from `variables`, else from the data path of the same name; a structure held there is passed as its id. A nullable one narrows the list while it has a value and the user may lift it; the picker waits for one declared non-null. Without a query the module that owns the structure answers."
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"key": "value",
|
|
117
|
-
"kind": "DICT",
|
|
118
|
-
"required": false,
|
|
119
|
-
"description": "Controlled value, a structure reference."
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"key": "variables",
|
|
123
|
-
"kind": "DICT",
|
|
124
|
-
"required": false,
|
|
125
|
-
"description": "Values for the variables `query` declares beyond the ones the picker supplies."
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"key": "ward",
|
|
129
|
-
"kind": "STRING",
|
|
130
|
-
"required": false,
|
|
131
|
-
"description": "The service that runs `query`, by its key, e.g. \"mikro\"."
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"name": "StructureViewer",
|
|
137
|
-
"description": "An interactive viewer for a structure (a mikro image or scene), provided by the module that owns it.",
|
|
138
|
-
"context": "HTML",
|
|
139
|
-
"children_context": null,
|
|
140
|
-
"inherits_context": false,
|
|
141
|
-
"accepts_children": false,
|
|
142
|
-
"downstream_of": [],
|
|
143
|
-
"not_downstream_of": [],
|
|
144
|
-
"text_prop": null,
|
|
145
|
-
"props": [
|
|
146
|
-
{
|
|
147
|
-
"key": "className",
|
|
148
|
-
"kind": "STRING",
|
|
149
|
-
"required": false,
|
|
150
|
-
"description": "Extra Tailwind classes appended to the element."
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"key": "controls",
|
|
154
|
-
"kind": "BOOL",
|
|
155
|
-
"required": false,
|
|
156
|
-
"description": "Show the viewer's own controls. Defaults to true."
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"key": "emptyText",
|
|
160
|
-
"kind": "ANY",
|
|
161
|
-
"required": false,
|
|
162
|
-
"description": "Shown while there is no structure."
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"key": "height",
|
|
166
|
-
"kind": "STRING",
|
|
167
|
-
"required": false,
|
|
168
|
-
"description": "CSS height of the viewer. Defaults to \"24rem\"."
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"key": "minHeight",
|
|
172
|
-
"kind": "STRING",
|
|
173
|
-
"required": false,
|
|
174
|
-
"description": "CSS minimum height of the viewer."
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"key": "value",
|
|
178
|
-
"kind": "DICT",
|
|
179
|
-
"required": false,
|
|
180
|
-
"description": "The structure to open."
|
|
181
|
-
}
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
};
|