@chaibuilder/sdk 3.0.7 → 3.0.9
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.cjs +4 -4
- package/dist/core.d.ts +1 -1
- package/dist/core.js +627 -630
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +1 -15
- package/dist/render.js +104 -79
- package/package.json +1 -1
package/dist/render.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./plugin-CSgw-f78.cjs"),u=require("./apply-binding-HQ9gBNJP.cjs"),t=require("lodash-es"),q=require("@tailwindcss/aspect-ratio"),E=require("@tailwindcss/forms"),L=require("@tailwindcss/typography");require("tailwindcss-animate");const $=require("./get-chai-builder-theme-B1tr_NJB.cjs"),F=require("@mhsdesign/jit-browser-tailwindcss"),R=require("@tailwindcss/container-queries"),m=require("react/jsx-runtime"),g=require("react"),M=require("@chaibuilder/runtime");function D(e,r){const a=e.filter(({_type:i})=>i==="GlobalBlock"||i==="PartialBlock");for(let i=0;i<a.length;i++){const o=a[i],c=t.get(o,"partialBlockId",t.get(o,"globalBlock",""));if(c==="")continue;let n=t.cloneDeep(t.get(r,c,[]));o._parent&&(n==null?void 0:n.length)>0&&(n=n.map(l=>(t.isEmpty(l._parent)&&(l._parent=o._parent),l)));const s=e.indexOf(o);e.splice(s,1,...n)}return e}const j=e=>{if(!e)return[];try{return JSON.parse(A(e)).filter(a=>!a._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,a=>{const i=decodeURIComponent(a),o=i.indexOf("public");return o!==-1?i.substring(o+6):i})}async function O(e,r=[],a=!1){return await F.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:r,theme:{extend:{...$.getChaiBuilderTheme(),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"}}},plugins:[E,L,q,R,y.chaiBuilderPlugin],corePlugins:{preflight:a}}}).generateStylesFromContent(` ${a?"@tailwind base;":""}
|
|
2
2
|
@tailwind components;
|
|
3
|
-
@tailwind utilities;`,
|
|
3
|
+
@tailwind utilities;`,e)}const K=(e,r)=>{const a=JSON.stringify(e).replace(/#styles:([^"]*)/g,(i,o)=>`#styles:${o.replace(/,/g," ")}`.replace(/#styles:/g,""));return O([a],[],r)},N=async(e,r=!1)=>await K(e,r);async function J(e){const r={pageProps:e.pageProps,block:e.block,lang:e.lang,draft:e.draft,inBuilder:!1},a=await e.dataProvider(r);return t.has(a,"$metadata")&&t.isFunction(e.dataProviderMetadataCallback)&&e.dataProviderMetadataCallback(e.block,a.$metadata),e.children({...t.omit(a,"$metadata")})}const V=()=>m.jsx("div",{}),H=e=>{const{block:r,lang:a,fallbackLang:i,children:o,externalData:c,blocks:n,draft:s,pageProps:l,dataProviderMetadataCallback:h}=e,d=M.getRegisteredChaiBlock(r._type),f=t.get(d,"component",null),k=t.get(e.repeaterData,"index",-1),b=t.get(e.repeaterData,"dataKey",""),w=a===i?"":a,p=u.applyBindingToBlockProps(u.applyLanguage(r,w,d),c,{index:k,key:b}),C=u.getBlockTagAttributes(r,!1),S=U(n,r._id,u.getBlockRuntimeProps(r._type)),v=t.has(d,"dataProvider")&&t.isFunction(d.dataProvider),B={...p,...C,...S},P={blockProps:{},inBuilder:!1,lang:a||i,...B},T=t.get(B,"_show",!0);if(t.isNull(f)||!T)return null;if(v){const x=t.get(d,"suspenseFallback",V);return m.jsx(g.Suspense,{fallback:g.createElement(x),children:m.jsx(J,{lang:a,pageProps:l,block:B,dataProvider:d.dataProvider,...h?{dataProviderMetadataCallback:h}:{},draft:s,children:I=>g.createElement(f,{...P,...I,children:o({_id:r._id,_type:r._type,...t.isArray(p.repeaterItems)?{repeaterItems:u.applyLimit(p.repeaterItems,r),$repeaterItemsKey:p.$repeaterItemsKey}:{}})})})})}return m.jsx(g.Suspense,{children:g.createElement(f,{...P,children:o({_id:r._id,_type:r._type,...t.isArray(p.repeaterItems)?{repeaterItems:u.applyLimit(p.repeaterItems,r),$repeaterItemsKey:p.$repeaterItemsKey}:{}})})})},_=e=>{const{blocks:r,parent:a,repeaterData:i}=e;let o=t.uniqBy(t.filter(r,n=>t.has(n,"_id")&&(t.isEmpty(a)?!n._parent:n._parent===a)),"_id");const c=n=>t.filter(r,s=>s._parent===n).length>0;return t.map(o,n=>n?g.createElement(H,{...e,key:n._id,block:n},({_id:s,_type:l,repeaterItems:h,$repeaterItemsKey:d})=>l==="Repeater"?t.isArray(h)&&h.map((f,k)=>g.createElement(_,{...e,parent:n._id,key:`${t.get(n,"_parent","root")}-${n._id}-${k}`,repeaterData:{index:k,dataKey:d}})):c(s)?g.createElement(_,{...e,parent:n._id,key:`${t.get(n,"_parent","root")}-${n._id}`,repeaterData:i}):null):null)},U=(e,r,a)=>t.isEmpty(a)?{}:Object.entries(a).reduce((i,[o,c])=>{const n=[];let s=t.find(e,{_id:r});for(;s;)n.push(s),s=t.find(e,{_id:s._parent});const l=t.find(n,{_type:c.block});return l&&(i[o]=t.get(l,t.get(c,"prop"),null)),i},{});function W(e){if(t.isEmpty(e.lang)&&!t.isEmpty(e.fallbackLang))throw new Error("lang prop is required when fallbackLang is provided");if(t.isEmpty(e.blocks))return null;const r=e.lang??"en",a=e.fallbackLang??r;return m.jsx(_,{...e,lang:r,fallbackLang:a})}exports.getChaiThemeCssVariables=y.getChaiThemeCssVariables;exports.getThemeFontsCSSImport=y.getThemeFontsCSSImport;exports.getThemeFontsLinkMarkup=y.getThemeFontsLinkMarkup;exports.applyChaiDataBinding=u.applyChaiDataBinding;exports.convertHTMLToChaiBlocks=u.getBlocksFromHTML;exports.RenderChaiBlocks=W;exports.convertToBlocks=j;exports.getMergedPartialBlocks=D;exports.getStylesForBlocks=N;
|
package/dist/render.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
4
4
|
|
|
5
5
|
export declare const applyChaiDataBinding: (block: Record<string, string>, pageExternalData: Record<string, any>) => any;
|
|
6
6
|
|
|
7
|
-
declare type BorderRadiusValue = false | string;
|
|
8
|
-
|
|
9
7
|
declare type ChaiBlock<T = Record<string, any>> = {
|
|
10
8
|
_id: string;
|
|
11
9
|
_name?: string;
|
|
@@ -15,15 +13,6 @@ declare type ChaiBlock<T = Record<string, any>> = {
|
|
|
15
13
|
_libBlock?: string;
|
|
16
14
|
} & T;
|
|
17
15
|
|
|
18
|
-
declare type ChaiBuilderThemeOptions = {
|
|
19
|
-
fontFamily: false | Record<VariableKey, string>;
|
|
20
|
-
borderRadius: BorderRadiusValue;
|
|
21
|
-
colors: false | {
|
|
22
|
-
group: string;
|
|
23
|
-
items: Record<VariableKey, [HSLColor, HSLColor]>;
|
|
24
|
-
}[];
|
|
25
|
-
};
|
|
26
|
-
|
|
27
16
|
declare type ChaiThemeValues = {
|
|
28
17
|
fontFamily: {
|
|
29
18
|
heading: string;
|
|
@@ -74,11 +63,10 @@ export declare function getMergedPartialBlocks(blocks: ChaiBlock[], partials: Re
|
|
|
74
63
|
/**
|
|
75
64
|
* Get the tailwind css for the blocks
|
|
76
65
|
* @param blocks - The blocks to get the tailwind css for
|
|
77
|
-
* @param themeOptions - The theme options to use
|
|
78
66
|
* @param includeBaseStyles - Whether to include the base styles
|
|
79
67
|
* @returns The tailwind css for the blocks
|
|
80
68
|
*/
|
|
81
|
-
export declare const getStylesForBlocks: (blocks: ChaiBlock[],
|
|
69
|
+
export declare const getStylesForBlocks: (blocks: ChaiBlock[], includeBaseStyles?: boolean) => Promise<string>;
|
|
82
70
|
|
|
83
71
|
export declare const getThemeFontsCSSImport: (fonts: ChaiFontViaUrl[]) => any;
|
|
84
72
|
|
|
@@ -101,8 +89,6 @@ declare type RenderChaiBlocksProps = {
|
|
|
101
89
|
dataProviderMetadataCallback?: (block: ChaiBlock, meta: Record<string, any>) => void;
|
|
102
90
|
};
|
|
103
91
|
|
|
104
|
-
declare type VariableKey = string;
|
|
105
|
-
|
|
106
92
|
export { }
|
|
107
93
|
|
|
108
94
|
declare global {
|
package/dist/render.js
CHANGED
|
@@ -1,67 +1,92 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as M, b as
|
|
4
|
-
import { e as
|
|
5
|
-
import { get as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { c as K } from "./plugin-BOcGV_IY.js";
|
|
2
|
+
import { a as Ce, b as xe, e as Se } from "./plugin-BOcGV_IY.js";
|
|
3
|
+
import { a as M, b as O, g as A, c as N, d as v } from "./apply-binding-tfi-KyyV.js";
|
|
4
|
+
import { e as $e, f as Te } from "./apply-binding-tfi-KyyV.js";
|
|
5
|
+
import { get as l, cloneDeep as J, isEmpty as g, has as b, isFunction as S, omit as E, isNull as j, isArray as B, uniqBy as q, filter as C, map as U, find as _ } from "lodash-es";
|
|
6
|
+
import V from "@tailwindcss/aspect-ratio";
|
|
7
|
+
import W from "@tailwindcss/forms";
|
|
8
|
+
import G from "@tailwindcss/typography";
|
|
9
9
|
import "tailwindcss-animate";
|
|
10
|
-
import { g as
|
|
11
|
-
import { createTailwindcss as
|
|
12
|
-
import
|
|
10
|
+
import { g as H } from "./get-chai-builder-theme-BarMkcGH.js";
|
|
11
|
+
import { createTailwindcss as z } from "@mhsdesign/jit-browser-tailwindcss";
|
|
12
|
+
import Q from "@tailwindcss/container-queries";
|
|
13
13
|
import { jsx as m } from "react/jsx-runtime";
|
|
14
|
-
import { Suspense as
|
|
15
|
-
import { getRegisteredChaiBlock as
|
|
16
|
-
function
|
|
14
|
+
import { Suspense as x, createElement as u } from "react";
|
|
15
|
+
import { getRegisteredChaiBlock as X } from "@chaibuilder/runtime";
|
|
16
|
+
function _e(e, t) {
|
|
17
17
|
const a = e.filter(({ _type: n }) => n === "GlobalBlock" || n === "PartialBlock");
|
|
18
18
|
for (let n = 0; n < a.length; n++) {
|
|
19
|
-
const i = a[n],
|
|
20
|
-
if (
|
|
21
|
-
let r =
|
|
22
|
-
i._parent && (r == null ? void 0 : r.length) > 0 && (r = r.map((
|
|
23
|
-
const
|
|
24
|
-
e.splice(
|
|
19
|
+
const i = a[n], c = l(i, "partialBlockId", l(i, "globalBlock", ""));
|
|
20
|
+
if (c === "") continue;
|
|
21
|
+
let r = J(l(t, c, []));
|
|
22
|
+
i._parent && (r == null ? void 0 : r.length) > 0 && (r = r.map((s) => (g(s._parent) && (s._parent = i._parent), s)));
|
|
23
|
+
const o = e.indexOf(i);
|
|
24
|
+
e.splice(o, 1, ...r);
|
|
25
25
|
}
|
|
26
26
|
return e;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const Be = (e) => {
|
|
29
29
|
if (!e) return [];
|
|
30
30
|
try {
|
|
31
|
-
return JSON.parse(
|
|
31
|
+
return JSON.parse(Y(e)).filter((a) => !a._type.startsWith("@chai"));
|
|
32
32
|
} catch {
|
|
33
33
|
return [{ _type: "Paragraph", _id: "error", content: "Invalid JSON. Please check the JSON string." }];
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
function
|
|
36
|
+
function Y(e) {
|
|
37
37
|
const t = /(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;
|
|
38
38
|
return e.replace(t, (a) => {
|
|
39
39
|
const n = decodeURIComponent(a), i = n.indexOf("public");
|
|
40
40
|
return i !== -1 ? n.substring(i + 6) : n;
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
async function
|
|
44
|
-
return await
|
|
43
|
+
async function Z(e, t = [], a = !1) {
|
|
44
|
+
return await z({
|
|
45
45
|
tailwindConfig: {
|
|
46
46
|
darkMode: "class",
|
|
47
|
-
safelist:
|
|
48
|
-
theme: {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
safelist: t,
|
|
48
|
+
theme: {
|
|
49
|
+
extend: {
|
|
50
|
+
...H(),
|
|
51
|
+
keyframes: {
|
|
52
|
+
"accordion-down": {
|
|
53
|
+
from: {
|
|
54
|
+
height: "0"
|
|
55
|
+
},
|
|
56
|
+
to: {
|
|
57
|
+
height: "var(--radix-accordion-content-height)"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"accordion-up": {
|
|
61
|
+
from: {
|
|
62
|
+
height: "var(--radix-accordion-content-height)"
|
|
63
|
+
},
|
|
64
|
+
to: {
|
|
65
|
+
height: "0"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
animation: {
|
|
70
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
71
|
+
"accordion-up": "accordion-up 0.2s ease-out"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
plugins: [W, G, V, Q, K],
|
|
76
|
+
corePlugins: { preflight: a }
|
|
52
77
|
}
|
|
53
78
|
}).generateStylesFromContent(
|
|
54
|
-
` ${
|
|
79
|
+
` ${a ? "@tailwind base;" : ""}
|
|
55
80
|
@tailwind components;
|
|
56
81
|
@tailwind utilities;`,
|
|
57
|
-
|
|
82
|
+
e
|
|
58
83
|
);
|
|
59
84
|
}
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
return
|
|
63
|
-
},
|
|
64
|
-
async function
|
|
85
|
+
const ee = (e, t) => {
|
|
86
|
+
const a = JSON.stringify(e).replace(/#styles:([^"]*)/g, (n, i) => `#styles:${i.replace(/,/g, " ")}`.replace(/#styles:/g, ""));
|
|
87
|
+
return Z([a], [], t);
|
|
88
|
+
}, Pe = async (e, t = !1) => await ee(e, t);
|
|
89
|
+
async function te(e) {
|
|
65
90
|
const t = {
|
|
66
91
|
pageProps: e.pageProps,
|
|
67
92
|
block: e.block,
|
|
@@ -69,16 +94,16 @@ async function ae(e) {
|
|
|
69
94
|
draft: e.draft,
|
|
70
95
|
inBuilder: !1
|
|
71
96
|
}, a = await e.dataProvider(t);
|
|
72
|
-
return b(a, "$metadata") &&
|
|
73
|
-
...
|
|
97
|
+
return b(a, "$metadata") && S(e.dataProviderMetadataCallback) && e.dataProviderMetadataCallback(e.block, a.$metadata), e.children({
|
|
98
|
+
...E(a, "$metadata")
|
|
74
99
|
});
|
|
75
100
|
}
|
|
76
|
-
const
|
|
77
|
-
const { block: t, lang: a, fallbackLang: n, children: i, externalData:
|
|
78
|
-
|
|
79
|
-
|
|
101
|
+
const ae = () => /* @__PURE__ */ m("div", {}), re = (e) => {
|
|
102
|
+
const { block: t, lang: a, fallbackLang: n, children: i, externalData: c, blocks: r, draft: o, pageProps: s, dataProviderMetadataCallback: f } = e, d = X(t._type), h = l(d, "component", null), k = l(e.repeaterData, "index", -1), I = l(e.repeaterData, "dataKey", ""), p = M(
|
|
103
|
+
O(t, a === n ? "" : a, d),
|
|
104
|
+
c,
|
|
80
105
|
{ index: k, key: I }
|
|
81
|
-
), $ =
|
|
106
|
+
), $ = A(t, !1), T = ne(r, t._id, N(t._type)), L = b(d, "dataProvider") && S(d.dataProvider), y = {
|
|
82
107
|
...p,
|
|
83
108
|
...$,
|
|
84
109
|
...T
|
|
@@ -87,27 +112,27 @@ const re = () => /* @__PURE__ */ m("div", {}), ne = (e) => {
|
|
|
87
112
|
inBuilder: !1,
|
|
88
113
|
lang: a || n,
|
|
89
114
|
...y
|
|
90
|
-
}, D =
|
|
91
|
-
if (
|
|
115
|
+
}, D = l(y, "_show", !0);
|
|
116
|
+
if (j(h) || !D) return null;
|
|
92
117
|
if (L) {
|
|
93
|
-
const R =
|
|
94
|
-
return /* @__PURE__ */ m(
|
|
95
|
-
|
|
118
|
+
const R = l(d, "suspenseFallback", ae);
|
|
119
|
+
return /* @__PURE__ */ m(x, { fallback: u(R), children: /* @__PURE__ */ m(
|
|
120
|
+
te,
|
|
96
121
|
{
|
|
97
122
|
lang: a,
|
|
98
|
-
pageProps:
|
|
123
|
+
pageProps: s,
|
|
99
124
|
block: y,
|
|
100
125
|
dataProvider: d.dataProvider,
|
|
101
126
|
...f ? { dataProviderMetadataCallback: f } : {},
|
|
102
|
-
draft:
|
|
103
|
-
children: (F) =>
|
|
127
|
+
draft: o,
|
|
128
|
+
children: (F) => u(h, {
|
|
104
129
|
...w,
|
|
105
130
|
...F,
|
|
106
131
|
children: i({
|
|
107
132
|
_id: t._id,
|
|
108
133
|
_type: t._type,
|
|
109
134
|
...B(p.repeaterItems) ? {
|
|
110
|
-
repeaterItems:
|
|
135
|
+
repeaterItems: v(p.repeaterItems, t),
|
|
111
136
|
$repeaterItemsKey: p.$repeaterItemsKey
|
|
112
137
|
} : {}
|
|
113
138
|
})
|
|
@@ -115,65 +140,65 @@ const re = () => /* @__PURE__ */ m("div", {}), ne = (e) => {
|
|
|
115
140
|
}
|
|
116
141
|
) });
|
|
117
142
|
}
|
|
118
|
-
return /* @__PURE__ */ m(
|
|
143
|
+
return /* @__PURE__ */ m(x, { children: u(h, {
|
|
119
144
|
...w,
|
|
120
145
|
children: i({
|
|
121
146
|
_id: t._id,
|
|
122
147
|
_type: t._type,
|
|
123
148
|
...B(p.repeaterItems) ? {
|
|
124
|
-
repeaterItems:
|
|
149
|
+
repeaterItems: v(p.repeaterItems, t),
|
|
125
150
|
$repeaterItemsKey: p.$repeaterItemsKey
|
|
126
151
|
} : {}
|
|
127
152
|
})
|
|
128
153
|
}) });
|
|
129
154
|
}, P = (e) => {
|
|
130
155
|
const { blocks: t, parent: a, repeaterData: n } = e;
|
|
131
|
-
let i =
|
|
132
|
-
|
|
156
|
+
let i = q(
|
|
157
|
+
C(t, (r) => b(r, "_id") && (g(a) ? !r._parent : r._parent === a)),
|
|
133
158
|
"_id"
|
|
134
159
|
);
|
|
135
|
-
const
|
|
136
|
-
return
|
|
160
|
+
const c = (r) => C(t, (o) => o._parent === r).length > 0;
|
|
161
|
+
return U(i, (r) => r ? /* @__PURE__ */ u(re, { ...e, key: r._id, block: r }, ({ _id: o, _type: s, repeaterItems: f, $repeaterItemsKey: d }) => s === "Repeater" ? B(f) && f.map((h, k) => /* @__PURE__ */ u(
|
|
137
162
|
P,
|
|
138
163
|
{
|
|
139
164
|
...e,
|
|
140
165
|
parent: r._id,
|
|
141
|
-
key: `${
|
|
166
|
+
key: `${l(r, "_parent", "root")}-${r._id}-${k}`,
|
|
142
167
|
repeaterData: { index: k, dataKey: d }
|
|
143
168
|
}
|
|
144
|
-
)) : o
|
|
169
|
+
)) : c(o) ? /* @__PURE__ */ u(
|
|
145
170
|
P,
|
|
146
171
|
{
|
|
147
172
|
...e,
|
|
148
173
|
parent: r._id,
|
|
149
|
-
key: `${
|
|
174
|
+
key: `${l(r, "_parent", "root")}-${r._id}`,
|
|
150
175
|
repeaterData: n
|
|
151
176
|
}
|
|
152
177
|
) : null) : null);
|
|
153
|
-
},
|
|
178
|
+
}, ne = (e, t, a) => g(a) ? {} : Object.entries(a).reduce((n, [i, c]) => {
|
|
154
179
|
const r = [];
|
|
155
|
-
let
|
|
156
|
-
for (;
|
|
157
|
-
r.push(
|
|
158
|
-
const
|
|
159
|
-
return
|
|
180
|
+
let o = _(e, { _id: t });
|
|
181
|
+
for (; o; )
|
|
182
|
+
r.push(o), o = _(e, { _id: o._parent });
|
|
183
|
+
const s = _(r, { _type: c.block });
|
|
184
|
+
return s && (n[i] = l(s, l(c, "prop"), null)), n;
|
|
160
185
|
}, {});
|
|
161
|
-
function
|
|
162
|
-
if (
|
|
186
|
+
function be(e) {
|
|
187
|
+
if (g(e.lang) && !g(e.fallbackLang))
|
|
163
188
|
throw new Error("lang prop is required when fallbackLang is provided");
|
|
164
|
-
if (
|
|
189
|
+
if (g(e.blocks))
|
|
165
190
|
return null;
|
|
166
191
|
const t = e.lang ?? "en", a = e.fallbackLang ?? t;
|
|
167
192
|
return /* @__PURE__ */ m(P, { ...e, lang: t, fallbackLang: a });
|
|
168
193
|
}
|
|
169
194
|
export {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
195
|
+
be as RenderChaiBlocks,
|
|
196
|
+
$e as applyChaiDataBinding,
|
|
197
|
+
Te as convertHTMLToChaiBlocks,
|
|
198
|
+
Be as convertToBlocks,
|
|
199
|
+
Ce as getChaiThemeCssVariables,
|
|
200
|
+
_e as getMergedPartialBlocks,
|
|
201
|
+
Pe as getStylesForBlocks,
|
|
177
202
|
xe as getThemeFontsCSSImport,
|
|
178
|
-
|
|
203
|
+
Se as getThemeFontsLinkMarkup
|
|
179
204
|
};
|