@chaibuilder/sdk 2.0.0-beta.58 → 2.0.0-beta.60

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/render.cjs CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./ChaiThemeFn-DQu-2Eh9.cjs"),r=require("lodash-es"),m=require("./STRINGS-n7COZtKr.cjs"),R=require("@mhsdesign/jit-browser-tailwindcss"),B=require("@tailwindcss/aspect-ratio"),P=require("@tailwindcss/container-queries"),q=require("@tailwindcss/forms"),F=require("@tailwindcss/typography"),E=require("./plugin-2xcljWGM.cjs"),a=require("./jsx-runtime-qcKc-DpB.cjs"),Y=require("@chaibuilder/runtime"),d=require("react"),L=require("tailwind-merge"),k=(e,s="")=>{const t=e.replace(m.STYLES_KEY,"").split(",").map(i=>i.split(" ").map(l=>{if(l==="")return"";if(l.includes(":")){const p=l.split(":");return p[p.length-1]=s+r.last(p),p.join(":")}return`${s}${l}`}).join(" "));return r.flattenDeep(t).join(" ")},v=e=>{if(!e)return[];try{return JSON.parse(A(e)).filter(n=>!n._type.startsWith("@chai"))}catch{return[{_type:"Paragraph",_id:"error",content:"Invalid JSON. Please check the JSON string."}]}};function A(e){const s=/(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;return e.replace(s,n=>{const t=decodeURIComponent(n),i=t.indexOf("public");return i!==-1?t.substring(i+6):t})}async function O(e,s,n=[],t="",i){return await R.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:n,theme:{extend:E.getChaiBuilderTheme(e)},plugins:[q,F,B,P,E.chaiBuilderPlugin],corePlugins:{preflight:i},...t?{prefix:`${t}`}:{}}}).generateStylesFromContent(` ${i?"@tailwind base;":""}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./ChaiThemeFn-DQu-2Eh9.cjs"),r=require("lodash-es"),h=require("./STRINGS-n7COZtKr.cjs"),P=require("@mhsdesign/jit-browser-tailwindcss"),q=require("@tailwindcss/aspect-ratio"),F=require("@tailwindcss/container-queries"),Y=require("@tailwindcss/forms"),v=require("@tailwindcss/typography"),E=require("./plugin-2xcljWGM.cjs"),a=require("./jsx-runtime-qcKc-DpB.cjs"),A=require("@chaibuilder/runtime"),p=require("react"),O=require("tailwind-merge"),$=(e,s="")=>{const t=e.replace(h.STYLES_KEY,"").split(",").map(i=>i.split(" ").map(l=>{if(l==="")return"";if(l.includes(":")){const u=l.split(":");return u[u.length-1]=s+r.last(u),u.join(":")}return`${s}${l}`}).join(" "));return r.flattenDeep(t).join(" ")},N=e=>{if(!e)return[];try{return JSON.parse(I(e)).filter(n=>!n._type.startsWith("@chai"))}catch{return[{_type:"Paragraph",_id:"error",content:"Invalid JSON. Please check the JSON string."}]}};function I(e){const s=/(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;return e.replace(s,n=>{const t=decodeURIComponent(n),i=t.indexOf("public");return i!==-1?t.substring(i+6):t})}async function K(e,s,n=[],t="",i){return await P.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:n,theme:{extend:E.getChaiBuilderTheme(e)},plugins:[Y,v,q,F,E.chaiBuilderPlugin],corePlugins:{preflight:i},...t?{prefix:`${t}`}:{}}}).generateStylesFromContent(` ${i?"@tailwind base;":""}
2
2
  @tailwind components;
3
- @tailwind utilities;`,s)}const $=(e,s,n)=>{const t=JSON.stringify(e).replace(/#styles:([^"]*)/g,(i,o)=>`#styles:${o.replace(/,/g," ")}`.replace(/#styles:/g,""));return O(s,[t],[],"",n)},N=async(e,s=f.defaultThemeOptions,n=!1)=>await $(e,s,n);async function I(e){const s=await(e==null?void 0:e.dataProvider(e.block,e.lang,e.metadata));return a.jsxRuntimeExports.jsx(d.Suspense,{children:d.createElement(e.component,{...e.props,...s})})}const K=r.memoize((e,s)=>{const n=e.replace(m.STYLES_KEY,"").split(","),t=L.twMerge(n[0],n[1]);return s===""?t.replace(m.STYLES_KEY,"").trim():k(t,s).replace(m.STYLES_KEY,"").trim()});function b(e,s){const n=r.get(e,`${s}_attrs`,{}),t=r.keys(n).join(" ");return r.includes(t,"x-show")&&!r.includes(t,"x-transition")&&(n["x-transition"]=""),n}function M(e,s){const n={};return Object.keys(e).forEach(t=>{if(r.isString(e[t])&&e[t].startsWith(m.STYLES_KEY)){const i=K(e[t],s);n[t]={className:i,...b(e,t)}}}),n}function J(e,s){const n=r.get(e,"_bindings",{});return r.isEmpty(n)?{...e}:(r.each(n,(t,i)=>{r.isString(t)&&r.get(s,t,null)&&(e[i]=r.get(s,t,null))}),e)}function U(e,s,n){if(r.isEmpty(s))return e;const t=r.cloneDeep(e),i=r.get(n,"i18nProps",[]);return r.forEach(r.keys(t),o=>{i.includes(o)&&!r.isEmpty(s)&&(t[o]=r.get(t,`${o}-${s}`,t[o]))}),t}const V=()=>a.jsxRuntimeExports.jsx("span",{children:"Loading..."});function j({blocks:e,parent:s,classPrefix:n="",externalData:t={},blockModifierCallback:i=null,lang:o="",metadata:h={}}){const l=e,p=c=>M(c,n),T=s?r.filter(e,{_parent:s}):r.filter(e,c=>r.isEmpty(c._parent));return a.jsxRuntimeExports.jsx(a.jsxRuntimeExports.Fragment,{children:d.Children.toArray(T.map((c,C)=>{const S={},w=r.filter(l,{_parent:c._id});S.children=w.length>0?a.jsxRuntimeExports.jsx(j,{externalData:t,classPrefix:n,parent:c._id,blocks:l,lang:o??"",metadata:h}):null;const u=Y.getRegisteredChaiBlock(c._type);if(u!==null){let g=c;const x=u.component;g={...u.defaults,...c},i&&(g=i(g));const y=r.omit({blockProps:{},inBuilder:!1,...g,index:C,...J(U(c,o,u),t),...p(g),...S,metadata:h,lang:o??""},["_parent"]);if(r.has(u,"dataProvider")){const _=r.get(u,"suspenseFallback",V);return a.jsxRuntimeExports.jsx(d.Suspense,{fallback:d.createElement(_),children:a.jsxRuntimeExports.jsx(I,{lang:o??"",metadata:h,dataProvider:u.dataProvider,block:c,component:x,props:y})})}return a.jsxRuntimeExports.jsx(d.Suspense,{children:d.createElement(x,y)})}return a.jsxRuntimeExports.jsxs("noscript",{children:[c._type," not found"]})}))})}exports.getChaiThemeCssVariables=f.getChaiThemeCssVariables;exports.getThemeFontsCSSImport=f.getThemeFontsCSSImport;exports.getThemeFontsLinkMarkup=f.getThemeFontsLinkMarkup;exports.RenderChaiBlocks=j;exports.convertToBlocks=v;exports.getStylesForBlocks=N;
3
+ @tailwind utilities;`,s)}const L=(e,s,n)=>{const t=JSON.stringify(e).replace(/#styles:([^"]*)/g,(i,o)=>`#styles:${o.replace(/,/g," ")}`.replace(/#styles:/g,""));return K(s,[t],[],"",n)},k=async(e,s=f.defaultThemeOptions,n=!1)=>await L(e,s,n);async function M(e){const s=await(e==null?void 0:e.dataProvider(e.block,e.lang,e.metadata));return a.jsxRuntimeExports.jsx(p.Suspense,{children:p.createElement(e.component,{...e.props,...s})})}const J=r.memoize((e,s)=>{const n=e.replace(h.STYLES_KEY,"").split(","),t=O.twMerge(n[0],n[1]);return s===""?t.replace(h.STYLES_KEY,"").trim():$(t,s).replace(h.STYLES_KEY,"").trim()});function U(e,s){const n=r.get(e,`${s}_attrs`,{}),t=r.keys(n).join(" ");return r.includes(t,"x-show")&&!r.includes(t,"x-transition")&&(n["x-transition"]=""),n}function b(e,s){const n={};return Object.keys(e).forEach(t=>{if(r.isString(e[t])&&e[t].startsWith(h.STYLES_KEY)){const i=J(e[t],s);n[t]={className:i,...U(e,t)}}}),n}function V(e,s){const n=r.get(e,"_bindings",{});return r.isEmpty(n)?{...e}:(r.each(n,(t,i)=>{r.isString(t)&&r.get(s,t,null)&&(e[i]=r.get(s,t,null))}),e)}function W(e,s,n){if(r.isEmpty(s))return e;const t=r.cloneDeep(e),i=r.get(n,"i18nProps",[]);return r.forEach(r.keys(t),o=>{i.includes(o)&&!r.isEmpty(s)&&(t[o]=r.get(t,`${o}-${s}`,t[o]))}),t}const z=()=>a.jsxRuntimeExports.jsx("span",{children:"Loading..."});function j({blocks:e,parent:s,classPrefix:n="",externalData:t={},blockModifierCallback:i=null,lang:o="",fallbackLang:g="",metadata:l={}}){const u=e,T=c=>b(c,n),C=s?r.filter(e,{_parent:s}):r.filter(e,c=>r.isEmpty(c._parent));return a.jsxRuntimeExports.jsx(a.jsxRuntimeExports.Fragment,{children:p.Children.toArray(C.map((c,w)=>{const S={},_=r.filter(u,{_parent:c._id});S.children=_.length>0?a.jsxRuntimeExports.jsx(j,{externalData:t,classPrefix:n,parent:c._id,blocks:u,lang:o||g,metadata:l}):null;const d=A.getRegisteredChaiBlock(c._type);if(d!==null){let m=c;const x=d.component;m={...d.defaults,...c},i&&(m=i(m));const R=o===g?"":o,y=r.omit({blockProps:{},inBuilder:!1,...m,index:w,...V(W(c,R,d),t),...T(m),...S,metadata:l,lang:o||g},["_parent"]);if(r.has(d,"dataProvider")){const B=r.get(d,"suspenseFallback",z);return a.jsxRuntimeExports.jsx(p.Suspense,{fallback:p.createElement(B),children:a.jsxRuntimeExports.jsx(M,{lang:o||g,metadata:l,dataProvider:d.dataProvider,block:c,component:x,props:y})})}return a.jsxRuntimeExports.jsx(p.Suspense,{children:p.createElement(x,y)})}return a.jsxRuntimeExports.jsxs("noscript",{children:[c._type," not found"]})}))})}exports.getChaiThemeCssVariables=f.getChaiThemeCssVariables;exports.getThemeFontsCSSImport=f.getThemeFontsCSSImport;exports.getThemeFontsLinkMarkup=f.getThemeFontsLinkMarkup;exports.RenderChaiBlocks=j;exports.convertToBlocks=N;exports.getStylesForBlocks=k;
package/dist/render.d.ts CHANGED
@@ -43,13 +43,14 @@ export declare const getThemeFontsLinkMarkup: (chaiTheme: Pick<Partial<ChaiBuild
43
43
 
44
44
  declare type HSLColor = string;
45
45
 
46
- export declare function RenderChaiBlocks({ blocks, parent, classPrefix, externalData, blockModifierCallback, lang, metadata, }: {
46
+ export declare function RenderChaiBlocks({ blocks, parent, classPrefix, externalData, blockModifierCallback, lang, fallbackLang, metadata, }: {
47
47
  blocks: ChaiBlock[];
48
48
  parent?: string;
49
49
  classPrefix?: string;
50
50
  externalData?: Record<string, any>;
51
51
  blockModifierCallback?: (block: ChaiBlock) => ChaiBlock;
52
52
  lang?: string;
53
+ fallbackLang?: string;
53
54
  metadata?: Record<string, any>;
54
55
  }): JSX_2.Element;
55
56
 
package/dist/render.js CHANGED
@@ -1,49 +1,49 @@
1
- import { d as $ } from "./ChaiThemeFn-Cort9tch.js";
2
- import { a as Ct, b as Pt, c as Bt } from "./ChaiThemeFn-Cort9tch.js";
3
- import { last as F, flattenDeep as O, memoize as v, filter as h, isEmpty as g, omit as N, has as R, get as u, each as I, isString as C, cloneDeep as J, forEach as L, keys as P, includes as j } from "lodash-es";
4
- import { S as m } from "./STRINGS-DtEft2kY.js";
5
- import { createTailwindcss as b } from "@mhsdesign/jit-browser-tailwindcss";
6
- import k from "@tailwindcss/aspect-ratio";
7
- import K from "@tailwindcss/container-queries";
8
- import M from "@tailwindcss/forms";
9
- import U from "@tailwindcss/typography";
10
- import { g as W, c as Y } from "./plugin-kUMxtQR5.js";
1
+ import { d as F } from "./ChaiThemeFn-Cort9tch.js";
2
+ import { a as Tt, b as Bt, c as Et } from "./ChaiThemeFn-Cort9tch.js";
3
+ import { last as O, flattenDeep as v, memoize as N, filter as h, isEmpty as g, omit as R, has as I, get as p, each as J, isString as C, cloneDeep as U, forEach as K, keys as P, includes as j } from "lodash-es";
4
+ import { S as f } from "./STRINGS-DtEft2kY.js";
5
+ import { createTailwindcss as M } from "@mhsdesign/jit-browser-tailwindcss";
6
+ import W from "@tailwindcss/aspect-ratio";
7
+ import Y from "@tailwindcss/container-queries";
8
+ import z from "@tailwindcss/forms";
9
+ import D from "@tailwindcss/typography";
10
+ import { g as L, c as Q } from "./plugin-kUMxtQR5.js";
11
11
  import { j as a } from "./jsx-runtime-Drh4NO5G.js";
12
- import { getRegisteredChaiBlock as z } from "@chaibuilder/runtime";
13
- import y, { Suspense as S, createElement as D } from "react";
14
- import { twMerge as Q } from "tailwind-merge";
15
- const V = (t, n = "") => {
16
- const e = t.replace(m, "").split(",").map((r) => r.split(" ").map((c) => {
12
+ import { getRegisteredChaiBlock as V } from "@chaibuilder/runtime";
13
+ import y, { Suspense as S, createElement as b } from "react";
14
+ import { twMerge as q } from "tailwind-merge";
15
+ const G = (t, s = "") => {
16
+ const e = t.replace(f, "").split(",").map((r) => r.split(" ").map((c) => {
17
17
  if (c === "") return "";
18
18
  if (c.includes(":")) {
19
- const p = c.split(":");
20
- return p[p.length - 1] = n + F(p), p.join(":");
19
+ const l = c.split(":");
20
+ return l[l.length - 1] = s + O(l), l.join(":");
21
21
  }
22
- return `${n}${c}`;
22
+ return `${s}${c}`;
23
23
  }).join(" "));
24
- return O(e).join(" ");
25
- }, xt = (t) => {
24
+ return v(e).join(" ");
25
+ }, _t = (t) => {
26
26
  if (!t) return [];
27
27
  try {
28
- return JSON.parse(q(t)).filter((s) => !s._type.startsWith("@chai"));
28
+ return JSON.parse(H(t)).filter((n) => !n._type.startsWith("@chai"));
29
29
  } catch {
30
30
  return [{ _type: "Paragraph", _id: "error", content: "Invalid JSON. Please check the JSON string." }];
31
31
  }
32
32
  };
33
- function q(t) {
34
- const n = /(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;
35
- return t.replace(n, (s) => {
36
- const e = decodeURIComponent(s), r = e.indexOf("public");
33
+ function H(t) {
34
+ const s = /(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;
35
+ return t.replace(s, (n) => {
36
+ const e = decodeURIComponent(n), r = e.indexOf("public");
37
37
  return r !== -1 ? e.substring(r + 6) : e;
38
38
  });
39
39
  }
40
- async function G(t, n, s = [], e = "", r) {
41
- return await b({
40
+ async function X(t, s, n = [], e = "", r) {
41
+ return await M({
42
42
  tailwindConfig: {
43
43
  darkMode: "class",
44
- safelist: s,
45
- theme: { extend: W(t) },
46
- plugins: [M, U, k, K, Y],
44
+ safelist: n,
45
+ theme: { extend: L(t) },
46
+ plugins: [z, D, W, Y, Q],
47
47
  corePlugins: { preflight: r },
48
48
  ...e ? { prefix: `${e}` } : {}
49
49
  }
@@ -51,106 +51,107 @@ async function G(t, n, s = [], e = "", r) {
51
51
  ` ${r ? "@tailwind base;" : ""}
52
52
  @tailwind components;
53
53
  @tailwind utilities;`,
54
- n
54
+ s
55
55
  );
56
56
  }
57
- const H = (t, n, s) => {
57
+ const Z = (t, s, n) => {
58
58
  const e = JSON.stringify(t).replace(/#styles:([^"]*)/g, (r, i) => `#styles:${i.replace(/,/g, " ")}`.replace(/#styles:/g, ""));
59
- return G(n, [e], [], "", s);
60
- }, wt = async (t, n = $, s = !1) => await H(t, n, s);
61
- async function X(t) {
62
- const n = await (t == null ? void 0 : t.dataProvider(t.block, t.lang, t.metadata));
63
- return /* @__PURE__ */ a.jsx(S, { children: y.createElement(t.component, { ...t.props, ...n }) });
59
+ return X(s, [e], [], "", n);
60
+ }, jt = async (t, s = F, n = !1) => await Z(t, s, n);
61
+ async function k(t) {
62
+ const s = await (t == null ? void 0 : t.dataProvider(t.block, t.lang, t.metadata));
63
+ return /* @__PURE__ */ a.jsx(S, { children: y.createElement(t.component, { ...t.props, ...s }) });
64
64
  }
65
- const Z = v((t, n) => {
66
- const s = t.replace(m, "").split(","), e = Q(s[0], s[1]);
67
- return n === "" ? e.replace(m, "").trim() : V(e, n).replace(m, "").trim();
65
+ const tt = N((t, s) => {
66
+ const n = t.replace(f, "").split(","), e = q(n[0], n[1]);
67
+ return s === "" ? e.replace(f, "").trim() : G(e, s).replace(f, "").trim();
68
68
  });
69
- function tt(t, n) {
70
- const s = u(t, `${n}_attrs`, {}), e = P(s).join(" ");
71
- return j(e, "x-show") && !j(e, "x-transition") && (s["x-transition"] = ""), s;
69
+ function et(t, s) {
70
+ const n = p(t, `${s}_attrs`, {}), e = P(n).join(" ");
71
+ return j(e, "x-show") && !j(e, "x-transition") && (n["x-transition"] = ""), n;
72
72
  }
73
- function et(t, n) {
74
- const s = {};
73
+ function st(t, s) {
74
+ const n = {};
75
75
  return Object.keys(t).forEach((e) => {
76
- if (C(t[e]) && t[e].startsWith(m)) {
77
- const r = Z(t[e], n);
78
- s[e] = {
76
+ if (C(t[e]) && t[e].startsWith(f)) {
77
+ const r = tt(t[e], s);
78
+ n[e] = {
79
79
  className: r,
80
- ...tt(t, e)
80
+ ...et(t, e)
81
81
  };
82
82
  }
83
- }), s;
83
+ }), n;
84
84
  }
85
- function nt(t, n) {
86
- const s = u(t, "_bindings", {});
87
- return g(s) ? { ...t } : (I(s, (e, r) => {
88
- C(e) && u(n, e, null) && (t[r] = u(n, e, null));
85
+ function nt(t, s) {
86
+ const n = p(t, "_bindings", {});
87
+ return g(n) ? { ...t } : (J(n, (e, r) => {
88
+ C(e) && p(s, e, null) && (t[r] = p(s, e, null));
89
89
  }), t);
90
90
  }
91
- function st(t, n, s) {
92
- if (g(n)) return t;
93
- const e = J(t), r = u(s, "i18nProps", []);
94
- return L(P(e), (i) => {
95
- r.includes(i) && !g(n) && (e[i] = u(e, `${i}-${n}`, e[i]));
91
+ function rt(t, s, n) {
92
+ if (g(s)) return t;
93
+ const e = U(t), r = p(n, "i18nProps", []);
94
+ return K(P(e), (i) => {
95
+ r.includes(i) && !g(s) && (e[i] = p(e, `${i}-${s}`, e[i]));
96
96
  }), e;
97
97
  }
98
- const rt = () => /* @__PURE__ */ a.jsx("span", { children: "Loading..." });
99
- function it({
98
+ const it = () => /* @__PURE__ */ a.jsx("span", { children: "Loading..." });
99
+ function ot({
100
100
  blocks: t,
101
- parent: n,
102
- classPrefix: s = "",
101
+ parent: s,
102
+ classPrefix: n = "",
103
103
  externalData: e = {},
104
104
  blockModifierCallback: r = null,
105
105
  lang: i = "",
106
- metadata: f = {}
106
+ fallbackLang: d = "",
107
+ metadata: c = {}
107
108
  }) {
108
- const c = t, p = (o) => et(o, s), B = n ? h(t, { _parent: n }) : h(t, (o) => g(o._parent));
109
+ const l = t, T = (o) => st(o, n), B = s ? h(t, { _parent: s }) : h(t, (o) => g(o._parent));
109
110
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: y.Children.toArray(
110
- B.map((o, T) => {
111
- const x = {}, E = h(c, { _parent: o._id });
112
- x.children = E.length > 0 ? /* @__PURE__ */ a.jsx(
113
- it,
111
+ B.map((o, E) => {
112
+ const x = {}, A = h(l, { _parent: o._id });
113
+ x.children = A.length > 0 ? /* @__PURE__ */ a.jsx(
114
+ ot,
114
115
  {
115
116
  externalData: e,
116
- classPrefix: s,
117
+ classPrefix: n,
117
118
  parent: o._id,
118
- blocks: c,
119
- lang: i ?? "",
120
- metadata: f
119
+ blocks: l,
120
+ lang: i || d,
121
+ metadata: c
121
122
  }
122
123
  ) : null;
123
- const l = z(o._type);
124
- if (l !== null) {
125
- let d = o;
126
- const w = l.component;
127
- d = { ...l.defaults, ...o }, r && (d = r(d));
128
- const _ = N(
124
+ const u = V(o._type);
125
+ if (u !== null) {
126
+ let m = o;
127
+ const w = u.component;
128
+ m = { ...u.defaults, ...o }, r && (m = r(m));
129
+ const _ = R(
129
130
  {
130
131
  blockProps: {},
131
132
  inBuilder: !1,
132
- ...d,
133
- index: T,
134
- ...nt(st(o, i, l), e),
135
- ...p(d),
133
+ ...m,
134
+ index: E,
135
+ ...nt(rt(o, i === d ? "" : i, u), e),
136
+ ...T(m),
136
137
  ...x,
137
- metadata: f,
138
- lang: i ?? ""
138
+ metadata: c,
139
+ lang: i || d
139
140
  },
140
141
  ["_parent"]
141
142
  );
142
- if (R(l, "dataProvider")) {
143
- const A = u(
144
- l,
143
+ if (I(u, "dataProvider")) {
144
+ const $ = p(
145
+ u,
145
146
  "suspenseFallback",
146
- rt
147
+ it
147
148
  );
148
- return /* @__PURE__ */ a.jsx(S, { fallback: D(A), children: /* @__PURE__ */ a.jsx(
149
- X,
149
+ return /* @__PURE__ */ a.jsx(S, { fallback: b($), children: /* @__PURE__ */ a.jsx(
150
+ k,
150
151
  {
151
- lang: i ?? "",
152
- metadata: f,
153
- dataProvider: l.dataProvider,
152
+ lang: i || d,
153
+ metadata: c,
154
+ dataProvider: u.dataProvider,
154
155
  block: o,
155
156
  component: w,
156
157
  props: _
@@ -167,10 +168,10 @@ function it({
167
168
  ) });
168
169
  }
169
170
  export {
170
- it as RenderChaiBlocks,
171
- xt as convertToBlocks,
172
- Ct as getChaiThemeCssVariables,
173
- wt as getStylesForBlocks,
174
- Pt as getThemeFontsCSSImport,
175
- Bt as getThemeFontsLinkMarkup
171
+ ot as RenderChaiBlocks,
172
+ _t as convertToBlocks,
173
+ Tt as getChaiThemeCssVariables,
174
+ jt as getStylesForBlocks,
175
+ Bt as getThemeFontsCSSImport,
176
+ Et as getThemeFontsLinkMarkup
176
177
  };
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.0-beta.58",
8
+ "version": "2.0.0-beta.60",
9
9
  "type": "module",
10
10
  "repository": {
11
11
  "type": "git",