@agentic-ui-experience/ui-react 0.0.1-beta.2 → 0.0.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/catalog.js CHANGED
@@ -1 +1 @@
1
- (function(_0x49dba3,_0x5aecf7){const _0x4c026b=_0x486b,_0x1a4667=_0x49dba3();while(!![]){try{const _0x4359b9=-parseInt(_0x4c026b(0x1f3))/0x1+-parseInt(_0x4c026b(0x1f9))/0x2+parseInt(_0x4c026b(0x1f7))/0x3*(-parseInt(_0x4c026b(0x1f1))/0x4)+parseInt(_0x4c026b(0x1f4))/0x5*(-parseInt(_0x4c026b(0x1ef))/0x6)+-parseInt(_0x4c026b(0x1fa))/0x7+-parseInt(_0x4c026b(0x1fb))/0x8*(parseInt(_0x4c026b(0x1f2))/0x9)+parseInt(_0x4c026b(0x1f6))/0xa;if(_0x4359b9===_0x5aecf7)break;else _0x1a4667['push'](_0x1a4667['shift']());}catch(_0x473c8d){_0x1a4667['push'](_0x1a4667['shift']());}}}(_0x394e,0xe7309));import{basicCatalog as _0x5d96a2}from'@a2ui/react/v0_9';import{Catalog}from'@a2ui/web_core/v0_9';import{A2UI_BASIC_CATALOG_ID}from'@agentic-ui-experience/ui-core';function defineCatalog(_0x5c1864){const _0x8d6144=_0x486b,_0xec1ef=_0x5c1864[_0x8d6144(0x1ee)]??basicCatalog,_0x31def7=_0x5c1864['components']??[],_0x34d8c6=[..._0xec1ef['components']['values'](),..._0x31def7],_0xa62cae=[..._0xec1ef['functions']['values']()],_0x8412b0=new Catalog(_0x5c1864['id'],_0x34d8c6,_0xa62cae,_0xec1ef['themeSchema']);return _0x8412b0;}function _0x486b(_0xc15b5f,_0x24991b){_0xc15b5f=_0xc15b5f-0x1ee;const _0x394e20=_0x394e();let _0x486b11=_0x394e20[_0xc15b5f];return _0x486b11;}function _0x394e(){const _0xd0e288=['38915730mpRxmM','237828kbQaoc','themeSchema','772408FtTGOR','3539221buoUaC','1256zYlnSB','extends','1194234eKyylV','values','24RgLMqo','47682JxgwZh','148254DtGOPQ','15PBmBoI','functions'];_0x394e=function(){return _0xd0e288;};return _0x394e();}const defineReactCatalog=defineCatalog;function cloneCatalog(_0x37722f,_0x1bd701=_0x37722f['id']){const _0x7bd131=_0x486b;return new Catalog(_0x1bd701,[..._0x37722f['components']['values']()],[..._0x37722f[_0x7bd131(0x1f5)][_0x7bd131(0x1f0)]()],_0x37722f[_0x7bd131(0x1f8)]);}const basicCatalog=cloneCatalog(_0x5d96a2,A2UI_BASIC_CATALOG_ID);export{basicCatalog,defineCatalog,defineReactCatalog};
1
+ (function(_0x510763,_0x57913d){const _0x483186=_0x1d83,_0x296fcc=_0x510763();while(!![]){try{const _0x5e12ca=-parseInt(_0x483186(0x167))/0x1*(parseInt(_0x483186(0x161))/0x2)+parseInt(_0x483186(0x16c))/0x3*(parseInt(_0x483186(0x160))/0x4)+parseInt(_0x483186(0x163))/0x5*(-parseInt(_0x483186(0x164))/0x6)+-parseInt(_0x483186(0x15e))/0x7+parseInt(_0x483186(0x169))/0x8*(parseInt(_0x483186(0x168))/0x9)+parseInt(_0x483186(0x15f))/0xa+parseInt(_0x483186(0x16a))/0xb;if(_0x5e12ca===_0x57913d)break;else _0x296fcc['push'](_0x296fcc['shift']());}catch(_0x47b6d0){_0x296fcc['push'](_0x296fcc['shift']());}}}(_0x2021,0x7f9c1));import{basicCatalog as _0x26057c}from'@a2ui/react/v0_9';function _0x2021(){const _0x1726c3=['themeSchema','123JDnEPq','18OfejHM','2114568NGPwnO','595551BbbInc','components','69uNESgK','2672705xoESsK','5208950RokMoN','85404yLibqb','3308aFeiDa','functions','14575CgojSm','1002VZXWRm','extends'];_0x2021=function(){return _0x1726c3;};return _0x2021();}import{Catalog}from'@a2ui/web_core/v0_9';import{A2UI_BASIC_CATALOG_ID}from'@agentic-ui-experience/ui-core';function defineCatalog(_0x5e632f){const _0x17257e=_0x1d83,_0x3be6a1=_0x5e632f[_0x17257e(0x165)]??basicCatalog,_0x5c6aac=_0x5e632f['components']??[],_0xd285b0=[..._0x3be6a1['components']['values'](),..._0x5c6aac],_0x518ace=[..._0x3be6a1[_0x17257e(0x162)]['values']()],_0x1f8f11=new Catalog(_0x5e632f['id'],_0xd285b0,_0x518ace,_0x3be6a1[_0x17257e(0x166)]);return _0x1f8f11;}const defineReactCatalog=defineCatalog;function cloneCatalog(_0x50904e,_0x1e06ca=_0x50904e['id']){const _0x169fb1=_0x1d83;return new Catalog(_0x1e06ca,[..._0x50904e[_0x169fb1(0x16b)]['values']()],[..._0x50904e['functions']['values']()],_0x50904e[_0x169fb1(0x166)]);}function _0x1d83(_0x56d6e8,_0x1d8c32){_0x56d6e8=_0x56d6e8-0x15e;const _0x202108=_0x2021();let _0x1d8346=_0x202108[_0x56d6e8];return _0x1d8346;}const basicCatalog=cloneCatalog(_0x26057c,A2UI_BASIC_CATALOG_ID);export{basicCatalog,defineCatalog,defineReactCatalog};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2b0075,_0x5df3a9){var _0x3fdad0=_0x4b3f,_0x3f3426=_0x2b0075();while(!![]){try{var _0x3e6dfb=parseInt(_0x3fdad0(0x185))/0x1+parseInt(_0x3fdad0(0x17f))/0x2*(parseInt(_0x3fdad0(0x17c))/0x3)+-parseInt(_0x3fdad0(0x181))/0x4+-parseInt(_0x3fdad0(0x182))/0x5*(-parseInt(_0x3fdad0(0x17e))/0x6)+parseInt(_0x3fdad0(0x17d))/0x7+parseInt(_0x3fdad0(0x183))/0x8*(-parseInt(_0x3fdad0(0x184))/0x9)+parseInt(_0x3fdad0(0x180))/0xa;if(_0x3e6dfb===_0x5df3a9)break;else _0x3f3426['push'](_0x3f3426['shift']());}catch(_0x1d4f1a){_0x3f3426['push'](_0x3f3426['shift']());}}}(_0x201d,0x707c4));import{basicCatalog,defineCatalog,defineReactCatalog}from'./catalog.js';import{UIAgentSurface,useUIAgent,useUIRuntime}from'./react.js';function _0x4b3f(_0x14c26f,_0x2d1ce3){_0x14c26f=_0x14c26f-0x17c;var _0x201db0=_0x201d();var _0x4b3fe2=_0x201db0[_0x14c26f];return _0x4b3fe2;}import{createBinderlessComponentImplementation,createComponentImplementation}from'@a2ui/react/v0_9';import{ActionSchema,Catalog,CheckableSchema,CommonSchemas,DataBindingSchema,DynamicBooleanSchema,DynamicNumberSchema,DynamicStringListSchema,DynamicStringSchema,DynamicValueSchema,FunctionCallSchema}from'@a2ui/web_core/v0_9';import{z}from'zod';function _0x201d(){var _0x2c848b=['9AFKyei','3533404ZHaIxz','12dFsIVk','75898aMtPNy','876330toCxjK','112340qvAyFZ','215565tMGaqk','227408WGKEYA','171OnwaWZ','236441tuxiEE'];_0x201d=function(){return _0x2c848b;};return _0x201d();}export{ActionSchema,Catalog,CheckableSchema,CommonSchemas,DataBindingSchema,DynamicBooleanSchema,DynamicNumberSchema,DynamicStringListSchema,DynamicStringSchema,DynamicValueSchema,FunctionCallSchema,UIAgentSurface,basicCatalog,createBinderlessComponentImplementation,createComponentImplementation,defineCatalog,defineReactCatalog,useUIAgent,useUIRuntime,z};
1
+ function _0x21ff(){var _0x453462=['3275024zJBYyv','9KnbfQW','1986501wwKXbE','1438610YpDTqp','7CvPcQV','225120SBXaJR','349506aICdDj','12eSenFq','10kKMajL','86282VatSBD','7ouKjvK','2299836qHfoHO'];_0x21ff=function(){return _0x453462;};return _0x21ff();}(function(_0x37bfa7,_0x16c05a){var _0x155420=_0x292b,_0x2e01fd=_0x37bfa7();while(!![]){try{var _0x538db2=parseInt(_0x155420(0x1db))/0x1*(parseInt(_0x155420(0x1d4))/0x2)+-parseInt(_0x155420(0x1dd))/0x3*(-parseInt(_0x155420(0x1de))/0x4)+parseInt(_0x155420(0x1da))/0x5+-parseInt(_0x155420(0x1dc))/0x6*(parseInt(_0x155420(0x1d5))/0x7)+parseInt(_0x155420(0x1d7))/0x8*(-parseInt(_0x155420(0x1d8))/0x9)+-parseInt(_0x155420(0x1df))/0xa*(-parseInt(_0x155420(0x1d9))/0xb)+-parseInt(_0x155420(0x1d6))/0xc;if(_0x538db2===_0x16c05a)break;else _0x2e01fd['push'](_0x2e01fd['shift']());}catch(_0x5b7b16){_0x2e01fd['push'](_0x2e01fd['shift']());}}}(_0x21ff,0x757e7));import{basicCatalog,defineCatalog,defineReactCatalog}from'./catalog.js';import{UIAgentSurface,useUIAgent,useUIRuntime}from'./react.js';import{createBinderlessComponentImplementation,createComponentImplementation}from'@a2ui/react/v0_9';function _0x292b(_0x99c8a9,_0x2fba7d){_0x99c8a9=_0x99c8a9-0x1d4;var _0x21ff1d=_0x21ff();var _0x292bea=_0x21ff1d[_0x99c8a9];return _0x292bea;}import{ActionSchema,Catalog,CheckableSchema,CommonSchemas,DataBindingSchema,DynamicBooleanSchema,DynamicNumberSchema,DynamicStringListSchema,DynamicStringSchema,DynamicValueSchema,FunctionCallSchema}from'@a2ui/web_core/v0_9';import{z}from'zod';export{ActionSchema,Catalog,CheckableSchema,CommonSchemas,DataBindingSchema,DynamicBooleanSchema,DynamicNumberSchema,DynamicStringListSchema,DynamicStringSchema,DynamicValueSchema,FunctionCallSchema,UIAgentSurface,basicCatalog,createBinderlessComponentImplementation,createComponentImplementation,defineCatalog,defineReactCatalog,useUIAgent,useUIRuntime,z};
package/dist/react.js CHANGED
@@ -1 +1 @@
1
- function _0x48d5(){const _0x1f7ee6=['onAction','current','86IVNGcg','map','427SOQGMB','onError','4592140MbjYRJ','runtime','88765RhnouC','23928DPktWJ','1158008RXcFGw','subscribe','4BkaapY','getState','36JBEgeJ','16253875anRpjo','Provider','7221sVevsa','236223RJQDFY'];_0x48d5=function(){return _0x1f7ee6;};return _0x48d5();}(function(_0x52d58c,_0x2c0efa){const _0x4f5d7d=_0x2312,_0x43bb71=_0x52d58c();while(!![]){try{const _0x3bfe84=-parseInt(_0x4f5d7d(0x161))/0x1+parseInt(_0x4f5d7d(0x151))/0x2*(-parseInt(_0x4f5d7d(0x160))/0x3)+parseInt(_0x4f5d7d(0x15b))/0x4*(parseInt(_0x4f5d7d(0x157))/0x5)+-parseInt(_0x4f5d7d(0x158))/0x6*(-parseInt(_0x4f5d7d(0x153))/0x7)+parseInt(_0x4f5d7d(0x159))/0x8*(-parseInt(_0x4f5d7d(0x15d))/0x9)+-parseInt(_0x4f5d7d(0x155))/0xa+parseInt(_0x4f5d7d(0x15e))/0xb;if(_0x3bfe84===_0x2c0efa)break;else _0x43bb71['push'](_0x43bb71['shift']());}catch(_0x1fd842){_0x43bb71['push'](_0x43bb71['shift']());}}}(_0x48d5,0x58100));import{jsx}from'react/jsx-runtime';import{useSyncExternalStore,useRef,useState}from'react';import{MarkdownContext,A2uiSurface}from'@a2ui/react/v0_9';import{renderMarkdown}from'@a2ui/markdown-it';import{createUIRuntime}from'@agentic-ui-experience/ui-runtime';import{basicCatalog}from'./catalog.js';function _0x2312(_0x104d3f,_0x6cb3d4){_0x104d3f=_0x104d3f-0x150;const _0x48d54e=_0x48d5();let _0x231290=_0x48d54e[_0x104d3f];return _0x231290;}function useUIAgent(_0x49a59b){const _0x35e126=_0x2312;return useSyncExternalStore(_0x49a59b[_0x35e126(0x15a)],_0x49a59b['getState'],_0x49a59b[_0x35e126(0x15c)]);}function useUIRuntime(_0x53c0a8={}){const _0x3a2ae0=_0x2312,_0x194a0a=useRef(_0x53c0a8[_0x3a2ae0(0x162)]),_0x4dc27e=useRef(_0x53c0a8[_0x3a2ae0(0x154)]);_0x194a0a[_0x3a2ae0(0x150)]=_0x53c0a8[_0x3a2ae0(0x162)],_0x4dc27e[_0x3a2ae0(0x150)]=_0x53c0a8['onError'];const {catalogs:catalogs=[basicCatalog],normalizeMode:_0x34083f}=_0x53c0a8,[_0x335f56]=useState(()=>createUIRuntime({'catalogs':catalogs,..._0x34083f?{'normalizeMode':_0x34083f}:{},'onAction':_0x557000=>_0x194a0a['current']?.(_0x557000),'onError':_0x3b40e2=>_0x4dc27e['current']?.(_0x3b40e2)}));return _0x335f56;}function UIAgentSurface(_0x5e0d14){const _0x5944ff=_0x2312,_0x215f68=useUIAgent(_0x5e0d14[_0x5944ff(0x156)]);if(_0x215f68['surfaces']['length']===0x0)return _0x5e0d14['renderEmpty']?.()??null;return jsx(MarkdownContext[_0x5944ff(0x15f)],{'value':renderMarkdown,'children':_0x215f68['surfaces'][_0x5944ff(0x152)](_0x2c67c2=>{if(_0x5e0d14['renderSurface'])return jsx('div',{'data-a2ui-surface':_0x2c67c2['id'],'children':_0x5e0d14['renderSurface'](_0x2c67c2)},_0x2c67c2['id']);return jsx('div',{'data-a2ui-surface':_0x2c67c2['id'],'children':jsx(A2uiSurface,{'surface':_0x2c67c2})},_0x2c67c2['id']);})});}export{UIAgentSurface,useUIAgent,useUIRuntime};
1
+ (function(_0x394d02,_0x27c32b){const _0xc955bb=_0x2612,_0x53773a=_0x394d02();while(!![]){try{const _0x5d1119=parseInt(_0xc955bb(0x110))/0x1+-parseInt(_0xc955bb(0x10f))/0x2+parseInt(_0xc955bb(0x113))/0x3*(parseInt(_0xc955bb(0x10e))/0x4)+parseInt(_0xc955bb(0x103))/0x5*(parseInt(_0xc955bb(0x114))/0x6)+parseInt(_0xc955bb(0x10d))/0x7+parseInt(_0xc955bb(0x104))/0x8+parseInt(_0xc955bb(0x115))/0x9*(-parseInt(_0xc955bb(0x10b))/0xa);if(_0x5d1119===_0x27c32b)break;else _0x53773a['push'](_0x53773a['shift']());}catch(_0x100902){_0x53773a['push'](_0x53773a['shift']());}}}(_0xa54a,0xf1e3f));import{jsx}from'react/jsx-runtime';import{useSyncExternalStore,useRef,useState}from'react';import{MarkdownContext,A2uiSurface}from'@a2ui/react/v0_9';function _0x2612(_0x108d19,_0x4fffc0){_0x108d19=_0x108d19-0x103;const _0xa54acc=_0xa54a();let _0x2612ec=_0xa54acc[_0x108d19];return _0x2612ec;}import{renderMarkdown}from'@a2ui/markdown-it';import{createUIRuntime}from'@agentic-ui-experience/ui-runtime';import{basicCatalog}from'./catalog.js';function useUIAgent(_0x7c2331){const _0x1d8e35=_0x2612;return useSyncExternalStore(_0x7c2331['subscribe'],_0x7c2331[_0x1d8e35(0x107)],_0x7c2331['getState']);}function _0xa54a(){const _0x3e731f=['12813256hOCMvy','map','surfaces','getState','renderSurface','div','current','10hOFRfr','onError','3400488KMpYlf','12dfiEDx','2662010hwApTU','400523itEBrA','length','renderEmpty','1170636YmrcQV','282AslnBf','15741441HAmAUk','43855kBEuOq'];_0xa54a=function(){return _0x3e731f;};return _0xa54a();}function useUIRuntime(_0x15f32d={}){const _0x33448b=_0x2612,_0x8d2b2a=useRef(_0x15f32d['onAction']),_0x448700=useRef(_0x15f32d[_0x33448b(0x10c)]);_0x8d2b2a['current']=_0x15f32d['onAction'],_0x448700['current']=_0x15f32d['onError'];const {catalogs:catalogs=[basicCatalog],normalizeMode:_0x138bf9}=_0x15f32d,[_0x3cc052]=useState(()=>createUIRuntime({'catalogs':catalogs,..._0x138bf9?{'normalizeMode':_0x138bf9}:{},'onAction':_0x5a26f1=>_0x8d2b2a[_0x33448b(0x10a)]?.(_0x5a26f1),'onError':_0x31c8a5=>_0x448700['current']?.(_0x31c8a5)}));return _0x3cc052;}function UIAgentSurface(_0x100817){const _0x50277a=_0x2612,_0x20ae7c=useUIAgent(_0x100817['runtime']);if(_0x20ae7c[_0x50277a(0x106)][_0x50277a(0x111)]===0x0)return _0x100817[_0x50277a(0x112)]?.()??null;return jsx(MarkdownContext['Provider'],{'value':renderMarkdown,'children':_0x20ae7c[_0x50277a(0x106)][_0x50277a(0x105)](_0x5ba872=>{const _0x98f418=_0x50277a;if(_0x100817[_0x98f418(0x108)])return jsx(_0x98f418(0x109),{'data-a2ui-surface':_0x5ba872['id'],'children':_0x100817[_0x98f418(0x108)](_0x5ba872)},_0x5ba872['id']);return jsx('div',{'data-a2ui-surface':_0x5ba872['id'],'children':jsx(A2uiSurface,{'surface':_0x5ba872})},_0x5ba872['id']);})});}export{UIAgentSurface,useUIAgent,useUIRuntime};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentic-ui-experience/ui-react",
3
- "version": "0.0.1-beta.2",
3
+ "version": "0.0.1-beta.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "@a2ui/react": "0.9.0",
23
23
  "@a2ui/web_core": "0.9.2",
24
24
  "zod": "^3.25.76",
25
- "@agentic-ui-experience/ui-runtime": "0.0.1-beta.2",
26
- "@agentic-ui-experience/ui-core": "0.0.1-beta.2"
25
+ "@agentic-ui-experience/ui-core": "0.0.1-beta.3",
26
+ "@agentic-ui-experience/ui-runtime": "0.0.1-beta.3"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "^18.0.0 || ^19.0.0",