@chaibuilder/sdk 1.2.65 → 1.2.66
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-Mm5byzEC.js +124 -0
- package/dist/AddBlocks-jaxiAG4L.cjs +1 -0
- package/dist/CanvasArea-8NXGRRYC.js +137 -0
- package/dist/CanvasArea-SkeoJz9W.cjs +1 -0
- package/dist/{CodeEditor-Qff4q7sx.js → CodeEditor-3l-mFvg4.js} +61 -46
- package/dist/CodeEditor-o-CkvDnY.cjs +1 -0
- package/dist/STRINGS--j49GZJP.js +7 -0
- package/dist/STRINGS-gPz7CUOk.cjs +1 -0
- package/dist/SettingsPanel-2uYGx-MQ.cjs +1 -0
- package/dist/SettingsPanel-Q3xQQm81.js +82 -0
- package/dist/{SidePanels-ijaUKSek.js → SidePanels-JyziIpDA.js} +87 -92
- package/dist/SidePanels-d04PONzN.cjs +1 -0
- package/dist/{Topbar-vHlnfxPs.js → Topbar-Xgd6YI66.js} +47 -51
- package/dist/Topbar-eIenyfZu.cjs +1 -0
- package/dist/UILibrariesPanel-ADjJse3_.cjs +1 -0
- package/dist/{UILibrariesPanel-NVUMUPUj.js → UILibrariesPanel-a7TrMuAU.js} +82 -90
- package/dist/{UnsplashImages-UkHihhA5.js → UnsplashImages-6Bj8nQ8n.js} +73 -57
- package/dist/UnsplashImages-hLdMtY12.cjs +1 -0
- package/dist/{UploadImages-HtuJZJlo.js → UploadImages-4PxhlZMB.js} +58 -44
- package/dist/UploadImages-uL2R7fju.cjs +1 -0
- package/dist/badge-7BVT3zxN.cjs +1 -0
- package/dist/badge-pJqQSA13.js +23 -0
- package/dist/context-menu-_8TFbFEJ.cjs +1 -0
- package/dist/context-menu-sks9vdzC.js +906 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +45 -20
- package/dist/core.js +85 -86
- package/dist/iconBase-vJD0OXxU.cjs +1 -0
- package/dist/iconBase-zweRWSz0.js +323 -0
- package/dist/index-Dgo2PNEV.js +33210 -0
- package/dist/index-jhNzBWrV.cjs +223 -0
- package/dist/jsx-runtime-JYMCiFoE.cjs +27 -0
- package/dist/{jsx-runtime-WbnYoNE9.js → jsx-runtime-Sp0orL4X.js} +106 -109
- package/dist/plugin-P0tpo_XZ.cjs +1 -0
- package/dist/plugin-_F-KZp1i.cjs +1 -0
- package/dist/plugin-f5uJtdXY.js +43 -0
- package/dist/plugin-sJ3Hzvpv.js +57 -0
- package/dist/render.cjs +3 -1
- package/dist/render.d.ts +19 -52
- package/dist/render.js +136 -183
- package/dist/select-JW3OMYm-.js +75 -0
- package/dist/select-fXj5tdMX.cjs +1 -0
- package/dist/separator-hT24N-xp.cjs +1 -0
- package/dist/separator-sgwOa1FE.js +18 -0
- package/dist/style.css +1 -1
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.d.ts +41 -1
- package/dist/tailwind.js +16 -8
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +0 -10
- package/dist/ui.js +345 -163
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.d.ts +1 -1
- package/dist/web-blocks.js +489 -724
- package/package.json +15 -45
- package/dist/CanvasArea-fSdH_RiN.cjs +0 -1
- package/dist/CanvasArea-ut5yknzX.js +0 -168
- package/dist/CodeEditor-ypUx3RAV.cjs +0 -1
- package/dist/CurrentPage-jHSVy3hq.js +0 -120
- package/dist/CurrentPage-p_AM4lrF.cjs +0 -1
- package/dist/Functions-7jnEwJyw.js +0 -15
- package/dist/Functions-N3yhPYKY.cjs +0 -1
- package/dist/MODIFIERS-fd5XOmum.js +0 -60
- package/dist/MODIFIERS-mVmfEGgo.cjs +0 -1
- package/dist/PagesPanel-U3InJ9Db.js +0 -78
- package/dist/PagesPanel-wqDb4D-x.cjs +0 -1
- package/dist/ProjectPanel-XODJTO4J.js +0 -99
- package/dist/ProjectPanel-fWESzHr6.cjs +0 -1
- package/dist/SidePanels-lrMQqc0h.cjs +0 -1
- package/dist/Topbar-RrCDxd0i.cjs +0 -1
- package/dist/UILibrariesPanel-7btHgBD0.cjs +0 -1
- package/dist/UnsplashImages-6UjgojvF.cjs +0 -1
- package/dist/UploadImages-3h0cRsvr.cjs +0 -1
- package/dist/_commonjsHelpers-UyOWmZb0.js +0 -8
- package/dist/_commonjsHelpers-wDK0ZLPo.cjs +0 -1
- package/dist/add-page-modal-RwIj1FxH.cjs +0 -1
- package/dist/add-page-modal-TOfMfmPA.js +0 -115
- package/dist/confirm-alert-eIp2cAkc.js +0 -60
- package/dist/confirm-alert-v1lG8ex4.cjs +0 -1
- package/dist/controls-rRZhz0vu.cjs +0 -1
- package/dist/controls-yjgoZzB6.js +0 -199
- package/dist/delete-page-modal-4bxjpVBD.js +0 -97
- package/dist/delete-page-modal-qYDZmpgT.cjs +0 -1
- package/dist/email-blocks.cjs +0 -1
- package/dist/email-blocks.d.ts +0 -3
- package/dist/email-blocks.js +0 -294
- package/dist/email.cjs +0 -1
- package/dist/email.d.ts +0 -171
- package/dist/email.js +0 -90
- package/dist/empty-slot-Lsxjts7Q.js +0 -6
- package/dist/empty-slot-Sy930lX6.cjs +0 -1
- package/dist/form-4jTocVbZ.cjs +0 -1
- package/dist/form-NAzFjGs0.js +0 -125
- package/dist/functions--tdNWQDW.js +0 -30
- package/dist/functions-EVUeSwX1.cjs +0 -1
- package/dist/html-to-json-NqRjgFqp.cjs +0 -1
- package/dist/html-to-json-l_mw5y-e.js +0 -243
- package/dist/index--k2M8kzI.cjs +0 -1
- package/dist/index--mLLy7QQ.cjs +0 -1
- package/dist/index-5XyNUAjc.cjs +0 -290
- package/dist/index-C7mB4XFm.js +0 -3141
- package/dist/index-VBXQixVm.js +0 -117
- package/dist/index-YZhtVcj_.js +0 -2201
- package/dist/index-aeDphKpP.cjs +0 -1
- package/dist/index-lFgDm1oa.js +0 -83780
- package/dist/jsx-runtime-Z_BpKhVy.cjs +0 -27
- package/dist/lib.cjs +0 -3
- package/dist/lib.d.ts +0 -80
- package/dist/lib.js +0 -1350
- package/dist/page-viewer-4wrnWnK0.js +0 -124
- package/dist/page-viewer-ra0GLx1p.cjs +0 -1
- package/dist/project-general-setting-IwZUkYF3.js +0 -90
- package/dist/project-general-setting-lFjTUhHD.cjs +0 -1
- package/dist/project-seo-setting-e1fTqVsd.js +0 -83
- package/dist/project-seo-setting-o0V9acCV.cjs +0 -1
- package/dist/server.cjs +0 -1
- package/dist/server.d.ts +0 -299
- package/dist/server.js +0 -216
- package/dist/single-page-detail-ZNWFKqLW.js +0 -229
- package/dist/single-page-detail-g55Anu7R.cjs +0 -1
- package/dist/studio.cjs +0 -1
- package/dist/studio.d.ts +0 -176
- package/dist/studio.js +0 -67
- package/dist/utils-D_vtk3zK.cjs +0 -1
- package/dist/utils-VpVqnC9m.js +0 -1075
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-jhNzBWrV.cjs"),r=require("./iconBase-vJD0OXxU.cjs"),s=require("i18next"),u=require("react-i18next");require("./jsx-runtime-JYMCiFoE.cjs");require("react");require("lodash-es");require("jotai");require("@chaibuilder/runtime");require("./plugin-_F-KZp1i.cjs");require("@react-hookz/web");require("tree-model");require("react-quill");require("./STRINGS-gPz7CUOk.cjs");require("react-hotkeys-hook");require("@floating-ui/dom");require("@floating-ui/react-dom");require("@radix-ui/react-icons");require("flagged");require("@tailwindcss/typography");require("@tailwindcss/forms");require("@tailwindcss/aspect-ratio");require("tailwindcss-palette-generator");require("./context-menu-_8TFbFEJ.cjs");require("@radix-ui/react-switch");require("@radix-ui/react-accordion");require("class-variance-authority");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-hover-card");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-dialog");require("@radix-ui/react-context-menu");require("clsx");require("tailwind-merge");require("lodash");require("react-wrap-balancer");require("react-dom");require("prop-types");require("@rjsf/validator-ajv8");require("@rjsf/core");require("react-arborist");require("lucide-react");require("himalaya");require("react-icons-picker");require("react-autosuggest");require("fuse.js");exports.BlockAttributesEditor=e.BlockAttributesEditor;exports.BlockPropsEditor=e.BlockSettings;exports.BlockStyleEditor=e.BlockStyling;exports.ChaiBuilderCanvas=e.StaticCanvas;exports.ChaiBuilderEditor=e.ChaiBuilderEditor;exports.DarkModeSwitcher=e.DarkMode;exports.ImportHTML=e.ImportHTML;exports.Outline=e.ListTree;exports.ScreenSizes=e.Breakpoints;exports.ThemeOptions=e.ThemeConfigPanel;exports.UndoRedo=e.UndoRedo;exports.getBlocksFromHTML=e.getBlocksFromHTML;exports.useActiveModal=e.useActiveModal;exports.useActivePanel=e.useActivePanel;exports.useAddBlock=e.useAddBlock;exports.useAddBlockParent=e.useAddBlockParent;exports.useAddClassesToBlocks=e.useAddClassesToBlocks;exports.useAllBlocks=e.useAllBlocks;exports.useBlocksStore=e.useBlocksStore;exports.useBrandingOptions=e.useBrandingOptions;exports.useBuilderProp=e.useBuilderProp;exports.useBuilderReset=e.useBuilderReset;exports.useCanvasWidth=e.useCanvasWidth;exports.useCanvasZoom=e.useCanvasZoom;exports.useCodeEditor=e.useCodeEditor;exports.useCopyBlockIds=e.useCopyBlockIds;exports.useCopyToClipboard=e.useCopyToClipboard;exports.useCurrentPage=e.useCurrentPage;exports.useCutBlockIds=e.useCutBlockIds;exports.useDarkMode=e.useDarkMode;exports.useDuplicateBlocks=e.useDuplicateBlocks;exports.useGetPageData=e.useGetPageData;exports.useHiddenBlockIds=e.useHiddenBlockIds;exports.useHighlightBlockId=e.useHighlightBlockId;exports.usePasteBlocks=e.usePasteBlocks;exports.usePreviewMode=e.usePreviewMode;exports.useReadOnlyMode=e.useReadOnlyMode;exports.useRemoveBlocks=e.useRemoveBlocks;exports.useRemoveClassesFromBlocks=e.useRemoveClassesFromBlocks;exports.useSavePage=e.useSavePage;exports.useSelectedBlock=e.useSelectedBlock;exports.useSelectedBlockAllClasses=e.useSelectedBlockAllClasses;exports.useSelectedBlockCurrentClasses=e.useSelectedBlockCurrentClasses;exports.useSelectedBlockIds=e.useSelectedBlockIds;exports.useSelectedBlocksDisplayChild=e.useSelectedBlocksDisplayChild;exports.useSelectedBreakpoints=e.useSelectedBreakpoints;exports.useSelectedStylingBlocks=e.useSelectedStylingBlocks;exports.useStylingBreakpoint=e.useStylingBreakpoint;exports.useStylingState=e.useStylingState;exports.useUILibraryBlocks=e.useUILibraryBlocks;exports.useUndoManager=e.useUndoManager;exports.useUpdateBlocksProps=e.useUpdateBlocksProps;exports.useUpdateBlocksPropsRealtime=e.useUpdateBlocksPropsRealtime;exports.generateBlockId=r.generateUUID;exports.mergeClasses=r.cn;exports.i18n=s;Object.defineProperty(exports,"useTranslation",{enumerable:!0,get:()=>u.useTranslation});
|
package/dist/core.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import i18n from 'i18next';
|
|
1
3
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
+
import * as React_2 from 'react';
|
|
5
|
+
import { default as React_3 } from 'react';
|
|
4
6
|
import { ReactNode } from 'react';
|
|
5
7
|
import { RESET } from 'jotai/utils';
|
|
6
8
|
import { ThrottledFunction } from '@react-hookz/web';
|
|
@@ -11,11 +13,6 @@ declare type AddBlocks = {
|
|
|
11
13
|
addPredefinedBlock: any;
|
|
12
14
|
};
|
|
13
15
|
|
|
14
|
-
export declare const AddBlocksPanel: ({ className, showHeading }: {
|
|
15
|
-
showHeading?: boolean;
|
|
16
|
-
className?: string;
|
|
17
|
-
}) => JSX_2.Element;
|
|
18
|
-
|
|
19
16
|
declare type AskAiResponse = {
|
|
20
17
|
blocks?: Array<{
|
|
21
18
|
_id: string;
|
|
@@ -29,20 +26,24 @@ declare interface Block {
|
|
|
29
26
|
[key: string]: any;
|
|
30
27
|
}
|
|
31
28
|
|
|
32
|
-
export declare const
|
|
29
|
+
export declare const BlockAttributesEditor: React_2.MemoExoticComponent<() => JSX_2.Element>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @returns Block Setting
|
|
34
|
+
*/
|
|
35
|
+
export declare function BlockPropsEditor(): JSX_2.Element;
|
|
36
|
+
|
|
37
|
+
export declare function BlockStyleEditor(): JSX_2.Element;
|
|
33
38
|
|
|
34
39
|
declare type Breakpoint = {
|
|
35
40
|
title: string;
|
|
36
41
|
content: string;
|
|
37
42
|
breakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | string;
|
|
38
|
-
icon:
|
|
43
|
+
icon: React_3.ReactNode | Element;
|
|
39
44
|
width: number;
|
|
40
45
|
};
|
|
41
46
|
|
|
42
|
-
export declare const Breakpoints: () => JSX_2.Element;
|
|
43
|
-
|
|
44
|
-
export declare const BuilderCanvas: () => React_2.JSX.Element;
|
|
45
|
-
|
|
46
47
|
export declare type ChaiBlock = {
|
|
47
48
|
_id: string;
|
|
48
49
|
_type: string;
|
|
@@ -51,6 +52,8 @@ export declare type ChaiBlock = {
|
|
|
51
52
|
_bindings?: Record<string, string>;
|
|
52
53
|
} & Record<string, any>;
|
|
53
54
|
|
|
55
|
+
export declare const ChaiBuilderCanvas: () => React_3.JSX.Element;
|
|
56
|
+
|
|
54
57
|
/**
|
|
55
58
|
* ChaiBuilder is the main entry point for the Chai Builder Studio.
|
|
56
59
|
* @param props
|
|
@@ -60,7 +63,7 @@ export declare const ChaiBuilderEditor: (props: ChaiBuilderEditorProps) => JSX_2
|
|
|
60
63
|
|
|
61
64
|
export declare interface ChaiBuilderEditorProps {
|
|
62
65
|
onLoad?: (editorInstance: ChaiBuilderInstance) => void;
|
|
63
|
-
customRootLayout?:
|
|
66
|
+
customRootLayout?: React_3.ComponentType;
|
|
64
67
|
htmlDir?: "ltr" | "rtl";
|
|
65
68
|
hideSaveButton?: boolean;
|
|
66
69
|
filterChaiBlock?: (block: any) => boolean;
|
|
@@ -72,7 +75,7 @@ export declare interface ChaiBuilderEditorProps {
|
|
|
72
75
|
loading?: boolean;
|
|
73
76
|
locale?: string;
|
|
74
77
|
nonEditableComponent?: ReactComponentType;
|
|
75
|
-
canvas?:
|
|
78
|
+
canvas?: React_3.FC<any>;
|
|
76
79
|
canvasTopBarComponents?: {
|
|
77
80
|
right?: ReactComponentType[];
|
|
78
81
|
};
|
|
@@ -159,6 +162,8 @@ declare type CopiedValue = string | null;
|
|
|
159
162
|
|
|
160
163
|
declare type CopyFn = (text: string) => Promise<boolean>;
|
|
161
164
|
|
|
165
|
+
export declare function DarkModeSwitcher(): JSX_2.Element;
|
|
166
|
+
|
|
162
167
|
declare type DataProvider = {
|
|
163
168
|
providerKey: string;
|
|
164
169
|
args: Record<string, any>;
|
|
@@ -166,10 +171,28 @@ declare type DataProvider = {
|
|
|
166
171
|
|
|
167
172
|
declare type ExcludedBuilderProps = "blocks" | "subPages" | "brandingOptions" | "dataProviders";
|
|
168
173
|
|
|
174
|
+
/**
|
|
175
|
+
* Get the unique uuid
|
|
176
|
+
*/
|
|
177
|
+
export declare function generateBlockId(length?: number, chars?: string): string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @param html
|
|
182
|
+
* @returns Blocks JSON
|
|
183
|
+
*/
|
|
184
|
+
export declare const getBlocksFromHTML: (html: string) => ChaiBlock[];
|
|
185
|
+
|
|
186
|
+
export { i18n }
|
|
187
|
+
|
|
188
|
+
export declare const ImportHTML: () => JSX_2.Element;
|
|
189
|
+
|
|
190
|
+
export declare const mergeClasses: (...inputs: ClassValue[]) => string;
|
|
191
|
+
|
|
169
192
|
export declare const Outline: () => JSX_2.Element;
|
|
170
193
|
|
|
171
194
|
declare type OutlineMenuItem = {
|
|
172
|
-
item:
|
|
195
|
+
item: React_3.ComponentType<{
|
|
173
196
|
blockId: string;
|
|
174
197
|
}>;
|
|
175
198
|
tooltip: string | ReactNode;
|
|
@@ -185,7 +208,7 @@ declare type PredefinedBlock = {
|
|
|
185
208
|
html?: string;
|
|
186
209
|
};
|
|
187
210
|
|
|
188
|
-
declare type ReactComponentType =
|
|
211
|
+
declare type ReactComponentType = React_3.ComponentType<any>;
|
|
189
212
|
|
|
190
213
|
declare type RichText = string;
|
|
191
214
|
|
|
@@ -196,10 +219,12 @@ declare type SavePageData = {
|
|
|
196
219
|
themeConfiguration?: Record<string, any>;
|
|
197
220
|
};
|
|
198
221
|
|
|
199
|
-
export declare const
|
|
222
|
+
export declare const ScreenSizes: () => JSX_2.Element;
|
|
223
|
+
|
|
224
|
+
export declare const ThemeOptions: ({ showHeading, className, }: {
|
|
200
225
|
className?: string;
|
|
201
226
|
showHeading?: boolean;
|
|
202
|
-
}) =>
|
|
227
|
+
}) => React_2.JSX.Element;
|
|
203
228
|
|
|
204
229
|
declare type TimeInSeconds = number;
|
|
205
230
|
|
|
@@ -307,7 +332,7 @@ export declare const useHiddenBlockIds: () => (string[] | ((args_0: string[] | (
|
|
|
307
332
|
export declare const useHighlightBlockId: () => [string, Function];
|
|
308
333
|
|
|
309
334
|
export declare const usePasteBlocks: () => {
|
|
310
|
-
canPaste: boolean;
|
|
335
|
+
canPaste: (newParentId: string) => boolean;
|
|
311
336
|
pasteBlocks: Function;
|
|
312
337
|
};
|
|
313
338
|
|
package/dist/core.js
CHANGED
|
@@ -1,114 +1,113 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "i18next";
|
|
5
|
-
import "./jsx-runtime-
|
|
6
|
-
import "./_commonjsHelpers-UyOWmZb0.js";
|
|
1
|
+
import { q as $, o as J, p as ss, S as es, C as os, D as as, I as ts, L as rs, B as is, T as ps, U as ls, z as ms, M as us, a9 as ds, s as cs, aa as Bs, N as ks, a8 as ns, A as Cs, $ as Ss, c as gs, H as Ps, O as ys, l as vs, m as As, P as Is, Q as Ms, R as hs, V as Rs, W as Ts, X as fs, Y as Ds, Z as Us, t as xs, _ as Es, g as Hs, K as Os, a0 as bs, a1 as Ls, f as ws, n as zs, a3 as Fs, a2 as Gs, i as Ws, a7 as Zs, ab as js, j as qs, a4 as Ks, a6 as Ns, a5 as Qs, G as Vs, x as Xs, y as Ys } from "./index-Dgo2PNEV.js";
|
|
2
|
+
import { g as $s, c as Js } from "./iconBase-zweRWSz0.js";
|
|
3
|
+
import { default as ee } from "i18next";
|
|
4
|
+
import { useTranslation as ae } from "react-i18next";
|
|
5
|
+
import "./jsx-runtime-Sp0orL4X.js";
|
|
7
6
|
import "react";
|
|
7
|
+
import "lodash-es";
|
|
8
8
|
import "jotai";
|
|
9
|
+
import "@chaibuilder/runtime";
|
|
10
|
+
import "./plugin-sJ3Hzvpv.js";
|
|
9
11
|
import "@react-hookz/web";
|
|
10
|
-
import "
|
|
11
|
-
import "./Functions-7jnEwJyw.js";
|
|
12
|
-
import "lodash-es";
|
|
13
|
-
import "clsx";
|
|
14
|
-
import "tailwind-merge";
|
|
15
|
-
import "@radix-ui/react-icons";
|
|
16
|
-
import "lucide-react";
|
|
17
|
-
import "./index-VBXQixVm.js";
|
|
18
|
-
import "react-dom";
|
|
19
|
-
import "prop-types";
|
|
12
|
+
import "tree-model";
|
|
20
13
|
import "react-quill";
|
|
14
|
+
import "./STRINGS--j49GZJP.js";
|
|
21
15
|
import "react-hotkeys-hook";
|
|
22
16
|
import "@floating-ui/dom";
|
|
23
17
|
import "@floating-ui/react-dom";
|
|
18
|
+
import "@radix-ui/react-icons";
|
|
24
19
|
import "flagged";
|
|
25
20
|
import "@tailwindcss/typography";
|
|
26
21
|
import "@tailwindcss/forms";
|
|
27
22
|
import "@tailwindcss/aspect-ratio";
|
|
28
23
|
import "tailwindcss-palette-generator";
|
|
29
|
-
import "./
|
|
30
|
-
import "himalaya";
|
|
31
|
-
import "./MODIFIERS-fd5XOmum.js";
|
|
32
|
-
import "lodash";
|
|
33
|
-
import "@chaibuilder/runtime";
|
|
34
|
-
import "react-wrap-balancer";
|
|
35
|
-
import "@rjsf/core";
|
|
36
|
-
import "@rjsf/validator-ajv8";
|
|
37
|
-
import "react-autosuggest";
|
|
38
|
-
import "fuse.js";
|
|
39
|
-
import "./utils-VpVqnC9m.js";
|
|
40
|
-
import "./controls-yjgoZzB6.js";
|
|
41
|
-
import "@radix-ui/react-scroll-area";
|
|
42
|
-
import "@radix-ui/react-toggle";
|
|
43
|
-
import "class-variance-authority";
|
|
24
|
+
import "./context-menu-sks9vdzC.js";
|
|
44
25
|
import "@radix-ui/react-switch";
|
|
45
|
-
import "@radix-ui/react-slot";
|
|
46
26
|
import "@radix-ui/react-accordion";
|
|
27
|
+
import "class-variance-authority";
|
|
47
28
|
import "@radix-ui/react-alert-dialog";
|
|
48
|
-
import "@radix-ui/react-
|
|
29
|
+
import "@radix-ui/react-slot";
|
|
49
30
|
import "@radix-ui/react-label";
|
|
31
|
+
import "@radix-ui/react-scroll-area";
|
|
50
32
|
import "@radix-ui/react-tabs";
|
|
51
33
|
import "@radix-ui/react-tooltip";
|
|
52
34
|
import "@radix-ui/react-popover";
|
|
53
|
-
import "@radix-ui/react-menubar";
|
|
54
35
|
import "@radix-ui/react-hover-card";
|
|
55
|
-
import "@radix-ui/react-select";
|
|
56
36
|
import "@radix-ui/react-dropdown-menu";
|
|
57
|
-
import "@radix-ui/react-separator";
|
|
58
37
|
import "@radix-ui/react-toast";
|
|
59
38
|
import "cmdk";
|
|
39
|
+
import "@radix-ui/react-dialog";
|
|
60
40
|
import "@radix-ui/react-context-menu";
|
|
41
|
+
import "clsx";
|
|
42
|
+
import "tailwind-merge";
|
|
43
|
+
import "lodash";
|
|
44
|
+
import "react-wrap-balancer";
|
|
45
|
+
import "react-dom";
|
|
46
|
+
import "prop-types";
|
|
47
|
+
import "@rjsf/validator-ajv8";
|
|
48
|
+
import "@rjsf/core";
|
|
49
|
+
import "react-arborist";
|
|
50
|
+
import "lucide-react";
|
|
51
|
+
import "himalaya";
|
|
61
52
|
import "react-icons-picker";
|
|
62
|
-
import "
|
|
53
|
+
import "react-autosuggest";
|
|
54
|
+
import "fuse.js";
|
|
63
55
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
56
|
+
$ as BlockAttributesEditor,
|
|
57
|
+
J as BlockPropsEditor,
|
|
58
|
+
ss as BlockStyleEditor,
|
|
59
|
+
es as ChaiBuilderCanvas,
|
|
60
|
+
os as ChaiBuilderEditor,
|
|
61
|
+
as as DarkModeSwitcher,
|
|
62
|
+
ts as ImportHTML,
|
|
63
|
+
rs as Outline,
|
|
64
|
+
is as ScreenSizes,
|
|
65
|
+
ps as ThemeOptions,
|
|
66
|
+
ls as UndoRedo,
|
|
67
|
+
$s as generateBlockId,
|
|
68
|
+
ms as getBlocksFromHTML,
|
|
69
|
+
ee as i18n,
|
|
70
|
+
Js as mergeClasses,
|
|
71
|
+
us as useActiveModal,
|
|
72
|
+
ds as useActivePanel,
|
|
73
|
+
cs as useAddBlock,
|
|
74
|
+
Bs as useAddBlockParent,
|
|
75
|
+
ks as useAddClassesToBlocks,
|
|
76
|
+
ns as useAllBlocks,
|
|
77
|
+
Cs as useBlocksStore,
|
|
78
|
+
Ss as useBrandingOptions,
|
|
79
|
+
gs as useBuilderProp,
|
|
80
|
+
Ps as useBuilderReset,
|
|
81
|
+
ys as useCanvasWidth,
|
|
82
|
+
vs as useCanvasZoom,
|
|
83
|
+
As as useCodeEditor,
|
|
84
|
+
Is as useCopyBlockIds,
|
|
85
|
+
Ms as useCopyToClipboard,
|
|
86
|
+
hs as useCurrentPage,
|
|
87
|
+
Rs as useCutBlockIds,
|
|
88
|
+
Ts as useDarkMode,
|
|
89
|
+
fs as useDuplicateBlocks,
|
|
90
|
+
Ds as useGetPageData,
|
|
91
|
+
Us as useHiddenBlockIds,
|
|
92
|
+
xs as useHighlightBlockId,
|
|
93
|
+
Es as usePasteBlocks,
|
|
94
|
+
Hs as usePreviewMode,
|
|
95
|
+
Os as useReadOnlyMode,
|
|
96
|
+
bs as useRemoveBlocks,
|
|
97
|
+
Ls as useRemoveClassesFromBlocks,
|
|
98
|
+
ws as useSavePage,
|
|
99
|
+
zs as useSelectedBlock,
|
|
100
|
+
Fs as useSelectedBlockAllClasses,
|
|
101
|
+
Gs as useSelectedBlockCurrentClasses,
|
|
103
102
|
Ws as useSelectedBlockIds,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
103
|
+
Zs as useSelectedBlocksDisplayChild,
|
|
104
|
+
js as useSelectedBreakpoints,
|
|
105
|
+
qs as useSelectedStylingBlocks,
|
|
106
|
+
Ks as useStylingBreakpoint,
|
|
107
|
+
Ns as useStylingState,
|
|
108
|
+
ae as useTranslation,
|
|
109
|
+
Qs as useUILibraryBlocks,
|
|
110
|
+
Vs as useUndoManager,
|
|
111
|
+
Xs as useUpdateBlocksProps,
|
|
112
|
+
Ys as useUpdateBlocksPropsRealtime
|
|
114
113
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("lodash-es"),b=require("clsx"),h=require("tailwind-merge"),u=require("react");function v(e=6,t="abcdefghijklmnopqrstuvwxyzABCD"){let i="";for(let r=e;r>0;--r)i+=t[Math.floor(Math.random()*t.length)];return i}const O=e=>e>=1536?"2XL":e>=1280?"XL":e>=1024?"LG":e>=768?"MD":e>=640?"SM":"XS",w=(...e)=>h.twMerge(b.clsx(e)),j="#styles:",q=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",schema:{type:"string",...n.omit(e,["i18n","required"])},uiSchema:{"ui:widget":"code"}}),P=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",required:e.required||!1,ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["ai","required"])},uiSchema:{"ui:placeholder":e.placeholder||"Enter here"}}),S=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",required:e.required||!1,ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["i18n","required","rows"])},uiSchema:{"ui:widget":"textarea","ui:placeholder":e.placeholder||"Enter here","ui:options":{rows:e.rows||4}}}),T=e=>({type:"singular",i18n:e.i18n||!1,default:e.default||!1,dataType:"boolean",binding:n.get(e,"binding",!0),ai:e.ai||void 0,schema:{type:"boolean",...n.omit(e,["i18n","required"])},uiSchema:{"ui:title":e.title||"Select Item","ui:description":""}}),x=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"number",required:e.required||!1,ai:e.ai||void 0,schema:{type:"number",...n.omit(e,["i18n","required"])},uiSchema:{}}),E=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),required:e.required||!1,dataType:"string",ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["i18n","required","options","binding"]),oneOf:e.options.map(t=>({const:t.value,title:t.title}))},uiSchema:{"ui:widget":"select"}}),I=e=>({type:"singular",i18n:e.i18n||!1,default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["i18n","required"])},uiSchema:{"ui:widget":"color"}}),D=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["i18n","required"])},uiSchema:{"ui:widget":"richtext"}}),C=e=>({type:"model",title:e.title,dataType:"object",default:e.default||{},binding:n.get(e,"binding",!0),properties:e.properties}),N=e=>({type:"list",itemProperties:e.itemProperties,binding:n.get(e,"binding",!0),title:e.title,ai:e.ai||void 0,dataType:"array",default:e.default||[],itemTitle:e.getItemLabel?e.getItemLabel({}):()=>""}),_=e=>({type:"styles",binding:!1,default:`${j},${e.default||""}`,presets:e.presets||{}}),z=e=>({default:e.default||"",binding:n.get(e,"binding",!0),type:"singular",dataType:"string",ai:e.ai||void 0,schema:{type:"string",title:"Icon",default:e.default||""},uiSchema:{"ui:widget":"icon"}}),L=e=>({default:e.default,type:"singular",binding:n.get(e,"binding",!0),dataType:"object",ai:e.ai||void 0,schema:{type:"object",...e||{},properties:{type:{type:"string"},href:{type:"string"},target:{type:"string"}}},uiSchema:{"ui:field":"link"}}),M=e=>({type:"singular",default:e.default||"",binding:n.get(e,"binding",!0),dataType:"string",ai:e.ai||void 0,schema:{type:"string",...n.omit(e,["i18n","required"])},uiSchema:{"ui:widget":"image"}});var f={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},c=u.createContext&&u.createContext(f),B=["attr","size","title"];function U(e,t){if(e==null)return{};var i=G(e,t),r,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function G(e,t){if(e==null)return{};var i={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;i[r]=e[r]}return i}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},d.apply(this,arguments)}function p(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,r)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?p(Object(i),!0).forEach(function(r){W(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function W(e,t,i){return t=X(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function X(e){var t=V(e,"string");return typeof t=="symbol"?t:t+""}function V(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m(e){return e&&e.map((t,i)=>u.createElement(t.tag,s({key:i},t.attr),m(t.child)))}function $(e){return t=>u.createElement(A,d({attr:s({},e.attr)},t),m(e.child))}function A(e){var t=i=>{var{attr:r,size:a,title:l}=e,y=U(e,B),g=a||i.size||"1em",o;return i.className&&(o=i.className),e.className&&(o=(o?o+" ":"")+e.className),u.createElement("svg",d({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,r,y,{className:o,style:s(s({color:e.color||i.color},i.style),e.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),l&&u.createElement("title",null,l),e.children)};return c!==void 0?u.createElement(c.Consumer,null,i=>t(i)):t(f)}exports.GenIcon=$;exports.S=N;exports.T=z;exports.b=D;exports.c=T;exports.cn=w;exports.f=E;exports.g=P;exports.generateUUID=v;exports.getBreakpointValue=O;exports.h=C;exports.o=_;exports.q=L;exports.r=S;exports.s=I;exports.u=q;exports.v=M;exports.y=x;
|