@chaibuilder/sdk 1.2.9 → 1.2.10-7.beta.1
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-3Vp79cuE.cjs +1 -0
- package/dist/CodeEditor-bUqM7eCa.js +129 -0
- package/dist/STRINGS-Xxstm-7I.js +7 -0
- package/dist/STRINGS-Yl7cSWDc.cjs +1 -0
- package/dist/Topbar-P7-9Rps1.js +124 -0
- package/dist/Topbar-xwQ4JUZD.cjs +1 -0
- package/dist/UnsplashImages-BxgbXGB6.cjs +1 -0
- package/dist/UnsplashImages-nQSvWPU0.js +244 -0
- package/dist/UploadImages-L9LlI-jl.cjs +1 -0
- package/dist/UploadImages-SVnIHigg.js +153 -0
- package/dist/context-menu-YGd09SE1.js +979 -0
- package/dist/context-menu-sQn7ryJ6.cjs +1 -0
- package/dist/{controls-XPXGHKht.js → controls-lEwMTdPQ.js} +96 -44
- package/dist/controls-p9IwFnPx.cjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +344 -119
- package/dist/core.js +111 -88
- package/dist/iconBase-Ief2hJUZ.js +130 -0
- package/dist/iconBase-aZzpqff_.cjs +1 -0
- package/dist/index-3NV_rst1.js +9051 -0
- package/dist/index-qTKBamQ6.cjs +63 -0
- package/dist/jsx-runtime-JYMCiFoE.cjs +27 -0
- package/dist/{jsx-runtime-WbnYoNE9.js → jsx-runtime-Sp0orL4X.js} +106 -109
- package/dist/mockServiceWorker.js +18 -10
- package/dist/plugin-UiUFs2fK.js +44 -0
- package/dist/plugin-f6SDZ_Or.js +108 -0
- package/dist/plugin-jum1MjXp.cjs +1 -0
- package/dist/plugin-xOpS-UNV.cjs +1 -0
- package/dist/render.cjs +3 -1
- package/dist/render.d.ts +21 -40
- package/dist/render.js +129 -85
- package/dist/runtime.cjs +1 -0
- package/dist/runtime.d.ts +5 -0
- package/dist/runtime.js +21 -0
- package/dist/style.css +2 -2
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.d.ts +49 -8
- package/dist/tailwind.js +16 -20
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +3 -13
- package/dist/ui.js +363 -163
- package/dist/web-blocks.cjs +3 -9
- package/dist/web-blocks.d.ts +1 -1
- package/dist/web-blocks.js +722 -770
- 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/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-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
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
-
import * as c from "react";
|
|
3
|
-
import N from "@rjsf/validator-ajv8";
|
|
4
|
-
import j from "@rjsf/core";
|
|
5
|
-
import { i as k, x as D, y as P } from "./index-niHREMmR.js";
|
|
6
|
-
import { f, c as R, y as a } from "./controls-XPXGHKht.js";
|
|
7
|
-
import { debounce as w, isEqual as L } from "lodash-es";
|
|
8
|
-
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
9
|
-
import "@radix-ui/react-toggle";
|
|
10
|
-
import "class-variance-authority";
|
|
11
|
-
import "./utils-AvyFzbPC.js";
|
|
12
|
-
import "./MODIFIERS-RiXS5Mn1.js";
|
|
13
|
-
import "clsx";
|
|
14
|
-
import "tailwind-merge";
|
|
15
|
-
import "@radix-ui/react-switch";
|
|
16
|
-
import "@radix-ui/react-slot";
|
|
17
|
-
import "@radix-ui/react-accordion";
|
|
18
|
-
import "@radix-ui/react-icons";
|
|
19
|
-
import "@radix-ui/react-alert-dialog";
|
|
20
|
-
import "@radix-ui/react-dialog";
|
|
21
|
-
import "@radix-ui/react-label";
|
|
22
|
-
import "@radix-ui/react-scroll-area";
|
|
23
|
-
import "@radix-ui/react-tabs";
|
|
24
|
-
import "@radix-ui/react-tooltip";
|
|
25
|
-
import "@radix-ui/react-popover";
|
|
26
|
-
import "@radix-ui/react-menubar";
|
|
27
|
-
import "@radix-ui/react-hover-card";
|
|
28
|
-
import "@radix-ui/react-select";
|
|
29
|
-
import "@radix-ui/react-dropdown-menu";
|
|
30
|
-
import "@radix-ui/react-separator";
|
|
31
|
-
import "@radix-ui/react-toast";
|
|
32
|
-
import "cmdk";
|
|
33
|
-
import "@radix-ui/react-context-menu";
|
|
34
|
-
import "react-icons-picker";
|
|
35
|
-
import "react-dom";
|
|
36
|
-
import "react-quill";
|
|
37
|
-
import "jotai";
|
|
38
|
-
import "flat-to-nested";
|
|
39
|
-
import "./Functions-7jnEwJyw.js";
|
|
40
|
-
import "redux-undo";
|
|
41
|
-
import "@chaibuilder/runtime";
|
|
42
|
-
import "lodash";
|
|
43
|
-
import "@react-hookz/web";
|
|
44
|
-
import "react-i18next";
|
|
45
|
-
const F = ({ value: u, onChange: e, id: p, onBlur: d }) => {
|
|
46
|
-
const i = w(e, 200), m = (l) => i(l.target.value);
|
|
47
|
-
return /* @__PURE__ */ t.jsx("div", { className: "mt-1.5 flex items-center gap-x-3", children: /* @__PURE__ */ t.jsx("div", { className: "flex w-3/5 flex-col", children: /* @__PURE__ */ t.jsx(
|
|
48
|
-
"input",
|
|
49
|
-
{
|
|
50
|
-
type: "color",
|
|
51
|
-
className: "text-xs p-0",
|
|
52
|
-
value: u,
|
|
53
|
-
onBlur: ({ target: { value: l } }) => d(p, l),
|
|
54
|
-
onChange: m
|
|
55
|
-
}
|
|
56
|
-
) }) });
|
|
57
|
-
}, g = [
|
|
58
|
-
{ title: "Roboto", value: "Roboto" },
|
|
59
|
-
{ title: "Open Sans", value: "Open Sans" },
|
|
60
|
-
{ title: "Montserrat", value: "Montserrat" },
|
|
61
|
-
{ title: "Lato", value: "Lato" },
|
|
62
|
-
{ title: "Poppins", value: "Poppins" },
|
|
63
|
-
{ title: "Oswald", value: "Oswald" },
|
|
64
|
-
{ title: "Raleway", value: "Raleway" },
|
|
65
|
-
{ title: "Ubuntu", value: "Ubuntu" },
|
|
66
|
-
{ title: "Nunito", value: "Nunito" },
|
|
67
|
-
{ title: "Merriweather", value: "Merriweather" },
|
|
68
|
-
{ title: "Nunito Sans", value: "Nunito Sans" },
|
|
69
|
-
{ title: "Playfair Display", value: "Playfair Display" },
|
|
70
|
-
{ title: "Rubik", value: "Rubik" },
|
|
71
|
-
{ title: "Inter", value: "Inter" },
|
|
72
|
-
{ title: "Lora", value: "Lora" },
|
|
73
|
-
{ title: "Kanit", value: "Kanit" },
|
|
74
|
-
{ title: "Fira Sans", value: "Fira Sans" },
|
|
75
|
-
{ title: "Hind", value: "Hind" },
|
|
76
|
-
{ title: "Quicksand", value: "Quicksand" },
|
|
77
|
-
{ title: "Mulish", value: "Mulish" },
|
|
78
|
-
{ title: "Barlow", value: "Barlow" },
|
|
79
|
-
{ title: "Inconsolata", value: "Inconsolata" },
|
|
80
|
-
{ title: "Titillium Web", value: "Titillium Web" },
|
|
81
|
-
{ title: "Heebo", value: "Heebo" },
|
|
82
|
-
{ title: "IBM Plex Sans", value: "IBM Plex Sans" },
|
|
83
|
-
{ title: "DM Sans", value: "DM Sans" },
|
|
84
|
-
{ title: "Nanum Gothic", value: "Nanum Gothic" },
|
|
85
|
-
{ title: "Karla", value: "Karla" },
|
|
86
|
-
{ title: "Arimo", value: "Arimo" },
|
|
87
|
-
{ title: "Cabin", value: "Cabin" },
|
|
88
|
-
{ title: "Oxygen", value: "Oxygen" },
|
|
89
|
-
{ title: "Overpass", value: "Overpass" },
|
|
90
|
-
{ title: "Assistant", value: "Assistant" },
|
|
91
|
-
{ title: "Tajawal", value: "Tajawal" },
|
|
92
|
-
{ title: "Play", value: "Play" },
|
|
93
|
-
{ title: "Exo", value: "Exo" },
|
|
94
|
-
{ title: "Cinzel", value: "Cinzel" },
|
|
95
|
-
{ title: "Faustina", value: "Faustina" },
|
|
96
|
-
{ title: "Philosopher", value: "Philosopher" },
|
|
97
|
-
{ title: "Gelasio", value: "Gelasio" },
|
|
98
|
-
{ title: "Sofia Sans Condensed", value: "Sofia Sans Condensed" },
|
|
99
|
-
{ title: "Noto Sans Devanagari", value: "Noto Sans Devanagari" },
|
|
100
|
-
{ title: "Actor", value: "Actor" },
|
|
101
|
-
{ title: "Epilogue", value: "Epilogue" },
|
|
102
|
-
{ title: "Glegoo", value: "Glegoo" },
|
|
103
|
-
{ title: "Overlock", value: "Overlock" },
|
|
104
|
-
{ title: "Lustria", value: "Lustria" },
|
|
105
|
-
{ title: "Ovo", value: "Ovo" },
|
|
106
|
-
{ title: "Suranna", value: "Suranna" }
|
|
107
|
-
], Bt = () => {
|
|
108
|
-
const u = k("onSaveBrandingOptions", async () => {
|
|
109
|
-
}), [e, p] = D(), [d] = P(), i = c.useRef(e);
|
|
110
|
-
c.useEffect(() => () => {
|
|
111
|
-
L(e, i.current) || u(i.current);
|
|
112
|
-
}, []);
|
|
113
|
-
const m = ({ formData: o }, s) => {
|
|
114
|
-
s && (p(o), i.current = o);
|
|
115
|
-
}, {
|
|
116
|
-
bodyFont: l,
|
|
117
|
-
headingFont: h,
|
|
118
|
-
primaryColor: y,
|
|
119
|
-
bodyTextDarkColor: x,
|
|
120
|
-
bodyTextLightColor: b,
|
|
121
|
-
bodyBgDarkColor: C,
|
|
122
|
-
secondaryColor: S,
|
|
123
|
-
bodyBgLightColor: B,
|
|
124
|
-
roundedCorners: O
|
|
125
|
-
} = e;
|
|
126
|
-
let r = {
|
|
127
|
-
headingFont: f({
|
|
128
|
-
title: "Heading font",
|
|
129
|
-
default: h,
|
|
130
|
-
options: g
|
|
131
|
-
}),
|
|
132
|
-
bodyFont: f({
|
|
133
|
-
title: "Body font",
|
|
134
|
-
default: l,
|
|
135
|
-
options: g
|
|
136
|
-
}),
|
|
137
|
-
roundedCorners: R({
|
|
138
|
-
title: "Rounded Corner",
|
|
139
|
-
default: parseInt(O || 5, 10)
|
|
140
|
-
}),
|
|
141
|
-
primaryColor: a({ title: "Primary", default: y }),
|
|
142
|
-
secondaryColor: a({ title: "Secondary", default: S })
|
|
143
|
-
};
|
|
144
|
-
d || (r = {
|
|
145
|
-
...r,
|
|
146
|
-
bodyBgLightColor: a({
|
|
147
|
-
title: "Body Background (Light)",
|
|
148
|
-
default: B
|
|
149
|
-
}),
|
|
150
|
-
bodyBgDarkColor: a({
|
|
151
|
-
title: "Body Background (Dark)",
|
|
152
|
-
default: C
|
|
153
|
-
}),
|
|
154
|
-
bodyTextLightColor: a({
|
|
155
|
-
title: "Body Text (Light)",
|
|
156
|
-
default: x
|
|
157
|
-
}),
|
|
158
|
-
bodyTextDarkColor: a({
|
|
159
|
-
title: "Body Text (Dark)",
|
|
160
|
-
default: b
|
|
161
|
-
})
|
|
162
|
-
});
|
|
163
|
-
const n = {
|
|
164
|
-
type: "object",
|
|
165
|
-
properties: {}
|
|
166
|
-
}, v = {};
|
|
167
|
-
return Object.keys(r).forEach((o) => {
|
|
168
|
-
const s = r[o];
|
|
169
|
-
return n.properties || (n.properties = {}), n.properties[o] = s.schema, v[o] = s.uiSchema, !0;
|
|
170
|
-
}), /* @__PURE__ */ t.jsxs("div", { className: "flex h-full select-none flex-col", children: [
|
|
171
|
-
/* @__PURE__ */ t.jsx("div", { className: "rounded-md bg-background/30 p-1", children: /* @__PURE__ */ t.jsx("h1", { className: "px-1 font-semibold", children: "Branding Options" }) }),
|
|
172
|
-
/* @__PURE__ */ t.jsx("div", { className: "-mx-2", children: /* @__PURE__ */ t.jsx(
|
|
173
|
-
j,
|
|
174
|
-
{
|
|
175
|
-
widgets: {
|
|
176
|
-
color: F
|
|
177
|
-
},
|
|
178
|
-
idSeparator: ".",
|
|
179
|
-
autoComplete: "off",
|
|
180
|
-
omitExtraData: !0,
|
|
181
|
-
liveOmit: !0,
|
|
182
|
-
liveValidate: !0,
|
|
183
|
-
uiSchema: v,
|
|
184
|
-
schema: n,
|
|
185
|
-
formData: e,
|
|
186
|
-
validator: N,
|
|
187
|
-
onChange: m
|
|
188
|
-
}
|
|
189
|
-
) })
|
|
190
|
-
] });
|
|
191
|
-
};
|
|
192
|
-
export {
|
|
193
|
-
Bt as default
|
|
194
|
-
};
|