@chaibuilder/sdk 1.2.102 → 1.2.104
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/CodeEditor-BOeEt5yL.cjs +1 -0
- package/dist/{CodeEditor-7Q9lFDq1.js → CodeEditor-xKHFmP7r.js} +4 -5
- package/dist/Topbar-Ulmx0c7w.cjs +1 -0
- package/dist/{Topbar-Uk6diO3g.js → Topbar-Z4cQD_EP.js} +13 -14
- package/dist/{UnsplashImages-EGgHjvre.js → UnsplashImages-C9snpLoA.js} +4 -5
- package/dist/UnsplashImages-z3brw7hu.cjs +1 -0
- package/dist/{UploadImages-D43sz4A8.js → UploadImages-yrFhyBgy.js} +10 -11
- package/dist/UploadImages-zMZiwU9y.cjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +73 -74
- package/dist/index-7bVOae6Z.cjs +63 -0
- package/dist/{index-bdrCoYdD.js → index-dB_zEyAf.js} +644 -639
- package/dist/plugin-UiUFs2fK.js +44 -0
- package/dist/plugin-f6SDZ_Or.js +108 -0
- package/dist/plugin-jum1MjXp.cjs +1 -0
- package/dist/plugin-xOpS-UNV.cjs +1 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +2 -2
- package/dist/render.js +88 -100
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.d.ts +5 -9
- package/dist/tailwind.js +5 -17
- package/package.json +2 -2
- package/dist/CodeEditor-Z9tCJ_hE.cjs +0 -1
- package/dist/Topbar-vTIW51su.cjs +0 -1
- package/dist/UnsplashImages-jaKmRyo0.cjs +0 -1
- package/dist/UploadImages-G6OulTS8.cjs +0 -1
- package/dist/index-Mj5uWCca.cjs +0 -63
- package/dist/plugin-3Y9Uv3RT.cjs +0 -1
- package/dist/plugin-KIpT3NWi.cjs +0 -1
- package/dist/plugin-LKCHtO27.js +0 -43
- package/dist/plugin-ooqqxWRQ.js +0 -55
package/dist/plugin-3Y9Uv3RT.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("lodash-es"),u=require("tailwindcss-palette-generator"),b=require("./plugin-KIpT3NWi.cjs"),f=o=>{const t=r.get(o,"primaryColor","#000"),c=r.get(o,"secondaryColor","#ccc"),i=r.get(o,"headingFont","Inter"),l=r.get(o,"bodyFont","Inter"),n=r.get(o,"roundedCorners","0"),a=r.get(o,"bodyBgLightColor","#fff"),d=r.get(o,"bodyBgDarkColor","#000"),g=r.get(o,"bodyTextLightColor","#000"),e=r.get(o,"bodyTextDarkColor","#fff"),s=u([{color:t,name:"primary"},{color:c,name:"secondary"}]),y={"bg-light":a,"bg-dark":d,"text-dark":e,"text-light":g};return{container:{center:!0,padding:"1rem",screens:{"2xl":"1400px"}},fontFamily:{heading:[i],body:[l]},borderRadius:{DEFAULT:`${n||"0px"}px`},colors:{...s,...y}}},C=b.plugin(function({addBase:o,theme:t}){o({"h1,h2,h3,h4,h5,h6":{fontFamily:t("fontFamily.heading")},body:{fontFamily:t("fontFamily.body"),color:t("colors.text-light"),backgroundColor:t("colors.bg-light")},".dark body":{color:t("colors.text-dark"),backgroundColor:t("colors.bg-dark")}})});exports.chaiBuilderPlugin=C;exports.getChaiBuilderTheme=f;
|
package/dist/plugin-KIpT3NWi.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c={},f={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});function u(n,t){return{handler:n,config:t}}u.withOptions=function(n,t=()=>({})){const r=function(i){return{__options:i,handler:n(i),config:t(i)}};return r.__isOptionsFunction=!0,r.__pluginFunction=n,r.__configFunction=t,r};const l=u})(f);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const u=l(f);function l(t){return t&&t.__esModule?t:{default:t}}const n=u.default})(c);let o=c;var _=(o.__esModule?o:{default:o}).default;const d=a(_);exports.getDefaultExportFromCjs=a;exports.plugin=d;
|
package/dist/plugin-LKCHtO27.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { get as r } from "lodash-es";
|
|
2
|
-
import e from "tailwindcss-palette-generator";
|
|
3
|
-
import { p as f } from "./plugin-ooqqxWRQ.js";
|
|
4
|
-
const C = (o) => {
|
|
5
|
-
const n = r(o, "primaryColor", "#000"), a = r(o, "secondaryColor", "#ccc"), c = r(o, "headingFont", "Inter"), d = r(o, "bodyFont", "Inter"), t = r(o, "roundedCorners", "0"), l = r(o, "bodyBgLightColor", "#fff"), i = r(o, "bodyBgDarkColor", "#000"), s = r(o, "bodyTextLightColor", "#000"), g = r(o, "bodyTextDarkColor", "#fff"), y = e([
|
|
6
|
-
{ color: n, name: "primary" },
|
|
7
|
-
{ color: a, name: "secondary" }
|
|
8
|
-
]), b = {
|
|
9
|
-
"bg-light": l,
|
|
10
|
-
"bg-dark": i,
|
|
11
|
-
"text-dark": g,
|
|
12
|
-
"text-light": s
|
|
13
|
-
};
|
|
14
|
-
return {
|
|
15
|
-
container: {
|
|
16
|
-
center: !0,
|
|
17
|
-
padding: "1rem",
|
|
18
|
-
screens: { "2xl": "1400px" }
|
|
19
|
-
},
|
|
20
|
-
fontFamily: { heading: [c], body: [d] },
|
|
21
|
-
borderRadius: { DEFAULT: `${t || "0px"}px` },
|
|
22
|
-
colors: { ...y, ...b }
|
|
23
|
-
};
|
|
24
|
-
}, F = f(function({ addBase: o, theme: n }) {
|
|
25
|
-
o({
|
|
26
|
-
"h1,h2,h3,h4,h5,h6": {
|
|
27
|
-
fontFamily: n("fontFamily.heading")
|
|
28
|
-
},
|
|
29
|
-
body: {
|
|
30
|
-
fontFamily: n("fontFamily.body"),
|
|
31
|
-
color: n("colors.text-light"),
|
|
32
|
-
backgroundColor: n("colors.bg-light")
|
|
33
|
-
},
|
|
34
|
-
".dark body": {
|
|
35
|
-
color: n("colors.text-dark"),
|
|
36
|
-
backgroundColor: n("colors.bg-dark")
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
export {
|
|
41
|
-
F as c,
|
|
42
|
-
C as g
|
|
43
|
-
};
|
package/dist/plugin-ooqqxWRQ.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function f(e) {
|
|
2
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3
|
-
}
|
|
4
|
-
var i = {}, c = {};
|
|
5
|
-
(function(e) {
|
|
6
|
-
Object.defineProperty(e, "__esModule", {
|
|
7
|
-
value: !0
|
|
8
|
-
}), Object.defineProperty(e, "default", {
|
|
9
|
-
enumerable: !0,
|
|
10
|
-
get: function() {
|
|
11
|
-
return l;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
function u(n, t) {
|
|
15
|
-
return {
|
|
16
|
-
handler: n,
|
|
17
|
-
config: t
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
u.withOptions = function(n, t = () => ({})) {
|
|
21
|
-
const r = function(a) {
|
|
22
|
-
return {
|
|
23
|
-
__options: a,
|
|
24
|
-
handler: n(a),
|
|
25
|
-
config: t(a)
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
return r.__isOptionsFunction = !0, r.__pluginFunction = n, r.__configFunction = t, r;
|
|
29
|
-
};
|
|
30
|
-
const l = u;
|
|
31
|
-
})(c);
|
|
32
|
-
(function(e) {
|
|
33
|
-
Object.defineProperty(e, "__esModule", {
|
|
34
|
-
value: !0
|
|
35
|
-
}), Object.defineProperty(e, "default", {
|
|
36
|
-
enumerable: !0,
|
|
37
|
-
get: function() {
|
|
38
|
-
return n;
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
const u = /* @__PURE__ */ l(c);
|
|
42
|
-
function l(t) {
|
|
43
|
-
return t && t.__esModule ? t : {
|
|
44
|
-
default: t
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
const n = u.default;
|
|
48
|
-
})(i);
|
|
49
|
-
let o = i;
|
|
50
|
-
var _ = (o.__esModule ? o : { default: o }).default;
|
|
51
|
-
const d = /* @__PURE__ */ f(_);
|
|
52
|
-
export {
|
|
53
|
-
f as g,
|
|
54
|
-
d as p
|
|
55
|
-
};
|