From 83cf93c4ea0128421daa50568264f7cc1a77970e Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Fri, 3 Apr 2026 16:20:37 +0200 Subject: [PATCH] deps: update @quartz-community/types and @quartz-community/utils --- dist/components/index.js | 2 +- dist/components/index.js.map | 2 +- dist/index.js | 2 +- dist/index.js.map | 2 +- package-lock.json | 19 +++---------------- 5 files changed, 7 insertions(+), 20 deletions(-) diff --git a/dist/components/index.js b/dist/components/index.js index 1329b18..8861a9c 100644 --- a/dist/components/index.js +++ b/dist/components/index.js @@ -26,7 +26,7 @@ function i18n(locale) { var graph_default = ".graph > h3 {\n font-size: 1rem;\n margin: 0;\n}\n.graph > .graph-outer {\n border-radius: 5px;\n border: 1px solid var(--lightgray);\n box-sizing: border-box;\n height: 250px;\n margin: 0.5em 0;\n position: relative;\n overflow: hidden;\n}\n.graph > .graph-outer > .global-graph-icon {\n cursor: pointer;\n background: none;\n border: none;\n color: var(--dark);\n opacity: 0.5;\n width: 24px;\n height: 24px;\n position: absolute;\n padding: 0.2rem;\n margin: 0.3rem;\n top: 0;\n right: 0;\n border-radius: 4px;\n background-color: transparent;\n transition: background-color 0.5s ease;\n}\n.graph > .graph-outer > .global-graph-icon:hover {\n background-color: var(--lightgray);\n}\n.graph > .global-graph-outer {\n position: fixed;\n z-index: 9999;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100%;\n backdrop-filter: blur(4px);\n display: none;\n overflow: hidden;\n}\n.graph > .global-graph-outer.active {\n display: inline-block;\n}\n.graph > .global-graph-outer > .global-graph-container {\n border: 1px solid var(--lightgray);\n background-color: var(--light);\n border-radius: 5px;\n box-sizing: border-box;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 80vh;\n width: 80vw;\n}\n@media all and (max-width: 800px) {\n .graph > .global-graph-outer > .global-graph-container {\n width: 90%;\n }\n}\n\n.graph-container {\n width: 100%;\n height: 100%;\n}"; // src/components/scripts/graph.inline.ts -var graph_inline_default = 'var Ft=Object.hasOwnProperty;var Fe,B,ce,Je,Y,ae,fe,_e,de,Mu,ju,Pu,Xe,Wu={},he=[],Ye=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mu=Array.isArray;function H(u,e){for(var t in e)u[t]=e[t];return u}function Ru(u){u&&u.parentNode&&u.parentNode.removeChild(u)}function Lu(u,e,t,o,a){var n={type:u,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++ce,__i:-1,__u:0};return a==null&&B.vnode!=null&&B.vnode(n),n}function iu(u){return u.children}function Au(u,e){this.props=u,this.context=e}function au(u,e){if(e==null)return u.__?au(u.__,u.__i+1):null;for(var t;ec&&Y.sort(_e),u=Y.shift(),c=Y.length,u.__d&&(t=void 0,o=void 0,a=(o=(e=u).__v).__e,n=[],s=[],e.__P&&((t=H({},o)).__v=o.__v+1,B.vnode&&B.vnode(t),Ee(e.__P,t,o,e.__n,e.__P.namespaceURI,32&o.__u?[a]:null,n,a??au(o),!!(32&o.__u),s),t.__v=o.__v,t.__.__k[t.__i]=t,ut(n,t,s),o.__e=o.__=null,t.__e!=a&&Ce(t)));gu.__r=0}function pe(u,e,t,o,a,n,s,c,C,i,d){var r,g,F,m,j,y,p,v=o&&o.__k||he,M=e.length;for(C=Ze(t,e,v,C,M),r=0;r0?s=u.__k[n]=Lu(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):u.__k[n]=s,C=n+g,s.__=u,s.__b=u.__b+1,c=null,(i=s.__i=Qe(s,t,C,r))!=-1&&(r--,(c=t[i])&&(c.__u|=2)),c==null||c.__v==null?(i==-1&&(a>d?g--:aC?g--:g++,s.__u|=4))):u.__k[n]=null;if(r)for(n=0;n(d?1:0)){for(a=t-1,n=t+1;a>=0||n=0?a--:n++])!=null&&(2&i.__u)==0&&c==i.key&&C==i.type)return s}return-1}function le(u,e,t){e[0]=="-"?u.setProperty(e,t??""):u[e]=t==null?"":typeof t!="number"||Ye.test(e)?t:t+"px"}function Eu(u,e,t,o,a){var n,s;u:if(e=="style")if(typeof t=="string")u.style.cssText=t;else{if(typeof o=="string"&&(u.style.cssText=o=""),o)for(e in o)t&&e in t||le(u.style,e,"");if(t)for(e in t)o&&t[e]==o[e]||le(u.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")n=e!=(e=e.replace(de,"$1")),s=e.toLowerCase(),e=s in u||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),u.l||(u.l={}),u.l[e+n]=t,t?o?t.u=o.u:(t.u=Mu,u.addEventListener(e,n?Pu:ju,n)):u.removeEventListener(e,n?Pu:ju,n);else{if(a=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in u)try{u[e]=t??"";break u}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?u.removeAttribute(e):u.setAttribute(e,e=="popover"&&t==1?"":t))}}function se(u){return function(e){if(this.l){var t=this.l[e.type+u];if(e.t==null)e.t=Mu++;else if(e.t0?u:mu(u)?u.map(Ae):H({},u)}function et(u,e,t,o,a,n,s,c,C){var i,d,r,g,F,m,j,y=t.props||Wu,p=e.props,v=e.type;if(v=="svg"?a="http://www.w3.org/2000/svg":v=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),n!=null){for(i=0;i"u"?"":document.body?.dataset?.basepath??""}function Ou(u,e){let t=e??nt(),o=u.startsWith("/")?u:"/"+u;return t+o}function ot(u,e){return u===e||u.endsWith("/"+e)}function Dt(u,e){return ot(u,e)&&(u=u.slice(0,-e.length)),u}function at(u,e){return u.startsWith("/")&&(u=u.substring(1)),!e&&u.endsWith("/")&&(u=u.slice(0,-1)),u}function me(u){for(;u.firstChild;)u.removeChild(u.firstChild)}(function(){function u(t){return new Promise(function(o,a){var n=document.createElement("script");n.src=t,n.onload=o,n.onerror=a,document.head.appendChild(n)})}Promise.all([u("https://cdn.jsdelivr.net/npm/d3@7/dist/d3.min.js"),u("https://cdn.jsdelivr.net/npm/pixi.js@8/dist/pixi.js")]).then(function(){e()}).catch(function(t){console.error("[Graph] Failed to load libraries:",t)});function e(){var t=window.d3,o=window.PIXI;if(!t||!o){console.error("[Graph] Libraries not loaded");return}var a="graph-visited";function n(){return new Set(JSON.parse(localStorage.getItem(a)||"[]"))}function s(_){var b=n();b.add(_),localStorage.setItem(a,JSON.stringify(Array.from(b)))}async function c(_,b,x){var h=lu(b);h===""&&(h="index");var W=n();if(me(_),x!==void 0&&x!==d)return console.log("[Graph] Stale render, skipping"),function(){};var w=JSON.parse(_.dataset.cfg||"{}"),Fu=w.drag,Be=w.zoom,Gu=w.depth,Iu=w.scale||1,ye=w.repelForce||.5,be=w.centerForce||.3,xe=w.linkDistance||30,we=w.fontSize||.6,ke=w.opacityScale||1,Se=w.removeTags||[],Le=w.showTags,je=w.focusOnHover,Pe=w.enableRadial,Z;try{var Nu=await fetchData;Z=new Map;for(var zu in Nu)Z.set(lu(zu),Nu[zu])}catch(D){return console.error("[Graph] Error loading data:",D),function(){}}var U=_.offsetWidth,O=Math.max(_.offsetHeight,250),Q=[],fu=[],Hu=new Set(Z.keys());Z.forEach(function(D,l){for(var f=D.links||[],A=0;A=0)for(var _u=[h],du=new Set([h]),$u=0;$u<=Gu&&_u.length>0;$u++){for(var Bu=[],yu=0;yu<_u.length;yu++){var bu=_u[yu];uu.add(bu);for(var xu=0;xu = {\n \"en-US\": enUS,\n};\n\nexport function i18n(locale: string) {\n return locales[locale] || enUS;\n}\n",".graph > h3 {\n font-size: 1rem;\n margin: 0;\n}\n.graph > .graph-outer {\n border-radius: 5px;\n border: 1px solid var(--lightgray);\n box-sizing: border-box;\n height: 250px;\n margin: 0.5em 0;\n position: relative;\n overflow: hidden;\n}\n.graph > .graph-outer > .global-graph-icon {\n cursor: pointer;\n background: none;\n border: none;\n color: var(--dark);\n opacity: 0.5;\n width: 24px;\n height: 24px;\n position: absolute;\n padding: 0.2rem;\n margin: 0.3rem;\n top: 0;\n right: 0;\n border-radius: 4px;\n background-color: transparent;\n transition: background-color 0.5s ease;\n}\n.graph > .graph-outer > .global-graph-icon:hover {\n background-color: var(--lightgray);\n}\n.graph > .global-graph-outer {\n position: fixed;\n z-index: 9999;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100%;\n backdrop-filter: blur(4px);\n display: none;\n overflow: hidden;\n}\n.graph > .global-graph-outer.active {\n display: inline-block;\n}\n.graph > .global-graph-outer > .global-graph-container {\n border: 1px solid var(--lightgray);\n background-color: var(--light);\n border-radius: 5px;\n box-sizing: border-box;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 80vh;\n width: 80vw;\n}\n@media all and (max-width: 800px) {\n .graph > .global-graph-outer > .global-graph-container {\n width: 90%;\n }\n}\n\n.graph-container {\n width: 100%;\n height: 100%;\n}","var Ft=Object.hasOwnProperty;var Fe,B,ce,Je,Y,ae,fe,_e,de,Mu,ju,Pu,Xe,Wu={},he=[],Ye=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mu=Array.isArray;function H(u,e){for(var t in e)u[t]=e[t];return u}function Ru(u){u&&u.parentNode&&u.parentNode.removeChild(u)}function Lu(u,e,t,o,a){var n={type:u,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++ce,__i:-1,__u:0};return a==null&&B.vnode!=null&&B.vnode(n),n}function iu(u){return u.children}function Au(u,e){this.props=u,this.context=e}function au(u,e){if(e==null)return u.__?au(u.__,u.__i+1):null;for(var t;ec&&Y.sort(_e),u=Y.shift(),c=Y.length,u.__d&&(t=void 0,o=void 0,a=(o=(e=u).__v).__e,n=[],s=[],e.__P&&((t=H({},o)).__v=o.__v+1,B.vnode&&B.vnode(t),Ee(e.__P,t,o,e.__n,e.__P.namespaceURI,32&o.__u?[a]:null,n,a??au(o),!!(32&o.__u),s),t.__v=o.__v,t.__.__k[t.__i]=t,ut(n,t,s),o.__e=o.__=null,t.__e!=a&&Ce(t)));gu.__r=0}function pe(u,e,t,o,a,n,s,c,C,i,d){var r,g,F,m,j,y,p,v=o&&o.__k||he,M=e.length;for(C=Ze(t,e,v,C,M),r=0;r0?s=u.__k[n]=Lu(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):u.__k[n]=s,C=n+g,s.__=u,s.__b=u.__b+1,c=null,(i=s.__i=Qe(s,t,C,r))!=-1&&(r--,(c=t[i])&&(c.__u|=2)),c==null||c.__v==null?(i==-1&&(a>d?g--:aC?g--:g++,s.__u|=4))):u.__k[n]=null;if(r)for(n=0;n(d?1:0)){for(a=t-1,n=t+1;a>=0||n=0?a--:n++])!=null&&(2&i.__u)==0&&c==i.key&&C==i.type)return s}return-1}function le(u,e,t){e[0]==\"-\"?u.setProperty(e,t??\"\"):u[e]=t==null?\"\":typeof t!=\"number\"||Ye.test(e)?t:t+\"px\"}function Eu(u,e,t,o,a){var n,s;u:if(e==\"style\")if(typeof t==\"string\")u.style.cssText=t;else{if(typeof o==\"string\"&&(u.style.cssText=o=\"\"),o)for(e in o)t&&e in t||le(u.style,e,\"\");if(t)for(e in t)o&&t[e]==o[e]||le(u.style,e,t[e])}else if(e[0]==\"o\"&&e[1]==\"n\")n=e!=(e=e.replace(de,\"$1\")),s=e.toLowerCase(),e=s in u||e==\"onFocusOut\"||e==\"onFocusIn\"?s.slice(2):e.slice(2),u.l||(u.l={}),u.l[e+n]=t,t?o?t.u=o.u:(t.u=Mu,u.addEventListener(e,n?Pu:ju,n)):u.removeEventListener(e,n?Pu:ju,n);else{if(a==\"http://www.w3.org/2000/svg\")e=e.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(e!=\"width\"&&e!=\"height\"&&e!=\"href\"&&e!=\"list\"&&e!=\"form\"&&e!=\"tabIndex\"&&e!=\"download\"&&e!=\"rowSpan\"&&e!=\"colSpan\"&&e!=\"role\"&&e!=\"popover\"&&e in u)try{u[e]=t??\"\";break u}catch{}typeof t==\"function\"||(t==null||t===!1&&e[4]!=\"-\"?u.removeAttribute(e):u.setAttribute(e,e==\"popover\"&&t==1?\"\":t))}}function se(u){return function(e){if(this.l){var t=this.l[e.type+u];if(e.t==null)e.t=Mu++;else if(e.t0?u:mu(u)?u.map(Ae):H({},u)}function et(u,e,t,o,a,n,s,c,C){var i,d,r,g,F,m,j,y=t.props||Wu,p=e.props,v=e.type;if(v==\"svg\"?a=\"http://www.w3.org/2000/svg\":v==\"math\"?a=\"http://www.w3.org/1998/Math/MathML\":a||(a=\"http://www.w3.org/1999/xhtml\"),n!=null){for(i=0;i\"u\"?\"\":document.body?.dataset?.basepath??\"\"}function Ou(u,e){let t=e??nt(),o=u.startsWith(\"/\")?u:\"/\"+u;return t+o}function ot(u,e){return u===e||u.endsWith(\"/\"+e)}function Dt(u,e){return ot(u,e)&&(u=u.slice(0,-e.length)),u}function at(u,e){return u.startsWith(\"/\")&&(u=u.substring(1)),!e&&u.endsWith(\"/\")&&(u=u.slice(0,-1)),u}function me(u){for(;u.firstChild;)u.removeChild(u.firstChild)}(function(){function u(t){return new Promise(function(o,a){var n=document.createElement(\"script\");n.src=t,n.onload=o,n.onerror=a,document.head.appendChild(n)})}Promise.all([u(\"https://cdn.jsdelivr.net/npm/d3@7/dist/d3.min.js\"),u(\"https://cdn.jsdelivr.net/npm/pixi.js@8/dist/pixi.js\")]).then(function(){e()}).catch(function(t){console.error(\"[Graph] Failed to load libraries:\",t)});function e(){var t=window.d3,o=window.PIXI;if(!t||!o){console.error(\"[Graph] Libraries not loaded\");return}var a=\"graph-visited\";function n(){return new Set(JSON.parse(localStorage.getItem(a)||\"[]\"))}function s(_){var b=n();b.add(_),localStorage.setItem(a,JSON.stringify(Array.from(b)))}async function c(_,b,x){var h=lu(b);h===\"\"&&(h=\"index\");var W=n();if(me(_),x!==void 0&&x!==d)return console.log(\"[Graph] Stale render, skipping\"),function(){};var w=JSON.parse(_.dataset.cfg||\"{}\"),Fu=w.drag,Be=w.zoom,Gu=w.depth,Iu=w.scale||1,ye=w.repelForce||.5,be=w.centerForce||.3,xe=w.linkDistance||30,we=w.fontSize||.6,ke=w.opacityScale||1,Se=w.removeTags||[],Le=w.showTags,je=w.focusOnHover,Pe=w.enableRadial,Z;try{var Nu=await fetchData;Z=new Map;for(var zu in Nu)Z.set(lu(zu),Nu[zu])}catch(D){return console.error(\"[Graph] Error loading data:\",D),function(){}}var U=_.offsetWidth,O=Math.max(_.offsetHeight,250),Q=[],fu=[],Hu=new Set(Z.keys());Z.forEach(function(D,l){for(var f=D.links||[],A=0;A=0)for(var _u=[h],du=new Set([h]),$u=0;$u<=Gu&&_u.length>0;$u++){for(var Bu=[],yu=0;yu<_u.length;yu++){var bu=_u[yu];uu.add(bu);for(var xu=0;xu;\n globalGraph?: Partial;\n}\n\nconst defaultOptions: GraphOptions = {\n localGraph: {\n drag: true,\n zoom: true,\n depth: 1,\n scale: 1.1,\n repelForce: 0.5,\n centerForce: 0.3,\n linkDistance: 30,\n fontSize: 0.6,\n opacityScale: 1,\n showTags: true,\n removeTags: [],\n focusOnHover: false,\n enableRadial: false,\n },\n globalGraph: {\n drag: true,\n zoom: true,\n depth: -1,\n scale: 0.9,\n repelForce: 0.5,\n centerForce: 0.2,\n linkDistance: 30,\n fontSize: 0.6,\n opacityScale: 1,\n showTags: true,\n removeTags: [],\n focusOnHover: true,\n enableRadial: true,\n },\n};\n\nexport default ((userOpts?: Partial) => {\n const Graph: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {\n const localGraph = { ...defaultOptions.localGraph, ...userOpts?.localGraph };\n const globalGraph = { ...defaultOptions.globalGraph, ...userOpts?.globalGraph };\n\n return (\n
\n

{i18n(cfg.locale ?? \"en-US\").components.graph.title}

\n
\n
\n \n
\n
\n
\n
\n
\n );\n };\n\n Graph.css = style;\n Graph.afterDOMLoaded = script;\n\n return Graph;\n}) satisfies QuartzComponentConstructor;\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/util/lang.ts","../../src/i18n/locales/en-US.ts","../../src/i18n/index.ts","../../src/components/styles/graph.scss","../../src/components/scripts/graph.inline.ts","../../src/components/Graph.tsx"],"names":[],"mappings":"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","file":"index.js","sourcesContent":["export function classNames(...classes: (string | undefined | null | false)[]): string {\n return classes.filter(Boolean).join(\" \");\n}\n","export default {\n components: {\n graph: {\n title: \"Graph View\",\n },\n },\n};\n","import enUS from \"./locales/en-US\";\n\nconst locales: Record = {\n \"en-US\": enUS,\n};\n\nexport function i18n(locale: string) {\n return locales[locale] || enUS;\n}\n",".graph > h3 {\n font-size: 1rem;\n margin: 0;\n}\n.graph > .graph-outer {\n border-radius: 5px;\n border: 1px solid var(--lightgray);\n box-sizing: border-box;\n height: 250px;\n margin: 0.5em 0;\n position: relative;\n overflow: hidden;\n}\n.graph > .graph-outer > .global-graph-icon {\n cursor: pointer;\n background: none;\n border: none;\n color: var(--dark);\n opacity: 0.5;\n width: 24px;\n height: 24px;\n position: absolute;\n padding: 0.2rem;\n margin: 0.3rem;\n top: 0;\n right: 0;\n border-radius: 4px;\n background-color: transparent;\n transition: background-color 0.5s ease;\n}\n.graph > .graph-outer > .global-graph-icon:hover {\n background-color: var(--lightgray);\n}\n.graph > .global-graph-outer {\n position: fixed;\n z-index: 9999;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100%;\n backdrop-filter: blur(4px);\n display: none;\n overflow: hidden;\n}\n.graph > .global-graph-outer.active {\n display: inline-block;\n}\n.graph > .global-graph-outer > .global-graph-container {\n border: 1px solid var(--lightgray);\n background-color: var(--light);\n border-radius: 5px;\n box-sizing: border-box;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 80vh;\n width: 80vw;\n}\n@media all and (max-width: 800px) {\n .graph > .global-graph-outer > .global-graph-container {\n width: 90%;\n }\n}\n\n.graph-container {\n width: 100%;\n height: 100%;\n}","var Ft=Object.hasOwnProperty;var Fe,B,ce,Je,Y,ie,fe,_e,de,Mu,Pu,ju,Xe,Tu={},he=[],Ye=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mu=Array.isArray;function z(u,e){for(var t in e)u[t]=e[t];return u}function Uu(u){u&&u.parentNode&&u.parentNode.removeChild(u)}function Lu(u,e,t,o,i){var n={type:u,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ce,__i:-1,__u:0};return i==null&&B.vnode!=null&&B.vnode(n),n}function Du(u){return u.children}function Au(u,e){this.props=u,this.context=e}function iu(u,e){if(e==null)return u.__?iu(u.__,u.__i+1):null;for(var t;ec&&Y.sort(_e),u=Y.shift(),c=Y.length,u.__d&&(t=void 0,o=void 0,i=(o=(e=u).__v).__e,n=[],s=[],e.__P&&((t=z({},o)).__v=o.__v+1,B.vnode&&B.vnode(t),Ee(e.__P,t,o,e.__n,e.__P.namespaceURI,32&o.__u?[i]:null,n,i??iu(o),!!(32&o.__u),s),t.__v=o.__v,t.__.__k[t.__i]=t,ut(n,t,s),o.__e=o.__=null,t.__e!=i&&Ce(t)));gu.__r=0}function pe(u,e,t,o,i,n,s,c,C,D,d){var r,g,F,m,P,y,p,v=o&&o.__k||he,M=e.length;for(C=Ze(t,e,v,C,M),r=0;r0?s=u.__k[n]=Lu(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):u.__k[n]=s,C=n+g,s.__=u,s.__b=u.__b+1,c=null,(D=s.__i=Qe(s,t,C,r))!=-1&&(r--,(c=t[D])&&(c.__u|=2)),c==null||c.__v==null?(D==-1&&(i>d?g--:iC?g--:g++,s.__u|=4))):u.__k[n]=null;if(r)for(n=0;n(d?1:0)){for(i=t-1,n=t+1;i>=0||n=0?i--:n++])!=null&&(2&D.__u)==0&&c==D.key&&C==D.type)return s}return-1}function le(u,e,t){e[0]==\"-\"?u.setProperty(e,t??\"\"):u[e]=t==null?\"\":typeof t!=\"number\"||Ye.test(e)?t:t+\"px\"}function Eu(u,e,t,o,i){var n,s;u:if(e==\"style\")if(typeof t==\"string\")u.style.cssText=t;else{if(typeof o==\"string\"&&(u.style.cssText=o=\"\"),o)for(e in o)t&&e in t||le(u.style,e,\"\");if(t)for(e in t)o&&t[e]==o[e]||le(u.style,e,t[e])}else if(e[0]==\"o\"&&e[1]==\"n\")n=e!=(e=e.replace(de,\"$1\")),s=e.toLowerCase(),e=s in u||e==\"onFocusOut\"||e==\"onFocusIn\"?s.slice(2):e.slice(2),u.l||(u.l={}),u.l[e+n]=t,t?o?t.u=o.u:(t.u=Mu,u.addEventListener(e,n?ju:Pu,n)):u.removeEventListener(e,n?ju:Pu,n);else{if(i==\"http://www.w3.org/2000/svg\")e=e.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(e!=\"width\"&&e!=\"height\"&&e!=\"href\"&&e!=\"list\"&&e!=\"form\"&&e!=\"tabIndex\"&&e!=\"download\"&&e!=\"rowSpan\"&&e!=\"colSpan\"&&e!=\"role\"&&e!=\"popover\"&&e in u)try{u[e]=t??\"\";break u}catch{}typeof t==\"function\"||(t==null||t===!1&&e[4]!=\"-\"?u.removeAttribute(e):u.setAttribute(e,e==\"popover\"&&t==1?\"\":t))}}function se(u){return function(e){if(this.l){var t=this.l[e.type+u];if(e.t==null)e.t=Mu++;else if(e.t0?u:mu(u)?u.map(Ae):z({},u)}function et(u,e,t,o,i,n,s,c,C){var D,d,r,g,F,m,P,y=t.props||Tu,p=e.props,v=e.type;if(v==\"svg\"?i=\"http://www.w3.org/2000/svg\":v==\"math\"?i=\"http://www.w3.org/1998/Math/MathML\":i||(i=\"http://www.w3.org/1999/xhtml\"),n!=null){for(D=0;D\"u\"?\"\":document.body?.dataset?.basepath??\"\"}function Ou(u,e){let t=e??nt(),o=u.startsWith(\"/\")?u:\"/\"+u;return t+o}function ot(u,e){return u===e||u.endsWith(\"/\"+e)}function at(u,e){return ot(u,e)&&(u=u.slice(0,-e.length)),u}function it(u,e){return u.startsWith(\"/\")&&(u=u.substring(1)),!e&&u.endsWith(\"/\")&&(u=u.slice(0,-1)),u}function me(u){for(;u.firstChild;)u.removeChild(u.firstChild)}(function(){function u(t){return new Promise(function(o,i){var n=document.createElement(\"script\");n.src=t,n.onload=o,n.onerror=i,document.head.appendChild(n)})}Promise.all([u(\"https://cdn.jsdelivr.net/npm/d3@7/dist/d3.min.js\"),u(\"https://cdn.jsdelivr.net/npm/pixi.js@8/dist/pixi.js\")]).then(function(){e()}).catch(function(t){console.error(\"[Graph] Failed to load libraries:\",t)});function e(){var t=window.d3,o=window.PIXI;if(!t||!o){console.error(\"[Graph] Libraries not loaded\");return}var i=\"graph-visited\";function n(){return new Set(JSON.parse(localStorage.getItem(i)||\"[]\"))}function s(_){var b=n();b.add(_),localStorage.setItem(i,JSON.stringify(Array.from(b)))}async function c(_,b,x){var h=lu(b);h===\"\"&&(h=\"index\");var T=n();if(me(_),x!==void 0&&x!==d)return console.log(\"[Graph] Stale render, skipping\"),function(){};var w=JSON.parse(_.dataset.cfg||\"{}\"),Fu=w.drag,Be=w.zoom,Gu=w.depth,Iu=w.scale||1,ye=w.repelForce||.5,be=w.centerForce||.3,xe=w.linkDistance||30,we=w.fontSize||.6,Se=w.opacityScale||1,ke=w.removeTags||[],Le=w.showTags,Pe=w.focusOnHover,je=w.enableRadial,Z;try{var Nu=await fetchData;Z=new Map;for(var $u in Nu)Z.set(lu($u),Nu[$u])}catch(a){return console.error(\"[Graph] Error loading data:\",a),function(){}}var R=_.offsetWidth,O=Math.max(_.offsetHeight,250),Q=[],fu=[],zu=new Set(Z.keys());Z.forEach(function(a,l){for(var f=a.links||[],A=0;A=0)for(var _u=[h],du=new Set([h]),Hu=0;Hu<=Gu&&_u.length>0;Hu++){for(var Bu=[],yu=0;yu<_u.length;yu++){var bu=_u[yu];uu.add(bu);for(var xu=0;xu;\n globalGraph?: Partial;\n}\n\nconst defaultOptions: GraphOptions = {\n localGraph: {\n drag: true,\n zoom: true,\n depth: 1,\n scale: 1.1,\n repelForce: 0.5,\n centerForce: 0.3,\n linkDistance: 30,\n fontSize: 0.6,\n opacityScale: 1,\n showTags: true,\n removeTags: [],\n focusOnHover: false,\n enableRadial: false,\n },\n globalGraph: {\n drag: true,\n zoom: true,\n depth: -1,\n scale: 0.9,\n repelForce: 0.5,\n centerForce: 0.2,\n linkDistance: 30,\n fontSize: 0.6,\n opacityScale: 1,\n showTags: true,\n removeTags: [],\n focusOnHover: true,\n enableRadial: true,\n },\n};\n\nexport default ((userOpts?: Partial) => {\n const Graph: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {\n const localGraph = { ...defaultOptions.localGraph, ...userOpts?.localGraph };\n const globalGraph = { ...defaultOptions.globalGraph, ...userOpts?.globalGraph };\n\n return (\n
\n

{i18n(cfg.locale ?? \"en-US\").components.graph.title}

\n
\n
\n \n
\n
\n
\n
\n
\n );\n };\n\n Graph.css = style;\n Graph.afterDOMLoaded = script;\n\n return Graph;\n}) satisfies QuartzComponentConstructor;\n"]} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 1329b18..8861a9c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26,7 +26,7 @@ function i18n(locale) { var graph_default = ".graph > h3 {\n font-size: 1rem;\n margin: 0;\n}\n.graph > .graph-outer {\n border-radius: 5px;\n border: 1px solid var(--lightgray);\n box-sizing: border-box;\n height: 250px;\n margin: 0.5em 0;\n position: relative;\n overflow: hidden;\n}\n.graph > .graph-outer > .global-graph-icon {\n cursor: pointer;\n background: none;\n border: none;\n color: var(--dark);\n opacity: 0.5;\n width: 24px;\n height: 24px;\n position: absolute;\n padding: 0.2rem;\n margin: 0.3rem;\n top: 0;\n right: 0;\n border-radius: 4px;\n background-color: transparent;\n transition: background-color 0.5s ease;\n}\n.graph > .graph-outer > .global-graph-icon:hover {\n background-color: var(--lightgray);\n}\n.graph > .global-graph-outer {\n position: fixed;\n z-index: 9999;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100%;\n backdrop-filter: blur(4px);\n display: none;\n overflow: hidden;\n}\n.graph > .global-graph-outer.active {\n display: inline-block;\n}\n.graph > .global-graph-outer > .global-graph-container {\n border: 1px solid var(--lightgray);\n background-color: var(--light);\n border-radius: 5px;\n box-sizing: border-box;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 80vh;\n width: 80vw;\n}\n@media all and (max-width: 800px) {\n .graph > .global-graph-outer > .global-graph-container {\n width: 90%;\n }\n}\n\n.graph-container {\n width: 100%;\n height: 100%;\n}"; // src/components/scripts/graph.inline.ts -var graph_inline_default = 'var Ft=Object.hasOwnProperty;var Fe,B,ce,Je,Y,ae,fe,_e,de,Mu,ju,Pu,Xe,Wu={},he=[],Ye=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mu=Array.isArray;function H(u,e){for(var t in e)u[t]=e[t];return u}function Ru(u){u&&u.parentNode&&u.parentNode.removeChild(u)}function Lu(u,e,t,o,a){var n={type:u,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++ce,__i:-1,__u:0};return a==null&&B.vnode!=null&&B.vnode(n),n}function iu(u){return u.children}function Au(u,e){this.props=u,this.context=e}function au(u,e){if(e==null)return u.__?au(u.__,u.__i+1):null;for(var t;ec&&Y.sort(_e),u=Y.shift(),c=Y.length,u.__d&&(t=void 0,o=void 0,a=(o=(e=u).__v).__e,n=[],s=[],e.__P&&((t=H({},o)).__v=o.__v+1,B.vnode&&B.vnode(t),Ee(e.__P,t,o,e.__n,e.__P.namespaceURI,32&o.__u?[a]:null,n,a??au(o),!!(32&o.__u),s),t.__v=o.__v,t.__.__k[t.__i]=t,ut(n,t,s),o.__e=o.__=null,t.__e!=a&&Ce(t)));gu.__r=0}function pe(u,e,t,o,a,n,s,c,C,i,d){var r,g,F,m,j,y,p,v=o&&o.__k||he,M=e.length;for(C=Ze(t,e,v,C,M),r=0;r0?s=u.__k[n]=Lu(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):u.__k[n]=s,C=n+g,s.__=u,s.__b=u.__b+1,c=null,(i=s.__i=Qe(s,t,C,r))!=-1&&(r--,(c=t[i])&&(c.__u|=2)),c==null||c.__v==null?(i==-1&&(a>d?g--:aC?g--:g++,s.__u|=4))):u.__k[n]=null;if(r)for(n=0;n(d?1:0)){for(a=t-1,n=t+1;a>=0||n=0?a--:n++])!=null&&(2&i.__u)==0&&c==i.key&&C==i.type)return s}return-1}function le(u,e,t){e[0]=="-"?u.setProperty(e,t??""):u[e]=t==null?"":typeof t!="number"||Ye.test(e)?t:t+"px"}function Eu(u,e,t,o,a){var n,s;u:if(e=="style")if(typeof t=="string")u.style.cssText=t;else{if(typeof o=="string"&&(u.style.cssText=o=""),o)for(e in o)t&&e in t||le(u.style,e,"");if(t)for(e in t)o&&t[e]==o[e]||le(u.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")n=e!=(e=e.replace(de,"$1")),s=e.toLowerCase(),e=s in u||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),u.l||(u.l={}),u.l[e+n]=t,t?o?t.u=o.u:(t.u=Mu,u.addEventListener(e,n?Pu:ju,n)):u.removeEventListener(e,n?Pu:ju,n);else{if(a=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in u)try{u[e]=t??"";break u}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?u.removeAttribute(e):u.setAttribute(e,e=="popover"&&t==1?"":t))}}function se(u){return function(e){if(this.l){var t=this.l[e.type+u];if(e.t==null)e.t=Mu++;else if(e.t0?u:mu(u)?u.map(Ae):H({},u)}function et(u,e,t,o,a,n,s,c,C){var i,d,r,g,F,m,j,y=t.props||Wu,p=e.props,v=e.type;if(v=="svg"?a="http://www.w3.org/2000/svg":v=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),n!=null){for(i=0;i"u"?"":document.body?.dataset?.basepath??""}function Ou(u,e){let t=e??nt(),o=u.startsWith("/")?u:"/"+u;return t+o}function ot(u,e){return u===e||u.endsWith("/"+e)}function Dt(u,e){return ot(u,e)&&(u=u.slice(0,-e.length)),u}function at(u,e){return u.startsWith("/")&&(u=u.substring(1)),!e&&u.endsWith("/")&&(u=u.slice(0,-1)),u}function me(u){for(;u.firstChild;)u.removeChild(u.firstChild)}(function(){function u(t){return new Promise(function(o,a){var n=document.createElement("script");n.src=t,n.onload=o,n.onerror=a,document.head.appendChild(n)})}Promise.all([u("https://cdn.jsdelivr.net/npm/d3@7/dist/d3.min.js"),u("https://cdn.jsdelivr.net/npm/pixi.js@8/dist/pixi.js")]).then(function(){e()}).catch(function(t){console.error("[Graph] Failed to load libraries:",t)});function e(){var t=window.d3,o=window.PIXI;if(!t||!o){console.error("[Graph] Libraries not loaded");return}var a="graph-visited";function n(){return new Set(JSON.parse(localStorage.getItem(a)||"[]"))}function s(_){var b=n();b.add(_),localStorage.setItem(a,JSON.stringify(Array.from(b)))}async function c(_,b,x){var h=lu(b);h===""&&(h="index");var W=n();if(me(_),x!==void 0&&x!==d)return console.log("[Graph] Stale render, skipping"),function(){};var w=JSON.parse(_.dataset.cfg||"{}"),Fu=w.drag,Be=w.zoom,Gu=w.depth,Iu=w.scale||1,ye=w.repelForce||.5,be=w.centerForce||.3,xe=w.linkDistance||30,we=w.fontSize||.6,ke=w.opacityScale||1,Se=w.removeTags||[],Le=w.showTags,je=w.focusOnHover,Pe=w.enableRadial,Z;try{var Nu=await fetchData;Z=new Map;for(var zu in Nu)Z.set(lu(zu),Nu[zu])}catch(D){return console.error("[Graph] Error loading data:",D),function(){}}var U=_.offsetWidth,O=Math.max(_.offsetHeight,250),Q=[],fu=[],Hu=new Set(Z.keys());Z.forEach(function(D,l){for(var f=D.links||[],A=0;A=0)for(var _u=[h],du=new Set([h]),$u=0;$u<=Gu&&_u.length>0;$u++){for(var Bu=[],yu=0;yu<_u.length;yu++){var bu=_u[yu];uu.add(bu);for(var xu=0;xu = {\n \"en-US\": enUS,\n};\n\nexport function i18n(locale: string) {\n return locales[locale] || enUS;\n}\n",".graph > h3 {\n font-size: 1rem;\n margin: 0;\n}\n.graph > .graph-outer {\n border-radius: 5px;\n border: 1px solid var(--lightgray);\n box-sizing: border-box;\n height: 250px;\n margin: 0.5em 0;\n position: relative;\n overflow: hidden;\n}\n.graph > .graph-outer > .global-graph-icon {\n cursor: pointer;\n background: none;\n border: none;\n color: var(--dark);\n opacity: 0.5;\n width: 24px;\n height: 24px;\n position: absolute;\n padding: 0.2rem;\n margin: 0.3rem;\n top: 0;\n right: 0;\n border-radius: 4px;\n background-color: transparent;\n transition: background-color 0.5s ease;\n}\n.graph > .graph-outer > .global-graph-icon:hover {\n background-color: var(--lightgray);\n}\n.graph > .global-graph-outer {\n position: fixed;\n z-index: 9999;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100%;\n backdrop-filter: blur(4px);\n display: none;\n overflow: hidden;\n}\n.graph > .global-graph-outer.active {\n display: inline-block;\n}\n.graph > .global-graph-outer > .global-graph-container {\n border: 1px solid var(--lightgray);\n background-color: var(--light);\n border-radius: 5px;\n box-sizing: border-box;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 80vh;\n width: 80vw;\n}\n@media all and (max-width: 800px) {\n .graph > .global-graph-outer > .global-graph-container {\n width: 90%;\n }\n}\n\n.graph-container {\n width: 100%;\n height: 100%;\n}","var Ft=Object.hasOwnProperty;var Fe,B,ce,Je,Y,ae,fe,_e,de,Mu,ju,Pu,Xe,Wu={},he=[],Ye=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mu=Array.isArray;function H(u,e){for(var t in e)u[t]=e[t];return u}function Ru(u){u&&u.parentNode&&u.parentNode.removeChild(u)}function Lu(u,e,t,o,a){var n={type:u,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++ce,__i:-1,__u:0};return a==null&&B.vnode!=null&&B.vnode(n),n}function iu(u){return u.children}function Au(u,e){this.props=u,this.context=e}function au(u,e){if(e==null)return u.__?au(u.__,u.__i+1):null;for(var t;ec&&Y.sort(_e),u=Y.shift(),c=Y.length,u.__d&&(t=void 0,o=void 0,a=(o=(e=u).__v).__e,n=[],s=[],e.__P&&((t=H({},o)).__v=o.__v+1,B.vnode&&B.vnode(t),Ee(e.__P,t,o,e.__n,e.__P.namespaceURI,32&o.__u?[a]:null,n,a??au(o),!!(32&o.__u),s),t.__v=o.__v,t.__.__k[t.__i]=t,ut(n,t,s),o.__e=o.__=null,t.__e!=a&&Ce(t)));gu.__r=0}function pe(u,e,t,o,a,n,s,c,C,i,d){var r,g,F,m,j,y,p,v=o&&o.__k||he,M=e.length;for(C=Ze(t,e,v,C,M),r=0;r0?s=u.__k[n]=Lu(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):u.__k[n]=s,C=n+g,s.__=u,s.__b=u.__b+1,c=null,(i=s.__i=Qe(s,t,C,r))!=-1&&(r--,(c=t[i])&&(c.__u|=2)),c==null||c.__v==null?(i==-1&&(a>d?g--:aC?g--:g++,s.__u|=4))):u.__k[n]=null;if(r)for(n=0;n(d?1:0)){for(a=t-1,n=t+1;a>=0||n=0?a--:n++])!=null&&(2&i.__u)==0&&c==i.key&&C==i.type)return s}return-1}function le(u,e,t){e[0]==\"-\"?u.setProperty(e,t??\"\"):u[e]=t==null?\"\":typeof t!=\"number\"||Ye.test(e)?t:t+\"px\"}function Eu(u,e,t,o,a){var n,s;u:if(e==\"style\")if(typeof t==\"string\")u.style.cssText=t;else{if(typeof o==\"string\"&&(u.style.cssText=o=\"\"),o)for(e in o)t&&e in t||le(u.style,e,\"\");if(t)for(e in t)o&&t[e]==o[e]||le(u.style,e,t[e])}else if(e[0]==\"o\"&&e[1]==\"n\")n=e!=(e=e.replace(de,\"$1\")),s=e.toLowerCase(),e=s in u||e==\"onFocusOut\"||e==\"onFocusIn\"?s.slice(2):e.slice(2),u.l||(u.l={}),u.l[e+n]=t,t?o?t.u=o.u:(t.u=Mu,u.addEventListener(e,n?Pu:ju,n)):u.removeEventListener(e,n?Pu:ju,n);else{if(a==\"http://www.w3.org/2000/svg\")e=e.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(e!=\"width\"&&e!=\"height\"&&e!=\"href\"&&e!=\"list\"&&e!=\"form\"&&e!=\"tabIndex\"&&e!=\"download\"&&e!=\"rowSpan\"&&e!=\"colSpan\"&&e!=\"role\"&&e!=\"popover\"&&e in u)try{u[e]=t??\"\";break u}catch{}typeof t==\"function\"||(t==null||t===!1&&e[4]!=\"-\"?u.removeAttribute(e):u.setAttribute(e,e==\"popover\"&&t==1?\"\":t))}}function se(u){return function(e){if(this.l){var t=this.l[e.type+u];if(e.t==null)e.t=Mu++;else if(e.t0?u:mu(u)?u.map(Ae):H({},u)}function et(u,e,t,o,a,n,s,c,C){var i,d,r,g,F,m,j,y=t.props||Wu,p=e.props,v=e.type;if(v==\"svg\"?a=\"http://www.w3.org/2000/svg\":v==\"math\"?a=\"http://www.w3.org/1998/Math/MathML\":a||(a=\"http://www.w3.org/1999/xhtml\"),n!=null){for(i=0;i\"u\"?\"\":document.body?.dataset?.basepath??\"\"}function Ou(u,e){let t=e??nt(),o=u.startsWith(\"/\")?u:\"/\"+u;return t+o}function ot(u,e){return u===e||u.endsWith(\"/\"+e)}function Dt(u,e){return ot(u,e)&&(u=u.slice(0,-e.length)),u}function at(u,e){return u.startsWith(\"/\")&&(u=u.substring(1)),!e&&u.endsWith(\"/\")&&(u=u.slice(0,-1)),u}function me(u){for(;u.firstChild;)u.removeChild(u.firstChild)}(function(){function u(t){return new Promise(function(o,a){var n=document.createElement(\"script\");n.src=t,n.onload=o,n.onerror=a,document.head.appendChild(n)})}Promise.all([u(\"https://cdn.jsdelivr.net/npm/d3@7/dist/d3.min.js\"),u(\"https://cdn.jsdelivr.net/npm/pixi.js@8/dist/pixi.js\")]).then(function(){e()}).catch(function(t){console.error(\"[Graph] Failed to load libraries:\",t)});function e(){var t=window.d3,o=window.PIXI;if(!t||!o){console.error(\"[Graph] Libraries not loaded\");return}var a=\"graph-visited\";function n(){return new Set(JSON.parse(localStorage.getItem(a)||\"[]\"))}function s(_){var b=n();b.add(_),localStorage.setItem(a,JSON.stringify(Array.from(b)))}async function c(_,b,x){var h=lu(b);h===\"\"&&(h=\"index\");var W=n();if(me(_),x!==void 0&&x!==d)return console.log(\"[Graph] Stale render, skipping\"),function(){};var w=JSON.parse(_.dataset.cfg||\"{}\"),Fu=w.drag,Be=w.zoom,Gu=w.depth,Iu=w.scale||1,ye=w.repelForce||.5,be=w.centerForce||.3,xe=w.linkDistance||30,we=w.fontSize||.6,ke=w.opacityScale||1,Se=w.removeTags||[],Le=w.showTags,je=w.focusOnHover,Pe=w.enableRadial,Z;try{var Nu=await fetchData;Z=new Map;for(var zu in Nu)Z.set(lu(zu),Nu[zu])}catch(D){return console.error(\"[Graph] Error loading data:\",D),function(){}}var U=_.offsetWidth,O=Math.max(_.offsetHeight,250),Q=[],fu=[],Hu=new Set(Z.keys());Z.forEach(function(D,l){for(var f=D.links||[],A=0;A=0)for(var _u=[h],du=new Set([h]),$u=0;$u<=Gu&&_u.length>0;$u++){for(var Bu=[],yu=0;yu<_u.length;yu++){var bu=_u[yu];uu.add(bu);for(var xu=0;xu;\n globalGraph?: Partial;\n}\n\nconst defaultOptions: GraphOptions = {\n localGraph: {\n drag: true,\n zoom: true,\n depth: 1,\n scale: 1.1,\n repelForce: 0.5,\n centerForce: 0.3,\n linkDistance: 30,\n fontSize: 0.6,\n opacityScale: 1,\n showTags: true,\n removeTags: [],\n focusOnHover: false,\n enableRadial: false,\n },\n globalGraph: {\n drag: true,\n zoom: true,\n depth: -1,\n scale: 0.9,\n repelForce: 0.5,\n centerForce: 0.2,\n linkDistance: 30,\n fontSize: 0.6,\n opacityScale: 1,\n showTags: true,\n removeTags: [],\n focusOnHover: true,\n enableRadial: true,\n },\n};\n\nexport default ((userOpts?: Partial) => {\n const Graph: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {\n const localGraph = { ...defaultOptions.localGraph, ...userOpts?.localGraph };\n const globalGraph = { ...defaultOptions.globalGraph, ...userOpts?.globalGraph };\n\n return (\n
\n

{i18n(cfg.locale ?? \"en-US\").components.graph.title}

\n
\n
\n \n
\n
\n
\n
\n
\n );\n };\n\n Graph.css = style;\n Graph.afterDOMLoaded = script;\n\n return Graph;\n}) satisfies QuartzComponentConstructor;\n"]} \ No newline at end of file +{"version":3,"sources":["../src/util/lang.ts","../src/i18n/locales/en-US.ts","../src/i18n/index.ts","../src/components/styles/graph.scss","../src/components/scripts/graph.inline.ts","../src/components/Graph.tsx"],"names":[],"mappings":"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","file":"index.js","sourcesContent":["export function classNames(...classes: (string | undefined | null | false)[]): string {\n return classes.filter(Boolean).join(\" \");\n}\n","export default {\n components: {\n graph: {\n title: \"Graph View\",\n },\n },\n};\n","import enUS from \"./locales/en-US\";\n\nconst locales: Record = {\n \"en-US\": enUS,\n};\n\nexport function i18n(locale: string) {\n return locales[locale] || enUS;\n}\n",".graph > h3 {\n font-size: 1rem;\n margin: 0;\n}\n.graph > .graph-outer {\n border-radius: 5px;\n border: 1px solid var(--lightgray);\n box-sizing: border-box;\n height: 250px;\n margin: 0.5em 0;\n position: relative;\n overflow: hidden;\n}\n.graph > .graph-outer > .global-graph-icon {\n cursor: pointer;\n background: none;\n border: none;\n color: var(--dark);\n opacity: 0.5;\n width: 24px;\n height: 24px;\n position: absolute;\n padding: 0.2rem;\n margin: 0.3rem;\n top: 0;\n right: 0;\n border-radius: 4px;\n background-color: transparent;\n transition: background-color 0.5s ease;\n}\n.graph > .graph-outer > .global-graph-icon:hover {\n background-color: var(--lightgray);\n}\n.graph > .global-graph-outer {\n position: fixed;\n z-index: 9999;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100%;\n backdrop-filter: blur(4px);\n display: none;\n overflow: hidden;\n}\n.graph > .global-graph-outer.active {\n display: inline-block;\n}\n.graph > .global-graph-outer > .global-graph-container {\n border: 1px solid var(--lightgray);\n background-color: var(--light);\n border-radius: 5px;\n box-sizing: border-box;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 80vh;\n width: 80vw;\n}\n@media all and (max-width: 800px) {\n .graph > .global-graph-outer > .global-graph-container {\n width: 90%;\n }\n}\n\n.graph-container {\n width: 100%;\n height: 100%;\n}","var Ft=Object.hasOwnProperty;var Fe,B,ce,Je,Y,ie,fe,_e,de,Mu,Pu,ju,Xe,Tu={},he=[],Ye=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mu=Array.isArray;function z(u,e){for(var t in e)u[t]=e[t];return u}function Uu(u){u&&u.parentNode&&u.parentNode.removeChild(u)}function Lu(u,e,t,o,i){var n={type:u,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ce,__i:-1,__u:0};return i==null&&B.vnode!=null&&B.vnode(n),n}function Du(u){return u.children}function Au(u,e){this.props=u,this.context=e}function iu(u,e){if(e==null)return u.__?iu(u.__,u.__i+1):null;for(var t;ec&&Y.sort(_e),u=Y.shift(),c=Y.length,u.__d&&(t=void 0,o=void 0,i=(o=(e=u).__v).__e,n=[],s=[],e.__P&&((t=z({},o)).__v=o.__v+1,B.vnode&&B.vnode(t),Ee(e.__P,t,o,e.__n,e.__P.namespaceURI,32&o.__u?[i]:null,n,i??iu(o),!!(32&o.__u),s),t.__v=o.__v,t.__.__k[t.__i]=t,ut(n,t,s),o.__e=o.__=null,t.__e!=i&&Ce(t)));gu.__r=0}function pe(u,e,t,o,i,n,s,c,C,D,d){var r,g,F,m,P,y,p,v=o&&o.__k||he,M=e.length;for(C=Ze(t,e,v,C,M),r=0;r0?s=u.__k[n]=Lu(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):u.__k[n]=s,C=n+g,s.__=u,s.__b=u.__b+1,c=null,(D=s.__i=Qe(s,t,C,r))!=-1&&(r--,(c=t[D])&&(c.__u|=2)),c==null||c.__v==null?(D==-1&&(i>d?g--:iC?g--:g++,s.__u|=4))):u.__k[n]=null;if(r)for(n=0;n(d?1:0)){for(i=t-1,n=t+1;i>=0||n=0?i--:n++])!=null&&(2&D.__u)==0&&c==D.key&&C==D.type)return s}return-1}function le(u,e,t){e[0]==\"-\"?u.setProperty(e,t??\"\"):u[e]=t==null?\"\":typeof t!=\"number\"||Ye.test(e)?t:t+\"px\"}function Eu(u,e,t,o,i){var n,s;u:if(e==\"style\")if(typeof t==\"string\")u.style.cssText=t;else{if(typeof o==\"string\"&&(u.style.cssText=o=\"\"),o)for(e in o)t&&e in t||le(u.style,e,\"\");if(t)for(e in t)o&&t[e]==o[e]||le(u.style,e,t[e])}else if(e[0]==\"o\"&&e[1]==\"n\")n=e!=(e=e.replace(de,\"$1\")),s=e.toLowerCase(),e=s in u||e==\"onFocusOut\"||e==\"onFocusIn\"?s.slice(2):e.slice(2),u.l||(u.l={}),u.l[e+n]=t,t?o?t.u=o.u:(t.u=Mu,u.addEventListener(e,n?ju:Pu,n)):u.removeEventListener(e,n?ju:Pu,n);else{if(i==\"http://www.w3.org/2000/svg\")e=e.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(e!=\"width\"&&e!=\"height\"&&e!=\"href\"&&e!=\"list\"&&e!=\"form\"&&e!=\"tabIndex\"&&e!=\"download\"&&e!=\"rowSpan\"&&e!=\"colSpan\"&&e!=\"role\"&&e!=\"popover\"&&e in u)try{u[e]=t??\"\";break u}catch{}typeof t==\"function\"||(t==null||t===!1&&e[4]!=\"-\"?u.removeAttribute(e):u.setAttribute(e,e==\"popover\"&&t==1?\"\":t))}}function se(u){return function(e){if(this.l){var t=this.l[e.type+u];if(e.t==null)e.t=Mu++;else if(e.t0?u:mu(u)?u.map(Ae):z({},u)}function et(u,e,t,o,i,n,s,c,C){var D,d,r,g,F,m,P,y=t.props||Tu,p=e.props,v=e.type;if(v==\"svg\"?i=\"http://www.w3.org/2000/svg\":v==\"math\"?i=\"http://www.w3.org/1998/Math/MathML\":i||(i=\"http://www.w3.org/1999/xhtml\"),n!=null){for(D=0;D\"u\"?\"\":document.body?.dataset?.basepath??\"\"}function Ou(u,e){let t=e??nt(),o=u.startsWith(\"/\")?u:\"/\"+u;return t+o}function ot(u,e){return u===e||u.endsWith(\"/\"+e)}function at(u,e){return ot(u,e)&&(u=u.slice(0,-e.length)),u}function it(u,e){return u.startsWith(\"/\")&&(u=u.substring(1)),!e&&u.endsWith(\"/\")&&(u=u.slice(0,-1)),u}function me(u){for(;u.firstChild;)u.removeChild(u.firstChild)}(function(){function u(t){return new Promise(function(o,i){var n=document.createElement(\"script\");n.src=t,n.onload=o,n.onerror=i,document.head.appendChild(n)})}Promise.all([u(\"https://cdn.jsdelivr.net/npm/d3@7/dist/d3.min.js\"),u(\"https://cdn.jsdelivr.net/npm/pixi.js@8/dist/pixi.js\")]).then(function(){e()}).catch(function(t){console.error(\"[Graph] Failed to load libraries:\",t)});function e(){var t=window.d3,o=window.PIXI;if(!t||!o){console.error(\"[Graph] Libraries not loaded\");return}var i=\"graph-visited\";function n(){return new Set(JSON.parse(localStorage.getItem(i)||\"[]\"))}function s(_){var b=n();b.add(_),localStorage.setItem(i,JSON.stringify(Array.from(b)))}async function c(_,b,x){var h=lu(b);h===\"\"&&(h=\"index\");var T=n();if(me(_),x!==void 0&&x!==d)return console.log(\"[Graph] Stale render, skipping\"),function(){};var w=JSON.parse(_.dataset.cfg||\"{}\"),Fu=w.drag,Be=w.zoom,Gu=w.depth,Iu=w.scale||1,ye=w.repelForce||.5,be=w.centerForce||.3,xe=w.linkDistance||30,we=w.fontSize||.6,Se=w.opacityScale||1,ke=w.removeTags||[],Le=w.showTags,Pe=w.focusOnHover,je=w.enableRadial,Z;try{var Nu=await fetchData;Z=new Map;for(var $u in Nu)Z.set(lu($u),Nu[$u])}catch(a){return console.error(\"[Graph] Error loading data:\",a),function(){}}var R=_.offsetWidth,O=Math.max(_.offsetHeight,250),Q=[],fu=[],zu=new Set(Z.keys());Z.forEach(function(a,l){for(var f=a.links||[],A=0;A=0)for(var _u=[h],du=new Set([h]),Hu=0;Hu<=Gu&&_u.length>0;Hu++){for(var Bu=[],yu=0;yu<_u.length;yu++){var bu=_u[yu];uu.add(bu);for(var xu=0;xu;\n globalGraph?: Partial;\n}\n\nconst defaultOptions: GraphOptions = {\n localGraph: {\n drag: true,\n zoom: true,\n depth: 1,\n scale: 1.1,\n repelForce: 0.5,\n centerForce: 0.3,\n linkDistance: 30,\n fontSize: 0.6,\n opacityScale: 1,\n showTags: true,\n removeTags: [],\n focusOnHover: false,\n enableRadial: false,\n },\n globalGraph: {\n drag: true,\n zoom: true,\n depth: -1,\n scale: 0.9,\n repelForce: 0.5,\n centerForce: 0.2,\n linkDistance: 30,\n fontSize: 0.6,\n opacityScale: 1,\n showTags: true,\n removeTags: [],\n focusOnHover: true,\n enableRadial: true,\n },\n};\n\nexport default ((userOpts?: Partial) => {\n const Graph: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {\n const localGraph = { ...defaultOptions.localGraph, ...userOpts?.localGraph };\n const globalGraph = { ...defaultOptions.globalGraph, ...userOpts?.globalGraph };\n\n return (\n
\n

{i18n(cfg.locale ?? \"en-US\").components.graph.title}

\n
\n
\n \n
\n
\n
\n
\n
\n );\n };\n\n Graph.css = style;\n Graph.afterDOMLoaded = script;\n\n return Graph;\n}) satisfies QuartzComponentConstructor;\n"]} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a1a76ce..455b16a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -992,7 +992,7 @@ }, "node_modules/@quartz-community/types": { "version": "0.2.1", - "resolved": "git+ssh://git@github.com/quartz-community/types.git#653aece4c90759fb911d62d4af89bf300865f85d", + "resolved": "git+ssh://git@github.com/quartz-community/types.git#d413569b02ff0cd9a7e8d74dee125d20a5e5ec72", "license": "MIT", "engines": { "node": ">=22", @@ -1013,7 +1013,7 @@ }, "node_modules/@quartz-community/utils": { "version": "0.1.0", - "resolved": "git+ssh://git@github.com/quartz-community/utils.git#8d2e14bcb9efe83ec8085dd0c4f848f3f25a9c78", + "resolved": "git+ssh://git@github.com/quartz-community/utils.git#cf1450b6f744755c16ca0d301db08c2ade6cfb67", "license": "MIT", "dependencies": { "@quartz-community/types": "github:quartz-community/types" @@ -1434,7 +1434,6 @@ "version": "24.10.13", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~7.16.0" } @@ -1480,7 +1479,6 @@ "version": "7.18.0", "dev": true, "license": "BSD-2-Clause", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "7.18.0", "@typescript-eslint/types": "7.18.0", @@ -1740,7 +1738,6 @@ "version": "8.15.0", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -2154,7 +2151,6 @@ "dev": true, "hasInstallScript": true, "license": "MIT", - "peer": true, "bin": { "esbuild": "bin/esbuild" }, @@ -2205,7 +2201,6 @@ "version": "8.57.1", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -2533,8 +2528,7 @@ "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz", "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==", "devOptional": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/glob": { "version": "7.2.3", @@ -2638,7 +2632,6 @@ "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==", "devOptional": true, "license": "MIT", - "peer": true, "dependencies": { "@types/estree": "^1.0.0", "@types/hast": "^3.0.0", @@ -3826,7 +3819,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", @@ -3880,7 +3872,6 @@ "node_modules/preact": { "version": "10.28.3", "license": "MIT", - "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" @@ -4058,7 +4049,6 @@ "version": "1.97.3", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "chokidar": "^4.0.0", "immutable": "^5.0.2", @@ -4312,7 +4302,6 @@ "version": "4.0.3", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -4464,7 +4453,6 @@ "version": "5.9.3", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -4583,7 +4571,6 @@ "version": "5.4.21", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "esbuild": "^0.21.3", "postcss": "^8.4.43",