@bravostudioai/react 0.1.35 → 0.1.38
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 +245 -236
- package/dist/codegen/generator.js.map +1 -1
- package/dist/codegen/parser.js +148 -134
- 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 +621 -558
- 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/dist/src/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/src/codegen/generator.ts +30 -2
- package/src/codegen/parser.ts +58 -4
- package/src/components/EncoreApp.tsx +6 -1
- package/src/components.tsx +161 -19
- 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 W(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 I(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 !P(r, a);
|
|
45
45
|
}))
|
|
46
46
|
return r;
|
|
47
47
|
}
|
|
48
48
|
return t;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return i.length !==
|
|
50
|
+
function P(i, o) {
|
|
51
|
+
return i.length !== o.length ? !1 : i.every((s, y) => s === o[y]);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return i === "component:image" || i === "component:text" || i?.startsWith("component:input-") ? "string" : "any";
|
|
53
|
+
function C(i, o) {
|
|
54
|
+
return i === "component:image" || i === "component:text" || i?.startsWith("component:input-") || i === "component:webview" || i === "component:web-view" || 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" || i === "component:web-view" ? "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,46 +79,46 @@ 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 A = g(
|
|
82
|
+
const c = [], l = (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 A = g(n.name || "item"), v = C(n.type, n.name);
|
|
86
86
|
u.push({
|
|
87
|
-
id:
|
|
88
|
-
name:
|
|
89
|
-
type:
|
|
90
|
-
tags:
|
|
87
|
+
id: n.id,
|
|
88
|
+
name: n.name || "Unnamed",
|
|
89
|
+
type: n.type,
|
|
90
|
+
tags: n.tags || [],
|
|
91
91
|
propName: A,
|
|
92
92
|
// Will be qualified later if needed
|
|
93
|
-
propType:
|
|
93
|
+
propType: v,
|
|
94
94
|
// Store parent path for later qualification
|
|
95
95
|
_parentPath: [...b]
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
const h = [...b];
|
|
99
|
-
if (
|
|
100
|
-
const A =
|
|
101
|
-
A && !
|
|
99
|
+
if (n.name && (n.type?.startsWith("container:") || n.type?.startsWith("component:"))) {
|
|
100
|
+
const A = n.name.trim(), v = /^frame\s*\d*$/i.test(A) || A.toUpperCase() === "FRAME";
|
|
101
|
+
A && !v && h.push(n.name);
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
n.body && Array.isArray(n.body) && n.body.forEach(
|
|
104
104
|
(A) => l(A, h)
|
|
105
|
-
),
|
|
105
|
+
), n.containers && Array.isArray(n.containers) && n.containers.forEach(
|
|
106
106
|
(A) => l(A, h)
|
|
107
|
-
),
|
|
107
|
+
), n.components && Array.isArray(n.components) && n.components.forEach(
|
|
108
108
|
(A) => l(A, h)
|
|
109
109
|
);
|
|
110
110
|
};
|
|
111
111
|
if (a.components && Array.isArray(a.components) && a.components.forEach(
|
|
112
|
-
(
|
|
112
|
+
(n) => l(n, [])
|
|
113
113
|
), !u.some(
|
|
114
|
-
(
|
|
115
|
-
) &&
|
|
116
|
-
const
|
|
114
|
+
(n) => n.type === "component:image"
|
|
115
|
+
) && c.length > 0) {
|
|
116
|
+
const n = c[0], h = (n.name || "image").toLowerCase().includes("image") ? "imageUrl" : g(n.name || "image");
|
|
117
117
|
u.push({
|
|
118
|
-
id:
|
|
119
|
-
name:
|
|
120
|
-
type:
|
|
121
|
-
tags:
|
|
118
|
+
id: n.id,
|
|
119
|
+
name: n.name || "Image",
|
|
120
|
+
type: n.type,
|
|
121
|
+
tags: n.tags || [],
|
|
122
122
|
propName: h,
|
|
123
123
|
// Will be qualified later if needed
|
|
124
124
|
propType: "string",
|
|
@@ -126,8 +126,8 @@ function x(i) {
|
|
|
126
126
|
_parentPath: []
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
if (E(u),
|
|
130
|
-
const b = (
|
|
129
|
+
if (E(u), c.length > 0) {
|
|
130
|
+
const b = (c[0].name || "").toLowerCase();
|
|
131
131
|
u = u.filter((h) => {
|
|
132
132
|
if (h.type === "component:image") return !0;
|
|
133
133
|
if (h.type === "component:color") {
|
|
@@ -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" || r.type === "component:webview" || r.type === "component:web-view" || r.type === "component:video" || a && (r.type === "component:text" || r.type === "component:image")) {
|
|
169
|
+
const l = g(r.name || "item"), m = C(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: l,
|
|
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 l = r.name.trim(), m = /^frame\s*\d*$/i.test(l) || l.toUpperCase() === "FRAME";
|
|
185
|
+
l && !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
|
+
(l) => t(l, c, u)
|
|
189
190
|
), r.containers && Array.isArray(r.containers) && r.containers.forEach(
|
|
190
|
-
(
|
|
191
|
+
(l) => t(l, c, u)
|
|
191
192
|
), r.components && Array.isArray(r.components) && r.components.forEach(
|
|
192
|
-
(
|
|
193
|
+
(l) => t(l, 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 N(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,43 +223,43 @@ 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 d(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 = [], l = (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
251
|
const h = g(m.name || "Unnamed input");
|
|
251
|
-
|
|
252
|
+
c.push({
|
|
252
253
|
id: m.id,
|
|
253
254
|
name: m.name || "Unnamed input",
|
|
254
255
|
type: m.type,
|
|
255
256
|
propName: h,
|
|
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
264
|
const h = m.name.trim(), A = /^frame\s*\d*$/i.test(h) || h.toUpperCase() === "FRAME";
|
|
264
265
|
h && !A && b.push(m.name);
|
|
@@ -267,27 +268,27 @@ function M(i) {
|
|
|
267
268
|
(h) => l(h, b)
|
|
268
269
|
), m.body && Array.isArray(m.body) && m.body.forEach((h) => l(h, b));
|
|
269
270
|
};
|
|
270
|
-
l(t, []),
|
|
271
|
+
l(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,49 @@ 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)), U(s), s;
|
|
319
320
|
}
|
|
320
|
-
function
|
|
321
|
+
function U(i) {
|
|
321
322
|
E(i);
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
-
const
|
|
325
|
-
|
|
324
|
+
function G(i) {
|
|
325
|
+
const o = [];
|
|
326
|
+
console.log(
|
|
327
|
+
"[DEBUG] local encore-lib findActionButtons running via alias. Check node.actions support."
|
|
328
|
+
);
|
|
329
|
+
function s(t, e = []) {
|
|
326
330
|
if (!t || typeof t != "object") return;
|
|
331
|
+
(t.id === "01KF5PAFFVFSKY6QJZXQTC99P5" || t.tags && t.tags.some((a) => a.includes("action"))) && console.log(`[DEBUG] traverse node ${t.name} (${t.id})`, {
|
|
332
|
+
type: t.type,
|
|
333
|
+
tags: t.tags,
|
|
334
|
+
hasActions: !!t.actions,
|
|
335
|
+
actionsKeys: t.actions ? Object.keys(t.actions) : []
|
|
336
|
+
});
|
|
327
337
|
const r = Array.isArray(t.tags) && t.tags.some((a) => a.startsWith("action:")), p = t.actions && typeof t.actions == "object";
|
|
328
338
|
if (r || p) {
|
|
329
339
|
let a = "tap";
|
|
330
340
|
if (Array.isArray(t.tags)) {
|
|
331
|
-
const
|
|
341
|
+
const c = t.tags.find(
|
|
332
342
|
(l) => l.startsWith("action:")
|
|
333
343
|
);
|
|
334
|
-
|
|
344
|
+
c && (a = c.replace("action:", ""));
|
|
335
345
|
}
|
|
336
|
-
t.actions?.tap?.action && (a = t.actions.tap.action)
|
|
346
|
+
t.actions?.tap?.action && (a = t.actions.tap.action), console.log(`[DEBUG] Found action button: ${t.name} (${t.id})`, {
|
|
347
|
+
actionType: a,
|
|
348
|
+
hasActionTag: r,
|
|
349
|
+
hasActions: p
|
|
350
|
+
});
|
|
337
351
|
const u = g(t.name || "button");
|
|
338
|
-
|
|
352
|
+
o.push({
|
|
339
353
|
id: t.id,
|
|
340
354
|
name: t.name || "Button",
|
|
341
355
|
propName: u,
|
|
342
356
|
actionType: a,
|
|
343
|
-
_parentPath: [...
|
|
357
|
+
_parentPath: [...e]
|
|
344
358
|
});
|
|
345
359
|
}
|
|
346
|
-
const f = [...
|
|
360
|
+
const f = [...e];
|
|
347
361
|
if (t.name && (t.type?.startsWith("container:") || t.type?.startsWith("component:"))) {
|
|
348
362
|
const a = t.name.trim(), u = /^frame\s*\d*$/i.test(a) || a.toUpperCase() === "FRAME";
|
|
349
363
|
a && !u && f.push(t.name);
|
|
@@ -355,29 +369,29 @@ function _(i) {
|
|
|
355
369
|
);
|
|
356
370
|
}
|
|
357
371
|
const y = i.data?.body || i.body || i.data?.body || [];
|
|
358
|
-
return Array.isArray(y) && y.length > 0 && y.forEach((t) => s(t)),
|
|
372
|
+
return Array.isArray(y) && y.length > 0 && y.forEach((t) => s(t)), F(o), o;
|
|
359
373
|
}
|
|
360
|
-
function
|
|
374
|
+
function F(i) {
|
|
361
375
|
E(i);
|
|
362
376
|
}
|
|
363
|
-
function
|
|
364
|
-
i.forEach((
|
|
365
|
-
E(
|
|
377
|
+
function $(i) {
|
|
378
|
+
i.forEach((o) => {
|
|
379
|
+
E(o.inputs);
|
|
366
380
|
});
|
|
367
381
|
}
|
|
368
382
|
export {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
383
|
+
P as arraysEqual,
|
|
384
|
+
G as findActionButtons,
|
|
385
|
+
d as findForms,
|
|
386
|
+
N as findInputGroups,
|
|
387
|
+
I as findMinimalDistinguishingPath,
|
|
388
|
+
j as findSlidersAndDataBindings,
|
|
389
|
+
x as findStandaloneComponents,
|
|
390
|
+
M as findStandaloneSelectInputs,
|
|
391
|
+
W as generateQualifiedPropName,
|
|
392
|
+
S as getComponentPropName,
|
|
393
|
+
C as getComponentPropType,
|
|
394
|
+
$ as qualifyFormInputs,
|
|
381
395
|
g as sanitizePropName
|
|
382
396
|
};
|
|
383
397
|
//# sourceMappingURL=parser.js.map
|