@chaibuilder/sdk 4.0.0-beta.1 → 4.0.0-beta.3
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/README.md +27 -20
- package/dist/2SSKDMRQ-BnsZi3K3.cjs +1 -0
- package/dist/2SSKDMRQ-CnSDkQcy.js +42 -0
- package/dist/AP7HFJJL-B31839PG.cjs +1228 -0
- package/dist/AP7HFJJL-CymCmW14.js +9214 -0
- package/dist/IconPicker-B1rWC-Ex.js +59 -0
- package/dist/IconPicker-DREyo007.cjs +1 -0
- package/dist/WDYDFRGG-BUVnbAci.js +33 -0
- package/dist/WDYDFRGG-BxhOCHc3.cjs +1 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/actions-registery-CZ1w0NKa.js +15545 -0
- package/dist/actions-registery-YnFmU21O.cjs +418 -0
- package/dist/actions.cjs +1 -0
- package/dist/actions.d.ts +3202 -0
- package/dist/actions.js +216 -0
- package/dist/active-in-another-tab-B47YjQGN.cjs +1 -0
- package/dist/active-in-another-tab-CyjngVA6.js +34 -0
- package/dist/add-new-language-page-88xzrUy8.cjs +1 -0
- package/dist/add-new-language-page-WmlCnytQ.js +401 -0
- package/dist/add-new-page-VW2wAYZp.js +31 -0
- package/dist/add-new-page-soZ8GAkN.cjs +1 -0
- package/dist/ai-panel-content-7zCil042.cjs +1 -0
- package/dist/ai-panel-content-D_o7Q_A-.js +61 -0
- package/dist/ai-panel-default-lang-COYaxNwn.cjs +3 -0
- package/dist/ai-panel-default-lang-DnElspF0.js +341 -0
- package/dist/ai-panel-other-lang-CkynNlAU.cjs +1 -0
- package/dist/ai-panel-other-lang-Dp0E9_Hx.js +162 -0
- package/dist/ai-prompt-input-Bhc0ds7X.js +655 -0
- package/dist/ai-prompt-input-CThbVp0_.cjs +1 -0
- package/dist/ai-translation-prompt-C2kJQFDX.cjs +1 -0
- package/dist/ai-translation-prompt-CZ55HQmo.js +28 -0
- package/dist/apply-binding-6iwlED02.js +833 -0
- package/dist/apply-binding-KKp5PnpZ.cjs +1 -0
- package/dist/code-display-BnqzqzoP.cjs +1 -0
- package/dist/{code-display-337R7Dev.js → code-display-DhD_RBcg.js} +1 -1
- package/dist/code-editor-DRIAnNbb.js +50 -0
- package/dist/code-editor-o3___nu2.cjs +1 -0
- package/dist/common-functions-B3a4xKt_.cjs +1 -0
- package/dist/common-functions-D2lMFR6K.js +13 -0
- package/dist/continue-editing-in-this-client-CS2aQ7yY.js +24 -0
- package/dist/continue-editing-in-this-client-CtMYsk-A.cjs +1 -0
- package/dist/core-BoRDjj4h.cjs +1 -0
- package/dist/core-yvI6kCyw.js +56 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +51 -383
- package/dist/core.js +39 -106
- package/dist/{css-import-modal-DA2L6kwP.js → css-import-modal-Byg6wV0O.js} +36 -36
- package/dist/css-import-modal-CyqkXWCO.cjs +13 -0
- package/dist/delete-design-token-BRZZiWtQ.js +40 -0
- package/dist/delete-design-token-DkVs1oBf.cjs +1 -0
- package/dist/delete-page-BzyX9TN-.js +70 -0
- package/dist/delete-page-DxX7PFIE.cjs +1 -0
- package/dist/design-token-usage-CAHzEGgJ.cjs +1 -0
- package/dist/design-token-usage-xQs6SlaJ.js +113 -0
- package/dist/digital-asset-manager--uO8Agia.cjs +1 -0
- package/dist/digital-asset-manager-DbtwzxRz.js +876 -0
- package/dist/duplicate-page-BR7Dlo9d.js +133 -0
- package/dist/duplicate-page-CaNAbXwV.cjs +1 -0
- package/dist/dynamic-page-selector-Cb5r_W8s.js +85 -0
- package/dist/dynamic-page-selector-Cxk_gjni.cjs +1 -0
- package/dist/fonts-B-Xt29pe.cjs +1 -0
- package/dist/fonts-DRly3Wzd.js +78 -0
- package/dist/{get-chai-builder-tailwind-config-C6MHaUM0.cjs → get-chai-builder-tailwind-config-B9rCyiQo.cjs} +1 -1
- package/dist/{get-chai-builder-tailwind-config-BqaIvg8p.js → get-chai-builder-tailwind-config-DjoVOuAf.js} +13 -10
- package/dist/{get-chai-builder-theme-D0IsUvK4.js → get-chai-builder-theme-BYtp20KD.js} +4 -4
- package/dist/get-chai-builder-theme-Dl72X7cz.cjs +1 -0
- package/dist/get-seo-defaults-9zHebckY.js +65 -0
- package/dist/get-seo-defaults-Cw7vFt-B.cjs +1 -0
- package/dist/image-compression-DZ9WMmyn.cjs +1 -0
- package/dist/image-compression-DsZ1oqpb.js +37 -0
- package/dist/image-editor-DV8kUKhl.js +108 -0
- package/dist/image-editor-G-K28aTS.cjs +1 -0
- package/dist/index-B-rSiAp_.cjs +1 -0
- package/dist/index-Ct7ElCGK.js +19069 -0
- package/dist/index-DF5DEvqb.cjs +160 -0
- package/dist/index-Dxfyt4d4.js +39 -0
- package/dist/index-WQwzsC7A.cjs +5 -0
- package/dist/index-ZuacEL1j.js +4732 -0
- package/dist/json-diff-viewer-D7z4zNvv.cjs +8 -0
- package/dist/json-diff-viewer-krslPepD.js +258 -0
- package/dist/lang-panel-BwIewMyw.js +215 -0
- package/dist/lang-panel-DT96k1xg.cjs +1 -0
- package/dist/manage-design-tokens-Caz_20VK.js +240 -0
- package/dist/manage-design-tokens-CrmLe7UT.cjs +1 -0
- package/dist/mark-as-template-D295ZQtU.js +156 -0
- package/dist/mark-as-template-W3LmpiqN.cjs +1 -0
- package/dist/models-5gOsRC56.cjs +1 -0
- package/dist/models-D95ZYr_x.js +70 -0
- package/dist/nested-path-selector-content-CKYYK-C5.js +87 -0
- package/dist/nested-path-selector-content-CoS_d3dc.cjs +1 -0
- package/dist/no-language-page-content-BvqRBP6y.js +42 -0
- package/dist/no-language-page-content-DkfeMl90.cjs +1 -0
- package/dist/no-language-page-dialog-BcEoqyQB.cjs +1 -0
- package/dist/no-language-page-dialog-PjNqTUpl.js +10 -0
- package/dist/page-creator-C4gc5NSC.cjs +1 -0
- package/dist/page-creator-DiOITEMw.js +795 -0
- package/dist/page-lock-BdYmCks0.cjs +1 -0
- package/dist/page-lock-Bfbs6RgL.js +30 -0
- package/dist/page-locked-dialog-B1FAtK92.cjs +1 -0
- package/dist/page-locked-dialog-B6MKTRfY.js +133 -0
- package/dist/page-manager-new-CHDueBDk.cjs +1 -0
- package/dist/page-manager-new-CzX22g2n.js +394 -0
- package/dist/page-manager-search-and-filter-CM0UMb6U.js +201 -0
- package/dist/page-manager-search-and-filter-DkkRIH86.cjs +1 -0
- package/dist/page-revisions-content-ChY-4f2V.cjs +1 -0
- package/dist/page-revisions-content-NH9JK4Ey.js +445 -0
- package/dist/pages.cjs +1 -0
- package/dist/pages.d.ts +491 -0
- package/dist/pages.js +27 -0
- package/dist/plugin-3ZKK6RXm.js +245 -0
- package/dist/plugin-C6rgJDNQ.cjs +22 -0
- package/dist/publish-pages-content-D9aixMN5.js +178 -0
- package/dist/publish-pages-content-x-JuSFJ9.cjs +1 -0
- package/dist/register-partial-type-BjtdfKHE.js +36 -0
- package/dist/register-partial-type-ig9fUWIJ.cjs +1 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +26 -13
- package/dist/render.js +130 -124
- package/dist/rte-widget-modal-BaHIuEjF.cjs +1 -0
- package/dist/rte-widget-modal-DOJEXLIf.js +38 -0
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.ts +306 -7
- package/dist/runtime.js +44 -1
- package/dist/save-to-lib-Cgpxw8-g.cjs +1 -0
- package/dist/save-to-lib-eiOc_SSN.js +422 -0
- package/dist/sdk.css +1 -1
- package/dist/selected-block-display-BgRY82CT.cjs +16 -0
- package/dist/selected-block-display-CBFePS19.js +319 -0
- package/dist/seo-panel-C1-iMOR1.js +798 -0
- package/dist/seo-panel-DfAb8U7W.cjs +2 -0
- package/dist/shared-json-ld-B4PxAM_0.js +565 -0
- package/dist/shared-json-ld-DzG398hr.cjs +1 -0
- package/dist/slug-input-AwNJs9im.js +86 -0
- package/dist/slug-input-C_ijLQ_X.cjs +1 -0
- package/dist/supabase-actions.cjs +1 -0
- package/dist/supabase-actions.d.ts +284 -0
- package/dist/supabase-actions.js +524 -0
- package/dist/take-over-request-BNxcjY2j.cjs +1 -0
- package/dist/take-over-request-C4FeDtN_.js +63 -0
- package/dist/theme-panel-footer-Cq9pljro.cjs +1 -0
- package/dist/theme-panel-footer-uBQqSJXm.js +25 -0
- package/dist/translation-warning-modal-B64YqlbI.js +26 -0
- package/dist/translation-warning-modal-BZAcwM2_.cjs +1 -0
- package/dist/unmark-as-template-CZ9sQp_P.js +39 -0
- package/dist/unmark-as-template-EVvk0vmp.cjs +1 -0
- package/dist/unpublish-page-D4VwOlxc.js +27 -0
- package/dist/unpublish-page-bdSmwAVQ.cjs +1 -0
- package/dist/use-page-expand-manager-B6XTvk0E.cjs +1 -0
- package/dist/use-page-expand-manager-Cf4MUEJw.js +85 -0
- package/dist/{tailwind.cjs → utils.cjs} +1 -1
- package/dist/{tailwind.d.ts → utils.d.ts} +12 -11
- package/dist/utils.js +7 -0
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.d.ts +0 -6
- package/dist/web-blocks.js +248 -241
- package/dist/web-preview-Cio70gk5.cjs +1 -0
- package/dist/web-preview-Djy6WIyj.js +73 -0
- package/package.json +175 -105
- package/dist/IconPicker-CGWn9C4u.cjs +0 -1
- package/dist/IconPicker-QvxJ-4Ez.js +0 -64
- package/dist/apply-binding-DCno1xQL.js +0 -711
- package/dist/apply-binding-DvHNFLQD.cjs +0 -1
- package/dist/code-display-BZ1x7SqI.cjs +0 -1
- package/dist/code-editor-B28LoECM.cjs +0 -1
- package/dist/code-editor-CfG2FhJ-.js +0 -58
- package/dist/common-functions-BGzDsf1z.js +0 -14
- package/dist/common-functions-BZmyleS1.cjs +0 -1
- package/dist/css-import-modal-CENUYvcl.cjs +0 -13
- package/dist/get-chai-builder-theme-Ck_Z4Q-M.cjs +0 -1
- package/dist/index-CaGNHF7f.js +0 -12209
- package/dist/index-Gn6pJt2v.cjs +0 -166
- package/dist/mockServiceWorker.js +0 -307
- package/dist/plugin-B5627hMN.js +0 -195
- package/dist/plugin-UxTRfDum.cjs +0 -22
- package/dist/rte-widget-modal-DL739qeQ.cjs +0 -1
- package/dist/rte-widget-modal-Dte0od04.js +0 -41
- package/dist/tailwind.js +0 -7
- package/dist/tooltip-A4qGk781.cjs +0 -1
- package/dist/tooltip-tLiIOgjq.js +0 -1067
- package/dist/ui.cjs +0 -1
- package/dist/ui.d.ts +0 -415
- package/dist/ui.js +0 -129
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-DF5DEvqb.cjs"),h=require("jotai"),x=require("lodash-es"),n=require("lucide-react"),c=require("./index-WQwzsC7A.cjs"),m=[{title:"mobile_xs_title",content:"mobile_xs_content",icon:e.jsx(n.Smartphone,{className:"h-4 w-4"}),width:400},{title:"tablet_md_title",content:"tablet_md_content",icon:e.jsx(n.Tablet,{className:"h-4 w-4"}),width:800},{title:"desktop_xl_title",content:"desktop_xl_content",icon:e.jsx(n.Laptop,{className:"h-4 w-4"}),width:1200},{title:"large_desktop_2xl_title",content:"large_desktop_2xl_content",icon:e.jsx(n.LaptopMinimal,{className:"h-4 w-4"}),width:1600}],w=({currentWidth:t,width:s,icon:o,setIframeWidth:r})=>e.jsx(a.Button,{className:"px-3 py-3",onClick:()=>r(s),variant:s===t?"default":"ghost",children:o}),p=()=>{const[t,s]=l.useState(1200),o=i=>s(i),[r,d]=h.useAtom(c.previewUrlAtom);if(!r)return null;const u=()=>{d("")};return e.jsxs("div",{className:"absolute inset-0 z-[999999] flex h-screen w-screen flex-col overflow-hidden bg-gray-100",children:[e.jsxs("div",{className:"flex h-[50px] items-center justify-center border-b border-gray-200 px-4 shadow-sm",children:[e.jsx("div",{className:"flex items-center justify-center rounded-md border border-gray-300",children:x.map(m,i=>l.createElement(w,{...i,setIframeWidth:o,key:i.title,currentWidth:t}))})," ",e.jsx(c.Tooltip,{content:"Exit Preview",delayDuration:0,children:e.jsx(a.Button,{variant:"destructive",size:"sm",onClick:u,children:e.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2 3C2 2.44772 2.44772 2 3 2H12C12.5523 2 13 2.44772 13 3V12C13 12.5523 12.5523 13 12 13H3C2.44772 13 2 12.5523 2 12V3ZM12 3H3V12H12V3Z",fill:"currentColor",fillRule:"evenodd","clip-rule":"evenodd"})})})})]}),e.jsx("iframe",{style:{width:`${t}px`,transition:"width 0.3s ease-in-out"},className:"no-scrollbar mx-auto h-full overflow-y-auto border bg-white",src:r})]})};exports.default=p;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, createElement as m } from "react";
|
|
3
|
+
import { B as s } from "./index-Ct7ElCGK.js";
|
|
4
|
+
import { useAtom as h } from "jotai";
|
|
5
|
+
import { map as p } from "lodash-es";
|
|
6
|
+
import { Smartphone as w, Tablet as f, Laptop as u, LaptopMinimal as x } from "lucide-react";
|
|
7
|
+
import { p as v, T as _ } from "./index-ZuacEL1j.js";
|
|
8
|
+
const b = [
|
|
9
|
+
{
|
|
10
|
+
title: "mobile_xs_title",
|
|
11
|
+
content: "mobile_xs_content",
|
|
12
|
+
icon: /* @__PURE__ */ e(w, { className: "h-4 w-4" }),
|
|
13
|
+
width: 400
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: "tablet_md_title",
|
|
17
|
+
content: "tablet_md_content",
|
|
18
|
+
icon: /* @__PURE__ */ e(f, { className: "h-4 w-4" }),
|
|
19
|
+
width: 800
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
title: "desktop_xl_title",
|
|
23
|
+
content: "desktop_xl_content",
|
|
24
|
+
icon: /* @__PURE__ */ e(u, { className: "h-4 w-4" }),
|
|
25
|
+
width: 1200
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: "large_desktop_2xl_title",
|
|
29
|
+
content: "large_desktop_2xl_content",
|
|
30
|
+
icon: /* @__PURE__ */ e(x, { className: "h-4 w-4" }),
|
|
31
|
+
width: 1600
|
|
32
|
+
}
|
|
33
|
+
], g = ({ currentWidth: t, width: r, icon: l, setIframeWidth: o }) => /* @__PURE__ */ e(
|
|
34
|
+
s,
|
|
35
|
+
{
|
|
36
|
+
className: "px-3 py-3",
|
|
37
|
+
onClick: () => o(r),
|
|
38
|
+
variant: r === t ? "default" : "ghost",
|
|
39
|
+
children: l
|
|
40
|
+
}
|
|
41
|
+
), j = () => {
|
|
42
|
+
const [t, r] = d(1200), l = (i) => r(i), [o, a] = h(v);
|
|
43
|
+
if (!o) return null;
|
|
44
|
+
const c = () => {
|
|
45
|
+
a("");
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ n("div", { className: "absolute inset-0 z-[999999] flex h-screen w-screen flex-col overflow-hidden bg-gray-100", children: [
|
|
48
|
+
/* @__PURE__ */ n("div", { className: "flex h-[50px] items-center justify-center border-b border-gray-200 px-4 shadow-sm", children: [
|
|
49
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-center rounded-md border border-gray-300", children: p(b, (i) => /* @__PURE__ */ m(g, { ...i, setIframeWidth: l, key: i.title, currentWidth: t })) }),
|
|
50
|
+
" ",
|
|
51
|
+
/* @__PURE__ */ e(_, { content: "Exit Preview", delayDuration: 0, children: /* @__PURE__ */ e(s, { variant: "destructive", size: "sm", onClick: c, children: /* @__PURE__ */ e("svg", { width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
|
|
52
|
+
"path",
|
|
53
|
+
{
|
|
54
|
+
d: "M2 3C2 2.44772 2.44772 2 3 2H12C12.5523 2 13 2.44772 13 3V12C13 12.5523 12.5523 13 12 13H3C2.44772 13 2 12.5523 2 12V3ZM12 3H3V12H12V3Z",
|
|
55
|
+
fill: "currentColor",
|
|
56
|
+
fillRule: "evenodd",
|
|
57
|
+
"clip-rule": "evenodd"
|
|
58
|
+
}
|
|
59
|
+
) }) }) })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ e(
|
|
62
|
+
"iframe",
|
|
63
|
+
{
|
|
64
|
+
style: { width: `${t}px`, transition: "width 0.3s ease-in-out" },
|
|
65
|
+
className: "no-scrollbar mx-auto h-full overflow-y-auto border bg-white",
|
|
66
|
+
src: o
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
] });
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
j as default
|
|
73
|
+
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chaibuilder/sdk",
|
|
3
|
-
"description": "AI Enabled Open source
|
|
3
|
+
"description": "AI Enabled Open source website builder for ReactJS",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Suraj Air",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"homepage": "https://chaibuilder.com",
|
|
8
|
-
"version": "4.0.0-beta.
|
|
8
|
+
"version": "4.0.0-beta.3",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -16,27 +16,46 @@
|
|
|
16
16
|
],
|
|
17
17
|
"main": "dist/core.js",
|
|
18
18
|
"sideEffects": false,
|
|
19
|
+
"scripts": {
|
|
20
|
+
"dev": "vite",
|
|
21
|
+
"build": "tsc && vite build",
|
|
22
|
+
"live": "tsc && vite build --config vite.config.live.ts",
|
|
23
|
+
"live:serve": "cd live && npx http-server -p 8080",
|
|
24
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
25
|
+
"lint:errors": "eslint . --ext ts,tsx --quiet --max-warnings 0",
|
|
26
|
+
"lint:warnings": "eslint . --ext ts,tsx --min-warnings 1",
|
|
27
|
+
"preview": "vite preview",
|
|
28
|
+
"test": "vitest --run",
|
|
29
|
+
"test:watch": "vitest --watch",
|
|
30
|
+
"test:coverage": "vitest --coverage",
|
|
31
|
+
"e2e": "playwright test",
|
|
32
|
+
"e2e:report": "playwright show-report",
|
|
33
|
+
"e2e:ui": "playwright test --ui",
|
|
34
|
+
"docs:api": "typedoc",
|
|
35
|
+
"docs:serve": "docsify serve docs",
|
|
36
|
+
"prepare": "husky"
|
|
37
|
+
},
|
|
19
38
|
"exports": {
|
|
20
39
|
".": {
|
|
21
40
|
"types": "./dist/core.d.ts",
|
|
22
41
|
"import": "./dist/core.js",
|
|
23
42
|
"require": "./dist/core.cjs"
|
|
24
43
|
},
|
|
44
|
+
"./pages": {
|
|
45
|
+
"types": "./dist/pages.d.ts",
|
|
46
|
+
"import": "./dist/pages.js",
|
|
47
|
+
"require": "./dist/pages.cjs"
|
|
48
|
+
},
|
|
49
|
+
"./actions": {
|
|
50
|
+
"types": "./dist/actions.d.ts",
|
|
51
|
+
"import": "./dist/actions.js",
|
|
52
|
+
"require": "./dist/actions.cjs"
|
|
53
|
+
},
|
|
25
54
|
"./render": {
|
|
26
55
|
"types": "./dist/render.d.ts",
|
|
27
56
|
"import": "./dist/render.js",
|
|
28
57
|
"require": "./dist/render.cjs"
|
|
29
58
|
},
|
|
30
|
-
"./ui": {
|
|
31
|
-
"types": "./dist/ui.d.ts",
|
|
32
|
-
"import": "./dist/ui.js",
|
|
33
|
-
"require": "./dist/ui.cjs"
|
|
34
|
-
},
|
|
35
|
-
"./tailwind": {
|
|
36
|
-
"types": "./dist/tailwind.d.ts",
|
|
37
|
-
"import": "./dist/tailwind.js",
|
|
38
|
-
"require": "./dist/tailwind.cjs"
|
|
39
|
-
},
|
|
40
59
|
"./web-blocks": {
|
|
41
60
|
"types": "./dist/web-blocks.d.ts",
|
|
42
61
|
"import": "./dist/web-blocks.js",
|
|
@@ -47,18 +66,33 @@
|
|
|
47
66
|
"import": "./dist/runtime.js",
|
|
48
67
|
"require": "./dist/runtime.cjs"
|
|
49
68
|
},
|
|
69
|
+
"./actions/supabase": {
|
|
70
|
+
"types": "./dist/supabase-actions.d.ts",
|
|
71
|
+
"import": "./dist/supabase-actions.js",
|
|
72
|
+
"require": "./dist/supabase-actions.cjs"
|
|
73
|
+
},
|
|
74
|
+
"./utils": {
|
|
75
|
+
"types": "./dist/utils.d.ts",
|
|
76
|
+
"import": "./dist/utils.js",
|
|
77
|
+
"require": "./dist/utils.cjs"
|
|
78
|
+
},
|
|
50
79
|
"./styles": {
|
|
51
80
|
"import": "./dist/sdk.css",
|
|
52
81
|
"require": "./dist/sdk.css"
|
|
53
82
|
}
|
|
54
83
|
},
|
|
55
84
|
"peerDependencies": {
|
|
56
|
-
"@
|
|
85
|
+
"@supabase/supabase-js": "^2.89.0",
|
|
57
86
|
"@types/react": "*",
|
|
58
87
|
"@types/react-dom": "*",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
88
|
+
"ai": "^6.0.11",
|
|
89
|
+
"drizzle-orm": "^0.45.1",
|
|
90
|
+
"next": "16.1.1",
|
|
91
|
+
"postgres": "^3.4.8",
|
|
92
|
+
"react": "^18.0 || ^19.0 || ^19.1 || ^19.2",
|
|
93
|
+
"react-dom": "^18.0 || ^19.0 || ^19.1 || ^19.2",
|
|
94
|
+
"sharp": "^0.34.5",
|
|
95
|
+
"streamdown": "^1.6.10"
|
|
62
96
|
},
|
|
63
97
|
"peerDependenciesMeta": {
|
|
64
98
|
"@types/react": {
|
|
@@ -66,66 +100,91 @@
|
|
|
66
100
|
},
|
|
67
101
|
"@types/react-dom": {
|
|
68
102
|
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"drizzle-orm": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"postgres": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"ai": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"streamdown": {
|
|
114
|
+
"optional": true
|
|
115
|
+
},
|
|
116
|
+
"sharp": {
|
|
117
|
+
"optional": true
|
|
118
|
+
},
|
|
119
|
+
"next": {
|
|
120
|
+
"optional": true
|
|
121
|
+
},
|
|
122
|
+
"@supabase/supabase-js": {
|
|
123
|
+
"optional": true
|
|
69
124
|
}
|
|
70
125
|
},
|
|
71
126
|
"dependencies": {
|
|
72
|
-
"@chaibuilder/runtime": "2.2.0",
|
|
73
127
|
"@floating-ui/dom": "1.7.4",
|
|
74
128
|
"@floating-ui/react-dom": "2.1.6",
|
|
75
|
-
"@iconify-json/lucide": "^1.2.
|
|
129
|
+
"@iconify-json/lucide": "^1.2.82",
|
|
76
130
|
"@mhsdesign/jit-browser-tailwindcss": "0.4.2",
|
|
77
131
|
"@monaco-editor/react": "^4.7.0",
|
|
78
|
-
"@radix-ui/react-accordion": "^1.2.
|
|
79
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
80
|
-
"@radix-ui/react-avatar": "^1.1.
|
|
81
|
-
"@radix-ui/react-checkbox": "^1.3.
|
|
82
|
-
"@radix-ui/react-
|
|
83
|
-
"@radix-ui/react-
|
|
84
|
-
"@radix-ui/react-
|
|
85
|
-
"@radix-ui/react-
|
|
132
|
+
"@radix-ui/react-accordion": "^1.2.12",
|
|
133
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
134
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
135
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
136
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
137
|
+
"@radix-ui/react-context-menu": "^2.2.16",
|
|
138
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
139
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
140
|
+
"@radix-ui/react-hover-card": "^1.1.15",
|
|
86
141
|
"@radix-ui/react-icons": "^1.3.2",
|
|
87
|
-
"@radix-ui/react-label": "^2.1.
|
|
88
|
-
"@radix-ui/react-menubar": "^1.1.
|
|
89
|
-
"@radix-ui/react-navigation-menu": "^1.2.
|
|
90
|
-
"@radix-ui/react-popover": "^1.1.
|
|
91
|
-
"@radix-ui/react-scroll-area": "^1.2.
|
|
92
|
-
"@radix-ui/react-select": "^2.2.
|
|
93
|
-
"@radix-ui/react-separator": "^1.1.
|
|
94
|
-
"@radix-ui/react-slider": "^1.3.
|
|
95
|
-
"@radix-ui/react-slot": "^1.2.
|
|
96
|
-
"@radix-ui/react-switch": "^1.2.
|
|
97
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
98
|
-
"@radix-ui/react-toast": "^1.2.
|
|
99
|
-
"@radix-ui/react-toggle": "^1.1.
|
|
100
|
-
"@radix-ui/react-tooltip": "^1.2.
|
|
142
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
143
|
+
"@radix-ui/react-menubar": "^1.1.16",
|
|
144
|
+
"@radix-ui/react-navigation-menu": "^1.2.14",
|
|
145
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
146
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
147
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
148
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
149
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
150
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
151
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
152
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
153
|
+
"@radix-ui/react-toast": "^1.2.15",
|
|
154
|
+
"@radix-ui/react-toggle": "^1.1.10",
|
|
155
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
156
|
+
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
101
157
|
"@react-hookz/web": "25.1.1",
|
|
102
158
|
"@rjsf/core": "5.24.13",
|
|
103
159
|
"@rjsf/utils": "5.24.13",
|
|
104
160
|
"@rjsf/validator-ajv8": "5.24.13",
|
|
105
161
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
106
162
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
107
|
-
"@tailwindcss/forms": "^0.5.
|
|
163
|
+
"@tailwindcss/forms": "^0.5.11",
|
|
108
164
|
"@tailwindcss/line-clamp": "^0.4.4",
|
|
109
|
-
"@tailwindcss/typography": "^0.5.
|
|
110
|
-
"@tanstack/react-
|
|
111
|
-
"@
|
|
112
|
-
"@tiptap/extension-bubble-menu": "^2.
|
|
113
|
-
"@tiptap/extension-bullet-list": "^2.
|
|
114
|
-
"@tiptap/extension-color": "2.
|
|
115
|
-
"@tiptap/extension-highlight": "^2.
|
|
116
|
-
"@tiptap/extension-link": "^2.
|
|
117
|
-
"@tiptap/extension-ordered-list": "^2.
|
|
118
|
-
"@tiptap/extension-placeholder": "^2.
|
|
119
|
-
"@tiptap/extension-text-align": "^2.
|
|
120
|
-
"@tiptap/extension-text-style": "^2.
|
|
121
|
-
"@tiptap/extension-underline": "^2.
|
|
122
|
-
"@tiptap/pm": "^2.
|
|
123
|
-
"@tiptap/react": "^2.
|
|
124
|
-
"@tiptap/starter-kit": "^2.
|
|
165
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
166
|
+
"@tanstack/react-query": "^5.90.16",
|
|
167
|
+
"@tanstack/react-virtual": "^3.13.16",
|
|
168
|
+
"@tiptap/extension-bubble-menu": "^2.27.1",
|
|
169
|
+
"@tiptap/extension-bullet-list": "^2.27.1",
|
|
170
|
+
"@tiptap/extension-color": "^2.27.1",
|
|
171
|
+
"@tiptap/extension-highlight": "^2.27.1",
|
|
172
|
+
"@tiptap/extension-link": "^2.27.1",
|
|
173
|
+
"@tiptap/extension-ordered-list": "^2.27.1",
|
|
174
|
+
"@tiptap/extension-placeholder": "^2.27.1",
|
|
175
|
+
"@tiptap/extension-text-align": "^2.27.1",
|
|
176
|
+
"@tiptap/extension-text-style": "^2.27.1",
|
|
177
|
+
"@tiptap/extension-underline": "^2.27.1",
|
|
178
|
+
"@tiptap/pm": "^2.27.1",
|
|
179
|
+
"@tiptap/react": "^2.27.1",
|
|
180
|
+
"@tiptap/starter-kit": "^2.27.1",
|
|
181
|
+
"canvas-confetti": "^1.9.4",
|
|
125
182
|
"class-variance-authority": "0.7.1",
|
|
126
183
|
"clsx": "2.1.1",
|
|
127
184
|
"cmdk": "^1.1.1",
|
|
185
|
+
"compressorjs": "^1.2.1",
|
|
128
186
|
"culori": "^4.0.2",
|
|
187
|
+
"date-fns": "^4.1.0",
|
|
129
188
|
"flagged": "3.0.0",
|
|
130
189
|
"framer-motion": "12.23.20",
|
|
131
190
|
"fuse.js": "7.1.0",
|
|
@@ -134,81 +193,92 @@
|
|
|
134
193
|
"jotai": "2.14.0",
|
|
135
194
|
"lodash": "^4.17.21",
|
|
136
195
|
"lodash-es": "4.17.21",
|
|
196
|
+
"lucide-react": "^0.562.0",
|
|
137
197
|
"monaco-editor": "^0.54.0",
|
|
198
|
+
"motion": "^12.24.1",
|
|
199
|
+
"nanoid": "^5.1.6",
|
|
138
200
|
"react-arborist": "3.4.3",
|
|
139
201
|
"react-autosuggest": "10.1.0",
|
|
140
202
|
"react-colorful": "5.6.1",
|
|
141
|
-
"react-
|
|
142
|
-
"react-
|
|
203
|
+
"react-diff-view": "^3.3.2",
|
|
204
|
+
"react-dropzone": "^14.3.8",
|
|
205
|
+
"react-error-boundary": "^6.0.2",
|
|
206
|
+
"react-filerobot-image-editor": "4.9.1",
|
|
207
|
+
"react-hotkeys-hook": "5.2.1",
|
|
143
208
|
"react-i18next": "16.0.0",
|
|
144
209
|
"react-wrap-balancer": "^1.1.1",
|
|
145
210
|
"sonner": "^2.0.7",
|
|
146
211
|
"tailwind-merge": "^3.4.0",
|
|
147
212
|
"tree-model": "^1.0.7",
|
|
148
|
-
"undo-manager": "1.1.1"
|
|
213
|
+
"undo-manager": "1.1.1",
|
|
214
|
+
"use-stick-to-bottom": "^1.1.1",
|
|
215
|
+
"zod": "4.3.5"
|
|
149
216
|
},
|
|
150
217
|
"devDependencies": {
|
|
151
218
|
"@commitlint/cli": "19.6.1",
|
|
152
219
|
"@commitlint/config-conventional": "19.6.0",
|
|
153
220
|
"@emotion/react": "^11.14.0",
|
|
154
|
-
"@faker-js/faker": "^9.
|
|
155
|
-
"@microsoft/clarity": "^1.0.
|
|
156
|
-
"@playwright/test": "^1.
|
|
157
|
-
"@
|
|
158
|
-
"@
|
|
159
|
-
"@tanstack/
|
|
160
|
-
"@testing-library/react": "^16.
|
|
161
|
-
"@types/
|
|
162
|
-
"@types/
|
|
163
|
-
"@types/
|
|
164
|
-
"@types/
|
|
165
|
-
"@
|
|
166
|
-
"@
|
|
167
|
-
"@
|
|
221
|
+
"@faker-js/faker": "^9.9.0",
|
|
222
|
+
"@microsoft/clarity": "^1.0.2",
|
|
223
|
+
"@playwright/test": "^1.57.0",
|
|
224
|
+
"@supabase/supabase-js": "^2.89.0",
|
|
225
|
+
"@tanstack/eslint-plugin-query": "^5.91.2",
|
|
226
|
+
"@tanstack/react-query-devtools": "^5.91.2",
|
|
227
|
+
"@testing-library/react": "^16.3.1",
|
|
228
|
+
"@types/cors": "^2.8.19",
|
|
229
|
+
"@types/express": "^5.0.6",
|
|
230
|
+
"@types/express-fileupload": "1.5.1",
|
|
231
|
+
"@types/lodash": "^4.17.21",
|
|
232
|
+
"@types/lodash-es": "^4.17.12",
|
|
233
|
+
"@types/node": "^20.19.27",
|
|
234
|
+
"@types/react": "^19.2.7",
|
|
235
|
+
"@types/react-dom": "^19.2.3",
|
|
236
|
+
"@typescript-eslint/eslint-plugin": "^8.52.0",
|
|
237
|
+
"@typescript-eslint/parser": "^8.52.0",
|
|
238
|
+
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
239
|
+
"ai": "^6.0.11",
|
|
240
|
+
"autoprefixer": "^10.4.23",
|
|
168
241
|
"cheerio": "1.0.0-rc.12",
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
242
|
+
"cors": "^2.8.5",
|
|
243
|
+
"docsify-cli": "^4.4.4",
|
|
244
|
+
"dotenv": "^16.6.1",
|
|
245
|
+
"drizzle-kit": "^0.31.8",
|
|
246
|
+
"drizzle-orm": "^0.45.1",
|
|
247
|
+
"eslint": "9.39.2",
|
|
248
|
+
"eslint-plugin-react-hooks": "7.0.1",
|
|
249
|
+
"eslint-plugin-react-refresh": "0.4.26",
|
|
250
|
+
"express": "^5.2.1",
|
|
251
|
+
"express-fileupload": "^1.5.2",
|
|
173
252
|
"husky": "^9.1.7",
|
|
174
253
|
"jest-environment-jsdom": "^29.7.0",
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"postcss": "^8.5.
|
|
178
|
-
"
|
|
179
|
-
"prettier
|
|
254
|
+
"jiti": "^2.6.1",
|
|
255
|
+
"jsdoc": "^4.0.5",
|
|
256
|
+
"postcss": "^8.5.6",
|
|
257
|
+
"postgres": "^3.4.8",
|
|
258
|
+
"prettier": "^3.7.4",
|
|
259
|
+
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
180
260
|
"prop-types": "^15.8.1",
|
|
181
261
|
"react": "19.2.0",
|
|
182
262
|
"react-dom": "19.2.0",
|
|
183
|
-
"react-router-dom": "^7.
|
|
263
|
+
"react-router-dom": "^7.11.0",
|
|
184
264
|
"shadcn": "2.3.0",
|
|
185
|
-
"
|
|
265
|
+
"sharp": "^0.34.5",
|
|
266
|
+
"streamdown": "^1.6.10",
|
|
267
|
+
"tailwindcss": "^3.4.19",
|
|
186
268
|
"tailwindcss-animate": "^1.0.7",
|
|
187
|
-
"ts-jest": "^29.
|
|
269
|
+
"ts-jest": "^29.4.6",
|
|
188
270
|
"ts-node": "^10.9.2",
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
271
|
+
"typedoc": "^0.28.16",
|
|
272
|
+
"typedoc-plugin-markdown": "^4.9.0",
|
|
273
|
+
"typescript": "^5.9.3",
|
|
274
|
+
"vite": "^6.4.1",
|
|
275
|
+
"vite-plugin-dts": "^4.5.4",
|
|
276
|
+
"vitest": "^3.2.4"
|
|
193
277
|
},
|
|
194
278
|
"msw": {
|
|
195
279
|
"workerDirectory": "public"
|
|
196
280
|
},
|
|
197
281
|
"engines": {
|
|
198
282
|
"node": ">=21.0.0"
|
|
199
|
-
},
|
|
200
|
-
"scripts": {
|
|
201
|
-
"dev": "vite",
|
|
202
|
-
"build": "tsc && vite build",
|
|
203
|
-
"live": "tsc && vite build --config vite.config.live.ts",
|
|
204
|
-
"live:serve": "cd live && npx http-server -p 8080",
|
|
205
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
206
|
-
"preview": "vite preview",
|
|
207
|
-
"test": "vitest --run",
|
|
208
|
-
"test:watch": "vitest --watch",
|
|
209
|
-
"test:coverage": "vitest --coverage",
|
|
210
|
-
"e2e": "playwright test",
|
|
211
|
-
"e2e:report": "playwright show-report",
|
|
212
|
-
"e2e:ui": "playwright test --ui"
|
|
213
283
|
}
|
|
214
|
-
}
|
|
284
|
+
}
|