@chaibuilder/sdk 2.0.0-beta.41 → 2.0.0-beta.43
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/{ChaiThemeFn-Ba9O-eBT.js → ChaiThemeFn-Cort9tch.js} +3 -3
- package/dist/core.cjs +3 -3
- package/dist/core.d.ts +1 -1
- package/dist/core.js +2243 -2244
- package/dist/{plugin-Bvqh40K5.js → plugin-kUMxtQR5.js} +1 -1
- package/dist/render.cjs +2 -2
- package/dist/render.js +55 -55
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.js +4 -4
- package/dist/ui.d.ts +4 -4
- package/package.json +9 -9
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 f=require("./ChaiThemeFn-DQu-2Eh9.cjs"),r=require("lodash-es"),m=require("./STRINGS-n7COZtKr.cjs"),_=require("@mhsdesign/jit-browser-tailwindcss"),B=require("@tailwindcss/aspect-ratio"),R=require("@tailwindcss/container-queries"),P=require("@tailwindcss/forms"),q=require("@tailwindcss/typography"),E=require("./plugin-2xcljWGM.cjs"),a=require("./jsx-runtime-DGh1k5sI.cjs"),Y=require("@chaibuilder/runtime"),p=require("react"),v=require("tailwind-merge"),A=(e,s="")=>{const t=e.replace(m.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(" ")},F=e=>{if(!e)return[];try{return JSON.parse(L(e)).filter(n=>!n._type.startsWith("@chai"))}catch{return[{_type:"Paragraph",_id:"error",content:"Invalid JSON. Please check the JSON string."}]}};function L(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 _.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:n,theme:{extend:E.getChaiBuilderTheme(e)},plugins:[P,q,B,R,E.chaiBuilderPlugin],corePlugins:{preflight:i},...t?{prefix:`${t}`}:{}}}).generateStylesFromContent(` ${i?"@tailwind base;":""}
|
|
2
2
|
@tailwind components;
|
|
3
|
-
@tailwind utilities;`,s)}const
|
|
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(p.Suspense,{children:p.createElement(e.component,{...e.props,...s})})}const K=r.memoize((e,s)=>{const n=e.replace(m.STYLES_KEY,"").split(","),t=v.twMerge(n[0],n[1]);return s===""?t.replace(m.STYLES_KEY,"").trim():A(t,s).replace(m.STYLES_KEY,"").trim()});function M(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 k(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,...M(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}function j({blocks:e,parent:s,classPrefix:n="",externalData:t={},blockModifierCallback:i=null,lang:o="",metadata:h={}}){const l=e,u=c=>k(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:p.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 d=Y.getRegisteredChaiBlock(c._type);if(d!==null){let g=c;const y=d.component;g={...d.defaults,...c},i&&(g=i(g));const x=r.omit({blockProps:{},inBuilder:!1,...g,index:C,...J(U(c,o,d),t),...u(g),...S,metadata:h,lang:o??""},["_parent"]);return r.has(d,"dataProvider")?a.jsxRuntimeExports.jsx(p.Suspense,{children:a.jsxRuntimeExports.jsx(I,{lang:o??"",metadata:h,dataProvider:d.dataProvider,block:c,component:y,props:x})}):a.jsxRuntimeExports.jsx(p.Suspense,{children:p.createElement(y,x)})}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=F;exports.getStylesForBlocks=N;
|
package/dist/render.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as A } from "./ChaiThemeFn-Cort9tch.js";
|
|
2
|
+
import { a as xt, b as _t, c as Ct } from "./ChaiThemeFn-Cort9tch.js";
|
|
3
|
+
import { last as $, flattenDeep as O, memoize as v, filter as h, isEmpty as g, omit as N, has as R, get as p, each as F, isString as j, cloneDeep as I, forEach as J, keys as P, includes as C } from "lodash-es";
|
|
2
4
|
import { S as m } from "./STRINGS-DtEft2kY.js";
|
|
5
|
+
import { createTailwindcss as L } from "@mhsdesign/jit-browser-tailwindcss";
|
|
6
|
+
import K from "@tailwindcss/aspect-ratio";
|
|
7
|
+
import M from "@tailwindcss/container-queries";
|
|
8
|
+
import U from "@tailwindcss/forms";
|
|
9
|
+
import W from "@tailwindcss/typography";
|
|
10
|
+
import { g as Y, c as z } from "./plugin-kUMxtQR5.js";
|
|
3
11
|
import { j as a } from "./jsx-runtime-Dx-03ztt.js";
|
|
12
|
+
import { getRegisteredChaiBlock as D } from "@chaibuilder/runtime";
|
|
4
13
|
import y, { Suspense as S } from "react";
|
|
5
|
-
import { twMerge as
|
|
6
|
-
import { getRegisteredChaiBlock as L } from "@chaibuilder/runtime";
|
|
7
|
-
import { createTailwindcss as K } from "@mhsdesign/jit-browser-tailwindcss";
|
|
8
|
-
import M from "@tailwindcss/forms";
|
|
9
|
-
import U from "@tailwindcss/typography";
|
|
10
|
-
import W from "@tailwindcss/aspect-ratio";
|
|
11
|
-
import Y from "@tailwindcss/container-queries";
|
|
12
|
-
import { g as z, c as D } from "./plugin-Bvqh40K5.js";
|
|
13
|
-
import { d as Q } from "./ChaiThemeFn-Ba9O-eBT.js";
|
|
14
|
-
import { b as xt, c as _t, a as Ct } from "./ChaiThemeFn-Ba9O-eBT.js";
|
|
14
|
+
import { twMerge as Q } from "tailwind-merge";
|
|
15
15
|
const V = (t, n = "") => {
|
|
16
16
|
const e = t.replace(m, "").split(",").map((s) => s.split(" ").map((c) => {
|
|
17
17
|
if (c === "") return "";
|
|
18
18
|
if (c.includes(":")) {
|
|
19
19
|
const l = c.split(":");
|
|
20
|
-
return l[l.length - 1] = n +
|
|
20
|
+
return l[l.length - 1] = n + $(l), l.join(":");
|
|
21
21
|
}
|
|
22
22
|
return `${n}${c}`;
|
|
23
23
|
}).join(" "));
|
|
24
|
-
return
|
|
24
|
+
return O(e).join(" ");
|
|
25
25
|
}, ht = (t) => {
|
|
26
26
|
if (!t) return [];
|
|
27
27
|
try {
|
|
@@ -37,44 +37,65 @@ function q(t) {
|
|
|
37
37
|
return s !== -1 ? e.substring(s + 6) : e;
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
async function G(t) {
|
|
40
|
+
async function G(t, n, r = [], e = "", s) {
|
|
41
|
+
return await L({
|
|
42
|
+
tailwindConfig: {
|
|
43
|
+
darkMode: "class",
|
|
44
|
+
safelist: r,
|
|
45
|
+
theme: { extend: Y(t) },
|
|
46
|
+
plugins: [U, W, K, M, z],
|
|
47
|
+
corePlugins: { preflight: s },
|
|
48
|
+
...e ? { prefix: `${e}` } : {}
|
|
49
|
+
}
|
|
50
|
+
}).generateStylesFromContent(
|
|
51
|
+
` ${s ? "@tailwind base;" : ""}
|
|
52
|
+
@tailwind components;
|
|
53
|
+
@tailwind utilities;`,
|
|
54
|
+
n
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
const H = (t, n, r) => {
|
|
58
|
+
const e = JSON.stringify(t).replace(/#styles:([^"]*)/g, (s, i) => `#styles:${i.replace(/,/g, " ")}`.replace(/#styles:/g, ""));
|
|
59
|
+
return G(n, [e], [], "", r);
|
|
60
|
+
}, yt = async (t, n = A, r = !1) => await H(t, n, r);
|
|
61
|
+
async function X(t) {
|
|
41
62
|
const n = await (t == null ? void 0 : t.dataProvider(t.block, t.lang, t.metadata));
|
|
42
63
|
return /* @__PURE__ */ a.jsx(S, { children: y.createElement(t.component, { ...t.props, ...n }) });
|
|
43
64
|
}
|
|
44
|
-
const
|
|
45
|
-
const r = t.replace(m, "").split(","), e =
|
|
65
|
+
const Z = v((t, n) => {
|
|
66
|
+
const r = t.replace(m, "").split(","), e = Q(r[0], r[1]);
|
|
46
67
|
return n === "" ? e.replace(m, "").trim() : V(e, n).replace(m, "").trim();
|
|
47
68
|
});
|
|
48
|
-
function
|
|
69
|
+
function b(t, n) {
|
|
49
70
|
const r = p(t, `${n}_attrs`, {}), e = P(r).join(" ");
|
|
50
71
|
return C(e, "x-show") && !C(e, "x-transition") && (r["x-transition"] = ""), r;
|
|
51
72
|
}
|
|
52
|
-
function
|
|
73
|
+
function k(t, n) {
|
|
53
74
|
const r = {};
|
|
54
75
|
return Object.keys(t).forEach((e) => {
|
|
55
76
|
if (j(t[e]) && t[e].startsWith(m)) {
|
|
56
|
-
const s =
|
|
77
|
+
const s = Z(t[e], n);
|
|
57
78
|
r[e] = {
|
|
58
79
|
className: s,
|
|
59
|
-
...
|
|
80
|
+
...b(t, e)
|
|
60
81
|
};
|
|
61
82
|
}
|
|
62
83
|
}), r;
|
|
63
84
|
}
|
|
64
|
-
function
|
|
85
|
+
function tt(t, n) {
|
|
65
86
|
const r = p(t, "_bindings", {});
|
|
66
|
-
return g(r) ? { ...t } : (
|
|
87
|
+
return g(r) ? { ...t } : (F(r, (e, s) => {
|
|
67
88
|
j(e) && p(n, e, null) && (t[s] = p(n, e, null));
|
|
68
89
|
}), t);
|
|
69
90
|
}
|
|
70
|
-
function
|
|
91
|
+
function et(t, n, r) {
|
|
71
92
|
if (g(n)) return t;
|
|
72
|
-
const e =
|
|
73
|
-
return
|
|
93
|
+
const e = I(t), s = p(r, "i18nProps", []);
|
|
94
|
+
return J(P(e), (i) => {
|
|
74
95
|
s.includes(i) && !g(n) && (e[i] = p(e, `${i}-${n}`, e[i]));
|
|
75
96
|
}), e;
|
|
76
97
|
}
|
|
77
|
-
function
|
|
98
|
+
function nt({
|
|
78
99
|
blocks: t,
|
|
79
100
|
parent: n,
|
|
80
101
|
classPrefix: r = "",
|
|
@@ -83,12 +104,12 @@ function tt({
|
|
|
83
104
|
lang: i = "",
|
|
84
105
|
metadata: f = {}
|
|
85
106
|
}) {
|
|
86
|
-
const c = t, l = (o) =>
|
|
107
|
+
const c = t, l = (o) => k(o, r), B = n ? h(t, { _parent: n }) : h(t, (o) => g(o._parent));
|
|
87
108
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: y.Children.toArray(
|
|
88
109
|
B.map((o, T) => {
|
|
89
110
|
const w = {}, E = h(c, { _parent: o._id });
|
|
90
111
|
w.children = E.length > 0 ? /* @__PURE__ */ a.jsx(
|
|
91
|
-
|
|
112
|
+
nt,
|
|
92
113
|
{
|
|
93
114
|
externalData: e,
|
|
94
115
|
classPrefix: r,
|
|
@@ -98,18 +119,18 @@ function tt({
|
|
|
98
119
|
metadata: f
|
|
99
120
|
}
|
|
100
121
|
) : null;
|
|
101
|
-
const u =
|
|
122
|
+
const u = D(o._type);
|
|
102
123
|
if (u !== null) {
|
|
103
124
|
let d = o;
|
|
104
125
|
const x = u.component;
|
|
105
126
|
d = { ...u.defaults, ...o }, s && (d = s(d));
|
|
106
|
-
const _ =
|
|
127
|
+
const _ = N(
|
|
107
128
|
{
|
|
108
129
|
blockProps: {},
|
|
109
130
|
inBuilder: !1,
|
|
110
131
|
...d,
|
|
111
132
|
index: T,
|
|
112
|
-
...
|
|
133
|
+
...tt(et(o, i, u), e),
|
|
113
134
|
...l(d),
|
|
114
135
|
...w,
|
|
115
136
|
metadata: f,
|
|
@@ -117,8 +138,8 @@ function tt({
|
|
|
117
138
|
},
|
|
118
139
|
["_parent"]
|
|
119
140
|
);
|
|
120
|
-
return
|
|
121
|
-
|
|
141
|
+
return R(u, "dataProvider") ? /* @__PURE__ */ a.jsx(S, { children: /* @__PURE__ */ a.jsx(
|
|
142
|
+
X,
|
|
122
143
|
{
|
|
123
144
|
lang: i ?? "",
|
|
124
145
|
metadata: f,
|
|
@@ -136,29 +157,8 @@ function tt({
|
|
|
136
157
|
})
|
|
137
158
|
) });
|
|
138
159
|
}
|
|
139
|
-
async function et(t, n, r = [], e = "", s) {
|
|
140
|
-
return await K({
|
|
141
|
-
tailwindConfig: {
|
|
142
|
-
darkMode: "class",
|
|
143
|
-
safelist: r,
|
|
144
|
-
theme: { extend: z(t) },
|
|
145
|
-
plugins: [M, U, W, Y, D],
|
|
146
|
-
corePlugins: { preflight: s },
|
|
147
|
-
...e ? { prefix: `${e}` } : {}
|
|
148
|
-
}
|
|
149
|
-
}).generateStylesFromContent(
|
|
150
|
-
` ${s ? "@tailwind base;" : ""}
|
|
151
|
-
@tailwind components;
|
|
152
|
-
@tailwind utilities;`,
|
|
153
|
-
n
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
const nt = (t, n, r) => {
|
|
157
|
-
const e = JSON.stringify(t).replace(/#styles:([^"]*)/g, (s, i) => `#styles:${i.replace(/,/g, " ")}`.replace(/#styles:/g, ""));
|
|
158
|
-
return et(n, [e], [], "", r);
|
|
159
|
-
}, yt = async (t, n = Q, r = !1) => await nt(t, n, r);
|
|
160
160
|
export {
|
|
161
|
-
|
|
161
|
+
nt as RenderChaiBlocks,
|
|
162
162
|
ht as convertToBlocks,
|
|
163
163
|
xt as getChaiThemeCssVariables,
|
|
164
164
|
yt as getStylesForBlocks,
|
package/dist/tailwind.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@tailwindcss/
|
|
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-2xcljWGM.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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import o from "@tailwindcss/
|
|
1
|
+
import o from "@tailwindcss/aspect-ratio";
|
|
2
2
|
import e from "@tailwindcss/forms";
|
|
3
|
-
import a from "@tailwindcss/
|
|
3
|
+
import a from "@tailwindcss/typography";
|
|
4
4
|
import d from "tailwindcss-animate";
|
|
5
|
-
import { c as l, g as v } from "./plugin-
|
|
5
|
+
import { c as l, g as v } from "./plugin-kUMxtQR5.js";
|
|
6
6
|
function n() {
|
|
7
7
|
return {
|
|
8
8
|
colors: {
|
|
@@ -67,7 +67,7 @@ const u = (r) => ({
|
|
|
67
67
|
theme: {
|
|
68
68
|
extend: n()
|
|
69
69
|
},
|
|
70
|
-
plugins: [d,
|
|
70
|
+
plugins: [d, a, e, o]
|
|
71
71
|
});
|
|
72
72
|
export {
|
|
73
73
|
l as chaiBuilderPlugin,
|
package/dist/ui.d.ts
CHANGED
|
@@ -100,8 +100,8 @@ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLBu
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export declare const buttonVariants: (props?: {
|
|
103
|
-
variant?: "
|
|
104
|
-
size?: "
|
|
103
|
+
variant?: "default" | "outline" | "link" | "destructive" | "secondary" | "ghost";
|
|
104
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
105
105
|
} & ClassProp) => string;
|
|
106
106
|
|
|
107
107
|
export declare const Card: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -425,12 +425,12 @@ declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
|
425
425
|
|
|
426
426
|
export declare const Toggle: React_2.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
427
427
|
variant?: "default" | "outline";
|
|
428
|
-
size?: "
|
|
428
|
+
size?: "default" | "sm" | "lg";
|
|
429
429
|
} & ClassProp) => string> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
430
430
|
|
|
431
431
|
export declare const toggleVariants: (props?: {
|
|
432
432
|
variant?: "default" | "outline";
|
|
433
|
-
size?: "
|
|
433
|
+
size?: "default" | "sm" | "lg";
|
|
434
434
|
} & ClassProp) => string;
|
|
435
435
|
|
|
436
436
|
export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
|
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.
|
|
8
|
+
"version": "2.0.0-beta.43",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -50,10 +50,6 @@
|
|
|
50
50
|
"import": "./dist/tailwind.js",
|
|
51
51
|
"require": "./dist/tailwind.cjs"
|
|
52
52
|
},
|
|
53
|
-
"./styles": {
|
|
54
|
-
"import": "./dist/style.css",
|
|
55
|
-
"require": "./dist/style.css"
|
|
56
|
-
},
|
|
57
53
|
"./web-blocks": {
|
|
58
54
|
"types": "./dist/web-blocks.d.ts",
|
|
59
55
|
"import": "./dist/web-blocks.js",
|
|
@@ -63,6 +59,10 @@
|
|
|
63
59
|
"types": "./dist/runtime.d.ts",
|
|
64
60
|
"import": "./dist/runtime.js",
|
|
65
61
|
"require": "./dist/runtime.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./styles": {
|
|
64
|
+
"import": "./dist/sdk.css",
|
|
65
|
+
"require": "./dist/sdk.css"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
"lodash-es": "4.17.21",
|
|
114
114
|
"lucide-react": "^0.474.0",
|
|
115
115
|
"re-resizable": "^6.10.3",
|
|
116
|
-
"react": "^
|
|
116
|
+
"react": "^18.3.1",
|
|
117
117
|
"react-arborist": "^3.4.0",
|
|
118
118
|
"react-autosuggest": "^10.1.0",
|
|
119
119
|
"react-colorful": "5.6.1",
|
|
120
|
-
"react-dom": "^
|
|
120
|
+
"react-dom": "^18.3.1",
|
|
121
121
|
"react-error-boundary": "^5.0.0",
|
|
122
122
|
"react-hotkeys-hook": "4.6.1",
|
|
123
123
|
"react-i18next": "15.4.0",
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
"@testing-library/react": "^16.2.0",
|
|
141
141
|
"@types/lodash": "^4.17.14",
|
|
142
142
|
"@types/node": "^20.8.10",
|
|
143
|
-
"@types/react": "^
|
|
144
|
-
"@types/react-dom": "^
|
|
143
|
+
"@types/react": "^18.3.1",
|
|
144
|
+
"@types/react-dom": "^18.3.1",
|
|
145
145
|
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
146
146
|
"@typescript-eslint/parser": "^8.21.0",
|
|
147
147
|
"@vitejs/plugin-react-swc": "^3.7.2",
|