orbitchat 3.11.5 → 3.11.6
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-CxUwc7kf.js → ChartRenderer-B9WgyQbh.js} +1 -1
- package/dist/assets/{MermaidRenderer-CB1V6Xwf.js → MermaidRenderer-ZdYLQXe1.js} +4 -4
- package/dist/assets/{MusicRenderer-BUg6MwVn.js → MusicRenderer-CPc4ca0i.js} +1 -1
- package/dist/assets/{SVGRenderer-TccFnPNu.js → SVGRenderer-BUZ2s3dH.js} +1 -1
- package/dist/assets/{architectureDiagram-3BPJPVTR-h9nFgzDn.js → architectureDiagram-3BPJPVTR-ywxEZC3c.js} +1 -1
- package/dist/assets/{blockDiagram-GPEHLZMM-Bt3BVrKK.js → blockDiagram-GPEHLZMM-Bw-FXGjK.js} +1 -1
- package/dist/assets/{c4Diagram-AAUBKEIU-CF2oNkcl.js → c4Diagram-AAUBKEIU-CFRb30CH.js} +1 -1
- package/dist/assets/channel-DLn-0I6t.js +1 -0
- package/dist/assets/{chunk-2J33WTMH-Dtn_Hgpb.js → chunk-2J33WTMH-q3h_OJ7U.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-BdMFcrV2.js → chunk-4BX2VUAB-BaoOm2YM.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-DhM3j2P2.js → chunk-55IACEB6-DNdZ3QZs.js} +1 -1
- package/dist/assets/{chunk-727SXJPM-BFbi_M_J.js → chunk-727SXJPM-Dm8KfhqO.js} +1 -1
- package/dist/assets/{chunk-AQP2D5EJ-BiliSNEB.js → chunk-AQP2D5EJ-CKZSB_XN.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-CNm2gwn9.js → chunk-FMBD7UC4-_49U0RVY.js} +1 -1
- package/dist/assets/{chunk-ND2GUHAM-KuCSZUpr.js → chunk-ND2GUHAM-BnJM2pC7.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-jj0QUT3O.js → chunk-QZHKN3VN-CY_Ss3eu.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-DnhYadg0.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-DnhYadg0.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-B8rNoYBW.js → cose-bilkent-S5V4N54A-pnuSB6UR.js} +1 -1
- package/dist/assets/{dagre-BM42HDAG-CqJZdTJC.js → dagre-BM42HDAG-DXul9ync.js} +1 -1
- package/dist/assets/{diagram-2AECGRRQ-DgzZxsLr.js → diagram-2AECGRRQ-CzdHeSR9.js} +1 -1
- package/dist/assets/{diagram-5GNKFQAL-CQ0FGFGn.js → diagram-5GNKFQAL-C2kms3K5.js} +1 -1
- package/dist/assets/{diagram-KO2AKTUF-DLcB9N5t.js → diagram-KO2AKTUF-Cu2TAUqA.js} +1 -1
- package/dist/assets/{diagram-LMA3HP47-BgkAkfRF.js → diagram-LMA3HP47-6BXm36Xf.js} +1 -1
- package/dist/assets/{diagram-OG6HWLK6-BGsoBhjO.js → diagram-OG6HWLK6-Dqz8Gut2.js} +1 -1
- package/dist/assets/{erDiagram-TEJ5UH35-NDUTpr2B.js → erDiagram-TEJ5UH35-CtlTK-SE.js} +1 -1
- package/dist/assets/{flowDiagram-I6XJVG4X-D6MrcnU5.js → flowDiagram-I6XJVG4X-D77QxS-7.js} +1 -1
- package/dist/assets/{ganttDiagram-6RSMTGT7-a4nXbZbD.js → ganttDiagram-6RSMTGT7-CL4vof27.js} +1 -1
- package/dist/assets/{gitGraphDiagram-PVQCEYII-Dy5jvGB5.js → gitGraphDiagram-PVQCEYII-DamrJOZp.js} +1 -1
- package/dist/assets/index-ChQGVzAE.js +376 -0
- package/dist/assets/index-GDO2KFQ0.css +1 -0
- package/dist/assets/{infoDiagram-5YYISTIA-CL2td3Ty.js → infoDiagram-5YYISTIA-rfHV73X4.js} +1 -1
- package/dist/assets/{ishikawaDiagram-YF4QCWOH-CTAU41X1.js → ishikawaDiagram-YF4QCWOH-CdPWxGJX.js} +1 -1
- package/dist/assets/{journeyDiagram-JHISSGLW-uLHPZsfT.js → journeyDiagram-JHISSGLW-BOi5LZYz.js} +1 -1
- package/dist/assets/{kanban-definition-UN3LZRKU-CPUPhSBC.js → kanban-definition-UN3LZRKU-BkiNAsiv.js} +1 -1
- package/dist/assets/{mindmap-definition-RKZ34NQL-CI4qzHzI.js → mindmap-definition-RKZ34NQL-TgKEuoPJ.js} +1 -1
- package/dist/assets/{pieDiagram-4H26LBE5-DkR6EJ_2.js → pieDiagram-4H26LBE5-CXa8qPan.js} +1 -1
- package/dist/assets/{quadrantDiagram-W4KKPZXB-CITY12XS.js → quadrantDiagram-W4KKPZXB-DUrm8cWn.js} +1 -1
- package/dist/assets/{requirementDiagram-4Y6WPE33-aoX2W31y.js → requirementDiagram-4Y6WPE33-CiGDx-T3.js} +1 -1
- package/dist/assets/{sankeyDiagram-5OEKKPKP-BbU2IY-u.js → sankeyDiagram-5OEKKPKP-BS2J3gW3.js} +1 -1
- package/dist/assets/{sequenceDiagram-3UESZ5HK-Dkvk4z8c.js → sequenceDiagram-3UESZ5HK-p_DBICST.js} +1 -1
- package/dist/assets/{stateDiagram-AJRCARHV-CTcT-0iJ.js → stateDiagram-AJRCARHV-DCc2dFRi.js} +1 -1
- package/dist/assets/{stateDiagram-v2-BHNVJYJU-DUw_qPA2.js → stateDiagram-v2-BHNVJYJU-8yygPWnM.js} +1 -1
- package/dist/assets/{timeline-definition-PNZ67QCA-D3gSlyLg.js → timeline-definition-PNZ67QCA-CP_cwSHQ.js} +1 -1
- package/dist/assets/{vennDiagram-CIIHVFJN-BihF_eF_.js → vennDiagram-CIIHVFJN-DTwc-s5g.js} +1 -1
- package/dist/assets/{wardleyDiagram-YWT4CUSO-BCOMNb7v.js → wardleyDiagram-YWT4CUSO-C9dwjGZ6.js} +1 -1
- package/dist/assets/{xychartDiagram-2RQKCTM6-DjojC0e6.js → xychartDiagram-2RQKCTM6-CHZUHUxu.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/channel-QEqJ8uFU.js +0 -1
- package/dist/assets/classDiagram-4FO5ZUOK-BLPqNsv6.js +0 -1
- package/dist/assets/classDiagram-v2-Q7XG4LA2-BLPqNsv6.js +0 -1
- package/dist/assets/index-DHAuvIGU.js +0 -363
- package/dist/assets/index-Du9vzYoW.css +0 -1
- package/dist/sitemap.xml +0 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Bm2RXT20.js","assets/vendor-react-BbEy7z12.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as T}from"./vendor-syntax-INF7-xC_.js";import{r as o,j as e}from"./vendor-react-BbEy7z12.js";import{c as R,e as W}from"./graphExportUtils-DrqBjeAI.js";import{u as M}from"./index-
|
|
2
|
+
import{_ as T}from"./vendor-syntax-INF7-xC_.js";import{r as o,j as e}from"./vendor-react-BbEy7z12.js";import{c as R,e as W}from"./graphExportUtils-DrqBjeAI.js";import{u as M}from"./index-ChQGVzAE.js";import"./locales-DqtY0sVQ.js";import"./vendor-markdown-Cy_-N5ZX.js";import"./vendor-auth-aD_bwYde.js";let d=null;const D=async()=>{if(typeof window>"u")throw new Error("abcjs requires a browser environment");if(d)return d;try{const r=await T(()=>import("./index-Bm2RXT20.js").then(i=>i.i),__vite__mapDeps([0,1])),t=r.default||r;if(!t)throw new Error("abcjs module is empty");if(typeof t.renderAbc!="function")throw new Error(`renderAbc is not a function. Available methods: ${Object.keys(t).join(", ")}`);return d=t,d}catch(r){const t=window;if(typeof window<"u"&&t.ABCJS)return d=t.ABCJS,d;const i=r instanceof Error?r.message:"Failed to load abcjs";throw new Error(`Failed to load abcjs: ${i}`)}},P=r=>{const t=r.trim();return/^[XMTLK]:/m.test(t)||/^X:\d+/m.test(t)},I=r=>{const t=r.trim();if(!t.includes("X:")||!/^K:/m.test(t))return!0;const u=t.split(`
|
|
3
3
|
`),n=u[u.length-1].trim();return!!(n.match(/^[A-Z]:?\s*$/)&&n.length<3||n.endsWith("|")&&!n.endsWith("|]")&&!n.endsWith("||")&&n.replace(/\|/g,"").trim().length<2)},F=({code:r})=>{const{t}=M(),i=o.useRef(null),[u,n]=o.useState(null),[f,p]=o.useState(!0),[a,m]=o.useState(!1),[x,w]=o.useState(!1),[j,E]=o.useState(!1),[y,S]=o.useState(!1),[b,v]=o.useState(!1),C=o.useRef(""),L=o.useRef(0),h=o.useRef(null);if(o.useEffect(()=>{const c=r.trim();if(!c)return;const s=Date.now(),l=s-L.current,k=r!==C.current;C.current=r,L.current=s;const g=I(c),N=k&&l<500&&l>0,A=g||N;if(g){setTimeout(()=>{m(!0),p(!0),n(null)},0);return}P(r)?setTimeout(()=>{w(!0),n(null),A&&m(!0)},0):setTimeout(()=>{w(!1),A?(m(!0),n(null)):(n("Unable to detect ABC notation. Expected ABC notation starting with headers like X:, T:, M:, L:, or K:"),p(!1),m(!1))},0)},[r]),o.useEffect(()=>!x||!r.trim()?void 0:(a&&(h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{m(!1)},400)),(async()=>{try{p(!0);let s=0;const l=10;for(;!i.current&&s<l;)await new Promise(g=>setTimeout(g,50)),s++;if(!i.current)throw new Error("Container element not found after waiting");const k=await D();i.current.innerHTML="",k.renderAbc(i.current,r,{responsive:"resize",staffwidth:740,paddingleft:0,paddingright:0,paddingtop:15,paddingbottom:15,scale:1}),n(null),p(!1)}catch(s){const l=s instanceof Error?s.message:"Failed to render ABC notation";n(l),p(!1)}})(),()=>{h.current&&clearTimeout(h.current)}),[r,x,a]),!r.trim())return null;if(u)return 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:u})]})]}),e.jsxs("button",{className:"graph-error-toggle",onClick:()=>E(!j),type:"button",children:[j?"Hide":"Show"," Details"]}),j&&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:r})})]})]});if((f||a)&&!x)return 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:a?"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{r as s,j as e}from"./vendor-react-BbEy7z12.js";import{p as D}from"./purify.es-D6gMnemd.js";import{c as M,e as E}from"./graphExportUtils-DrqBjeAI.js";import{u as B}from"./index-
|
|
1
|
+
import{r as s,j as e}from"./vendor-react-BbEy7z12.js";import{p as D}from"./purify.es-D6gMnemd.js";import{c as M,e as E}from"./graphExportUtils-DrqBjeAI.js";import{u as B}from"./index-ChQGVzAE.js";import"./locales-DqtY0sVQ.js";import"./vendor-markdown-Cy_-N5ZX.js";import"./vendor-syntax-INF7-xC_.js";import"./vendor-auth-aD_bwYde.js";const G=["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"],N=["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"],F=n=>{const t=n.trim();if(t.includes("<svg")&&!t.includes("</svg>"))return!0;const c=(t.match(/<[a-zA-Z][^/>]*>/g)||[]).length,r=(t.match(/<\/[a-zA-Z][^>]*>/g)||[]).length,i=(t.match(/<[a-zA-Z][^>]*\/>/g)||[]).length;return!!(c>r+i||t.match(/\s+\w+\s*=\s*["'][^"']*$/)||t.match(/<[a-zA-Z][^>]*$/))},P=n=>{const r=new DOMParser().parseFromString(n,"image/svg+xml").querySelector("svg");if(!r)return n;const i=r.getAttribute("width"),a=r.getAttribute("height"),g=r.getAttribute("viewBox");if(i&&a&&!g){const l=parseFloat(i)||100,d=parseFloat(a)||100;r.setAttribute("viewBox",`0 0 ${l} ${d}`)}return r.style.maxWidth||(r.style.maxWidth="100%"),r.style.height||(r.style.height="auto"),r.outerHTML},Z=({code:n})=>{const{t}=B(),[c,r]=s.useState(null),[i,a]=s.useState(null),[g,l]=s.useState(!1),[d,j]=s.useState(!1),[f,b]=s.useState(!1),[m,u]=s.useState(!1),w=s.useRef(null),x=s.useRef(null),k=s.useRef(""),v=s.useRef(0);if(s.useEffect(()=>{const p=n.trim();if(!p)return;const h=Date.now(),y=h-v.current,L=n!==k.current;k.current=n,v.current=h;const S=F(p),T=L&&y<500&&y>0,A=S||T;if(S){setTimeout(()=>{l(!0)},0);return}try{const o=D.sanitize(n,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:G,ADD_ATTR:N,ALLOW_DATA_ATTR:!1,FORBID_TAGS:["script","iframe","object","embed"],FORBID_ATTR:["onload","onerror","onclick","onmouseover"]});if(!o||o.trim().length===0)throw new Error("SVG sanitization resulted in empty content");if(!o.includes("<svg"))throw new Error("Content does not appear to be valid SVG");const R=P(o);setTimeout(()=>{r(R),a(null),l(!1)},0)}catch(o){setTimeout(A?()=>{l(!0),a(null)}:()=>{a(o instanceof Error?o.message:"Failed to process SVG"),l(!1)},0)}},[n]),!n.trim())return null;if(i)return 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:i})]})]}),e.jsxs("button",{className:"graph-error-toggle",onClick:()=>j(!d),type:"button",children:[d?"Hide":"Show"," Details"]}),d&&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:n})})]});if(!c||g)return 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:g?"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); }
|