@chaibuilder/sdk 2.0.3 → 2.0.4

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/core.js CHANGED
@@ -9,7 +9,7 @@ import { atom as atom$1, useAtomValue as useAtomValue$1, useAtom as useAtom$1, g
9
9
  import { find, filter, flatten, map, omit, isString, has, get, isObject, memoize, compact, isEmpty, noop, includes, without, each, first, keys, range, values, flattenDeep, set, startsWith, forEach, unset, chunk, cloneDeep, pick, isNull, findIndex, throttle, isFunction as isFunction$1, reverse, startCase, debounce, capitalize, split, take, toUpper, toLower, nth, isNumber, parseInt as parseInt$1, isNaN as isNaN$1, findLast, intersection, groupBy, uniq, flatMapDeep, some, reject, sortBy, round } from "lodash-es";
10
10
  import { Provider as Provider$1 } from "react-wrap-balancer";
11
11
  import { useTranslation, initReactI18next } from "react-i18next";
12
- import { useTranslation as Ve } from "react-i18next";
12
+ import { useTranslation as He } from "react-i18next";
13
13
  import { g as generateUUID, a as getBreakpointValue, c as cn$1 } from "./Functions-BGzDsf1z.js";
14
14
  import { flip } from "@floating-ui/dom";
15
15
  import { useFloating, shift } from "@floating-ui/react-dom";
@@ -17,7 +17,7 @@ import { PinTopIcon, PinBottomIcon, PinLeftIcon, PinRightIcon, ArrowUpIcon, Plus
17
17
  import { useThrottledCallback, useDebouncedCallback, useResizeObserver, useIntervalEffect } from "@react-hookz/web";
18
18
  import { useFeature, FlagsProvider } from "flagged";
19
19
  import { getRegisteredChaiBlock, getDefaultBlockProps, useRegisteredChaiBlocks, getBlockFormSchemas, syncBlocksWithDefaults } from "@chaibuilder/runtime";
20
- import { registerChaiBlock as Fe } from "@chaibuilder/runtime";
20
+ import { registerChaiBlock as Ue } from "@chaibuilder/runtime";
21
21
  import { e as getDefaultExportFromCjs, d as defaultThemeOptions, g as getChaiThemeOptions, p as plugin, a as getChaiThemeCssVariables, c as getThemeFontsLinkMarkup } from "./ChaiThemeFn-Cort9tch.js";
22
22
  import TreeModel from "tree-model";
23
23
  import { useHotkeys } from "react-hotkeys-hook";
@@ -36,7 +36,6 @@ import { ErrorBoundary } from "react-error-boundary";
36
36
  import { Resizable } from "re-resizable";
37
37
  import RjForm from "@rjsf/core";
38
38
  import validator from "@rjsf/validator-ajv8";
39
- import { isEmpty as isEmpty$1, get as get$1 } from "lodash";
40
39
  import Link from "@tiptap/extension-link";
41
40
  import TextAlign from "@tiptap/extension-text-align";
42
41
  import Underline from "@tiptap/extension-underline";
@@ -46,7 +45,7 @@ import Fuse from "fuse.js";
46
45
  import { parse, stringify } from "himalaya";
47
46
  import { Tree } from "react-arborist";
48
47
  import i18n from "i18next";
49
- import { default as We } from "i18next";
48
+ import { default as ze } from "i18next";
50
49
  import { motion } from "framer-motion";
51
50
  const isSelfAtom = (o, n) => o.unstable_is ? o.unstable_is(n) : n === o, hasInitialValue = (o) => "init" in o, isActuallyWritableAtom = (o) => !!o.write, isAtomStateInitialized = (o) => "v" in o || "e" in o, returnAtomValue = (o) => {
52
51
  if ("e" in o)
@@ -5088,7 +5087,7 @@ const MenuBar = ({ editor: o, onExpand: n }) => {
5088
5087
  formData: g,
5089
5088
  onChange: m
5090
5089
  }) => {
5091
- const { selectedLang: x, fallbackLang: f, languages: h } = useLanguages(), b = isEmpty$1(h) ? "" : isEmpty$1(x) ? f : x, k = get$1(LANGUAGES, b, b), A = usePageExternalData(), B = useSelectedBlock(), C = useRegisteredChaiBlocks(), j = get$1(C, [B == null ? void 0 : B._type, "i18nProps"], []) || [], [_, S] = useState(null), w = useCallback(
5090
+ const { selectedLang: x, fallbackLang: f, languages: h } = useLanguages(), b = isEmpty(h) ? "" : isEmpty(x) ? f : x, k = get(LANGUAGES, b, b), A = usePageExternalData(), B = useSelectedBlock(), C = useRegisteredChaiBlocks(), j = get(C, [B == null ? void 0 : B._type, "i18nProps"], []) || [], [_, S] = useState(null), w = useCallback(
5092
5091
  (y) => {
5093
5092
  const E = (P) => /[.,!?;:]/.test(P), T = (P, N, M) => {
5094
5093
  let D = "", O = "";
@@ -9523,9 +9522,9 @@ export {
9523
9522
  generateUUID as generateBlockId,
9524
9523
  getBlocksFromHTML,
9525
9524
  getClassValueAndUnit,
9526
- We as i18n,
9525
+ ze as i18n,
9527
9526
  cn$1 as mergeClasses,
9528
- Fe as registerChaiBlock,
9527
+ Ue as registerChaiBlock,
9529
9528
  useAddBlock,
9530
9529
  useAddClassesToBlocks,
9531
9530
  useAskAi,
@@ -9569,7 +9568,7 @@ export {
9569
9568
  useStylingState,
9570
9569
  useTheme,
9571
9570
  useThemeOptions,
9572
- Ve as useTranslation,
9571
+ He as useTranslation,
9573
9572
  useUILibraryBlocks,
9574
9573
  useUndoManager,
9575
9574
  useUpdateBlocksProps,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "Suraj Air",
6
6
  "license": "BSD-3-Clause",
7
7
  "homepage": "https://chaibuilder.com",
8
- "version": "2.0.3",
8
+ "version": "2.0.4",
9
9
  "type": "module",
10
10
  "repository": {
11
11
  "type": "git",