@aistrike-dev/ui-shell-dev 2.0.3 → 2.1.1

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.
Files changed (45) hide show
  1. package/README.md +41 -17
  2. package/dist/args.d.ts +9 -1
  3. package/dist/args.js +51 -5
  4. package/dist/cell.d.ts +29 -0
  5. package/dist/cell.js +194 -0
  6. package/dist/cli.js +25 -1
  7. package/dist/devfile.d.ts +25 -9
  8. package/dist/devfile.js +75 -30
  9. package/dist/hosts.d.ts +17 -0
  10. package/dist/hosts.js +51 -0
  11. package/dist/inject.js +0 -3
  12. package/dist/platform/host.d.ts +5 -7
  13. package/dist/platform/host.js +4 -4
  14. package/dist/platform/list.d.ts +2 -2
  15. package/dist/platform/list.js +6 -5
  16. package/dist/platform/server.d.ts +3 -2
  17. package/dist/platform/server.js +21 -10
  18. package/dist/ports.d.ts +12 -0
  19. package/dist/ports.js +14 -0
  20. package/dist/preamble.d.ts +15 -0
  21. package/dist/preamble.js +44 -0
  22. package/dist/serve.d.ts +28 -0
  23. package/dist/serve.js +161 -0
  24. package/dist/token.d.ts +6 -1
  25. package/dist/token.js +2 -2
  26. package/dist/vite/plugin.d.ts +12 -3
  27. package/dist/vite/plugin.js +126 -27
  28. package/dist/vite/targets.d.ts +27 -0
  29. package/dist/vite/targets.js +35 -0
  30. package/package.json +2 -2
  31. package/platform/assistant/mock.js +1809 -222
  32. package/platform/assistant/ui/chunks/ui-CnxV0v5I.js +280 -0
  33. package/platform/assistant/ui/entry.js +2 -2
  34. package/platform/home/ui/chunks/ui-BJZEfOZI.js +174 -0
  35. package/platform/home/ui/entry.js +1 -1
  36. package/platform/settings/ui/chunks/ui-BRCsapmB.js +271 -0
  37. package/platform/settings/ui/entry.js +2 -2
  38. package/shell/assets/LabHost-D3o-OJsx.js +2 -0
  39. package/shell/assets/index-DW0Z5YeB.js +185 -0
  40. package/shell/index.html +1 -1
  41. package/platform/assistant/ui/chunks/ui-C9pWqM_D.js +0 -182
  42. package/platform/home/ui/chunks/ui-SNPmLvIE.js +0 -174
  43. package/platform/settings/ui/chunks/ui-C21hUUVD.js +0 -271
  44. package/shell/assets/LabHost-BiiVtiYJ.js +0 -2
  45. package/shell/assets/index-CqB5Mswt.js +0 -184
@@ -1 +1 @@
1
- var e=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),t=function(e,t){return new URL(e,t).href},n={},r=function(e){return e.pathname.endsWith(`.css`)},i=function(i,a,o){let s=Promise.resolve();if(a&&a.length>0){let i,c=document.querySelector(`meta[property=csp-nonce]`),l=c?.nonce||c?.getAttribute(`nonce`);function u(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function d(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}s=u(a.map(a=>{a=t(a,o);let s=d(a);if(s.href in n)return;n[s.href]=!0;let c=r(s);if(i===void 0){i={all:new Set,styles:new Set};let e=document.getElementsByTagName(`link`);for(let t=e.length-1;t>=0;t--){let n=e[t];i.all.add(n.href),n.rel===`stylesheet`&&i.styles.add(n.href)}}if((c?i.styles:i.all).has(s.href))return;let u=document.createElement(`link`);if(u.rel=c?`stylesheet`:e,c||(u.as=`script`),u.crossOrigin=``,u.href=s.href,l&&u.setAttribute(`nonce`,l),document.head.appendChild(u),c)return new Promise((e,t)=>{u.addEventListener(`load`,e),u.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${s}`)))})}).filter(e=>e!==void 0))}function c(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return s.then(e=>{for(let t of e||[])t.status===`rejected`&&c(t.reason);return i().catch(c)})},a=()=>{let e,t=0;return{nav:[{label:`Home`,path:`/`,icon:`home`}],settings:null,entities:[],commands:[],async mount(n){t+=1;let r=t;e?.(),e=void 0;let{mountUi:a}=await i(async()=>{let{mountUi:e}=await import(`./chunks/ui-SNPmLvIE.js`);return{mountUi:e}},[],import.meta.url);r===t&&(e=a(n))},unmount(){t+=1,e?.(),e=void 0}}};export{a as activate};
1
+ var e=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),t=function(e,t){return new URL(e,t).href},n={},r=function(e){return e.pathname.endsWith(`.css`)},i=function(i,a,o){let s=Promise.resolve();if(a&&a.length>0){let i,c=document.querySelector(`meta[property=csp-nonce]`),l=c?.nonce||c?.getAttribute(`nonce`);function u(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function d(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}s=u(a.map(a=>{a=t(a,o);let s=d(a);if(s.href in n)return;n[s.href]=!0;let c=r(s);if(i===void 0){i={all:new Set,styles:new Set};let e=document.getElementsByTagName(`link`);for(let t=e.length-1;t>=0;t--){let n=e[t];i.all.add(n.href),n.rel===`stylesheet`&&i.styles.add(n.href)}}if((c?i.styles:i.all).has(s.href))return;let u=document.createElement(`link`);if(u.rel=c?`stylesheet`:e,c||(u.as=`script`),u.crossOrigin=``,u.href=s.href,l&&u.setAttribute(`nonce`,l),document.head.appendChild(u),c)return new Promise((e,t)=>{u.addEventListener(`load`,e),u.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${s}`)))})}).filter(e=>e!==void 0))}function c(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return s.then(e=>{for(let t of e||[])t.status===`rejected`&&c(t.reason);return i().catch(c)})},a=()=>{let e,t=0;return{nav:[{label:`Home`,path:`/`,icon:`home`}],settings:null,entities:[],commands:[],async mount(n){t+=1;let r=t;e?.(),e=void 0;let{mountUi:a}=await i(async()=>{let{mountUi:e}=await import(`./chunks/ui-BJZEfOZI.js`);return{mountUi:e}},[],import.meta.url);r===t&&(e=a(n))},unmount(){t+=1,e?.(),e=void 0}}};export{a as activate};