@assistant-wi/core 0.0.7 → 0.0.8
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/index-Csxo4340.mjs +112 -0
- package/dist/{index-du_6NCi7.cjs → index-DjmSSUD0.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +2 -2
- package/dist/tool/index.cjs.js +1 -1
- package/dist/tool/index.es.js +1 -1
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.es.js +1 -1
- package/package.json +1 -1
- package/dist/index-CFIfaRxl.js +0 -112
- /package/dist/{index-BXj6EgSG.js → index-BXj6EgSG.mjs} +0 -0
- /package/dist/{index-DMcbwFzr.cjs → index-DMcbwFzr.js} +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
function a(t, r, e) {
|
|
2
|
+
const n = {};
|
|
3
|
+
return c(n, t, r), l(n, t), s(n, t, e), n;
|
|
4
|
+
}
|
|
5
|
+
function c(t, r, e) {
|
|
6
|
+
for (const n of e)
|
|
7
|
+
Object.defineProperty(t, n, {
|
|
8
|
+
value: (o) => (r[n] = o, t),
|
|
9
|
+
enumerable: !1,
|
|
10
|
+
writable: !1,
|
|
11
|
+
configurable: !1
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function s(t, r, e) {
|
|
15
|
+
if (!e) return;
|
|
16
|
+
const n = e(r);
|
|
17
|
+
for (const o of Object.keys(n))
|
|
18
|
+
Object.defineProperty(t, o, {
|
|
19
|
+
value: (...u) => (n[o]?.(...u), t),
|
|
20
|
+
enumerable: !1,
|
|
21
|
+
writable: !1,
|
|
22
|
+
configurable: !1
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function l(t, r) {
|
|
26
|
+
Object.defineProperty(t, "build", {
|
|
27
|
+
value: () => r,
|
|
28
|
+
enumerable: !1,
|
|
29
|
+
writable: !1,
|
|
30
|
+
configurable: !1
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function i(...t) {
|
|
34
|
+
return a({ type: "block", nodes: t ?? [] }, ["direction", "gap", "nodes"], (e) => ({
|
|
35
|
+
row() {
|
|
36
|
+
e.direction = "row";
|
|
37
|
+
},
|
|
38
|
+
col() {
|
|
39
|
+
e.direction = "col";
|
|
40
|
+
},
|
|
41
|
+
addNode(n) {
|
|
42
|
+
e.nodes.push(n);
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
function d(...t) {
|
|
47
|
+
return i(...t).row();
|
|
48
|
+
}
|
|
49
|
+
function f(...t) {
|
|
50
|
+
return i(...t).col();
|
|
51
|
+
}
|
|
52
|
+
function b(t) {
|
|
53
|
+
return a({
|
|
54
|
+
type: "button",
|
|
55
|
+
text: t
|
|
56
|
+
}, ["text", "variant", "onClick"], (e) => ({
|
|
57
|
+
primary() {
|
|
58
|
+
e.variant = "primary";
|
|
59
|
+
},
|
|
60
|
+
secondary() {
|
|
61
|
+
e.variant = "secondary";
|
|
62
|
+
},
|
|
63
|
+
outline() {
|
|
64
|
+
e.variant = "outline";
|
|
65
|
+
},
|
|
66
|
+
ghost() {
|
|
67
|
+
e.variant = "ghost";
|
|
68
|
+
},
|
|
69
|
+
destructive() {
|
|
70
|
+
e.variant = "destructive";
|
|
71
|
+
}
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
function p(...t) {
|
|
75
|
+
return a(
|
|
76
|
+
{
|
|
77
|
+
type: "form",
|
|
78
|
+
nodes: t,
|
|
79
|
+
submitTitle: "Submit"
|
|
80
|
+
},
|
|
81
|
+
["title", "description", "submitTitle", "onSubmit"],
|
|
82
|
+
(e) => ({
|
|
83
|
+
addNode(n) {
|
|
84
|
+
e.nodes.push(n);
|
|
85
|
+
}
|
|
86
|
+
})
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
function y(t) {
|
|
90
|
+
return {
|
|
91
|
+
type: "text",
|
|
92
|
+
text: t
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
const m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
96
|
+
__proto__: null,
|
|
97
|
+
block: i,
|
|
98
|
+
button: b,
|
|
99
|
+
col: f,
|
|
100
|
+
form: p,
|
|
101
|
+
row: d,
|
|
102
|
+
text: y
|
|
103
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
104
|
+
export {
|
|
105
|
+
b as a,
|
|
106
|
+
i as b,
|
|
107
|
+
f as c,
|
|
108
|
+
p as f,
|
|
109
|
+
m as i,
|
|
110
|
+
d as r,
|
|
111
|
+
y as t
|
|
112
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function a(t,o,e){const n={};return b(n,t,o),y(n,t),p(n,t,e),n}function b(t,o,e){for(const n of e)Object.defineProperty(t,n,{value:r=>(o[n]=r,t),enumerable:!1,writable:!1,configurable:!1})}function p(t,o,e){if(!e)return;const n=e(o);for(const r of Object.keys(n))Object.defineProperty(t,r,{value:(...f)=>(n[r]?.(...f),t),enumerable:!1,writable:!1,configurable:!1})}function y(t,o){Object.defineProperty(t,"build",{value:()=>o,enumerable:!1,writable:!1,configurable:!1})}function i(...t){return a({type:"block",nodes:t??[]},["direction","gap","nodes"],e=>({row(){e.direction="row"},col(){e.direction="col"},addNode(n){e.nodes.push(n)}}))}function u(...t){return i(...t).row()}function c(...t){return i(...t).col()}function l(t){return a({type:"button",text:t},["text","variant","onClick"],e=>({primary(){e.variant="primary"},secondary(){e.variant="secondary"},outline(){e.variant="outline"},ghost(){e.variant="ghost"},destructive(){e.variant="destructive"}}))}function d(...t){return
|
|
1
|
+
"use strict";function a(t,o,e){const n={};return b(n,t,o),y(n,t),p(n,t,e),n}function b(t,o,e){for(const n of e)Object.defineProperty(t,n,{value:r=>(o[n]=r,t),enumerable:!1,writable:!1,configurable:!1})}function p(t,o,e){if(!e)return;const n=e(o);for(const r of Object.keys(n))Object.defineProperty(t,r,{value:(...f)=>(n[r]?.(...f),t),enumerable:!1,writable:!1,configurable:!1})}function y(t,o){Object.defineProperty(t,"build",{value:()=>o,enumerable:!1,writable:!1,configurable:!1})}function i(...t){return a({type:"block",nodes:t??[]},["direction","gap","nodes"],e=>({row(){e.direction="row"},col(){e.direction="col"},addNode(n){e.nodes.push(n)}}))}function u(...t){return i(...t).row()}function c(...t){return i(...t).col()}function l(t){return a({type:"button",text:t},["text","variant","onClick"],e=>({primary(){e.variant="primary"},secondary(){e.variant="secondary"},outline(){e.variant="outline"},ghost(){e.variant="ghost"},destructive(){e.variant="destructive"}}))}function d(...t){return a({type:"form",nodes:t,submitTitle:"Submit"},["title","description","submitTitle","onSubmit"],e=>({addNode(n){e.nodes.push(n)}}))}function s(t){return{type:"text",text:t}}const m=Object.freeze(Object.defineProperty({__proto__:null,block:i,button:l,col:c,form:d,row:u,text:s},Symbol.toStringTag,{value:"Module"}));exports.block=i;exports.button=l;exports.col=c;exports.form=d;exports.index=m;exports.row=u;exports.text=s;
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DMcbwFzr.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DMcbwFzr.js"),i=require("./index-DjmSSUD0.js");exports.tool=e.index;exports.ui=i.index;
|
package/dist/index.es.js
CHANGED
package/dist/tool/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DMcbwFzr.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DMcbwFzr.js");exports.createTool=e.createTool;
|
package/dist/tool/index.es.js
CHANGED
package/dist/ui/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-DjmSSUD0.js");exports.block=o.block;exports.button=o.button;exports.col=o.col;exports.form=o.form;exports.row=o.row;exports.text=o.text;
|
package/dist/ui/index.es.js
CHANGED
package/package.json
CHANGED
package/dist/index-CFIfaRxl.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
function a(e, o, t) {
|
|
2
|
-
const n = {};
|
|
3
|
-
return c(n, e, o), s(n, e), l(n, e, t), n;
|
|
4
|
-
}
|
|
5
|
-
function c(e, o, t) {
|
|
6
|
-
for (const n of t)
|
|
7
|
-
Object.defineProperty(e, n, {
|
|
8
|
-
value: (r) => (o[n] = r, e),
|
|
9
|
-
enumerable: !1,
|
|
10
|
-
writable: !1,
|
|
11
|
-
configurable: !1
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function l(e, o, t) {
|
|
15
|
-
if (!t) return;
|
|
16
|
-
const n = t(o);
|
|
17
|
-
for (const r of Object.keys(n))
|
|
18
|
-
Object.defineProperty(e, r, {
|
|
19
|
-
value: (...u) => (n[r]?.(...u), e),
|
|
20
|
-
enumerable: !1,
|
|
21
|
-
writable: !1,
|
|
22
|
-
configurable: !1
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function s(e, o) {
|
|
26
|
-
Object.defineProperty(e, "build", {
|
|
27
|
-
value: () => o,
|
|
28
|
-
enumerable: !1,
|
|
29
|
-
writable: !1,
|
|
30
|
-
configurable: !1
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function i(...e) {
|
|
34
|
-
return a({ type: "block", nodes: e ?? [] }, ["direction", "gap", "nodes"], (t) => ({
|
|
35
|
-
row() {
|
|
36
|
-
t.direction = "row";
|
|
37
|
-
},
|
|
38
|
-
col() {
|
|
39
|
-
t.direction = "col";
|
|
40
|
-
},
|
|
41
|
-
addNode(n) {
|
|
42
|
-
t.nodes.push(n);
|
|
43
|
-
}
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
function d(...e) {
|
|
47
|
-
return i(...e).row();
|
|
48
|
-
}
|
|
49
|
-
function f(...e) {
|
|
50
|
-
return i(...e).col();
|
|
51
|
-
}
|
|
52
|
-
function b(e) {
|
|
53
|
-
return a({
|
|
54
|
-
type: "button",
|
|
55
|
-
text: e
|
|
56
|
-
}, ["text", "variant", "onClick"], (t) => ({
|
|
57
|
-
primary() {
|
|
58
|
-
t.variant = "primary";
|
|
59
|
-
},
|
|
60
|
-
secondary() {
|
|
61
|
-
t.variant = "secondary";
|
|
62
|
-
},
|
|
63
|
-
outline() {
|
|
64
|
-
t.variant = "outline";
|
|
65
|
-
},
|
|
66
|
-
ghost() {
|
|
67
|
-
t.variant = "ghost";
|
|
68
|
-
},
|
|
69
|
-
destructive() {
|
|
70
|
-
t.variant = "destructive";
|
|
71
|
-
}
|
|
72
|
-
}));
|
|
73
|
-
}
|
|
74
|
-
function p(...e) {
|
|
75
|
-
return console.log("nodes", e), a(
|
|
76
|
-
{
|
|
77
|
-
type: "form",
|
|
78
|
-
nodes: e,
|
|
79
|
-
submitTitle: "Submit"
|
|
80
|
-
},
|
|
81
|
-
["title", "description", "submitTitle", "onSubmit"],
|
|
82
|
-
(t) => ({
|
|
83
|
-
addNode(n) {
|
|
84
|
-
t.nodes.push(n);
|
|
85
|
-
}
|
|
86
|
-
})
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
function y(e) {
|
|
90
|
-
return {
|
|
91
|
-
type: "text",
|
|
92
|
-
text: e
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
const m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
96
|
-
__proto__: null,
|
|
97
|
-
block: i,
|
|
98
|
-
button: b,
|
|
99
|
-
col: f,
|
|
100
|
-
form: p,
|
|
101
|
-
row: d,
|
|
102
|
-
text: y
|
|
103
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
104
|
-
export {
|
|
105
|
-
b as a,
|
|
106
|
-
i as b,
|
|
107
|
-
f as c,
|
|
108
|
-
p as f,
|
|
109
|
-
m as i,
|
|
110
|
-
d as r,
|
|
111
|
-
y as t
|
|
112
|
-
};
|
|
File without changes
|
|
File without changes
|