orbitchat 3.8.4 → 3.8.5
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/assets/{ChartRenderer-DvqCLHcx.js → ChartRenderer-CsSmOeUS.js} +1 -1
- package/dist/assets/{MermaidRenderer-BnAK1VmJ.js → MermaidRenderer-DL5m_Hhz.js} +5 -5
- package/dist/assets/{MusicRenderer-uOyusQ_k.js → MusicRenderer-CH3E0KH9.js} +2 -2
- package/dist/assets/{SVGRenderer-CVmnEkXp.js → SVGRenderer-B5HiQoJe.js} +1 -1
- package/dist/assets/{architectureDiagram-3BPJPVTR-CPxmhu1p.js → architectureDiagram-3BPJPVTR-B1ad2QoY.js} +1 -1
- package/dist/assets/{blockDiagram-GPEHLZMM-DQ44ZOye.js → blockDiagram-GPEHLZMM-BaaYuLLX.js} +1 -1
- package/dist/assets/{c4Diagram-AAUBKEIU-BWHbGecr.js → c4Diagram-AAUBKEIU-DJPHJtds.js} +1 -1
- package/dist/assets/channel-DDeCWDA1.js +1 -0
- package/dist/assets/{chunk-2J33WTMH-Cbb6qme8.js → chunk-2J33WTMH-BgKyXymK.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-C4GD5mxT.js → chunk-4BX2VUAB-B47fqcrV.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-ftlWGUCI.js → chunk-55IACEB6-mPPspevf.js} +1 -1
- package/dist/assets/{chunk-727SXJPM-rAN9U9Nb.js → chunk-727SXJPM-D_UtOHAV.js} +1 -1
- package/dist/assets/{chunk-AQP2D5EJ-BCfYU2jQ.js → chunk-AQP2D5EJ-CuK_c5EV.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-BIEsK2ai.js → chunk-FMBD7UC4-CQ0E2DVU.js} +1 -1
- package/dist/assets/{chunk-ND2GUHAM-DFkVOh1M.js → chunk-ND2GUHAM-Bs4KqGh8.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-Dc5n42ad.js → chunk-QZHKN3VN-Ds5qvw-L.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-CzusQi-i.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-CzusQi-i.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-D9NBzYqr.js → cose-bilkent-S5V4N54A-DtI7VR0m.js} +1 -1
- package/dist/assets/{dagre-BM42HDAG-DpquA62M.js → dagre-BM42HDAG-Dv9nzUP_.js} +1 -1
- package/dist/assets/{diagram-2AECGRRQ-CmE0W-PQ.js → diagram-2AECGRRQ-Bo72qc36.js} +1 -1
- package/dist/assets/{diagram-5GNKFQAL-B8ELVkUx.js → diagram-5GNKFQAL-CwfUjosP.js} +1 -1
- package/dist/assets/{diagram-KO2AKTUF-DNJxuplE.js → diagram-KO2AKTUF-CfOTiGvD.js} +1 -1
- package/dist/assets/{diagram-LMA3HP47-Du6S-Ggy.js → diagram-LMA3HP47-CZhIRgOi.js} +1 -1
- package/dist/assets/{diagram-OG6HWLK6-CN0AHiwl.js → diagram-OG6HWLK6-juyail0b.js} +1 -1
- package/dist/assets/docx-preview-1HZ2cBLf.js +38 -0
- package/dist/assets/{erDiagram-TEJ5UH35-B0hUASZ-.js → erDiagram-TEJ5UH35-DoFjAiB-.js} +1 -1
- package/dist/assets/{flowDiagram-I6XJVG4X-DLH20zfq.js → flowDiagram-I6XJVG4X-i9Nk-RoE.js} +1 -1
- package/dist/assets/{ganttDiagram-6RSMTGT7-TFML6PAX.js → ganttDiagram-6RSMTGT7-D9FgT_n3.js} +1 -1
- package/dist/assets/{gitGraphDiagram-PVQCEYII-Dr52HrMU.js → gitGraphDiagram-PVQCEYII-8T23BfbK.js} +1 -1
- package/dist/assets/{index-DD-r1zx5.js → index-COrH62pB.js} +1 -1
- package/dist/assets/index-Chrzghtr.js +671 -0
- package/dist/assets/index-_tZnqtDb.css +1 -0
- package/dist/assets/index-mJaxTisw.js +13 -0
- package/dist/assets/{infoDiagram-5YYISTIA-BYOq1YTe.js → infoDiagram-5YYISTIA-CSrQKxO4.js} +1 -1
- package/dist/assets/{ishikawaDiagram-YF4QCWOH-CDdNgXna.js → ishikawaDiagram-YF4QCWOH-C0RacBnx.js} +1 -1
- package/dist/assets/{journeyDiagram-JHISSGLW-Nz0w0CTU.js → journeyDiagram-JHISSGLW-fn_Wigeb.js} +1 -1
- package/dist/assets/{kanban-definition-UN3LZRKU-BOOcw18V.js → kanban-definition-UN3LZRKU-BCU8kzDU.js} +1 -1
- package/dist/assets/{mindmap-definition-RKZ34NQL-CwPQd5f4.js → mindmap-definition-RKZ34NQL-3dDKU3Ah.js} +1 -1
- package/dist/assets/{pieDiagram-4H26LBE5-BE5yRihZ.js → pieDiagram-4H26LBE5-DtE_Cy6e.js} +1 -1
- package/dist/assets/{quadrantDiagram-W4KKPZXB-DIcSMEoD.js → quadrantDiagram-W4KKPZXB-T2BQZBW5.js} +1 -1
- package/dist/assets/{requirementDiagram-4Y6WPE33-BfZQFenv.js → requirementDiagram-4Y6WPE33-F5q9pqAd.js} +1 -1
- package/dist/assets/{sankeyDiagram-5OEKKPKP-63jRPoJA.js → sankeyDiagram-5OEKKPKP-1f5jZgij.js} +1 -1
- package/dist/assets/{sequenceDiagram-3UESZ5HK-BHD-5KK6.js → sequenceDiagram-3UESZ5HK-B8LfPZVJ.js} +1 -1
- package/dist/assets/{stateDiagram-AJRCARHV-DRHp25zg.js → stateDiagram-AJRCARHV-DUJIZEbV.js} +1 -1
- package/dist/assets/stateDiagram-v2-BHNVJYJU-jwVk2opC.js +1 -0
- package/dist/assets/{timeline-definition-PNZ67QCA-D-WcXPpr.js → timeline-definition-PNZ67QCA-B7mA_bMt.js} +1 -1
- package/dist/assets/{vennDiagram-CIIHVFJN-CVE_4Odl.js → vennDiagram-CIIHVFJN-eQ_va4zK.js} +1 -1
- package/dist/assets/{wardley-L42UT6IY-B8nauDUI.js → wardley-L42UT6IY-DSnXDyTD.js} +1 -1
- package/dist/assets/{wardleyDiagram-YWT4CUSO-DT4kqUM4.js → wardleyDiagram-YWT4CUSO-DsZtL4gF.js} +1 -1
- package/dist/assets/{xychartDiagram-2RQKCTM6-C2BC9QGh.js → xychartDiagram-2RQKCTM6-iPTd2JhY.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +3 -1
- package/dist/assets/channel-CYnCpQoN.js +0 -1
- package/dist/assets/classDiagram-4FO5ZUOK-8CtwctmZ.js +0 -1
- package/dist/assets/classDiagram-v2-Q7XG4LA2-8CtwctmZ.js +0 -1
- package/dist/assets/index-BJd-lTxr.css +0 -1
- package/dist/assets/index-BssxqvT7.js +0 -650
- package/dist/assets/stateDiagram-v2-BHNVJYJU-_wnflwKu.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import{a as n,j as e,_ as A}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-COrH62pB.js","assets/index-Chrzghtr.js","assets/index-_tZnqtDb.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as n,j as e,_ as A}from"./index-Chrzghtr.js";let u=null;const E=async()=>{if(typeof window>"u")throw new Error("abcjs requires a browser environment");if(u)return u;try{const t=await A(()=>import("./index-COrH62pB.js").then(a=>a.i),__vite__mapDeps([0,1,2])),r=t.default||t;if(!r)throw new Error("abcjs module is empty");if(typeof r.renderAbc!="function")throw new Error(`renderAbc is not a function. Available methods: ${Object.keys(r).join(", ")}`);return u=r,u}catch(t){const r=window;if(typeof window<"u"&&r.ABCJS)return u=r.ABCJS,u;const a=t instanceof Error?t.message:"Failed to load abcjs";throw new Error(`Failed to load abcjs: ${a}`)}},R=t=>{const r=t.trim();return/^[XMTLK]:/m.test(r)||/^X:\d+/m.test(r)},S=t=>{const r=t.trim();if(!r.includes("X:")||!/^K:/m.test(r))return!0;const i=r.split(`
|
|
3
3
|
`),s=i[i.length-1].trim();return!!(s.match(/^[A-Z]:?\s*$/)&&s.length<3||s.endsWith("|")&&!s.endsWith("|]")&&!s.endsWith("||")&&s.replace(/\|/g,"").trim().length<2)},T=({code:t})=>{const r=n.useRef(null),[a,i]=n.useState(null),[s,c]=n.useState(!0),[l,f]=n.useState(!1),[p,j]=n.useState(!1),[x,k]=n.useState(!1),b=n.useRef(""),w=n.useRef(0),m=n.useRef(null);return n.useEffect(()=>{const g=t.trim();if(!g)return;const o=Date.now(),d=o-w.current,y=t!==b.current;b.current=t,w.current=o;const h=S(g),C=y&&d<500&&d>0,v=h||C;if(h){setTimeout(()=>{f(!0),c(!0),i(null)},0);return}R(t)?setTimeout(()=>{j(!0),i(null),v&&f(!0)},0):setTimeout(()=>{j(!1),v?(f(!0),i(null)):(i("Unable to detect ABC notation. Expected ABC notation starting with headers like X:, T:, M:, L:, or K:"),c(!1),f(!1))},0)},[t]),n.useEffect(()=>!p||!t.trim()?void 0:(l&&(m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{f(!1)},400)),(async()=>{try{c(!0);let o=0;const d=10;for(;!r.current&&o<d;)await new Promise(h=>setTimeout(h,50)),o++;if(!r.current)throw new Error("Container element not found after waiting");const y=await E();r.current.innerHTML="",y.renderAbc(r.current,t,{responsive:"resize",staffwidth:740,paddingleft:0,paddingright:0,paddingtop:15,paddingbottom:15,scale:1}),i(null),c(!1)}catch(o){const d=o instanceof Error?o.message:"Failed to render ABC notation";i(d),c(!1)}})(),()=>{m.current&&clearTimeout(m.current)}),[t,p,l]),t.trim()?a?e.jsxs("div",{className:"graph-error",children:[e.jsxs("div",{className:"graph-error-header",children:[e.jsx("div",{className:"graph-error-icon",children:"⚠️"}),e.jsxs("div",{className:"graph-error-content",children:[e.jsx("div",{className:"graph-error-title",children:"ABC Notation Rendering Error"}),e.jsx("div",{className:"graph-error-message",children:a})]})]}),e.jsxs("button",{className:"graph-error-toggle",onClick:()=>k(!x),type:"button",children:[x?"Hide":"Show"," Details"]}),x&&e.jsxs("details",{className:"graph-error-details",open:!0,children:[e.jsx("summary",{style:{cursor:"pointer",marginBottom:"8px",fontWeight:500},children:"ABC Notation Code"}),e.jsx("pre",{style:{marginTop:"8px",fontSize:"0.8em",opacity:.8,padding:"8px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",overflow:"auto",maxHeight:"200px"},children:e.jsx("code",{children:t})})]})]}):(s||l)&&!p?e.jsx("div",{className:"graph-container music-container abc-container",children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"30px 20px",color:"var(--md-text-secondary, #6b7280)",minHeight:"120px"},children:[e.jsx("svg",{style:{animation:"spin 1s linear infinite",marginBottom:"10px",width:"28px",height:"28px"},viewBox:"0 0 24 24",fill:"none",children:e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"32",strokeLinecap:"round"})}),e.jsx("span",{style:{fontWeight:500,fontSize:"14px"},children:l?"Receiving music notation...":"Loading music notation..."}),e.jsx("style",{children:`
|
|
4
4
|
@keyframes spin {
|
|
5
5
|
from { transform: rotate(0deg); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a,j as e}from"./index-
|
|
1
|
+
import{a,j as e}from"./index-Chrzghtr.js";import{p as T}from"./purify.es-DxCUJf2h.js";const w=["svg","g","defs","symbol","use","switch","desc","title","metadata","path","circle","ellipse","rect","line","polyline","polygon","text","tspan","textPath","linearGradient","radialGradient","stop","pattern","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","clipPath","mask","marker","animate","animateTransform","animateMotion","set","mpath","image","foreignObject"],b=["id","class","style","lang","tabindex","x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height","viewBox","preserveAspectRatio","d","pathLength","transform","transform-origin","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","opacity","visibility","display","color","color-interpolation","color-interpolation-filters","font-family","font-size","font-style","font-weight","font-variant","text-anchor","dominant-baseline","alignment-baseline","baseline-shift","letter-spacing","word-spacing","text-decoration","writing-mode","dx","dy","rotate","textLength","lengthAdjust","gradientUnits","gradientTransform","spreadMethod","offset","stop-color","stop-opacity","patternUnits","patternContentUnits","patternTransform","filterUnits","primitiveUnits","in","in2","result","stdDeviation","type","values","mode","operator","k1","k2","k3","k4","surfaceScale","diffuseConstant","specularConstant","specularExponent","kernelMatrix","order","divisor","bias","targetX","targetY","edgeMode","kernelUnitLength","preserveAlpha","baseFrequency","numOctaves","seed","stitchTiles","scale","xChannelSelector","yChannelSelector","clipPathUnits","clip-path","clip-rule","mask","maskUnits","maskContentUnits","markerUnits","markerWidth","markerHeight","orient","refX","refY","marker-start","marker-mid","marker-end","href","xlink:href","xmlns","xmlns:xlink","version","points","overflow","vector-effect","attributeName","attributeType","begin","dur","end","min","max","restart","repeatCount","repeatDur","calcMode","keyTimes","keySplines","from","to","by","additive","accumulate"],j=r=>{const i=r.trim();if(i.includes("<svg")&&!i.includes("</svg>"))return!0;const d=(i.match(/<[a-zA-Z][^/>]*>/g)||[]).length,t=(i.match(/<\/[a-zA-Z][^>]*>/g)||[]).length,n=(i.match(/<[a-zA-Z][^>]*\/>/g)||[]).length;return!!(d>t+n||i.match(/\s+\w+\s*=\s*["'][^"']*$/)||i.match(/<[a-zA-Z][^>]*$/))},A=r=>{const t=new DOMParser().parseFromString(r,"image/svg+xml").querySelector("svg");if(!t)return r;const n=t.getAttribute("width"),l=t.getAttribute("height"),o=t.getAttribute("viewBox");if(n&&l&&!o){const c=parseFloat(n)||100,f=parseFloat(l)||100;t.setAttribute("viewBox",`0 0 ${c} ${f}`)}return t.style.maxWidth||(t.style.maxWidth="100%"),t.style.height||(t.style.height="auto"),t.outerHTML},C=({code:r})=>{const[i,d]=a.useState(null),[t,n]=a.useState(null),[l,o]=a.useState(!1),[c,f]=a.useState(!1),p=a.useRef(""),m=a.useRef(0);return a.useEffect(()=>{const g=r.trim();if(!g)return;const h=Date.now(),u=h-m.current,y=r!==p.current;p.current=r,m.current=h;const x=j(g),v=y&&u<500&&u>0,S=x||v;if(x){setTimeout(()=>{o(!0)},0);return}try{const s=T.sanitize(r,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:w,ADD_ATTR:b,ALLOW_DATA_ATTR:!1,FORBID_TAGS:["script","iframe","object","embed"],FORBID_ATTR:["onload","onerror","onclick","onmouseover"]});if(!s||s.trim().length===0)throw new Error("SVG sanitization resulted in empty content");if(!s.includes("<svg"))throw new Error("Content does not appear to be valid SVG");const k=A(s);setTimeout(()=>{d(k),n(null),o(!1)},0)}catch(s){setTimeout(S?()=>{o(!0),n(null)}:()=>{n(s instanceof Error?s.message:"Failed to process SVG"),o(!1)},0)}},[r]),r.trim()?t?e.jsxs("div",{className:"graph-error",children:[e.jsxs("div",{className:"graph-error-header",children:[e.jsx("div",{className:"graph-error-icon",children:"⚠️"}),e.jsxs("div",{className:"graph-error-content",children:[e.jsx("div",{className:"graph-error-title",children:"SVG Rendering Error"}),e.jsx("div",{className:"graph-error-message",children:t})]})]}),e.jsxs("button",{className:"graph-error-toggle",onClick:()=>f(!c),type:"button",children:[c?"Hide":"Show"," Details"]}),c&&e.jsx("pre",{style:{marginTop:"8px",fontSize:"0.8em",opacity:.8,padding:"8px",background:"rgba(0, 0, 0, 0.05)",borderRadius:"4px",overflow:"auto",maxHeight:"200px"},children:e.jsx("code",{children:r})})]}):!i||l?e.jsx("div",{className:"graph-container svg-container",children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"30px 20px",color:"var(--md-text-secondary, #6b7280)",minHeight:"120px"},children:[e.jsx("svg",{style:{animation:"spin 1s linear infinite",marginBottom:"10px",width:"28px",height:"28px"},viewBox:"0 0 24 24",fill:"none",children:e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"32",strokeLinecap:"round"})}),e.jsx("span",{style:{fontWeight:500,fontSize:"14px"},children:l?"Receiving SVG data...":"Processing SVG..."}),e.jsx("style",{children:`
|
|
2
2
|
@keyframes spin {
|
|
3
3
|
from { transform: rotate(0deg); }
|
|
4
4
|
to { transform: rotate(360deg); }
|