@lynx-js/genui 0.0.1-rc.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/LICENSE +202 -0
- package/README.md +170 -0
- package/a2ui/README.md +140 -0
- package/a2ui/dist/catalog/Button/catalog.json +156 -0
- package/a2ui/dist/catalog/Button/index.d.ts +35 -0
- package/a2ui/dist/catalog/Button/index.js +35 -0
- package/a2ui/dist/catalog/Button/index.js.map +1 -0
- package/a2ui/dist/catalog/Card/catalog.json +24 -0
- package/a2ui/dist/catalog/Card/index.d.ts +11 -0
- package/a2ui/dist/catalog/Card/index.js +19 -0
- package/a2ui/dist/catalog/Card/index.js.map +1 -0
- package/a2ui/dist/catalog/CheckBox/catalog.json +170 -0
- package/a2ui/dist/catalog/CheckBox/index.d.ts +32 -0
- package/a2ui/dist/catalog/CheckBox/index.js +24 -0
- package/a2ui/dist/catalog/CheckBox/index.js.map +1 -0
- package/a2ui/dist/catalog/Column/catalog.json +57 -0
- package/a2ui/dist/catalog/Column/index.d.ts +15 -0
- package/a2ui/dist/catalog/Column/index.js +55 -0
- package/a2ui/dist/catalog/Column/index.js.map +1 -0
- package/a2ui/dist/catalog/Divider/catalog.json +14 -0
- package/a2ui/dist/catalog/Divider/index.d.ts +9 -0
- package/a2ui/dist/catalog/Divider/index.js +8 -0
- package/a2ui/dist/catalog/Divider/index.js.map +1 -0
- package/a2ui/dist/catalog/Icon/catalog.json +45 -0
- package/a2ui/dist/catalog/Icon/index.d.ts +14 -0
- package/a2ui/dist/catalog/Icon/index.js +11 -0
- package/a2ui/dist/catalog/Icon/index.js.map +1 -0
- package/a2ui/dist/catalog/Image/catalog.json +62 -0
- package/a2ui/dist/catalog/Image/index.d.ts +16 -0
- package/a2ui/dist/catalog/Image/index.js +30 -0
- package/a2ui/dist/catalog/Image/index.js.map +1 -0
- package/a2ui/dist/catalog/LineChart/catalog.json +98 -0
- package/a2ui/dist/catalog/LineChart/index.d.ts +31 -0
- package/a2ui/dist/catalog/LineChart/index.js +195 -0
- package/a2ui/dist/catalog/LineChart/index.js.map +1 -0
- package/a2ui/dist/catalog/List/catalog.json +52 -0
- package/a2ui/dist/catalog/List/index.d.ts +15 -0
- package/a2ui/dist/catalog/List/index.js +53 -0
- package/a2ui/dist/catalog/List/index.js.map +1 -0
- package/a2ui/dist/catalog/Modal/catalog.json +18 -0
- package/a2ui/dist/catalog/Modal/index.d.ts +12 -0
- package/a2ui/dist/catalog/Modal/index.js +33 -0
- package/a2ui/dist/catalog/Modal/index.js.map +1 -0
- package/a2ui/dist/catalog/PieChart/catalog.json +87 -0
- package/a2ui/dist/catalog/PieChart/index.d.ts +37 -0
- package/a2ui/dist/catalog/PieChart/index.js +131 -0
- package/a2ui/dist/catalog/PieChart/index.js.map +1 -0
- package/a2ui/dist/catalog/RadioGroup/catalog.json +184 -0
- package/a2ui/dist/catalog/RadioGroup/index.d.ts +36 -0
- package/a2ui/dist/catalog/RadioGroup/index.js +36 -0
- package/a2ui/dist/catalog/RadioGroup/index.js.map +1 -0
- package/a2ui/dist/catalog/Row/catalog.json +57 -0
- package/a2ui/dist/catalog/Row/index.d.ts +15 -0
- package/a2ui/dist/catalog/Row/index.js +28 -0
- package/a2ui/dist/catalog/Row/index.js.map +1 -0
- package/a2ui/dist/catalog/Slider/catalog.json +183 -0
- package/a2ui/dist/catalog/Slider/index.d.ts +41 -0
- package/a2ui/dist/catalog/Slider/index.js +39 -0
- package/a2ui/dist/catalog/Slider/index.js.map +1 -0
- package/a2ui/dist/catalog/Slider/utils.d.ts +11 -0
- package/a2ui/dist/catalog/Slider/utils.js +58 -0
- package/a2ui/dist/catalog/Slider/utils.js.map +1 -0
- package/a2ui/dist/catalog/Tabs/catalog.json +28 -0
- package/a2ui/dist/catalog/Tabs/index.d.ts +12 -0
- package/a2ui/dist/catalog/Tabs/index.js +32 -0
- package/a2ui/dist/catalog/Tabs/index.js.map +1 -0
- package/a2ui/dist/catalog/Text/catalog.json +74 -0
- package/a2ui/dist/catalog/Text/index.d.ts +18 -0
- package/a2ui/dist/catalog/Text/index.js +27 -0
- package/a2ui/dist/catalog/Text/index.js.map +1 -0
- package/a2ui/dist/catalog/TextField/catalog.json +147 -0
- package/a2ui/dist/catalog/TextField/index.d.ts +35 -0
- package/a2ui/dist/catalog/TextField/index.js +43 -0
- package/a2ui/dist/catalog/TextField/index.js.map +1 -0
- package/a2ui/dist/catalog/TextField/utils.d.ts +7 -0
- package/a2ui/dist/catalog/TextField/utils.js +51 -0
- package/a2ui/dist/catalog/TextField/utils.js.map +1 -0
- package/a2ui/dist/catalog/defineCatalog.d.ts +119 -0
- package/a2ui/dist/catalog/defineCatalog.js +196 -0
- package/a2ui/dist/catalog/defineCatalog.js.map +1 -0
- package/a2ui/dist/catalog/index.d.ts +20 -0
- package/a2ui/dist/catalog/index.js +26 -0
- package/a2ui/dist/catalog/index.js.map +1 -0
- package/a2ui/dist/catalog/utils/chart.d.ts +3 -0
- package/a2ui/dist/catalog/utils/chart.js +28 -0
- package/a2ui/dist/catalog/utils/chart.js.map +1 -0
- package/a2ui/dist/functions/index.d.ts +19 -0
- package/a2ui/dist/functions/index.js +87 -0
- package/a2ui/dist/functions/index.js.map +1 -0
- package/a2ui/dist/index.d.ts +11 -0
- package/a2ui/dist/index.js +35 -0
- package/a2ui/dist/index.js.map +1 -0
- package/a2ui/dist/react/A2UI.d.ts +77 -0
- package/a2ui/dist/react/A2UI.js +159 -0
- package/a2ui/dist/react/A2UI.js.map +1 -0
- package/a2ui/dist/react/A2UIProvider.d.ts +25 -0
- package/a2ui/dist/react/A2UIProvider.js +20 -0
- package/a2ui/dist/react/A2UIProvider.js.map +1 -0
- package/a2ui/dist/react/A2UIRenderer.d.ts +34 -0
- package/a2ui/dist/react/A2UIRenderer.js +161 -0
- package/a2ui/dist/react/A2UIRenderer.js.map +1 -0
- package/a2ui/dist/react/FormContext.d.ts +10 -0
- package/a2ui/dist/react/FormContext.js +12 -0
- package/a2ui/dist/react/FormContext.js.map +1 -0
- package/a2ui/dist/react/index.d.ts +8 -0
- package/a2ui/dist/react/index.js +23 -0
- package/a2ui/dist/react/index.js.map +1 -0
- package/a2ui/dist/react/useA2UIContext.d.ts +7 -0
- package/a2ui/dist/react/useA2UIContext.js +19 -0
- package/a2ui/dist/react/useA2UIContext.js.map +1 -0
- package/a2ui/dist/react/useAction.d.ts +9 -0
- package/a2ui/dist/react/useAction.js +38 -0
- package/a2ui/dist/react/useAction.js.map +1 -0
- package/a2ui/dist/react/useCatalog.d.ts +7 -0
- package/a2ui/dist/react/useCatalog.js +13 -0
- package/a2ui/dist/react/useCatalog.js.map +1 -0
- package/a2ui/dist/react/useChecks.d.ts +27 -0
- package/a2ui/dist/react/useChecks.js +76 -0
- package/a2ui/dist/react/useChecks.js.map +1 -0
- package/a2ui/dist/react/useDataBinding.d.ts +10 -0
- package/a2ui/dist/react/useDataBinding.js +175 -0
- package/a2ui/dist/react/useDataBinding.js.map +1 -0
- package/a2ui/dist/store/FormController.d.ts +23 -0
- package/a2ui/dist/store/FormController.js +40 -0
- package/a2ui/dist/store/FormController.js.map +1 -0
- package/a2ui/dist/store/FunctionRegistry.d.ts +47 -0
- package/a2ui/dist/store/FunctionRegistry.js +23 -0
- package/a2ui/dist/store/FunctionRegistry.js.map +1 -0
- package/a2ui/dist/store/MessageProcessor.d.ts +28 -0
- package/a2ui/dist/store/MessageProcessor.js +408 -0
- package/a2ui/dist/store/MessageProcessor.js.map +1 -0
- package/a2ui/dist/store/MessageStore.d.ts +38 -0
- package/a2ui/dist/store/MessageStore.js +37 -0
- package/a2ui/dist/store/MessageStore.js.map +1 -0
- package/a2ui/dist/store/Resource.d.ts +45 -0
- package/a2ui/dist/store/Resource.js +80 -0
- package/a2ui/dist/store/Resource.js.map +1 -0
- package/a2ui/dist/store/SignalStore.d.ts +10 -0
- package/a2ui/dist/store/SignalStore.js +29 -0
- package/a2ui/dist/store/SignalStore.js.map +1 -0
- package/a2ui/dist/store/index.d.ts +14 -0
- package/a2ui/dist/store/index.js +15 -0
- package/a2ui/dist/store/index.js.map +1 -0
- package/a2ui/dist/store/payloadNormalizer.d.ts +27 -0
- package/a2ui/dist/store/payloadNormalizer.js +179 -0
- package/a2ui/dist/store/payloadNormalizer.js.map +1 -0
- package/a2ui/dist/store/resolveFunctionCall.d.ts +18 -0
- package/a2ui/dist/store/resolveFunctionCall.js +131 -0
- package/a2ui/dist/store/resolveFunctionCall.js.map +1 -0
- package/a2ui/dist/store/types.d.ts +68 -0
- package/a2ui/dist/store/types.js +2 -0
- package/a2ui/dist/store/types.js.map +1 -0
- package/a2ui/dist/tsconfig.build.tsbuildinfo +1 -0
- package/a2ui/styles/catalog/Button.css +83 -0
- package/a2ui/styles/catalog/Card.css +49 -0
- package/a2ui/styles/catalog/CheckBox.css +46 -0
- package/a2ui/styles/catalog/Column.css +89 -0
- package/a2ui/styles/catalog/Divider.css +20 -0
- package/a2ui/styles/catalog/Icon.css +39 -0
- package/a2ui/styles/catalog/Image.css +54 -0
- package/a2ui/styles/catalog/LineChart.css +116 -0
- package/a2ui/styles/catalog/List.css +38 -0
- package/a2ui/styles/catalog/Modal.css +60 -0
- package/a2ui/styles/catalog/PieChart.css +109 -0
- package/a2ui/styles/catalog/RadioGroup.css +123 -0
- package/a2ui/styles/catalog/Row.css +83 -0
- package/a2ui/styles/catalog/Slider.css +96 -0
- package/a2ui/styles/catalog/Tabs.css +46 -0
- package/a2ui/styles/catalog/Text.css +121 -0
- package/a2ui/styles/catalog/TextField.css +48 -0
- package/a2ui/styles/theme.css +62 -0
- package/a2ui-catalog-extractor/README.md +605 -0
- package/a2ui-catalog-extractor/bin/a2ui-catalog-extractor.js +6 -0
- package/a2ui-catalog-extractor/dist/cli.d.ts +12 -0
- package/a2ui-catalog-extractor/dist/cli.js +171 -0
- package/a2ui-catalog-extractor/dist/cli.js.map +1 -0
- package/a2ui-catalog-extractor/dist/index.d.ts +140 -0
- package/a2ui-catalog-extractor/dist/index.js +755 -0
- package/a2ui-catalog-extractor/dist/index.js.map +1 -0
- package/a2ui-catalog-extractor/dist/tsconfig.build.tsbuildinfo +1 -0
- package/a2ui-catalog-extractor/skills/a2ui-catalog-extractor/SKILL.md +30 -0
- package/a2ui-prompt/README.md +65 -0
- package/a2ui-prompt/dist/index.d.ts +91 -0
- package/a2ui-prompt/dist/index.js +767 -0
- package/cli/README.md +88 -0
- package/cli/bin/cli.js +271 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/index.ts +114 -0
- package/openui/README.md +211 -0
- package/openui/dist/catalog/Action/index.d.ts +20 -0
- package/openui/dist/catalog/Action/index.js +23 -0
- package/openui/dist/catalog/Action/index.js.map +1 -0
- package/openui/dist/catalog/Button/index.d.ts +64 -0
- package/openui/dist/catalog/Button/index.js +75 -0
- package/openui/dist/catalog/Button/index.js.map +1 -0
- package/openui/dist/catalog/Card/index.d.ts +34 -0
- package/openui/dist/catalog/Card/index.js +69 -0
- package/openui/dist/catalog/Card/index.js.map +1 -0
- package/openui/dist/catalog/CardHeader/index.d.ts +5 -0
- package/openui/dist/catalog/CardHeader/index.js +18 -0
- package/openui/dist/catalog/CardHeader/index.js.map +1 -0
- package/openui/dist/catalog/Separator/index.d.ts +2 -0
- package/openui/dist/catalog/Separator/index.js +13 -0
- package/openui/dist/catalog/Separator/index.js.map +1 -0
- package/openui/dist/catalog/Stack/index.d.ts +29 -0
- package/openui/dist/catalog/Stack/index.js +61 -0
- package/openui/dist/catalog/Stack/index.js.map +1 -0
- package/openui/dist/catalog/Tag/index.d.ts +4 -0
- package/openui/dist/catalog/Tag/index.js +15 -0
- package/openui/dist/catalog/Tag/index.js.map +1 -0
- package/openui/dist/catalog/TextContent/index.d.ts +11 -0
- package/openui/dist/catalog/TextContent/index.js +33 -0
- package/openui/dist/catalog/TextContent/index.js.map +1 -0
- package/openui/dist/catalog/index.d.ts +7 -0
- package/openui/dist/catalog/index.js +11 -0
- package/openui/dist/catalog/index.js.map +1 -0
- package/openui/dist/catalog/utils.d.ts +2 -0
- package/openui/dist/catalog/utils.js +17 -0
- package/openui/dist/catalog/utils.js.map +1 -0
- package/openui/dist/core/context.d.ts +112 -0
- package/openui/dist/core/context.js +99 -0
- package/openui/dist/core/context.js.map +1 -0
- package/openui/dist/core/createLibrary.d.ts +10 -0
- package/openui/dist/core/createLibrary.js +36 -0
- package/openui/dist/core/createLibrary.js.map +1 -0
- package/openui/dist/core/hooks/index.d.ts +4 -0
- package/openui/dist/core/hooks/index.js +6 -0
- package/openui/dist/core/hooks/index.js.map +1 -0
- package/openui/dist/core/hooks/useFormValidation.d.ts +13 -0
- package/openui/dist/core/hooks/useFormValidation.js +76 -0
- package/openui/dist/core/hooks/useFormValidation.js.map +1 -0
- package/openui/dist/core/hooks/useOpenUIState.d.ts +33 -0
- package/openui/dist/core/hooks/useOpenUIState.js +413 -0
- package/openui/dist/core/hooks/useOpenUIState.js.map +1 -0
- package/openui/dist/core/hooks/useStateField.d.ts +2 -0
- package/openui/dist/core/hooks/useStateField.js +11 -0
- package/openui/dist/core/hooks/useStateField.js.map +1 -0
- package/openui/dist/core/index.d.ts +7 -0
- package/openui/dist/core/index.js +8 -0
- package/openui/dist/core/index.js.map +1 -0
- package/openui/dist/core/library.d.ts +20 -0
- package/openui/dist/core/library.js +13 -0
- package/openui/dist/core/library.js.map +1 -0
- package/openui/dist/core/renderer.css +271 -0
- package/openui/dist/core/renderer.d.ts +9 -0
- package/openui/dist/core/renderer.js +139 -0
- package/openui/dist/core/renderer.js.map +1 -0
- package/openui/dist/core/utils.d.ts +1 -0
- package/openui/dist/core/utils.js +76 -0
- package/openui/dist/core/utils.js.map +1 -0
- package/package.json +120 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# @lynx-js/genui
|
|
2
|
+
|
|
3
|
+
Generative UI primitives for Lynx applications.
|
|
4
|
+
|
|
5
|
+
`@lynx-js/genui` is the single npm package for the GenUI toolchain. It exposes
|
|
6
|
+
A2UI rendering, OpenUI rendering, A2UI prompt/catalog utilities, and the CLI
|
|
7
|
+
from one package while keeping implementation directories private to this
|
|
8
|
+
monorepo.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
pnpm add @lynx-js/genui @lynx-js/react
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`@lynx-js/react` is a peer dependency. Some built-in A2UI catalog components
|
|
17
|
+
also use `@lynx-js/lynx-ui`; install it when your app renders those components.
|
|
18
|
+
|
|
19
|
+
## Entry Points
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
A2UI,
|
|
24
|
+
createMessageStore,
|
|
25
|
+
createOpenUiLibrary,
|
|
26
|
+
createStreamingParser,
|
|
27
|
+
buildA2UISystemPrompt,
|
|
28
|
+
extractCatalogComponents,
|
|
29
|
+
} from '@lynx-js/genui';
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The root entry point exports the stable APIs most applications and tools need:
|
|
33
|
+
|
|
34
|
+
- A2UI ReactLynx renderer and data-store helpers.
|
|
35
|
+
- OpenUI parser, library, and renderer APIs.
|
|
36
|
+
- A2UI prompt builders.
|
|
37
|
+
- A2UI catalog extraction utilities.
|
|
38
|
+
|
|
39
|
+
Focused subpaths are also available:
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import { A2UI, Text, Button } from '@lynx-js/genui/a2ui';
|
|
43
|
+
import { createMessageStore } from '@lynx-js/genui/a2ui/store';
|
|
44
|
+
import { createOpenUiLibrary } from '@lynx-js/genui/openui';
|
|
45
|
+
import { buildA2UISystemPrompt } from '@lynx-js/genui/a2ui-prompt';
|
|
46
|
+
import { extractCatalogComponents } from '@lynx-js/genui/a2ui-catalog-extractor';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Catalog manifests are exported through a single public catalog entry:
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
import { Text, Button } from '@lynx-js/genui/a2ui/catalog';
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## A2UI
|
|
56
|
+
|
|
57
|
+
A2UI renders agent-generated UI messages that follow the A2UI v0.9 protocol.
|
|
58
|
+
Create a message store, push protocol messages into it from your transport, and
|
|
59
|
+
render the latest surface with `<A2UI>`.
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
import { A2UI, Button, Text, createMessageStore } from '@lynx-js/genui/a2ui';
|
|
63
|
+
|
|
64
|
+
const messageStore = createMessageStore();
|
|
65
|
+
|
|
66
|
+
export function GenUIScreen() {
|
|
67
|
+
return (
|
|
68
|
+
<A2UI
|
|
69
|
+
messageStore={messageStore}
|
|
70
|
+
catalogs={[Text, Button]}
|
|
71
|
+
onAction={(action) => {
|
|
72
|
+
// Send the action back to your agent, then push response messages
|
|
73
|
+
// into the same messageStore.
|
|
74
|
+
}}
|
|
75
|
+
/>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Use the A2UI style entry when you want the packaged component styles:
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
import '@lynx-js/genui/a2ui/styles/theme.css';
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
See [`a2ui/README.md`](./a2ui/README.md) for catalog composition and custom
|
|
87
|
+
component details.
|
|
88
|
+
|
|
89
|
+
## OpenUI
|
|
90
|
+
|
|
91
|
+
OpenUI renders parsed OpenUI DSL through a configurable component library.
|
|
92
|
+
|
|
93
|
+
```tsx
|
|
94
|
+
import {
|
|
95
|
+
OpenUiRenderer,
|
|
96
|
+
createOpenUiLibrary,
|
|
97
|
+
createStreamingParser,
|
|
98
|
+
} from '@lynx-js/genui/openui';
|
|
99
|
+
|
|
100
|
+
const library = createOpenUiLibrary();
|
|
101
|
+
const parser = createStreamingParser(library.toJSONSchema());
|
|
102
|
+
const result = parser.push('root = Stack([TextContent("Hello")])');
|
|
103
|
+
|
|
104
|
+
export function OpenUIScreen() {
|
|
105
|
+
return <OpenUiRenderer result={result} library={library} />;
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Renderer styles are explicit:
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
import '@lynx-js/genui/openui/styles/renderer.css';
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
See [`openui/README.md`](./openui/README.md) for streaming and custom library
|
|
116
|
+
examples.
|
|
117
|
+
|
|
118
|
+
## CLI
|
|
119
|
+
|
|
120
|
+
The package installs the GenUI CLI and the low-level catalog extractor binary:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
genui --help
|
|
124
|
+
genui-cli --help
|
|
125
|
+
a2ui-catalog-extractor --help
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
`a2ui-cli` is also kept as a compatibility alias for existing A2UI scripts. New
|
|
129
|
+
scripts should prefer the namespace-first `genui a2ui ...` form so OpenUI
|
|
130
|
+
commands can be added under `genui openui ...` later.
|
|
131
|
+
|
|
132
|
+
Generate catalog artifacts:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
genui a2ui generate catalog \
|
|
136
|
+
--catalog-dir src/catalog \
|
|
137
|
+
--source src/functions \
|
|
138
|
+
--out-dir dist/catalog
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Generate an A2UI system prompt:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
genui a2ui generate prompt \
|
|
145
|
+
--catalog-dir dist/catalog \
|
|
146
|
+
--out dist/a2ui-system-prompt.txt
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Published Package Layout
|
|
150
|
+
|
|
151
|
+
Only `@lynx-js/genui` is intended to be published. The package contains compiled
|
|
152
|
+
JavaScript and declarations under `dist/` directories, plus CLI entry points,
|
|
153
|
+
README files, styles, and extractor skills.
|
|
154
|
+
|
|
155
|
+
The root `index.ts` is compiled during build. Do not hand-write
|
|
156
|
+
`dist/index.js` or `dist/index.d.ts`; run:
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
pnpm -C packages/genui build
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Before publishing, verify the package contents:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
pnpm -C packages/genui pack --dry-run
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## License
|
|
169
|
+
|
|
170
|
+
Apache-2.0
|
package/a2ui/README.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# @lynx-js/genui/a2ui
|
|
2
|
+
|
|
3
|
+
ReactLynx renderer for the A2UI v0.9 protocol. **Headless** — the package
|
|
4
|
+
ships no styles or chrome; consumers wrap surfaces themselves.
|
|
5
|
+
|
|
6
|
+
This package includes:
|
|
7
|
+
|
|
8
|
+
- `<A2UI>`: all-in-one component that owns a `MessageProcessor`,
|
|
9
|
+
subscribes to a developer-supplied `MessageStore`, and renders the
|
|
10
|
+
most recent surface.
|
|
11
|
+
- `MessageStore`: an append-only buffer of raw protocol messages the
|
|
12
|
+
developer pushes into from any IO transport (fetch, SSE, WebSocket,
|
|
13
|
+
in-process mock, …).
|
|
14
|
+
- `defineCatalog` / `mergeCatalogs` / `serializeCatalog`: the pluggable
|
|
15
|
+
catalog API. No global registry — every consumer composes the set of
|
|
16
|
+
components they want available.
|
|
17
|
+
- `catalog/<Name>`: built-in component renderers (`Text`, `Button`,
|
|
18
|
+
`Card`, `Column`, `Row`, `List`, `CheckBox`, `RadioGroup`, `Slider`,
|
|
19
|
+
`Image`, `Divider`, `Icon`, `Modal`, `Tabs`).
|
|
20
|
+
- `catalog/<Name>/catalog.json`: per-component JSON-Schema manifests
|
|
21
|
+
for the agent handshake.
|
|
22
|
+
|
|
23
|
+
## Exports
|
|
24
|
+
|
|
25
|
+
- `@lynx-js/genui/a2ui`: `<A2UI>`, `createMessageStore`,
|
|
26
|
+
`defineCatalog`, the built-ins, plus protocol types.
|
|
27
|
+
- `@lynx-js/genui/a2ui/catalog`: re-exports of the catalog API and
|
|
28
|
+
built-ins for tree-shake-friendly subpath access.
|
|
29
|
+
- `@lynx-js/genui/a2ui/catalog/<Name>`: import a single built-in.
|
|
30
|
+
- `@lynx-js/genui/a2ui/catalog/<Name>/catalog.json`: import the
|
|
31
|
+
per-component manifest.
|
|
32
|
+
- `@lynx-js/genui/a2ui/store`: `MessageStore`, `MessageProcessor`,
|
|
33
|
+
`Resource`, payload normalizers — the pure data layer.
|
|
34
|
+
- `@lynx-js/genui/a2ui/react`: lower-level renderer pieces for
|
|
35
|
+
consumers that want manual surface lifecycle control.
|
|
36
|
+
|
|
37
|
+
## Installation
|
|
38
|
+
|
|
39
|
+
Make sure your app provides the peer dependencies:
|
|
40
|
+
|
|
41
|
+
- `@lynx-js/react`
|
|
42
|
+
|
|
43
|
+
## Quick Start
|
|
44
|
+
|
|
45
|
+
1. Create a `MessageStore`.
|
|
46
|
+
2. Wire your IO module (mock / SSE / fetch / …) to push raw protocol
|
|
47
|
+
messages into the store.
|
|
48
|
+
3. Render `<A2UI messageStore={store} catalogs={[...]}>`.
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
import { A2UI, Button, Text, createMessageStore } from '@lynx-js/genui/a2ui';
|
|
52
|
+
|
|
53
|
+
const store = createMessageStore();
|
|
54
|
+
|
|
55
|
+
// Your IO module pushes raw v0.9 protocol messages into the store.
|
|
56
|
+
// async function streamFromAgent(input: string) {
|
|
57
|
+
// for await (const msg of myAgent.stream(input)) store.push(msg);
|
|
58
|
+
// }
|
|
59
|
+
|
|
60
|
+
export function A2UIScreen(): import('@lynx-js/react').ReactNode {
|
|
61
|
+
return (
|
|
62
|
+
<A2UI
|
|
63
|
+
messageStore={store}
|
|
64
|
+
catalogs={[Text, Button]}
|
|
65
|
+
className='surface-container'
|
|
66
|
+
onAction={(action) => {
|
|
67
|
+
// Forward to your agent — push the response messages back into
|
|
68
|
+
// the same store. Fire-and-forget; the renderer never awaits.
|
|
69
|
+
}}
|
|
70
|
+
wrapSurface={(c) => <view className='luna-light'>{c}</view>}
|
|
71
|
+
/>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The `<A2UI>` component is intentionally minimal:
|
|
77
|
+
|
|
78
|
+
- It owns its own `MessageProcessor` per mount; passing a different
|
|
79
|
+
`messageStore` instance does **not** reset internal state — use a
|
|
80
|
+
`key` prop derived from your turn/session id when you want a fresh
|
|
81
|
+
session.
|
|
82
|
+
- `onAction` is fire-and-forget. The renderer doesn't wait for a
|
|
83
|
+
response — your agent pushes follow-up messages back into the same
|
|
84
|
+
`messageStore`.
|
|
85
|
+
- `className` applies to the surface root view (`surface-${surfaceId}`).
|
|
86
|
+
- `wrapSurface` applies an outer wrapper around the rendered surface.
|
|
87
|
+
- Both can be used for multi-theme switching; choose the layer that
|
|
88
|
+
matches your styling strategy.
|
|
89
|
+
|
|
90
|
+
## Catalogs
|
|
91
|
+
|
|
92
|
+
The package intentionally **does not** ship an "all-in-one" aggregate.
|
|
93
|
+
Composition is per-component so bundlers can tree-shake what isn't
|
|
94
|
+
referenced.
|
|
95
|
+
|
|
96
|
+
### Bare components (renderer-only)
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
import { defineCatalog, Text, Button } from '@lynx-js/genui/a2ui';
|
|
100
|
+
|
|
101
|
+
const catalog = defineCatalog([Text, Button]);
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The protocol name comes from `displayName ?? component.name`.
|
|
105
|
+
|
|
106
|
+
> ⚠️ Production minifiers rewrite `function` names. For production
|
|
107
|
+
> safety, set an explicit `displayName` on every custom component, or
|
|
108
|
+
> pair it with its `catalog.json` manifest (the manifest key is
|
|
109
|
+
> authoritative).
|
|
110
|
+
|
|
111
|
+
### Paired with manifests (renderer + agent handshake)
|
|
112
|
+
|
|
113
|
+
```ts
|
|
114
|
+
import { Text, defineCatalog } from '@lynx-js/genui/a2ui';
|
|
115
|
+
import textManifest from '@lynx-js/genui/a2ui/catalog/Text/catalog.json'
|
|
116
|
+
with { type: 'json' };
|
|
117
|
+
|
|
118
|
+
const catalog = defineCatalog([[Text, textManifest]]);
|
|
119
|
+
agentChannel.handshake({ catalog: serializeCatalog(catalog) });
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
See [`src/catalog/README.md`](src/catalog/README.md) for the full
|
|
123
|
+
recipe (including the paste-able "every built-in" snippet).
|
|
124
|
+
|
|
125
|
+
## Custom Components
|
|
126
|
+
|
|
127
|
+
Any function returning a `ReactNode` works. The function's name (or
|
|
128
|
+
`displayName`) is the protocol name the agent will use:
|
|
129
|
+
|
|
130
|
+
```tsx
|
|
131
|
+
function MyChart(props: { data: number[] }) { ... }
|
|
132
|
+
MyChart.displayName = 'MyChart';
|
|
133
|
+
|
|
134
|
+
<A2UI catalogs={[Text, Button, MyChart]} ... />;
|
|
135
|
+
// Agent emits `{ component: 'MyChart', data: [...] }` → renders MyChart.
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
If you want schema introspection for a custom component, generate the
|
|
139
|
+
manifest with `@lynx-js/genui/a2ui-catalog-extractor` against your interface
|
|
140
|
+
and pair it with the component the same way as the built-ins.
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Button": {
|
|
3
|
+
"properties": {
|
|
4
|
+
"child": {
|
|
5
|
+
"type": "string"
|
|
6
|
+
},
|
|
7
|
+
"variant": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"primary",
|
|
11
|
+
"borderless"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"isValid": {
|
|
15
|
+
"type": "boolean"
|
|
16
|
+
},
|
|
17
|
+
"action": {
|
|
18
|
+
"oneOf": [
|
|
19
|
+
{
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"event": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"name": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"context": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": true,
|
|
31
|
+
"description": "Context is a JSON object map in v0.9."
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"name"
|
|
36
|
+
],
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"event"
|
|
42
|
+
],
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"functionCall": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"call": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"args": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": true
|
|
57
|
+
},
|
|
58
|
+
"returnType": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": [
|
|
61
|
+
"string",
|
|
62
|
+
"number",
|
|
63
|
+
"boolean",
|
|
64
|
+
"object",
|
|
65
|
+
"array",
|
|
66
|
+
"any",
|
|
67
|
+
"void"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"call",
|
|
73
|
+
"args"
|
|
74
|
+
],
|
|
75
|
+
"additionalProperties": false
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"required": [
|
|
79
|
+
"functionCall"
|
|
80
|
+
],
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"description": "v0.9 actions should use the `event` wrapper for server-dispatched clicks."
|
|
85
|
+
},
|
|
86
|
+
"checks": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"items": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"condition": {
|
|
92
|
+
"oneOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "boolean"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "object",
|
|
98
|
+
"properties": {
|
|
99
|
+
"path": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"path"
|
|
105
|
+
],
|
|
106
|
+
"additionalProperties": false
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"call": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"args": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": true
|
|
117
|
+
},
|
|
118
|
+
"returnType": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"enum": [
|
|
121
|
+
"string",
|
|
122
|
+
"number",
|
|
123
|
+
"boolean",
|
|
124
|
+
"object",
|
|
125
|
+
"array",
|
|
126
|
+
"any",
|
|
127
|
+
"void"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": [
|
|
132
|
+
"call",
|
|
133
|
+
"args"
|
|
134
|
+
],
|
|
135
|
+
"additionalProperties": false
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"message": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": [
|
|
144
|
+
"condition",
|
|
145
|
+
"message"
|
|
146
|
+
],
|
|
147
|
+
"additionalProperties": false
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": [
|
|
152
|
+
"child",
|
|
153
|
+
"action"
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
}
|