@bravostudioai/react 0.1.35 → 0.1.36
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/dist/codegen/generator.js +243 -234
- package/dist/codegen/generator.js.map +1 -1
- package/dist/codegen/parser.js +150 -149
- package/dist/codegen/parser.js.map +1 -1
- package/dist/components/EncoreApp.js +61 -58
- package/dist/components/EncoreApp.js.map +1 -1
- package/dist/components.js +512 -449
- package/dist/components.js.map +1 -1
- package/dist/contexts/EncoreBindingContext.js +9 -3
- package/dist/contexts/EncoreBindingContext.js.map +1 -1
- package/dist/src/codegen/generator.d.ts.map +1 -1
- package/dist/src/codegen/parser.d.ts.map +1 -1
- package/dist/src/components/EncoreApp.d.ts +3 -1
- package/dist/src/components/EncoreApp.d.ts.map +1 -1
- package/dist/src/components.d.ts.map +1 -1
- package/dist/src/contexts/EncoreBindingContext.d.ts +14 -2
- package/dist/src/contexts/EncoreBindingContext.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/codegen/generator.ts +24 -2
- package/src/codegen/parser.ts +29 -4
- package/src/components/EncoreApp.tsx +6 -1
- package/src/components.tsx +131 -4
- package/src/contexts/EncoreBindingContext.ts +20 -3
- package/src/version.ts +1 -1
package/dist/codegen/parser.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
import { qualifyPropNames as E } from "./propQualification.js";
|
|
2
2
|
function g(i) {
|
|
3
|
-
const
|
|
4
|
-
return
|
|
3
|
+
const o = i.replace(/[^a-zA-Z0-9\s]/g, "").trim();
|
|
4
|
+
return o ? o.split(/\s+/).map((s, y) => {
|
|
5
5
|
if (!s) return "";
|
|
6
|
-
const t = s === s.toUpperCase() && s.length > 1 ? s.toLowerCase() : s,
|
|
7
|
-
return y === 0 ?
|
|
6
|
+
const t = s === s.toUpperCase() && s.length > 1 ? s.toLowerCase() : s, e = t.charAt(0), r = t.slice(1);
|
|
7
|
+
return y === 0 ? e.toLowerCase() + r : e.toUpperCase() + r;
|
|
8
8
|
}).join("").replace(/^[0-9]/, "_$&") : "item";
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function d(i, o) {
|
|
11
11
|
const s = g(i);
|
|
12
|
-
if (
|
|
12
|
+
if (o.length === 0)
|
|
13
13
|
return s;
|
|
14
|
-
const y =
|
|
14
|
+
const y = o.filter((r) => r && r.trim()).reverse();
|
|
15
15
|
return y.length === 0 ? s : y.map(
|
|
16
16
|
(r) => g(r)
|
|
17
17
|
).map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join("") + s;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
if (
|
|
19
|
+
function F(i, o) {
|
|
20
|
+
if (o.length === 0)
|
|
21
21
|
return [];
|
|
22
22
|
let s = 0;
|
|
23
23
|
const y = Math.min(
|
|
24
24
|
i.length,
|
|
25
|
-
...
|
|
25
|
+
...o.map((e) => e.length)
|
|
26
26
|
);
|
|
27
|
-
for (let
|
|
28
|
-
const r = i[
|
|
29
|
-
if (
|
|
27
|
+
for (let e = 0; e < y; e++) {
|
|
28
|
+
const r = i[e];
|
|
29
|
+
if (o.every((f) => f[e] === r))
|
|
30
30
|
s++;
|
|
31
31
|
else
|
|
32
32
|
break;
|
|
33
33
|
}
|
|
34
34
|
const t = i.slice(s);
|
|
35
|
-
for (let
|
|
36
|
-
const r = t.slice(0,
|
|
37
|
-
if (
|
|
38
|
-
if (f.length < s +
|
|
35
|
+
for (let e = 1; e <= t.length; e++) {
|
|
36
|
+
const r = t.slice(0, e);
|
|
37
|
+
if (o.every((f) => {
|
|
38
|
+
if (f.length < s + e)
|
|
39
39
|
return !0;
|
|
40
40
|
const a = f.slice(
|
|
41
41
|
s,
|
|
42
|
-
s +
|
|
42
|
+
s + e
|
|
43
43
|
);
|
|
44
|
-
return !
|
|
44
|
+
return !v(r, a);
|
|
45
45
|
}))
|
|
46
46
|
return r;
|
|
47
47
|
}
|
|
48
48
|
return t;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return i.length !==
|
|
50
|
+
function v(i, o) {
|
|
51
|
+
return i.length !== o.length ? !1 : i.every((s, y) => s === o[y]);
|
|
52
52
|
}
|
|
53
|
-
function P(i,
|
|
54
|
-
return i === "component:image" || i === "component:text" || i?.startsWith("component:input-") ? "string" : "any";
|
|
53
|
+
function P(i, o) {
|
|
54
|
+
return i === "component:image" || i === "component:text" || i?.startsWith("component:input-") || i === "component:webview" || i === "component:video" || i === "component:video" ? "string" : i === "component:embed" ? "React.ReactNode" : "any";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return i === "component:image" ? "imageUrl" : i === "component:text" ? "text" : "value";
|
|
56
|
+
function S(i) {
|
|
57
|
+
return i === "component:image" ? "imageUrl" : i === "component:text" ? "text" : i === "component:webview" ? "url" : i === "component:video" ? "videoUrl" : "value";
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
const
|
|
61
|
-
function s(t,
|
|
59
|
+
function j(i) {
|
|
60
|
+
const o = [];
|
|
61
|
+
function s(t, e = []) {
|
|
62
62
|
if (!(!t || typeof t != "object")) {
|
|
63
63
|
if (t.type === "container:slider") {
|
|
64
64
|
const r = {
|
|
@@ -79,60 +79,60 @@ function x(i) {
|
|
|
79
79
|
if (t.containers && Array.isArray(t.containers) && t.containers.forEach(f), !p && t.components && Array.isArray(t.components) && t.components.forEach(f), p) {
|
|
80
80
|
const a = p;
|
|
81
81
|
let u = [];
|
|
82
|
-
const
|
|
83
|
-
if (!
|
|
84
|
-
if (
|
|
85
|
-
const
|
|
82
|
+
const c = [], h = (n, b = []) => {
|
|
83
|
+
if (!n || typeof n != "object") return;
|
|
84
|
+
if (n.type === "component:image" && c.push(n), Array.isArray(n.tags) && (n.tags.includes("encore:data") || n.tags.includes("bravo:data"))) {
|
|
85
|
+
const l = g(n.name || "item"), C = P(n.type, n.name);
|
|
86
86
|
u.push({
|
|
87
|
-
id:
|
|
88
|
-
name:
|
|
89
|
-
type:
|
|
90
|
-
tags:
|
|
91
|
-
propName:
|
|
87
|
+
id: n.id,
|
|
88
|
+
name: n.name || "Unnamed",
|
|
89
|
+
type: n.type,
|
|
90
|
+
tags: n.tags || [],
|
|
91
|
+
propName: l,
|
|
92
92
|
// Will be qualified later if needed
|
|
93
93
|
propType: C,
|
|
94
94
|
// Store parent path for later qualification
|
|
95
95
|
_parentPath: [...b]
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
100
|
-
const
|
|
101
|
-
|
|
98
|
+
const A = [...b];
|
|
99
|
+
if (n.name && (n.type?.startsWith("container:") || n.type?.startsWith("component:"))) {
|
|
100
|
+
const l = n.name.trim(), C = /^frame\s*\d*$/i.test(l) || l.toUpperCase() === "FRAME";
|
|
101
|
+
l && !C && A.push(n.name);
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
(
|
|
105
|
-
),
|
|
106
|
-
(
|
|
107
|
-
),
|
|
108
|
-
(
|
|
103
|
+
n.body && Array.isArray(n.body) && n.body.forEach(
|
|
104
|
+
(l) => h(l, A)
|
|
105
|
+
), n.containers && Array.isArray(n.containers) && n.containers.forEach(
|
|
106
|
+
(l) => h(l, A)
|
|
107
|
+
), n.components && Array.isArray(n.components) && n.components.forEach(
|
|
108
|
+
(l) => h(l, A)
|
|
109
109
|
);
|
|
110
110
|
};
|
|
111
111
|
if (a.components && Array.isArray(a.components) && a.components.forEach(
|
|
112
|
-
(
|
|
112
|
+
(n) => h(n, [])
|
|
113
113
|
), !u.some(
|
|
114
|
-
(
|
|
115
|
-
) &&
|
|
116
|
-
const
|
|
114
|
+
(n) => n.type === "component:image"
|
|
115
|
+
) && c.length > 0) {
|
|
116
|
+
const n = c[0], A = (n.name || "image").toLowerCase().includes("image") ? "imageUrl" : g(n.name || "image");
|
|
117
117
|
u.push({
|
|
118
|
-
id:
|
|
119
|
-
name:
|
|
120
|
-
type:
|
|
121
|
-
tags:
|
|
122
|
-
propName:
|
|
118
|
+
id: n.id,
|
|
119
|
+
name: n.name || "Image",
|
|
120
|
+
type: n.type,
|
|
121
|
+
tags: n.tags || [],
|
|
122
|
+
propName: A,
|
|
123
123
|
// Will be qualified later if needed
|
|
124
124
|
propType: "string",
|
|
125
125
|
// imageUrl is always string
|
|
126
126
|
_parentPath: []
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
if (E(u),
|
|
130
|
-
const b = (
|
|
131
|
-
u = u.filter((
|
|
132
|
-
if (
|
|
133
|
-
if (
|
|
134
|
-
const
|
|
135
|
-
if (b.includes(
|
|
129
|
+
if (E(u), c.length > 0) {
|
|
130
|
+
const b = (c[0].name || "").toLowerCase();
|
|
131
|
+
u = u.filter((A) => {
|
|
132
|
+
if (A.type === "component:image") return !0;
|
|
133
|
+
if (A.type === "component:color") {
|
|
134
|
+
const l = (A.name || "").toLowerCase();
|
|
135
|
+
if (b.includes(l) || l.includes("image"))
|
|
136
136
|
return !1;
|
|
137
137
|
}
|
|
138
138
|
return !0;
|
|
@@ -145,73 +145,74 @@ function x(i) {
|
|
|
145
145
|
components: u
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
|
|
148
|
+
o.push(r);
|
|
149
149
|
}
|
|
150
|
-
t.body && Array.isArray(t.body) && t.body.forEach((r) => s(r, [...
|
|
151
|
-
(r) => s(r, [...
|
|
150
|
+
t.body && Array.isArray(t.body) && t.body.forEach((r) => s(r, [...e, "body"])), t.containers && Array.isArray(t.containers) && t.containers.forEach(
|
|
151
|
+
(r) => s(r, [...e, "containers"])
|
|
152
152
|
), t.components && Array.isArray(t.components) && t.components.forEach(
|
|
153
|
-
(r) => s(r, [...
|
|
153
|
+
(r) => s(r, [...e, "components"])
|
|
154
154
|
);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
const y = i.data?.body || i.body || i.data?.body || [];
|
|
158
|
-
return Array.isArray(y) && y.length > 0 && y.forEach((t) => s(t)),
|
|
158
|
+
return Array.isArray(y) && y.length > 0 && y.forEach((t) => s(t)), o;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
const
|
|
160
|
+
function x(i) {
|
|
161
|
+
const o = [], s = /* @__PURE__ */ new Set();
|
|
162
162
|
function y(r) {
|
|
163
163
|
!r || typeof r != "object" || (r.type === "container:slider" && s.add(r.id), r.body && Array.isArray(r.body) && r.body.forEach(y), r.containers && Array.isArray(r.containers) && r.containers.forEach(y));
|
|
164
164
|
}
|
|
165
165
|
function t(r, p, f = []) {
|
|
166
166
|
if (!r || typeof r != "object" || p && s.has(p)) return;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
const a = Array.isArray(r.tags) && (r.tags.includes("encore:data") || r.tags.includes("bravo:data"));
|
|
168
|
+
if (r.type === "component:embed" || a && (r.type === "component:text" || r.type === "component:image" || r.type === "component:webview" || r.type === "component:video")) {
|
|
169
|
+
const h = g(r.name || "item"), m = P(r.type, r.name);
|
|
170
|
+
o.push({
|
|
170
171
|
id: r.id,
|
|
171
172
|
name: r.name || "Unnamed",
|
|
172
173
|
type: r.type,
|
|
173
174
|
tags: r.tags || [],
|
|
174
|
-
propName:
|
|
175
|
+
propName: h,
|
|
175
176
|
// Will be qualified later if needed
|
|
176
|
-
propType:
|
|
177
|
+
propType: m,
|
|
177
178
|
// Store parent path for later qualification
|
|
178
179
|
_parentPath: [...f]
|
|
179
180
|
});
|
|
180
181
|
}
|
|
181
|
-
const
|
|
182
|
+
const u = [...f];
|
|
182
183
|
if (r.name && (r.type?.startsWith("container:") || r.type?.startsWith("component:"))) {
|
|
183
|
-
const
|
|
184
|
-
|
|
184
|
+
const h = r.name.trim(), m = /^frame\s*\d*$/i.test(h) || h.toUpperCase() === "FRAME";
|
|
185
|
+
h && !m && u.push(r.name);
|
|
185
186
|
}
|
|
186
|
-
const
|
|
187
|
+
const c = r.id;
|
|
187
188
|
r.body && Array.isArray(r.body) && r.body.forEach(
|
|
188
|
-
(
|
|
189
|
+
(h) => t(h, c, u)
|
|
189
190
|
), r.containers && Array.isArray(r.containers) && r.containers.forEach(
|
|
190
|
-
(
|
|
191
|
+
(h) => t(h, c, u)
|
|
191
192
|
), r.components && Array.isArray(r.components) && r.components.forEach(
|
|
192
|
-
(
|
|
193
|
+
(h) => t(h, c, u)
|
|
193
194
|
);
|
|
194
195
|
}
|
|
195
|
-
const
|
|
196
|
-
return Array.isArray(
|
|
196
|
+
const e = i.data?.body || i.body || i.data?.body || [];
|
|
197
|
+
return Array.isArray(e) && e.length > 0 && (e.forEach(y), e.forEach((r) => t(r))), E(o), o;
|
|
197
198
|
}
|
|
198
|
-
function
|
|
199
|
-
const
|
|
199
|
+
function w(i) {
|
|
200
|
+
const o = /* @__PURE__ */ new Map();
|
|
200
201
|
function s(t) {
|
|
201
202
|
if (!(!t || typeof t != "object")) {
|
|
202
203
|
if (t.type === "component:input-stateful-set" && Array.isArray(t.tags)) {
|
|
203
|
-
const
|
|
204
|
+
const e = t.tags.find(
|
|
204
205
|
(r) => r.startsWith("input-group:")
|
|
205
206
|
);
|
|
206
|
-
if (
|
|
207
|
-
const r =
|
|
207
|
+
if (e) {
|
|
208
|
+
const r = e.split(":");
|
|
208
209
|
if (r.length >= 3) {
|
|
209
210
|
const p = r[1], f = r[2];
|
|
210
|
-
|
|
211
|
+
o.has(f) || o.set(f, {
|
|
211
212
|
groupName: f,
|
|
212
213
|
groupType: p,
|
|
213
214
|
elements: []
|
|
214
|
-
}),
|
|
215
|
+
}), o.get(f).elements.push({
|
|
215
216
|
id: t.id,
|
|
216
217
|
name: t.name || "Unnamed"
|
|
217
218
|
});
|
|
@@ -222,72 +223,72 @@ function d(i) {
|
|
|
222
223
|
}
|
|
223
224
|
}
|
|
224
225
|
const y = i.data?.body || i.body || i.data?.body || [];
|
|
225
|
-
return Array.isArray(y) && y.length > 0 && y.forEach((t) => s(t)), Array.from(
|
|
226
|
+
return Array.isArray(y) && y.length > 0 && y.forEach((t) => s(t)), Array.from(o.values());
|
|
226
227
|
}
|
|
227
|
-
function
|
|
228
|
-
const
|
|
229
|
-
function s(t,
|
|
228
|
+
function N(i) {
|
|
229
|
+
const o = [];
|
|
230
|
+
function s(t, e) {
|
|
230
231
|
if (!t || typeof t != "object") return;
|
|
231
232
|
const r = t.type?.startsWith("container:") || t.type === "container:default", p = t.name?.toLowerCase().includes("form") || Array.isArray(t.tags) && t.tags.includes("form");
|
|
232
233
|
let f = !1, a;
|
|
233
|
-
function u(
|
|
234
|
-
if (!(!
|
|
235
|
-
if (Array.isArray(
|
|
236
|
-
f = !0, a =
|
|
234
|
+
function u(c) {
|
|
235
|
+
if (!(!c || typeof c != "object")) {
|
|
236
|
+
if (Array.isArray(c.tags) && (c.tags.includes("action:submit") || c.tags.includes("submit"))) {
|
|
237
|
+
f = !0, a = c.id;
|
|
237
238
|
return;
|
|
238
239
|
}
|
|
239
|
-
if (
|
|
240
|
-
f = !0, a =
|
|
240
|
+
if (c.actions?.tap?.action === "submit") {
|
|
241
|
+
f = !0, a = c.id;
|
|
241
242
|
return;
|
|
242
243
|
}
|
|
243
|
-
|
|
244
|
+
c.components && Array.isArray(c.components) && c.components.forEach(u), c.body && Array.isArray(c.body) && c.body.forEach(u);
|
|
244
245
|
}
|
|
245
246
|
}
|
|
246
|
-
if (r && (p ||
|
|
247
|
-
const
|
|
247
|
+
if (r && (p || e === void 0) && u(t), r && (f || p)) {
|
|
248
|
+
const c = [], h = (m, n = []) => {
|
|
248
249
|
if (!m || typeof m != "object") return;
|
|
249
250
|
if (m.type?.startsWith("component:input-") || m.type === "component:input-text" || m.type === "component:input-image" || m.type === "component:input-email" || m.type === "component:input-password" || m.type === "component:input-select") {
|
|
250
|
-
const
|
|
251
|
-
|
|
251
|
+
const A = g(m.name || "Unnamed input");
|
|
252
|
+
c.push({
|
|
252
253
|
id: m.id,
|
|
253
254
|
name: m.name || "Unnamed input",
|
|
254
255
|
type: m.type,
|
|
255
|
-
propName:
|
|
256
|
+
propName: A,
|
|
256
257
|
// Will be qualified later if needed
|
|
257
|
-
_parentPath: [...
|
|
258
|
+
_parentPath: [...n]
|
|
258
259
|
// Store parent path for qualification
|
|
259
260
|
});
|
|
260
261
|
}
|
|
261
|
-
const b = [...
|
|
262
|
+
const b = [...n];
|
|
262
263
|
if (m.name && (m.type?.startsWith("container:") || m.type?.startsWith("component:"))) {
|
|
263
|
-
const
|
|
264
|
-
|
|
264
|
+
const A = m.name.trim(), l = /^frame\s*\d*$/i.test(A) || A.toUpperCase() === "FRAME";
|
|
265
|
+
A && !l && b.push(m.name);
|
|
265
266
|
}
|
|
266
267
|
m.components && Array.isArray(m.components) && m.components.forEach(
|
|
267
|
-
(
|
|
268
|
-
), m.body && Array.isArray(m.body) && m.body.forEach((
|
|
268
|
+
(A) => h(A, b)
|
|
269
|
+
), m.body && Array.isArray(m.body) && m.body.forEach((A) => h(A, b));
|
|
269
270
|
};
|
|
270
|
-
|
|
271
|
+
h(t, []), c.length > 0 && o.push({
|
|
271
272
|
formId: t.id,
|
|
272
273
|
formName: t.name || "Form",
|
|
273
274
|
submitButtonId: a,
|
|
274
|
-
inputs:
|
|
275
|
+
inputs: c
|
|
275
276
|
});
|
|
276
277
|
}
|
|
277
278
|
t.body && Array.isArray(t.body) && t.body.forEach(
|
|
278
|
-
(
|
|
279
|
+
(c) => s(c, r ? t : e)
|
|
279
280
|
), t.containers && Array.isArray(t.containers) && t.containers.forEach(
|
|
280
|
-
(
|
|
281
|
+
(c) => s(c, r ? t : e)
|
|
281
282
|
), t.components && Array.isArray(t.components) && t.components.forEach(
|
|
282
|
-
(
|
|
283
|
+
(c) => s(c, r ? t : e)
|
|
283
284
|
);
|
|
284
285
|
}
|
|
285
286
|
const y = i.data?.body || i.body || i.data?.body || [];
|
|
286
|
-
return Array.isArray(y) && y.length > 0 && y.forEach((t) => s(t)),
|
|
287
|
+
return Array.isArray(y) && y.length > 0 && y.forEach((t) => s(t)), o;
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
+
function M(i, o) {
|
|
289
290
|
const s = [], y = /* @__PURE__ */ new Set();
|
|
290
|
-
|
|
291
|
+
o.forEach((r) => {
|
|
291
292
|
r.inputs.forEach((p) => {
|
|
292
293
|
y.add(p.id);
|
|
293
294
|
});
|
|
@@ -314,36 +315,36 @@ function L(i, c) {
|
|
|
314
315
|
(a) => t(a, f)
|
|
315
316
|
);
|
|
316
317
|
}
|
|
317
|
-
const
|
|
318
|
-
return Array.isArray(
|
|
318
|
+
const e = i.data?.body || i.body || i.data?.body || [];
|
|
319
|
+
return Array.isArray(e) && e.length > 0 && e.forEach((r) => t(r)), W(s), s;
|
|
319
320
|
}
|
|
320
|
-
function
|
|
321
|
+
function W(i) {
|
|
321
322
|
E(i);
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
-
const
|
|
325
|
-
function s(t,
|
|
324
|
+
function L(i) {
|
|
325
|
+
const o = [];
|
|
326
|
+
function s(t, e = []) {
|
|
326
327
|
if (!t || typeof t != "object") return;
|
|
327
328
|
const r = Array.isArray(t.tags) && t.tags.some((a) => a.startsWith("action:")), p = t.actions && typeof t.actions == "object";
|
|
328
329
|
if (r || p) {
|
|
329
330
|
let a = "tap";
|
|
330
331
|
if (Array.isArray(t.tags)) {
|
|
331
|
-
const
|
|
332
|
-
(
|
|
332
|
+
const c = t.tags.find(
|
|
333
|
+
(h) => h.startsWith("action:")
|
|
333
334
|
);
|
|
334
|
-
|
|
335
|
+
c && (a = c.replace("action:", ""));
|
|
335
336
|
}
|
|
336
337
|
t.actions?.tap?.action && (a = t.actions.tap.action);
|
|
337
338
|
const u = g(t.name || "button");
|
|
338
|
-
|
|
339
|
+
o.push({
|
|
339
340
|
id: t.id,
|
|
340
341
|
name: t.name || "Button",
|
|
341
342
|
propName: u,
|
|
342
343
|
actionType: a,
|
|
343
|
-
_parentPath: [...
|
|
344
|
+
_parentPath: [...e]
|
|
344
345
|
});
|
|
345
346
|
}
|
|
346
|
-
const f = [...
|
|
347
|
+
const f = [...e];
|
|
347
348
|
if (t.name && (t.type?.startsWith("container:") || t.type?.startsWith("component:"))) {
|
|
348
349
|
const a = t.name.trim(), u = /^frame\s*\d*$/i.test(a) || a.toUpperCase() === "FRAME";
|
|
349
350
|
a && !u && f.push(t.name);
|
|
@@ -355,29 +356,29 @@ function _(i) {
|
|
|
355
356
|
);
|
|
356
357
|
}
|
|
357
358
|
const y = i.data?.body || i.body || i.data?.body || [];
|
|
358
|
-
return Array.isArray(y) && y.length > 0 && y.forEach((t) => s(t)),
|
|
359
|
+
return Array.isArray(y) && y.length > 0 && y.forEach((t) => s(t)), I(o), o;
|
|
359
360
|
}
|
|
360
|
-
function
|
|
361
|
+
function I(i) {
|
|
361
362
|
E(i);
|
|
362
363
|
}
|
|
363
|
-
function
|
|
364
|
-
i.forEach((
|
|
365
|
-
E(
|
|
364
|
+
function _(i) {
|
|
365
|
+
i.forEach((o) => {
|
|
366
|
+
E(o.inputs);
|
|
366
367
|
});
|
|
367
368
|
}
|
|
368
369
|
export {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
370
|
+
v as arraysEqual,
|
|
371
|
+
L as findActionButtons,
|
|
372
|
+
N as findForms,
|
|
373
|
+
w as findInputGroups,
|
|
374
|
+
F as findMinimalDistinguishingPath,
|
|
375
|
+
j as findSlidersAndDataBindings,
|
|
376
|
+
x as findStandaloneComponents,
|
|
377
|
+
M as findStandaloneSelectInputs,
|
|
378
|
+
d as generateQualifiedPropName,
|
|
379
|
+
S as getComponentPropName,
|
|
379
380
|
P as getComponentPropType,
|
|
380
|
-
|
|
381
|
+
_ as qualifyFormInputs,
|
|
381
382
|
g as sanitizePropName
|
|
382
383
|
};
|
|
383
384
|
//# sourceMappingURL=parser.js.map
|