zxq-com 0.0.30 → 0.0.32
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.d.ts +0 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/ws/zxqWs.d.ts +1 -1
- package/dist/zxq-com.cjs +321 -322
- package/dist/zxq-com.css +1 -1
- package/dist/zxq-com.js +2890 -4179
- package/dist/zxq-ws.cjs +1 -1
- package/dist/zxq-ws.js +1 -1
- package/dist/zxqWs-C8PKp6xW.cjs +1 -0
- package/dist/zxqWs-wYl2lV3c.js +127 -0
- package/package.json +1 -1
- package/dist/A2UIAudio-CjRHo_tK.cjs +0 -1
- package/dist/A2UIAudio-Dn4ur7h-.js +0 -31
- package/dist/A2UIButton-CnppLi7b.cjs +0 -1
- package/dist/A2UIButton-nOO3LOth.js +0 -35
- package/dist/A2UICard-BgjH40z6.js +0 -34
- package/dist/A2UICard-BhGyY9Gx.cjs +0 -1
- package/dist/A2UICheckbox-B5uHUsbP.cjs +0 -1
- package/dist/A2UICheckbox-DrC1_5iC.js +0 -41
- package/dist/A2UIDateTimeInput-BYdDpBR-.js +0 -58
- package/dist/A2UIDateTimeInput-D-aG6mZk.cjs +0 -1
- package/dist/A2UIDivider-Bzpy-f-q.js +0 -24
- package/dist/A2UIDivider-CvM6sA_R.cjs +0 -1
- package/dist/A2UIIcon-7d6g1X7l.cjs +0 -1
- package/dist/A2UIIcon-D0PvsBr4.js +0 -30
- package/dist/A2UIImage-BeT7cRh7.cjs +0 -1
- package/dist/A2UIImage-DvRMKAMK.js +0 -39
- package/dist/A2UIList-CVESfWJr.js +0 -32
- package/dist/A2UIList-DcLtvZb0.cjs +0 -1
- package/dist/A2UIModal-BNDMZHNM.cjs +0 -1
- package/dist/A2UIModal-B_MoIZYE.js +0 -47
- package/dist/A2UIMultipleChoice-DtMcPyuU.js +0 -41
- package/dist/A2UIMultipleChoice-n7GyQjXd.cjs +0 -1
- package/dist/A2UIRenderer-DqVIH5p7.cjs +0 -1
- package/dist/A2UIRenderer-lZ0ms8c-.js +0 -44
- package/dist/A2UISlider-Dd9OIXwb.js +0 -54
- package/dist/A2UISlider-NnRbh48d.cjs +0 -1
- package/dist/A2UITabs-CvuzauYt.cjs +0 -1
- package/dist/A2UITabs-DU1t9s1D.js +0 -39
- package/dist/A2UITextField-CC5S1AW9.js +0 -46
- package/dist/A2UITextField-D652Ge6_.cjs +0 -1
- package/dist/A2UIVideo-CNBhUnoP.js +0 -30
- package/dist/A2UIVideo-CRBBhgyW.cjs +0 -1
- package/dist/a2ui/catalog/A2UIAudio.vue.d.ts +0 -10
- package/dist/a2ui/catalog/A2UIButton.vue.d.ts +0 -9
- package/dist/a2ui/catalog/A2UICard.vue.d.ts +0 -8
- package/dist/a2ui/catalog/A2UICheckbox.vue.d.ts +0 -11
- package/dist/a2ui/catalog/A2UIColumn.vue.d.ts +0 -10
- package/dist/a2ui/catalog/A2UIDateTimeInput.vue.d.ts +0 -12
- package/dist/a2ui/catalog/A2UIDivider.vue.d.ts +0 -8
- package/dist/a2ui/catalog/A2UIIcon.vue.d.ts +0 -10
- package/dist/a2ui/catalog/A2UIImage.vue.d.ts +0 -12
- package/dist/a2ui/catalog/A2UIList.vue.d.ts +0 -9
- package/dist/a2ui/catalog/A2UIModal.vue.d.ts +0 -10
- package/dist/a2ui/catalog/A2UIMultipleChoice.vue.d.ts +0 -15
- package/dist/a2ui/catalog/A2UIRow.vue.d.ts +0 -10
- package/dist/a2ui/catalog/A2UISlider.vue.d.ts +0 -13
- package/dist/a2ui/catalog/A2UISurface.vue.d.ts +0 -7
- package/dist/a2ui/catalog/A2UITabs.vue.d.ts +0 -9
- package/dist/a2ui/catalog/A2UIText.vue.d.ts +0 -11
- package/dist/a2ui/catalog/A2UITextField.vue.d.ts +0 -12
- package/dist/a2ui/catalog/A2UIVideo.vue.d.ts +0 -10
- package/dist/a2ui/catalog/default.d.ts +0 -2
- package/dist/a2ui/config.d.ts +0 -10
- package/dist/a2ui/data/markdown.d.ts +0 -9
- package/dist/a2ui/data/processor.d.ts +0 -17
- package/dist/a2ui/data/types.d.ts +0 -12
- package/dist/a2ui/index.d.ts +0 -11
- package/dist/a2ui/rendering/A2UIRenderer.vue.d.ts +0 -7
- package/dist/a2ui/rendering/catalog.d.ts +0 -10
- package/dist/a2ui/rendering/useDynamicComponent.d.ts +0 -18
- package/dist/a2ui/theme.d.ts +0 -2
- package/dist/styles-BYpMnn-p.js +0 -442
- package/dist/styles-BZV65AUo.cjs +0 -453
- package/dist/useDynamicComponent-MEzwhjNJ.js +0 -470
- package/dist/useDynamicComponent-YT-u9Rpv.cjs +0 -1
- package/dist/zxqWs-C-4EvBgn.cjs +0 -1
- package/dist/zxqWs-dpmEPt3d.js +0 -109
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { a as useA2UIConfig } from "./useDynamicComponent-MEzwhjNJ.js";
|
|
2
|
-
import { t as structuralStyles } from "./styles-BYpMnn-p.js";
|
|
3
|
-
import { createBlock, createCommentVNode, defineComponent, mergeProps, normalizeProps, onMounted, openBlock, ref, resolveDynamicComponent, shallowRef, watch } from "vue";
|
|
4
|
-
var A2UIRenderer_default = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "A2UIRenderer",
|
|
6
|
-
props: {
|
|
7
|
-
surfaceId: {},
|
|
8
|
-
component: {}
|
|
9
|
-
},
|
|
10
|
-
setup(f) {
|
|
11
|
-
let p = f, { catalog: m } = useA2UIConfig(), h = shallowRef(null), g = ref({}), _ = !1;
|
|
12
|
-
async function v() {
|
|
13
|
-
let e = m[p.component.type];
|
|
14
|
-
if (!e) {
|
|
15
|
-
console.warn(`No component registered for type: ${p.component.type}`), h.value = null;
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
let l, u = {};
|
|
19
|
-
if (typeof e == "function") {
|
|
20
|
-
let u = await e();
|
|
21
|
-
l = u.default ?? u;
|
|
22
|
-
} else {
|
|
23
|
-
let d = await e.type();
|
|
24
|
-
l = d.default ?? d, u = e.props(p.component);
|
|
25
|
-
}
|
|
26
|
-
g.value = {
|
|
27
|
-
surfaceId: p.surfaceId,
|
|
28
|
-
component: p.component,
|
|
29
|
-
weight: p.component.weight ?? "initial",
|
|
30
|
-
...u
|
|
31
|
-
}, h.value = l;
|
|
32
|
-
}
|
|
33
|
-
return watch(() => [p.surfaceId, p.component], () => v(), {
|
|
34
|
-
immediate: !0,
|
|
35
|
-
deep: !0
|
|
36
|
-
}), onMounted(() => {
|
|
37
|
-
if (!_ && typeof document < "u") {
|
|
38
|
-
let e = document.createElement("style");
|
|
39
|
-
e.textContent = structuralStyles, document.head.appendChild(e), _ = !0;
|
|
40
|
-
}
|
|
41
|
-
}), (e, l) => h.value ? (openBlock(), createBlock(resolveDynamicComponent(h.value), normalizeProps(mergeProps({ key: 0 }, g.value)), null, 16)) : createCommentVNode("", !0);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export { A2UIRenderer_default as t };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { o as __plugin_vue_export_helper_default, t as useDynamicComponent } from "./useDynamicComponent-MEzwhjNJ.js";
|
|
2
|
-
import { computed, createBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, resolveComponent, toDisplayString, unref, useCssVars, withCtx } from "vue";
|
|
3
|
-
var _hoisted_1 = ["for"], _hoisted_2 = [
|
|
4
|
-
"value",
|
|
5
|
-
"min",
|
|
6
|
-
"max",
|
|
7
|
-
"id"
|
|
8
|
-
], A2UISlider_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "A2UISlider",
|
|
10
|
-
props: {
|
|
11
|
-
surfaceId: {},
|
|
12
|
-
component: {},
|
|
13
|
-
weight: {},
|
|
14
|
-
value: {},
|
|
15
|
-
label: {},
|
|
16
|
-
minValue: {},
|
|
17
|
-
maxValue: {}
|
|
18
|
-
},
|
|
19
|
-
setup(e) {
|
|
20
|
-
useCssVars((e) => ({ v7438330c: e.weight }));
|
|
21
|
-
let h = e, { theme: g, resolvePrimitive: _, getUniqueId: v, setData: y } = useDynamicComponent(h), b = v("a2ui-slider"), x = computed(() => _(h.value) ?? 0), S = computed(() => C(x.value));
|
|
22
|
-
function C(e) {
|
|
23
|
-
let f = h.minValue ?? 0, p = (h.maxValue ?? 100) - f;
|
|
24
|
-
return p > 0 ? Math.max(0, Math.min(100, (e - f) / p * 100)) : 0;
|
|
25
|
-
}
|
|
26
|
-
function w(e) {
|
|
27
|
-
let f = h.value?.path;
|
|
28
|
-
if (!(e.target instanceof HTMLInputElement)) return;
|
|
29
|
-
let p = e.target.valueAsNumber, m = C(p);
|
|
30
|
-
e.target.style.setProperty("--slider-percent", m + "%"), f && y(h.component, f, p, h.surfaceId);
|
|
31
|
-
}
|
|
32
|
-
return (f, p) => {
|
|
33
|
-
let h = resolveComponent("a2ui-slider");
|
|
34
|
-
return openBlock(), createBlock(h, null, {
|
|
35
|
-
default: withCtx(() => [createElementVNode("section", { class: normalizeClass(unref(g).components.Slider.container) }, [createElementVNode("label", {
|
|
36
|
-
class: normalizeClass(unref(g).components.Slider.label),
|
|
37
|
-
for: unref(b)
|
|
38
|
-
}, toDisplayString(e.label), 11, _hoisted_1), createElementVNode("input", {
|
|
39
|
-
autocomplete: "off",
|
|
40
|
-
type: "range",
|
|
41
|
-
value: x.value,
|
|
42
|
-
min: e.minValue,
|
|
43
|
-
max: e.maxValue,
|
|
44
|
-
id: unref(b),
|
|
45
|
-
onInput: w,
|
|
46
|
-
class: normalizeClass(unref(g).components.Slider.element),
|
|
47
|
-
style: normalizeStyle([unref(g).additionalStyles?.Slider, { "--slider-percent": S.value + "%" }])
|
|
48
|
-
}, null, 46, _hoisted_2)], 2)]),
|
|
49
|
-
_: 1
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}), [["__scopeId", "data-v-9af75714"]]);
|
|
54
|
-
export { A2UISlider_default as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./useDynamicComponent-YT-u9Rpv.cjs`),t=require(`./zxq-com.cjs`);let n=require(`vue`);var r=[`for`],i=[`value`,`min`,`max`,`id`],a=(0,n.defineComponent)({__name:`A2UISlider`,props:{surfaceId:{},component:{},weight:{},value:{},label:{},minValue:{},maxValue:{}},setup(t){(0,n.useCssVars)(e=>({v7438330c:e.weight}));let a=t,{theme:o,resolvePrimitive:s,getUniqueId:c,setData:l}=e.t(a),u=c(`a2ui-slider`),d=(0,n.computed)(()=>s(a.value)??0),f=(0,n.computed)(()=>p(d.value));function p(e){let t=a.minValue??0,n=(a.maxValue??100)-t;return n>0?Math.max(0,Math.min(100,(e-t)/n*100)):0}function m(e){let t=a.value?.path;if(!(e.target instanceof HTMLInputElement))return;let n=e.target.valueAsNumber,r=p(n);e.target.style.setProperty(`--slider-percent`,r+`%`),t&&l(a.component,t,n,a.surfaceId)}return(e,a)=>{let s=(0,n.resolveComponent)(`a2ui-slider`);return(0,n.openBlock)(),(0,n.createBlock)(s,null,{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`section`,{class:(0,n.normalizeClass)((0,n.unref)(o).components.Slider.container)},[(0,n.createElementVNode)(`label`,{class:(0,n.normalizeClass)((0,n.unref)(o).components.Slider.label),for:(0,n.unref)(u)},(0,n.toDisplayString)(t.label),11,r),(0,n.createElementVNode)(`input`,{autocomplete:`off`,type:`range`,value:d.value,min:t.minValue,max:t.maxValue,id:(0,n.unref)(u),onInput:m,class:(0,n.normalizeClass)((0,n.unref)(o).components.Slider.element),style:(0,n.normalizeStyle)([(0,n.unref)(o).additionalStyles?.Slider,{"--slider-percent":f.value+`%`}])},null,46,i)],2)]),_:1})}}}),o=e.o(a,[[`__scopeId`,`data-v-9af75714`]]);exports.default=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./useDynamicComponent-YT-u9Rpv.cjs`),t=require(`./styles-BZV65AUo.cjs`),n=require(`./A2UIRenderer-DqVIH5p7.cjs`),r=require(`./zxq-com.cjs`);let i=require(`vue`);var a=[`onClick`,`disabled`],o=(0,i.defineComponent)({__name:`A2UITabs`,props:{surfaceId:{},component:{},weight:{},tabs:{}},setup(r){(0,i.useCssVars)(e=>({v7245b45c:e.weight}));let o=r,{theme:s,resolvePrimitive:c}=e.t(o),l=(0,i.ref)(0),u=(0,i.computed)(()=>{let e=l.value;return o.tabs.map((n,r)=>r===e?t.r(s.components.Tabs.controls.all,s.components.Tabs.controls.selected):s.components.Tabs.controls.all)});return(e,t)=>{let o=(0,i.resolveComponent)(`a2ui-tabs`);return(0,i.openBlock)(),(0,i.createBlock)(o,null,{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`section`,{class:(0,i.normalizeClass)((0,i.unref)(s).components.Tabs.container),style:(0,i.normalizeStyle)((0,i.unref)(s).additionalStyles?.Tabs)},[(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)((0,i.unref)(s).components.Tabs.element)},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(r.tabs,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)(`button`,{key:t,onClick:e=>l.value=t,disabled:l.value===t,class:(0,i.normalizeClass)(u.value[t])},(0,i.toDisplayString)((0,i.unref)(c)(e.title)),11,a))),128))],2),(0,i.createVNode)(n.t,{"surface-id":r.surfaceId,component:r.tabs[l.value].child},null,8,[`surface-id`,`component`])],6)]),_:1})}}}),s=e.o(o,[[`__scopeId`,`data-v-02f92b76`]]);exports.default=s;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { o as __plugin_vue_export_helper_default, t as useDynamicComponent } from "./useDynamicComponent-MEzwhjNJ.js";
|
|
2
|
-
import { r as merge } from "./styles-BYpMnn-p.js";
|
|
3
|
-
import { t as A2UIRenderer_default } from "./A2UIRenderer-lZ0ms8c-.js";
|
|
4
|
-
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, useCssVars, withCtx } from "vue";
|
|
5
|
-
var _hoisted_1 = ["onClick", "disabled"], A2UITabs_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "A2UITabs",
|
|
7
|
-
props: {
|
|
8
|
-
surfaceId: {},
|
|
9
|
-
component: {},
|
|
10
|
-
weight: {},
|
|
11
|
-
tabs: {}
|
|
12
|
-
},
|
|
13
|
-
setup(e) {
|
|
14
|
-
useCssVars((e) => ({ v7245b45c: e.weight }));
|
|
15
|
-
let x = e, { theme: S, resolvePrimitive: C } = useDynamicComponent(x), w = ref(0), T = computed(() => {
|
|
16
|
-
let e = w.value;
|
|
17
|
-
return x.tabs.map((_, y) => y === e ? merge(S.components.Tabs.controls.all, S.components.Tabs.controls.selected) : S.components.Tabs.controls.all);
|
|
18
|
-
});
|
|
19
|
-
return (_, v) => {
|
|
20
|
-
let b = resolveComponent("a2ui-tabs");
|
|
21
|
-
return openBlock(), createBlock(b, null, {
|
|
22
|
-
default: withCtx(() => [createElementVNode("section", {
|
|
23
|
-
class: normalizeClass(unref(S).components.Tabs.container),
|
|
24
|
-
style: normalizeStyle(unref(S).additionalStyles?.Tabs)
|
|
25
|
-
}, [createElementVNode("div", { class: normalizeClass(unref(S).components.Tabs.element) }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.tabs, (e, _) => (openBlock(), createElementBlock("button", {
|
|
26
|
-
key: _,
|
|
27
|
-
onClick: (e) => w.value = _,
|
|
28
|
-
disabled: w.value === _,
|
|
29
|
-
class: normalizeClass(T.value[_])
|
|
30
|
-
}, toDisplayString(unref(C)(e.title)), 11, _hoisted_1))), 128))], 2), createVNode(A2UIRenderer_default, {
|
|
31
|
-
"surface-id": e.surfaceId,
|
|
32
|
-
component: e.tabs[w.value].child
|
|
33
|
-
}, null, 8, ["surface-id", "component"])], 6)]),
|
|
34
|
-
_: 1
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}), [["__scopeId", "data-v-02f92b76"]]);
|
|
39
|
-
export { A2UITabs_default as default };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { o as __plugin_vue_export_helper_default, t as useDynamicComponent } from "./useDynamicComponent-MEzwhjNJ.js";
|
|
2
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, resolveComponent, toDisplayString, unref, useCssVars, withCtx } from "vue";
|
|
3
|
-
var _hoisted_1 = ["for"], _hoisted_2 = [
|
|
4
|
-
"id",
|
|
5
|
-
"value",
|
|
6
|
-
"type"
|
|
7
|
-
], A2UITextField_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "A2UITextField",
|
|
9
|
-
props: {
|
|
10
|
-
surfaceId: {},
|
|
11
|
-
component: {},
|
|
12
|
-
weight: {},
|
|
13
|
-
text: {},
|
|
14
|
-
label: {},
|
|
15
|
-
textFieldType: {}
|
|
16
|
-
},
|
|
17
|
-
setup(t) {
|
|
18
|
-
useCssVars((t) => ({ v7d0ae2b2: t.weight }));
|
|
19
|
-
let _ = t, { theme: v, resolvePrimitive: y, getUniqueId: b, setData: x } = useDynamicComponent(_), S = computed(() => y(_.text) || ""), C = computed(() => y(_.label)), w = b("a2ui-input");
|
|
20
|
-
function T(t) {
|
|
21
|
-
let h = _.text?.path;
|
|
22
|
-
!(t.target instanceof HTMLInputElement) || !h || x(_.component, h, t.target.value, _.surfaceId);
|
|
23
|
-
}
|
|
24
|
-
return (h, g) => {
|
|
25
|
-
let _ = resolveComponent("a2ui-text-field");
|
|
26
|
-
return openBlock(), createBlock(_, null, {
|
|
27
|
-
default: withCtx(() => [createElementVNode("section", { class: normalizeClass(unref(v).components.TextField.container) }, [C.value ? (openBlock(), createElementBlock("label", {
|
|
28
|
-
key: 0,
|
|
29
|
-
for: unref(w),
|
|
30
|
-
class: normalizeClass(unref(v).components.TextField.label)
|
|
31
|
-
}, toDisplayString(C.value), 11, _hoisted_1)) : createCommentVNode("", !0), createElementVNode("input", {
|
|
32
|
-
autocomplete: "off",
|
|
33
|
-
class: normalizeClass(unref(v).components.TextField.element),
|
|
34
|
-
style: normalizeStyle(unref(v).additionalStyles?.TextField),
|
|
35
|
-
onInput: T,
|
|
36
|
-
id: unref(w),
|
|
37
|
-
value: S.value,
|
|
38
|
-
placeholder: "Please enter a value",
|
|
39
|
-
type: t.textFieldType === "number" ? "number" : "text"
|
|
40
|
-
}, null, 46, _hoisted_2)], 2)]),
|
|
41
|
-
_: 1
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}), [["__scopeId", "data-v-83f4a881"]]);
|
|
46
|
-
export { A2UITextField_default as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./useDynamicComponent-YT-u9Rpv.cjs`),t=require(`./zxq-com.cjs`);let n=require(`vue`);var r=[`for`],i=[`id`,`value`,`type`],a=(0,n.defineComponent)({__name:`A2UITextField`,props:{surfaceId:{},component:{},weight:{},text:{},label:{},textFieldType:{}},setup(t){(0,n.useCssVars)(e=>({v7d0ae2b2:e.weight}));let a=t,{theme:o,resolvePrimitive:s,getUniqueId:c,setData:l}=e.t(a),u=(0,n.computed)(()=>s(a.text)||``),d=(0,n.computed)(()=>s(a.label)),f=c(`a2ui-input`);function p(e){let t=a.text?.path;!(e.target instanceof HTMLInputElement)||!t||l(a.component,t,e.target.value,a.surfaceId)}return(e,a)=>{let s=(0,n.resolveComponent)(`a2ui-text-field`);return(0,n.openBlock)(),(0,n.createBlock)(s,null,{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`section`,{class:(0,n.normalizeClass)((0,n.unref)(o).components.TextField.container)},[d.value?((0,n.openBlock)(),(0,n.createElementBlock)(`label`,{key:0,for:(0,n.unref)(f),class:(0,n.normalizeClass)((0,n.unref)(o).components.TextField.label)},(0,n.toDisplayString)(d.value),11,r)):(0,n.createCommentVNode)(``,!0),(0,n.createElementVNode)(`input`,{autocomplete:`off`,class:(0,n.normalizeClass)((0,n.unref)(o).components.TextField.element),style:(0,n.normalizeStyle)((0,n.unref)(o).additionalStyles?.TextField),onInput:p,id:(0,n.unref)(f),value:u.value,placeholder:`Please enter a value`,type:t.textFieldType===`number`?`number`:`text`},null,46,i)],2)]),_:1})}}}),o=e.o(a,[[`__scopeId`,`data-v-83f4a881`]]);exports.default=o;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { o as __plugin_vue_export_helper_default, t as useDynamicComponent } from "./useDynamicComponent-MEzwhjNJ.js";
|
|
2
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, resolveComponent, unref, useCssVars, withCtx } from "vue";
|
|
3
|
-
var _hoisted_1 = ["src"], A2UIVideo_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "A2UIVideo",
|
|
5
|
-
props: {
|
|
6
|
-
surfaceId: {},
|
|
7
|
-
component: {},
|
|
8
|
-
weight: {},
|
|
9
|
-
url: {}
|
|
10
|
-
},
|
|
11
|
-
setup(e) {
|
|
12
|
-
useCssVars((e) => ({ e86275e8: e.weight }));
|
|
13
|
-
let h = e, { theme: g, resolvePrimitive: _ } = useDynamicComponent(h), v = computed(() => _(h.url));
|
|
14
|
-
return (e, p) => {
|
|
15
|
-
let m = resolveComponent("a2ui-video");
|
|
16
|
-
return openBlock(), createBlock(m, null, {
|
|
17
|
-
default: withCtx(() => [v.value ? (openBlock(), createElementBlock("section", {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: normalizeClass(unref(g).components.Video),
|
|
20
|
-
style: normalizeStyle(unref(g).additionalStyles?.Video)
|
|
21
|
-
}, [createElementVNode("video", {
|
|
22
|
-
controls: "",
|
|
23
|
-
src: v.value
|
|
24
|
-
}, null, 8, _hoisted_1)], 6)) : createCommentVNode("", !0)]),
|
|
25
|
-
_: 1
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}), [["__scopeId", "data-v-00700e1a"]]);
|
|
30
|
-
export { A2UIVideo_default as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./useDynamicComponent-YT-u9Rpv.cjs`),t=require(`./zxq-com.cjs`);let n=require(`vue`);var r=[`src`],i=(0,n.defineComponent)({__name:`A2UIVideo`,props:{surfaceId:{},component:{},weight:{},url:{}},setup(t){(0,n.useCssVars)(e=>({e86275e8:e.weight}));let i=t,{theme:a,resolvePrimitive:o}=e.t(i),s=(0,n.computed)(()=>o(i.url));return(e,t)=>{let i=(0,n.resolveComponent)(`a2ui-video`);return(0,n.openBlock)(),(0,n.createBlock)(i,null,{default:(0,n.withCtx)(()=>[s.value?((0,n.openBlock)(),(0,n.createElementBlock)(`section`,{key:0,class:(0,n.normalizeClass)((0,n.unref)(a).components.Video),style:(0,n.normalizeStyle)((0,n.unref)(a).additionalStyles?.Video)},[(0,n.createElementVNode)(`video`,{controls:``,src:s.value},null,8,r)],6)):(0,n.createCommentVNode)(``,!0)]),_:1})}}}),a=e.o(i,[[`__scopeId`,`data-v-00700e1a`]]);exports.default=a;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: Types.AudioPlayerNode;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
url: Primitives.StringValue | null;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
surfaceId: Types.SurfaceID | null;
|
|
4
|
-
component: Types.ButtonNode;
|
|
5
|
-
weight: string | number;
|
|
6
|
-
action: Types.Action | null;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
surfaceId: Types.SurfaceID | null;
|
|
4
|
-
component: Types.CardNode;
|
|
5
|
-
weight: string | number;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: Types.CheckboxNode;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
value: Primitives.BooleanValue | null;
|
|
8
|
-
label: Primitives.StringValue | null;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
surfaceId: Types.SurfaceID | null;
|
|
4
|
-
component: Types.ColumnNode;
|
|
5
|
-
weight: string | number;
|
|
6
|
-
alignment?: Types.ResolvedColumn['alignment'];
|
|
7
|
-
distribution?: Types.ResolvedColumn['distribution'];
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: Types.DateTimeInputNode;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
value: Primitives.StringValue | null;
|
|
8
|
-
enableDate: boolean;
|
|
9
|
-
enableTime: boolean;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
surfaceId: Types.SurfaceID | null;
|
|
4
|
-
component: Types.DividerNode;
|
|
5
|
-
weight: string | number;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: Types.IconNode;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
name: Primitives.StringValue | null;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: Types.ImageNode;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
url: Primitives.StringValue | null;
|
|
8
|
-
altText?: Primitives.StringValue | null;
|
|
9
|
-
usageHint: Types.ResolvedImage['usageHint'] | null;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
surfaceId: Types.SurfaceID | null;
|
|
4
|
-
component: Types.ListNode;
|
|
5
|
-
weight: string | number;
|
|
6
|
-
direction?: 'vertical' | 'horizontal';
|
|
7
|
-
};
|
|
8
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
surfaceId: Types.SurfaceID | null;
|
|
4
|
-
component: Types.ModalNode;
|
|
5
|
-
weight: string | number;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
-
dialogRef: HTMLDialogElement;
|
|
9
|
-
}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: Types.MultipleChoiceNode;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
options: {
|
|
8
|
-
label: Primitives.StringValue;
|
|
9
|
-
value: string;
|
|
10
|
-
}[];
|
|
11
|
-
value: Primitives.StringValue | null;
|
|
12
|
-
description: string;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
surfaceId: Types.SurfaceID | null;
|
|
4
|
-
component: Types.RowNode;
|
|
5
|
-
weight: string | number;
|
|
6
|
-
alignment?: Types.ResolvedRow['alignment'];
|
|
7
|
-
distribution?: Types.ResolvedRow['distribution'];
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: Types.SliderNode;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
value: Primitives.NumberValue | null;
|
|
8
|
-
label?: string;
|
|
9
|
-
minValue: number | undefined;
|
|
10
|
-
maxValue: number | undefined;
|
|
11
|
-
};
|
|
12
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
surfaceId: Types.SurfaceID | null;
|
|
4
|
-
surface: Types.Surface | null;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
surfaceId: Types.SurfaceID | null;
|
|
4
|
-
component: Types.TabsNode;
|
|
5
|
-
weight: string | number;
|
|
6
|
-
tabs: Types.ResolvedTabItem[];
|
|
7
|
-
};
|
|
8
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: Types.TextNode;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
text: Primitives.StringValue | null;
|
|
8
|
-
usageHint: Types.ResolvedText['usageHint'] | null;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: Types.TextFieldNode;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
text: Primitives.StringValue | null;
|
|
8
|
-
label: Primitives.StringValue | null;
|
|
9
|
-
textFieldType: Types.ResolvedTextField['type'] | null;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: Types.VideoNode;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
url: Primitives.StringValue | null;
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
export default _default;
|
package/dist/a2ui/config.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InjectionKey } from 'vue';
|
|
2
|
-
import { Catalog } from './rendering/catalog';
|
|
3
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
4
|
-
export interface A2UIConfig {
|
|
5
|
-
catalog: Catalog;
|
|
6
|
-
theme: Types.Theme;
|
|
7
|
-
}
|
|
8
|
-
export declare const A2UI_CONFIG_KEY: InjectionKey<A2UIConfig>;
|
|
9
|
-
export declare function provideA2UI(config: A2UIConfig): void;
|
|
10
|
-
export declare function useA2UIConfig(): A2UIConfig;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare class MarkdownRenderer {
|
|
2
|
-
private originalClassMap;
|
|
3
|
-
private markdownIt;
|
|
4
|
-
render(value: string, tagClassMap?: Record<string, string[]>): string;
|
|
5
|
-
private applyTagClassMap;
|
|
6
|
-
private unapplyTagClassMap;
|
|
7
|
-
}
|
|
8
|
-
export declare function useMarkdownRenderer(): MarkdownRenderer;
|
|
9
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { A2uiMessageProcessor } from '@a2ui/web_core';
|
|
2
|
-
import { InjectionKey } from 'vue';
|
|
3
|
-
import * as Types from '@a2ui/web_core';
|
|
4
|
-
export interface DispatchedEvent {
|
|
5
|
-
message: Types.A2UIClientEventMessage;
|
|
6
|
-
resolve: (messages: Types.ServerToClientMessage[]) => void;
|
|
7
|
-
reject: (error: Error) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare class MessageProcessor extends A2uiMessageProcessor {
|
|
10
|
-
private eventHandlers;
|
|
11
|
-
constructor();
|
|
12
|
-
setData(node: Types.AnyComponentNode, relativePath: string, value: Types.DataValue, surfaceId?: Types.SurfaceID | null): void;
|
|
13
|
-
dispatch(message: Types.A2UIClientEventMessage): Promise<Types.ServerToClientMessage[]>;
|
|
14
|
-
onEvent(handler: (event: DispatchedEvent) => void): () => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const MESSAGE_PROCESSOR_KEY: InjectionKey<MessageProcessor>;
|
|
17
|
-
export declare function useMessageProcessor(): MessageProcessor;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
export interface A2TextPayload {
|
|
3
|
-
kind: 'text';
|
|
4
|
-
text: string;
|
|
5
|
-
}
|
|
6
|
-
export interface A2DataPayload {
|
|
7
|
-
kind: 'data';
|
|
8
|
-
data: Types.ServerToClientMessage;
|
|
9
|
-
}
|
|
10
|
-
export type A2AServerPayload = Array<A2DataPayload | A2TextPayload> | {
|
|
11
|
-
error: string;
|
|
12
|
-
};
|
package/dist/a2ui/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { provideA2UI, useA2UIConfig } from './config';
|
|
2
|
-
export { useMessageProcessor, MessageProcessor } from './data/processor';
|
|
3
|
-
export { useMarkdownRenderer } from './data/markdown';
|
|
4
|
-
export type { A2AServerPayload, A2TextPayload, A2DataPayload } from './data/types';
|
|
5
|
-
export { default as A2UiRenderer } from './rendering/A2UIRenderer.vue';
|
|
6
|
-
export { useDynamicComponent } from './rendering/useDynamicComponent';
|
|
7
|
-
export type { Catalog, CatalogEntry } from './rendering/catalog';
|
|
8
|
-
export { DEFAULT_CATALOG } from './catalog/default';
|
|
9
|
-
export { default as A2UISurface } from './catalog/A2UISurface.vue';
|
|
10
|
-
export { theme as defaultTheme } from './theme';
|
|
11
|
-
export type * as A2UITypes from '@a2ui/web_core/types/types';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
surfaceId: Types.SurfaceID;
|
|
4
|
-
component: Types.AnyComponentNode;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component, DefineComponent } from 'vue';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
export type CatalogLoader = () => Promise<Component | DefineComponent<any, any, any>> | Component | DefineComponent<any, any, any>;
|
|
4
|
-
export type CatalogEntry<T extends Types.AnyComponentNode = Types.AnyComponentNode> = CatalogLoader | {
|
|
5
|
-
type: CatalogLoader;
|
|
6
|
-
props: (data: T) => Record<string, any>;
|
|
7
|
-
};
|
|
8
|
-
export interface Catalog {
|
|
9
|
-
[key: string]: CatalogEntry<Types.AnyComponentNode>;
|
|
10
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as Primitives from '@a2ui/web_core/types/primitives';
|
|
2
|
-
import * as Types from '@a2ui/web_core/types/types';
|
|
3
|
-
export declare function useDynamicComponent<T extends Types.AnyComponentNode = Types.AnyComponentNode>(props: {
|
|
4
|
-
surfaceId: Types.SurfaceID | null;
|
|
5
|
-
component: T;
|
|
6
|
-
weight: string | number;
|
|
7
|
-
}): {
|
|
8
|
-
theme: Types.Theme;
|
|
9
|
-
processor: any;
|
|
10
|
-
sendAction: (action: Types.Action) => Promise<Types.ServerToClientMessage[]>;
|
|
11
|
-
resolvePrimitive: {
|
|
12
|
-
(value: Primitives.StringValue | null): string | null;
|
|
13
|
-
(value: Primitives.BooleanValue | null): boolean | null;
|
|
14
|
-
(value: Primitives.NumberValue | null): number | null;
|
|
15
|
-
};
|
|
16
|
-
getUniqueId: (prefix: string) => string;
|
|
17
|
-
setData: (node: Types.AnyComponentNode, relativePath: string, value: Types.DataValue, surfaceId?: Types.SurfaceID | null) => void;
|
|
18
|
-
};
|
package/dist/a2ui/theme.d.ts
DELETED