@yartsun/hypershadow-widget 0.1.0 → 0.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.
@@ -1 +1 @@
1
- import{_ as f}from"./ChatWrapper.vue_vue_type_style_index_0_lang-a7iZ5AvP.js";export{f as default};
1
+ import{_ as f}from"./ChatWrapper.vue_vue_type_style_index_0_lang-CH_bUFXH.js";export{f as default};
@@ -1,5 +1,5 @@
1
- import{importShared as u}from"./federation-import-CxlH6xnb.js";import{D as f,S as o,_ as h}from"./ChatWrapper.vue_vue_type_style_index_0_lang-a7iZ5AvP.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const l of t.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&c(l)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function c(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const{defineComponent:g}=await u("vue"),{createElementVNode:i,renderList:b,Fragment:y,openBlock:m,createElementBlock:v,toDisplayString:w,vModelSelect:S,withDirectives:x,createVNode:C}=await u("vue"),L={class:"tw:p-3 tw:space-y-3"},E={class:"tw:flex tw:flex-wrap tw:items-end tw:gap-3 tw:mb-2"},A={class:"tw:flex tw:flex-col tw:gap-1"},I=["value"],N={class:"tw:relative tw:items-center tw:justify-center tw:flex tw:w-[405px]"},{computed:O,ref:d}=await u("vue"),M=g({__name:"App",setup(s){const a=d(f),n=d(o.EmptyChat),c=d({userMessageText:"Give me some action",blockSocket:!0}),e=[{value:"",label:"None (live socket)"},{value:o.Collapsed,label:"Collapsed"},{value:o.EmptyChat,label:"Empty chat"},{value:o.Messages,label:"Messages"},{value:o.ActionSnippet,label:"Action snippet"},{value:o.LaunchIssue,label:"Launch issue"},{value:o.ConnectionIssue,label:"Connection issue"},{value:o.ReconnectingAttempt,label:"Reconnecting attempt"},{value:o.InputBlocked,label:"Input blocked"},{value:o.ActionLoader,label:"Action loader"},{value:o.TracesMessage,label:"Traces message"},{value:o.TracesWithMeta,label:"Traces with meta"}];console.log(f);const t=O(()=>n.value||void 0);return(l,p)=>(m(),v("div",L,[i("div",E,[i("label",A,[p[1]||(p[1]=i("span",{class:"tw:text-xs tw:opacity-70"},"Scenario",-1)),x(i("select",{"onUpdate:modelValue":p[0]||(p[0]=r=>n.value=r),class:"tw:bg-[#1f1f1f] tw:text-white tw:text-sm tw:px-2 tw:py-1 tw:rounded"},[(m(),v(y,null,b(e,r=>i("option",{key:r.value,value:r.value},w(r.label),9,I)),64))],512),[[S,n.value]])])]),i("pre",null," "+w(a.value)+`
2
- `,1),i("div",N,[C(h,{"config-widget":a.value,scenario:t.value,"scenario-options":c.value},null,8,["config-widget","scenario","scenario-options"])])]))}});/*!
1
+ import{importShared as u}from"./federation-import-CxlH6xnb.js";import{D as f,S as o,_ as h}from"./ChatWrapper.vue_vue_type_style_index_0_lang-CH_bUFXH.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const l of t.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&c(l)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function c(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const{defineComponent:g}=await u("vue"),{createElementVNode:i,renderList:b,Fragment:y,openBlock:m,createElementBlock:v,toDisplayString:w,vModelSelect:S,withDirectives:x,createVNode:C}=await u("vue"),L={class:"tw:p-3 tw:space-y-3"},E={class:"tw:flex tw:flex-wrap tw:items-end tw:gap-3 tw:mb-2"},A={class:"tw:flex tw:flex-col tw:gap-1"},I=["value"],N={class:"tw:relative tw:items-center tw:justify-center tw:flex tw:w-[405px]"},{computed:O,ref:d}=await u("vue"),M=g({__name:"App",setup(s){const a=d(f),n=d(o.EmptyChat),c=d({userMessageText:"Give me some action",blockSocket:!0}),e=[{value:"",label:"None (live socket)"},{value:o.Collapsed,label:"Collapsed"},{value:o.EmptyChat,label:"Empty chat"},{value:o.Messages,label:"Messages"},{value:o.ActionSnippet,label:"Action snippet"},{value:o.LaunchIssue,label:"Launch issue"},{value:o.ConnectionIssue,label:"Connection issue"},{value:o.ReconnectingAttempt,label:"Reconnecting attempt"},{value:o.InputBlocked,label:"Input blocked"},{value:o.ActionLoader,label:"Action loader"},{value:o.TracesMessage,label:"Traces message"},{value:o.TracesWithMeta,label:"Traces with meta"}];console.log(f);const t=O(()=>n.value||void 0);return(l,p)=>(m(),v("div",L,[i("div",E,[i("label",A,[p[1]||(p[1]=i("span",{class:"tw:text-xs tw:opacity-70"},"Scenario",-1)),x(i("select",{"onUpdate:modelValue":p[0]||(p[0]=r=>n.value=r),class:"tw:bg-[#1f1f1f] tw:text-white tw:text-sm tw:px-2 tw:py-1 tw:rounded"},[(m(),v(y,null,b(e,r=>i("option",{key:r.value,value:r.value},w(r.label),9,I)),64))],512),[[S,n.value]])])]),i("pre",null," "+w(a.value)+`
2
+ `,1),i("div",N,[C(h,{"config-widget":a.value,scenario:t.value,"is-production":!0,"scenario-options":c.value},null,8,["config-widget","scenario","scenario-options"])])]))}});/*!
3
3
  * pinia v3.0.3
4
4
  * (c) 2025 Eduardo San Martin Morote
5
5
  * @license MIT
@@ -1 +1 @@
1
- const p={},g=new Set(["Module","__esModule","default","_export_sfc"]);let b={"./chat":()=>(y(["style-DKzkMddi.css"],!1,"./chat"),E("/static/widget/v1/chat/assets/federation-expose-Chat-ZaLC8sp9.js").then(e=>Object.keys(e).every(s=>g.has(s))?()=>e.default:()=>e)),"./utils":()=>(y(["style-DKzkMddi.css"],!1,"./utils"),E("/static/widget/v1/chat/assets/federation-expose-Utils-BmSDJTj0.js").then(e=>Object.keys(e).every(s=>g.has(s))?()=>e.default:()=>e))};const w={},y=(e,s,l)=>{const o=import.meta.url;if(typeof o>"u"){console.warn('The remote style takes effect only when the build.target option in the vite.config.ts file is higher than that of "es2020".');return}const i=o.substring(0,o.lastIndexOf("remoteChat.js")),_='/static/widget/v1/chat/';'assets',e.forEach(a=>{let n="";const c=_||i;if(c){const r={trailing:t=>t.endsWith("/")?t.slice(0,-1):t,leading:t=>t.startsWith("/")?t.slice(1):t},m=t=>t.startsWith("http")||t.startsWith("//"),f=r.trailing(c),d=r.leading(a),u=r.trailing(i);m(c)?n=[f,d].filter(Boolean).join("/"):u.includes(f)?n=[u,d].filter(Boolean).join("/"):n=[u+f,d].filter(Boolean).join("/")}else n=a;if(s){const r="css__chat__"+l;window[r]=window[r]||[],window[r].push(n);return}if(n in w)return;w[n]=!0;const h=document.createElement("link");h.rel="stylesheet",h.href=n,document.head.appendChild(h)})};async function E(e){return p[e]??=import(e),p[e]}const C=e=>{if(!b[e])throw new Error("Can not find remote module "+e);return b[e]()},T=e=>{globalThis.__federation_shared__=globalThis.__federation_shared__||{},Object.entries(e).forEach(([s,l])=>{for(const[o,i]of Object.entries(l)){const _=i.scope||"default";globalThis.__federation_shared__[_]=globalThis.__federation_shared__[_]||{};const a=globalThis.__federation_shared__[_];(a[s]=a[s]||{})[o]=i}})};export{y as dynamicLoadingCss,C as get,T as init};
1
+ const p={},g=new Set(["Module","__esModule","default","_export_sfc"]);let b={"./chat":()=>(y(["style-DKzkMddi.css"],!1,"./chat"),E("/static/widget/v1/chat/assets/federation-expose-Chat-BbGpZCXQ.js").then(e=>Object.keys(e).every(s=>g.has(s))?()=>e.default:()=>e)),"./utils":()=>(y(["style-DKzkMddi.css"],!1,"./utils"),E("/static/widget/v1/chat/assets/federation-expose-Utils-BmSDJTj0.js").then(e=>Object.keys(e).every(s=>g.has(s))?()=>e.default:()=>e))};const w={},y=(e,s,l)=>{const o=import.meta.url;if(typeof o>"u"){console.warn('The remote style takes effect only when the build.target option in the vite.config.ts file is higher than that of "es2020".');return}const i=o.substring(0,o.lastIndexOf("remoteChat.js")),_='/static/widget/v1/chat/';'assets',e.forEach(a=>{let n="";const c=_||i;if(c){const r={trailing:t=>t.endsWith("/")?t.slice(0,-1):t,leading:t=>t.startsWith("/")?t.slice(1):t},m=t=>t.startsWith("http")||t.startsWith("//"),f=r.trailing(c),d=r.leading(a),u=r.trailing(i);m(c)?n=[f,d].filter(Boolean).join("/"):u.includes(f)?n=[u,d].filter(Boolean).join("/"):n=[u+f,d].filter(Boolean).join("/")}else n=a;if(s){const r="css__chat__"+l;window[r]=window[r]||[],window[r].push(n);return}if(n in w)return;w[n]=!0;const h=document.createElement("link");h.rel="stylesheet",h.href=n,document.head.appendChild(h)})};async function E(e){return p[e]??=import(e),p[e]}const C=e=>{if(!b[e])throw new Error("Can not find remote module "+e);return b[e]()},T=e=>{globalThis.__federation_shared__=globalThis.__federation_shared__||{},Object.entries(e).forEach(([s,l])=>{for(const[o,i]of Object.entries(l)){const _=i.scope||"default";globalThis.__federation_shared__[_]=globalThis.__federation_shared__[_]||{};const a=globalThis.__federation_shared__[_];(a[s]=a[s]||{})[o]=i}})};export{y as dynamicLoadingCss,C as get,T as init};
@@ -10,11 +10,11 @@
10
10
  background-color: transparent;
11
11
  }
12
12
  </style>
13
- <script type="module" crossorigin src="/static/widget/v1/chat/assets/index-DVNLuQ51.js"></script>
13
+ <script type="module" crossorigin src="/static/widget/v1/chat/assets/index-ZE-k16xu.js"></script>
14
14
  <link rel="modulepreload" crossorigin href="/static/widget/v1/chat/assets/federation-utils-DDIHa9Ih.js">
15
15
  <link rel="modulepreload" crossorigin href="/static/widget/v1/chat/assets/federation-import-CxlH6xnb.js">
16
16
  <link rel="modulepreload" crossorigin href="/static/widget/v1/chat/assets/federation-expose-Utils-BmSDJTj0.js">
17
- <link rel="modulepreload" crossorigin href="/static/widget/v1/chat/assets/ChatWrapper.vue_vue_type_style_index_0_lang-a7iZ5AvP.js">
17
+ <link rel="modulepreload" crossorigin href="/static/widget/v1/chat/assets/ChatWrapper.vue_vue_type_style_index_0_lang-CH_bUFXH.js">
18
18
  <link rel="stylesheet" crossorigin href="/static/widget/v1/chat/assets/style-DKzkMddi.css">
19
19
  </head>
20
20
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yartsun/hypershadow-widget",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",