graphwise-reactodia 0.0.1-TR1
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/README.md +2 -0
- package/dist/cjs/app-globals-CcJr5lkF.js +23 -0
- package/dist/cjs/graphwise-reactodia.cjs.entry.js +45058 -0
- package/dist/cjs/graphwise-reactodia.cjs.js +25 -0
- package/dist/cjs/index-CII9aUQC.js +1212 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/graphwise-reactodia/graphwise-reactodia.css +10 -0
- package/dist/collection/components/graphwise-reactodia/graphwise-reactodia.js +182 -0
- package/dist/collection/components/graphwise-reactodia/i18n/translations.js +4 -0
- package/dist/collection/components/graphwise-reactodia/models/reactodia-app-props.js +1 -0
- package/dist/collection/components/graphwise-reactodia/reactodia-app.js +109 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/polyfill/polyfill-node.js +17 -0
- package/dist/esm/app-globals-CalY52z6.js +21 -0
- package/dist/esm/graphwise-reactodia.entry.js +45056 -0
- package/dist/esm/graphwise-reactodia.js +21 -0
- package/dist/esm/index-Cypw7ydc.js +1204 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/graphwise-reactodia/graphwise-reactodia.esm.js +1 -0
- package/dist/graphwise-reactodia/index.esm.js +0 -0
- package/dist/graphwise-reactodia/p-CalY52z6.js +1 -0
- package/dist/graphwise-reactodia/p-Cypw7ydc.js +2 -0
- package/dist/graphwise-reactodia/p-bafd6be5.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/graphwise-reactodia/graphwise-reactodia.d.ts +44 -0
- package/dist/types/components/graphwise-reactodia/i18n/translations.d.ts +343 -0
- package/dist/types/components/graphwise-reactodia/models/reactodia-app-props.d.ts +34 -0
- package/dist/types/components/graphwise-reactodia/reactodia-app.d.ts +21 -0
- package/dist/types/components.d.ts +109 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/polyfill/polyfill-node.d.ts +9 -0
- package/dist/types/stencil-public-runtime.d.ts +1702 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +30 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as bootstrapLazy } from './index-Cypw7ydc.js';
|
|
2
|
+
export { s as setNonce } from './index-Cypw7ydc.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-CalY52z6.js';
|
|
4
|
+
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
7
|
+
await globalScripts();
|
|
8
|
+
return bootstrapLazy([["graphwise-reactodia",[[0,"graphwise-reactodia",{"currentRepository":[1,"current-repository"],"queryFunction":[16,"query-function"],"language":[1],"providerSettings":[16,"provider-settings"]},null,{"currentRepository":["onProviderSettingsChange"],"providerSettings":["onProviderSettingsChange"],"language":["onLanguageChange"]}]]]], options);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { defineCustomElements };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,b as r}from"./p-Cypw7ydc.js";export{s as setNonce}from"./p-Cypw7ydc.js";import{g as t}from"./p-CalY52z6.js";(()=>{const r=import.meta.url,t={};return""!==r&&(t.resourcesUrl=new URL(".",r).href),e(t)})().then((async e=>(await t(),r([["p-bafd6be5",[[0,"graphwise-reactodia",{currentRepository:[1,"current-repository"],queryFunction:[16,"query-function"],language:[1],providerSettings:[16,"provider-settings"]},null,{currentRepository:["onProviderSettingsChange"],providerSettings:["onProviderSettingsChange"],language:["onLanguageChange"]}]]]],e))));
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=function(){const o=globalThis;o.process?o.process.env||(o.process.env={NODE_ENV:"production"}):o.process={env:{NODE_ENV:"production"}}};export{o as g}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},o=(t,e)=>(0,console.error)(t,e),l=new Map,i=new Map,s="slot-fb{display:contents}slot-fb[hidden]{display:none}",r="undefined"!=typeof window?window:{},c={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},u=t=>Promise.resolve(t),a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),f=!1,d=[],h=[],p=(t,e)=>n=>{t.push(n),f||(f=!0,e&&4&c.o?y(v):c.raf(v))},m=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},v=()=>{m(d),m(h),(f=d.length>0)&&c.raf(v)},y=t=>u().then(t),$=p(h,!0),w=t=>"object"==(t=typeof t)||"function"===t;function b(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>S,map:()=>j,ok:()=>g,unwrap:()=>k,unwrapErr:()=>O});var g=t=>({isOk:!0,isErr:!1,value:t}),S=t=>({isOk:!1,isErr:!0,value:t});function j(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>g(t))):g(n)}if(t.isErr)return S(t.value);throw"should never get here"}var k=t=>{if(t.isOk)return t.value;throw t.value},O=t=>{if(t.isErr)return t.value;throw t.value},E=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!w(o))&&(o+=""),i&&s?r[r.length-1].i+=o:r.push(i?C(null,o):o),s=i)};c(n),e&&e.key&&(l=e.key);const u=C(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},C=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),M={},P=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};P("::slotted"),P(":host"),P(":host-context");var x,D=(t,e)=>null==t||w(t)?t:1&e?t+"":t,R=t=>e(t).$hostElement$,W=new WeakMap,A=t=>"sc-"+t.$,N=(t,e,n,o)=>{n!==o&&e.toLowerCase()},U=(t,e)=>{const n=t&&t.u||{},o=e.u||{};for(const t of H(Object.keys(n)))t in o||N(0,t,n[t],void 0);for(const t of H(Object.keys(o)))N(0,t,n[t],o[t])};function H(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var L=(t,e,n)=>{const o=e.h[n];let l,i,s=0;if(!r.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=r.document.createElement(o.m),U(null,o),o.h)for(s=0;s<o.h.length;++s)i=L(t,o,s),i&&l.appendChild(i);return l["s-hn"]=x,l},T=(t,e,n,o,l,i)=>{let s,r=t;for(;l<=i;++l)o[l]&&(s=L(null,n,l),s&&(o[l].v=s,G(r,s,e)))},z=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},F=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),q=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,i=e.h;U(t,e),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(F(d,m,l))q(d,m,l),d=e[++r],m=o[++c];else if(F(h,v,l))q(h,v,l),h=e[--f],v=o[--p];else if(F(d,v,l))q(d,v,l),G(t,d.v,h.v.nextSibling),d=e[++r],v=o[--p];else if(F(h,m,l))q(h,m,l),G(t,h.v,d.v),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(s=e[u],s.m!==m.m?i=L(e&&e[c],n,u):(q(s,m,l),e[u]=void 0,i=s.v),m=o[++c]):(i=L(e&&e[c],n,c),m=o[++c]),i&&G(d.v.parentNode,i,d.v)}r>f?T(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&z(e,r,f)})(o,l,e,i,n):null!==i?T(o,null,e,i,0,i.length-1):!n&&null!==l&&z(l,0,l.length-1)},G=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),I=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},V=(t,e)=>{if(t.o|=16,!(4&t.o))return I(t,t.j),$((()=>Y(t,e)));t.o|=512},Y=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=Z(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=_(l,(()=>Z(o,"componentWillRender",void 0,n))),_(l,(()=>J(t,o,e)))},_=(t,e)=>B(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),B=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,J=async(t,e,n)=>{var o;const l=t.$hostElement$,u=l["s-rc"];n&&(t=>{const e=t.k;((t,e)=>{var n;const o=A(e),l=i.get(o);if(!r.document)return o;if(t=11===t.nodeType?t:r.document,l)if("string"==typeof l){let i,u=W.get(t=t.head||t);if(u||W.set(t,u=new Set),!u.has(o)){{i=r.document.createElement("style"),i.innerHTML=l;const o=null!=(n=c.O)?n:b(r.document);if(null!=o&&i.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(i)}else t.append(i);1&e.o&&t.insertBefore(i,null)}4&e.o&&(i.innerHTML+=s),u&&u.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l])})(t.$hostElement$.getRootNode(),e)})(t);K(t,e,l,n),u&&(u.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Q(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},K=(t,e,n,l)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C||C(null,null),i=(t=>t&&t.m===M)(e)?e:E(null,null,e);if(x=o.tagName,n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.C=i,i.v=l.v=o,q(l,i,n)})(t,e,l)}catch(e){o(e,t.$hostElement$)}return null},Q=t=>{const e=t.$hostElement$,n=t.t,o=t.j;Z(n,"componentDidRender",void 0,e),64&t.o?Z(n,"componentDidUpdate",void 0,e):(t.o|=64,tt(e),Z(n,"componentDidLoad",void 0,e),t.M(e),o||X()),t.S&&(t.S(),t.S=void 0),512&t.o&&y((()=>V(t,!1))),t.o&=-517},X=()=>{y((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"graphwise-reactodia"}});return t.dispatchEvent(e),e})(r)))},Z=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,l)}},tt=t=>t.classList.add("hydrated"),et=(t,n,l,i)=>{const s=e(t);if(!s)throw Error(`Couldn't find host element for "${i.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=s.$hostElement$,c=s.P.get(n),u=s.o,a=s.t;if(l=D(l,i.D[n][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(s.P.set(n,l),a)){if(i.R&&128&u){const t=i.R[n];t&&t.map((t=>{try{a[t](l,c,n)}catch(t){o(t,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(l,c,n))return;V(s,!1)}}},nt=(t,n,o)=>{var l,i;const s=t.prototype;if(n.D||n.R||t.watchers){t.watchers&&!n.R&&(n.R=t.watchers);const r=Object.entries(null!=(l=n.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(n.D[t][0]|=2048),r&&(n.D[t][0]|=4096),(1&o||!i)&&Object.defineProperty(s,t,{get(){{if(!(2048&n.D[t][0]))return((t,n)=>e(this).P.get(n))(0,t);const o=e(this),l=o?o.t:s;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(i){const s=e(this);if(r){const e=32&l?this[t]:s.$hostElement$[t];return void 0===e&&s.P.get(t)?i=s.P.get(t):!s.P.get(t)&&e&&s.P.set(t,e),r.call(this,D(i,l)),void et(this,t,i=32&l?this[t]:s.$hostElement$[t],n)}{if(!(1&o&&4096&n.D[t][0]))return et(this,t,i,n),void(1&o&&!s.t&&s.W.then((()=>{4096&n.D[t][0]&&s.t[t]!==s.P.get(t)&&(s.t[t]=i)})));const e=()=>{const e=s.t[t];!s.P.get(t)&&e&&s.P.set(t,e),s.t[t]=D(i,l),et(this,t,s.t[t],n)};s.t?e():s.W.then((()=>e()))}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(t,l,i){c.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=e(this),s=null==o?void 0:o.o;if(s&&!(8&s)&&128&s&&i!==l){const e=o.t,s=null==(r=n.R)?void 0:r[t];null==s||s.forEach((n=>{null!=e[n]&&e[n].call(e,i,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(s,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||u.get&&!u.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=n.R)?i:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},ot=(t,e)=>{Z(t,"connectedCallback",void 0,e)},lt=(t,e)=>{Z(t,"disconnectedCallback",void 0,e||t)},it=(t,n={})=>{var u;if(!r.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const f=[],d=n.exclude||[],h=r.customElements,p=r.document.head,m=p.querySelector("meta[charset]"),v=r.document.createElement("style"),y=[];let $,w=!0;Object.assign(c,n),c.l=new URL(n.resourcesUrl||"./",r.document.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((n=>{var s;const r={o:n[0],$:n[1],D:n[2],A:n[3]};4&r.o&&(g=!0),r.D=n[2],r.R=null!=(s=n[4])?s:{};const u=r.$,p=class extends HTMLElement{constructor(t){super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,k:e,P:new Map};n.W=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,r)}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),w?y.push(this):c.jmp((()=>(t=>{if(!(1&c.o)){const n=e(t),s=n.k,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?ot(n.t,t):(null==n?void 0:n.W)&&n.W.then((()=>ot(n.t,t)));else{n.o|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){I(n,n.j=e);break}}s.D&&Object.entries(s.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;if(!(32&e.o)){if(e.o|=32,n.N){const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),i=t.N;if(!i)return;const s=l.get(i);return s?s[n]:import(`./${i}.entry.js`).then((t=>(l.set(i,t),t[n])),(t=>{o(t,e.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};s=await i,t()}else s=i;if(!s)throw Error(`Constructor for "${n.$}#${e.U}" was not found`);s.isProxied||(n.R=s.watchers,nt(s,n,2),s.isProxied=!0);const r=()=>{};e.o|=8;try{new s(e)}catch(e){o(e,t)}e.o&=-9,e.o|=128,r(),ot(e.t,t)}else s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(s&&s.style){let t;"string"==typeof s.style&&(t=s.style);const e=A(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>V(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,n,s)}r()}})(this)))}disconnectedCallback(){c.jmp((()=>(async t=>{if(!(1&c.o)){const n=e(t);(null==n?void 0:n.t)?lt(n.t,t):(null==n?void 0:n.W)&&n.W.then((()=>lt(n.t,t)))}W.has(t)&&W.delete(t),t.shadowRoot&&W.has(t.shadowRoot)&&W.delete(t.shadowRoot)})(this))),c.raf((()=>{var t;const n=e(this),o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==n?void 0:n.C)?void 0:t.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return e(this).W}};r.N=t[0],d.includes(u)||h.get(u)||(f.push(u),h.define(u,nt(p,r,1)))}))})),f.length>0&&(g&&(v.textContent+=s),v.textContent+=f.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(u=c.O)?u:b(r.document);null!=t&&v.setAttribute("nonce",t),p.insertBefore(v,m?m.nextSibling:p.firstChild)}w=!1,y.length?y.map((t=>t.connectedCallback())):c.jmp((()=>$=setTimeout(X,30)))},st=t=>c.O=t;export{M as H,it as b,R as g,E as h,u as p,n as r,st as s}
|