solid-panes 4.4.2-5 → 4.4.2-7
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/RDFXMLPane2.cjs.js +1 -1
- package/dist/RDFXMLPane2.esm.js +1 -1
- package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/globe.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/globe.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/globe.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/globe.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/pencil.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/share-2.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/trash-2.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +1 -0
- package/dist/audio/audioPane.cjs.js +1 -1
- package/dist/audio/audioPane.cjs.js.map +1 -1
- package/dist/audio/audioPane.esm.js +13 -10
- package/dist/audio/audioPane.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +14 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +19 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +292 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +7 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +22 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +15 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +266 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +7 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +19 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +19 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +321 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +7 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +13 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +36 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +468 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js +7 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/helper.cjs.js +2 -0
- package/dist/components/file-explorer-header/helper.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/helper.d.ts +15 -0
- package/dist/components/file-explorer-header/helper.d.ts.map +1 -0
- package/dist/components/file-explorer-header/helper.esm.js +64 -0
- package/dist/components/file-explorer-header/helper.esm.js.map +1 -0
- package/dist/components/file-explorer-header/types.d.ts +2 -0
- package/dist/components/file-explorer-header/types.d.ts.map +1 -0
- package/dist/components/header/Header.cjs.js +1 -1
- package/dist/components/header/Header.cjs.js.map +1 -1
- package/dist/components/header/Header.esm.js +3 -3
- package/dist/components/navbar/Navbar.cjs.js +1 -1
- package/dist/components/navbar/Navbar.cjs.js.map +1 -1
- package/dist/components/navbar/Navbar.esm.js +3 -3
- package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js +16 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js.map +1 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js +215 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +18 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +16 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +260 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
- package/dist/dashboard/basicPreferences.cjs.js +1 -1
- package/dist/dashboard/basicPreferences.cjs.js.map +1 -1
- package/dist/dashboard/dashboardPane.cjs.js +1 -1
- package/dist/dashboard/dashboardPane.cjs.js.map +1 -1
- package/dist/home/homePane.cjs.js +1 -1
- package/dist/home/homePane.cjs.js.map +1 -1
- package/dist/internal/internalPane2.cjs.js +1 -1
- package/dist/internal/internalPane2.cjs.js.map +1 -1
- package/dist/mainPage/header.cjs.js +1 -1
- package/dist/mainPage/header.cjs.js.map +1 -1
- package/dist/n3Pane2.cjs.js +1 -1
- package/dist/n3Pane2.esm.js +1 -1
- package/dist/outline/manager2.cjs.js +1 -2
- package/dist/outline/manager2.cjs.js.map +1 -1
- package/dist/outline/manager2.esm.js +356 -397
- package/dist/outline/manager2.esm.js.map +1 -1
- package/dist/outline/propertyViews.cjs.js +1 -1
- package/dist/outline/propertyViews.cjs.js.map +1 -1
- package/dist/outline/sourcePaneIcon.d.ts +2 -0
- package/dist/outline/sourcePaneIcon.d.ts.map +1 -0
- package/dist/outline/userInput.cjs.js +1 -1
- package/dist/outline/userInput.cjs.js.map +1 -1
- package/dist/outline/userInput.esm.js +6 -4
- package/dist/outline/userInput.esm.js.map +1 -1
- package/dist/pad/padPane2.cjs.js +1 -1
- package/dist/pad/padPane2.cjs.js.map +1 -1
- package/dist/sharing/sharingPane.cjs.js +1 -1
- package/dist/sharing/sharingPane.cjs.js.map +1 -1
- package/dist/social/editProfileDetails.cjs.js +1 -1
- package/dist/social/editProfileDetails.cjs.js.map +1 -1
- package/dist/social/editProfileDetails.esm.js +1 -1
- package/dist/social/socialPane2.cjs.js +1 -1
- package/dist/social/socialPane2.cjs.js.map +1 -1
- package/dist/social/socialSections.cjs.js +1 -1
- package/dist/social/socialSections.cjs.js.map +1 -1
- package/dist/social/socialSections.esm.js +7 -6
- package/dist/social/socialSections.esm.js.map +1 -1
- package/dist/social/triage.cjs.js +1 -1
- package/dist/social/triage.cjs.js.map +1 -1
- package/dist/tabbed/tabbedPane.cjs.js +1 -1
- package/dist/tabbed/tabbedPane.cjs.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.dom.cjs.js +1 -1
- package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.utils.cjs.js +1 -1
- package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.view.cjs.js +1 -1
- package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -1
- package/dist/utils/podUtils.cjs.js +1 -1
- package/dist/utils/podUtils.cjs.js.map +1 -1
- package/dist/utils/webIdUtils.cjs.js +1 -1
- package/dist/utils/webIdUtils.cjs.js.map +1 -1
- package/dist/versionInfo.cjs.js +1 -1
- package/dist/versionInfo.cjs.js.map +1 -1
- package/dist/versionInfo.esm.js +3 -3
- package/dist/versionInfo.esm.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("solid-ui");var t={icon:e.icons.iconBase+`noun_688606.svg`,name:`tabbed`,audience:[e.ns.solid(`PowerUser`)],label:(t,n)=>{let r=n.session.store.findTypeURIs(t);return e.ns.meeting(`Cluster`).uri in r?`Tabbed`:null},render:(t,n)=>{let r=n.dom,i=n.session.store,a=r.createElement(`div`);return(async()=>{if(!i.fetcher)throw Error(`Store has no fetcher`);await i.fetcher.load(t),a.appendChild(e.tabs.tabWidget({dom:r,subject:t,predicate:i.any(t,e.ns.meeting(`predicate`))||e.ns.meeting(`toolList`),ordered:!0,orientation:i.anyValue(t,e.ns.meeting(`orientation`))||`0`,renderMain:(e,t)=>{e.innerHTML=``;let r=e.appendChild(n.dom.createElement(`table`));n.getOutliner(n.dom).GotoSubject(t,!0,null,!1,void 0,r)},renderTab:(r,a)=>{let o=i.the(t,e.ns.meeting(`predicate`));r.appendChild(e.widgets.personTR(n.dom,o,a,{}))},backgroundColor:i.anyValue(t,e.ns.ui(`backgroundColor`))||`#ddddcc`}))})(),a}};exports.default=t;
|
|
2
2
|
//# sourceMappingURL=tabbedPane.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabbedPane.cjs.js","names":[],"sources":["../../src/tabbed/tabbedPane.ts"],"sourcesContent":["/* Tabbed view of anything\n **\n ** data-driven\n **\n */\nimport { Store } from 'rdflib'\nimport { PaneDefinition } from 'pane-registry'\nimport { icons, ns, tabs, widgets } from 'solid-ui'\n\nconst TabbedPane: PaneDefinition = {\n icon: icons.iconBase + 'noun_688606.svg',\n\n name: 'tabbed',\n\n audience: [ns.solid('PowerUser')],\n\n // Does the subject deserve this pane?\n label: (subject, context) => {\n // @ts-ignore\n const kb = context.session.store as Store\n const typeURIs = kb.findTypeURIs(subject)\n if (ns.meeting('Cluster').uri in typeURIs) {\n return 'Tabbed'\n }\n return null\n },\n\n render: (subject, context) => {\n const dom = context.dom\n // @ts-ignore\n const store = context.session.store as Store\n const div = dom.createElement('div')\n\n ;(async () => {\n if (!store.fetcher) {\n throw new Error('Store has no fetcher')\n }\n await store.fetcher.load(subject)\n\n div.appendChild(tabs.tabWidget({\n dom,\n subject,\n predicate: store.any(subject, ns.meeting('predicate')) || ns.meeting('toolList'),\n ordered: true,\n orientation: ((store as Store).anyValue(subject, ns.meeting('orientation')) || '0') as ('0' | '1' | '2' | '3'),\n renderMain: (containerDiv, item) => {\n containerDiv.innerHTML = ''\n const table = containerDiv.appendChild(context.dom.createElement('table'))\n ;(context.getOutliner(context.dom) as any).GotoSubject(item, true, null, false, undefined, table)\n },\n renderTab: (containerDiv, item) => {\n const predicate = store.the(subject, ns.meeting('predicate'))\n containerDiv.appendChild(widgets.personTR(context.dom, predicate, item, {}))\n },\n backgroundColor: store.anyValue(subject, ns.ui('backgroundColor')) || '#ddddcc'\n }))\n })()\n return div\n }\n}\n\nexport default TabbedPane\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tabbedPane.cjs.js","names":[],"sources":["../../src/tabbed/tabbedPane.ts"],"sourcesContent":["/* Tabbed view of anything\n **\n ** data-driven\n **\n */\nimport { Store } from 'rdflib'\nimport { PaneDefinition } from 'pane-registry'\nimport { icons, ns, tabs, widgets } from 'solid-ui'\n\nconst TabbedPane: PaneDefinition = {\n icon: icons.iconBase + 'noun_688606.svg',\n\n name: 'tabbed',\n\n audience: [ns.solid('PowerUser')],\n\n // Does the subject deserve this pane?\n label: (subject, context) => {\n // @ts-ignore\n const kb = context.session.store as Store\n const typeURIs = kb.findTypeURIs(subject)\n if (ns.meeting('Cluster').uri in typeURIs) {\n return 'Tabbed'\n }\n return null\n },\n\n render: (subject, context) => {\n const dom = context.dom\n // @ts-ignore\n const store = context.session.store as Store\n const div = dom.createElement('div')\n\n ;(async () => {\n if (!store.fetcher) {\n throw new Error('Store has no fetcher')\n }\n await store.fetcher.load(subject)\n\n div.appendChild(tabs.tabWidget({\n dom,\n subject,\n predicate: store.any(subject, ns.meeting('predicate')) || ns.meeting('toolList'),\n ordered: true,\n orientation: ((store as Store).anyValue(subject, ns.meeting('orientation')) || '0') as ('0' | '1' | '2' | '3'),\n renderMain: (containerDiv, item) => {\n containerDiv.innerHTML = ''\n const table = containerDiv.appendChild(context.dom.createElement('table'))\n ;(context.getOutliner(context.dom) as any).GotoSubject(item, true, null, false, undefined, table)\n },\n renderTab: (containerDiv, item) => {\n const predicate = store.the(subject, ns.meeting('predicate'))\n containerDiv.appendChild(widgets.personTR(context.dom, predicate, item, {}))\n },\n backgroundColor: store.anyValue(subject, ns.ui('backgroundColor')) || '#ddddcc'\n }))\n })()\n return div\n }\n}\n\nexport default TabbedPane\n"],"mappings":"0BASA,IAAM,EAA6B,CACjC,KAAM,EAAA,MAAM,SAAW,kBAEvB,KAAM,SAEN,SAAU,CAAC,EAAA,GAAG,MAAM,WAAW,CAAC,EAGhC,OAAQ,EAAS,IAAY,CAG3B,IAAM,EADK,EAAQ,QAAQ,MACP,aAAa,CAAO,EAIxC,OAHI,EAAA,GAAG,QAAQ,SAAS,CAAC,CAAC,OAAO,EACxB,SAEF,IACT,EAEA,QAAS,EAAS,IAAY,CAC5B,IAAM,EAAM,EAAQ,IAEd,EAAQ,EAAQ,QAAQ,MACxB,EAAM,EAAI,cAAc,KAAK,EA0BnC,OAxBE,SAAY,CACZ,GAAI,CAAC,EAAM,QACT,MAAU,MAAM,sBAAsB,EAExC,MAAM,EAAM,QAAQ,KAAK,CAAO,EAEhC,EAAI,YAAY,EAAA,KAAK,UAAU,CAC7B,MACA,UACA,UAAW,EAAM,IAAI,EAAS,EAAA,GAAG,QAAQ,WAAW,CAAC,GAAK,EAAA,GAAG,QAAQ,UAAU,EAC/E,QAAS,GACT,YAAe,EAAgB,SAAS,EAAS,EAAA,GAAG,QAAQ,aAAa,CAAC,GAAK,IAC/E,YAAa,EAAc,IAAS,CAClC,EAAa,UAAY,GACzB,IAAM,EAAQ,EAAa,YAAY,EAAQ,IAAI,cAAc,OAAO,CAAC,EACxE,EAAS,YAAY,EAAQ,GAAG,CAAC,CAAS,YAAY,EAAM,GAAM,KAAM,GAAO,IAAA,GAAW,CAAK,CAClG,EACA,WAAY,EAAc,IAAS,CACjC,IAAM,EAAY,EAAM,IAAI,EAAS,EAAA,GAAG,QAAQ,WAAW,CAAC,EAC5D,EAAa,YAAY,EAAA,QAAQ,SAAS,EAAQ,IAAK,EAAW,EAAM,CAAC,CAAC,CAAC,CAC7E,EACA,gBAAiB,EAAM,SAAS,EAAS,EAAA,GAAG,GAAG,iBAAiB,CAAC,GAAK,SACxE,CAAC,CAAC,CACJ,EAAA,CAAG,EACI,CACT,CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./trustedApplications.utils.cjs.js");let t=require("solid-ui"),n=require("solid-logic"),r=require("rdflib");function i(e){let r=o(`table`,{class:`results`}),l=s(`tr`,[c(`th`,`Application URL`),c(`th`,`Access modes`),c(`th`,`Actions`)]);return r.appendChild(l),n.store.each(e,t.ns.acl(`trustedApp`),void 0,void 0).flatMap(e=>n.store.each(e,t.ns.acl(`origin`),void 0,void 0).map(r=>({appModes:n.store.each(e,t.ns.acl(`mode`),void 0,void 0),origin:r}))).sort((e,t)=>e.origin.value<t.origin.value?-1:1).forEach(({appModes:t,origin:n})=>r.appendChild(a(e,n,t,u))),r.appendChild(a(e,null,[t.ns.acl(`Read`)],u)),r;function u(){r.parentElement.replaceChild(i(e),r)}}function a(i,a,u,d){let f={origin:a,appModes:u,formElements:{modes:[],origin:void 0}};return s(`tr`,[s(`td`,[s(`form`,[o(`input`,{class:`textinput`,placeholder:`Write new URL here`,value:a?a.value:``},{},e=>{f.formElements.origin=e})],{},{submit:p})]),s(`td`,[s(`form`,l(f),{},{submit:p})]),s(`td`,[s(`form`,a?[c(`button`,`Update`,{class:`controlButton`,style:`background: LightGreen;`}),c(`button`,`Delete`,{class:`controlButton`,style:`background: LightCoral;`},{click:m})]:[c(`button`,`Add`,{class:`controlButton`,style:`background: LightGreen;`})],{},{submit:p})])]);function p(a){a.preventDefault();let o;try{o=(0,r.sym)(f.formElements.origin.value)}catch{return alert(`Please provide an application URL you want to trust`)}let s=f.formElements.modes.filter(e=>e.checked).map(e=>e.value),c=e.getStatementsToDelete(f.origin||o,i,n.store,t.ns),l=e.getStatementsToAdd(o,e.generateRandomString(),s,i,t.ns);if(!n.store.updater)throw Error(`Store has no updater`);n.store.updater.update(c,l,h)}function m(a){a.preventDefault();let o;try{o=(0,r.sym)(f.formElements.origin.value)}catch{return alert(`Please provide an application URL you want to remove trust from`)}let s=e.getStatementsToDelete(o,i,n.store,t.ns);if(!n.store.updater)throw Error(`Store has no updater`);n.store.updater.update(s,[],h)}function h(e,t,n){if(t)return d()}}function o(e,t={},n={},r=null){let i=document.createElement(e);return r&&r(i),Object.keys(t).forEach(e=>{i.setAttribute(e,t[e])}),Object.keys(n).forEach(e=>{i.addEventListener(e,n[e])}),i}function s(e,t,n={},r={},i=null){let a=o(e,n,r,i);return t.forEach(e=>a.appendChild(e)),a}function c(e,t,n={},r={},i=null){let a=o(e,n,r,i);return a.textContent=t,a}function l({appModes:e,formElements:n}){return[`Read`,`Write`,`Append`,`Control`].map(r=>s(`label`,[o(`input`,{type:`checkbox`,...e.some(e=>e.value===t.ns.acl(r).value)?{checked:``}:{},value:t.ns.acl(r).uri},{},e=>n.modes.push(e)),c(`span`,r)]))}exports.createApplicationTable=i,exports.createContainer=s,exports.createText=c;
|
|
2
2
|
//# sourceMappingURL=trustedApplications.dom.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trustedApplications.dom.cjs.js","names":[],"sources":["../../src/trustedApplications/trustedApplications.dom.ts"],"sourcesContent":["import { NamedNode, Statement, sym } from 'rdflib'\nimport { ns } from 'solid-ui'\nimport { store } from 'solid-logic'\nimport { generateRandomString, getStatementsToAdd, getStatementsToDelete } from './trustedApplications.utils'\n\ninterface FormElements {\n modes: HTMLInputElement[]\n // This appears to be used to store either a node from the store,\n // or a reference to the input (checkbox) element for a particular mode.\n // These typings were created post-hoc, so I'm not sure if that was intentional.\n // Thus, this union type should be considered as descriptive rather than prescriptive.\n origin: undefined | NamedNode | HTMLInputElement\n}\n\nexport function createApplicationTable (subject: NamedNode) {\n const applicationsTable = createElement('table', {\n class: 'results'\n })\n\n // creating headers\n const header = createContainer('tr', [\n createText('th', 'Application URL'),\n createText('th', 'Access modes'),\n createText('th', 'Actions')\n ])\n applicationsTable.appendChild(header);\n\n // creating rows\n (store.each(subject, ns.acl('trustedApp'), undefined, undefined) as unknown as Statement[])\n .flatMap(app => store\n .each(app as any, ns.acl('origin'), undefined, undefined)\n .map(origin => ({\n appModes: store.each(app as any, ns.acl('mode'), undefined, undefined) as NamedNode[],\n origin: origin as NamedNode\n })))\n .sort((a: any, b: any) => (a.origin.value < b.origin.value ? -1 : 1))\n .forEach(\n ({ appModes, origin }: { appModes: NamedNode[]; origin: NamedNode }) =>\n applicationsTable.appendChild(\n createApplicationEntry(subject, origin, appModes, updateTable)\n )\n )\n\n // adding a row for new applications\n applicationsTable.appendChild(\n createApplicationEntry(subject, null, [ns.acl('Read')], updateTable)\n )\n\n return applicationsTable\n\n function updateTable () {\n applicationsTable.parentElement!.replaceChild(\n createApplicationTable(subject),\n applicationsTable\n )\n }\n}\n\nfunction createApplicationEntry (\n subject: NamedNode,\n origin: NamedNode | null,\n appModes: NamedNode[],\n updateTable: () => void\n): HTMLTableRowElement {\n const trustedApplicationState = {\n origin,\n appModes,\n formElements: {\n modes: [],\n origin: undefined\n } as FormElements\n }\n return createContainer('tr', [\n createContainer('td', [\n createContainer(\n 'form',\n [\n createElement(\n 'input',\n {\n class: 'textinput',\n placeholder: 'Write new URL here',\n value: origin ? origin.value : ''\n },\n {},\n element => {\n trustedApplicationState.formElements.origin = element\n }\n )\n ],\n {},\n {\n submit: addOrEditApplication\n }\n )\n ]),\n createContainer('td', [\n createContainer(\n 'form',\n createModesInput(trustedApplicationState),\n {},\n {\n submit: addOrEditApplication\n }\n )\n ]),\n createContainer('td', [\n createContainer(\n 'form',\n origin\n ? [\n createText('button', 'Update', {\n class: 'controlButton',\n style: 'background: LightGreen;'\n }),\n createText(\n 'button',\n 'Delete',\n {\n class: 'controlButton',\n style: 'background: LightCoral;'\n },\n {\n click: removeApplication\n }\n )\n ]\n : [\n createText('button', 'Add', {\n class: 'controlButton',\n style: 'background: LightGreen;'\n })\n ],\n {},\n {\n submit: addOrEditApplication\n }\n )\n ])\n ])\n\n function addOrEditApplication (event: Event) {\n event.preventDefault()\n let origin\n try {\n origin = sym(trustedApplicationState.formElements.origin!.value)\n } catch (err) {\n return alert('Please provide an application URL you want to trust')\n }\n\n const modes = trustedApplicationState.formElements.modes\n .filter(checkbox => checkbox.checked)\n .map(checkbox => checkbox.value)\n\n const deletions = getStatementsToDelete(\n trustedApplicationState.origin || origin,\n subject,\n store,\n ns\n )\n const additions = getStatementsToAdd(\n origin,\n generateRandomString(),\n modes,\n subject,\n ns\n )\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n store.updater.update(deletions, additions, handleUpdateResponse)\n }\n\n function removeApplication (event: Event) {\n event.preventDefault()\n let origin\n try {\n origin = sym(trustedApplicationState.formElements.origin!.value)\n } catch (err) {\n return alert(\n 'Please provide an application URL you want to remove trust from'\n )\n }\n\n const deletions = getStatementsToDelete(origin, subject, store, ns)\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n store.updater.update(deletions, [], handleUpdateResponse)\n }\n\n function handleUpdateResponse (uri: any, success: boolean, errorBody: any) {\n if (success) {\n return updateTable()\n }\n // console.error(uri, errorBody)\n }\n}\n\nfunction createElement<K extends keyof globalThis.HTMLElementTagNameMap> (\n elementName: K,\n attributes: { [name: string]: string } = {},\n eventListeners: { [eventName: string]: globalThis.EventListener } = {},\n\n onCreated: null | ((createdElement: globalThis.HTMLElementTagNameMap[K]) => void) = null\n) {\n const element = document.createElement(elementName)\n if (onCreated) {\n onCreated(element)\n }\n Object.keys(attributes).forEach(attName => {\n element.setAttribute(attName, attributes[attName])\n })\n Object.keys(eventListeners).forEach(eventName => {\n element.addEventListener(eventName, eventListeners[eventName])\n })\n return element\n}\n\nexport function createContainer<K extends keyof globalThis.HTMLElementTagNameMap> (\n elementName: K,\n children: HTMLElement[],\n attributes = {},\n eventListeners = {},\n onCreated = null\n) {\n const element = createElement(\n elementName,\n attributes,\n eventListeners,\n onCreated\n )\n children.forEach(child => element.appendChild(child))\n return element\n}\n\nexport function createText<K extends keyof globalThis.HTMLElementTagNameMap> (\n elementName: K,\n textContent: string | null,\n attributes = {},\n eventListeners = {},\n onCreated = null\n) {\n const element = createElement(\n elementName,\n attributes,\n eventListeners,\n onCreated\n )\n element.textContent = textContent\n return element\n}\n\nfunction createModesInput ({ appModes, formElements }: {\n appModes: NamedNode[]\n formElements: FormElements\n}) {\n return ['Read', 'Write', 'Append', 'Control'].map(mode => {\n const isChecked = appModes.some(\n appMode => appMode.value === ns.acl(mode).value\n )\n return createContainer('label', [\n createElement(\n 'input',\n {\n type: 'checkbox',\n ...(isChecked ? { checked: '' } : {}),\n value: ns.acl(mode).uri\n },\n {},\n element => formElements.modes.push(element)\n ),\n createText('span', mode)\n ])\n })\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"trustedApplications.dom.cjs.js","names":[],"sources":["../../src/trustedApplications/trustedApplications.dom.ts"],"sourcesContent":["import { NamedNode, Statement, sym } from 'rdflib'\nimport { ns } from 'solid-ui'\nimport { store } from 'solid-logic'\nimport { generateRandomString, getStatementsToAdd, getStatementsToDelete } from './trustedApplications.utils'\n\ninterface FormElements {\n modes: HTMLInputElement[]\n // This appears to be used to store either a node from the store,\n // or a reference to the input (checkbox) element for a particular mode.\n // These typings were created post-hoc, so I'm not sure if that was intentional.\n // Thus, this union type should be considered as descriptive rather than prescriptive.\n origin: undefined | NamedNode | HTMLInputElement\n}\n\nexport function createApplicationTable (subject: NamedNode) {\n const applicationsTable = createElement('table', {\n class: 'results'\n })\n\n // creating headers\n const header = createContainer('tr', [\n createText('th', 'Application URL'),\n createText('th', 'Access modes'),\n createText('th', 'Actions')\n ])\n applicationsTable.appendChild(header);\n\n // creating rows\n (store.each(subject, ns.acl('trustedApp'), undefined, undefined) as unknown as Statement[])\n .flatMap(app => store\n .each(app as any, ns.acl('origin'), undefined, undefined)\n .map(origin => ({\n appModes: store.each(app as any, ns.acl('mode'), undefined, undefined) as NamedNode[],\n origin: origin as NamedNode\n })))\n .sort((a: any, b: any) => (a.origin.value < b.origin.value ? -1 : 1))\n .forEach(\n ({ appModes, origin }: { appModes: NamedNode[]; origin: NamedNode }) =>\n applicationsTable.appendChild(\n createApplicationEntry(subject, origin, appModes, updateTable)\n )\n )\n\n // adding a row for new applications\n applicationsTable.appendChild(\n createApplicationEntry(subject, null, [ns.acl('Read')], updateTable)\n )\n\n return applicationsTable\n\n function updateTable () {\n applicationsTable.parentElement!.replaceChild(\n createApplicationTable(subject),\n applicationsTable\n )\n }\n}\n\nfunction createApplicationEntry (\n subject: NamedNode,\n origin: NamedNode | null,\n appModes: NamedNode[],\n updateTable: () => void\n): HTMLTableRowElement {\n const trustedApplicationState = {\n origin,\n appModes,\n formElements: {\n modes: [],\n origin: undefined\n } as FormElements\n }\n return createContainer('tr', [\n createContainer('td', [\n createContainer(\n 'form',\n [\n createElement(\n 'input',\n {\n class: 'textinput',\n placeholder: 'Write new URL here',\n value: origin ? origin.value : ''\n },\n {},\n element => {\n trustedApplicationState.formElements.origin = element\n }\n )\n ],\n {},\n {\n submit: addOrEditApplication\n }\n )\n ]),\n createContainer('td', [\n createContainer(\n 'form',\n createModesInput(trustedApplicationState),\n {},\n {\n submit: addOrEditApplication\n }\n )\n ]),\n createContainer('td', [\n createContainer(\n 'form',\n origin\n ? [\n createText('button', 'Update', {\n class: 'controlButton',\n style: 'background: LightGreen;'\n }),\n createText(\n 'button',\n 'Delete',\n {\n class: 'controlButton',\n style: 'background: LightCoral;'\n },\n {\n click: removeApplication\n }\n )\n ]\n : [\n createText('button', 'Add', {\n class: 'controlButton',\n style: 'background: LightGreen;'\n })\n ],\n {},\n {\n submit: addOrEditApplication\n }\n )\n ])\n ])\n\n function addOrEditApplication (event: Event) {\n event.preventDefault()\n let origin\n try {\n origin = sym(trustedApplicationState.formElements.origin!.value)\n } catch (err) {\n return alert('Please provide an application URL you want to trust')\n }\n\n const modes = trustedApplicationState.formElements.modes\n .filter(checkbox => checkbox.checked)\n .map(checkbox => checkbox.value)\n\n const deletions = getStatementsToDelete(\n trustedApplicationState.origin || origin,\n subject,\n store,\n ns\n )\n const additions = getStatementsToAdd(\n origin,\n generateRandomString(),\n modes,\n subject,\n ns\n )\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n store.updater.update(deletions, additions, handleUpdateResponse)\n }\n\n function removeApplication (event: Event) {\n event.preventDefault()\n let origin\n try {\n origin = sym(trustedApplicationState.formElements.origin!.value)\n } catch (err) {\n return alert(\n 'Please provide an application URL you want to remove trust from'\n )\n }\n\n const deletions = getStatementsToDelete(origin, subject, store, ns)\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n store.updater.update(deletions, [], handleUpdateResponse)\n }\n\n function handleUpdateResponse (uri: any, success: boolean, errorBody: any) {\n if (success) {\n return updateTable()\n }\n // console.error(uri, errorBody)\n }\n}\n\nfunction createElement<K extends keyof globalThis.HTMLElementTagNameMap> (\n elementName: K,\n attributes: { [name: string]: string } = {},\n eventListeners: { [eventName: string]: globalThis.EventListener } = {},\n\n onCreated: null | ((createdElement: globalThis.HTMLElementTagNameMap[K]) => void) = null\n) {\n const element = document.createElement(elementName)\n if (onCreated) {\n onCreated(element)\n }\n Object.keys(attributes).forEach(attName => {\n element.setAttribute(attName, attributes[attName])\n })\n Object.keys(eventListeners).forEach(eventName => {\n element.addEventListener(eventName, eventListeners[eventName])\n })\n return element\n}\n\nexport function createContainer<K extends keyof globalThis.HTMLElementTagNameMap> (\n elementName: K,\n children: HTMLElement[],\n attributes = {},\n eventListeners = {},\n onCreated = null\n) {\n const element = createElement(\n elementName,\n attributes,\n eventListeners,\n onCreated\n )\n children.forEach(child => element.appendChild(child))\n return element\n}\n\nexport function createText<K extends keyof globalThis.HTMLElementTagNameMap> (\n elementName: K,\n textContent: string | null,\n attributes = {},\n eventListeners = {},\n onCreated = null\n) {\n const element = createElement(\n elementName,\n attributes,\n eventListeners,\n onCreated\n )\n element.textContent = textContent\n return element\n}\n\nfunction createModesInput ({ appModes, formElements }: {\n appModes: NamedNode[]\n formElements: FormElements\n}) {\n return ['Read', 'Write', 'Append', 'Control'].map(mode => {\n const isChecked = appModes.some(\n appMode => appMode.value === ns.acl(mode).value\n )\n return createContainer('label', [\n createElement(\n 'input',\n {\n type: 'checkbox',\n ...(isChecked ? { checked: '' } : {}),\n value: ns.acl(mode).uri\n },\n {},\n element => formElements.modes.push(element)\n ),\n createText('span', mode)\n ])\n })\n}\n"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("rdflib");function t(e,t,n,r){return n.statementsMatching(null,r.acl(`origin`),e).reduce((e,i)=>e.concat(n.statementsMatching(t,r.acl(`trustedApp`),i.subject)).concat(n.statementsMatching(i.subject)),[])}function n(t,n,r,i,a){let o=new e.BlankNode(`bn_${n}`);return[(0,e.st)(i,a.acl(`trustedApp`),o,i.doc()),(0,e.st)(o,a.acl(`origin`),t,i.doc()),...r.map(t=>(0,e.sym)(t)).map(t=>(0,e.st)(o,a.acl(`mode`),t,i.doc()))]}function r(){return Math.random().toString(36).substr(2,5)}exports.generateRandomString=r,exports.getStatementsToAdd=n,exports.getStatementsToDelete=t;
|
|
2
2
|
//# sourceMappingURL=trustedApplications.utils.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trustedApplications.utils.cjs.js","names":[],"sources":["../../src/trustedApplications/trustedApplications.utils.ts"],"sourcesContent":["import { BlankNode, IndexedFormula, NamedNode, st, Literal, sym, Statement } from 'rdflib'\nimport { Namespaces } from 'solid-namespace'\n\nexport function getStatementsToDelete (\n origin: NamedNode | Literal,\n person: NamedNode,\n kb: IndexedFormula,\n ns: Namespaces\n): any {\n const applicationStatements = kb.statementsMatching(\n null,\n ns.acl('origin'),\n origin\n )\n const statementsToDelete = applicationStatements.reduce(\n (memo, st) => {\n return memo\n .concat(\n kb.statementsMatching(\n person,\n ns.acl('trustedApp'),\n st.subject as NamedNode\n )\n )\n .concat(kb.statementsMatching(st.subject))\n },\n [] as Array<Statement>\n )\n return statementsToDelete\n}\n\nexport function getStatementsToAdd (\n origin: NamedNode,\n nodeName: string,\n modes: string[],\n person: NamedNode,\n ns: Namespaces\n): any {\n const application = new BlankNode(`bn_${nodeName}`) // NamedNode(`${person.doc().uri}#${nodeName}`)\n return [\n st(person, ns.acl('trustedApp'), application, person.doc()),\n st(application, ns.acl('origin'), origin, person.doc()),\n ...modes\n .map(mode => sym(mode))\n .map(mode => st(application, ns.acl('mode'), mode, person.doc()))\n ]\n}\n\nexport function generateRandomString () {\n return Math.random().toString(36).substr(2, 5)\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"trustedApplications.utils.cjs.js","names":[],"sources":["../../src/trustedApplications/trustedApplications.utils.ts"],"sourcesContent":["import { BlankNode, IndexedFormula, NamedNode, st, Literal, sym, Statement } from 'rdflib'\nimport { Namespaces } from 'solid-namespace'\n\nexport function getStatementsToDelete (\n origin: NamedNode | Literal,\n person: NamedNode,\n kb: IndexedFormula,\n ns: Namespaces\n): any {\n const applicationStatements = kb.statementsMatching(\n null,\n ns.acl('origin'),\n origin\n )\n const statementsToDelete = applicationStatements.reduce(\n (memo, st) => {\n return memo\n .concat(\n kb.statementsMatching(\n person,\n ns.acl('trustedApp'),\n st.subject as NamedNode\n )\n )\n .concat(kb.statementsMatching(st.subject))\n },\n [] as Array<Statement>\n )\n return statementsToDelete\n}\n\nexport function getStatementsToAdd (\n origin: NamedNode,\n nodeName: string,\n modes: string[],\n person: NamedNode,\n ns: Namespaces\n): any {\n const application = new BlankNode(`bn_${nodeName}`) // NamedNode(`${person.doc().uri}#${nodeName}`)\n return [\n st(person, ns.acl('trustedApp'), application, person.doc()),\n st(application, ns.acl('origin'), origin, person.doc()),\n ...modes\n .map(mode => sym(mode))\n .map(mode => st(application, ns.acl('mode'), mode, person.doc()))\n ]\n}\n\nexport function generateRandomString () {\n return Math.random().toString(36).substr(2, 5)\n}\n"],"mappings":"wBAGA,SAAgB,EACd,EACA,EACA,EACA,EACK,CAoBL,OAnB8B,EAAG,mBAC/B,KACA,EAAG,IAAI,QAAQ,EACf,CAEyB,CAAA,CAAsB,QAC9C,EAAM,IACE,EACJ,OACC,EAAG,mBACD,EACA,EAAG,IAAI,YAAY,EACnB,EAAG,OACL,CACF,CAAC,CACA,OAAO,EAAG,mBAAmB,EAAG,OAAO,CAAC,EAE7C,CAAC,CAEI,CACT,CAEA,SAAgB,EACd,EACA,EACA,EACA,EACA,EACK,CACL,IAAM,EAAc,IAAI,EAAA,UAAU,MAAM,GAAU,EAClD,MAAO,EACL,EAAA,EAAA,GAAA,CAAG,EAAQ,EAAG,IAAI,YAAY,EAAG,EAAa,EAAO,IAAI,CAAC,GAC1D,EAAA,EAAA,GAAA,CAAG,EAAa,EAAG,IAAI,QAAQ,EAAG,EAAQ,EAAO,IAAI,CAAC,EACtD,GAAG,EACA,IAAI,IAAA,EAAQ,EAAA,IAAA,CAAI,CAAI,CAAC,CAAC,CACtB,IAAI,IAAA,EAAQ,EAAA,GAAA,CAAG,EAAa,EAAG,IAAI,MAAM,EAAG,EAAM,EAAO,IAAI,CAAC,CAAC,CACpE,CACF,CAEA,SAAgB,GAAwB,CACtC,OAAO,KAAK,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAG,CAAC,CAC/C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./trustedApplications.dom.cjs.js");let t=require("solid-ui"),n=require("solid-logic");var r={global:!0,icon:`${t.icons.iconBase}noun_15177.svg`,name:`trustedApplications`,label:()=>null,render:(e,n)=>{let r=n.dom,a=r.createElement(`div`);a.classList.add(`trusted-applications-pane`),a.setAttribute(`style`,`border: 0.3em solid #418d99; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;`);let o=a.appendChild(r.createElement(`table`)),s=o.appendChild(r.createElement(`tr`)),c=o.appendChild(r.createElement(`tr`)).appendChild(r.createElement(`div`));return c.setAttribute(`style`,`padding: 0.7em;`),i(r,s,c).catch(e=>c.appendChild(t.widgets.errorMessageBlock(r,e))),a}};async function i(r,i,a){let o=(await t.login.ensureLoadedProfile({dom:r,div:i,statusArea:a,me:null})).me,s=o.doc();if(!n.store.updater)throw Error(`Store has no updater`);let c=n.store.updater.editable(s.uri,n.store);if(i.appendChild(e.createText(`h3`,`Manage your trusted applications`)),!c){i.appendChild(t.widgets.errorMessageBlock(r,`Your profile ${o.doc().uri} is not editable, so we cannot do much here.`));return}i.appendChild(e.createText(`p`,`Here you can manage the applications you trust.`));let l=e.createApplicationTable(o);i.appendChild(l),i.appendChild(e.createText(`h4`,`Notes`)),i.appendChild(e.createContainer(`ol`,[i.appendChild(e.createText(`li`,`Trusted applications will get access to all resources that you have access to.`)),i.appendChild(e.createText(`li`,`You can limit which modes they have by default.`)),i.appendChild(e.createText(`li`,`They will not gain more access than you have.`))])),i.appendChild(e.createText(`p`,`Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app.`))}exports.default=r;
|
|
2
2
|
//# sourceMappingURL=trustedApplications.view.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trustedApplications.view.cjs.js","names":[],"sources":["../../src/trustedApplications/trustedApplications.view.ts"],"sourcesContent":["import { PaneDefinition } from 'pane-registry'\nimport { NamedNode } from 'rdflib'\nimport { icons, login, widgets } from 'solid-ui'\nimport { store } from 'solid-logic'\nimport { createApplicationTable, createContainer, createText } from './trustedApplications.dom'\n\nconst thisColor = '#418d99'\n\nconst trustedApplicationView: PaneDefinition = {\n global: true,\n icon: `${icons.iconBase}noun_15177.svg`,\n name: 'trustedApplications',\n label: () => null,\n render: (subject, context) => {\n const dom = context.dom\n const div = dom.createElement('div')\n div.classList.add('trusted-applications-pane')\n div.setAttribute(\n 'style',\n 'border: 0.3em solid ' +\n thisColor +\n '; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;'\n )\n const table = div.appendChild(dom.createElement('table'))\n const main = table.appendChild(dom.createElement('tr'))\n const bottom = table.appendChild(dom.createElement('tr'))\n const statusArea = bottom.appendChild(dom.createElement('div'))\n statusArea.setAttribute('style', 'padding: 0.7em;')\n render(dom, main, statusArea).catch(err => statusArea.appendChild(widgets.errorMessageBlock(dom, err)))\n return div\n }\n}\n\nasync function render (dom, main, statusArea): Promise<void> {\n const authContext = await login.ensureLoadedProfile({ dom, div: main, statusArea, me: null })\n const subject = authContext.me as NamedNode\n\n const profile = subject.doc()\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n const editable = store.updater.editable(profile.uri, store)\n\n main.appendChild(createText('h3', 'Manage your trusted applications'))\n\n if (!editable) {\n main.appendChild(\n widgets.errorMessageBlock(dom, `Your profile ${subject.doc().uri} is not editable, so we cannot do much here.`)\n )\n return\n }\n\n main.appendChild(createText('p', 'Here you can manage the applications you trust.'))\n\n const applicationsTable = createApplicationTable(subject)\n main.appendChild(applicationsTable)\n\n main.appendChild(createText('h4', 'Notes'))\n main.appendChild(\n createContainer('ol', [\n main.appendChild(\n createText(\n 'li',\n 'Trusted applications will get access to all resources that you have access to.'\n )\n ),\n main.appendChild(\n createText('li', 'You can limit which modes they have by default.')\n ),\n main.appendChild(\n createText('li', 'They will not gain more access than you have.')\n )\n ])\n )\n main.appendChild(\n createText('p', 'Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app.')\n )\n}\n\nexport default trustedApplicationView\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"trustedApplications.view.cjs.js","names":[],"sources":["../../src/trustedApplications/trustedApplications.view.ts"],"sourcesContent":["import { PaneDefinition } from 'pane-registry'\nimport { NamedNode } from 'rdflib'\nimport { icons, login, widgets } from 'solid-ui'\nimport { store } from 'solid-logic'\nimport { createApplicationTable, createContainer, createText } from './trustedApplications.dom'\n\nconst thisColor = '#418d99'\n\nconst trustedApplicationView: PaneDefinition = {\n global: true,\n icon: `${icons.iconBase}noun_15177.svg`,\n name: 'trustedApplications',\n label: () => null,\n render: (subject, context) => {\n const dom = context.dom\n const div = dom.createElement('div')\n div.classList.add('trusted-applications-pane')\n div.setAttribute(\n 'style',\n 'border: 0.3em solid ' +\n thisColor +\n '; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;'\n )\n const table = div.appendChild(dom.createElement('table'))\n const main = table.appendChild(dom.createElement('tr'))\n const bottom = table.appendChild(dom.createElement('tr'))\n const statusArea = bottom.appendChild(dom.createElement('div'))\n statusArea.setAttribute('style', 'padding: 0.7em;')\n render(dom, main, statusArea).catch(err => statusArea.appendChild(widgets.errorMessageBlock(dom, err)))\n return div\n }\n}\n\nasync function render (dom, main, statusArea): Promise<void> {\n const authContext = await login.ensureLoadedProfile({ dom, div: main, statusArea, me: null })\n const subject = authContext.me as NamedNode\n\n const profile = subject.doc()\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n const editable = store.updater.editable(profile.uri, store)\n\n main.appendChild(createText('h3', 'Manage your trusted applications'))\n\n if (!editable) {\n main.appendChild(\n widgets.errorMessageBlock(dom, `Your profile ${subject.doc().uri} is not editable, so we cannot do much here.`)\n )\n return\n }\n\n main.appendChild(createText('p', 'Here you can manage the applications you trust.'))\n\n const applicationsTable = createApplicationTable(subject)\n main.appendChild(applicationsTable)\n\n main.appendChild(createText('h4', 'Notes'))\n main.appendChild(\n createContainer('ol', [\n main.appendChild(\n createText(\n 'li',\n 'Trusted applications will get access to all resources that you have access to.'\n )\n ),\n main.appendChild(\n createText('li', 'You can limit which modes they have by default.')\n ),\n main.appendChild(\n createText('li', 'They will not gain more access than you have.')\n )\n ])\n )\n main.appendChild(\n createText('p', 'Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app.')\n )\n}\n\nexport default trustedApplicationView\n"],"mappings":"uGAQA,IAAM,EAAyC,CAC7C,OAAQ,GACR,KAAM,GAAG,EAAA,MAAM,SAAS,gBACxB,KAAM,sBACN,UAAa,KACb,QAAS,EAAS,IAAY,CAC5B,IAAM,EAAM,EAAQ,IACd,EAAM,EAAI,cAAc,KAAK,EACnC,EAAI,UAAU,IAAI,2BAA2B,EAC7C,EAAI,aACF,QACA,sFAGF,EACA,IAAM,EAAQ,EAAI,YAAY,EAAI,cAAc,OAAO,CAAC,EAClD,EAAO,EAAM,YAAY,EAAI,cAAc,IAAI,CAAC,EAEhD,EADS,EAAM,YAAY,EAAI,cAAc,IAAI,CACpC,CAAA,CAAO,YAAY,EAAI,cAAc,KAAK,CAAC,EAG9D,OAFA,EAAW,aAAa,QAAS,iBAAiB,EAClD,EAAO,EAAK,EAAM,CAAU,CAAC,CAAC,MAAM,GAAO,EAAW,YAAY,EAAA,QAAQ,kBAAkB,EAAK,CAAG,CAAC,CAAC,EAC/F,CACT,CACF,EAEA,eAAe,EAAQ,EAAK,EAAM,EAA2B,CAE3D,IAAM,GAAU,MADU,EAAA,MAAM,oBAAoB,CAAE,MAAK,IAAK,EAAM,aAAY,GAAI,IAAK,CAAC,EAAA,CAChE,GAEtB,EAAU,EAAQ,IAAI,EAC5B,GAAI,CAAC,EAAA,MAAM,QACT,MAAU,MAAM,sBAAsB,EAExC,IAAM,EAAW,EAAA,MAAM,QAAQ,SAAS,EAAQ,IAAK,EAAA,KAAK,EAI1D,GAFA,EAAK,YAAY,EAAA,WAAW,KAAM,kCAAkC,CAAC,EAEjE,CAAC,EAAU,CACb,EAAK,YACH,EAAA,QAAQ,kBAAkB,EAAK,gBAAgB,EAAQ,IAAI,CAAC,CAAC,IAAI,6CAA6C,CAChH,EACA,MACF,CAEA,EAAK,YAAY,EAAA,WAAW,IAAK,iDAAiD,CAAC,EAEnF,IAAM,EAAoB,EAAA,uBAAuB,CAAO,EACxD,EAAK,YAAY,CAAiB,EAElC,EAAK,YAAY,EAAA,WAAW,KAAM,OAAO,CAAC,EAC1C,EAAK,YACH,EAAA,gBAAgB,KAAM,CACpB,EAAK,YACH,EAAA,WACE,KACA,gFACF,CACF,EACA,EAAK,YACH,EAAA,WAAW,KAAM,iDAAiD,CACpE,EACA,EAAK,YACH,EAAA,WAAW,KAAM,+CAA+C,CAClE,CACF,CAAC,CACH,EACA,EAAK,YACH,EAAA,WAAW,IAAK,2HAA2H,CAC7I,CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./webIdUtils.cjs.js");let t=require("solid-ui"),n=require("solid-logic"),r=require("rdflib");async function i(r){if(e.isWebIdUri(r)){try{await n.store.fetcher.load(r.doc())}catch(e){console.warn(`Unable to load profile document for WebID`,r.doc().uri,e)}let e=n.store.each(r,t.ns.space(`storage`));return(await Promise.all(e.map(async e=>await o(e)?e:null))).filter(e=>e!==null)}try{let e=await a(r);return e?[e]:[]}catch(e){return console.error(`cannot load container`,e),[]}}async function a(e){let t=new URL(e.value||e.uri),r=t.pathname;for(;r.length;){r=r.substring(0,r.lastIndexOf(`/`));let e=n.store.sym(`${t.origin}${r}/`);if(await o(e))return e}return null}async function o(e){return await s(e),n.store.holds(e,t.ns.rdf(`type`),t.ns.space(`Storage`),e.doc())}async function s(e){if(!n.store.any(e,t.ns.ldp(`contains`),void 0,e.doc()))try{let t=(await n.store.fetcher.webOperation(`GET`,e.uri,n.store.fetcher.initFetchOptions(e.uri,{headers:{accept:`text/turtle`}}))).responseText;e.uri&&t&&(0,r.parse)(t,n.store,e.uri,`text/turtle`)}catch(t){console.warn(`Unable to load container representation for`,e.uri,t)}}exports.getPodStorages=i,exports.loadContainerRepresentation=s;
|
|
2
2
|
//# sourceMappingURL=podUtils.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"podUtils.cjs.js","names":[],"sources":["../../src/utils/podUtils.ts"],"sourcesContent":["import { store } from 'solid-logic'\nimport { ns } from 'solid-ui'\nimport { NamedNode, parse } from 'rdflib'\nimport { isWebIdUri } from './webIdUtils'\n\nexport async function getPodStorages (url: NamedNode): Promise<NamedNode[]> {\n if (isWebIdUri(url)) {\n try {\n await store.fetcher.load(url.doc())\n } catch (err) {\n console.warn('Unable to load profile document for WebID', url.doc().uri, err)\n }\n const podStorages = store.each(url, ns.space('storage'))\n const results = await Promise.all(podStorages.map(async pod => await isPodStorage(pod as NamedNode) ? pod as NamedNode : null))\n return results.filter(pod => pod !== null) as NamedNode[]\n }\n try {\n const storage = await findPodStorageFromUrl(url)\n return storage ? [storage] : []\n } catch (err) {\n console.error('cannot load container', err)\n return []\n }\n}\n\nasync function findPodStorageFromUrl (url: NamedNode): Promise<NamedNode | null> {\n const podStorage = new URL(url.value || url.uri)\n let pathStorage = podStorage.pathname\n\n while (pathStorage.length) {\n pathStorage = pathStorage.substring(0, pathStorage.lastIndexOf('/'))\n const candidate = store.sym(`${podStorage.origin}${pathStorage}/`)\n if (await isPodStorage(candidate)) return candidate\n }\n\n // TODO should url.origin be added to pods list when there are no pim:Storage ???\n return null\n}\n\nasync function isPodStorage (pod: NamedNode): Promise<boolean> {\n await loadContainerRepresentation(pod)\n return store.holds(pod, ns.rdf('type'), ns.space('Storage'), pod.doc())\n}\n\nexport async function loadContainerRepresentation (subject) {\n // force reload for index.html with RDFa\n if (!store.any(subject, ns.ldp('contains'), undefined, subject.doc())) {\n try {\n const response = await store.fetcher.webOperation('GET', subject.uri, store.fetcher.initFetchOptions(subject.uri, { headers: { accept: 'text/turtle' } }))\n const containerTurtle = response.responseText\n if (subject.uri && containerTurtle) {\n parse(containerTurtle, store, subject.uri, 'text/turtle')\n }\n } catch (err) {\n console.warn('Unable to load container representation for', subject.uri, err)\n }\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"podUtils.cjs.js","names":[],"sources":["../../src/utils/podUtils.ts"],"sourcesContent":["import { store } from 'solid-logic'\nimport { ns } from 'solid-ui'\nimport { NamedNode, parse } from 'rdflib'\nimport { isWebIdUri } from './webIdUtils'\n\nexport async function getPodStorages (url: NamedNode): Promise<NamedNode[]> {\n if (isWebIdUri(url)) {\n try {\n await store.fetcher.load(url.doc())\n } catch (err) {\n console.warn('Unable to load profile document for WebID', url.doc().uri, err)\n }\n const podStorages = store.each(url, ns.space('storage'))\n const results = await Promise.all(podStorages.map(async pod => await isPodStorage(pod as NamedNode) ? pod as NamedNode : null))\n return results.filter(pod => pod !== null) as NamedNode[]\n }\n try {\n const storage = await findPodStorageFromUrl(url)\n return storage ? [storage] : []\n } catch (err) {\n console.error('cannot load container', err)\n return []\n }\n}\n\nasync function findPodStorageFromUrl (url: NamedNode): Promise<NamedNode | null> {\n const podStorage = new URL(url.value || url.uri)\n let pathStorage = podStorage.pathname\n\n while (pathStorage.length) {\n pathStorage = pathStorage.substring(0, pathStorage.lastIndexOf('/'))\n const candidate = store.sym(`${podStorage.origin}${pathStorage}/`)\n if (await isPodStorage(candidate)) return candidate\n }\n\n // TODO should url.origin be added to pods list when there are no pim:Storage ???\n return null\n}\n\nasync function isPodStorage (pod: NamedNode): Promise<boolean> {\n await loadContainerRepresentation(pod)\n return store.holds(pod, ns.rdf('type'), ns.space('Storage'), pod.doc())\n}\n\nexport async function loadContainerRepresentation (subject) {\n // force reload for index.html with RDFa\n if (!store.any(subject, ns.ldp('contains'), undefined, subject.doc())) {\n try {\n const response = await store.fetcher.webOperation('GET', subject.uri, store.fetcher.initFetchOptions(subject.uri, { headers: { accept: 'text/turtle' } }))\n const containerTurtle = response.responseText\n if (subject.uri && containerTurtle) {\n parse(containerTurtle, store, subject.uri, 'text/turtle')\n }\n } catch (err) {\n console.warn('Unable to load container representation for', subject.uri, err)\n }\n }\n}\n"],"mappings":"8GAKA,eAAsB,EAAgB,EAAsC,CAC1E,GAAI,EAAA,WAAW,CAAG,EAAG,CACnB,GAAI,CACF,MAAM,EAAA,MAAM,QAAQ,KAAK,EAAI,IAAI,CAAC,CACpC,OAAS,EAAK,CACZ,QAAQ,KAAK,4CAA6C,EAAI,IAAI,CAAC,CAAC,IAAK,CAAG,CAC9E,CACA,IAAM,EAAc,EAAA,MAAM,KAAK,EAAK,EAAA,GAAG,MAAM,SAAS,CAAC,EAEvD,OAAO,MADe,QAAQ,IAAI,EAAY,IAAI,KAAM,IAAO,MAAM,EAAa,CAAgB,EAAI,EAAmB,IAAI,CAAC,EAAA,CAC/G,OAAO,GAAO,IAAQ,IAAI,CAC3C,CACA,GAAI,CACF,IAAM,EAAU,MAAM,EAAsB,CAAG,EAC/C,OAAO,EAAU,CAAC,CAAO,EAAI,CAAC,CAChC,OAAS,EAAK,CAEZ,OADA,QAAQ,MAAM,wBAAyB,CAAG,EACnC,CAAC,CACV,CACF,CAEA,eAAe,EAAuB,EAA2C,CAC/E,IAAM,EAAa,IAAI,IAAI,EAAI,OAAS,EAAI,GAAG,EAC3C,EAAc,EAAW,SAE7B,KAAO,EAAY,QAAQ,CACzB,EAAc,EAAY,UAAU,EAAG,EAAY,YAAY,GAAG,CAAC,EACnE,IAAM,EAAY,EAAA,MAAM,IAAI,GAAG,EAAW,SAAS,EAAY,EAAE,EACjE,GAAI,MAAM,EAAa,CAAS,EAAG,OAAO,CAC5C,CAGA,OAAO,IACT,CAEA,eAAe,EAAc,EAAkC,CAE7D,OADA,MAAM,EAA4B,CAAG,EAC9B,EAAA,MAAM,MAAM,EAAK,EAAA,GAAG,IAAI,MAAM,EAAG,EAAA,GAAG,MAAM,SAAS,EAAG,EAAI,IAAI,CAAC,CACxE,CAEA,eAAsB,EAA6B,EAAS,CAE1D,GAAI,CAAC,EAAA,MAAM,IAAI,EAAS,EAAA,GAAG,IAAI,UAAU,EAAG,IAAA,GAAW,EAAQ,IAAI,CAAC,EAClE,GAAI,CAEF,IAAM,GAAkB,MADD,EAAA,MAAM,QAAQ,aAAa,MAAO,EAAQ,IAAK,EAAA,MAAM,QAAQ,iBAAiB,EAAQ,IAAK,CAAE,QAAS,CAAE,OAAQ,aAAc,CAAE,CAAC,CAAC,EAAA,CACxH,aAC7B,EAAQ,KAAO,IACjB,EAAA,EAAA,MAAA,CAAM,EAAiB,EAAA,MAAO,EAAQ,IAAK,aAAa,CAE5D,OAAS,EAAK,CACZ,QAAQ,KAAK,8CAA+C,EAAQ,IAAK,CAAG,CAC9E,CAEJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("solid-ui"),t=require("solid-logic"),n=require("rdflib");var r=`profile/card#me`;async function i(i){try{let a=i.site().uri,o=(0,n.sym)(`${a}${r}`);try{return await t.store.fetcher.load(o),o}catch{}try{let e=new URL(i.uri),a=e.pathname.split(`/`).filter(Boolean);if(a.length>0){let i=`${e.origin}/${a[0]}/`,o=(0,n.sym)(`${i}${r}`);return await t.store.fetcher.load(o),o}}catch{}try{await t.store.fetcher.load(i)}catch{return i}let s=t.store.any(i,e.ns.foaf(`primaryTopic`),null,i.doc());if(s&&s.termType===`NamedNode`)try{return await t.store.fetcher.load(s),s}catch{return i}return i}catch{return i}}function a(e){try{return new URL(e.uri).hash===`#me`}catch{return!1}}function o(t,n){return t.anyValue(n,e.ns.vcard(`fn`),null,n.doc())||t.anyValue(n,e.ns.foaf(`name`),null,n.doc())||new URL(n.uri).host.split(`.`)[0]}exports.getName=o,exports.isWebIdUri=a,exports.loadProfileFromURI=i;
|
|
2
2
|
//# sourceMappingURL=webIdUtils.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webIdUtils.cjs.js","names":[],"sources":["../../src/utils/webIdUtils.ts"],"sourcesContent":["/*\n* Utility functions to help load the profile\n* especially when I am not logged in\n*/\n\nimport { IndexedFormula, NamedNode, sym } from 'rdflib'\nimport { ns } from 'solid-ui'\nimport { store } from 'solid-logic'\n\nconst DEFAULT_PROFILE_PATH = 'profile/card#me'\n\nexport async function loadProfileFromURI (\n uri: NamedNode\n): Promise<NamedNode> {\n try {\n const pod = uri.site().uri\n // TODO: This is a hack - we cannot assume that the profile is at this document, but we will live with it for now\n const webId = sym(`${pod}${DEFAULT_PROFILE_PATH}`)\n try {\n await store.fetcher.load(webId)\n return webId\n } catch (err) {\n // ignore any failure and continue fallback lookup\n }\n\n // we try a prefixed pod structure\n try {\n const uriUrl = new URL(uri.uri)\n const pathSegments = uriUrl.pathname.split('/').filter(Boolean)\n if (pathSegments.length > 0) {\n const derivedPod = `${uriUrl.origin}/${pathSegments[0]}/`\n const derivedWebId = sym(`${derivedPod}${DEFAULT_PROFILE_PATH}`)\n await store.fetcher.load(derivedWebId)\n return derivedWebId\n }\n } catch (err) {\n // ignore any failure and continue fallback lookup\n }\n\n try {\n await store.fetcher.load(uri)\n } catch (err) {\n return uri\n }\n\n const primaryTopic = store.any(uri, ns.foaf('primaryTopic'), null, uri.doc())\n if (primaryTopic && primaryTopic.termType === 'NamedNode') {\n try {\n await store.fetcher.load(primaryTopic as NamedNode)\n return primaryTopic as NamedNode\n } catch (err) {\n return uri\n }\n }\n\n return uri\n } catch (err) {\n return uri\n }\n}\n\nexport function isWebIdUri (uri: NamedNode): boolean {\n try {\n const parsedURL = new URL(uri.uri)\n return parsedURL.hash === '#me'\n } catch (err) {\n return false\n }\n}\n\nexport async function getNameOfPodOwner (\n pod: NamedNode\n): Promise<string> {\n // TODO: This is a hack - we cannot assume that the profile is at this document, but we will live with it for now\n const webId = sym(`${pod.uri}${DEFAULT_PROFILE_PATH}`)\n try {\n await store.fetcher.load(webId)\n return getName(store, webId)\n } catch (err) {\n if (!isFetchErrorStatus(err, 403)) {\n console.error('getNameOfPodOwner failed on default profile:', err)\n }\n }\n\n // we try a prefixed pod structure\n try {\n const uriUrl = new URL(pod.uri)\n const pathSegments = uriUrl.pathname.split('/').filter(Boolean)\n if (pathSegments.length > 0) {\n const derivedPod = `${uriUrl.origin}/${pathSegments[0]}/`\n const derivedWebId = sym(`${derivedPod}${DEFAULT_PROFILE_PATH}`)\n await store.fetcher.load(derivedWebId)\n return getName(store, derivedWebId)\n }\n } catch (err) {\n if (!isFetchErrorStatus(err, 403)) {\n console.error('getNameOfPodOwner failed on derived profile:', err)\n }\n }\n\n return ''\n}\n\nexport function getName (store: IndexedFormula, ownersProfile: NamedNode): string {\n return (\n store.anyValue(ownersProfile, ns.vcard('fn'), null, ownersProfile.doc()) ||\n store.anyValue(ownersProfile, ns.foaf('name'), null, ownersProfile.doc()) ||\n new URL(ownersProfile.uri).host.split('.')[0]\n )\n}\n\nfunction isFetchErrorStatus (err: unknown, status: number): boolean {\n if (!err || typeof err !== 'object') return false\n const statusCode = (err as any)?.response?.status ?? (err as any)?.status\n const parsedStatus = Number(statusCode)\n return Number.isFinite(parsedStatus) && parsedStatus === status\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webIdUtils.cjs.js","names":[],"sources":["../../src/utils/webIdUtils.ts"],"sourcesContent":["/*\n* Utility functions to help load the profile\n* especially when I am not logged in\n*/\n\nimport { IndexedFormula, NamedNode, sym } from 'rdflib'\nimport { ns } from 'solid-ui'\nimport { store } from 'solid-logic'\n\nconst DEFAULT_PROFILE_PATH = 'profile/card#me'\n\nexport async function loadProfileFromURI (\n uri: NamedNode\n): Promise<NamedNode> {\n try {\n const pod = uri.site().uri\n // TODO: This is a hack - we cannot assume that the profile is at this document, but we will live with it for now\n const webId = sym(`${pod}${DEFAULT_PROFILE_PATH}`)\n try {\n await store.fetcher.load(webId)\n return webId\n } catch (err) {\n // ignore any failure and continue fallback lookup\n }\n\n // we try a prefixed pod structure\n try {\n const uriUrl = new URL(uri.uri)\n const pathSegments = uriUrl.pathname.split('/').filter(Boolean)\n if (pathSegments.length > 0) {\n const derivedPod = `${uriUrl.origin}/${pathSegments[0]}/`\n const derivedWebId = sym(`${derivedPod}${DEFAULT_PROFILE_PATH}`)\n await store.fetcher.load(derivedWebId)\n return derivedWebId\n }\n } catch (err) {\n // ignore any failure and continue fallback lookup\n }\n\n try {\n await store.fetcher.load(uri)\n } catch (err) {\n return uri\n }\n\n const primaryTopic = store.any(uri, ns.foaf('primaryTopic'), null, uri.doc())\n if (primaryTopic && primaryTopic.termType === 'NamedNode') {\n try {\n await store.fetcher.load(primaryTopic as NamedNode)\n return primaryTopic as NamedNode\n } catch (err) {\n return uri\n }\n }\n\n return uri\n } catch (err) {\n return uri\n }\n}\n\nexport function isWebIdUri (uri: NamedNode): boolean {\n try {\n const parsedURL = new URL(uri.uri)\n return parsedURL.hash === '#me'\n } catch (err) {\n return false\n }\n}\n\nexport async function getNameOfPodOwner (\n pod: NamedNode\n): Promise<string> {\n // TODO: This is a hack - we cannot assume that the profile is at this document, but we will live with it for now\n const webId = sym(`${pod.uri}${DEFAULT_PROFILE_PATH}`)\n try {\n await store.fetcher.load(webId)\n return getName(store, webId)\n } catch (err) {\n if (!isFetchErrorStatus(err, 403)) {\n console.error('getNameOfPodOwner failed on default profile:', err)\n }\n }\n\n // we try a prefixed pod structure\n try {\n const uriUrl = new URL(pod.uri)\n const pathSegments = uriUrl.pathname.split('/').filter(Boolean)\n if (pathSegments.length > 0) {\n const derivedPod = `${uriUrl.origin}/${pathSegments[0]}/`\n const derivedWebId = sym(`${derivedPod}${DEFAULT_PROFILE_PATH}`)\n await store.fetcher.load(derivedWebId)\n return getName(store, derivedWebId)\n }\n } catch (err) {\n if (!isFetchErrorStatus(err, 403)) {\n console.error('getNameOfPodOwner failed on derived profile:', err)\n }\n }\n\n return ''\n}\n\nexport function getName (store: IndexedFormula, ownersProfile: NamedNode): string {\n return (\n store.anyValue(ownersProfile, ns.vcard('fn'), null, ownersProfile.doc()) ||\n store.anyValue(ownersProfile, ns.foaf('name'), null, ownersProfile.doc()) ||\n new URL(ownersProfile.uri).host.split('.')[0]\n )\n}\n\nfunction isFetchErrorStatus (err: unknown, status: number): boolean {\n if (!err || typeof err !== 'object') return false\n const statusCode = (err as any)?.response?.status ?? (err as any)?.status\n const parsedStatus = Number(statusCode)\n return Number.isFinite(parsedStatus) && parsedStatus === status\n}\n"],"mappings":"uEASA,IAAM,EAAuB,kBAE7B,eAAsB,EACpB,EACoB,CACpB,GAAI,CACF,IAAM,EAAM,EAAI,KAAK,CAAC,CAAC,IAEjB,GAAA,EAAQ,EAAA,IAAA,CAAI,GAAG,IAAM,GAAsB,EACjD,GAAI,CAEF,OADA,MAAM,EAAA,MAAM,QAAQ,KAAK,CAAK,EACvB,CACT,MAAc,CAEd,CAGA,GAAI,CACF,IAAM,EAAS,IAAI,IAAI,EAAI,GAAG,EACxB,EAAe,EAAO,SAAS,MAAM,GAAG,CAAC,CAAC,OAAO,OAAO,EAC9D,GAAI,EAAa,OAAS,EAAG,CAC3B,IAAM,EAAa,GAAG,EAAO,OAAO,GAAG,EAAa,GAAG,GACjD,GAAA,EAAe,EAAA,IAAA,CAAI,GAAG,IAAa,GAAsB,EAE/D,OADA,MAAM,EAAA,MAAM,QAAQ,KAAK,CAAY,EAC9B,CACT,CACF,MAAc,CAEd,CAEA,GAAI,CACF,MAAM,EAAA,MAAM,QAAQ,KAAK,CAAG,CAC9B,MAAc,CACZ,OAAO,CACT,CAEA,IAAM,EAAe,EAAA,MAAM,IAAI,EAAK,EAAA,GAAG,KAAK,cAAc,EAAG,KAAM,EAAI,IAAI,CAAC,EAC5E,GAAI,GAAgB,EAAa,WAAa,YAC5C,GAAI,CAEF,OADA,MAAM,EAAA,MAAM,QAAQ,KAAK,CAAyB,EAC3C,CACT,MAAc,CACZ,OAAO,CACT,CAGF,OAAO,CACT,MAAc,CACZ,OAAO,CACT,CACF,CAEA,SAAgB,EAAY,EAAyB,CACnD,GAAI,CAEF,OAAO,IADe,IAAI,EAAI,GACvB,CAAA,CAAU,OAAS,KAC5B,MAAc,CACZ,MAAO,EACT,CACF,CAmCA,SAAgB,EAAS,EAAuB,EAAkC,CAChF,OACE,EAAM,SAAS,EAAe,EAAA,GAAG,MAAM,IAAI,EAAG,KAAM,EAAc,IAAI,CAAC,GACvE,EAAM,SAAS,EAAe,EAAA,GAAG,KAAK,MAAM,EAAG,KAAM,EAAc,IAAI,CAAC,GACxE,IAAI,IAAI,EAAc,GAAG,CAAC,CAAC,KAAK,MAAM,GAAG,CAAC,CAAC,EAE/C"}
|
package/dist/versionInfo.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={buildTime:`2026-
|
|
1
|
+
var e={buildTime:`2026-08-05T23:37:01Z`,commit:`7ea89eb3d89a65bbe38346af484b42c4ef4954a6`,npmInfo:{"solid-panes":`4.4.2-7`,npm:`10.9.8`,node:`22.23.1`,acorn:`8.16.0`,ada:`2.9.2`,amaro:`1.1.8`,ares:`1.34.6`,brotli:`1.1.0`,cjs_module_lexer:`2.2.0`,cldr:`48.0`,icu:`78.2`,llhttp:`9.4.2`,modules:`127`,napi:`10`,nbytes:`0.1.3`,ncrypto:`0.0.1`,nghttp2:`1.69.0`,openssl:`3.5.7`,simdjson:`4.5.0`,simdutf:`6.4.2`,sqlite:`3.51.3`,tz:`2026a`,undici:`6.27.0`,unicode:`17.0`,uv:`1.51.0`,uvwasi:`0.0.23`,v8:`12.4.254.21-node.56`,zlib:`1.3.1-e00f703`,zstd:`1.5.7`}};exports.default=e;
|
|
2
2
|
//# sourceMappingURL=versionInfo.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionInfo.cjs.js","names":[],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\n buildTime: '2026-
|
|
1
|
+
{"version":3,"file":"versionInfo.cjs.js","names":[],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\n buildTime: '2026-08-05T23:37:01Z',\n commit: '7ea89eb3d89a65bbe38346af484b42c4ef4954a6',\n npmInfo: {\n 'solid-panes': '4.4.2-7',\n npm: '10.9.8',\n node: '22.23.1',\n acorn: '8.16.0',\n ada: '2.9.2',\n amaro: '1.1.8',\n ares: '1.34.6',\n brotli: '1.1.0',\n cjs_module_lexer: '2.2.0',\n cldr: '48.0',\n icu: '78.2',\n llhttp: '9.4.2',\n modules: '127',\n napi: '10',\n nbytes: '0.1.3',\n ncrypto: '0.0.1',\n nghttp2: '1.69.0',\n openssl: '3.5.7',\n simdjson: '4.5.0',\n simdutf: '6.4.2',\n sqlite: '3.51.3',\n tz: '2026a',\n undici: '6.27.0',\n unicode: '17.0',\n uv: '1.51.0',\n uvwasi: '0.0.23',\n v8: '12.4.254.21-node.56',\n zlib: '1.3.1-e00f703',\n zstd: '1.5.7',\n }\n}\n"],"mappings":"AAAA,IAAA,EAAe,CACb,UAAW,uBACX,OAAQ,2CACR,QAAS,CACP,cAAe,UACf,IAAK,SACL,KAAM,UACN,MAAO,SACP,IAAK,QACL,MAAO,QACP,KAAM,SACN,OAAQ,QACR,iBAAkB,QAClB,KAAM,OACN,IAAK,OACL,OAAQ,QACR,QAAS,MACT,KAAM,KACN,OAAQ,QACR,QAAS,QACT,QAAS,SACT,QAAS,QACT,SAAU,QACV,QAAS,QACT,OAAQ,SACR,GAAI,QACJ,OAAQ,SACR,QAAS,OACT,GAAI,SACJ,OAAQ,SACR,GAAI,sBACJ,KAAM,gBACN,KAAM,OACR,CACF"}
|
package/dist/versionInfo.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region src/versionInfo.ts
|
|
2
2
|
var e = {
|
|
3
|
-
buildTime: "2026-
|
|
4
|
-
commit: "
|
|
3
|
+
buildTime: "2026-08-05T23:37:01Z",
|
|
4
|
+
commit: "7ea89eb3d89a65bbe38346af484b42c4ef4954a6",
|
|
5
5
|
npmInfo: {
|
|
6
|
-
"solid-panes": "4.4.2-
|
|
6
|
+
"solid-panes": "4.4.2-7",
|
|
7
7
|
npm: "10.9.8",
|
|
8
8
|
node: "22.23.1",
|
|
9
9
|
acorn: "8.16.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionInfo.esm.js","names":[],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\n buildTime: '2026-
|
|
1
|
+
{"version":3,"file":"versionInfo.esm.js","names":[],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\n buildTime: '2026-08-05T23:37:01Z',\n commit: '7ea89eb3d89a65bbe38346af484b42c4ef4954a6',\n npmInfo: {\n 'solid-panes': '4.4.2-7',\n npm: '10.9.8',\n node: '22.23.1',\n acorn: '8.16.0',\n ada: '2.9.2',\n amaro: '1.1.8',\n ares: '1.34.6',\n brotli: '1.1.0',\n cjs_module_lexer: '2.2.0',\n cldr: '48.0',\n icu: '78.2',\n llhttp: '9.4.2',\n modules: '127',\n napi: '10',\n nbytes: '0.1.3',\n ncrypto: '0.0.1',\n nghttp2: '1.69.0',\n openssl: '3.5.7',\n simdjson: '4.5.0',\n simdutf: '6.4.2',\n sqlite: '3.51.3',\n tz: '2026a',\n undici: '6.27.0',\n unicode: '17.0',\n uv: '1.51.0',\n uvwasi: '0.0.23',\n v8: '12.4.254.21-node.56',\n zlib: '1.3.1-e00f703',\n zstd: '1.5.7',\n }\n}\n"],"mappings":";AAAA,IAAA,IAAe;CACb,WAAW;CACX,QAAQ;CACR,SAAS;EACP,eAAe;EACf,KAAK;EACL,MAAM;EACN,OAAO;EACP,KAAK;EACL,OAAO;EACP,MAAM;EACN,QAAQ;EACR,kBAAkB;EAClB,MAAM;EACN,KAAK;EACL,QAAQ;EACR,SAAS;EACT,MAAM;EACN,QAAQ;EACR,SAAS;EACT,SAAS;EACT,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,IAAI;EACJ,QAAQ;EACR,SAAS;EACT,IAAI;EACJ,QAAQ;EACR,IAAI;EACJ,MAAM;EACN,MAAM;CACR;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-panes",
|
|
3
|
-
"version": "4.4.2-
|
|
3
|
+
"version": "4.4.2-7",
|
|
4
4
|
"description": "Solid-compatible Panes: applets and views for the mashlib and databrowser",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"chat-pane": "3.0.4-3",
|
|
62
62
|
"contacts-pane": "3.2.1-5",
|
|
63
63
|
"dompurify": "^3.4.4",
|
|
64
|
-
"folder-pane": "3.1.1-
|
|
64
|
+
"folder-pane": "3.1.1-3",
|
|
65
65
|
"issue-pane": "3.0.3-1",
|
|
66
66
|
"lit-html": "^3.3.2",
|
|
67
67
|
"marked": "^18.0.3",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"rdflib": "2.4.0",
|
|
73
73
|
"solid-logic": "4.0.8-2",
|
|
74
74
|
"solid-namespace": "^0.5.4",
|
|
75
|
-
"solid-ui": "3.1.3-
|
|
76
|
-
"source-pane": "3.1.1-
|
|
75
|
+
"solid-ui": "3.1.3-15",
|
|
76
|
+
"source-pane": "3.1.1-6"
|
|
77
77
|
},
|
|
78
78
|
"overrides": {
|
|
79
79
|
"rdflib": "$rdflib"
|