@zhama/a2ui 0.10.4 → 0.11.0
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 +179 -70
- package/dist/{a2ui-CnaCcq4c.d.ts → a2ui-CZYqbeoz.d.ts} +2 -1
- package/dist/{a2ui-vyxwZCoa.d.cts → a2ui-Dpl-E-Do.d.cts} +2 -1
- package/dist/context/index.cjs +702 -1
- package/dist/context/index.d.cts +35 -2
- package/dist/context/index.d.ts +35 -2
- package/dist/context/index.js +702 -1
- package/dist/data/index.cjs +2 -2
- package/dist/data/index.d.cts +3 -2
- package/dist/data/index.d.ts +3 -2
- package/dist/data/index.js +2 -2
- package/dist/events/index.d.cts +3 -2
- package/dist/events/index.d.ts +3 -2
- package/dist/index-BvhdLkQ7.d.ts +111 -0
- package/dist/{index-DCv59E9u.d.cts → index-CWQNUF1X.d.ts} +65 -20
- package/dist/index-Ccel8ysN.d.cts +111 -0
- package/dist/index-CfG_a073.d.cts +143 -0
- package/dist/{index-CEWReOmS.d.ts → index-DF2gGMk6.d.ts} +1 -1
- package/dist/index-DZnukf8z.d.ts +143 -0
- package/dist/{index-CfuPxsd1.d.cts → index-DfVLIScc.d.cts} +1 -1
- package/dist/{index-DKh6MRhF.d.cts → index-K0C1W74m.d.ts} +26 -15
- package/dist/{index-BJe-XUR4.d.ts → index-PGBpNFSS.d.cts} +26 -15
- package/dist/{index-BWAU7Xp2.d.ts → index-nNr2JOQb.d.cts} +65 -20
- package/dist/index.cjs +702 -2
- package/dist/index.d.cts +71 -8
- package/dist/index.d.ts +71 -8
- package/dist/index.js +702 -2
- package/dist/styles/index.cjs +702 -1
- package/dist/styles/index.d.cts +3 -2
- package/dist/styles/index.d.ts +3 -2
- package/dist/styles/index.js +702 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +1 -0
- package/dist/{types-CtrG7MJe.d.cts → types-Csi2jaoN.d.cts} +122 -178
- package/dist/{types-CtrG7MJe.d.ts → types-Csi2jaoN.d.ts} +122 -178
- package/dist/ui/index.cjs +2 -2
- package/dist/ui/index.d.cts +4 -3
- package/dist/ui/index.d.ts +4 -3
- package/dist/ui/index.js +2 -2
- package/package.json +3 -19
- package/dist/index-Bgqafemj.d.ts +0 -106
- package/dist/index-BltkjFKi.d.ts +0 -67
- package/dist/index-Bzqwwd1k.d.cts +0 -106
- package/dist/index-CLn74O53.d.cts +0 -67
- package/dist/styles/a2ui-variables.css +0 -106
- package/dist/styles/a2ui.css +0 -143
- package/tailwind.preset.js +0 -326
package/dist/data/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
exports.A2uiMessageProcessor=C;exports.createMessageProcessor=X;exports.isAnyComponentNode=
|
|
1
|
+
'use strict';var z=Object.defineProperty;var _=(e,t,r)=>t in e?z(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var y=(e,t,r)=>_(e,typeof t!="symbol"?t+"":t,r);function J(e){return d(e)}function D(e,t){return e==="path"&&typeof t=="string"}function d(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function I(e){return d(e)?"explicitList"in e||"template"in e:false}function v(e){return !!(typeof e=="string"||d(e)&&"path"in e&&typeof e.path=="string")}function W(e){return !!(typeof e=="number"||d(e)&&"path"in e&&typeof e.path=="string")}function q(e){return !!(typeof e=="boolean"||d(e)&&"path"in e&&typeof e.path=="string")}function h(e){return d(e)?"id"in e&&"type"in e&&"properties"in e:false}function M(e){return d(e)&&"url"in e&&v(e.url)}function x(e){return d(e)&&"child"in e&&h(e.child)&&"action"in e}function A(e){return d(e)?"child"in e?h(e.child):"children"in e?Array.isArray(e.children)&&e.children.every(h):false:false}function b(e){return d(e)&&"label"in e&&v(e.label)&&"value"in e&&q(e.value)}function S(e){return d(e)&&"children"in e&&Array.isArray(e.children)&&e.children.every(h)}function k(e){return d(e)&&"value"in e&&v(e.value)}function V(e){return d(e)}function T(e){return d(e)&&"url"in e&&v(e.url)}function $(e){return d(e)&&"name"in e&&v(e.name)}function P(e){return d(e)&&"children"in e&&Array.isArray(e.children)&&e.children.every(h)}function E(e){return d(e)&&"entryPointChild"in e&&h(e.entryPointChild)&&"contentChild"in e&&h(e.contentChild)}function O(e){return d(e)&&"selections"in e}function j(e){return d(e)&&"children"in e&&Array.isArray(e.children)&&e.children.every(h)}function B(e){return d(e)&&"value"in e&&W(e.value)}function G(e){return d(e)&&"title"in e&&v(e.title)&&"child"in e&&h(e.child)}function U(e){return d(e)&&"tabItems"in e&&Array.isArray(e.tabItems)&&e.tabItems.every(G)}function N(e){return d(e)&&"text"in e&&v(e.text)}function F(e){return d(e)&&"label"in e&&v(e.label)}function L(e){return d(e)&&"url"in e&&v(e.url)}var m=class m{constructor(t={}){y(this,"mapCtor",Map);y(this,"arrayCtor",Array);y(this,"setCtor",Set);y(this,"objCtor",Object);y(this,"surfaces");this.arrayCtor=t.arrayCtor??Array,this.mapCtor=t.mapCtor??Map,this.setCtor=t.setCtor??Set,this.objCtor=t.objCtor??Object,this.surfaces=new this.mapCtor;}getSurfaces(){return this.surfaces}clearSurfaces(){this.surfaces.clear();}processMessages(t){console.log("[A2UI] processMessages called with",t.length,"messages");for(let r of t)"createSurface"in r?this.handleCreateSurface(r):"updateComponents"in r?this.handleUpdateComponents(r):"updateDataModel"in r?this.handleUpdateDataModel(r):"deleteSurface"in r?this.handleDeleteSurface(r):console.warn("[A2UI] Unknown message type:",Object.keys(r));}getData(t,r,a=m.DEFAULT_SURFACE_ID){let n=this.getOrCreateSurface(a);if(!n)return console.warn("[A2UI] getData: surface not found:",a),null;let o;return r==="."||r===""?o=t.dataContextPath??"/":o=this.resolvePath(r,t.dataContextPath),this.getDataByPath(n.dataModel,o)}setData(t,r,a,n=m.DEFAULT_SURFACE_ID){if(!t){console.warn("No component node set");return}let o=this.getOrCreateSurface(n);if(!o)return;let l;r==="."||r===""?l=t.dataContextPath??"/":l=this.resolvePath(r,t.dataContextPath),this.setDataByPath(o.dataModel,l,a);}resolvePath(t,r){return t.startsWith("/")?t:r&&r!=="/"?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:`/${t}`}handleCreateSurface(t){let{createSurface:r}=t,a=r.surfaceId,n=this.getOrCreateSurface(a);n.catalogId=r.catalogId;}handleUpdateComponents(t){let{updateComponents:r}=t,a=r.surfaceId,n=this.getOrCreateSurface(a);for(let o of r.components)n.components.set(o.id,o),n.rootComponentId||(n.rootComponentId=o.id);this.rebuildComponentTree(n);}handleUpdateDataModel(t){let{updateDataModel:r}=t,a=r.surfaceId,n=this.getOrCreateSurface(a),o=r.path??"/",l=r.op??"replace",u=r.value;l==="remove"?this.removeDataByPath(n.dataModel,o):u!==void 0&&this.setDataByPath(n.dataModel,o,u),this.rebuildComponentTree(n);}handleDeleteSurface(t){let{deleteSurface:r}=t;this.surfaces.delete(r.surfaceId);}setDataByPath(t,r,a){let n=this.normalizePath(r).split("/").filter(u=>u);if(n.length===0){if(d(a)&&!(a instanceof Map)){t.clear();for(let[u,c]of Object.entries(a))t.set(u,c);}return}let o=t;for(let u=0;u<n.length-1;u++){let c=n[u],i;if(o instanceof Map?i=o.get(c):Array.isArray(o)&&/^\d+$/.test(c)&&(i=o[parseInt(c,10)]),i===void 0||typeof i!="object"||i===null){let f=new this.mapCtor;o instanceof Map?o.set(c,f):Array.isArray(o)&&(o[parseInt(c,10)]=f),i=f;}o=i;}let l=n[n.length-1];o instanceof Map?o.set(l,a):Array.isArray(o)&&/^\d+$/.test(l)&&(o[parseInt(l,10)]=a);}removeDataByPath(t,r){let a=this.normalizePath(r).split("/").filter(l=>l);if(a.length===0){t.clear();return}let n=t;for(let l=0;l<a.length-1;l++){let u=a[l],c;if(n instanceof Map?c=n.get(u):Array.isArray(n)&&/^\d+$/.test(u)&&(c=n[parseInt(u,10)]),c===void 0||typeof c!="object"||c===null)return;n=c;}let o=a[a.length-1];n instanceof Map&&n.delete(o);}normalizePath(t){return "/"+t.replace(/\[(\d+)\]/g,".$1").split(".").filter(n=>n.length>0).join("/")}getDataByPath(t,r){let a=this.normalizePath(r).split("/").filter(o=>o),n=t;for(let o of a){if(n==null)return null;if(n instanceof Map)n=n.get(o);else if(Array.isArray(n)&&/^\d+$/.test(o))n=n[parseInt(o,10)];else if(d(n))n=n[o];else return null}return n??null}getOrCreateSurface(t){let r=this.surfaces.get(t);return r||(r={rootComponentId:null,componentTree:null,dataModel:new this.mapCtor,components:new this.mapCtor,styles:{}},this.surfaces.set(t,r)),r}rebuildComponentTree(t){if(!t.rootComponentId){t.componentTree=null;return}let r=new this.setCtor;t.componentTree=this.buildNodeRecursive(t.rootComponentId,t,r,"/","");}buildNodeRecursive(t,r,a,n,o=""){let l=`${t}${o}`,{components:u}=r;if(!u.has(t))return null;if(a.has(l))throw new Error(`Circular dependency for component "${l}".`);a.add(l);let c=u.get(t),i=c.component,f={...c};delete f.id,delete f.component;let s={};for(let[R,w]of Object.entries(f))s[R]=this.resolvePropertyValue(w,r,a,n,o);a.delete(l);let g=c.weight,p={id:l,dataContextPath:n,weight:typeof g=="number"||typeof g=="string"?g:void 0};switch(i){case "Text":if(!N(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Text",properties:s};case "Image":if(!T(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Image",properties:s};case "Icon":if(!$(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Icon",properties:s};case "Video":if(!L(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Video",properties:s};case "AudioPlayer":if(!M(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"AudioPlayer",properties:s};case "Row":if(!j(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Row",properties:s};case "Column":if(!S(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Column",properties:s};case "List":if(!P(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"List",properties:s};case "Card":if(!A(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Card",properties:s};case "Tabs":if(!U(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Tabs",properties:s};case "Divider":if(!V(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Divider",properties:s};case "Modal":if(!E(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Modal",properties:s};case "Button":if(!x(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Button",properties:s};case "CheckBox":if(!b(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"CheckBox",properties:s};case "TextField":if(!F(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"TextField",properties:s};case "DateTimeInput":if(!k(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"DateTimeInput",properties:s};case "MultipleChoice":if(!O(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"MultipleChoice",properties:s};case "Slider":if(!B(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Slider",properties:s};default:return {...p,type:i,properties:s}}}resolvePropertyValue(t,r,a,n,o=""){if(typeof t=="string"&&r.components.has(t))return this.buildNodeRecursive(t,r,a,n,o);if(I(t)){if(t.explicitList)return t.explicitList.map(l=>this.buildNodeRecursive(l,r,a,n,o));if(t.template){let l=this.resolvePath(t.template.dataBinding,n),u=this.getDataByPath(r.dataModel,l),c=t.template;return Array.isArray(u)?u.map((i,f)=>{let p=`:${[...n.split("/").filter(w=>/^\d+$/.test(w)),f].join(":")}`,R=`${l}/${f}`;return this.buildNodeRecursive(c.componentId,r,a,R,p)}):u instanceof Map?Array.from(u.keys(),i=>{let f=`:${i}`,s=`${l}/${i}`;return this.buildNodeRecursive(c.componentId,r,a,s,f)}):[]}}if(Array.isArray(t))return t.map(l=>this.resolvePropertyValue(l,r,a,n,o));if(d(t)){let l={};for(let[u,c]of Object.entries(t)){let i=c;if(D(u,c)&&n!=="/"){i=c.replace(/^\.?\/item/,"").replace(/^\.?\/text/,"").replace(/^\.?\/label/,"").replace(/^\.?\//,""),l[u]=i;continue}l[u]=this.resolvePropertyValue(i,r,a,n,o);}return l}return t}};y(m,"DEFAULT_SURFACE_ID","@default");var C=m;function X(){return new C}
|
|
2
|
+
exports.A2uiMessageProcessor=C;exports.createMessageProcessor=X;exports.isAnyComponentNode=h;exports.isBooleanValue=q;exports.isComponentArrayReference=I;exports.isNumberValue=W;exports.isObject=d;exports.isPath=D;exports.isResolvedAudioPlayer=M;exports.isResolvedButton=x;exports.isResolvedCard=A;exports.isResolvedCheckbox=b;exports.isResolvedColumn=S;exports.isResolvedDateTimeInput=k;exports.isResolvedDivider=V;exports.isResolvedIcon=$;exports.isResolvedImage=T;exports.isResolvedList=P;exports.isResolvedModal=E;exports.isResolvedMultipleChoice=O;exports.isResolvedRow=j;exports.isResolvedSlider=B;exports.isResolvedTabItem=G;exports.isResolvedTabs=U;exports.isResolvedText=N;exports.isResolvedTextField=F;exports.isResolvedVideo=L;exports.isStringValue=v;exports.isValueMap=J;
|
package/dist/data/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { A as A2uiMessageProcessor, c as createMessageProcessor, j as isAnyComponentNode, h as isBooleanValue, e as isComponentArrayReference, g as isNumberValue, d as isObject, b as isPath, k as isResolvedAudioPlayer, l as isResolvedButton, m as isResolvedCard, n as isResolvedCheckbox, o as isResolvedColumn, p as isResolvedDateTimeInput, q as isResolvedDivider, s as isResolvedIcon, r as isResolvedImage, t as isResolvedList, u as isResolvedModal, v as isResolvedMultipleChoice, w as isResolvedRow, x as isResolvedSlider, y as isResolvedTabItem, z as isResolvedTabs, B as isResolvedText, C as isResolvedTextField, D as isResolvedVideo, f as isStringValue, a as isValueMap } from '../index-
|
|
2
|
-
import '
|
|
1
|
+
export { A as A2uiMessageProcessor, c as createMessageProcessor, j as isAnyComponentNode, h as isBooleanValue, e as isComponentArrayReference, g as isNumberValue, d as isObject, b as isPath, k as isResolvedAudioPlayer, l as isResolvedButton, m as isResolvedCard, n as isResolvedCheckbox, o as isResolvedColumn, p as isResolvedDateTimeInput, q as isResolvedDivider, s as isResolvedIcon, r as isResolvedImage, t as isResolvedList, u as isResolvedModal, v as isResolvedMultipleChoice, w as isResolvedRow, x as isResolvedSlider, y as isResolvedTabItem, z as isResolvedTabs, B as isResolvedText, C as isResolvedTextField, D as isResolvedVideo, f as isStringValue, a as isValueMap } from '../index-PGBpNFSS.cjs';
|
|
2
|
+
import '@zhama/a2ui-core';
|
|
3
|
+
import '../types-Csi2jaoN.cjs';
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { A as A2uiMessageProcessor, c as createMessageProcessor, j as isAnyComponentNode, h as isBooleanValue, e as isComponentArrayReference, g as isNumberValue, d as isObject, b as isPath, k as isResolvedAudioPlayer, l as isResolvedButton, m as isResolvedCard, n as isResolvedCheckbox, o as isResolvedColumn, p as isResolvedDateTimeInput, q as isResolvedDivider, s as isResolvedIcon, r as isResolvedImage, t as isResolvedList, u as isResolvedModal, v as isResolvedMultipleChoice, w as isResolvedRow, x as isResolvedSlider, y as isResolvedTabItem, z as isResolvedTabs, B as isResolvedText, C as isResolvedTextField, D as isResolvedVideo, f as isStringValue, a as isValueMap } from '../index-
|
|
2
|
-
import '
|
|
1
|
+
export { A as A2uiMessageProcessor, c as createMessageProcessor, j as isAnyComponentNode, h as isBooleanValue, e as isComponentArrayReference, g as isNumberValue, d as isObject, b as isPath, k as isResolvedAudioPlayer, l as isResolvedButton, m as isResolvedCard, n as isResolvedCheckbox, o as isResolvedColumn, p as isResolvedDateTimeInput, q as isResolvedDivider, s as isResolvedIcon, r as isResolvedImage, t as isResolvedList, u as isResolvedModal, v as isResolvedMultipleChoice, w as isResolvedRow, x as isResolvedSlider, y as isResolvedTabItem, z as isResolvedTabs, B as isResolvedText, C as isResolvedTextField, D as isResolvedVideo, f as isStringValue, a as isValueMap } from '../index-K0C1W74m.js';
|
|
2
|
+
import '@zhama/a2ui-core';
|
|
3
|
+
import '../types-Csi2jaoN.js';
|
package/dist/data/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
export{C as A2uiMessageProcessor,X as createMessageProcessor,
|
|
1
|
+
var z=Object.defineProperty;var _=(e,t,r)=>t in e?z(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r;var y=(e,t,r)=>_(e,typeof t!="symbol"?t+"":t,r);function J(e){return d(e)}function D(e,t){return e==="path"&&typeof t=="string"}function d(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function I(e){return d(e)?"explicitList"in e||"template"in e:false}function v(e){return !!(typeof e=="string"||d(e)&&"path"in e&&typeof e.path=="string")}function W(e){return !!(typeof e=="number"||d(e)&&"path"in e&&typeof e.path=="string")}function q(e){return !!(typeof e=="boolean"||d(e)&&"path"in e&&typeof e.path=="string")}function h(e){return d(e)?"id"in e&&"type"in e&&"properties"in e:false}function M(e){return d(e)&&"url"in e&&v(e.url)}function x(e){return d(e)&&"child"in e&&h(e.child)&&"action"in e}function A(e){return d(e)?"child"in e?h(e.child):"children"in e?Array.isArray(e.children)&&e.children.every(h):false:false}function b(e){return d(e)&&"label"in e&&v(e.label)&&"value"in e&&q(e.value)}function S(e){return d(e)&&"children"in e&&Array.isArray(e.children)&&e.children.every(h)}function k(e){return d(e)&&"value"in e&&v(e.value)}function V(e){return d(e)}function T(e){return d(e)&&"url"in e&&v(e.url)}function $(e){return d(e)&&"name"in e&&v(e.name)}function P(e){return d(e)&&"children"in e&&Array.isArray(e.children)&&e.children.every(h)}function E(e){return d(e)&&"entryPointChild"in e&&h(e.entryPointChild)&&"contentChild"in e&&h(e.contentChild)}function O(e){return d(e)&&"selections"in e}function j(e){return d(e)&&"children"in e&&Array.isArray(e.children)&&e.children.every(h)}function B(e){return d(e)&&"value"in e&&W(e.value)}function G(e){return d(e)&&"title"in e&&v(e.title)&&"child"in e&&h(e.child)}function U(e){return d(e)&&"tabItems"in e&&Array.isArray(e.tabItems)&&e.tabItems.every(G)}function N(e){return d(e)&&"text"in e&&v(e.text)}function F(e){return d(e)&&"label"in e&&v(e.label)}function L(e){return d(e)&&"url"in e&&v(e.url)}var m=class m{constructor(t={}){y(this,"mapCtor",Map);y(this,"arrayCtor",Array);y(this,"setCtor",Set);y(this,"objCtor",Object);y(this,"surfaces");this.arrayCtor=t.arrayCtor??Array,this.mapCtor=t.mapCtor??Map,this.setCtor=t.setCtor??Set,this.objCtor=t.objCtor??Object,this.surfaces=new this.mapCtor;}getSurfaces(){return this.surfaces}clearSurfaces(){this.surfaces.clear();}processMessages(t){console.log("[A2UI] processMessages called with",t.length,"messages");for(let r of t)"createSurface"in r?this.handleCreateSurface(r):"updateComponents"in r?this.handleUpdateComponents(r):"updateDataModel"in r?this.handleUpdateDataModel(r):"deleteSurface"in r?this.handleDeleteSurface(r):console.warn("[A2UI] Unknown message type:",Object.keys(r));}getData(t,r,a=m.DEFAULT_SURFACE_ID){let n=this.getOrCreateSurface(a);if(!n)return console.warn("[A2UI] getData: surface not found:",a),null;let o;return r==="."||r===""?o=t.dataContextPath??"/":o=this.resolvePath(r,t.dataContextPath),this.getDataByPath(n.dataModel,o)}setData(t,r,a,n=m.DEFAULT_SURFACE_ID){if(!t){console.warn("No component node set");return}let o=this.getOrCreateSurface(n);if(!o)return;let l;r==="."||r===""?l=t.dataContextPath??"/":l=this.resolvePath(r,t.dataContextPath),this.setDataByPath(o.dataModel,l,a);}resolvePath(t,r){return t.startsWith("/")?t:r&&r!=="/"?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:`/${t}`}handleCreateSurface(t){let{createSurface:r}=t,a=r.surfaceId,n=this.getOrCreateSurface(a);n.catalogId=r.catalogId;}handleUpdateComponents(t){let{updateComponents:r}=t,a=r.surfaceId,n=this.getOrCreateSurface(a);for(let o of r.components)n.components.set(o.id,o),n.rootComponentId||(n.rootComponentId=o.id);this.rebuildComponentTree(n);}handleUpdateDataModel(t){let{updateDataModel:r}=t,a=r.surfaceId,n=this.getOrCreateSurface(a),o=r.path??"/",l=r.op??"replace",u=r.value;l==="remove"?this.removeDataByPath(n.dataModel,o):u!==void 0&&this.setDataByPath(n.dataModel,o,u),this.rebuildComponentTree(n);}handleDeleteSurface(t){let{deleteSurface:r}=t;this.surfaces.delete(r.surfaceId);}setDataByPath(t,r,a){let n=this.normalizePath(r).split("/").filter(u=>u);if(n.length===0){if(d(a)&&!(a instanceof Map)){t.clear();for(let[u,c]of Object.entries(a))t.set(u,c);}return}let o=t;for(let u=0;u<n.length-1;u++){let c=n[u],i;if(o instanceof Map?i=o.get(c):Array.isArray(o)&&/^\d+$/.test(c)&&(i=o[parseInt(c,10)]),i===void 0||typeof i!="object"||i===null){let f=new this.mapCtor;o instanceof Map?o.set(c,f):Array.isArray(o)&&(o[parseInt(c,10)]=f),i=f;}o=i;}let l=n[n.length-1];o instanceof Map?o.set(l,a):Array.isArray(o)&&/^\d+$/.test(l)&&(o[parseInt(l,10)]=a);}removeDataByPath(t,r){let a=this.normalizePath(r).split("/").filter(l=>l);if(a.length===0){t.clear();return}let n=t;for(let l=0;l<a.length-1;l++){let u=a[l],c;if(n instanceof Map?c=n.get(u):Array.isArray(n)&&/^\d+$/.test(u)&&(c=n[parseInt(u,10)]),c===void 0||typeof c!="object"||c===null)return;n=c;}let o=a[a.length-1];n instanceof Map&&n.delete(o);}normalizePath(t){return "/"+t.replace(/\[(\d+)\]/g,".$1").split(".").filter(n=>n.length>0).join("/")}getDataByPath(t,r){let a=this.normalizePath(r).split("/").filter(o=>o),n=t;for(let o of a){if(n==null)return null;if(n instanceof Map)n=n.get(o);else if(Array.isArray(n)&&/^\d+$/.test(o))n=n[parseInt(o,10)];else if(d(n))n=n[o];else return null}return n??null}getOrCreateSurface(t){let r=this.surfaces.get(t);return r||(r={rootComponentId:null,componentTree:null,dataModel:new this.mapCtor,components:new this.mapCtor,styles:{}},this.surfaces.set(t,r)),r}rebuildComponentTree(t){if(!t.rootComponentId){t.componentTree=null;return}let r=new this.setCtor;t.componentTree=this.buildNodeRecursive(t.rootComponentId,t,r,"/","");}buildNodeRecursive(t,r,a,n,o=""){let l=`${t}${o}`,{components:u}=r;if(!u.has(t))return null;if(a.has(l))throw new Error(`Circular dependency for component "${l}".`);a.add(l);let c=u.get(t),i=c.component,f={...c};delete f.id,delete f.component;let s={};for(let[R,w]of Object.entries(f))s[R]=this.resolvePropertyValue(w,r,a,n,o);a.delete(l);let g=c.weight,p={id:l,dataContextPath:n,weight:typeof g=="number"||typeof g=="string"?g:void 0};switch(i){case "Text":if(!N(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Text",properties:s};case "Image":if(!T(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Image",properties:s};case "Icon":if(!$(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Icon",properties:s};case "Video":if(!L(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Video",properties:s};case "AudioPlayer":if(!M(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"AudioPlayer",properties:s};case "Row":if(!j(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Row",properties:s};case "Column":if(!S(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Column",properties:s};case "List":if(!P(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"List",properties:s};case "Card":if(!A(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Card",properties:s};case "Tabs":if(!U(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Tabs",properties:s};case "Divider":if(!V(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Divider",properties:s};case "Modal":if(!E(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Modal",properties:s};case "Button":if(!x(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Button",properties:s};case "CheckBox":if(!b(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"CheckBox",properties:s};case "TextField":if(!F(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"TextField",properties:s};case "DateTimeInput":if(!k(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"DateTimeInput",properties:s};case "MultipleChoice":if(!O(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"MultipleChoice",properties:s};case "Slider":if(!B(s))throw new Error(`Invalid data; expected ${i}`);return {...p,type:"Slider",properties:s};default:return {...p,type:i,properties:s}}}resolvePropertyValue(t,r,a,n,o=""){if(typeof t=="string"&&r.components.has(t))return this.buildNodeRecursive(t,r,a,n,o);if(I(t)){if(t.explicitList)return t.explicitList.map(l=>this.buildNodeRecursive(l,r,a,n,o));if(t.template){let l=this.resolvePath(t.template.dataBinding,n),u=this.getDataByPath(r.dataModel,l),c=t.template;return Array.isArray(u)?u.map((i,f)=>{let p=`:${[...n.split("/").filter(w=>/^\d+$/.test(w)),f].join(":")}`,R=`${l}/${f}`;return this.buildNodeRecursive(c.componentId,r,a,R,p)}):u instanceof Map?Array.from(u.keys(),i=>{let f=`:${i}`,s=`${l}/${i}`;return this.buildNodeRecursive(c.componentId,r,a,s,f)}):[]}}if(Array.isArray(t))return t.map(l=>this.resolvePropertyValue(l,r,a,n,o));if(d(t)){let l={};for(let[u,c]of Object.entries(t)){let i=c;if(D(u,c)&&n!=="/"){i=c.replace(/^\.?\/item/,"").replace(/^\.?\/text/,"").replace(/^\.?\/label/,"").replace(/^\.?\//,""),l[u]=i;continue}l[u]=this.resolvePropertyValue(i,r,a,n,o);}return l}return t}};y(m,"DEFAULT_SURFACE_ID","@default");var C=m;function X(){return new C}
|
|
2
|
+
export{C as A2uiMessageProcessor,X as createMessageProcessor,h as isAnyComponentNode,q as isBooleanValue,I as isComponentArrayReference,W as isNumberValue,d as isObject,D as isPath,M as isResolvedAudioPlayer,x as isResolvedButton,A as isResolvedCard,b as isResolvedCheckbox,S as isResolvedColumn,k as isResolvedDateTimeInput,V as isResolvedDivider,$ as isResolvedIcon,T as isResolvedImage,P as isResolvedList,E as isResolvedModal,O as isResolvedMultipleChoice,j as isResolvedRow,B as isResolvedSlider,G as isResolvedTabItem,U as isResolvedTabs,N as isResolvedText,F as isResolvedTextField,L as isResolvedVideo,v as isStringValue,J as isValueMap};
|
package/dist/events/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { A as A2UIAction, a as A2UIEventDetailMap, b as A2UIEventType, c as A2UI_EVENT_NAME, B as BaseEventDetail } from '../a2ui-
|
|
2
|
-
import '
|
|
1
|
+
export { A as A2UIAction, a as A2UIEventDetailMap, b as A2UIEventType, c as A2UI_EVENT_NAME, B as BaseEventDetail } from '../a2ui-Dpl-E-Do.cjs';
|
|
2
|
+
import '@zhama/a2ui-core';
|
|
3
|
+
import '../types-Csi2jaoN.cjs';
|
package/dist/events/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { A as A2UIAction, a as A2UIEventDetailMap, b as A2UIEventType, c as A2UI_EVENT_NAME, B as BaseEventDetail } from '../a2ui-
|
|
2
|
-
import '
|
|
1
|
+
export { A as A2UIAction, a as A2UIEventDetailMap, b as A2UIEventType, c as A2UI_EVENT_NAME, B as BaseEventDetail } from '../a2ui-CZYqbeoz.js';
|
|
2
|
+
import '@zhama/a2ui-core';
|
|
3
|
+
import '../types-Csi2jaoN.js';
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ClientToServerMessage, Theme, A2UI_EXTENSION_URI, A2UI_MIME_TYPE, Action, AnyComponent, AudioPlayerComponent, BooleanOrPath, ButtonComponent, CardComponent, CheckBoxComponent, ChildrenProperty, ChoicePickerComponent, ColumnComponent, ComponentInstance, ComponentType, CreateSurfaceMessage, DataArray, DataChangeEvent, DataObject, DataValue, DateTimeInputComponent, DeleteSurfaceMessage, DividerComponent, IconComponent, ImageComponent, ListComponent, ModalComponent, NumberOrPath, RowComponent, STANDARD_CATALOG_ID, ServerToClientMessageV09, SliderComponent, StringArrayOrPath, StringOrPath, TabsComponent, TextComponent, TextFieldComponent, UpdateComponentsMessage, UpdateDataModelMessage, UserActionEvent, VideoComponent, isV09Message } from '@zhama/a2ui-core';
|
|
2
|
+
import { A as AnyComponentNode, g as AudioPlayerNode, B as ButtonNode, j as CardNode, n as CheckboxNode, _ as ClientCapabilitiesDynamic, i as ColumnNode, a as ComponentArrayReference, C as ComponentArrayTemplate, b as ComponentProperties, r as CustomNode, X as CustomNodeProperties, D as DataMap, p as DateTimeInputNode, l as DividerNode, f as IconNode, I as ImageNode, L as ListNode, M as MessageProcessor, m as ModalNode, q as MultipleChoiceNode, d as ResolvedArray, w as ResolvedAudioPlayer, K as ResolvedButton, O as ResolvedCard, y as ResolvedCheckbox, J as ResolvedColumn, E as ResolvedDateTimeInput, x as ResolvedDivider, t as ResolvedIcon, u as ResolvedImage, N as ResolvedList, c as ResolvedMap, W as ResolvedModal, F as ResolvedMultipleChoice, H as ResolvedRow, G as ResolvedSlider, P as ResolvedTabItem, Q as ResolvedTabs, s as ResolvedText, z as ResolvedTextField, R as ResolvedValue, v as ResolvedVideo, h as RowNode, $ as ServerToClientMessage, S as SliderNode, Z as Surface, Y as SurfaceID, k as TabsNode, o as TextFieldNode, e as TextNode, T as Theme$1, U as UserAction, V as VideoNode } from './types-Csi2jaoN.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A2UI Types Module - v0.9 Protocol
|
|
6
|
+
*
|
|
7
|
+
* 类型分层:
|
|
8
|
+
* - 协议类型:从 @zhama/a2ui-core 重导出
|
|
9
|
+
* - 渲染器类型:本包特有的类型(组件节点、解析值等)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
declare const index_A2UI_EXTENSION_URI: typeof A2UI_EXTENSION_URI;
|
|
13
|
+
declare const index_A2UI_MIME_TYPE: typeof A2UI_MIME_TYPE;
|
|
14
|
+
declare const index_Action: typeof Action;
|
|
15
|
+
declare const index_AnyComponent: typeof AnyComponent;
|
|
16
|
+
declare const index_AnyComponentNode: typeof AnyComponentNode;
|
|
17
|
+
declare const index_AudioPlayerComponent: typeof AudioPlayerComponent;
|
|
18
|
+
declare const index_AudioPlayerNode: typeof AudioPlayerNode;
|
|
19
|
+
declare const index_BooleanOrPath: typeof BooleanOrPath;
|
|
20
|
+
declare const index_ButtonComponent: typeof ButtonComponent;
|
|
21
|
+
declare const index_ButtonNode: typeof ButtonNode;
|
|
22
|
+
declare const index_CardComponent: typeof CardComponent;
|
|
23
|
+
declare const index_CardNode: typeof CardNode;
|
|
24
|
+
declare const index_CheckBoxComponent: typeof CheckBoxComponent;
|
|
25
|
+
declare const index_CheckboxNode: typeof CheckboxNode;
|
|
26
|
+
declare const index_ChildrenProperty: typeof ChildrenProperty;
|
|
27
|
+
declare const index_ChoicePickerComponent: typeof ChoicePickerComponent;
|
|
28
|
+
declare const index_ClientCapabilitiesDynamic: typeof ClientCapabilitiesDynamic;
|
|
29
|
+
declare const index_ClientToServerMessage: typeof ClientToServerMessage;
|
|
30
|
+
declare const index_ColumnComponent: typeof ColumnComponent;
|
|
31
|
+
declare const index_ColumnNode: typeof ColumnNode;
|
|
32
|
+
declare const index_ComponentArrayReference: typeof ComponentArrayReference;
|
|
33
|
+
declare const index_ComponentArrayTemplate: typeof ComponentArrayTemplate;
|
|
34
|
+
declare const index_ComponentInstance: typeof ComponentInstance;
|
|
35
|
+
declare const index_ComponentProperties: typeof ComponentProperties;
|
|
36
|
+
declare const index_ComponentType: typeof ComponentType;
|
|
37
|
+
declare const index_CreateSurfaceMessage: typeof CreateSurfaceMessage;
|
|
38
|
+
declare const index_CustomNode: typeof CustomNode;
|
|
39
|
+
declare const index_CustomNodeProperties: typeof CustomNodeProperties;
|
|
40
|
+
declare const index_DataArray: typeof DataArray;
|
|
41
|
+
declare const index_DataChangeEvent: typeof DataChangeEvent;
|
|
42
|
+
declare const index_DataMap: typeof DataMap;
|
|
43
|
+
declare const index_DataObject: typeof DataObject;
|
|
44
|
+
declare const index_DataValue: typeof DataValue;
|
|
45
|
+
declare const index_DateTimeInputComponent: typeof DateTimeInputComponent;
|
|
46
|
+
declare const index_DateTimeInputNode: typeof DateTimeInputNode;
|
|
47
|
+
declare const index_DeleteSurfaceMessage: typeof DeleteSurfaceMessage;
|
|
48
|
+
declare const index_DividerComponent: typeof DividerComponent;
|
|
49
|
+
declare const index_DividerNode: typeof DividerNode;
|
|
50
|
+
declare const index_IconComponent: typeof IconComponent;
|
|
51
|
+
declare const index_IconNode: typeof IconNode;
|
|
52
|
+
declare const index_ImageComponent: typeof ImageComponent;
|
|
53
|
+
declare const index_ImageNode: typeof ImageNode;
|
|
54
|
+
declare const index_ListComponent: typeof ListComponent;
|
|
55
|
+
declare const index_ListNode: typeof ListNode;
|
|
56
|
+
declare const index_MessageProcessor: typeof MessageProcessor;
|
|
57
|
+
declare const index_ModalComponent: typeof ModalComponent;
|
|
58
|
+
declare const index_ModalNode: typeof ModalNode;
|
|
59
|
+
declare const index_MultipleChoiceNode: typeof MultipleChoiceNode;
|
|
60
|
+
declare const index_NumberOrPath: typeof NumberOrPath;
|
|
61
|
+
declare const index_ResolvedArray: typeof ResolvedArray;
|
|
62
|
+
declare const index_ResolvedAudioPlayer: typeof ResolvedAudioPlayer;
|
|
63
|
+
declare const index_ResolvedButton: typeof ResolvedButton;
|
|
64
|
+
declare const index_ResolvedCard: typeof ResolvedCard;
|
|
65
|
+
declare const index_ResolvedCheckbox: typeof ResolvedCheckbox;
|
|
66
|
+
declare const index_ResolvedColumn: typeof ResolvedColumn;
|
|
67
|
+
declare const index_ResolvedDateTimeInput: typeof ResolvedDateTimeInput;
|
|
68
|
+
declare const index_ResolvedDivider: typeof ResolvedDivider;
|
|
69
|
+
declare const index_ResolvedIcon: typeof ResolvedIcon;
|
|
70
|
+
declare const index_ResolvedImage: typeof ResolvedImage;
|
|
71
|
+
declare const index_ResolvedList: typeof ResolvedList;
|
|
72
|
+
declare const index_ResolvedMap: typeof ResolvedMap;
|
|
73
|
+
declare const index_ResolvedModal: typeof ResolvedModal;
|
|
74
|
+
declare const index_ResolvedMultipleChoice: typeof ResolvedMultipleChoice;
|
|
75
|
+
declare const index_ResolvedRow: typeof ResolvedRow;
|
|
76
|
+
declare const index_ResolvedSlider: typeof ResolvedSlider;
|
|
77
|
+
declare const index_ResolvedTabItem: typeof ResolvedTabItem;
|
|
78
|
+
declare const index_ResolvedTabs: typeof ResolvedTabs;
|
|
79
|
+
declare const index_ResolvedText: typeof ResolvedText;
|
|
80
|
+
declare const index_ResolvedTextField: typeof ResolvedTextField;
|
|
81
|
+
declare const index_ResolvedValue: typeof ResolvedValue;
|
|
82
|
+
declare const index_ResolvedVideo: typeof ResolvedVideo;
|
|
83
|
+
declare const index_RowComponent: typeof RowComponent;
|
|
84
|
+
declare const index_RowNode: typeof RowNode;
|
|
85
|
+
declare const index_STANDARD_CATALOG_ID: typeof STANDARD_CATALOG_ID;
|
|
86
|
+
declare const index_ServerToClientMessage: typeof ServerToClientMessage;
|
|
87
|
+
declare const index_ServerToClientMessageV09: typeof ServerToClientMessageV09;
|
|
88
|
+
declare const index_SliderComponent: typeof SliderComponent;
|
|
89
|
+
declare const index_SliderNode: typeof SliderNode;
|
|
90
|
+
declare const index_StringArrayOrPath: typeof StringArrayOrPath;
|
|
91
|
+
declare const index_StringOrPath: typeof StringOrPath;
|
|
92
|
+
declare const index_Surface: typeof Surface;
|
|
93
|
+
declare const index_SurfaceID: typeof SurfaceID;
|
|
94
|
+
declare const index_TabsComponent: typeof TabsComponent;
|
|
95
|
+
declare const index_TabsNode: typeof TabsNode;
|
|
96
|
+
declare const index_TextComponent: typeof TextComponent;
|
|
97
|
+
declare const index_TextFieldComponent: typeof TextFieldComponent;
|
|
98
|
+
declare const index_TextFieldNode: typeof TextFieldNode;
|
|
99
|
+
declare const index_TextNode: typeof TextNode;
|
|
100
|
+
declare const index_UpdateComponentsMessage: typeof UpdateComponentsMessage;
|
|
101
|
+
declare const index_UpdateDataModelMessage: typeof UpdateDataModelMessage;
|
|
102
|
+
declare const index_UserAction: typeof UserAction;
|
|
103
|
+
declare const index_UserActionEvent: typeof UserActionEvent;
|
|
104
|
+
declare const index_VideoComponent: typeof VideoComponent;
|
|
105
|
+
declare const index_VideoNode: typeof VideoNode;
|
|
106
|
+
declare const index_isV09Message: typeof isV09Message;
|
|
107
|
+
declare namespace index {
|
|
108
|
+
export { ClientToServerMessage as A2UIClientEventMessage, Theme as A2UITheme, index_A2UI_EXTENSION_URI as A2UI_EXTENSION_URI, index_A2UI_MIME_TYPE as A2UI_MIME_TYPE, index_Action as Action, index_AnyComponent as AnyComponent, index_AnyComponentNode as AnyComponentNode, AudioPlayerComponent as AudioPlayer, index_AudioPlayerComponent as AudioPlayerComponent, index_AudioPlayerNode as AudioPlayerNode, index_BooleanOrPath as BooleanOrPath, ButtonComponent as Button, index_ButtonComponent as ButtonComponent, index_ButtonNode as ButtonNode, index_CardComponent as CardComponent, index_CardNode as CardNode, index_CheckBoxComponent as CheckBoxComponent, CheckBoxComponent as Checkbox, index_CheckboxNode as CheckboxNode, index_ChildrenProperty as ChildrenProperty, index_ChoicePickerComponent as ChoicePickerComponent, index_ClientCapabilitiesDynamic as ClientCapabilitiesDynamic, index_ClientToServerMessage as ClientToServerMessage, index_ColumnComponent as ColumnComponent, index_ColumnNode as ColumnNode, index_ComponentArrayReference as ComponentArrayReference, index_ComponentArrayTemplate as ComponentArrayTemplate, index_ComponentInstance as ComponentInstance, index_ComponentProperties as ComponentProperties, index_ComponentType as ComponentType, index_CreateSurfaceMessage as CreateSurfaceMessage, index_CustomNode as CustomNode, index_CustomNodeProperties as CustomNodeProperties, index_DataArray as DataArray, index_DataChangeEvent as DataChangeEvent, index_DataMap as DataMap, index_DataObject as DataObject, index_DataValue as DataValue, DateTimeInputComponent as DateTimeInput, index_DateTimeInputComponent as DateTimeInputComponent, index_DateTimeInputNode as DateTimeInputNode, index_DeleteSurfaceMessage as DeleteSurfaceMessage, DividerComponent as Divider, index_DividerComponent as DividerComponent, index_DividerNode as DividerNode, IconComponent as Icon, index_IconComponent as IconComponent, index_IconNode as IconNode, ImageComponent as Image, index_ImageComponent as ImageComponent, index_ImageNode as ImageNode, index_ListComponent as ListComponent, index_ListNode as ListNode, index_MessageProcessor as MessageProcessor, ModalComponent as Modal, index_ModalComponent as ModalComponent, index_ModalNode as ModalNode, ChoicePickerComponent as MultipleChoice, index_MultipleChoiceNode as MultipleChoiceNode, index_NumberOrPath as NumberOrPath, index_ResolvedArray as ResolvedArray, index_ResolvedAudioPlayer as ResolvedAudioPlayer, index_ResolvedButton as ResolvedButton, index_ResolvedCard as ResolvedCard, index_ResolvedCheckbox as ResolvedCheckbox, index_ResolvedColumn as ResolvedColumn, index_ResolvedDateTimeInput as ResolvedDateTimeInput, index_ResolvedDivider as ResolvedDivider, index_ResolvedIcon as ResolvedIcon, index_ResolvedImage as ResolvedImage, index_ResolvedList as ResolvedList, index_ResolvedMap as ResolvedMap, index_ResolvedModal as ResolvedModal, index_ResolvedMultipleChoice as ResolvedMultipleChoice, index_ResolvedRow as ResolvedRow, index_ResolvedSlider as ResolvedSlider, index_ResolvedTabItem as ResolvedTabItem, index_ResolvedTabs as ResolvedTabs, index_ResolvedText as ResolvedText, index_ResolvedTextField as ResolvedTextField, index_ResolvedValue as ResolvedValue, index_ResolvedVideo as ResolvedVideo, index_RowComponent as RowComponent, index_RowNode as RowNode, index_STANDARD_CATALOG_ID as STANDARD_CATALOG_ID, index_ServerToClientMessage as ServerToClientMessage, index_ServerToClientMessageV09 as ServerToClientMessageV09, SliderComponent as Slider, index_SliderComponent as SliderComponent, index_SliderNode as SliderNode, index_StringArrayOrPath as StringArrayOrPath, index_StringOrPath as StringOrPath, index_Surface as Surface, index_SurfaceID as SurfaceID, TabsComponent as Tabs, index_TabsComponent as TabsComponent, index_TabsNode as TabsNode, TextComponent as Text, index_TextComponent as TextComponent, TextFieldComponent as TextField, index_TextFieldComponent as TextFieldComponent, index_TextFieldNode as TextFieldNode, index_TextNode as TextNode, Theme$1 as Theme, index_UpdateComponentsMessage as UpdateComponentsMessage, index_UpdateDataModelMessage as UpdateDataModelMessage, index_UserAction as UserAction, index_UserActionEvent as UserActionEvent, VideoComponent as Video, index_VideoComponent as VideoComponent, index_VideoNode as VideoNode, index_isV09Message as isV09Message };
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export { index as i };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { A as AnyComponentNode, M as MessageProcessor, Y as SurfaceID, s as ResolvedText, u as ResolvedImage, t as ResolvedIcon, v as ResolvedVideo, w as ResolvedAudioPlayer, K as ResolvedButton, H as ResolvedRow, J as ResolvedColumn, N as ResolvedList, x as ResolvedDivider, y as ResolvedCheckbox, z as ResolvedTextField, E as ResolvedDateTimeInput, F as ResolvedMultipleChoice, G as ResolvedSlider, Z as Surface$1 } from './types-Csi2jaoN.js';
|
|
3
3
|
import { ReactNode, ComponentType } from 'react';
|
|
4
|
-
import { A as A2UIAction } from './a2ui-
|
|
4
|
+
import { A as A2UIAction } from './a2ui-CZYqbeoz.js';
|
|
5
|
+
import * as _zhama_a2ui_core from '@zhama/a2ui-core';
|
|
6
|
+
import { StringOrPath, NumberOrPath } from '@zhama/a2ui-core';
|
|
5
7
|
|
|
6
8
|
interface TextProps {
|
|
7
9
|
component: AnyComponentNode;
|
|
@@ -97,9 +99,14 @@ interface ListProps {
|
|
|
97
99
|
processor: MessageProcessor | null;
|
|
98
100
|
surfaceId: SurfaceID | null;
|
|
99
101
|
direction?: ResolvedList['direction'];
|
|
102
|
+
/**
|
|
103
|
+
* 网格列数(仅在 direction='grid' 时生效)
|
|
104
|
+
* @default 2
|
|
105
|
+
*/
|
|
106
|
+
columns?: number;
|
|
100
107
|
children?: ReactNode;
|
|
101
108
|
}
|
|
102
|
-
declare function List({ direction, children }: ListProps): react_jsx_runtime.JSX.Element;
|
|
109
|
+
declare function List({ component, direction, columns, children }: ListProps): react_jsx_runtime.JSX.Element;
|
|
103
110
|
|
|
104
111
|
interface CardProps {
|
|
105
112
|
component: AnyComponentNode;
|
|
@@ -107,7 +114,9 @@ interface CardProps {
|
|
|
107
114
|
surfaceId: SurfaceID | null;
|
|
108
115
|
children?: ReactNode;
|
|
109
116
|
}
|
|
110
|
-
declare function Card({ children }: CardProps): react_jsx_runtime.JSX.Element;
|
|
117
|
+
declare function Card({ component, children }: CardProps): react_jsx_runtime.JSX.Element;
|
|
118
|
+
|
|
119
|
+
type StringValue = _zhama_a2ui_core.StringOrPath;
|
|
111
120
|
|
|
112
121
|
interface TabsProps {
|
|
113
122
|
component: AnyComponentNode;
|
|
@@ -152,10 +161,10 @@ interface TextFieldProps {
|
|
|
152
161
|
surfaceId: SurfaceID | null;
|
|
153
162
|
label: ResolvedTextField['label'];
|
|
154
163
|
text?: ResolvedTextField['text'];
|
|
155
|
-
|
|
164
|
+
usageHint?: ResolvedTextField['usageHint'];
|
|
156
165
|
validationRegexp?: ResolvedTextField['validationRegexp'];
|
|
157
166
|
}
|
|
158
|
-
declare function TextField({ component, processor, surfaceId, label, text,
|
|
167
|
+
declare function TextField({ component, processor, surfaceId, label, text, usageHint, }: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
159
168
|
|
|
160
169
|
interface DateTimeInputProps {
|
|
161
170
|
component: AnyComponentNode;
|
|
@@ -171,21 +180,23 @@ interface MultipleChoiceProps {
|
|
|
171
180
|
component: AnyComponentNode;
|
|
172
181
|
processor: MessageProcessor | null;
|
|
173
182
|
surfaceId: SurfaceID | null;
|
|
174
|
-
|
|
183
|
+
value?: ResolvedMultipleChoice['value'];
|
|
175
184
|
options?: ResolvedMultipleChoice['options'];
|
|
176
|
-
|
|
185
|
+
label?: ResolvedMultipleChoice['label'];
|
|
186
|
+
usageHint?: ResolvedMultipleChoice['usageHint'];
|
|
177
187
|
}
|
|
178
|
-
declare function MultipleChoice({ component, processor, surfaceId,
|
|
188
|
+
declare function MultipleChoice({ component, processor, surfaceId, value, options, label, }: MultipleChoiceProps): react_jsx_runtime.JSX.Element;
|
|
179
189
|
|
|
180
190
|
interface SliderProps {
|
|
181
191
|
component: AnyComponentNode;
|
|
182
192
|
processor: MessageProcessor | null;
|
|
183
193
|
surfaceId: SurfaceID | null;
|
|
184
194
|
value: ResolvedSlider['value'];
|
|
185
|
-
|
|
186
|
-
|
|
195
|
+
min?: ResolvedSlider['min'];
|
|
196
|
+
max?: ResolvedSlider['max'];
|
|
197
|
+
label?: ResolvedSlider['label'];
|
|
187
198
|
}
|
|
188
|
-
declare function Slider({ component, processor, surfaceId, value,
|
|
199
|
+
declare function Slider({ component, processor, surfaceId, value, min, max, }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
189
200
|
|
|
190
201
|
interface RootProps {
|
|
191
202
|
processor: MessageProcessor | null;
|
|
@@ -204,14 +215,48 @@ interface ComponentRendererProps {
|
|
|
204
215
|
}
|
|
205
216
|
declare function ComponentRenderer({ component, processor, surfaceId, enableCustomElements, onAction, }: ComponentRendererProps): ReactNode;
|
|
206
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Primary 色阶覆盖配置
|
|
220
|
+
* 用于自定义 A2UI 组件的主题色
|
|
221
|
+
*/
|
|
222
|
+
interface PrimaryColorScale {
|
|
223
|
+
'--p-5'?: string;
|
|
224
|
+
'--p-10'?: string;
|
|
225
|
+
'--p-15'?: string;
|
|
226
|
+
'--p-20'?: string;
|
|
227
|
+
'--p-25'?: string;
|
|
228
|
+
'--p-30'?: string;
|
|
229
|
+
'--p-35'?: string;
|
|
230
|
+
'--p-40'?: string;
|
|
231
|
+
'--p-50'?: string;
|
|
232
|
+
'--p-60'?: string;
|
|
233
|
+
'--p-70'?: string;
|
|
234
|
+
'--p-80'?: string;
|
|
235
|
+
'--p-90'?: string;
|
|
236
|
+
'--p-95'?: string;
|
|
237
|
+
}
|
|
207
238
|
interface SurfaceProps {
|
|
208
239
|
surfaceId: SurfaceID;
|
|
209
240
|
surface: Surface$1 | null;
|
|
210
241
|
processor: MessageProcessor | null;
|
|
211
242
|
enableCustomElements?: boolean;
|
|
212
243
|
onAction?: (event: A2UIAction) => void;
|
|
244
|
+
/**
|
|
245
|
+
* 主题色覆盖
|
|
246
|
+
* 传入 CSS 变量覆盖 A2UI 默认的 primary 色阶
|
|
247
|
+
* @example
|
|
248
|
+
* ```tsx
|
|
249
|
+
* <Surface
|
|
250
|
+
* themeColors={{
|
|
251
|
+
* '--p-35': 'oklch(72% 0.16 250)',
|
|
252
|
+
* '--p-50': 'oklch(63% 0.19 250)',
|
|
253
|
+
* }}
|
|
254
|
+
* />
|
|
255
|
+
* ```
|
|
256
|
+
*/
|
|
257
|
+
themeColors?: PrimaryColorScale;
|
|
213
258
|
}
|
|
214
|
-
declare function Surface({ surfaceId, surface, processor, enableCustomElements, onAction, }: SurfaceProps): react_jsx_runtime.JSX.Element | null;
|
|
259
|
+
declare function Surface({ surfaceId, surface, processor, enableCustomElements, onAction, themeColors, }: SurfaceProps): react_jsx_runtime.JSX.Element | null;
|
|
215
260
|
|
|
216
261
|
/**
|
|
217
262
|
* A2UI Component Registry
|
|
@@ -274,21 +319,21 @@ declare function Markdown({ children, className }: MarkdownProps): react_jsx_run
|
|
|
274
319
|
declare function renderMarkdown(value: string): ReactNode;
|
|
275
320
|
|
|
276
321
|
/**
|
|
277
|
-
* A2UI UI Utilities
|
|
322
|
+
* A2UI UI Utilities - v0.9 Protocol
|
|
278
323
|
*/
|
|
279
324
|
|
|
280
325
|
/**
|
|
281
|
-
* 从
|
|
326
|
+
* 从 StringOrPath 提取实际字符串值 (v0.9 格式)
|
|
282
327
|
*/
|
|
283
|
-
declare function extractStringValue(val:
|
|
328
|
+
declare function extractStringValue(val: StringOrPath | null, component: AnyComponentNode | null, processor: MessageProcessor | null, surfaceId: string | null): string;
|
|
284
329
|
/**
|
|
285
|
-
* 从
|
|
330
|
+
* 从 NumberOrPath 提取实际数字值 (v0.9 格式)
|
|
286
331
|
*/
|
|
287
|
-
declare function extractNumberValue(val:
|
|
332
|
+
declare function extractNumberValue(val: NumberOrPath | null, component: AnyComponentNode | null, processor: MessageProcessor | null, surfaceId: string | null): number;
|
|
288
333
|
/**
|
|
289
|
-
* 合并 className
|
|
334
|
+
* 合并 className(支持 string 和 Record<string, boolean>)
|
|
290
335
|
*/
|
|
291
|
-
declare function cn(...
|
|
336
|
+
declare function cn(...inputs: (string | Record<string, boolean> | undefined | null | false)[]): string;
|
|
292
337
|
|
|
293
338
|
/**
|
|
294
339
|
* A2UI UI Module
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ClientToServerMessage, Theme, A2UI_EXTENSION_URI, A2UI_MIME_TYPE, Action, AnyComponent, AudioPlayerComponent, BooleanOrPath, ButtonComponent, CardComponent, CheckBoxComponent, ChildrenProperty, ChoicePickerComponent, ColumnComponent, ComponentInstance, ComponentType, CreateSurfaceMessage, DataArray, DataChangeEvent, DataObject, DataValue, DateTimeInputComponent, DeleteSurfaceMessage, DividerComponent, IconComponent, ImageComponent, ListComponent, ModalComponent, NumberOrPath, RowComponent, STANDARD_CATALOG_ID, ServerToClientMessageV09, SliderComponent, StringArrayOrPath, StringOrPath, TabsComponent, TextComponent, TextFieldComponent, UpdateComponentsMessage, UpdateDataModelMessage, UserActionEvent, VideoComponent, isV09Message } from '@zhama/a2ui-core';
|
|
2
|
+
import { A as AnyComponentNode, g as AudioPlayerNode, B as ButtonNode, j as CardNode, n as CheckboxNode, _ as ClientCapabilitiesDynamic, i as ColumnNode, a as ComponentArrayReference, C as ComponentArrayTemplate, b as ComponentProperties, r as CustomNode, X as CustomNodeProperties, D as DataMap, p as DateTimeInputNode, l as DividerNode, f as IconNode, I as ImageNode, L as ListNode, M as MessageProcessor, m as ModalNode, q as MultipleChoiceNode, d as ResolvedArray, w as ResolvedAudioPlayer, K as ResolvedButton, O as ResolvedCard, y as ResolvedCheckbox, J as ResolvedColumn, E as ResolvedDateTimeInput, x as ResolvedDivider, t as ResolvedIcon, u as ResolvedImage, N as ResolvedList, c as ResolvedMap, W as ResolvedModal, F as ResolvedMultipleChoice, H as ResolvedRow, G as ResolvedSlider, P as ResolvedTabItem, Q as ResolvedTabs, s as ResolvedText, z as ResolvedTextField, R as ResolvedValue, v as ResolvedVideo, h as RowNode, $ as ServerToClientMessage, S as SliderNode, Z as Surface, Y as SurfaceID, k as TabsNode, o as TextFieldNode, e as TextNode, T as Theme$1, U as UserAction, V as VideoNode } from './types-Csi2jaoN.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A2UI Types Module - v0.9 Protocol
|
|
6
|
+
*
|
|
7
|
+
* 类型分层:
|
|
8
|
+
* - 协议类型:从 @zhama/a2ui-core 重导出
|
|
9
|
+
* - 渲染器类型:本包特有的类型(组件节点、解析值等)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
declare const index_A2UI_EXTENSION_URI: typeof A2UI_EXTENSION_URI;
|
|
13
|
+
declare const index_A2UI_MIME_TYPE: typeof A2UI_MIME_TYPE;
|
|
14
|
+
declare const index_Action: typeof Action;
|
|
15
|
+
declare const index_AnyComponent: typeof AnyComponent;
|
|
16
|
+
declare const index_AnyComponentNode: typeof AnyComponentNode;
|
|
17
|
+
declare const index_AudioPlayerComponent: typeof AudioPlayerComponent;
|
|
18
|
+
declare const index_AudioPlayerNode: typeof AudioPlayerNode;
|
|
19
|
+
declare const index_BooleanOrPath: typeof BooleanOrPath;
|
|
20
|
+
declare const index_ButtonComponent: typeof ButtonComponent;
|
|
21
|
+
declare const index_ButtonNode: typeof ButtonNode;
|
|
22
|
+
declare const index_CardComponent: typeof CardComponent;
|
|
23
|
+
declare const index_CardNode: typeof CardNode;
|
|
24
|
+
declare const index_CheckBoxComponent: typeof CheckBoxComponent;
|
|
25
|
+
declare const index_CheckboxNode: typeof CheckboxNode;
|
|
26
|
+
declare const index_ChildrenProperty: typeof ChildrenProperty;
|
|
27
|
+
declare const index_ChoicePickerComponent: typeof ChoicePickerComponent;
|
|
28
|
+
declare const index_ClientCapabilitiesDynamic: typeof ClientCapabilitiesDynamic;
|
|
29
|
+
declare const index_ClientToServerMessage: typeof ClientToServerMessage;
|
|
30
|
+
declare const index_ColumnComponent: typeof ColumnComponent;
|
|
31
|
+
declare const index_ColumnNode: typeof ColumnNode;
|
|
32
|
+
declare const index_ComponentArrayReference: typeof ComponentArrayReference;
|
|
33
|
+
declare const index_ComponentArrayTemplate: typeof ComponentArrayTemplate;
|
|
34
|
+
declare const index_ComponentInstance: typeof ComponentInstance;
|
|
35
|
+
declare const index_ComponentProperties: typeof ComponentProperties;
|
|
36
|
+
declare const index_ComponentType: typeof ComponentType;
|
|
37
|
+
declare const index_CreateSurfaceMessage: typeof CreateSurfaceMessage;
|
|
38
|
+
declare const index_CustomNode: typeof CustomNode;
|
|
39
|
+
declare const index_CustomNodeProperties: typeof CustomNodeProperties;
|
|
40
|
+
declare const index_DataArray: typeof DataArray;
|
|
41
|
+
declare const index_DataChangeEvent: typeof DataChangeEvent;
|
|
42
|
+
declare const index_DataMap: typeof DataMap;
|
|
43
|
+
declare const index_DataObject: typeof DataObject;
|
|
44
|
+
declare const index_DataValue: typeof DataValue;
|
|
45
|
+
declare const index_DateTimeInputComponent: typeof DateTimeInputComponent;
|
|
46
|
+
declare const index_DateTimeInputNode: typeof DateTimeInputNode;
|
|
47
|
+
declare const index_DeleteSurfaceMessage: typeof DeleteSurfaceMessage;
|
|
48
|
+
declare const index_DividerComponent: typeof DividerComponent;
|
|
49
|
+
declare const index_DividerNode: typeof DividerNode;
|
|
50
|
+
declare const index_IconComponent: typeof IconComponent;
|
|
51
|
+
declare const index_IconNode: typeof IconNode;
|
|
52
|
+
declare const index_ImageComponent: typeof ImageComponent;
|
|
53
|
+
declare const index_ImageNode: typeof ImageNode;
|
|
54
|
+
declare const index_ListComponent: typeof ListComponent;
|
|
55
|
+
declare const index_ListNode: typeof ListNode;
|
|
56
|
+
declare const index_MessageProcessor: typeof MessageProcessor;
|
|
57
|
+
declare const index_ModalComponent: typeof ModalComponent;
|
|
58
|
+
declare const index_ModalNode: typeof ModalNode;
|
|
59
|
+
declare const index_MultipleChoiceNode: typeof MultipleChoiceNode;
|
|
60
|
+
declare const index_NumberOrPath: typeof NumberOrPath;
|
|
61
|
+
declare const index_ResolvedArray: typeof ResolvedArray;
|
|
62
|
+
declare const index_ResolvedAudioPlayer: typeof ResolvedAudioPlayer;
|
|
63
|
+
declare const index_ResolvedButton: typeof ResolvedButton;
|
|
64
|
+
declare const index_ResolvedCard: typeof ResolvedCard;
|
|
65
|
+
declare const index_ResolvedCheckbox: typeof ResolvedCheckbox;
|
|
66
|
+
declare const index_ResolvedColumn: typeof ResolvedColumn;
|
|
67
|
+
declare const index_ResolvedDateTimeInput: typeof ResolvedDateTimeInput;
|
|
68
|
+
declare const index_ResolvedDivider: typeof ResolvedDivider;
|
|
69
|
+
declare const index_ResolvedIcon: typeof ResolvedIcon;
|
|
70
|
+
declare const index_ResolvedImage: typeof ResolvedImage;
|
|
71
|
+
declare const index_ResolvedList: typeof ResolvedList;
|
|
72
|
+
declare const index_ResolvedMap: typeof ResolvedMap;
|
|
73
|
+
declare const index_ResolvedModal: typeof ResolvedModal;
|
|
74
|
+
declare const index_ResolvedMultipleChoice: typeof ResolvedMultipleChoice;
|
|
75
|
+
declare const index_ResolvedRow: typeof ResolvedRow;
|
|
76
|
+
declare const index_ResolvedSlider: typeof ResolvedSlider;
|
|
77
|
+
declare const index_ResolvedTabItem: typeof ResolvedTabItem;
|
|
78
|
+
declare const index_ResolvedTabs: typeof ResolvedTabs;
|
|
79
|
+
declare const index_ResolvedText: typeof ResolvedText;
|
|
80
|
+
declare const index_ResolvedTextField: typeof ResolvedTextField;
|
|
81
|
+
declare const index_ResolvedValue: typeof ResolvedValue;
|
|
82
|
+
declare const index_ResolvedVideo: typeof ResolvedVideo;
|
|
83
|
+
declare const index_RowComponent: typeof RowComponent;
|
|
84
|
+
declare const index_RowNode: typeof RowNode;
|
|
85
|
+
declare const index_STANDARD_CATALOG_ID: typeof STANDARD_CATALOG_ID;
|
|
86
|
+
declare const index_ServerToClientMessage: typeof ServerToClientMessage;
|
|
87
|
+
declare const index_ServerToClientMessageV09: typeof ServerToClientMessageV09;
|
|
88
|
+
declare const index_SliderComponent: typeof SliderComponent;
|
|
89
|
+
declare const index_SliderNode: typeof SliderNode;
|
|
90
|
+
declare const index_StringArrayOrPath: typeof StringArrayOrPath;
|
|
91
|
+
declare const index_StringOrPath: typeof StringOrPath;
|
|
92
|
+
declare const index_Surface: typeof Surface;
|
|
93
|
+
declare const index_SurfaceID: typeof SurfaceID;
|
|
94
|
+
declare const index_TabsComponent: typeof TabsComponent;
|
|
95
|
+
declare const index_TabsNode: typeof TabsNode;
|
|
96
|
+
declare const index_TextComponent: typeof TextComponent;
|
|
97
|
+
declare const index_TextFieldComponent: typeof TextFieldComponent;
|
|
98
|
+
declare const index_TextFieldNode: typeof TextFieldNode;
|
|
99
|
+
declare const index_TextNode: typeof TextNode;
|
|
100
|
+
declare const index_UpdateComponentsMessage: typeof UpdateComponentsMessage;
|
|
101
|
+
declare const index_UpdateDataModelMessage: typeof UpdateDataModelMessage;
|
|
102
|
+
declare const index_UserAction: typeof UserAction;
|
|
103
|
+
declare const index_UserActionEvent: typeof UserActionEvent;
|
|
104
|
+
declare const index_VideoComponent: typeof VideoComponent;
|
|
105
|
+
declare const index_VideoNode: typeof VideoNode;
|
|
106
|
+
declare const index_isV09Message: typeof isV09Message;
|
|
107
|
+
declare namespace index {
|
|
108
|
+
export { ClientToServerMessage as A2UIClientEventMessage, Theme as A2UITheme, index_A2UI_EXTENSION_URI as A2UI_EXTENSION_URI, index_A2UI_MIME_TYPE as A2UI_MIME_TYPE, index_Action as Action, index_AnyComponent as AnyComponent, index_AnyComponentNode as AnyComponentNode, AudioPlayerComponent as AudioPlayer, index_AudioPlayerComponent as AudioPlayerComponent, index_AudioPlayerNode as AudioPlayerNode, index_BooleanOrPath as BooleanOrPath, ButtonComponent as Button, index_ButtonComponent as ButtonComponent, index_ButtonNode as ButtonNode, index_CardComponent as CardComponent, index_CardNode as CardNode, index_CheckBoxComponent as CheckBoxComponent, CheckBoxComponent as Checkbox, index_CheckboxNode as CheckboxNode, index_ChildrenProperty as ChildrenProperty, index_ChoicePickerComponent as ChoicePickerComponent, index_ClientCapabilitiesDynamic as ClientCapabilitiesDynamic, index_ClientToServerMessage as ClientToServerMessage, index_ColumnComponent as ColumnComponent, index_ColumnNode as ColumnNode, index_ComponentArrayReference as ComponentArrayReference, index_ComponentArrayTemplate as ComponentArrayTemplate, index_ComponentInstance as ComponentInstance, index_ComponentProperties as ComponentProperties, index_ComponentType as ComponentType, index_CreateSurfaceMessage as CreateSurfaceMessage, index_CustomNode as CustomNode, index_CustomNodeProperties as CustomNodeProperties, index_DataArray as DataArray, index_DataChangeEvent as DataChangeEvent, index_DataMap as DataMap, index_DataObject as DataObject, index_DataValue as DataValue, DateTimeInputComponent as DateTimeInput, index_DateTimeInputComponent as DateTimeInputComponent, index_DateTimeInputNode as DateTimeInputNode, index_DeleteSurfaceMessage as DeleteSurfaceMessage, DividerComponent as Divider, index_DividerComponent as DividerComponent, index_DividerNode as DividerNode, IconComponent as Icon, index_IconComponent as IconComponent, index_IconNode as IconNode, ImageComponent as Image, index_ImageComponent as ImageComponent, index_ImageNode as ImageNode, index_ListComponent as ListComponent, index_ListNode as ListNode, index_MessageProcessor as MessageProcessor, ModalComponent as Modal, index_ModalComponent as ModalComponent, index_ModalNode as ModalNode, ChoicePickerComponent as MultipleChoice, index_MultipleChoiceNode as MultipleChoiceNode, index_NumberOrPath as NumberOrPath, index_ResolvedArray as ResolvedArray, index_ResolvedAudioPlayer as ResolvedAudioPlayer, index_ResolvedButton as ResolvedButton, index_ResolvedCard as ResolvedCard, index_ResolvedCheckbox as ResolvedCheckbox, index_ResolvedColumn as ResolvedColumn, index_ResolvedDateTimeInput as ResolvedDateTimeInput, index_ResolvedDivider as ResolvedDivider, index_ResolvedIcon as ResolvedIcon, index_ResolvedImage as ResolvedImage, index_ResolvedList as ResolvedList, index_ResolvedMap as ResolvedMap, index_ResolvedModal as ResolvedModal, index_ResolvedMultipleChoice as ResolvedMultipleChoice, index_ResolvedRow as ResolvedRow, index_ResolvedSlider as ResolvedSlider, index_ResolvedTabItem as ResolvedTabItem, index_ResolvedTabs as ResolvedTabs, index_ResolvedText as ResolvedText, index_ResolvedTextField as ResolvedTextField, index_ResolvedValue as ResolvedValue, index_ResolvedVideo as ResolvedVideo, index_RowComponent as RowComponent, index_RowNode as RowNode, index_STANDARD_CATALOG_ID as STANDARD_CATALOG_ID, index_ServerToClientMessage as ServerToClientMessage, index_ServerToClientMessageV09 as ServerToClientMessageV09, SliderComponent as Slider, index_SliderComponent as SliderComponent, index_SliderNode as SliderNode, index_StringArrayOrPath as StringArrayOrPath, index_StringOrPath as StringOrPath, index_Surface as Surface, index_SurfaceID as SurfaceID, TabsComponent as Tabs, index_TabsComponent as TabsComponent, index_TabsNode as TabsNode, TextComponent as Text, index_TextComponent as TextComponent, TextFieldComponent as TextField, index_TextFieldComponent as TextFieldComponent, index_TextFieldNode as TextFieldNode, index_TextNode as TextNode, Theme$1 as Theme, index_UpdateComponentsMessage as UpdateComponentsMessage, index_UpdateDataModelMessage as UpdateDataModelMessage, index_UserAction as UserAction, index_UserActionEvent as UserActionEvent, VideoComponent as Video, index_VideoComponent as VideoComponent, index_VideoNode as VideoNode, index_isV09Message as isV09Message };
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export { index as i };
|