@chaibuilder/sdk 2.0.10 → 2.0.11

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
@@ -18,7 +18,7 @@ import { useThrottledCallback, useDebouncedCallback, useResizeObserver, useInter
18
18
  import { useFeature, FlagsProvider } from "flagged";
19
19
  import { getRegisteredChaiBlock, getDefaultBlockProps, useRegisteredFonts, useRegisteredChaiBlocks, getBlockFormSchemas, syncBlocksWithDefaults } from "@chaibuilder/runtime";
20
20
  import { registerChaiBlock as Ue } from "@chaibuilder/runtime";
21
- import { e as getDefaultExportFromCjs, d as defaultThemeOptions, g as getChaiThemeOptions, p as plugin, a as getChaiThemeCssVariables, c as getThemeFontsLinkMarkup, f as getThemeCustomFontFace } from "./chai-theme-helpers-DC7cFoyJ.js";
21
+ import { e as getDefaultExportFromCjs, d as defaultThemeOptions, g as getChaiThemeOptions, p as plugin, a as getChaiThemeCssVariables, c as getThemeFontsLinkMarkup, f as getThemeCustomFontFace } from "./chai-theme-helpers-BpnwYsLZ.js";
22
22
  import { PlusIcon as PlusIcon$1, ChevronRight, DatabaseIcon, ChevronLeft, Bold, Italic, Underline as Underline$1, Strikethrough, List, ListOrdered, AlignLeft, AlignCenter, AlignRight, Link as Link$1, Unlink, Maximize2, X, Plus, PlusCircle, ChevronDown, Loader, SparklesIcon, Globe, PencilIcon, FileJson, Zap, EyeOff, MoreVertical, Eye, ChevronsDown, ChevronsUp, Languages, FileEdit, Recycle, SmileIcon, ShuffleIcon, Moon, Sparkles, Loader2, Image as Image$1, Send, DatabaseZapIcon, Edit2, Paintbrush, Layers } from "lucide-react";
23
23
  import RjForm from "@rjsf/core";
24
24
  import validator from "@rjsf/validator-ajv8";
@@ -3849,9 +3849,9 @@ const useHandleCanvasDblClick = (o, n) => {
3849
3849
  heading: get(o, "fontFamily.heading"),
3850
3850
  body: get(o, "fontFamily.body")
3851
3851
  };
3852
- return f.filter((E) => E.name === S || E.name === B);
3852
+ return f.filter((E) => E.family === S || E.family === B);
3853
3853
  }, [o == null ? void 0 : o.fontFamily, f]), y = useMemo(() => getThemeFontsLinkMarkup(filter(b, (S) => has(S, "url"))), [b]), v = useMemo(
3854
- () => getThemeCustomFontFace(filter(b, (S) => !has(S, "url"))),
3854
+ () => getThemeCustomFontFace(filter(b, (S) => has(S, "src"))),
3855
3855
  [b]
3856
3856
  );
3857
3857
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -8000,24 +8000,21 @@ const selectParent = (o, n) => {
8000
8000
  ) }),
8001
8001
  /* @__PURE__ */ jsx(PasteAtRootContextMenu, { parentContext, setParentContext })
8002
8002
  ] });
8003
- }, FontSelector = ({
8004
- label: o,
8005
- value: n,
8006
- onChange: r
8007
- }) => {
8008
- const a = useRegisteredFonts();
8009
- return /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
8010
- /* @__PURE__ */ jsx(Label, { className: "text-sm text-slate-800", children: startCase(o) }),
8011
- /* @__PURE__ */ jsx(
8012
- "select",
8013
- {
8014
- className: "mt-1 w-full cursor-pointer rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
8015
- value: n,
8016
- onChange: (l) => r(l.target.value),
8017
- children: a.map((l) => /* @__PURE__ */ jsx("option", { value: l.name, children: l.name }, l.name))
8018
- }
8019
- )
8020
- ] });
8003
+ }, BorderRadiusInput = ({ value: o, onChange: n, disabled: r }) => {
8004
+ const a = debounce((l) => n(l), 200);
8005
+ return /* @__PURE__ */ jsx(
8006
+ "input",
8007
+ {
8008
+ type: "range",
8009
+ min: "0",
8010
+ step: "1",
8011
+ max: "30",
8012
+ disabled: r,
8013
+ defaultValue: o.replace("px", ""),
8014
+ onChange: (l) => a(l.target.value),
8015
+ className: "flex-1 cursor-pointer"
8016
+ }
8017
+ );
8021
8018
  }, ColorPickerInput = ({ value: o, onChange: n }) => {
8022
8019
  const r = debounce((a) => n(a), 200);
8023
8020
  return /* @__PURE__ */ jsx(
@@ -8039,21 +8036,26 @@ const selectParent = (o, n) => {
8039
8036
  )
8040
8037
  }
8041
8038
  );
8042
- }, BorderRadiusInput = ({ value: o, onChange: n, disabled: r }) => {
8043
- const a = debounce((l) => n(l), 200);
8044
- return /* @__PURE__ */ jsx(
8045
- "input",
8046
- {
8047
- type: "range",
8048
- min: "0",
8049
- step: "1",
8050
- max: "30",
8051
- disabled: r,
8052
- defaultValue: o.replace("px", ""),
8053
- onChange: (l) => a(l.target.value),
8054
- className: "flex-1 cursor-pointer"
8055
- }
8056
- );
8039
+ }, FontSelector = ({
8040
+ label: o,
8041
+ value: n,
8042
+ onChange: r
8043
+ }) => {
8044
+ const a = useRegisteredFonts();
8045
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
8046
+ /* @__PURE__ */ jsx(Label, { className: "text-sm text-slate-800", children: startCase(o) }),
8047
+ /* @__PURE__ */ jsx(
8048
+ ChaiSelect,
8049
+ {
8050
+ defaultValue: n,
8051
+ options: a.map((l) => ({
8052
+ value: l.family,
8053
+ label: l.family
8054
+ })),
8055
+ onValueChange: r
8056
+ }
8057
+ )
8058
+ ] });
8057
8059
  }, ThemeConfigPanel = React.memo(({ className: o = "" }) => {
8058
8060
  const [n] = useDarkMode(), [r, a] = React.useState(""), l = useBuilderProp("themePresets", []), i = useBuilderProp("themePanelComponent", null), { hasPermission: c } = usePermissions(), [d, p] = useTheme(), u = useThemeOptions(), { t: g } = useTranslation(), m = (v) => {
8059
8061
  a(v);
@@ -8118,22 +8120,22 @@ const selectParent = (o, n) => {
8118
8120
  l.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex gap-2 py-2", children: [
8119
8121
  /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
8120
8122
  /* @__PURE__ */ jsx(Label, { className: "text-sm text-slate-800", children: g("Presets") }),
8121
- /* @__PURE__ */ jsxs(
8122
- "select",
8123
+ /* @__PURE__ */ jsx(
8124
+ ChaiSelect,
8123
8125
  {
8124
- value: r,
8125
- onChange: (v) => m(v.target.value),
8126
- className: "w-full space-y-0.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
8127
- children: [
8128
- /* @__PURE__ */ jsx("option", { value: "", children: "Select preset" }),
8129
- Array.isArray(l) && l.map((v) => /* @__PURE__ */ jsx("option", { value: Object.keys(v)[0], children: capitalize(Object.keys(v)[0]) }, Object.keys(v)[0]))
8130
- ]
8126
+ defaultValue: r,
8127
+ options: l.map((v) => ({
8128
+ value: Object.keys(v)[0],
8129
+ label: capitalize(Object.keys(v)[0])
8130
+ })),
8131
+ onValueChange: (v) => m(v)
8131
8132
  }
8132
8133
  )
8133
8134
  ] }),
8134
8135
  /* @__PURE__ */ jsx("div", { className: "flex w-[30%] items-end", children: /* @__PURE__ */ jsx(
8135
8136
  Button,
8136
8137
  {
8138
+ size: "sm",
8137
8139
  className: "w-full text-sm",
8138
8140
  disabled: r === "",
8139
8141
  variant: "default",
@@ -9434,7 +9436,7 @@ const RootLayout = () => {
9434
9436
  children: [
9435
9437
  /* @__PURE__ */ jsx("div", { className: "h-14 w-screen shrink-0 border-b border-border", children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(TopBar, {}) }) }),
9436
9438
  /* @__PURE__ */ jsxs("main", { className: "relative flex h-[calc(100vh-56px)] max-w-full flex-1 flex-row", children: [
9437
- /* @__PURE__ */ jsxs("div", { className: "flex h-full w-12 flex-col items-center justify-between border-r border-border py-2", children: [
9439
+ /* @__PURE__ */ jsxs("div", { className: "flex w-12 flex-col items-center justify-between border-r border-border py-2", children: [
9438
9440
  /* @__PURE__ */ jsx("div", { className: "flex flex-col", children: h.map((y, v) => /* @__PURE__ */ jsxs(Tooltip, { children: [
9439
9441
  /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
9440
9442
  Button,
@@ -9449,7 +9451,7 @@ const RootLayout = () => {
9449
9451
  /* @__PURE__ */ jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsx("p", { children: m(y.label) }) })
9450
9452
  ] }, "button" + v)) }),
9451
9453
  /* @__PURE__ */ jsx("div", { className: "flex flex-col space-y-1" }),
9452
- /* @__PURE__ */ jsx("div", { className: "flex h-full flex-col", children: d == null ? void 0 : d.map((y, v) => /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", {}), children: React__default.createElement(y, {}) }, `sidebar-component-${v}`)) })
9454
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col", children: d == null ? void 0 : d.map((y, v) => /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", {}), children: React__default.createElement(y, {}) }, `sidebar-component-${v}`)) })
9453
9455
  ] }),
9454
9456
  /* @__PURE__ */ jsx(
9455
9457
  motion.div,
@@ -1,4 +1,4 @@
1
- import { g as r, d as a, p as i } from "./chai-theme-helpers-DC7cFoyJ.js";
1
+ import { g as r, d as a, p as i } from "./chai-theme-helpers-BpnwYsLZ.js";
2
2
  const t = (n = a) => ({
3
3
  container: {
4
4
  center: !0,
@@ -1 +1 @@
1
- "use strict";const o=require("./chai-theme-helpers-DKMzVh0t.cjs"),n=(i=o.defaultThemeOptions)=>({container:{center:!0,padding:"1rem",screens:{"2xl":"1400px"}},...o.getChaiThemeOptions(i)}),r=o.plugin(function({addBase:i,theme:e}){i({"h1,h2,h3,h4,h5,h6":{fontFamily:e("fontFamily.heading")},body:{fontFamily:e("fontFamily.body"),color:e("colors.foreground"),backgroundColor:e("colors.background")}})});exports.chaiBuilderPlugin=r;exports.getChaiBuilderTheme=n;
1
+ "use strict";const o=require("./chai-theme-helpers-D2bHv81c.cjs"),n=(i=o.defaultThemeOptions)=>({container:{center:!0,padding:"1rem",screens:{"2xl":"1400px"}},...o.getChaiThemeOptions(i)}),r=o.plugin(function({addBase:i,theme:e}){i({"h1,h2,h3,h4,h5,h6":{fontFamily:e("fontFamily.heading")},body:{fontFamily:e("fontFamily.body"),color:e("colors.foreground"),backgroundColor:e("colors.background")}})});exports.chaiBuilderPlugin=r;exports.getChaiBuilderTheme=n;
package/dist/render.cjs CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./chai-theme-helpers-DKMzVh0t.cjs"),s=require("lodash-es"),m=require("./getSplitClasses-DodqA_KW.cjs"),F=require("@mhsdesign/jit-browser-tailwindcss"),b=require("@tailwindcss/aspect-ratio"),k=require("@tailwindcss/container-queries"),M=require("@tailwindcss/forms"),N=require("@tailwindcss/typography"),w=require("./plugin-3oYvWHBg.cjs"),g=require("react/jsx-runtime"),T=require("@chaibuilder/runtime"),p=require("react"),Y=require("tailwind-merge"),I=(e,r="")=>{const{classes:n}=m.getSplitChaiClasses(e),t=n.split(" ").map(i=>i.split(" ").map(a=>{if(a==="")return"";if(a.includes(":")){const u=a.split(":");return u[u.length-1]=r+s.last(u),u.join(":")}return`${r}${a}`}).join(" "));return s.flattenDeep(t).join(" ")},A=e=>{if(!e)return[];try{return JSON.parse(J(e)).filter(n=>!n._type.startsWith("@chai"))}catch{return[{_type:"Paragraph",_id:"error",content:"Invalid JSON. Please check the JSON string."}]}};function J(e){const r=/(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;return e.replace(r,n=>{const t=decodeURIComponent(n),i=t.indexOf("public");return i!==-1?t.substring(i+6):t})}async function K(e,r,n=[],t="",i){return await F.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:n,theme:{extend:w.getChaiBuilderTheme(e)},plugins:[M,N,b,k,w.chaiBuilderPlugin],corePlugins:{preflight:i},...t?{prefix:`${t}`}:{}}}).generateStylesFromContent(` ${i?"@tailwind base;":""}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./chai-theme-helpers-D2bHv81c.cjs"),s=require("lodash-es"),m=require("./getSplitClasses-DodqA_KW.cjs"),F=require("@mhsdesign/jit-browser-tailwindcss"),b=require("@tailwindcss/aspect-ratio"),k=require("@tailwindcss/container-queries"),M=require("@tailwindcss/forms"),N=require("@tailwindcss/typography"),w=require("./plugin-PDQQ8m4D.cjs"),g=require("react/jsx-runtime"),T=require("@chaibuilder/runtime"),p=require("react"),Y=require("tailwind-merge"),I=(e,r="")=>{const{classes:n}=m.getSplitChaiClasses(e),t=n.split(" ").map(i=>i.split(" ").map(a=>{if(a==="")return"";if(a.includes(":")){const u=a.split(":");return u[u.length-1]=r+s.last(u),u.join(":")}return`${r}${a}`}).join(" "));return s.flattenDeep(t).join(" ")},A=e=>{if(!e)return[];try{return JSON.parse(J(e)).filter(n=>!n._type.startsWith("@chai"))}catch{return[{_type:"Paragraph",_id:"error",content:"Invalid JSON. Please check the JSON string."}]}};function J(e){const r=/(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;return e.replace(r,n=>{const t=decodeURIComponent(n),i=t.indexOf("public");return i!==-1?t.substring(i+6):t})}async function K(e,r,n=[],t="",i){return await F.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:n,theme:{extend:w.getChaiBuilderTheme(e)},plugins:[M,N,b,k,w.chaiBuilderPlugin],corePlugins:{preflight:i},...t?{prefix:`${t}`}:{}}}).generateStylesFromContent(` ${i?"@tailwind base;":""}
2
2
  @tailwind components;
3
3
  @tailwind utilities;`,r)}const V=(e,r,n)=>{const t=JSON.stringify(e).replace(/#styles:([^"]*)/g,(i,o)=>`#styles:${o.replace(/,/g," ")}`.replace(/#styles:/g,""));return K(r,[t],[],"",n)},L=async(e,r=S.defaultThemeOptions,n=!1)=>await V(e,r,n);async function U(e){const r=await(e==null?void 0:e.dataProvider(e.block,e.lang,e.metadata));return s.has(r,"$metadata")&&e.dataProviderMetadataCallback(e.block,r.$metadata),g.jsx(p.Suspense,{children:p.createElement(e.component,{...s.omit(e.props,["dataProvider","dataProviderMetadataCallback"]),...s.omit(r,"$metadata"),key:`${e.block._id}-async`})})}const z=s.memoize((e,r)=>{const{baseClasses:n,classes:t}=m.getSplitChaiClasses(e),i=Y.twMerge(n,t);return r===""?i.replace(m.STYLES_KEY,"").trim():I(i,r).replace(m.STYLES_KEY,"").trim()}),j=(e,r)=>{const n=s.cloneDeep(e);return s.forEach(s.keys(n),t=>{if(s.isString(n[t])){let i=n[t];const o=/\{\{(.*?)\}\}/g,l=i.match(o);l&&l.forEach(a=>{const u=a.slice(2,-2),h=s.get(r,u,a);i=i.replace(a,h)}),n[t]=i}s.isObject(n[t])&&(n[t]=j(n[t],r))}),n};function D(e,r){const n=s.get(e,`${r}_attrs`,{}),t=s.keys(n).join(" ");return s.includes(t,"x-show")&&!s.includes(t,"x-transition")&&(n["x-transition"]=""),n}function W(e,r){const n={};return Object.keys(e).forEach(t=>{if(s.isString(e[t])&&e[t].startsWith(m.STYLES_KEY)){const i=z(e[t],r);n[t]={className:i,...D(e,t)}}}),n}function H(e,r,n){if(s.isEmpty(r))return e;const t=s.cloneDeep(e),i=s.get(n,"i18nProps",[]);return s.forEach(s.keys(t),o=>{i.includes(o)&&!s.isEmpty(r)&&(t[o]=s.get(t,`${o}-${r}`,t[o]))}),t}const Q=s.memoize(e=>{const r=T.getRegisteredChaiBlock(e),n=s.get(r,"schema.properties",{});return Object.fromEntries(Object.entries(n).filter(([,t])=>s.get(t,"runtime",!1)))}),G=(e,r,n)=>s.isEmpty(n)?{}:Object.entries(n).reduce((t,[i,o])=>{const l=[];let a=s.find(e,{_id:r});for(;a;)l.push(a),a=s.find(e,{_id:a._parent});const u=s.find(l,{_type:o.block});return u&&(t[i]=s.get(u,s.get(o,"prop"),null)),t},{}),X=()=>g.jsx("span",{children:"Loading..."});function E({blocks:e,parent:r,classPrefix:n="",externalData:t={},blockModifierCallback:i=null,lang:o="",fallbackLang:l="",metadata:a={},dataProviderMetadataCallback:u=()=>{}}){const h=e,P=c=>W(c,n),$=r?s.filter(e,{_parent:r}):s.filter(e,c=>s.isEmpty(c._parent));return s.uniqBy($,"_id").map((c,q)=>{const y={},v=s.filter(h,{_parent:c._id});y.children=v.length>0?g.jsx(E,{externalData:t,classPrefix:n,parent:c._id,blocks:h,lang:o||l,metadata:a,fallbackLang:l,dataProviderMetadataCallback:u},`${c._id}-children`):null;const d=T.getRegisteredChaiBlock(c._type);if(d!==null){let f=c;const _=d.component;f={...d.defaults,...c},i&&(f=i(f));const x=o===l?"":o,O=G(h,c._id,Q(c._type)),C=j(H(c,x,d),t),B=s.omit({blockProps:{},inBuilder:!1,...f,index:q,...C,...P(C),...y,...O,metadata:a,lang:o||l,key:c._id},["_parent"]);if(s.has(d,"dataProvider")){const R=s.get(d,"suspenseFallback",X);return g.jsx(p.Suspense,{fallback:p.createElement(R),children:g.jsx(U,{dataProviderMetadataCallback:u,lang:o||l,metadata:a,dataProvider:d.dataProvider,block:c,component:_,props:B},`${c._id}-async`)},`${c._id}-suspense`)}return g.jsx(p.Suspense,{children:p.createElement(_,B)},`${c._id}-suspense`)}return g.jsxs("noscript",{children:[c._type," not found"]},`${c._id}-noscript`)})}exports.getChaiThemeCssVariables=S.getChaiThemeCssVariables;exports.getThemeFontsCSSImport=S.getThemeFontsCSSImport;exports.getThemeFontsLinkMarkup=S.getThemeFontsLinkMarkup;exports.RenderChaiBlocks=E;exports.convertToBlocks=A;exports.getStylesForBlocks=L;
package/dist/render.d.ts CHANGED
@@ -35,9 +35,9 @@ export declare const getChaiThemeCssVariables: (chaiTheme: Partial<ChaiBuilderTh
35
35
 
36
36
  export declare const getStylesForBlocks: (blocks: ChaiBlock[], themeOptions?: ChaiBuilderThemeOptions, includeBaseStyles?: boolean) => Promise<string>;
37
37
 
38
- export declare const getThemeFontsCSSImport: (fonts: ChaiGoogleFont[]) => string;
38
+ export declare const getThemeFontsCSSImport: (fonts: ChaiGoogleFont[]) => any;
39
39
 
40
- export declare const getThemeFontsLinkMarkup: (fonts: ChaiGoogleFont[]) => string;
40
+ export declare const getThemeFontsLinkMarkup: (fonts: ChaiGoogleFont[]) => any;
41
41
 
42
42
  declare type HSLColor = string;
43
43
 
package/dist/render.js CHANGED
@@ -1,5 +1,5 @@
1
- import { d as Y } from "./chai-theme-helpers-DC7cFoyJ.js";
2
- import { a as At, b as It, c as Jt } from "./chai-theme-helpers-DC7cFoyJ.js";
1
+ import { d as Y } from "./chai-theme-helpers-BpnwYsLZ.js";
2
+ import { a as At, b as It, c as Jt } from "./chai-theme-helpers-BpnwYsLZ.js";
3
3
  import { last as q, flattenDeep as z, has as v, omit as y, memoize as O, get as d, filter as h, isEmpty as g, uniqBy as D, cloneDeep as E, forEach as x, keys as B, isString as R, isObject as Q, find as _, includes as j } from "lodash-es";
4
4
  import { g as F, S } from "./getSplitClasses-DphwgQiE.js";
5
5
  import { createTailwindcss as G } from "@mhsdesign/jit-browser-tailwindcss";
@@ -7,7 +7,7 @@ import H from "@tailwindcss/aspect-ratio";
7
7
  import L from "@tailwindcss/container-queries";
8
8
  import X from "@tailwindcss/forms";
9
9
  import Z from "@tailwindcss/typography";
10
- import { g as k, c as tt } from "./plugin-jViUnwnQ.js";
10
+ import { g as k, c as tt } from "./plugin-D56-CF7U.js";
11
11
  import { jsx as p, jsxs as et } from "react/jsx-runtime";
12
12
  import { getRegisteredChaiBlock as N } from "@chaibuilder/runtime";
13
13
  import b, { Suspense as w, createElement as nt } from "react";
package/dist/tailwind.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@tailwindcss/aspect-ratio"),a=require("@tailwindcss/forms"),n=require("@tailwindcss/typography"),d=require("tailwindcss-animate"),r=require("./plugin-3oYvWHBg.cjs");function i(){return{colors:{border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",foreground:"hsl(var(--foreground))",primary:{DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}},borderRadius:{lg:"var(--radius)",md:"calc(var(--radius) - 2px)",sm:"calc(var(--radius) - 4px)"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}}const t=e=>({darkMode:"class",content:[...e,"node_modules/@chaibuilder/sdk/dist/*.{js,cjs}"],theme:{extend:i()},plugins:[d,n,a,o]});exports.chaiBuilderPlugin=r.chaiBuilderPlugin;exports.getChaiBuilderTheme=r.getChaiBuilderTheme;exports.getChaiBuilderTailwindConfig=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@tailwindcss/aspect-ratio"),a=require("@tailwindcss/forms"),n=require("@tailwindcss/typography"),d=require("tailwindcss-animate"),r=require("./plugin-PDQQ8m4D.cjs");function i(){return{colors:{border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",foreground:"hsl(var(--foreground))",primary:{DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}},borderRadius:{lg:"var(--radius)",md:"calc(var(--radius) - 2px)",sm:"calc(var(--radius) - 4px)"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}}const t=e=>({darkMode:"class",content:[...e,"node_modules/@chaibuilder/sdk/dist/*.{js,cjs}"],theme:{extend:i()},plugins:[d,n,a,o]});exports.chaiBuilderPlugin=r.chaiBuilderPlugin;exports.getChaiBuilderTheme=r.getChaiBuilderTheme;exports.getChaiBuilderTailwindConfig=t;
package/dist/tailwind.js CHANGED
@@ -2,7 +2,7 @@ import o from "@tailwindcss/aspect-ratio";
2
2
  import e from "@tailwindcss/forms";
3
3
  import a from "@tailwindcss/typography";
4
4
  import d from "tailwindcss-animate";
5
- import { c as l, g as v } from "./plugin-jViUnwnQ.js";
5
+ import { c as l, g as v } from "./plugin-D56-CF7U.js";
6
6
  function n() {
7
7
  return {
8
8
  colors: {
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.10",
8
+ "version": "2.0.11",
9
9
  "type": "module",
10
10
  "repository": {
11
11
  "type": "git",
@@ -53,7 +53,7 @@
53
53
  }
54
54
  },
55
55
  "peerDependencies": {
56
- "@chaibuilder/runtime": "2.0.4",
56
+ "@chaibuilder/runtime": "2.0.5",
57
57
  "@types/react": "*",
58
58
  "@types/react-dom": "*",
59
59
  "jotai": "2.12.1",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@ai-sdk/react": "^1.2.2",
73
- "@chaibuilder/runtime": "2.0.4",
73
+ "@chaibuilder/runtime": "2.0.5",
74
74
  "@floating-ui/dom": "1.6.13",
75
75
  "@floating-ui/react-dom": "2.1.2",
76
76
  "@mhsdesign/jit-browser-tailwindcss": "0.4.2",