@chaibuilder/sdk 1.2.9 → 1.2.10-7.beta.2
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/README.md +26 -21
- package/dist/CodeEditor-2fowVPcS.cjs +143 -0
- package/dist/CodeEditor-b6uePnTe.js +143 -0
- package/dist/STRINGS-RCf9qnaS.cjs +9 -0
- package/dist/STRINGS-t8UhMYZ6.js +10 -0
- package/dist/Topbar-O21Nrw2O.cjs +137 -0
- package/dist/Topbar-xFfdTq1m.js +137 -0
- package/dist/UnsplashImages-awQiGFMX.cjs +280 -0
- package/dist/UnsplashImages-qQmFIWEy.js +280 -0
- package/dist/UploadImages-a8Hl0tyg.cjs +170 -0
- package/dist/UploadImages-cudxJepv.js +170 -0
- package/dist/context-menu-VMB9i0d8.cjs +1074 -0
- package/dist/context-menu-mp3Gu2KA.js +1043 -0
- package/dist/controls-4t-C_rP2.cjs +233 -0
- package/dist/controls-fQIu127i.js +234 -0
- package/dist/core.cjs +135 -1
- package/dist/core.d.ts +344 -119
- package/dist/core.js +111 -88
- package/dist/iconBase-OGxLGBQ1.cjs +156 -0
- package/dist/iconBase-Ofd16yeE.js +157 -0
- package/dist/index-R7v8ZYnu.js +12110 -0
- package/dist/index-WHVUpVPa.cjs +12125 -0
- package/dist/jsx-runtime-_yxTjXEh.js +931 -0
- package/dist/jsx-runtime-vPqyLgmD.cjs +930 -0
- package/dist/mockServiceWorker.js +18 -10
- package/dist/plugin-RAiM74uD.cjs +116 -0
- package/dist/plugin-T1qbgBUO.js +55 -0
- package/dist/plugin-YcxlCmRm.js +117 -0
- package/dist/plugin-cYi6q9KC.cjs +54 -0
- package/dist/render.cjs +215 -1
- package/dist/render.d.ts +21 -40
- package/dist/render.js +190 -98
- package/dist/runtime.cjs +28 -0
- package/dist/runtime.d.ts +5 -0
- package/dist/runtime.js +21 -0
- package/dist/style.css +1524 -1
- package/dist/tailwind.cjs +80 -1
- package/dist/tailwind.d.ts +49 -8
- package/dist/tailwind.js +23 -25
- package/dist/ui.cjs +410 -1
- package/dist/ui.d.ts +3 -13
- package/dist/ui.js +374 -163
- package/dist/web-blocks.cjs +1246 -9
- package/dist/web-blocks.d.ts +1 -1
- package/dist/web-blocks.js +961 -789
- package/package.json +66 -83
- package/dist/AddBlocks-tMxKPoen.js +0 -225
- package/dist/AddBlocks-x2LkOHSj.cjs +0 -1
- package/dist/BrandingOptions-EzT9UYd6.cjs +0 -1
- package/dist/BrandingOptions-QJJ1y5ez.js +0 -194
- package/dist/CanvasArea-mlNKmCOh.js +0 -1425
- package/dist/CanvasArea-xs4wM64L.cjs +0 -60
- package/dist/CurrentPage-aaU4F7wi.cjs +0 -1
- package/dist/CurrentPage-lBy25sZn.js +0 -111
- package/dist/Functions-7jnEwJyw.js +0 -15
- package/dist/Functions-N3yhPYKY.cjs +0 -1
- package/dist/Layers-3Xs4A5i8.js +0 -404
- package/dist/Layers-eaHy5PK9.cjs +0 -1
- package/dist/MODIFIERS-2FeVfZQ9.cjs +0 -1
- package/dist/MODIFIERS-RiXS5Mn1.js +0 -67
- package/dist/MarkAsGlobalBlock-BjP-Rqlf.js +0 -88
- package/dist/MarkAsGlobalBlock-X5dNmZcb.cjs +0 -1
- package/dist/PagesPanel--BZhafnt.js +0 -69
- package/dist/PagesPanel-gGKCV394.cjs +0 -1
- package/dist/ProjectPanel-YcLkM-DW.js +0 -90
- package/dist/ProjectPanel-yFJRy0_E.cjs +0 -1
- package/dist/Settings-7wlLcvoh.cjs +0 -1
- package/dist/Settings-TAgX4hov.js +0 -2186
- package/dist/SidePanels-5H4j0mIs.cjs +0 -1
- package/dist/SidePanels-btVQQkVK.js +0 -349
- package/dist/Topbar-V8xCetWF.cjs +0 -1
- package/dist/Topbar-j4t4AgCq.js +0 -116
- package/dist/UnsplashImages-41Y3q5_Q.js +0 -200
- package/dist/UnsplashImages-DbHky6cj.cjs +0 -1
- package/dist/UploadImages-DnQ95_NW.cjs +0 -1
- package/dist/UploadImages-xBg-kbKv.js +0 -138
- package/dist/_commonjsHelpers-UyOWmZb0.js +0 -8
- package/dist/_commonjsHelpers-wDK0ZLPo.cjs +0 -1
- package/dist/add-page-modal-MwS7iXn_.cjs +0 -1
- package/dist/add-page-modal-cm8damU2.js +0 -108
- package/dist/confirm-alert-U7-NcG7G.cjs +0 -1
- package/dist/confirm-alert-i4pM3mOt.js +0 -62
- package/dist/controls-Dy1qa8Dc.cjs +0 -1
- package/dist/controls-XPXGHKht.js +0 -182
- package/dist/delete-page-modal-5o4jXu-z.cjs +0 -1
- package/dist/delete-page-modal-YrIBvfFA.js +0 -88
- package/dist/email-blocks.cjs +0 -1
- package/dist/email-blocks.d.ts +0 -3
- package/dist/email-blocks.js +0 -274
- package/dist/form-OVmsLOrc.js +0 -125
- package/dist/form-VbouZlAW.cjs +0 -1
- package/dist/functions-Ox_svtKm.cjs +0 -1
- package/dist/functions-xIebp8Aw.js +0 -23
- package/dist/html-to-json-2PeOCVey.cjs +0 -1
- package/dist/html-to-json-57841sEK.js +0 -183
- package/dist/index-H6vIwGfD.cjs +0 -1
- package/dist/index-N50dZnlC.cjs +0 -206
- package/dist/index-e0c8PmRQ.js +0 -205
- package/dist/index-gi1LIOCw.cjs +0 -1
- package/dist/index-niHREMmR.js +0 -2938
- package/dist/index-pZhGT8uT.js +0 -41620
- package/dist/jsx-runtime-WbnYoNE9.js +0 -634
- package/dist/jsx-runtime-Z_BpKhVy.cjs +0 -27
- package/dist/lib.cjs +0 -4
- package/dist/lib.d.ts +0 -78
- package/dist/lib.js +0 -1322
- package/dist/page-viewer-SLt8XgYv.cjs +0 -1
- package/dist/page-viewer-feqJr1QI.js +0 -115
- package/dist/project-general-setting-SgagORzW.js +0 -83
- package/dist/project-general-setting-ym0yCdOq.cjs +0 -1
- package/dist/project-seo-setting-Snn2nZgS.cjs +0 -1
- package/dist/project-seo-setting-wxAGEkd_.js +0 -85
- package/dist/server.cjs +0 -1
- package/dist/server.d.ts +0 -299
- package/dist/server.js +0 -216
- package/dist/single-page-detail-IPod1o5P.cjs +0 -1
- package/dist/single-page-detail-dnWMyg6P.js +0 -222
- package/dist/studio.cjs +0 -1
- package/dist/studio.d.ts +0 -13
- package/dist/studio.js +0 -58
- package/dist/useAddBlockByDrop-_nwI4W3q.js +0 -20
- package/dist/useAddBlockByDrop-inkD7Lck.cjs +0 -1
- package/dist/utils-AvyFzbPC.js +0 -1075
- package/dist/utils-PTxFk6qT.cjs +0 -1
package/dist/index-e0c8PmRQ.js
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { useState as M, useRef as x, useEffect as C, createElement as o } from "react";
|
|
2
|
-
const O = (e) => typeof e == "boolean" || e instanceof Boolean, T = (e) => typeof e == "number" || e instanceof Number, L = (e) => typeof e == "bigint" || e instanceof BigInt, y = (e) => !!e && e instanceof Date, j = (e) => typeof e == "string" || e instanceof String, B = (e) => Array.isArray(e), D = (e) => e instanceof Object && e !== null;
|
|
3
|
-
function G(e) {
|
|
4
|
-
const [a, l] = M(e());
|
|
5
|
-
return [a, () => l((u) => !u), l];
|
|
6
|
-
}
|
|
7
|
-
let J = 1;
|
|
8
|
-
const R = () => J++;
|
|
9
|
-
function A() {
|
|
10
|
-
const e = x();
|
|
11
|
-
return e.current === void 0 && (e.current = `:jsnvw:${R()}:`), e.current;
|
|
12
|
-
}
|
|
13
|
-
function N(e) {
|
|
14
|
-
let {
|
|
15
|
-
field: a,
|
|
16
|
-
value: l,
|
|
17
|
-
data: t,
|
|
18
|
-
lastElement: u,
|
|
19
|
-
openBracket: s,
|
|
20
|
-
closeBracket: c,
|
|
21
|
-
level: r,
|
|
22
|
-
style: i,
|
|
23
|
-
shouldExpandNode: b,
|
|
24
|
-
clickToExpandNode: _
|
|
25
|
-
} = e;
|
|
26
|
-
const k = x(!1), [d, f, E] = G(() => b(r, l, a));
|
|
27
|
-
C(() => {
|
|
28
|
-
k.current ? E(b(r, l, a)) : k.current = !0;
|
|
29
|
-
}, [b]);
|
|
30
|
-
const I = d ? i.collapseIcon : i.expandIcon, v = d ? "collapse JSON" : "expand JSON", m = A(), S = r + 1, F = t.length - 1, g = (p) => {
|
|
31
|
-
p.key === " " && (p.preventDefault(), f());
|
|
32
|
-
};
|
|
33
|
-
return /* @__PURE__ */ o("div", {
|
|
34
|
-
className: i.basicChildStyle,
|
|
35
|
-
role: "list"
|
|
36
|
-
}, /* @__PURE__ */ o("span", {
|
|
37
|
-
className: I,
|
|
38
|
-
onClick: f,
|
|
39
|
-
onKeyDown: g,
|
|
40
|
-
role: "button",
|
|
41
|
-
tabIndex: 0,
|
|
42
|
-
"aria-label": v,
|
|
43
|
-
"aria-expanded": d,
|
|
44
|
-
"aria-controls": d ? m : void 0
|
|
45
|
-
}), a && (_ ? /* @__PURE__ */ o("span", {
|
|
46
|
-
className: i.clickableLabel,
|
|
47
|
-
onClick: f,
|
|
48
|
-
onKeyDown: g,
|
|
49
|
-
role: "button",
|
|
50
|
-
tabIndex: -1
|
|
51
|
-
}, a, ":") : /* @__PURE__ */ o("span", {
|
|
52
|
-
className: i.label
|
|
53
|
-
}, a, ":")), /* @__PURE__ */ o("span", {
|
|
54
|
-
className: i.punctuation
|
|
55
|
-
}, s), d ? /* @__PURE__ */ o("div", {
|
|
56
|
-
id: m
|
|
57
|
-
}, t.map((p, h) => /* @__PURE__ */ o(V, {
|
|
58
|
-
key: p[0] || h,
|
|
59
|
-
field: p[0],
|
|
60
|
-
value: p[1],
|
|
61
|
-
style: i,
|
|
62
|
-
lastElement: h === F,
|
|
63
|
-
level: S,
|
|
64
|
-
shouldExpandNode: b,
|
|
65
|
-
clickToExpandNode: _
|
|
66
|
-
}))) : /* @__PURE__ */ o("span", {
|
|
67
|
-
className: i.collapsedContent,
|
|
68
|
-
onClick: f,
|
|
69
|
-
onKeyDown: g,
|
|
70
|
-
role: "button",
|
|
71
|
-
tabIndex: -1,
|
|
72
|
-
"aria-hidden": !0,
|
|
73
|
-
"aria-label": v,
|
|
74
|
-
"aria-expanded": d
|
|
75
|
-
}), /* @__PURE__ */ o("span", {
|
|
76
|
-
className: i.punctuation
|
|
77
|
-
}, c), !u && /* @__PURE__ */ o("span", {
|
|
78
|
-
className: i.punctuation
|
|
79
|
-
}, ","));
|
|
80
|
-
}
|
|
81
|
-
function K(e) {
|
|
82
|
-
let {
|
|
83
|
-
field: a,
|
|
84
|
-
value: l,
|
|
85
|
-
style: t,
|
|
86
|
-
lastElement: u,
|
|
87
|
-
shouldExpandNode: s,
|
|
88
|
-
clickToExpandNode: c,
|
|
89
|
-
level: r
|
|
90
|
-
} = e;
|
|
91
|
-
return N({
|
|
92
|
-
field: a,
|
|
93
|
-
value: l,
|
|
94
|
-
lastElement: u || !1,
|
|
95
|
-
level: r,
|
|
96
|
-
openBracket: "{",
|
|
97
|
-
closeBracket: "}",
|
|
98
|
-
style: t,
|
|
99
|
-
shouldExpandNode: s,
|
|
100
|
-
clickToExpandNode: c,
|
|
101
|
-
data: Object.keys(l).map((i) => [i, l[i]])
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function Q(e) {
|
|
105
|
-
let {
|
|
106
|
-
field: a,
|
|
107
|
-
value: l,
|
|
108
|
-
style: t,
|
|
109
|
-
lastElement: u,
|
|
110
|
-
level: s,
|
|
111
|
-
shouldExpandNode: c,
|
|
112
|
-
clickToExpandNode: r
|
|
113
|
-
} = e;
|
|
114
|
-
return N({
|
|
115
|
-
field: a,
|
|
116
|
-
value: l,
|
|
117
|
-
lastElement: u || !1,
|
|
118
|
-
level: s,
|
|
119
|
-
openBracket: "[",
|
|
120
|
-
closeBracket: "]",
|
|
121
|
-
style: t,
|
|
122
|
-
shouldExpandNode: c,
|
|
123
|
-
clickToExpandNode: r,
|
|
124
|
-
data: l.map((i) => [void 0, i])
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
function w(e) {
|
|
128
|
-
let {
|
|
129
|
-
field: a,
|
|
130
|
-
value: l,
|
|
131
|
-
style: t,
|
|
132
|
-
lastElement: u
|
|
133
|
-
} = e, s = l, c = t.otherValue;
|
|
134
|
-
return l === null ? (s = "null", c = t.nullValue) : l === void 0 ? (s = "undefined", c = t.undefinedValue) : j(l) ? (s = t.noQuotesForStringValues ? l : `"${l}"`, c = t.stringValue) : O(l) ? (s = l ? "true" : "false", c = t.booleanValue) : T(l) ? (s = l.toString(), c = t.numberValue) : L(l) ? (s = `${l.toString()}n`, c = t.numberValue) : y(l) ? s = l.toISOString() : s = l.toString(), a === "" && (a = '""'), /* @__PURE__ */ o("div", {
|
|
135
|
-
className: t.basicChildStyle,
|
|
136
|
-
role: "listitem"
|
|
137
|
-
}, a && /* @__PURE__ */ o("span", {
|
|
138
|
-
className: t.label
|
|
139
|
-
}, a, ":"), /* @__PURE__ */ o("span", {
|
|
140
|
-
className: c
|
|
141
|
-
}, s), !u && /* @__PURE__ */ o("span", {
|
|
142
|
-
className: t.punctuation
|
|
143
|
-
}, ","));
|
|
144
|
-
}
|
|
145
|
-
function V(e) {
|
|
146
|
-
const a = e.value;
|
|
147
|
-
return B(a) ? /* @__PURE__ */ o(Q, Object.assign({}, e)) : D(a) && !y(a) ? /* @__PURE__ */ o(K, Object.assign({}, e)) : /* @__PURE__ */ o(w, Object.assign({}, e));
|
|
148
|
-
}
|
|
149
|
-
var n = { "container-base": "_GzYRV", "punctuation-base": "_3eOF8", pointer: "_1MFti", "expander-base": "_f10Tu _1MFti", "expand-icon": "_1UmXx", "collapse-icon": "_1LId0", "collapsed-content-base": "_1pNG9 _1MFti", "container-light": "_2IvMF _GzYRV", "basic-element-style": "_2bkNM", "label-light": "_1MGIk", "clickable-label-light": "_2YKJg _1MGIk _1MFti", "punctuation-light": "_3uHL6 _3eOF8", "value-null-light": "_2T6PJ", "value-undefined-light": "_1Gho6", "value-string-light": "_vGjyY", "value-number-light": "_1bQdo", "value-boolean-light": "_3zQKs", "value-other-light": "_1xvuR", "collapse-icon-light": "_oLqym _f10Tu _1MFti _1LId0", "expand-icon-light": "_2AXVT _f10Tu _1MFti _1UmXx", "collapsed-content-light": "_2KJWg _1pNG9 _1MFti", "container-dark": "_11RoI _GzYRV", "expand-icon-dark": "_17H2C _f10Tu _1MFti _1UmXx", "collapse-icon-dark": "_3QHg2 _f10Tu _1MFti _1LId0", "collapsed-content-dark": "_3fDAz _1pNG9 _1MFti", "label-dark": "_2bSDX", "clickable-label-dark": "_1RQEj _2bSDX _1MFti", "punctuation-dark": "_gsbQL _3eOF8", "value-null-dark": "_LaAZe", "value-undefined-dark": "_GTKgm", "value-string-dark": "_Chy1W", "value-number-dark": "_2bveF", "value-boolean-dark": "_2vRm-", "value-other-dark": "_1prJR" };
|
|
150
|
-
const X = {
|
|
151
|
-
container: n["container-light"],
|
|
152
|
-
basicChildStyle: n["basic-element-style"],
|
|
153
|
-
label: n["label-light"],
|
|
154
|
-
clickableLabel: n["clickable-label-light"],
|
|
155
|
-
nullValue: n["value-null-light"],
|
|
156
|
-
undefinedValue: n["value-undefined-light"],
|
|
157
|
-
stringValue: n["value-string-light"],
|
|
158
|
-
booleanValue: n["value-boolean-light"],
|
|
159
|
-
numberValue: n["value-number-light"],
|
|
160
|
-
otherValue: n["value-other-light"],
|
|
161
|
-
punctuation: n["punctuation-light"],
|
|
162
|
-
collapseIcon: n["collapse-icon-light"],
|
|
163
|
-
expandIcon: n["expand-icon-light"],
|
|
164
|
-
collapsedContent: n["collapsed-content-light"],
|
|
165
|
-
noQuotesForStringValues: !1
|
|
166
|
-
}, H = {
|
|
167
|
-
container: n["container-dark"],
|
|
168
|
-
basicChildStyle: n["basic-element-style"],
|
|
169
|
-
label: n["label-dark"],
|
|
170
|
-
clickableLabel: n["clickable-label-dark"],
|
|
171
|
-
nullValue: n["value-null-dark"],
|
|
172
|
-
undefinedValue: n["value-undefined-dark"],
|
|
173
|
-
stringValue: n["value-string-dark"],
|
|
174
|
-
booleanValue: n["value-boolean-dark"],
|
|
175
|
-
numberValue: n["value-number-dark"],
|
|
176
|
-
otherValue: n["value-other-dark"],
|
|
177
|
-
punctuation: n["punctuation-dark"],
|
|
178
|
-
collapseIcon: n["collapse-icon-dark"],
|
|
179
|
-
expandIcon: n["expand-icon-dark"],
|
|
180
|
-
collapsedContent: n["collapsed-content-dark"],
|
|
181
|
-
noQuotesForStringValues: !1
|
|
182
|
-
}, z = () => !0;
|
|
183
|
-
const U = (e) => {
|
|
184
|
-
let {
|
|
185
|
-
data: a,
|
|
186
|
-
style: l = X,
|
|
187
|
-
shouldExpandNode: t = z,
|
|
188
|
-
clickToExpandNode: u = !1
|
|
189
|
-
} = e;
|
|
190
|
-
return /* @__PURE__ */ o("div", {
|
|
191
|
-
className: l.container
|
|
192
|
-
}, /* @__PURE__ */ o(V, {
|
|
193
|
-
value: a,
|
|
194
|
-
style: l,
|
|
195
|
-
lastElement: !0,
|
|
196
|
-
level: 0,
|
|
197
|
-
shouldExpandNode: t,
|
|
198
|
-
clickToExpandNode: u
|
|
199
|
-
}));
|
|
200
|
-
};
|
|
201
|
-
export {
|
|
202
|
-
U as J,
|
|
203
|
-
z as a,
|
|
204
|
-
X as d
|
|
205
|
-
};
|
package/dist/index-gi1LIOCw.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react"),C=e=>typeof e=="boolean"||e instanceof Boolean,O=e=>typeof e=="number"||e instanceof Number,T=e=>typeof e=="bigint"||e instanceof BigInt,E=e=>!!e&&e instanceof Date,R=e=>typeof e=="string"||e instanceof String,L=e=>Array.isArray(e),j=e=>e instanceof Object&&e!==null;function B(e){const[a,l]=t.useState(e());return[a,()=>l(u=>!u),l]}let D=1;const G=()=>D++;function J(){const e=t.useRef();return e.current===void 0&&(e.current=`:jsnvw:${G()}:`),e.current}function x(e){let{field:a,value:l,data:o,lastElement:u,openBracket:c,closeBracket:i,level:r,style:s,shouldExpandNode:b,clickToExpandNode:g}=e;const _=t.useRef(!1),[d,f,I]=B(()=>b(r,l,a));t.useEffect(()=>{_.current?I(b(r,l,a)):_.current=!0},[b]);const S=d?s.collapseIcon:s.expandIcon,k=d?"collapse JSON":"expand JSON",v=J(),F=r+1,M=o.length-1,m=p=>{p.key===" "&&(p.preventDefault(),f())};return t.createElement("div",{className:s.basicChildStyle,role:"list"},t.createElement("span",{className:S,onClick:f,onKeyDown:m,role:"button",tabIndex:0,"aria-label":k,"aria-expanded":d,"aria-controls":d?v:void 0}),a&&(g?t.createElement("span",{className:s.clickableLabel,onClick:f,onKeyDown:m,role:"button",tabIndex:-1},a,":"):t.createElement("span",{className:s.label},a,":")),t.createElement("span",{className:s.punctuation},c),d?t.createElement("div",{id:v},o.map((p,h)=>t.createElement(y,{key:p[0]||h,field:p[0],value:p[1],style:s,lastElement:h===M,level:F,shouldExpandNode:b,clickToExpandNode:g}))):t.createElement("span",{className:s.collapsedContent,onClick:f,onKeyDown:m,role:"button",tabIndex:-1,"aria-hidden":!0,"aria-label":k,"aria-expanded":d}),t.createElement("span",{className:s.punctuation},i),!u&&t.createElement("span",{className:s.punctuation},","))}function A(e){let{field:a,value:l,style:o,lastElement:u,shouldExpandNode:c,clickToExpandNode:i,level:r}=e;return x({field:a,value:l,lastElement:u||!1,level:r,openBracket:"{",closeBracket:"}",style:o,shouldExpandNode:c,clickToExpandNode:i,data:Object.keys(l).map(s=>[s,l[s]])})}function K(e){let{field:a,value:l,style:o,lastElement:u,level:c,shouldExpandNode:i,clickToExpandNode:r}=e;return x({field:a,value:l,lastElement:u||!1,level:c,openBracket:"[",closeBracket:"]",style:o,shouldExpandNode:i,clickToExpandNode:r,data:l.map(s=>[void 0,s])})}function Q(e){let{field:a,value:l,style:o,lastElement:u}=e,c=l,i=o.otherValue;return l===null?(c="null",i=o.nullValue):l===void 0?(c="undefined",i=o.undefinedValue):R(l)?(c=o.noQuotesForStringValues?l:`"${l}"`,i=o.stringValue):C(l)?(c=l?"true":"false",i=o.booleanValue):O(l)?(c=l.toString(),i=o.numberValue):T(l)?(c=`${l.toString()}n`,i=o.numberValue):E(l)?c=l.toISOString():c=l.toString(),a===""&&(a='""'),t.createElement("div",{className:o.basicChildStyle,role:"listitem"},a&&t.createElement("span",{className:o.label},a,":"),t.createElement("span",{className:i},c),!u&&t.createElement("span",{className:o.punctuation},","))}function y(e){const a=e.value;return L(a)?t.createElement(K,Object.assign({},e)):j(a)&&!E(a)?t.createElement(A,Object.assign({},e)):t.createElement(Q,Object.assign({},e))}var n={"container-base":"_GzYRV","punctuation-base":"_3eOF8",pointer:"_1MFti","expander-base":"_f10Tu _1MFti","expand-icon":"_1UmXx","collapse-icon":"_1LId0","collapsed-content-base":"_1pNG9 _1MFti","container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const N={container:n["container-light"],basicChildStyle:n["basic-element-style"],label:n["label-light"],clickableLabel:n["clickable-label-light"],nullValue:n["value-null-light"],undefinedValue:n["value-undefined-light"],stringValue:n["value-string-light"],booleanValue:n["value-boolean-light"],numberValue:n["value-number-light"],otherValue:n["value-other-light"],punctuation:n["punctuation-light"],collapseIcon:n["collapse-icon-light"],expandIcon:n["expand-icon-light"],collapsedContent:n["collapsed-content-light"],noQuotesForStringValues:!1},X={container:n["container-dark"],basicChildStyle:n["basic-element-style"],label:n["label-dark"],clickableLabel:n["clickable-label-dark"],nullValue:n["value-null-dark"],undefinedValue:n["value-undefined-dark"],stringValue:n["value-string-dark"],booleanValue:n["value-boolean-dark"],numberValue:n["value-number-dark"],otherValue:n["value-other-dark"],punctuation:n["punctuation-dark"],collapseIcon:n["collapse-icon-dark"],expandIcon:n["expand-icon-dark"],collapsedContent:n["collapsed-content-dark"],noQuotesForStringValues:!1},V=()=>!0;const w=e=>{let{data:a,style:l=N,shouldExpandNode:o=V,clickToExpandNode:u=!1}=e;return t.createElement("div",{className:l.container},t.createElement(y,{value:a,style:l,lastElement:!0,level:0,shouldExpandNode:o,clickToExpandNode:u}))};exports.JsonView=w;exports.allExpanded=V;exports.defaultStyles=N;
|