@chaibuilder/sdk 1.2.97 → 1.2.99
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/{CodeEditor-GTSuKJEp.cjs → CodeEditor-Q8Qp8-DO.cjs} +1 -1
- package/dist/{CodeEditor-_PTE1mX9.js → CodeEditor-v7zBTMpR.js} +2 -2
- package/dist/{Topbar-JX3nxG-E.cjs → Topbar-Mh3drPuW.cjs} +1 -1
- package/dist/{Topbar-EPvh-p9w.js → Topbar-ULSrUjT1.js} +2 -2
- package/dist/{UnsplashImages-Pchz4LmI.js → UnsplashImages-LYK9w6rM.js} +2 -2
- package/dist/{UnsplashImages-KMn64LMV.cjs → UnsplashImages-pwoxxEVG.cjs} +1 -1
- package/dist/{UploadImages-9dzylU64.js → UploadImages-D5RhqXgu.js} +2 -2
- package/dist/{UploadImages-IbFQUJXm.cjs → UploadImages-YTGwaLiS.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +3 -0
- package/dist/core.js +70 -69
- package/dist/iconBase-5hdsfZ0z.cjs +1 -0
- package/dist/{iconBase-HBZkvN04.js → iconBase-RFUjwZUN.js} +77 -68
- package/dist/{index-nHmebTrD.js → index-ypVXAZEr.js} +1038 -1038
- package/dist/index-zg1mFs4g.cjs +61 -0
- package/dist/web-blocks.cjs +3 -1
- package/dist/web-blocks.js +309 -302
- package/package.json +3 -3
- package/dist/iconBase-kuD_VwQx.cjs +0 -1
- package/dist/index-XrC-UO0t.cjs +0 -61
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { get as
|
|
1
|
+
import { get as r, omit as a } from "lodash-es";
|
|
2
2
|
import { clsx as h } from "clsx";
|
|
3
3
|
import { twMerge as v } from "tailwind-merge";
|
|
4
4
|
import l from "react";
|
|
5
5
|
function D(e = 6, t = "abcdefghijklmnopqrstuvwxyzABCD") {
|
|
6
6
|
let i = "";
|
|
7
|
-
for (let
|
|
7
|
+
for (let n = e; n > 0; --n)
|
|
8
8
|
i += t[Math.floor(Math.random() * t.length)];
|
|
9
9
|
return i;
|
|
10
10
|
}
|
|
11
11
|
const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >= 768 ? "MD" : e >= 640 ? "SM" : "XS", z = (...e) => v(h(e)), O = "#styles:", L = (e) => ({
|
|
12
12
|
type: "singular",
|
|
13
13
|
default: e.default || "",
|
|
14
|
-
binding:
|
|
14
|
+
binding: r(e, "binding", !0),
|
|
15
15
|
dataType: "string",
|
|
16
16
|
schema: {
|
|
17
17
|
type: "string",
|
|
18
|
-
...a(e, ["i18n", "required"])
|
|
18
|
+
...a(e, ["i18n", "ai", "required"])
|
|
19
19
|
},
|
|
20
20
|
uiSchema: {
|
|
21
21
|
"ui:widget": "code"
|
|
@@ -23,11 +23,12 @@ const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
|
|
|
23
23
|
}), M = (e) => ({
|
|
24
24
|
type: "singular",
|
|
25
25
|
default: e.default || "",
|
|
26
|
-
hidden:
|
|
27
|
-
binding:
|
|
26
|
+
hidden: r(e, "hidden", !1),
|
|
27
|
+
binding: r(e, "binding", !0),
|
|
28
28
|
dataType: "string",
|
|
29
29
|
required: e.required || !1,
|
|
30
|
-
ai: e.ai ||
|
|
30
|
+
ai: e.ai || !1,
|
|
31
|
+
i18n: e.i18n || !1,
|
|
31
32
|
schema: {
|
|
32
33
|
type: "string",
|
|
33
34
|
...a(e, ["ai", "required"])
|
|
@@ -38,14 +39,15 @@ const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
|
|
|
38
39
|
}), B = (e) => ({
|
|
39
40
|
type: "singular",
|
|
40
41
|
default: e.default || "",
|
|
41
|
-
hidden:
|
|
42
|
-
binding:
|
|
42
|
+
hidden: r(e, "hidden", !1),
|
|
43
|
+
binding: r(e, "binding", !0),
|
|
43
44
|
dataType: "string",
|
|
44
45
|
required: e.required || !1,
|
|
45
|
-
ai: e.ai ||
|
|
46
|
+
ai: e.ai || !1,
|
|
47
|
+
i18n: e.i18n || !1,
|
|
46
48
|
schema: {
|
|
47
49
|
type: "string",
|
|
48
|
-
...a(e, ["i18n", "required", "rows"])
|
|
50
|
+
...a(e, ["i18n", "ai", "required", "rows"])
|
|
49
51
|
},
|
|
50
52
|
uiSchema: {
|
|
51
53
|
"ui:widget": "textarea",
|
|
@@ -59,12 +61,12 @@ const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
|
|
|
59
61
|
i18n: e.i18n || !1,
|
|
60
62
|
default: e.default || !1,
|
|
61
63
|
dataType: "boolean",
|
|
62
|
-
hidden:
|
|
63
|
-
binding:
|
|
64
|
-
ai: e.ai ||
|
|
64
|
+
hidden: r(e, "hidden", !1),
|
|
65
|
+
binding: r(e, "binding", !0),
|
|
66
|
+
ai: e.ai || !1,
|
|
65
67
|
schema: {
|
|
66
68
|
type: "boolean",
|
|
67
|
-
...a(e, ["i18n", "required"])
|
|
69
|
+
...a(e, ["i18n", "ai", "required"])
|
|
68
70
|
},
|
|
69
71
|
uiSchema: {
|
|
70
72
|
"ui:title": e.title || "Select Item",
|
|
@@ -73,27 +75,29 @@ const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
|
|
|
73
75
|
}), W = (e) => ({
|
|
74
76
|
type: "singular",
|
|
75
77
|
default: e.default || "",
|
|
76
|
-
hidden:
|
|
77
|
-
binding:
|
|
78
|
+
hidden: r(e, "hidden", !1),
|
|
79
|
+
binding: r(e, "binding", !0),
|
|
78
80
|
dataType: "number",
|
|
79
81
|
required: e.required || !1,
|
|
80
|
-
ai: e.ai ||
|
|
82
|
+
ai: e.ai || !1,
|
|
83
|
+
i18n: e.i18n || !1,
|
|
81
84
|
schema: {
|
|
82
85
|
type: "number",
|
|
83
|
-
...a(e, ["i18n", "required"])
|
|
86
|
+
...a(e, ["i18n", "ai", "required"])
|
|
84
87
|
},
|
|
85
88
|
uiSchema: {}
|
|
86
89
|
}), X = (e) => ({
|
|
87
90
|
type: "singular",
|
|
88
91
|
default: e.default || "",
|
|
89
|
-
hidden:
|
|
90
|
-
binding:
|
|
92
|
+
hidden: r(e, "hidden", !1),
|
|
93
|
+
binding: r(e, "binding", !0),
|
|
91
94
|
required: e.required || !1,
|
|
92
95
|
dataType: "string",
|
|
93
|
-
ai: e.ai ||
|
|
96
|
+
ai: e.ai || !1,
|
|
97
|
+
i18n: e.i18n || !1,
|
|
94
98
|
schema: {
|
|
95
99
|
type: "string",
|
|
96
|
-
...a(e, ["i18n", "required", "options", "binding"]),
|
|
100
|
+
...a(e, ["i18n", "ai", "required", "options", "binding"]),
|
|
97
101
|
oneOf: e.options.map((t) => ({ const: t.value, title: t.title }))
|
|
98
102
|
},
|
|
99
103
|
uiSchema: {
|
|
@@ -101,15 +105,15 @@ const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
|
|
|
101
105
|
}
|
|
102
106
|
}), U = (e) => ({
|
|
103
107
|
type: "singular",
|
|
104
|
-
i18n: e.i18n || !1,
|
|
105
108
|
default: e.default || "",
|
|
106
|
-
hidden:
|
|
107
|
-
binding:
|
|
109
|
+
hidden: r(e, "hidden", !1),
|
|
110
|
+
binding: r(e, "binding", !0),
|
|
108
111
|
dataType: "string",
|
|
109
|
-
ai: e.ai ||
|
|
112
|
+
ai: e.ai || !1,
|
|
113
|
+
i18n: e.i18n || !1,
|
|
110
114
|
schema: {
|
|
111
115
|
type: "string",
|
|
112
|
-
...a(e, ["i18n", "required"])
|
|
116
|
+
...a(e, ["i18n", "ai", "required"])
|
|
113
117
|
},
|
|
114
118
|
uiSchema: {
|
|
115
119
|
"ui:widget": "color"
|
|
@@ -117,12 +121,13 @@ const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
|
|
|
117
121
|
}), $ = (e) => ({
|
|
118
122
|
type: "singular",
|
|
119
123
|
default: e.default || "",
|
|
120
|
-
binding:
|
|
124
|
+
binding: r(e, "binding", !0),
|
|
121
125
|
dataType: "string",
|
|
122
|
-
ai: e.ai ||
|
|
126
|
+
ai: e.ai || !1,
|
|
127
|
+
i18n: e.i18n || !1,
|
|
123
128
|
schema: {
|
|
124
129
|
type: "string",
|
|
125
|
-
...a(e, ["i18n", "required"])
|
|
130
|
+
...a(e, ["i18n", "ai", "required"])
|
|
126
131
|
},
|
|
127
132
|
uiSchema: {
|
|
128
133
|
"ui:widget": "richtext"
|
|
@@ -132,14 +137,15 @@ const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
|
|
|
132
137
|
title: e.title,
|
|
133
138
|
dataType: "object",
|
|
134
139
|
default: e.default || {},
|
|
135
|
-
binding:
|
|
140
|
+
binding: r(e, "binding", !0),
|
|
136
141
|
properties: e.properties
|
|
137
142
|
}), K = (e) => ({
|
|
138
143
|
type: "list",
|
|
139
144
|
itemProperties: e.itemProperties,
|
|
140
|
-
binding:
|
|
145
|
+
binding: r(e, "binding", !0),
|
|
141
146
|
title: e.title,
|
|
142
|
-
ai: e.ai ||
|
|
147
|
+
ai: e.ai || !1,
|
|
148
|
+
i18n: e.i18n || !1,
|
|
143
149
|
dataType: "array",
|
|
144
150
|
default: e.default || [],
|
|
145
151
|
itemTitle: e.getItemLabel ? e.getItemLabel({}) : () => ""
|
|
@@ -150,10 +156,11 @@ const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
|
|
|
150
156
|
presets: e.presets || {}
|
|
151
157
|
}), V = (e) => ({
|
|
152
158
|
default: e.default || "",
|
|
153
|
-
binding:
|
|
159
|
+
binding: r(e, "binding", !0),
|
|
154
160
|
type: "singular",
|
|
155
161
|
dataType: "string",
|
|
156
|
-
ai: e.ai ||
|
|
162
|
+
ai: e.ai || !1,
|
|
163
|
+
i18n: e.i18n || !1,
|
|
157
164
|
schema: {
|
|
158
165
|
type: "string",
|
|
159
166
|
title: "Icon",
|
|
@@ -165,9 +172,10 @@ const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
|
|
|
165
172
|
}), F = (e) => ({
|
|
166
173
|
default: e.default,
|
|
167
174
|
type: "singular",
|
|
168
|
-
binding:
|
|
175
|
+
binding: r(e, "binding", !0),
|
|
169
176
|
dataType: "object",
|
|
170
|
-
ai: e.ai ||
|
|
177
|
+
ai: e.ai || !1,
|
|
178
|
+
i18n: e.i18n || !1,
|
|
171
179
|
schema: {
|
|
172
180
|
type: "object",
|
|
173
181
|
...e || {},
|
|
@@ -183,13 +191,14 @@ const N = (e) => e >= 1536 ? "2XL" : e >= 1280 ? "XL" : e >= 1024 ? "LG" : e >=
|
|
|
183
191
|
}), H = (e) => ({
|
|
184
192
|
type: "singular",
|
|
185
193
|
default: e.default || "",
|
|
186
|
-
hidden:
|
|
187
|
-
binding:
|
|
194
|
+
hidden: r(e, "hidden", !1),
|
|
195
|
+
binding: r(e, "binding", !0),
|
|
188
196
|
dataType: "string",
|
|
189
|
-
ai: e.ai ||
|
|
197
|
+
ai: e.ai || !1,
|
|
198
|
+
i18n: e.i18n || !1,
|
|
190
199
|
schema: {
|
|
191
200
|
type: "string",
|
|
192
|
-
...a(e, ["i18n", "required"])
|
|
201
|
+
...a(e, ["i18n", "ai", "required"])
|
|
193
202
|
},
|
|
194
203
|
uiSchema: {
|
|
195
204
|
"ui:widget": "image"
|
|
@@ -205,11 +214,11 @@ var m = {
|
|
|
205
214
|
function j(e, t) {
|
|
206
215
|
if (e == null)
|
|
207
216
|
return {};
|
|
208
|
-
var i = P(e, t),
|
|
217
|
+
var i = P(e, t), n, d;
|
|
209
218
|
if (Object.getOwnPropertySymbols) {
|
|
210
219
|
var u = Object.getOwnPropertySymbols(e);
|
|
211
220
|
for (d = 0; d < u.length; d++)
|
|
212
|
-
|
|
221
|
+
n = u[d], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
213
222
|
}
|
|
214
223
|
return i;
|
|
215
224
|
}
|
|
@@ -217,11 +226,11 @@ function P(e, t) {
|
|
|
217
226
|
if (e == null)
|
|
218
227
|
return {};
|
|
219
228
|
var i = {};
|
|
220
|
-
for (var
|
|
221
|
-
if (Object.prototype.hasOwnProperty.call(e,
|
|
222
|
-
if (t.indexOf(
|
|
229
|
+
for (var n in e)
|
|
230
|
+
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
231
|
+
if (t.indexOf(n) >= 0)
|
|
223
232
|
continue;
|
|
224
|
-
i[
|
|
233
|
+
i[n] = e[n];
|
|
225
234
|
}
|
|
226
235
|
return i;
|
|
227
236
|
}
|
|
@@ -229,8 +238,8 @@ function s() {
|
|
|
229
238
|
return s = Object.assign ? Object.assign.bind() : function(e) {
|
|
230
239
|
for (var t = 1; t < arguments.length; t++) {
|
|
231
240
|
var i = arguments[t];
|
|
232
|
-
for (var
|
|
233
|
-
Object.prototype.hasOwnProperty.call(i,
|
|
241
|
+
for (var n in i)
|
|
242
|
+
Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
|
|
234
243
|
}
|
|
235
244
|
return e;
|
|
236
245
|
}, s.apply(this, arguments);
|
|
@@ -238,20 +247,20 @@ function s() {
|
|
|
238
247
|
function f(e, t) {
|
|
239
248
|
var i = Object.keys(e);
|
|
240
249
|
if (Object.getOwnPropertySymbols) {
|
|
241
|
-
var
|
|
242
|
-
t && (
|
|
250
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
251
|
+
t && (n = n.filter(function(d) {
|
|
243
252
|
return Object.getOwnPropertyDescriptor(e, d).enumerable;
|
|
244
|
-
})), i.push.apply(i,
|
|
253
|
+
})), i.push.apply(i, n);
|
|
245
254
|
}
|
|
246
255
|
return i;
|
|
247
256
|
}
|
|
248
257
|
function c(e) {
|
|
249
258
|
for (var t = 1; t < arguments.length; t++) {
|
|
250
259
|
var i = arguments[t] != null ? arguments[t] : {};
|
|
251
|
-
t % 2 ? f(Object(i), !0).forEach(function(
|
|
252
|
-
S(e,
|
|
253
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : f(Object(i)).forEach(function(
|
|
254
|
-
Object.defineProperty(e,
|
|
260
|
+
t % 2 ? f(Object(i), !0).forEach(function(n) {
|
|
261
|
+
S(e, n, i[n]);
|
|
262
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : f(Object(i)).forEach(function(n) {
|
|
263
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
255
264
|
});
|
|
256
265
|
}
|
|
257
266
|
return e;
|
|
@@ -268,9 +277,9 @@ function T(e, t) {
|
|
|
268
277
|
return e;
|
|
269
278
|
var i = e[Symbol.toPrimitive];
|
|
270
279
|
if (i !== void 0) {
|
|
271
|
-
var
|
|
272
|
-
if (typeof
|
|
273
|
-
return
|
|
280
|
+
var n = i.call(e, t || "default");
|
|
281
|
+
if (typeof n != "object")
|
|
282
|
+
return n;
|
|
274
283
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
275
284
|
}
|
|
276
285
|
return (t === "string" ? String : Number)(e);
|
|
@@ -288,7 +297,7 @@ function J(e) {
|
|
|
288
297
|
function x(e) {
|
|
289
298
|
var t = (i) => {
|
|
290
299
|
var {
|
|
291
|
-
attr:
|
|
300
|
+
attr: n,
|
|
292
301
|
size: d,
|
|
293
302
|
title: u
|
|
294
303
|
} = e, b = j(e, w), g = d || i.size || "1em", o;
|
|
@@ -296,7 +305,7 @@ function x(e) {
|
|
|
296
305
|
stroke: "currentColor",
|
|
297
306
|
fill: "currentColor",
|
|
298
307
|
strokeWidth: "0"
|
|
299
|
-
}, i.attr,
|
|
308
|
+
}, i.attr, n, b, {
|
|
300
309
|
className: o,
|
|
301
310
|
style: c(c({
|
|
302
311
|
color: e.color || i.color
|
|
@@ -315,16 +324,16 @@ export {
|
|
|
315
324
|
N as a,
|
|
316
325
|
M as b,
|
|
317
326
|
z as c,
|
|
318
|
-
|
|
327
|
+
G as d,
|
|
319
328
|
A as e,
|
|
320
|
-
|
|
329
|
+
B as f,
|
|
321
330
|
D as g,
|
|
322
331
|
U as h,
|
|
323
332
|
L as l,
|
|
324
333
|
$ as m,
|
|
325
|
-
H as o,
|
|
326
334
|
V as q,
|
|
327
|
-
|
|
328
|
-
F as
|
|
329
|
-
|
|
335
|
+
W as s,
|
|
336
|
+
F as w,
|
|
337
|
+
H as x,
|
|
338
|
+
X as y
|
|
330
339
|
};
|