@chaibuilder/sdk 1.2.34 → 1.2.35
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/{AddBlocks-RmEkZXdE.js → AddBlocks-fpRgZNZT.js} +5 -5
- package/dist/{AddBlocks-XYCWUol8.cjs → AddBlocks-i2OFXcGZ.cjs} +1 -1
- package/dist/{BrandingOptions-qnaKl27s.cjs → BrandingOptions-BuV0XItY.cjs} +1 -1
- package/dist/{BrandingOptions-TnzCIC7A.js → BrandingOptions-RxIUds41.js} +1 -1
- package/dist/{CanvasArea-SeSRWHy0.js → CanvasArea-C1VfoHjl.js} +4 -4
- package/dist/{CanvasArea-iIwERFUC.cjs → CanvasArea-a-I0uB7y.cjs} +2 -2
- package/dist/{ChaiBuilderEditor-y1NxvXJ7.js → ChaiBuilderEditor-ChKigulx.js} +22974 -22885
- package/dist/{ChaiBuilderEditor-YqEKonJ_.cjs → ChaiBuilderEditor-pWAMhLiq.cjs} +68 -68
- package/dist/{CurrentPage-TNff16tH.cjs → CurrentPage-JgJ2XITk.cjs} +1 -1
- package/dist/{CurrentPage-9KDre_9q.js → CurrentPage-tWXo7zPq.js} +2 -2
- package/dist/{ListTree-H2WaKwOs.js → ListTree-_JJ1Ka3e.js} +12 -12
- package/dist/{ListTree-GxCAsv2Y.cjs → ListTree-rJ4eHyKn.cjs} +1 -1
- package/dist/{PagesPanel-jHMmJEtv.js → PagesPanel-bwRvd7HB.js} +3 -3
- package/dist/{PagesPanel-5DRsqV-G.cjs → PagesPanel-zd48fj10.cjs} +1 -1
- package/dist/{ProjectPanel-uxhq_D3j.js → ProjectPanel-S7X2GDYk.js} +3 -3
- package/dist/{ProjectPanel-CDnnGpVo.cjs → ProjectPanel-sIURK9WR.cjs} +1 -1
- package/dist/{Settings-yqZksAbO.js → Settings-59DRCnXh.js} +2 -2
- package/dist/{Settings-nGnVavh4.cjs → Settings-Lw_UvEWj.cjs} +1 -1
- package/dist/{SidePanels-33KNaSS3.cjs → SidePanels-FX3WxtRi.cjs} +1 -1
- package/dist/{SidePanels-1gwirESt.js → SidePanels-QwN_fVWJ.js} +2 -2
- package/dist/Topbar-_k5gwR_4.js +133 -0
- package/dist/Topbar-cRmIAzUg.cjs +1 -0
- package/dist/{UnsplashImages-LLu2wFeN.js → UnsplashImages-hI0Zvl2t.js} +4 -4
- package/dist/{UnsplashImages-lnz6NfSD.cjs → UnsplashImages-texUmBiW.cjs} +1 -1
- package/dist/{UploadImages-FtvaDyk9.js → UploadImages-diXySdpc.js} +1 -1
- package/dist/{UploadImages-3nl_4mDf.cjs → UploadImages-kRSLsKBv.cjs} +1 -1
- package/dist/{add-page-modal-V9DTBMmY.js → add-page-modal-Md_OotSU.js} +3 -3
- package/dist/{add-page-modal-sIZk552b.cjs → add-page-modal-R9nsF97c.cjs} +1 -1
- package/dist/{confirm-alert-sI4pItIN.js → confirm-alert-DS8nMVJP.js} +1 -1
- package/dist/{confirm-alert-Uzq5XNGt.cjs → confirm-alert-gKJ-H8aH.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{delete-page-modal-XrIpujav.js → delete-page-modal-PVpCkC06.js} +2 -2
- package/dist/{delete-page-modal-UminFzYh.cjs → delete-page-modal-ez831xRV.cjs} +1 -1
- package/dist/email.cjs +1 -1
- package/dist/email.js +1 -1
- package/dist/{form-q7lxaK3j.cjs → form-6D7DLOsP.cjs} +1 -1
- package/dist/{form-dQQ2tTRZ.js → form-BcCd02eY.js} +1 -1
- package/dist/{index-eYwpNzUl.cjs → index-F_-wLCKB.cjs} +1 -1
- package/dist/{index-OsS2_gM8.js → index-NmcmhDTV.js} +2 -2
- package/dist/{page-viewer-AoJ5HU6j.js → page-viewer-1bDdfbfY.js} +3 -3
- package/dist/{page-viewer-FzhqSyNO.cjs → page-viewer-MyIBh0H7.cjs} +1 -1
- package/dist/{project-general-setting-WzJ8U1OW.cjs → project-general-setting-1UvYceGY.cjs} +1 -1
- package/dist/{project-general-setting-g3YJYszB.js → project-general-setting-cAuIqXqs.js} +3 -3
- package/dist/{project-seo-setting-1sLmV-wv.js → project-seo-setting-DIspBN3U.js} +2 -2
- package/dist/{project-seo-setting-GuObNafp.cjs → project-seo-setting-ePXNygH3.cjs} +1 -1
- package/dist/{single-page-detail-WGars7Tl.cjs → single-page-detail-6M4by4GP.cjs} +1 -1
- package/dist/{single-page-detail-sQ3BH6Rc.js → single-page-detail-VEdxOlo1.js} +4 -4
- package/dist/studio.cjs +1 -1
- package/dist/studio.js +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +101 -101
- package/dist/useCanvasSettings-YdWIGhpI.js +6 -0
- package/dist/{useCanvasSettings-QcsmJd9b.cjs → useCanvasSettings-xq3gcMsb.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Topbar-NHF8D1di.js +0 -137
- package/dist/Topbar-Wwdd9Flx.cjs +0 -1
- package/dist/useCanvasSettings-XwFRrknO.js +0 -6
package/dist/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b3 as U, b6 as W, b4 as X, b5 as Z, bm as J, bz as K, A as N, a3 as Y, g as aa, b as ea, e as oa, f as ta, c as ra, d as sa, a as na, bn as ia, af as ba, B as pa, bg as ma, bj as ua, bi as la, bl as ca, bh as da, bB as ga, aR as Ca, ca as Ma, aU as Sa, aV as Da, aS as Ta, aW as xa, aT as Aa, cc as ha, cb as wa, br as Ia, cd as Pa, bq as ka, ci as Fa, bp as Ga, cf as La, cj as Ra, cn as va, ce as Ha, cg as Va, ch as Ba, ck as fa, cl as ja, cm as ya, bs as Ea, Z as _a, _ as $a, a1 as qa, aX as za, $ as Oa, a0 as Qa, ab as Ua, av as Wa, aA as Xa, ax as Za, bb as Ja, bc as Ka, ay as Na, c2 as Ya, c6 as ae, c1 as ee, az as oe, bd as te, c3 as re, c4 as se, c5 as ne, aw as ie, as as be, au as pe, at as me, a$ as ue, b0 as le, b8 as ce, aq as de, b1 as ge, bE as Ce, bL as Me, bH as Se, bR as De, bI as Te, bK as xe, bF as Ae, bO as he, bM as we, bN as Ie, bJ as Pe, bT as ke, bS as Fe, bP as Ge, bQ as Le, bG as Re, aO as ve, aQ as He, aP as Ve, a_ as Be, ba as fe, bC as je, a6 as ye, a9 as Ee, am as _e, aa as $e, an as qe, bU as ze, a7 as Oe, a8 as Qe, ap as Ue, bV as We, bX as Xe, bY as Ze, c0 as Je, b_ as Ke, bZ as Ne, b$ as Ye, bW as ao, ah as eo, ar as oo, ai as to, al as ro, aj as so, ak as no, bk as io, c9 as bo, bw as po, ac as mo, ae as uo, b9 as lo, bD as co, ad as go, bA as Co, by as Mo, c7 as So, c8 as Do, bx as To, b7 as xo } from "./ChaiBuilderEditor-ChKigulx.js";
|
|
2
2
|
import "./jsx-runtime-WbnYoNE9.js";
|
|
3
3
|
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
4
4
|
import "react";
|
|
@@ -44,17 +44,17 @@ import "react-hotkeys-hook";
|
|
|
44
44
|
import "lodash";
|
|
45
45
|
import "lucide-react";
|
|
46
46
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
U as Accordion,
|
|
48
|
+
W as AccordionContent,
|
|
49
|
+
X as AccordionItem,
|
|
50
|
+
Z as AccordionTrigger,
|
|
51
51
|
J as Alert,
|
|
52
52
|
K as AlertDescription,
|
|
53
|
-
|
|
53
|
+
N as AlertDialog,
|
|
54
54
|
Y as AlertDialogAction,
|
|
55
55
|
aa as AlertDialogCancel,
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
ea as AlertDialogContent,
|
|
57
|
+
oa as AlertDialogDescription,
|
|
58
58
|
ta as AlertDialogFooter,
|
|
59
59
|
ra as AlertDialogHeader,
|
|
60
60
|
sa as AlertDialogTitle,
|
|
@@ -80,105 +80,105 @@ export {
|
|
|
80
80
|
Ia as ContextMenu,
|
|
81
81
|
Pa as ContextMenuCheckboxItem,
|
|
82
82
|
ka as ContextMenuContent,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
Fa as ContextMenuGroup,
|
|
84
|
+
Ga as ContextMenuItem,
|
|
85
|
+
La as ContextMenuLabel,
|
|
86
|
+
Ra as ContextMenuPortal,
|
|
87
|
+
va as ContextMenuRadioGroup,
|
|
88
88
|
Ha as ContextMenuRadioItem,
|
|
89
89
|
Va as ContextMenuSeparator,
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
Ba as ContextMenuShortcut,
|
|
91
|
+
fa as ContextMenuSub,
|
|
92
92
|
ja as ContextMenuSubContent,
|
|
93
93
|
ya as ContextMenuSubTrigger,
|
|
94
94
|
Ea as ContextMenuTrigger,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
_a as Dialog,
|
|
96
|
+
$a as DialogContent,
|
|
97
|
+
qa as DialogDescription,
|
|
98
|
+
za as DialogFooter,
|
|
99
|
+
Oa as DialogHeader,
|
|
100
|
+
Qa as DialogTitle,
|
|
101
|
+
Ua as DialogTrigger,
|
|
102
|
+
Wa as DropdownMenu,
|
|
103
|
+
Xa as DropdownMenuCheckboxItem,
|
|
104
|
+
Za as DropdownMenuContent,
|
|
105
105
|
Ja as DropdownMenuGroup,
|
|
106
106
|
Ka as DropdownMenuItem,
|
|
107
|
-
|
|
107
|
+
Na as DropdownMenuLabel,
|
|
108
108
|
Ya as DropdownMenuPortal,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
$
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
109
|
+
ae as DropdownMenuRadioGroup,
|
|
110
|
+
ee as DropdownMenuRadioItem,
|
|
111
|
+
oe as DropdownMenuSeparator,
|
|
112
|
+
te as DropdownMenuShortcut,
|
|
113
|
+
re as DropdownMenuSub,
|
|
114
|
+
se as DropdownMenuSubContent,
|
|
115
|
+
ne as DropdownMenuSubTrigger,
|
|
116
|
+
ie as DropdownMenuTrigger,
|
|
117
|
+
be as HoverCard,
|
|
118
|
+
pe as HoverCardContent,
|
|
119
|
+
me as HoverCardTrigger,
|
|
120
|
+
ue as IconPickerField,
|
|
121
|
+
le as ImagePickerField,
|
|
122
|
+
ce as Input,
|
|
123
|
+
de as Label,
|
|
124
|
+
ge as LinkField,
|
|
125
|
+
Ce as Menubar,
|
|
126
|
+
Me as MenubarCheckboxItem,
|
|
127
|
+
Se as MenubarContent,
|
|
128
|
+
De as MenubarGroup,
|
|
129
|
+
Te as MenubarItem,
|
|
130
|
+
xe as MenubarLabel,
|
|
131
|
+
Ae as MenubarMenu,
|
|
132
|
+
he as MenubarPortal,
|
|
133
|
+
we as MenubarRadioGroup,
|
|
134
|
+
Ie as MenubarRadioItem,
|
|
135
|
+
Pe as MenubarSeparator,
|
|
136
|
+
ke as MenubarShortcut,
|
|
137
|
+
Fe as MenubarSub,
|
|
138
|
+
Ge as MenubarSubContent,
|
|
139
|
+
Le as MenubarSubTrigger,
|
|
140
|
+
Re as MenubarTrigger,
|
|
141
|
+
ve as Popover,
|
|
142
|
+
He as PopoverContent,
|
|
143
|
+
Ve as PopoverTrigger,
|
|
144
|
+
Be as RTEField,
|
|
145
|
+
fe as ScrollArea,
|
|
146
|
+
je as ScrollBar,
|
|
147
|
+
ye as Select,
|
|
148
|
+
Ee as SelectContent,
|
|
149
|
+
_e as SelectGroup,
|
|
150
|
+
$e as SelectItem,
|
|
151
|
+
qe as SelectLabel,
|
|
152
|
+
ze as SelectSeparator,
|
|
153
|
+
Oe as SelectTrigger,
|
|
154
|
+
Qe as SelectValue,
|
|
155
|
+
Ue as Separator,
|
|
156
|
+
We as Sheet,
|
|
157
|
+
Xe as SheetClose,
|
|
158
|
+
Ze as SheetContent,
|
|
159
|
+
Je as SheetDescription,
|
|
160
|
+
Ke as SheetFooter,
|
|
161
|
+
Ne as SheetHeader,
|
|
162
|
+
Ye as SheetTitle,
|
|
163
|
+
ao as SheetTrigger,
|
|
164
|
+
eo as Skeleton,
|
|
165
|
+
oo as Switch,
|
|
166
|
+
to as Tabs,
|
|
167
|
+
ro as TabsContent,
|
|
168
|
+
so as TabsList,
|
|
169
|
+
no as TabsTrigger,
|
|
170
|
+
io as Textarea,
|
|
171
|
+
bo as Toaster,
|
|
172
|
+
po as Toggle,
|
|
173
|
+
mo as Tooltip,
|
|
174
|
+
uo as TooltipContent,
|
|
175
|
+
lo as TooltipPortal,
|
|
176
|
+
co as TooltipProvider,
|
|
177
|
+
go as TooltipTrigger,
|
|
178
|
+
Co as badgeVariants,
|
|
179
|
+
Mo as buttonVariants,
|
|
180
|
+
So as reducer,
|
|
181
|
+
Do as toast,
|
|
182
|
+
To as toggleVariants,
|
|
183
|
+
xo as useToast
|
|
184
184
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("jotai"),s=require("./ChaiBuilderEditor-
|
|
1
|
+
"use strict";const t=require("jotai"),s=require("./ChaiBuilderEditor-pWAMhLiq.cjs"),e=()=>t.useAtom(s.canvasSettingsAtom);exports.useCanvasSettings=e;
|
package/package.json
CHANGED
package/dist/Topbar-NHF8D1di.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { j as c } from "./jsx-runtime-WbnYoNE9.js";
|
|
2
|
-
import z, { useMemo as o, Suspense as n } from "react";
|
|
3
|
-
import { FontFamilyIcon as M, EyeOpenIcon as u } from "@radix-ui/react-icons";
|
|
4
|
-
import { h as r, a6 as d, a7 as C, a8 as L, a9 as m, am as p, an as F, aa as i, G as w, V as B, B as g, E as f, ah as v, ao as x } from "./ChaiBuilderEditor-y1NxvXJ7.js";
|
|
5
|
-
import { useTranslation as e } from "react-i18next";
|
|
6
|
-
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
7
|
-
import "clsx";
|
|
8
|
-
import "react-dom";
|
|
9
|
-
import "@radix-ui/react-scroll-area";
|
|
10
|
-
import "@floating-ui/react-dom";
|
|
11
|
-
import "jotai";
|
|
12
|
-
import "i18next";
|
|
13
|
-
import "flagged";
|
|
14
|
-
import "lodash-es";
|
|
15
|
-
import "./STRINGS--j49GZJP.js";
|
|
16
|
-
import "./Functions-7jnEwJyw.js";
|
|
17
|
-
import "tailwind-merge";
|
|
18
|
-
import "@chaibuilder/runtime";
|
|
19
|
-
import "@react-hookz/web";
|
|
20
|
-
import "./MODIFIERS-cBT31iqE.js";
|
|
21
|
-
import "@radix-ui/react-toggle";
|
|
22
|
-
import "class-variance-authority";
|
|
23
|
-
import "./Class-6Hz2KzYb.js";
|
|
24
|
-
import "@radix-ui/react-switch";
|
|
25
|
-
import "@radix-ui/react-slot";
|
|
26
|
-
import "@radix-ui/react-accordion";
|
|
27
|
-
import "@radix-ui/react-alert-dialog";
|
|
28
|
-
import "@radix-ui/react-dialog";
|
|
29
|
-
import "@radix-ui/react-label";
|
|
30
|
-
import "@radix-ui/react-tabs";
|
|
31
|
-
import "@radix-ui/react-tooltip";
|
|
32
|
-
import "@radix-ui/react-popover";
|
|
33
|
-
import "@radix-ui/react-menubar";
|
|
34
|
-
import "@radix-ui/react-hover-card";
|
|
35
|
-
import "@radix-ui/react-select";
|
|
36
|
-
import "@radix-ui/react-dropdown-menu";
|
|
37
|
-
import "@radix-ui/react-separator";
|
|
38
|
-
import "@radix-ui/react-toast";
|
|
39
|
-
import "cmdk";
|
|
40
|
-
import "@radix-ui/react-context-menu";
|
|
41
|
-
import "react-icons-picker";
|
|
42
|
-
import "react-quill";
|
|
43
|
-
import "react-hotkeys-hook";
|
|
44
|
-
import "lodash";
|
|
45
|
-
import "lucide-react";
|
|
46
|
-
const S = () => r("languages", ["en"]), A = () => S().length === 1 ? null : /* @__PURE__ */ c.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ c.jsxs(d, { children: [
|
|
47
|
-
/* @__PURE__ */ c.jsx(C, { className: "w-[150px] border-0", children: /* @__PURE__ */ c.jsx(
|
|
48
|
-
L,
|
|
49
|
-
{
|
|
50
|
-
placeholder: /* @__PURE__ */ c.jsxs("span", { className: "flex items-center", children: [
|
|
51
|
-
/* @__PURE__ */ c.jsx(M, { className: "h-4 w-4" }),
|
|
52
|
-
" English(US)"
|
|
53
|
-
] })
|
|
54
|
-
}
|
|
55
|
-
) }),
|
|
56
|
-
/* @__PURE__ */ c.jsx(m, { children: /* @__PURE__ */ c.jsxs(p, { children: [
|
|
57
|
-
/* @__PURE__ */ c.jsx(F, { children: "Fruits" }),
|
|
58
|
-
/* @__PURE__ */ c.jsx(i, { value: "apple", children: "Apple" }),
|
|
59
|
-
/* @__PURE__ */ c.jsx(i, { value: "banana", children: "Banana" }),
|
|
60
|
-
/* @__PURE__ */ c.jsx(i, { value: "blueberry", children: "Blueberry" }),
|
|
61
|
-
/* @__PURE__ */ c.jsx(i, { value: "grapes", children: "Grapes" }),
|
|
62
|
-
/* @__PURE__ */ c.jsx(i, { value: "pineapple", children: "Pineapple" })
|
|
63
|
-
] }) })
|
|
64
|
-
] }) });
|
|
65
|
-
function R(l) {
|
|
66
|
-
return w({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" } }] })(l);
|
|
67
|
-
}
|
|
68
|
-
const k = () => {
|
|
69
|
-
const { savePage: l, saveState: t } = B(), { t: s } = e(), h = r("hideSaveButton", !1), a = o(() => {
|
|
70
|
-
switch (t) {
|
|
71
|
-
case "SAVING":
|
|
72
|
-
return "animate-pulse bg-gray-300 text-gray-900";
|
|
73
|
-
case "SAVED":
|
|
74
|
-
return "bg-green-500 text-white hover:bg-green-600 hover:text-white";
|
|
75
|
-
default:
|
|
76
|
-
return "bg-gray-200 text-gray-500 hover:bg-gray-100";
|
|
77
|
-
}
|
|
78
|
-
}, [t]);
|
|
79
|
-
if (h)
|
|
80
|
-
return null;
|
|
81
|
-
const H = /* @__PURE__ */ c.jsxs(
|
|
82
|
-
g,
|
|
83
|
-
{
|
|
84
|
-
disabled: t === "SAVING",
|
|
85
|
-
onClick: (V) => {
|
|
86
|
-
V.preventDefault(), l();
|
|
87
|
-
},
|
|
88
|
-
className: `flex h-auto w-fit items-center gap-x-2 rounded-full p-1.5 px-3 ${a}`,
|
|
89
|
-
size: "sm",
|
|
90
|
-
variant: "outline",
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ c.jsx(R, { className: "text-lg" }),
|
|
93
|
-
/* @__PURE__ */ c.jsx("span", { className: "text-sm", children: t === "SAVING" ? "Saving..." : s(t === "SAVED" ? "Saved" : "Unsaved") })
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
return /* @__PURE__ */ c.jsx("div", { className: "flex items-center", children: H });
|
|
98
|
-
}, P = function() {
|
|
99
|
-
const t = r("previewComponent"), [, s] = f(), { t: h } = e();
|
|
100
|
-
return t ? /* @__PURE__ */ c.jsxs(
|
|
101
|
-
g,
|
|
102
|
-
{
|
|
103
|
-
onClick: (a) => {
|
|
104
|
-
a.preventDefault(), s(!0);
|
|
105
|
-
},
|
|
106
|
-
className: "flex h-auto w-fit items-center gap-x-2 rounded-full bg-gray-200 px-3 py-1",
|
|
107
|
-
size: "sm",
|
|
108
|
-
variant: "outline",
|
|
109
|
-
children: [
|
|
110
|
-
/* @__PURE__ */ c.jsx(u, { className: "text-xs" }),
|
|
111
|
-
/* @__PURE__ */ c.jsx("span", { className: "text-sm", children: h("Preview") })
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
) : null;
|
|
115
|
-
}, w1 = () => {
|
|
116
|
-
const l = r("topBarComponents.left", []), t = r("topBarComponents.center", []), s = r("topBarComponents.right", []), h = r("editable", !0);
|
|
117
|
-
return /* @__PURE__ */ c.jsxs("div", { className: "flex h-14 items-center justify-between px-2", children: [
|
|
118
|
-
/* @__PURE__ */ c.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ c.jsx("div", { className: "flex items-center space-x-2 font-bold", children: z.Children.toArray(
|
|
119
|
-
l.map((a) => /* @__PURE__ */ c.jsx(n, { fallback: /* @__PURE__ */ c.jsx(v, { className: "h-10" }), children: /* @__PURE__ */ c.jsx(a, {}) }))
|
|
120
|
-
) }) }),
|
|
121
|
-
/* @__PURE__ */ c.jsx("div", { className: "flex items-center space-x-2", children: z.Children.toArray(
|
|
122
|
-
t.map((a) => /* @__PURE__ */ c.jsx(n, { fallback: /* @__PURE__ */ c.jsx(v, { className: "h-10" }), children: /* @__PURE__ */ c.jsx(a, {}) }))
|
|
123
|
-
) }),
|
|
124
|
-
/* @__PURE__ */ c.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
125
|
-
/* @__PURE__ */ c.jsx(A, {}),
|
|
126
|
-
/* @__PURE__ */ c.jsx(P, {}),
|
|
127
|
-
/* @__PURE__ */ c.jsx(x, { orientation: "vertical" }),
|
|
128
|
-
h ? /* @__PURE__ */ c.jsx(k, {}) : null,
|
|
129
|
-
z.Children.toArray(
|
|
130
|
-
s.map((a) => /* @__PURE__ */ c.jsx(n, { fallback: /* @__PURE__ */ c.jsx(v, { className: "h-10" }), children: /* @__PURE__ */ c.jsx(a, {}) }))
|
|
131
|
-
)
|
|
132
|
-
] })
|
|
133
|
-
] });
|
|
134
|
-
};
|
|
135
|
-
export {
|
|
136
|
-
w1 as default
|
|
137
|
-
};
|
package/dist/Topbar-Wwdd9Flx.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-Z_BpKhVy.cjs"),r=require("react"),h=require("@radix-ui/react-icons"),t=require("./ChaiBuilderEditor-YqEKonJ_.cjs"),i=require("react-i18next");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("clsx");require("react-dom");require("@radix-ui/react-scroll-area");require("@floating-ui/react-dom");require("jotai");require("i18next");require("flagged");require("lodash-es");require("./STRINGS-gPz7CUOk.cjs");require("./Functions-N3yhPYKY.cjs");require("tailwind-merge");require("@chaibuilder/runtime");require("@react-hookz/web");require("./MODIFIERS-YPHRtwrM.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("./Class-Zc8hpE7f.cjs");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-menubar");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-quill");require("react-hotkeys-hook");require("lodash");require("lucide-react");const v=()=>t.useBuilderProp("languages",["en"]),g=()=>v().length===1?null:c.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:c.jsxRuntimeExports.jsxs(t.Select,{children:[c.jsxRuntimeExports.jsx(t.SelectTrigger,{className:"w-[150px] border-0",children:c.jsxRuntimeExports.jsx(t.SelectValue,{placeholder:c.jsxRuntimeExports.jsxs("span",{className:"flex items-center",children:[c.jsxRuntimeExports.jsx(h.FontFamilyIcon,{className:"h-4 w-4"})," English(US)"]})})}),c.jsxRuntimeExports.jsx(t.SelectContent,{children:c.jsxRuntimeExports.jsxs(t.SelectGroup,{children:[c.jsxRuntimeExports.jsx(t.SelectLabel,{children:"Fruits"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"apple",children:"Apple"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"banana",children:"Banana"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"blueberry",children:"Blueberry"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"grapes",children:"Grapes"}),c.jsxRuntimeExports.jsx(t.SelectItem,{value:"pineapple",children:"Pineapple"})]})})]})});function H(l){return t.GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"}}]})(l)}const V=()=>{const{savePage:l,saveState:a}=t.useSavePage(),{t:s}=i.useTranslation(),e=t.useBuilderProp("hideSaveButton",!1),n=r.useMemo(()=>{switch(a){case"SAVING":return"animate-pulse bg-gray-300 text-gray-900";case"SAVED":return"bg-green-500 text-white hover:bg-green-600 hover:text-white";default:return"bg-gray-200 text-gray-500 hover:bg-gray-100"}},[a]);if(e)return null;const o=c.jsxRuntimeExports.jsxs(t.Button,{disabled:a==="SAVING",onClick:z=>{z.preventDefault(),l()},className:`flex h-auto w-fit items-center gap-x-2 rounded-full p-1.5 px-3 ${n}`,size:"sm",variant:"outline",children:[c.jsxRuntimeExports.jsx(H,{className:"text-lg"}),c.jsxRuntimeExports.jsx("span",{className:"text-sm",children:a==="SAVING"?"Saving...":s(a==="SAVED"?"Saved":"Unsaved")})]});return c.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:o})},M=function(){const a=t.useBuilderProp("previewComponent"),[,s]=t.usePreviewMode(),{t:e}=i.useTranslation();return a?c.jsxRuntimeExports.jsxs(t.Button,{onClick:n=>{n.preventDefault(),s(!0)},className:"flex h-auto w-fit items-center gap-x-2 rounded-full bg-gray-200 px-3 py-1",size:"sm",variant:"outline",children:[c.jsxRuntimeExports.jsx(h.EyeOpenIcon,{className:"text-xs"}),c.jsxRuntimeExports.jsx("span",{className:"text-sm",children:e("Preview")})]}):null},u=()=>{const l=t.useBuilderProp("topBarComponents.left",[]),a=t.useBuilderProp("topBarComponents.center",[]),s=t.useBuilderProp("topBarComponents.right",[]),e=t.useBuilderProp("editable",!0);return c.jsxRuntimeExports.jsxs("div",{className:"flex h-14 items-center justify-between px-2",children:[c.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:c.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2 font-bold",children:r.Children.toArray(l.map(n=>c.jsxRuntimeExports.jsx(r.Suspense,{fallback:c.jsxRuntimeExports.jsx(t.Skeleton,{className:"h-10"}),children:c.jsxRuntimeExports.jsx(n,{})})))})}),c.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:r.Children.toArray(a.map(n=>c.jsxRuntimeExports.jsx(r.Suspense,{fallback:c.jsxRuntimeExports.jsx(t.Skeleton,{className:"h-10"}),children:c.jsxRuntimeExports.jsx(n,{})})))}),c.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsxRuntimeExports.jsx(g,{}),c.jsxRuntimeExports.jsx(M,{}),c.jsxRuntimeExports.jsx(t.Separator,{orientation:"vertical"}),e?c.jsxRuntimeExports.jsx(V,{}):null,r.Children.toArray(s.map(n=>c.jsxRuntimeExports.jsx(r.Suspense,{fallback:c.jsxRuntimeExports.jsx(t.Skeleton,{className:"h-10"}),children:c.jsxRuntimeExports.jsx(n,{})})))]})]})};exports.default=u;
|