@chaibuilder/sdk 2.3.5 → 2.3.6
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/{code-editor-BqhH_IQC.js → code-editor-CJfScsxg.js} +1 -1
- package/dist/{code-editor-BjHf4wM4.cjs → code-editor-Dy-oKXKY.cjs} +1 -1
- package/dist/core.cjs +3 -3
- package/dist/core.js +7 -8
- package/dist/{toggle-DW7GHkUt.js → toggle-BKtuoy5e.js} +297 -318
- package/dist/toggle-D0REpYUl.cjs +1 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +0 -5
- package/dist/ui.js +9 -10
- package/package.json +1 -2
- package/dist/toggle-J9Lqkd7T.cjs +0 -1
package/dist/core.js
CHANGED
|
@@ -10,7 +10,7 @@ import React__default, { useMemo, useCallback, useEffect, useState, useRef, Comp
|
|
|
10
10
|
import { atom, useAtom as useAtom$1, useAtomValue as useAtomValue$1, getDefaultStore as getDefaultStore$1, useSetAtom as useSetAtom$1, Provider } from "jotai";
|
|
11
11
|
import { atomWithStorage, splitAtom, useAtomCallback } from "jotai/utils";
|
|
12
12
|
import { g as generateUUID, a as getBreakpointValue, c as cn$2 } from "./common-functions-BGzDsf1z.js";
|
|
13
|
-
import { v as Button, ab as DropdownMenu, ap as DropdownMenuTrigger, ad as DropdownMenuContent, af as DropdownMenuItem,
|
|
13
|
+
import { v as Button, ab as DropdownMenu, ap as DropdownMenuTrigger, ad as DropdownMenuContent, af as DropdownMenuItem, b8 as cn$1, aW as Skeleton, d as Alert, e as AlertDescription, at as Input$1, a1 as Dialog, aa as DialogTrigger, a3 as DialogContent, av as Popover, b4 as Tooltip, b7 as TooltipTrigger, ay as PopoverTrigger, b5 as TooltipContent, ax as PopoverContent, F as Command, H as CommandInput, I as CommandList, J as CommandEmpty, K as CommandGroup, L as CommandItem, a6 as DialogHeader, a9 as DialogTitle, B as Badge, a as AccordionItem, b as AccordionTrigger, c as AccordionContent, ag as DropdownMenuLabel, ak as DropdownMenuSeparator, ac as DropdownMenuCheckboxItem, aq as HoverCard, as as HoverCardTrigger, ar as HoverCardContent, b1 as Textarea, A as Accordion, C as Card, D as CardHeader, y as CardDescription, x as CardContent, au as Label, z as CardFooter, az as ScrollArea, aZ as Tabs, a$ as TabsList, b0 as TabsTrigger, a_ as TabsContent, g as AlertDialog, q as AlertDialogTrigger, j as AlertDialogContent, m as AlertDialogHeader, p as AlertDialogTitle, k as AlertDialogDescription, l as AlertDialogFooter, i as AlertDialogCancel, h as AlertDialogAction, aY as Switch, r as Avatar, aL as Separator, b6 as TooltipProvider, aM as Sheet, aO as SheetContent, aR as SheetHeader, aU as SheetTitle } from "./toggle-BKtuoy5e.js";
|
|
14
14
|
import { ChevronRight, PlusIcon as PlusIcon$1, AlertCircle, X, ChevronLeft, DatabaseIcon, Plus, Bold, Italic, Underline as Underline$1, Strikethrough, List, ListOrdered, AlignLeft, AlignCenter, AlignRight, Link as Link$1, Unlink, Maximize2, PlusCircle, ChevronDown, File, Database, MoreVertical, Loader, SparklesIcon, Search, RefreshCw, Globe, SaveIcon, UnlinkIcon, PencilIcon, EyeOffIcon, Eye, ChevronsUpDown, ChevronsDownUp, Languages, FileEdit, Recycle, SmileIcon, ShuffleIcon, SunIcon, Moon, Sparkles, Loader2, Image as Image$1, Send, DatabaseZapIcon, Edit2, Paintbrush, Layers } from "lucide-react";
|
|
15
15
|
import clsx$1, { clsx } from "clsx";
|
|
16
16
|
import { twMerge } from "tailwind-merge";
|
|
@@ -19,9 +19,9 @@ import { C as COLLECTION_PREFIX, S as STYLES_KEY, f as getSplitChaiClasses, a as
|
|
|
19
19
|
import { d as defaultThemeOptions, f as defaultThemeValues, a as getChaiThemeCssVariables, g as getChaiThemeOptions, p as plugin, h as getThemeFontsUrls, i as getThemeCustomFontFace } from "./plugin-BOcGV_IY.js";
|
|
20
20
|
import { isObject } from "@rjsf/utils";
|
|
21
21
|
import { useDebouncedCallback, useThrottledCallback, useResizeObserver, useIntervalEffect } from "@react-hookz/web";
|
|
22
|
-
import { toast } from "sonner";
|
|
22
|
+
import { toast, Toaster } from "sonner";
|
|
23
23
|
import { useTranslation, initReactI18next } from "react-i18next";
|
|
24
|
-
import { useTranslation as
|
|
24
|
+
import { useTranslation as Ue } from "react-i18next";
|
|
25
25
|
import Fuse from "fuse.js";
|
|
26
26
|
import UndoManager from "undo-manager";
|
|
27
27
|
import Link from "@tiptap/extension-link";
|
|
@@ -37,7 +37,7 @@ import { useFeature } from "flagged";
|
|
|
37
37
|
import { parse, stringify } from "himalaya";
|
|
38
38
|
import { Tree } from "react-arborist";
|
|
39
39
|
import i18n from "i18next";
|
|
40
|
-
import { default as
|
|
40
|
+
import { default as We } from "i18next";
|
|
41
41
|
import tailwindAspectRatio from "@tailwindcss/aspect-ratio";
|
|
42
42
|
import tailwindForms from "@tailwindcss/forms";
|
|
43
43
|
import tailwindTypography from "@tailwindcss/typography";
|
|
@@ -46,7 +46,6 @@ import "@mhsdesign/jit-browser-tailwindcss";
|
|
|
46
46
|
import twContainer from "@tailwindcss/container-queries";
|
|
47
47
|
import { ErrorBoundary } from "react-error-boundary";
|
|
48
48
|
import { motion } from "framer-motion";
|
|
49
|
-
import "next-themes";
|
|
50
49
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
51
50
|
import { flip } from "@floating-ui/dom";
|
|
52
51
|
import { useFloating, shift } from "@floating-ui/react-dom";
|
|
@@ -3834,7 +3833,7 @@ const CanvasEventsWatcher = () => {
|
|
|
3834
3833
|
}, FallbackError = () => /* @__PURE__ */ jsx("div", { className: "h-full w-full rounded-md bg-red-200 p-4 text-red-500", children: /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center", children: [
|
|
3835
3834
|
/* @__PURE__ */ jsx("p", { className: "font-semibold", children: "Oops! Something went wrong." }),
|
|
3836
3835
|
/* @__PURE__ */ jsx("p", { children: "Please try again." })
|
|
3837
|
-
] }) }), CodeEditor$1 = React__default.lazy(() => import("./code-editor-
|
|
3836
|
+
] }) }), CodeEditor$1 = React__default.lazy(() => import("./code-editor-CJfScsxg.js")), CanvasArea = () => {
|
|
3838
3837
|
const [o] = useCodeEditor(), n = useBuilderProp("onError", noop);
|
|
3839
3838
|
return /* @__PURE__ */ jsx("div", { className: "flex h-full max-h-full w-full flex-1 flex-col", children: /* @__PURE__ */ jsxs("div", { className: "relative flex h-full max-h-full flex-col overflow-hidden bg-gray-100/40 px-2", children: [
|
|
3840
3839
|
/* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Skeleton, { className: "h-full" }), children: /* @__PURE__ */ jsx(ErrorBoundary, { fallback: /* @__PURE__ */ jsx(FallbackError, {}), onError: n, children: /* @__PURE__ */ jsx(StaticCanvas, {}) }) }),
|
|
@@ -10318,7 +10317,7 @@ export {
|
|
|
10318
10317
|
getBlocksFromHTML as convertHTMLToChaiBlocks,
|
|
10319
10318
|
generateUUID as generateBlockId,
|
|
10320
10319
|
getBlocksFromHTML,
|
|
10321
|
-
|
|
10320
|
+
We as i18n,
|
|
10322
10321
|
cn$2 as mergeClasses,
|
|
10323
10322
|
registerBlockSettingField,
|
|
10324
10323
|
registerBlockSettingTemplate,
|
|
@@ -10382,7 +10381,7 @@ export {
|
|
|
10382
10381
|
useTheme,
|
|
10383
10382
|
useThemeOptions,
|
|
10384
10383
|
useToggleChaiFeatureFlag,
|
|
10385
|
-
|
|
10384
|
+
Ue as useTranslation,
|
|
10386
10385
|
useUndoManager,
|
|
10387
10386
|
useUpdateBlocksProps,
|
|
10388
10387
|
useUpdateBlocksPropsRealtime,
|