@judo/codegen 0.1.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 +277 -0
- package/README.md +106 -0
- package/dist/cli.d.ts +9 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +76 -0
- package/dist/cli.js.map +1 -0
- package/dist/generator.d.ts +25 -0
- package/dist/generator.d.ts.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/model-reader-SXrCZEyZ.js +1811 -0
- package/dist/model-reader-SXrCZEyZ.js.map +1 -0
- package/dist/model-reader.d.ts +137 -0
- package/dist/model-reader.d.ts.map +1 -0
- package/dist/name-utils.d.ts +64 -0
- package/dist/name-utils.d.ts.map +1 -0
- package/package.json +50 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
Eclipse Public License - v 2.0
|
|
2
|
+
|
|
3
|
+
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
|
|
4
|
+
PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION
|
|
5
|
+
OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
|
|
6
|
+
|
|
7
|
+
1. DEFINITIONS
|
|
8
|
+
|
|
9
|
+
"Contribution" means:
|
|
10
|
+
|
|
11
|
+
a) in the case of the initial Contributor, the initial content
|
|
12
|
+
Distributed under this Agreement, and
|
|
13
|
+
|
|
14
|
+
b) in the case of each subsequent Contributor:
|
|
15
|
+
i) changes to the Program, and
|
|
16
|
+
ii) additions to the Program;
|
|
17
|
+
where such changes and/or additions to the Program originate from
|
|
18
|
+
and are Distributed by that particular Contributor. A Contribution
|
|
19
|
+
"originates" from a Contributor if it was added to the Program by
|
|
20
|
+
such Contributor itself or anyone acting on such Contributor's behalf.
|
|
21
|
+
Contributions do not include changes or additions to the Program that
|
|
22
|
+
are not Modified Works.
|
|
23
|
+
|
|
24
|
+
"Contributor" means any person or entity that Distributes the Program.
|
|
25
|
+
|
|
26
|
+
"Licensed Patents" mean patent claims licensable by a Contributor which
|
|
27
|
+
are necessarily infringed by the use or sale of its Contribution alone
|
|
28
|
+
or when combined with the Program.
|
|
29
|
+
|
|
30
|
+
"Program" means the Contributions Distributed in accordance with this
|
|
31
|
+
Agreement.
|
|
32
|
+
|
|
33
|
+
"Recipient" means anyone who receives the Program under this Agreement
|
|
34
|
+
or any Secondary License (as applicable), including Contributors.
|
|
35
|
+
|
|
36
|
+
"Derivative Works" shall mean any work, whether in Source Code or other
|
|
37
|
+
form, that is based on (or derived from) the Program and for which the
|
|
38
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
39
|
+
represent, as a whole, an original work of authorship.
|
|
40
|
+
|
|
41
|
+
"Modified Works" shall mean any work in Source Code or other form that
|
|
42
|
+
results from an addition to, deletion from, or modification of the
|
|
43
|
+
contents of the Program, including, for purposes of clarity any new file
|
|
44
|
+
in Source Code form that contains any contents of the Program. Modified
|
|
45
|
+
Works shall not include works that contain only declarations,
|
|
46
|
+
interfaces, types, classes, structures, or files of the Program solely
|
|
47
|
+
in each case in order to link to, bind by name, or subclass the Program
|
|
48
|
+
or Modified Works thereof.
|
|
49
|
+
|
|
50
|
+
"Distribute" means the acts of a) distributing or b) making available
|
|
51
|
+
in any manner that enables the transfer of a copy.
|
|
52
|
+
|
|
53
|
+
"Source Code" means the form of a Program preferred for making
|
|
54
|
+
modifications, including but not limited to software source code,
|
|
55
|
+
documentation source, and configuration files.
|
|
56
|
+
|
|
57
|
+
"Secondary License" means either the GNU General Public License,
|
|
58
|
+
Version 2.0, or any later versions of that license, including any
|
|
59
|
+
exceptions or additional permissions as identified by the initial
|
|
60
|
+
Contributor.
|
|
61
|
+
|
|
62
|
+
2. GRANT OF RIGHTS
|
|
63
|
+
|
|
64
|
+
a) Subject to the terms of this Agreement, each Contributor hereby
|
|
65
|
+
grants Recipient a non-exclusive, worldwide, royalty-free copyright
|
|
66
|
+
license to reproduce, prepare Derivative Works of, publicly display,
|
|
67
|
+
publicly perform, Distribute and sublicense the Contribution of such
|
|
68
|
+
Contributor, if any, and such Derivative Works.
|
|
69
|
+
|
|
70
|
+
b) Subject to the terms of this Agreement, each Contributor hereby
|
|
71
|
+
grants Recipient a non-exclusive, worldwide, royalty-free patent
|
|
72
|
+
license under Licensed Patents to make, use, sell, offer to sell,
|
|
73
|
+
import and otherwise transfer the Contribution of such Contributor,
|
|
74
|
+
if any, in Source Code or other form. This patent license shall
|
|
75
|
+
apply to the combination of the Contribution and the Program if, at
|
|
76
|
+
the time the Contribution is added by the Contributor, such addition
|
|
77
|
+
of the Contribution causes such combination to be covered by the
|
|
78
|
+
Licensed Patents. The patent license shall not apply to any other
|
|
79
|
+
combinations which include the Contribution. No hardware per se is
|
|
80
|
+
licensed hereunder.
|
|
81
|
+
|
|
82
|
+
c) Recipient understands that although each Contributor grants the
|
|
83
|
+
licenses to its Contributions set forth herein, no assurances are
|
|
84
|
+
provided by any Contributor that the Program does not infringe the
|
|
85
|
+
patent or other intellectual property rights of any other entity.
|
|
86
|
+
Each Contributor disclaims any liability to Recipient for claims
|
|
87
|
+
brought by any other entity based on infringement of intellectual
|
|
88
|
+
property rights or otherwise. As a condition to exercising the
|
|
89
|
+
rights and licenses granted hereunder, each Recipient hereby
|
|
90
|
+
assumes sole responsibility to secure any other intellectual
|
|
91
|
+
property rights needed, if any. For example, if a third party
|
|
92
|
+
patent license is required to allow Recipient to Distribute the
|
|
93
|
+
Program, it is Recipient's responsibility to acquire that license
|
|
94
|
+
before distributing the Program.
|
|
95
|
+
|
|
96
|
+
d) Each Contributor represents that to its knowledge it has
|
|
97
|
+
sufficient copyright rights in its Contribution, if any, to grant
|
|
98
|
+
the copyright license set forth in this Agreement.
|
|
99
|
+
|
|
100
|
+
e) Notwithstanding the terms of any Secondary License, no
|
|
101
|
+
Contributor makes additional grants to any Recipient (other than
|
|
102
|
+
those set forth in this Agreement) as a result of such Recipient's
|
|
103
|
+
receipt of the Program under the terms of a Secondary License
|
|
104
|
+
(if permitted under the terms of Section 3).
|
|
105
|
+
|
|
106
|
+
3. REQUIREMENTS
|
|
107
|
+
|
|
108
|
+
3.1 If a Contributor Distributes the Program in any form, then:
|
|
109
|
+
|
|
110
|
+
a) the Program must also be made available as Source Code, in
|
|
111
|
+
accordance with section 3.2, and the Contributor must accompany
|
|
112
|
+
the Program with a statement that the Source Code for the Program
|
|
113
|
+
is available under this Agreement, and informs Recipients how to
|
|
114
|
+
obtain it in a reasonable manner on or through a medium customarily
|
|
115
|
+
used for software exchange; and
|
|
116
|
+
|
|
117
|
+
b) the Contributor may Distribute the Program under a license
|
|
118
|
+
different than this Agreement, provided that such license:
|
|
119
|
+
i) effectively disclaims on behalf of all other Contributors all
|
|
120
|
+
warranties and conditions, express and implied, including
|
|
121
|
+
warranties or conditions of title and non-infringement, and
|
|
122
|
+
implied warranties or conditions of merchantability and fitness
|
|
123
|
+
for a particular purpose;
|
|
124
|
+
|
|
125
|
+
ii) effectively excludes on behalf of all other Contributors all
|
|
126
|
+
liability for damages, including direct, indirect, special,
|
|
127
|
+
incidental and consequential damages, such as lost profits;
|
|
128
|
+
|
|
129
|
+
iii) does not attempt to limit or alter the recipients' rights
|
|
130
|
+
in the Source Code under section 3.2; and
|
|
131
|
+
|
|
132
|
+
iv) requires any subsequent distribution of the Program by any
|
|
133
|
+
party to be under a license that satisfies the requirements
|
|
134
|
+
of this section 3.
|
|
135
|
+
|
|
136
|
+
3.2 When the Program is Distributed as Source Code:
|
|
137
|
+
|
|
138
|
+
a) it must be made available under this Agreement, or if the
|
|
139
|
+
Program (i) is combined with other material in a separate file or
|
|
140
|
+
files made available under a Secondary License, and (ii) the initial
|
|
141
|
+
Contributor attached to the Source Code the notice described in
|
|
142
|
+
Exhibit A of this Agreement, then the Program may be made available
|
|
143
|
+
under the terms of such Secondary Licenses, and
|
|
144
|
+
|
|
145
|
+
b) a copy of this Agreement must be included with each copy of
|
|
146
|
+
the Program.
|
|
147
|
+
|
|
148
|
+
3.3 Contributors may not remove or alter any copyright, patent,
|
|
149
|
+
trademark, attribution notices, disclaimers of warranty, or limitations
|
|
150
|
+
of liability ("notices") contained within the Program from any copy of
|
|
151
|
+
the Program which they Distribute, provided that Contributors may add
|
|
152
|
+
their own appropriate notices.
|
|
153
|
+
|
|
154
|
+
4. COMMERCIAL DISTRIBUTION
|
|
155
|
+
|
|
156
|
+
Commercial distributors of software may accept certain responsibilities
|
|
157
|
+
with respect to end users, business partners and the like. While this
|
|
158
|
+
license is intended to facilitate the commercial use of the Program,
|
|
159
|
+
the Contributor who includes the Program in a commercial product
|
|
160
|
+
offering should do so in a manner which does not create potential
|
|
161
|
+
liability for other Contributors. Therefore, if a Contributor includes
|
|
162
|
+
the Program in a commercial product offering, such Contributor
|
|
163
|
+
("Commercial Contributor") hereby agrees to defend and indemnify every
|
|
164
|
+
other Contributor ("Indemnified Contributor") against any losses,
|
|
165
|
+
damages and costs (collectively "Losses") arising from claims, lawsuits
|
|
166
|
+
and other legal actions brought by a third party against the Indemnified
|
|
167
|
+
Contributor to the extent caused by the acts or omissions of such
|
|
168
|
+
Commercial Contributor in connection with its distribution of the Program
|
|
169
|
+
in a commercial product offering. The obligations in this section do not
|
|
170
|
+
apply to any claims or Losses relating to any actual or alleged
|
|
171
|
+
intellectual property infringement. In order to qualify, an Indemnified
|
|
172
|
+
Contributor must: a) promptly notify the Commercial Contributor in
|
|
173
|
+
writing of such claim, and b) allow the Commercial Contributor to control,
|
|
174
|
+
and cooperate with the Commercial Contributor in, the defense and any
|
|
175
|
+
related settlement negotiations. The Indemnified Contributor may
|
|
176
|
+
participate in any such claim at its own expense.
|
|
177
|
+
|
|
178
|
+
For example, a Contributor might include the Program in a commercial
|
|
179
|
+
product offering, Product X. That Contributor is then a Commercial
|
|
180
|
+
Contributor. If that Commercial Contributor then makes performance
|
|
181
|
+
claims, or offers warranties related to Product X, those performance
|
|
182
|
+
claims and warranties are such Commercial Contributor's responsibility
|
|
183
|
+
alone. Under this section, the Commercial Contributor would have to
|
|
184
|
+
defend claims against the other Contributors related to those performance
|
|
185
|
+
claims and warranties, and if a court requires any other Contributor to
|
|
186
|
+
pay any damages as a result, the Commercial Contributor must pay
|
|
187
|
+
those damages.
|
|
188
|
+
|
|
189
|
+
5. NO WARRANTY
|
|
190
|
+
|
|
191
|
+
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
|
|
192
|
+
PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS"
|
|
193
|
+
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
|
|
194
|
+
IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
|
|
195
|
+
TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
|
|
196
|
+
PURPOSE. Each Recipient is solely responsible for determining the
|
|
197
|
+
appropriateness of using and distributing the Program and assumes all
|
|
198
|
+
risks associated with its exercise of rights under this Agreement,
|
|
199
|
+
including but not limited to the risks and costs of program errors,
|
|
200
|
+
compliance with applicable laws, damage to or loss of data, programs
|
|
201
|
+
or equipment, and unavailability or interruption of operations.
|
|
202
|
+
|
|
203
|
+
6. DISCLAIMER OF LIABILITY
|
|
204
|
+
|
|
205
|
+
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
|
|
206
|
+
PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS
|
|
207
|
+
SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
208
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
|
|
209
|
+
PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
210
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
211
|
+
ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
|
|
212
|
+
EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
|
|
213
|
+
POSSIBILITY OF SUCH DAMAGES.
|
|
214
|
+
|
|
215
|
+
7. GENERAL
|
|
216
|
+
|
|
217
|
+
If any provision of this Agreement is invalid or unenforceable under
|
|
218
|
+
applicable law, it shall not affect the validity or enforceability of
|
|
219
|
+
the remainder of the terms of this Agreement, and without further
|
|
220
|
+
action by the parties hereto, such provision shall be reformed to the
|
|
221
|
+
minimum extent necessary to make such provision valid and enforceable.
|
|
222
|
+
|
|
223
|
+
If Recipient institutes patent litigation against any entity
|
|
224
|
+
(including a cross-claim or counterclaim in a lawsuit) alleging that the
|
|
225
|
+
Program itself (excluding combinations of the Program with other software
|
|
226
|
+
or hardware) infringes such Recipient's patent(s), then such Recipient's
|
|
227
|
+
rights granted under Section 2(b) shall terminate as of the date such
|
|
228
|
+
litigation is filed.
|
|
229
|
+
|
|
230
|
+
All Recipient's rights under this Agreement shall terminate if it
|
|
231
|
+
fails to comply with any of the material terms or conditions of this
|
|
232
|
+
Agreement and does not cure such failure in a reasonable period of
|
|
233
|
+
time after becoming aware of such noncompliance. If all Recipient's
|
|
234
|
+
rights under this Agreement terminate, Recipient agrees to cease use
|
|
235
|
+
and distribution of the Program as soon as reasonably practicable.
|
|
236
|
+
However, Recipient's obligations under this Agreement and any licenses
|
|
237
|
+
granted by Recipient relating to the Program shall continue and survive.
|
|
238
|
+
|
|
239
|
+
Everyone is permitted to copy and distribute copies of this Agreement,
|
|
240
|
+
but in order to avoid inconsistency the Agreement is copyrighted and
|
|
241
|
+
may only be modified in the following manner. The Agreement Steward
|
|
242
|
+
reserves the right to publish new versions (including revisions) of
|
|
243
|
+
this Agreement from time to time. No one other than the Agreement
|
|
244
|
+
Steward has the right to modify this Agreement. The Eclipse Foundation
|
|
245
|
+
is the initial Agreement Steward. The Eclipse Foundation may assign the
|
|
246
|
+
responsibility to serve as the Agreement Steward to a suitable separate
|
|
247
|
+
entity. Each new version of the Agreement will be given a distinguishing
|
|
248
|
+
version number. The Program (including Contributions) may always be
|
|
249
|
+
Distributed subject to the version of the Agreement under which it was
|
|
250
|
+
received. In addition, after a new version of the Agreement is published,
|
|
251
|
+
Contributor may elect to Distribute the Program (including its
|
|
252
|
+
Contributions) under the new version.
|
|
253
|
+
|
|
254
|
+
Except as expressly stated in Sections 2(a) and 2(b) above, Recipient
|
|
255
|
+
receives no rights or licenses to the intellectual property of any
|
|
256
|
+
Contributor under this Agreement, whether expressly, by implication,
|
|
257
|
+
estoppel or otherwise. All rights in the Program not expressly granted
|
|
258
|
+
under this Agreement are reserved. Nothing in this Agreement is intended
|
|
259
|
+
to be enforceable by any entity that is not a Contributor or Recipient.
|
|
260
|
+
No third-party beneficiary rights are created under this Agreement.
|
|
261
|
+
|
|
262
|
+
Exhibit A - Form of Secondary Licenses Notice
|
|
263
|
+
|
|
264
|
+
"This Source Code may also be made available under the following
|
|
265
|
+
Secondary Licenses when the conditions for such availability set forth
|
|
266
|
+
in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
|
|
267
|
+
version(s), and exceptions or additional permissions here}."
|
|
268
|
+
|
|
269
|
+
Simply including a copy of this Agreement, including this Exhibit A
|
|
270
|
+
is not sufficient to license the Source Code under Secondary Licenses.
|
|
271
|
+
|
|
272
|
+
If it is not possible or desirable to put the notice in a particular
|
|
273
|
+
file, then You may include the notice in a location (such as a LICENSE
|
|
274
|
+
file in a relevant directory) where a recipient would be likely to
|
|
275
|
+
look for such a notice.
|
|
276
|
+
|
|
277
|
+
You may add additional accurate notices of copyright ownership.
|
package/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
````markdown
|
|
2
|
+
# @judo/codegen
|
|
3
|
+
|
|
4
|
+
> Build-time code generator for JUDO UI Runtime extensibility — produces type-safe TypeScript interfaces from .model files
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Reads `.model` XML files and generates TypeScript source files providing:
|
|
9
|
+
|
|
10
|
+
1. **Typed action override interfaces** — per page, listing all actions and their lifecycle methods
|
|
11
|
+
2. **Typed component props** — for each `customImplementation` element
|
|
12
|
+
3. **Typed customization config** — a `createCustomizations()` factory with full type inference and name→sourceId resolution
|
|
13
|
+
4. **Translation artifacts** — baseline `en-US.json` locale file and a `TRANSLATION_KEY_MAP` for runtime label resolution
|
|
14
|
+
5. **Optional scaffolding stubs** — starter implementations as starting points
|
|
15
|
+
|
|
16
|
+
## Architecture Layer
|
|
17
|
+
|
|
18
|
+
**Build-time tooling** — used as a `devDependency`. Emits TypeScript source files consumed by runtime packages (`core`, `app-shell`).
|
|
19
|
+
|
|
20
|
+
## Dependencies
|
|
21
|
+
|
|
22
|
+
- `@judo/model-api` — model type definitions (workspace dependency)
|
|
23
|
+
- `fast-xml-parser ^5` — lightweight XML parsing for `.model` files
|
|
24
|
+
|
|
25
|
+
## File Structure
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
src/
|
|
29
|
+
├── index.ts # Barrel re-exports: generate, extractModel, types
|
|
30
|
+
├── cli.ts # CLI entry point (judo-codegen binary)
|
|
31
|
+
├── model-reader.ts # XML parser → ExtractedModel
|
|
32
|
+
├── model-reader.test.ts
|
|
33
|
+
├── generator.ts # ExtractedModel → generated TypeScript files
|
|
34
|
+
├── generator.test.ts
|
|
35
|
+
├── name-utils.ts # Name conversion utilities (PascalCase, camelCase, identifiers)
|
|
36
|
+
├── name-utils.test.ts
|
|
37
|
+
└── integration.test.ts # End-to-end tests against real example models
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Exports Summary
|
|
41
|
+
|
|
42
|
+
### Generator
|
|
43
|
+
|
|
44
|
+
| Export | Kind | Description |
|
|
45
|
+
| ----------------- | -------- | -------------------------------------------------------------------------------------------- |
|
|
46
|
+
| `generate` | function | Produces a `Map<string, string>` of relative file paths → TypeScript file contents |
|
|
47
|
+
| `GenerateOptions` | type | Options: `model`, `scaffoldStubs?`, `applicationFilter?`, `customComponentAnnotationPrefix?` |
|
|
48
|
+
| `GenerateResult` | type | Result containing `files: Map<string, string>` |
|
|
49
|
+
|
|
50
|
+
### Model Reader
|
|
51
|
+
|
|
52
|
+
| Export | Kind | Description |
|
|
53
|
+
| -------------------- | -------- | -------------------------------------------------------------------------------- |
|
|
54
|
+
| `extractModel` | function | Parses `.model` XML content into an `ExtractedModel` structure |
|
|
55
|
+
| `ExtractedModel` | type | Top-level model: applications, pages, components, navigationItems, subThemeNames |
|
|
56
|
+
| `ExtractedPage` | type | Page with name, sourceId, applicationName, actions, elements, metadata |
|
|
57
|
+
| `ExtractedAction` | type | Action with name, sourceId, actionDefinitionType, actionDefinitionSourceId |
|
|
58
|
+
| `ExtractedComponent` | type | Custom implementation element with name, sourceId, elementType, annotations |
|
|
59
|
+
| `ExtractedElement` | type | Named visual element with name, path, sourceId, elementType, label, annotations |
|
|
60
|
+
|
|
61
|
+
### CLI
|
|
62
|
+
|
|
63
|
+
Binary: `judo-codegen` — invoked via `npx @judo/codegen generate --model <path> --outDir <dir> [options]`
|
|
64
|
+
|
|
65
|
+
| Flag | Description |
|
|
66
|
+
| ----------------- | ----------------------------------------------------- |
|
|
67
|
+
| `--model <path>` | Path to the `.model` XML file (required) |
|
|
68
|
+
| `--outDir <dir>` | Output directory for generated files (required) |
|
|
69
|
+
| `--scaffoldStubs` | Generate starter implementation stubs |
|
|
70
|
+
| `--watch` | Watch the model file for changes and regenerate |
|
|
71
|
+
| `--app <name>` | Only generate for a specific application (actor) name |
|
|
72
|
+
|
|
73
|
+
## Generated Output Structure
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
generated/
|
|
77
|
+
├── index.ts # Re-exports pages, components, factory, translation key map
|
|
78
|
+
├── customizations.ts # createCustomizations() factory + TypedCustomizationsInput
|
|
79
|
+
├── _source-id-map.ts # INTERNAL name→sourceId mapping (not re-exported)
|
|
80
|
+
├── _translation-key-map.ts # sourceId→translation key mapping (TRANSLATION_KEY_MAP)
|
|
81
|
+
├── pages/
|
|
82
|
+
│ ├── index.ts # Re-exports all page types
|
|
83
|
+
│ └── <PageName>.ts # Per-page action overrides + element names union type
|
|
84
|
+
├── components/
|
|
85
|
+
│ ├── index.ts # Re-exports all component props types
|
|
86
|
+
│ └── <ComponentName>.ts # Per-component typed CustomComponentProps
|
|
87
|
+
├── locales/
|
|
88
|
+
│ └── en-US.json # Baseline translation file
|
|
89
|
+
└── stubs/ # Optional (--scaffoldStubs)
|
|
90
|
+
├── pages/
|
|
91
|
+
│ └── use<PageName>Actions.ts
|
|
92
|
+
└── components/
|
|
93
|
+
└── <ComponentName>.tsx
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Key Patterns
|
|
97
|
+
|
|
98
|
+
- **Name→sourceId isolation**: Developers use human-readable model names; `createCustomizations()` resolves to `xmi:id` sourceIds internally via `_source-id-map.ts`. Source IDs are never exposed.
|
|
99
|
+
- **Annotation-based component wiring**: Elements sharing a `use`-prefixed annotation (e.g., `useFancyText`) are grouped; a single custom component is registered for all of them. Annotation components are processed before individual `components` entries, so explicit overrides win.
|
|
100
|
+
- **Conditional generation**: `subThemeProviders`, `annotationComponents`, and per-page feature fields (`typeaheadProviders`, `tableRowHighlighting`, `enumOptionFilter`, `dateValidationProps`, `columnCustomizers`, `itemContainerConfigs`) are only emitted when the model has matching element types.
|
|
101
|
+
- **Identifier deduplication**: Pages and components with colliding names after PascalCase conversion get numeric suffixes (e.g., `Dashboard`, `Dashboard1`).
|
|
102
|
+
- **Element key shortening**: Customization keys use plain element names (e.g., `stars`) when unique within a page, falling back to shortest unique dot-suffix (e.g., `orders.price` vs `items.price`) for disambiguation. Section-specific keys (e.g., `tableRowHighlighting`) are disambiguated only among elements of the same type, avoiding cross-type collisions. Full hierarchical paths are retained internally for translation key generation.
|
|
103
|
+
- **Translation baseline**: `locales/en-US.json` contains page titles (with `derivePageLabel` for operation pages), element labels, navigation items (`nav.*`), and static system messages (`system.*`). Keys are sorted alphabetically.
|
|
104
|
+
- **Action definition type resolution**: Raw XML references like `TransferObjectViewDeleteActionDefinition` are mapped to canonical types (`DeleteActionDefinition`) via a pattern-matching table in `resolveActionDefinitionType`.
|
|
105
|
+
- **Tree-shaking friendly**: Generated types are type-only (zero JS). The factory and source-id map are the only runtime JS. Stubs are not auto-imported.
|
|
106
|
+
````
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;;;;GAKG"}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { n as generate, t as extractModel } from "./model-reader-SXrCZEyZ.js";
|
|
3
|
+
import { existsSync, mkdirSync, readFileSync, unwatchFile, watchFile, writeFileSync } from "node:fs";
|
|
4
|
+
import { dirname, join, relative, resolve } from "node:path";
|
|
5
|
+
function parseArgs(e) {
|
|
6
|
+
let l = {
|
|
7
|
+
command: "",
|
|
8
|
+
model: "",
|
|
9
|
+
outDir: "",
|
|
10
|
+
scaffoldStubs: !1,
|
|
11
|
+
watch: !1
|
|
12
|
+
}, u = 2;
|
|
13
|
+
for (e[u] && !e[u].startsWith("-") && (l.command = e[u], u++); u < e.length; u++) switch (e[u]) {
|
|
14
|
+
case "--model":
|
|
15
|
+
l.model = e[++u] ?? "";
|
|
16
|
+
break;
|
|
17
|
+
case "--outDir":
|
|
18
|
+
l.outDir = e[++u] ?? "";
|
|
19
|
+
break;
|
|
20
|
+
case "--scaffoldStubs":
|
|
21
|
+
l.scaffoldStubs = !0;
|
|
22
|
+
break;
|
|
23
|
+
case "--watch":
|
|
24
|
+
l.watch = !0;
|
|
25
|
+
break;
|
|
26
|
+
case "--app":
|
|
27
|
+
l.app = e[++u] ?? void 0;
|
|
28
|
+
break;
|
|
29
|
+
default:
|
|
30
|
+
e[u].startsWith("-") || (l.command ||= e[u]);
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
return l;
|
|
34
|
+
}
|
|
35
|
+
function printUsage() {
|
|
36
|
+
console.log("\n@judo/codegen — Generate type-safe extensibility interfaces from JUDO UI models\n\nUsage:\n judo-codegen generate --model <path> --outDir <dir> [options]\n\nCommands:\n generate Generate TypeScript source files from a .model file\n\nOptions:\n --model <path> Path to the .model XML file (required)\n --outDir <dir> Output directory for generated files (required)\n --scaffoldStubs Generate starter implementation stubs\n --watch Watch the model file for changes and regenerate\n --app <name> Only generate for a specific application (actor) name\n\nExamples:\n judo-codegen generate --model ./models/app.model --outDir ./src/generated\n judo-codegen generate --model ./models/app.model --outDir ./src/generated --scaffoldStubs --watch\n");
|
|
37
|
+
}
|
|
38
|
+
function runGenerate(p) {
|
|
39
|
+
let m = resolve(p.model), h = resolve(p.outDir);
|
|
40
|
+
existsSync(m) || (console.error(`Error: Model file not found: ${m}`), process.exit(1)), console.log(`Reading model: ${m}`);
|
|
41
|
+
let g = readFileSync(m, "utf-8");
|
|
42
|
+
console.log("Extracting model data...");
|
|
43
|
+
let _ = extractModel(g);
|
|
44
|
+
console.log(`Found ${_.applications.length} application(s), ${_.pages.length} page(s), ${_.components.length} custom component(s)`), console.log("Generating TypeScript files...");
|
|
45
|
+
let v = generate({
|
|
46
|
+
model: _,
|
|
47
|
+
scaffoldStubs: p.scaffoldStubs,
|
|
48
|
+
applicationFilter: p.app
|
|
49
|
+
}), y = 0;
|
|
50
|
+
for (let [e, l] of v.files) {
|
|
51
|
+
let d = join(h, e), f = dirname(d);
|
|
52
|
+
existsSync(f) || mkdirSync(f, { recursive: !0 }), writeFileSync(d, l, "utf-8"), y++;
|
|
53
|
+
}
|
|
54
|
+
console.log(`Generated ${y} files in ${relative(process.cwd(), h)}/`), p.watch && (console.log(`\nWatching ${relative(process.cwd(), m)} for changes...`), watchFile(m, { interval: 500 }, () => {
|
|
55
|
+
console.log("\nModel changed, regenerating...");
|
|
56
|
+
try {
|
|
57
|
+
runGenerate({
|
|
58
|
+
...p,
|
|
59
|
+
watch: !1
|
|
60
|
+
}), console.log("Watching for changes...");
|
|
61
|
+
} catch (e) {
|
|
62
|
+
console.error("Generation error:", e);
|
|
63
|
+
}
|
|
64
|
+
}), process.on("SIGINT", () => {
|
|
65
|
+
unwatchFile(m), process.exit(0);
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
var args = parseArgs(process.argv);
|
|
69
|
+
if ((!args.command || args.command === "help" || args.command === "--help") && (printUsage(), process.exit(0)), args.command === "generate") {
|
|
70
|
+
args.model || (console.error("Error: --model is required"), printUsage(), process.exit(1)), args.outDir || (console.error("Error: --outDir is required"), printUsage(), process.exit(1));
|
|
71
|
+
try {
|
|
72
|
+
runGenerate(args);
|
|
73
|
+
} catch (e) {
|
|
74
|
+
console.error("Generation failed:", e), process.exit(1);
|
|
75
|
+
}
|
|
76
|
+
} else console.error(`Unknown command: ${args.command}`), printUsage(), process.exit(1);
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","names":["args: CliArgs"],"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * @judo/codegen CLI\n *\n * Usage:\n * npx @judo/codegen generate --model <path> --outDir <dir> [--scaffoldStubs] [--watch] [--app <name>]\n */\n\nimport { existsSync, mkdirSync, readFileSync, unwatchFile, watchFile, writeFileSync } from \"node:fs\";\nimport { dirname, join, relative, resolve } from \"node:path\";\nimport { generate } from \"./generator\";\nimport { extractModel } from \"./model-reader\";\n\ninterface CliArgs {\n\tcommand: string;\n\tmodel: string;\n\toutDir: string;\n\tscaffoldStubs: boolean;\n\twatch: boolean;\n\tapp?: string;\n}\n\nfunction parseArgs(argv: string[]): CliArgs {\n\tconst args: CliArgs = {\n\t\tcommand: \"\",\n\t\tmodel: \"\",\n\t\toutDir: \"\",\n\t\tscaffoldStubs: false,\n\t\twatch: false,\n\t};\n\n\tlet i = 2; // Skip node and script path\n\tif (argv[i] && !argv[i].startsWith(\"-\")) {\n\t\targs.command = argv[i];\n\t\ti++;\n\t}\n\n\tfor (; i < argv.length; i++) {\n\t\tswitch (argv[i]) {\n\t\t\tcase \"--model\":\n\t\t\t\targs.model = argv[++i] ?? \"\";\n\t\t\t\tbreak;\n\t\t\tcase \"--outDir\":\n\t\t\t\targs.outDir = argv[++i] ?? \"\";\n\t\t\t\tbreak;\n\t\t\tcase \"--scaffoldStubs\":\n\t\t\t\targs.scaffoldStubs = true;\n\t\t\t\tbreak;\n\t\t\tcase \"--watch\":\n\t\t\t\targs.watch = true;\n\t\t\t\tbreak;\n\t\t\tcase \"--app\":\n\t\t\t\targs.app = argv[++i] ?? undefined;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (!argv[i].startsWith(\"-\")) {\n\t\t\t\t\t// Positional — first is command\n\t\t\t\t\tif (!args.command) {\n\t\t\t\t\t\targs.command = argv[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn args;\n}\n\nfunction printUsage(): void {\n\tconsole.log(`\n@judo/codegen — Generate type-safe extensibility interfaces from JUDO UI models\n\nUsage:\n judo-codegen generate --model <path> --outDir <dir> [options]\n\nCommands:\n generate Generate TypeScript source files from a .model file\n\nOptions:\n --model <path> Path to the .model XML file (required)\n --outDir <dir> Output directory for generated files (required)\n --scaffoldStubs Generate starter implementation stubs\n --watch Watch the model file for changes and regenerate\n --app <name> Only generate for a specific application (actor) name\n\nExamples:\n judo-codegen generate --model ./models/app.model --outDir ./src/generated\n judo-codegen generate --model ./models/app.model --outDir ./src/generated --scaffoldStubs --watch\n`);\n}\n\nfunction runGenerate(args: CliArgs): void {\n\tconst modelPath = resolve(args.model);\n\tconst outDir = resolve(args.outDir);\n\n\tif (!existsSync(modelPath)) {\n\t\tconsole.error(`Error: Model file not found: ${modelPath}`);\n\t\tprocess.exit(1);\n\t}\n\n\tconsole.log(`Reading model: ${modelPath}`);\n\tconst xmlContent = readFileSync(modelPath, \"utf-8\");\n\n\tconsole.log(\"Extracting model data...\");\n\tconst model = extractModel(xmlContent);\n\tconsole.log(\n\t\t`Found ${model.applications.length} application(s), ${model.pages.length} page(s), ${model.components.length} custom component(s)`\n\t);\n\n\tconsole.log(\"Generating TypeScript files...\");\n\tconst result = generate({\n\t\tmodel,\n\t\tscaffoldStubs: args.scaffoldStubs,\n\t\tapplicationFilter: args.app,\n\t});\n\n\t// Write files\n\tlet written = 0;\n\tfor (const [filePath, content] of result.files) {\n\t\tconst fullPath = join(outDir, filePath);\n\t\tconst dir = dirname(fullPath);\n\t\tif (!existsSync(dir)) {\n\t\t\tmkdirSync(dir, { recursive: true });\n\t\t}\n\t\twriteFileSync(fullPath, content, \"utf-8\");\n\t\twritten++;\n\t}\n\n\tconsole.log(`Generated ${written} files in ${relative(process.cwd(), outDir)}/`);\n\n\tif (args.watch) {\n\t\tconsole.log(`\\nWatching ${relative(process.cwd(), modelPath)} for changes...`);\n\t\twatchFile(modelPath, { interval: 500 }, () => {\n\t\t\tconsole.log(\"\\nModel changed, regenerating...\");\n\t\t\ttry {\n\t\t\t\trunGenerate({ ...args, watch: false });\n\t\t\t\tconsole.log(\"Watching for changes...\");\n\t\t\t} catch (err) {\n\t\t\t\tconsole.error(\"Generation error:\", err);\n\t\t\t}\n\t\t});\n\n\t\t// Handle cleanup\n\t\tprocess.on(\"SIGINT\", () => {\n\t\t\tunwatchFile(modelPath);\n\t\t\tprocess.exit(0);\n\t\t});\n\t}\n}\n\n// Main\nconst args = parseArgs(process.argv);\n\nif (!args.command || args.command === \"help\" || args.command === \"--help\") {\n\tprintUsage();\n\tprocess.exit(0);\n}\n\nif (args.command === \"generate\") {\n\tif (!args.model) {\n\t\tconsole.error(\"Error: --model is required\");\n\t\tprintUsage();\n\t\tprocess.exit(1);\n\t}\n\tif (!args.outDir) {\n\t\tconsole.error(\"Error: --outDir is required\");\n\t\tprintUsage();\n\t\tprocess.exit(1);\n\t}\n\n\ttry {\n\t\trunGenerate(args);\n\t} catch (err) {\n\t\tconsole.error(\"Generation failed:\", err);\n\t\tprocess.exit(1);\n\t}\n} else {\n\tconsole.error(`Unknown command: ${args.command}`);\n\tprintUsage();\n\tprocess.exit(1);\n}\n"],"mappings":";;;;AAuBA,SAAS,UAAU,GAAyB;CAC3C,IAAMA,IAAgB;EACrB,SAAS;EACT,OAAO;EACP,QAAQ;EACR,eAAe;EACf,OAAO;EACP,EAEG,IAAI;AAMR,MALI,EAAK,MAAM,CAAC,EAAK,GAAG,WAAW,IAAI,KACtC,EAAK,UAAU,EAAK,IACpB,MAGM,IAAI,EAAK,QAAQ,IACvB,SAAQ,EAAK,IAAb;EACC,KAAK;AACJ,KAAK,QAAQ,EAAK,EAAE,MAAM;AAC1B;EACD,KAAK;AACJ,KAAK,SAAS,EAAK,EAAE,MAAM;AAC3B;EACD,KAAK;AACJ,KAAK,gBAAgB;AACrB;EACD,KAAK;AACJ,KAAK,QAAQ;AACb;EACD,KAAK;AACJ,KAAK,MAAM,EAAK,EAAE,MAAM,KAAA;AACxB;EACD;AACC,GAAK,EAAK,GAAG,WAAW,IAAI,KAG1B,EAAK,YAAU,EAAK;AAGtB;;AAIH,QAAO;;AAGR,SAAS,aAAmB;AAC3B,SAAQ,IAAI,uxBAmBX;;AAGF,SAAS,YAAY,GAAqB;CACzC,IAAM,IAAY,QAAQ,EAAK,MAAM,EAC/B,IAAS,QAAQ,EAAK,OAAO;AAOnC,CALK,WAAW,EAAU,KACzB,QAAQ,MAAM,gCAAgC,IAAY,EAC1D,QAAQ,KAAK,EAAE,GAGhB,QAAQ,IAAI,kBAAkB,IAAY;CAC1C,IAAM,IAAa,aAAa,GAAW,QAAQ;AAEnD,SAAQ,IAAI,2BAA2B;CACvC,IAAM,IAAQ,aAAa,EAAW;AAKtC,CAJA,QAAQ,IACP,SAAS,EAAM,aAAa,OAAO,mBAAmB,EAAM,MAAM,OAAO,YAAY,EAAM,WAAW,OAAO,sBAC7G,EAED,QAAQ,IAAI,iCAAiC;CAC7C,IAAM,IAAS,SAAS;EACvB;EACA,eAAe,EAAK;EACpB,mBAAmB,EAAK;EACxB,CAAC,EAGE,IAAU;AACd,MAAK,IAAM,CAAC,GAAU,MAAY,EAAO,OAAO;EAC/C,IAAM,IAAW,KAAK,GAAQ,EAAS,EACjC,IAAM,QAAQ,EAAS;AAK7B,EAJK,WAAW,EAAI,IACnB,UAAU,GAAK,EAAE,WAAW,IAAM,CAAC,EAEpC,cAAc,GAAU,GAAS,QAAQ,EACzC;;AAKD,CAFA,QAAQ,IAAI,aAAa,EAAQ,YAAY,SAAS,QAAQ,KAAK,EAAE,EAAO,CAAC,GAAG,EAE5E,EAAK,UACR,QAAQ,IAAI,cAAc,SAAS,QAAQ,KAAK,EAAE,EAAU,CAAC,iBAAiB,EAC9E,UAAU,GAAW,EAAE,UAAU,KAAK,QAAQ;AAC7C,UAAQ,IAAI,mCAAmC;AAC/C,MAAI;AAEH,GADA,YAAY;IAAE,GAAG;IAAM,OAAO;IAAO,CAAC,EACtC,QAAQ,IAAI,0BAA0B;WAC9B,GAAK;AACb,WAAQ,MAAM,qBAAqB,EAAI;;GAEvC,EAGF,QAAQ,GAAG,gBAAgB;AAE1B,EADA,YAAY,EAAU,EACtB,QAAQ,KAAK,EAAE;GACd;;AAKJ,IAAM,OAAO,UAAU,QAAQ,KAAK;AAOpC,KALI,CAAC,KAAK,WAAW,KAAK,YAAY,UAAU,KAAK,YAAY,cAChE,YAAY,EACZ,QAAQ,KAAK,EAAE,GAGZ,KAAK,YAAY,YAAY;AAMhC,CALK,KAAK,UACT,QAAQ,MAAM,6BAA6B,EAC3C,YAAY,EACZ,QAAQ,KAAK,EAAE,GAEX,KAAK,WACT,QAAQ,MAAM,8BAA8B,EAC5C,YAAY,EACZ,QAAQ,KAAK,EAAE;AAGhB,KAAI;AACH,cAAY,KAAK;UACT,GAAK;AAEb,EADA,QAAQ,MAAM,sBAAsB,EAAI,EACxC,QAAQ,KAAK,EAAE;;MAKhB,CAFA,QAAQ,MAAM,oBAAoB,KAAK,UAAU,EACjD,YAAY,EACZ,QAAQ,KAAK,EAAE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ExtractedModel } from './model-reader';
|
|
2
|
+
export interface GenerateOptions {
|
|
3
|
+
/** Extracted model data */
|
|
4
|
+
model: ExtractedModel;
|
|
5
|
+
/** Whether to generate stub implementations */
|
|
6
|
+
scaffoldStubs?: boolean;
|
|
7
|
+
/** Only include pages from this application (actor) name. Omit to include all. */
|
|
8
|
+
applicationFilter?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Prefix used to identify annotations that wire custom components.
|
|
11
|
+
* Annotations matching this prefix are stripped to produce the component implementation name.
|
|
12
|
+
* E.g., with prefix "use", annotation "useFancyText" → component name "FancyText".
|
|
13
|
+
* @default "use"
|
|
14
|
+
*/
|
|
15
|
+
customComponentAnnotationPrefix?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GenerateResult {
|
|
18
|
+
/** Map of relative file path → file content */
|
|
19
|
+
files: Map<string, string>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Generate TypeScript source files from an extracted model.
|
|
23
|
+
*/
|
|
24
|
+
export declare function generate(options: GenerateOptions): GenerateResult;
|
|
25
|
+
//# sourceMappingURL=generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAKX,cAAc,EAGd,MAAM,gBAAgB,CAAC;AAuIxB,MAAM,WAAW,eAAe;IAC/B,2BAA2B;IAC3B,KAAK,EAAE,cAAc,CAAC;IACtB,+CAA+C;IAC/C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;CACzC;AAED,MAAM,WAAW,cAAc;IAC9B,+CAA+C;IAC/C,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3B;AA0CD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,cAAc,CAqFjE"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @judo/codegen — Code generator for JUDO UI Runtime extensibility.
|
|
3
|
+
*
|
|
4
|
+
* Reads .model XML files and produces type-safe TypeScript interfaces,
|
|
5
|
+
* source ID constants, and registration helpers for the extensibility API.
|
|
6
|
+
*
|
|
7
|
+
* @module @judo/codegen
|
|
8
|
+
*/
|
|
9
|
+
export { generate } from './generator';
|
|
10
|
+
export type { GenerateOptions, GenerateResult } from './generator';
|
|
11
|
+
export { extractModel } from './model-reader';
|
|
12
|
+
export type { ExtractedModel, ExtractedPage, ExtractedAction, ExtractedComponent, ExtractedElement, ExtractedDataType, ExtractedTransferAttribute, ExtractedTransferRelation, ExtractedTransferType, } from './model-reader';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACX,cAAc,EACd,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,GACrB,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
ADDED