orbitchat 3.11.7 → 3.11.9
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-BFQlovpe.js → ChartRenderer-wxEbPd5g.js} +1 -1
- package/dist/assets/{MermaidRenderer-DxunGWXF.js → MermaidRenderer-BMEgBeqY.js} +4 -4
- package/dist/assets/{MusicRenderer-qpZbjlwR.js → MusicRenderer-BMwa1p8w.js} +1 -1
- package/dist/assets/{SVGRenderer-DKegh4A9.js → SVGRenderer-BtiY9l8o.js} +1 -1
- package/dist/assets/{architectureDiagram-3BPJPVTR-jYJI0p77.js → architectureDiagram-3BPJPVTR-8fDAeSty.js} +1 -1
- package/dist/assets/{blockDiagram-GPEHLZMM-CbU7_hO5.js → blockDiagram-GPEHLZMM-DjjIkU_V.js} +1 -1
- package/dist/assets/{c4Diagram-AAUBKEIU-Bcq1htcJ.js → c4Diagram-AAUBKEIU-DPhpjeGs.js} +1 -1
- package/dist/assets/channel-BjJ0j4ky.js +1 -0
- package/dist/assets/{chunk-2J33WTMH-BEZdJIj6.js → chunk-2J33WTMH-B9jxVvJD.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-DaeeAboq.js → chunk-4BX2VUAB-Be2LTDDZ.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-hx4rlTxl.js → chunk-55IACEB6-CbX0vAQ4.js} +1 -1
- package/dist/assets/{chunk-727SXJPM-CSE1V8fn.js → chunk-727SXJPM-R7lhcdh3.js} +1 -1
- package/dist/assets/{chunk-AQP2D5EJ-DQBM809-.js → chunk-AQP2D5EJ-Dzfn3Tu4.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-BckzcK4u.js → chunk-FMBD7UC4-D4upRD6i.js} +1 -1
- package/dist/assets/{chunk-ND2GUHAM-BMzK4wvX.js → chunk-ND2GUHAM-BZHjki36.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-DJ8uGwmx.js → chunk-QZHKN3VN-CBtxaJPI.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-CX5VHnPT.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-CX5VHnPT.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-Di1XL2vj.js → cose-bilkent-S5V4N54A-CWY9mepe.js} +1 -1
- package/dist/assets/{dagre-BM42HDAG-DCQmHJFe.js → dagre-BM42HDAG-3sAW_Zso.js} +1 -1
- package/dist/assets/{diagram-2AECGRRQ-CIoTDcBh.js → diagram-2AECGRRQ-CIvaugjd.js} +1 -1
- package/dist/assets/{diagram-5GNKFQAL-eXz-XBDZ.js → diagram-5GNKFQAL-DiUrs1k7.js} +1 -1
- package/dist/assets/{diagram-KO2AKTUF-BhP7dgyb.js → diagram-KO2AKTUF-CvybWAmW.js} +1 -1
- package/dist/assets/{diagram-LMA3HP47-CvF4PpB2.js → diagram-LMA3HP47-BMpzQjf7.js} +1 -1
- package/dist/assets/{diagram-OG6HWLK6-C6s7GpY0.js → diagram-OG6HWLK6-DxdwVCcp.js} +1 -1
- package/dist/assets/{erDiagram-TEJ5UH35-Ck6BPVlP.js → erDiagram-TEJ5UH35-BsckieKA.js} +1 -1
- package/dist/assets/{flowDiagram-I6XJVG4X-C16g3xy-.js → flowDiagram-I6XJVG4X-QkrIRaVh.js} +1 -1
- package/dist/assets/{ganttDiagram-6RSMTGT7-Dj8_f5WA.js → ganttDiagram-6RSMTGT7-BmJWXjKf.js} +1 -1
- package/dist/assets/{gitGraphDiagram-PVQCEYII-CW1EUE5V.js → gitGraphDiagram-PVQCEYII-C5VXzACD.js} +1 -1
- package/dist/assets/index-DIvm40qq.js +376 -0
- package/dist/assets/index-Do5o2YQv.css +1 -0
- package/dist/assets/{infoDiagram-5YYISTIA-tVvy_A0i.js → infoDiagram-5YYISTIA-3ZefI0By.js} +1 -1
- package/dist/assets/{ishikawaDiagram-YF4QCWOH-CFlWu8EG.js → ishikawaDiagram-YF4QCWOH-CkPahGMo.js} +1 -1
- package/dist/assets/{journeyDiagram-JHISSGLW-U2atTlal.js → journeyDiagram-JHISSGLW-Bh3SbgzJ.js} +1 -1
- package/dist/assets/{kanban-definition-UN3LZRKU-BuHzHZFc.js → kanban-definition-UN3LZRKU-PW1rLFti.js} +1 -1
- package/dist/assets/{mindmap-definition-RKZ34NQL-DsfXQioK.js → mindmap-definition-RKZ34NQL-C3qUsbvW.js} +1 -1
- package/dist/assets/{pieDiagram-4H26LBE5-DSMuyJx3.js → pieDiagram-4H26LBE5-NhwALBxT.js} +1 -1
- package/dist/assets/{quadrantDiagram-W4KKPZXB-zCfGSXvL.js → quadrantDiagram-W4KKPZXB-DCRqhaIE.js} +1 -1
- package/dist/assets/{requirementDiagram-4Y6WPE33-R7qj84TH.js → requirementDiagram-4Y6WPE33-BMWJP_JX.js} +1 -1
- package/dist/assets/{sankeyDiagram-5OEKKPKP-B7Hu_h-R.js → sankeyDiagram-5OEKKPKP-iAz9Hee0.js} +1 -1
- package/dist/assets/{sequenceDiagram-3UESZ5HK-ONL4cscH.js → sequenceDiagram-3UESZ5HK-HMqFN3v8.js} +1 -1
- package/dist/assets/{stateDiagram-AJRCARHV-DzqLSEO8.js → stateDiagram-AJRCARHV-BPMWDBcG.js} +1 -1
- package/dist/assets/{stateDiagram-v2-BHNVJYJU-Cz0T5vOV.js → stateDiagram-v2-BHNVJYJU-D7-ipe-H.js} +1 -1
- package/dist/assets/{timeline-definition-PNZ67QCA-hn6ijLp0.js → timeline-definition-PNZ67QCA-qHVd0JP4.js} +1 -1
- package/dist/assets/{vennDiagram-CIIHVFJN-BRpVUYgJ.js → vennDiagram-CIIHVFJN-X2fo2aab.js} +1 -1
- package/dist/assets/{wardleyDiagram-YWT4CUSO-D9dBXp0j.js → wardleyDiagram-YWT4CUSO-CrSkg9bp.js} +1 -1
- package/dist/assets/{xychartDiagram-2RQKCTM6-CrHD1Lkr.js → xychartDiagram-2RQKCTM6-B7MIKLLH.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/channel-BtuqB4HX.js +0 -1
- package/dist/assets/classDiagram-4FO5ZUOK-DkhrU_NZ.js +0 -1
- package/dist/assets/classDiagram-v2-Q7XG4LA2-DkhrU_NZ.js +0 -1
- package/dist/assets/index-DS3jYAHC.js +0 -376
- package/dist/assets/index-GDO2KFQ0.css +0 -1
|
@@ -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-DIvm40qq.js";import"./locales-CcBtm6Ky.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-DIvm40qq.js";import"./locales-CcBtm6Ky.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); }
|