@chaibuilder/sdk 2.0.0-beta.75 → 2.0.0-beta.77

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"),n=require("lodash-es"),m=require("./getSplitClasses-DodqA_KW.cjs"),O=require("@mhsdesign/jit-browser-tailwindcss"),k=require("@tailwindcss/aspect-ratio"),v=require("@tailwindcss/container-queries"),R=require("@tailwindcss/forms"),$=require("@tailwindcss/typography"),T=require("./plugin-2xcljWGM.cjs"),u=require("react/jsx-runtime"),_=require("@chaibuilder/runtime"),g=require("react"),b=require("tailwind-merge"),N=(e,s="")=>{const{classes:r}=m.getSplitChaiClasses(e),t=r.split(" ").map(i=>i.split(" ").map(a=>{if(a==="")return"";if(a.includes(":")){const l=a.split(":");return l[l.length-1]=s+n.last(l),l.join(":")}return`${s}${a}`}).join(" "));return n.flattenDeep(t).join(" ")},Y=e=>{if(!e)return[];try{return JSON.parse(A(e)).filter(r=>!r._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,r=>{const t=decodeURIComponent(r),i=t.indexOf("public");return i!==-1?t.substring(i+6):t})}async function I(e,s,r=[],t="",i){return await O.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:r,theme:{extend:T.getChaiBuilderTheme(e)},plugins:[R,$,k,v,T.chaiBuilderPlugin],corePlugins:{preflight:i},...t?{prefix:`${t}`}:{}}}).generateStylesFromContent(` ${i?"@tailwind base;":""}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./ChaiThemeFn-DQu-2Eh9.cjs"),n=require("lodash-es"),f=require("./getSplitClasses-DodqA_KW.cjs"),F=require("@mhsdesign/jit-browser-tailwindcss"),O=require("@tailwindcss/aspect-ratio"),R=require("@tailwindcss/container-queries"),b=require("@tailwindcss/forms"),k=require("@tailwindcss/typography"),_=require("./plugin-2xcljWGM.cjs"),d=require("react/jsx-runtime"),w=require("@chaibuilder/runtime"),p=require("react"),$=require("tailwind-merge"),N=(e,r="")=>{const{classes:s}=f.getSplitChaiClasses(e),t=s.split(" ").map(i=>i.split(" ").map(c=>{if(c==="")return"";if(c.includes(":")){const l=c.split(":");return l[l.length-1]=r+n.last(l),l.join(":")}return`${r}${c}`}).join(" "));return n.flattenDeep(t).join(" ")},Y=e=>{if(!e)return[];try{return JSON.parse(A(e)).filter(s=>!s._type.startsWith("@chai"))}catch{return[{_type:"Paragraph",_id:"error",content:"Invalid JSON. Please check the JSON string."}]}};function A(e){const r=/(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;return e.replace(r,s=>{const t=decodeURIComponent(s),i=t.indexOf("public");return i!==-1?t.substring(i+6):t})}async function I(e,r,s=[],t="",i){return await F.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:s,theme:{extend:_.getChaiBuilderTheme(e)},plugins:[b,k,O,R,_.chaiBuilderPlugin],corePlugins:{preflight:i},...t?{prefix:`${t}`}:{}}}).generateStylesFromContent(` ${i?"@tailwind base;":""}
2
2
  @tailwind components;
3
- @tailwind utilities;`,s)}const M=(e,s,r)=>{const t=JSON.stringify(e).replace(/#styles:([^"]*)/g,(i,o)=>`#styles:${o.replace(/,/g," ")}`.replace(/#styles:/g,""));return I(s,[t],[],"",r)},J=async(e,s=f.defaultThemeOptions,r=!1)=>await M(e,s,r);async function K(e){const s=await(e==null?void 0:e.dataProvider(e.block,e.lang,e.metadata));return u.jsx(g.Suspense,{children:g.createElement(e.component,{...e.props,...s})})}const L=n.memoize((e,s)=>{const{baseClasses:r,classes:t}=m.getSplitChaiClasses(e),i=b.twMerge(r,t);return s===""?i.replace(m.STYLES_KEY,"").trim():N(i,s).replace(m.STYLES_KEY,"").trim()});function D(e,s){const r=n.get(e,`${s}_attrs`,{}),t=n.keys(r).join(" ");return n.includes(t,"x-show")&&!n.includes(t,"x-transition")&&(r["x-transition"]=""),r}function U(e,s){const r={};return Object.keys(e).forEach(t=>{if(n.isString(e[t])&&e[t].startsWith(m.STYLES_KEY)){const i=L(e[t],s);r[t]={className:i,...D(e,t)}}}),r}function V(e,s,r){if(n.isEmpty(s))return e;const t=n.cloneDeep(e),i=n.get(r,"i18nProps",[]);return n.forEach(n.keys(t),o=>{i.includes(o)&&!n.isEmpty(s)&&(t[o]=n.get(t,`${o}-${s}`,t[o]))}),t}const z=n.memoize(e=>{const s=_.getRegisteredChaiBlock(e),r=n.get(s,"schema.properties",{});return Object.fromEntries(Object.entries(r).filter(([,t])=>n.get(t,"runtime",!1)))}),W=(e,s,r)=>n.isEmpty(r)?{}:Object.entries(r).reduce((t,[i,o])=>{const d=[];let a=n.find(e,{_id:s});for(;a;)d.push(a),a=n.find(e,{_id:a._parent});const l=n.find(d,{_type:o.block});return l&&(t[i]=n.get(l,n.get(o,"prop"),null)),t},{}),Q=()=>u.jsx("span",{children:"Loading..."});function w({blocks:e,parent:s,classPrefix:r="",externalData:t={},blockModifierCallback:i=null,lang:o="",fallbackLang:d="",metadata:a={}}){const l=e,j=c=>U(c,r),E=s?n.filter(e,{_parent:s}):n.filter(e,c=>n.isEmpty(c._parent));return u.jsx(u.Fragment,{children:g.Children.toArray(E.map((c,B)=>{const S={},P=n.filter(l,{_parent:c._id});S.children=P.length>0?u.jsx(w,{externalData:t,classPrefix:r,parent:c._id,blocks:l,lang:o||d,metadata:a}):null;const p=_.getRegisteredChaiBlock(c._type);if(p!==null){let h=c;const y=p.component;h={...p.defaults,...c},i&&(h=i(h));const x=o===d?"":o,q=W(l,c._id,z(c._type)),C=n.omit({blockProps:{},inBuilder:!1,...h,index:B,...V(c,x,p),...j(h),...S,...q,metadata:a,lang:o||d},["_parent"]);if(n.has(p,"dataProvider")){const F=n.get(p,"suspenseFallback",Q);return u.jsx(g.Suspense,{fallback:g.createElement(F),children:u.jsx(K,{lang:o||d,metadata:a,dataProvider:p.dataProvider,block:c,component:y,props:C})})}return u.jsx(g.Suspense,{children:g.createElement(y,C)})}return u.jsxs("noscript",{children:[c._type," not found"]})}))})}exports.getChaiThemeCssVariables=f.getChaiThemeCssVariables;exports.getThemeFontsCSSImport=f.getThemeFontsCSSImport;exports.getThemeFontsLinkMarkup=f.getThemeFontsLinkMarkup;exports.RenderChaiBlocks=w;exports.convertToBlocks=Y;exports.getStylesForBlocks=J;
3
+ @tailwind utilities;`,r)}const M=(e,r,s)=>{const t=JSON.stringify(e).replace(/#styles:([^"]*)/g,(i,o)=>`#styles:${o.replace(/,/g," ")}`.replace(/#styles:/g,""));return I(r,[t],[],"",s)},J=async(e,r=m.defaultThemeOptions,s=!1)=>await M(e,r,s);async function K(e){const r=await(e==null?void 0:e.dataProvider(e.block,e.lang,e.metadata));return d.jsx(p.Suspense,{children:p.createElement(e.component,{...e.props,...r})})}const L=n.memoize((e,r)=>{const{baseClasses:s,classes:t}=f.getSplitChaiClasses(e),i=$.twMerge(s,t);return r===""?i.replace(f.STYLES_KEY,"").trim():N(i,r).replace(f.STYLES_KEY,"").trim()}),V=(e,r)=>{const s=n.cloneDeep(e);return n.forEach(n.keys(s),t=>{if(n.isString(s[t])){let i=s[t];const o=/\{\{(.*?)\}\}/g,u=i.match(o);u&&u.forEach(c=>{const l=c.slice(2,-2),S=n.get(r,l,c);i=i.replace(c,S)}),s[t]=i}}),s};function D(e,r){const s=n.get(e,`${r}_attrs`,{}),t=n.keys(s).join(" ");return n.includes(t,"x-show")&&!n.includes(t,"x-transition")&&(s["x-transition"]=""),s}function U(e,r){const s={};return Object.keys(e).forEach(t=>{if(n.isString(e[t])&&e[t].startsWith(f.STYLES_KEY)){const i=L(e[t],r);s[t]={className:i,...D(e,t)}}}),s}function z(e,r,s){if(n.isEmpty(r))return e;const t=n.cloneDeep(e),i=n.get(s,"i18nProps",[]);return n.forEach(n.keys(t),o=>{i.includes(o)&&!n.isEmpty(r)&&(t[o]=n.get(t,`${o}-${r}`,t[o]))}),t}const W=n.memoize(e=>{const r=w.getRegisteredChaiBlock(e),s=n.get(r,"schema.properties",{});return Object.fromEntries(Object.entries(s).filter(([,t])=>n.get(t,"runtime",!1)))}),Q=(e,r,s)=>n.isEmpty(s)?{}:Object.entries(s).reduce((t,[i,o])=>{const u=[];let c=n.find(e,{_id:r});for(;c;)u.push(c),c=n.find(e,{_id:c._parent});const l=n.find(u,{_type:o.block});return l&&(t[i]=n.get(l,n.get(o,"prop"),null)),t},{}),G=()=>d.jsx("span",{children:"Loading..."});function E({blocks:e,parent:r,classPrefix:s="",externalData:t={},blockModifierCallback:i=null,lang:o="",fallbackLang:u="",metadata:c={}}){const l=e,S=a=>U(a,s),j=r?n.filter(e,{_parent:r}):n.filter(e,a=>n.isEmpty(a._parent));return d.jsx(d.Fragment,{children:p.Children.toArray(j.map((a,B)=>{const y={},P=n.filter(l,{_parent:a._id});y.children=P.length>0?d.jsx(E,{externalData:t,classPrefix:s,parent:a._id,blocks:l,lang:o||u,metadata:c}):null;const g=w.getRegisteredChaiBlock(a._type);if(g!==null){let h=a;const C=g.component;h={...g.defaults,...a},i&&(h=i(h));const x=o===u?"":o,q=Q(l,a._id,W(a._type)),T=n.omit({blockProps:{},inBuilder:!1,...h,index:B,...V(z(a,x,g),t),...S(h),...y,...q,metadata:c,lang:o||u},["_parent"]);if(n.has(g,"dataProvider")){const v=n.get(g,"suspenseFallback",G);return d.jsx(p.Suspense,{fallback:p.createElement(v),children:d.jsx(K,{lang:o||u,metadata:c,dataProvider:g.dataProvider,block:a,component:C,props:T})})}return d.jsx(p.Suspense,{children:p.createElement(C,T)})}return d.jsxs("noscript",{children:[a._type," not found"]})}))})}exports.getChaiThemeCssVariables=m.getChaiThemeCssVariables;exports.getThemeFontsCSSImport=m.getThemeFontsCSSImport;exports.getThemeFontsLinkMarkup=m.getThemeFontsLinkMarkup;exports.RenderChaiBlocks=E;exports.convertToBlocks=Y;exports.getStylesForBlocks=J;
package/dist/render.d.ts CHANGED
@@ -57,3 +57,9 @@ export declare function RenderChaiBlocks({ blocks, parent, classPrefix, external
57
57
  declare type VariableKey = string;
58
58
 
59
59
  export { }
60
+
61
+ declare global {
62
+ interface Window {
63
+ clarity: any;
64
+ }
65
+ }
package/dist/render.js CHANGED
@@ -1,27 +1,27 @@
1
- import { d as A } from "./ChaiThemeFn-Cort9tch.js";
2
- import { a as $t, b as Ft, c as Rt } from "./ChaiThemeFn-Cort9tch.js";
3
- import { last as I, flattenDeep as J, memoize as T, get as u, filter as h, isEmpty as f, omit as k, has as D, cloneDeep as U, forEach as K, keys as j, find as g, isString as M, includes as B } from "lodash-es";
4
- import { g as x, S as y } from "./getSplitClasses-DphwgQiE.js";
5
- import { createTailwindcss as V } from "@mhsdesign/jit-browser-tailwindcss";
1
+ import { d as U } from "./ChaiThemeFn-Cort9tch.js";
2
+ import { a as Rt, b as $t, c as Ft } from "./ChaiThemeFn-Cort9tch.js";
3
+ import { last as V, flattenDeep as k, memoize as j, get as u, filter as h, isEmpty as f, omit as D, has as K, cloneDeep as x, forEach as O, keys as w, isString as v, find as S, includes as E } from "lodash-es";
4
+ import { g as b, S as y } from "./getSplitClasses-DphwgQiE.js";
5
+ import { createTailwindcss as M } from "@mhsdesign/jit-browser-tailwindcss";
6
6
  import W from "@tailwindcss/aspect-ratio";
7
7
  import Y from "@tailwindcss/container-queries";
8
8
  import z from "@tailwindcss/forms";
9
9
  import L from "@tailwindcss/typography";
10
10
  import { g as Q, c as q } from "./plugin-kUMxtQR5.js";
11
11
  import { jsx as d, Fragment as G, jsxs as H } from "react/jsx-runtime";
12
- import { getRegisteredChaiBlock as E } from "@chaibuilder/runtime";
13
- import S, { Suspense as _, createElement as X } from "react";
12
+ import { getRegisteredChaiBlock as R } from "@chaibuilder/runtime";
13
+ import _, { Suspense as C, createElement as X } from "react";
14
14
  import { twMerge as Z } from "tailwind-merge";
15
15
  const tt = (t, s = "") => {
16
- const { classes: n } = x(t), e = n.split(" ").map((r) => r.split(" ").map((a) => {
17
- if (a === "") return "";
18
- if (a.includes(":")) {
19
- const c = a.split(":");
20
- return c[c.length - 1] = s + I(c), c.join(":");
16
+ const { classes: n } = b(t), e = n.split(" ").map((r) => r.split(" ").map((o) => {
17
+ if (o === "") return "";
18
+ if (o.includes(":")) {
19
+ const a = o.split(":");
20
+ return a[a.length - 1] = s + V(a), a.join(":");
21
21
  }
22
- return `${s}${a}`;
22
+ return `${s}${o}`;
23
23
  }).join(" "));
24
- return J(e).join(" ");
24
+ return k(e).join(" ");
25
25
  }, xt = (t) => {
26
26
  if (!t) return [];
27
27
  try {
@@ -37,8 +37,8 @@ function et(t) {
37
37
  return r !== -1 ? e.substring(r + 6) : e;
38
38
  });
39
39
  }
40
- async function st(t, s, n = [], e = "", r) {
41
- return await V({
40
+ async function nt(t, s, n = [], e = "", r) {
41
+ return await M({
42
42
  tailwindConfig: {
43
43
  darkMode: "class",
44
44
  safelist: n,
@@ -54,53 +54,65 @@ async function st(t, s, n = [], e = "", r) {
54
54
  s
55
55
  );
56
56
  }
57
- const nt = (t, s, n) => {
57
+ const st = (t, s, n) => {
58
58
  const e = JSON.stringify(t).replace(/#styles:([^"]*)/g, (r, i) => `#styles:${i.replace(/,/g, " ")}`.replace(/#styles:/g, ""));
59
- return st(s, [e], [], "", n);
60
- }, Et = async (t, s = A, n = !1) => await nt(t, s, n);
59
+ return nt(s, [e], [], "", n);
60
+ }, Ot = async (t, s = U, n = !1) => await st(t, s, n);
61
61
  async function rt(t) {
62
62
  const s = await (t == null ? void 0 : t.dataProvider(t.block, t.lang, t.metadata));
63
- return /* @__PURE__ */ d(_, { children: S.createElement(t.component, { ...t.props, ...s }) });
63
+ return /* @__PURE__ */ d(C, { children: _.createElement(t.component, { ...t.props, ...s }) });
64
64
  }
65
- const it = T((t, s) => {
66
- const { baseClasses: n, classes: e } = x(t), r = Z(n, e);
65
+ const it = j((t, s) => {
66
+ const { baseClasses: n, classes: e } = b(t), r = Z(n, e);
67
67
  return s === "" ? r.replace(y, "").trim() : tt(r, s).replace(y, "").trim();
68
- });
69
- function ot(t, s) {
70
- const n = u(t, `${s}_attrs`, {}), e = j(n).join(" ");
71
- return B(e, "x-show") && !B(e, "x-transition") && (n["x-transition"] = ""), n;
68
+ }), ot = (t, s) => {
69
+ const n = x(t);
70
+ return O(w(n), (e) => {
71
+ if (v(n[e])) {
72
+ let r = n[e];
73
+ const i = /\{\{(.*?)\}\}/g, l = r.match(i);
74
+ l && l.forEach((o) => {
75
+ const a = o.slice(2, -2), g = u(s, a, o);
76
+ r = r.replace(o, g);
77
+ }), n[e] = r;
78
+ }
79
+ }), n;
80
+ };
81
+ function ct(t, s) {
82
+ const n = u(t, `${s}_attrs`, {}), e = w(n).join(" ");
83
+ return E(e, "x-show") && !E(e, "x-transition") && (n["x-transition"] = ""), n;
72
84
  }
73
85
  function at(t, s) {
74
86
  const n = {};
75
87
  return Object.keys(t).forEach((e) => {
76
- if (M(t[e]) && t[e].startsWith(y)) {
88
+ if (v(t[e]) && t[e].startsWith(y)) {
77
89
  const r = it(t[e], s);
78
90
  n[e] = {
79
91
  className: r,
80
- ...ot(t, e)
92
+ ...ct(t, e)
81
93
  };
82
94
  }
83
95
  }), n;
84
96
  }
85
- function ct(t, s, n) {
97
+ function lt(t, s, n) {
86
98
  if (f(s)) return t;
87
- const e = U(t), r = u(n, "i18nProps", []);
88
- return K(j(e), (i) => {
99
+ const e = x(t), r = u(n, "i18nProps", []);
100
+ return O(w(e), (i) => {
89
101
  r.includes(i) && !f(s) && (e[i] = u(e, `${i}-${s}`, e[i]));
90
102
  }), e;
91
103
  }
92
- const lt = T((t) => {
93
- const s = E(t), n = u(s, "schema.properties", {});
104
+ const ut = j((t) => {
105
+ const s = R(t), n = u(s, "schema.properties", {});
94
106
  return Object.fromEntries(Object.entries(n).filter(([, e]) => u(e, "runtime", !1)));
95
- }), ut = (t, s, n) => f(n) ? {} : Object.entries(n).reduce((e, [r, i]) => {
107
+ }), pt = (t, s, n) => f(n) ? {} : Object.entries(n).reduce((e, [r, i]) => {
96
108
  const l = [];
97
- let a = g(t, { _id: s });
98
- for (; a; )
99
- l.push(a), a = g(t, { _id: a._parent });
100
- const c = g(l, { _type: i.block });
101
- return c && (e[r] = u(c, u(i, "prop"), null)), e;
102
- }, {}), pt = () => /* @__PURE__ */ d("span", { children: "Loading..." });
103
- function dt({
109
+ let o = S(t, { _id: s });
110
+ for (; o; )
111
+ l.push(o), o = S(t, { _id: o._parent });
112
+ const a = S(l, { _type: i.block });
113
+ return a && (e[r] = u(a, u(i, "prop"), null)), e;
114
+ }, {}), dt = () => /* @__PURE__ */ d("span", { children: "Loading..." });
115
+ function mt({
104
116
  blocks: t,
105
117
  parent: s,
106
118
  classPrefix: n = "",
@@ -108,75 +120,75 @@ function dt({
108
120
  blockModifierCallback: r = null,
109
121
  lang: i = "",
110
122
  fallbackLang: l = "",
111
- metadata: a = {}
123
+ metadata: o = {}
112
124
  }) {
113
- const c = t, O = (o) => at(o, n), v = s ? h(t, { _parent: s }) : h(t, (o) => f(o._parent));
114
- return /* @__PURE__ */ d(G, { children: S.Children.toArray(
115
- v.map((o, $) => {
116
- const C = {}, F = h(c, { _parent: o._id });
117
- C.children = F.length > 0 ? /* @__PURE__ */ d(
118
- dt,
125
+ const a = t, g = (c) => at(c, n), $ = s ? h(t, { _parent: s }) : h(t, (c) => f(c._parent));
126
+ return /* @__PURE__ */ d(G, { children: _.Children.toArray(
127
+ $.map((c, F) => {
128
+ const P = {}, N = h(a, { _parent: c._id });
129
+ P.children = N.length > 0 ? /* @__PURE__ */ d(
130
+ mt,
119
131
  {
120
132
  externalData: e,
121
133
  classPrefix: n,
122
- parent: o._id,
123
- blocks: c,
134
+ parent: c._id,
135
+ blocks: a,
124
136
  lang: i || l,
125
- metadata: a
137
+ metadata: o
126
138
  }
127
139
  ) : null;
128
- const p = E(o._type);
140
+ const p = R(c._type);
129
141
  if (p !== null) {
130
- let m = o;
131
- const w = p.component;
132
- m = { ...p.defaults, ...o }, r && (m = r(m));
133
- const R = i === l ? "" : i, N = ut(c, o._id, lt(o._type)), P = k(
142
+ let m = c;
143
+ const B = p.component;
144
+ m = { ...p.defaults, ...c }, r && (m = r(m));
145
+ const A = i === l ? "" : i, I = pt(a, c._id, ut(c._type)), T = D(
134
146
  {
135
147
  blockProps: {},
136
148
  inBuilder: !1,
137
149
  ...m,
138
- index: $,
139
- ...ct(o, R, p),
140
- ...O(m),
141
- ...C,
142
- ...N,
143
- metadata: a,
150
+ index: F,
151
+ ...ot(lt(c, A, p), e),
152
+ ...g(m),
153
+ ...P,
154
+ ...I,
155
+ metadata: o,
144
156
  lang: i || l
145
157
  },
146
158
  ["_parent"]
147
159
  );
148
- if (D(p, "dataProvider")) {
149
- const b = u(
160
+ if (K(p, "dataProvider")) {
161
+ const J = u(
150
162
  p,
151
163
  "suspenseFallback",
152
- pt
164
+ dt
153
165
  );
154
- return /* @__PURE__ */ d(_, { fallback: X(b), children: /* @__PURE__ */ d(
166
+ return /* @__PURE__ */ d(C, { fallback: X(J), children: /* @__PURE__ */ d(
155
167
  rt,
156
168
  {
157
169
  lang: i || l,
158
- metadata: a,
170
+ metadata: o,
159
171
  dataProvider: p.dataProvider,
160
- block: o,
161
- component: w,
162
- props: P
172
+ block: c,
173
+ component: B,
174
+ props: T
163
175
  }
164
176
  ) });
165
177
  }
166
- return /* @__PURE__ */ d(_, { children: S.createElement(w, P) });
178
+ return /* @__PURE__ */ d(C, { children: _.createElement(B, T) });
167
179
  }
168
180
  return /* @__PURE__ */ H("noscript", { children: [
169
- o._type,
181
+ c._type,
170
182
  " not found"
171
183
  ] });
172
184
  })
173
185
  ) });
174
186
  }
175
187
  export {
176
- dt as RenderChaiBlocks,
188
+ mt as RenderChaiBlocks,
177
189
  xt as convertToBlocks,
178
- $t as getChaiThemeCssVariables,
179
- Et as getStylesForBlocks,
180
- Ft as getThemeFontsCSSImport,
181
- Rt as getThemeFontsLinkMarkup
190
+ Rt as getChaiThemeCssVariables,
191
+ Ot as getStylesForBlocks,
192
+ $t as getThemeFontsCSSImport,
193
+ Ft as getThemeFontsLinkMarkup
182
194
  };
package/dist/runtime.d.ts CHANGED
@@ -2,3 +2,9 @@
2
2
  export * from "@chaibuilder/runtime";
3
3
 
4
4
  export { }
5
+
6
+ declare global {
7
+ interface Window {
8
+ clarity: any;
9
+ }
10
+ }
@@ -124,3 +124,9 @@ declare type HSLColor = string;
124
124
  declare type VariableKey = string;
125
125
 
126
126
  export { }
127
+
128
+ declare global {
129
+ interface Window {
130
+ clarity: any;
131
+ }
132
+ }
package/dist/ui.d.ts CHANGED
@@ -414,3 +414,9 @@ export declare function useToast(): {
414
414
  };
415
415
 
416
416
  export { }
417
+
418
+ declare global {
419
+ interface Window {
420
+ clarity: any;
421
+ }
422
+ }
@@ -1,3 +1,9 @@
1
1
  export declare const loadWebBlocks: () => void;
2
2
 
3
3
  export { }
4
+
5
+ declare global {
6
+ interface Window {
7
+ clarity: any;
8
+ }
9
+ }
@@ -354,9 +354,7 @@ const Le = (e) => {
354
354
  type: "string",
355
355
  title: "Global Block",
356
356
  default: "",
357
- ui: {
358
- "ui:widget": "hidden"
359
- }
357
+ ui: { "ui:widget": "hidden" }
360
358
  }
361
359
  }
362
360
  })
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.75",
8
+ "version": "2.0.0-beta.77",
9
9
  "type": "module",
10
10
  "repository": {
11
11
  "type": "git",
@@ -134,6 +134,7 @@
134
134
  "@commitlint/config-conventional": "19.6.0",
135
135
  "@emotion/react": "^11.14.0",
136
136
  "@faker-js/faker": "^9.4.0",
137
+ "@microsoft/clarity": "^1.0.0",
137
138
  "@playwright/test": "^1.50.0",
138
139
  "@tanstack/eslint-plugin-query": "^5.64.2",
139
140
  "@testing-library/react": "^16.2.0",