solid-panes 5.1.0-3 → 5.1.1
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/RDFXMLPane.d.ts.map +1 -1
- package/dist/RDFXMLPane2.cjs.js +1 -1
- package/dist/RDFXMLPane2.cjs.js.map +1 -1
- package/dist/RDFXMLPane2.esm.js +3 -3
- package/dist/RDFXMLPane2.esm.js.map +1 -1
- package/dist/components/editor-card/EditorCard.cjs.js +2 -2
- package/dist/components/editor-card/EditorCard.cjs.js.map +1 -1
- package/dist/components/editor-card/EditorCard.d.ts +2 -0
- package/dist/components/editor-card/EditorCard.d.ts.map +1 -1
- package/dist/components/editor-card/EditorCard.esm.js +68 -43
- package/dist/components/editor-card/EditorCard.esm.js.map +1 -1
- package/dist/components/editor-card/EditorCard.styles.cjs.js.map +1 -1
- package/dist/components/editor-card/EditorCard.styles.esm.js.map +1 -1
- package/dist/components/header/Header.cjs.js.map +1 -1
- package/dist/components/header/Header.esm.js.map +1 -1
- package/dist/components/header/Header.styles.cjs.js.map +1 -1
- package/dist/components/header/Header.styles.esm.js.map +1 -1
- package/dist/components/navbar/Navbar.cjs.js.map +1 -1
- package/dist/components/navbar/Navbar.esm.js.map +1 -1
- package/dist/components/navbar/Navbar.styles.cjs.js.map +1 -1
- package/dist/components/navbar/Navbar.styles.esm.js.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.cjs.js +4 -4
- package/dist/components/profile-heading/ProfileHeading.cjs.js.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.d.ts +4 -0
- package/dist/components/profile-heading/ProfileHeading.d.ts.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.esm.js +123 -107
- package/dist/components/profile-heading/ProfileHeading.esm.js.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.styles.cjs.js.map +1 -1
- package/dist/components/profile-heading/ProfileHeading.styles.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js +19 -19
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js +86 -86
- package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/dateHelpers.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/dateHelpers.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/imageHelpers.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/imagePreview.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js +1 -1
- package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/heading/mutations.esm.js +61 -61
- package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/phoneCountries.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/phoneCountries.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/rowState.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/rowState.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/textUtils.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/textUtils.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/texts/dialogTexts.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/texts/dialogTexts.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/texts/messageTexts.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/texts/messageTexts.esm.js.map +1 -1
- package/dist/components/profile-heading/editor/ui/dialog2.cjs.js +1 -1
- package/dist/components/profile-heading/editor/ui/dialog2.cjs.js.map +1 -1
- package/dist/components/profile-heading/editor/ui/dialog2.esm.js +1 -1
- package/dist/components/profile-heading/editor/ui/dialog2.esm.js.map +1 -1
- package/dist/components/profile-heading/friendActions.cjs.js +1 -1
- package/dist/components/profile-heading/friendActions.cjs.js.map +1 -1
- package/dist/components/profile-heading/friendActions.esm.js +5 -5
- package/dist/components/profile-heading/profileHeadingData.cjs.js.map +1 -1
- package/dist/components/resource-action-dialog/ResourceActionDialog.cjs.js +33 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.cjs.js.map +1 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.d.ts +16 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.d.ts.map +1 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.esm.js +309 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.esm.js.map +1 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.styles.cjs.js +2 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.styles.cjs.js.map +1 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.styles.esm.js +6 -0
- package/dist/components/resource-action-dialog/ResourceActionDialog.styles.esm.js.map +1 -0
- package/dist/dataContentPane.d.ts.map +1 -1
- package/dist/dataContentPane2.cjs.js +1 -1
- package/dist/dataContentPane2.cjs.js.map +1 -1
- package/dist/dataContentPane2.esm.js +90 -78
- package/dist/dataContentPane2.esm.js.map +1 -1
- package/dist/humanReadablePane.d.ts +1 -0
- package/dist/humanReadablePane.d.ts.map +1 -1
- package/dist/humanReadablePane2.cjs.js +147 -15
- package/dist/humanReadablePane2.cjs.js.map +1 -1
- package/dist/humanReadablePane2.esm.js +281 -114
- package/dist/humanReadablePane2.esm.js.map +1 -1
- package/dist/imagePane.d.ts.map +1 -1
- package/dist/imagePane2.cjs.js +1 -1
- package/dist/imagePane2.cjs.js.map +1 -1
- package/dist/imagePane2.esm.js +9 -7
- package/dist/imagePane2.esm.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/internal/internalPane.d.ts.map +1 -1
- package/dist/internal/internalPane2.cjs.js +1 -1
- package/dist/internal/internalPane2.cjs.js.map +1 -1
- package/dist/internal/internalPane2.esm.js +55 -60
- package/dist/internal/internalPane2.esm.js.map +1 -1
- package/dist/mainPage/header.cjs.js +1 -1
- package/dist/mainPage/header.esm.js +2 -2
- package/dist/mainPage/index.cjs.js +1 -1
- package/dist/mainPage/index.cjs.js.map +1 -1
- package/dist/mainPage/index.d.ts.map +1 -1
- package/dist/mainPage/index.esm.js +35 -26
- package/dist/mainPage/index.esm.js.map +1 -1
- package/dist/mainPage/navbar.cjs.js +1 -1
- package/dist/mainPage/navbar.cjs.js.map +1 -1
- package/dist/mainPage/navbar.esm.js +15 -15
- package/dist/mainPage/navigation.cjs.js +1 -1
- package/dist/mainPage/navigation.cjs.js.map +1 -1
- package/dist/mainPage/navigation.esm.js +4 -4
- package/dist/mainPage/profileHeading.d.ts.map +1 -1
- package/dist/mainPage/profileHeading2.cjs.js +1 -1
- package/dist/mainPage/profileHeading2.cjs.js.map +1 -1
- package/dist/mainPage/profileHeading2.esm.js +14 -14
- package/dist/mainPage/profileHeading2.esm.js.map +1 -1
- package/dist/n3Pane.d.ts.map +1 -1
- package/dist/n3Pane2.cjs.js +1 -1
- package/dist/n3Pane2.cjs.js.map +1 -1
- package/dist/n3Pane2.esm.js +1 -1
- package/dist/n3Pane2.esm.js.map +1 -1
- package/dist/navigation/browserEvents.cjs.js +1 -1
- package/dist/navigation/browserEvents.cjs.js.map +1 -1
- package/dist/navigation/browserEvents.d.ts.map +1 -1
- package/dist/navigation/browserEvents.esm.js +17 -17
- package/dist/navigation/browserEvents.esm.js.map +1 -1
- package/dist/navigation/chrome.cjs.js +1 -1
- package/dist/navigation/chrome.cjs.js.map +1 -1
- package/dist/navigation/chrome.d.ts +2 -2
- package/dist/navigation/chrome.d.ts.map +1 -1
- package/dist/navigation/chrome.esm.js +2 -2
- package/dist/navigation/chrome.esm.js.map +1 -1
- package/dist/navigation/controller.cjs.js +1 -1
- package/dist/navigation/controller.cjs.js.map +1 -1
- package/dist/navigation/controller.esm.js +37 -37
- package/dist/navigation/podContext.cjs.js +1 -1
- package/dist/navigation/podContext.cjs.js.map +1 -1
- package/dist/navigation/podContext.esm.js +5 -5
- package/dist/navigation/state.cjs.js +1 -1
- package/dist/navigation/state.cjs.js.map +1 -1
- package/dist/navigation/state.d.ts +4 -0
- package/dist/navigation/state.d.ts.map +1 -1
- package/dist/navigation/state.esm.js +18 -5
- package/dist/navigation/state.esm.js.map +1 -1
- package/dist/outline/fileExplorerHelpers.cjs.js +1 -1
- package/dist/outline/fileExplorerHelpers.cjs.js.map +1 -1
- package/dist/outline/fileExplorerHelpers.d.ts +2 -5
- package/dist/outline/fileExplorerHelpers.d.ts.map +1 -1
- package/dist/outline/fileExplorerHelpers.esm.js +11 -13
- package/dist/outline/fileExplorerHelpers.esm.js.map +1 -1
- package/dist/outline/manager2.cjs.js +1 -1
- package/dist/outline/manager2.cjs.js.map +1 -1
- package/dist/outline/manager2.esm.js +355 -327
- package/dist/outline/manager2.esm.js.map +1 -1
- package/dist/registerPanes.cjs.js +1 -1
- package/dist/registerPanes.cjs.js.map +1 -1
- package/dist/registerPanes.esm.js +1 -1
- package/dist/registerPanes.esm.js.map +1 -1
- package/dist/slideshow/slideshowPane.cjs.js +1 -1
- package/dist/slideshow/slideshowPane.cjs.js.map +1 -1
- package/dist/slideshow/slideshowPane.esm.js +30 -30
- package/dist/slideshow/slideshowPane.esm.js.map +1 -1
- package/dist/social/socialPane2.cjs.js +1 -1
- package/dist/social/socialPane2.esm.js +1 -1
- package/dist/social/socialSections.cjs.js +1 -1
- package/dist/social/socialSections.esm.js +1 -1
- package/dist/utils/paneUtils.cjs.js +1 -1
- package/dist/utils/paneUtils.cjs.js.map +1 -1
- package/dist/utils/paneUtils.esm.js +15 -15
- package/dist/versionInfo.cjs.js +1 -1
- package/dist/versionInfo.cjs.js.map +1 -1
- package/dist/versionInfo.esm.js +9 -9
- package/dist/versionInfo.esm.js.map +1 -1
- package/package.json +12 -13
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("./
|
|
1
|
+
require("./editProfileDetails.cjs.js"),require("./icons.cjs.js");let e=require("solid-ui"),t=require("rdflib");function n(n){let{dom:r,subject:i,familiar:a,me:o,meUri:s,incoming:c,outgoing:l,editable:u,profile:d,knows:f,mutualConnections:p,link:m,text:h,buildCheckboxForm:g,renderSupportingInfo:_,renderNameSuffix:v}=n,y=function(){},b=r.createElement(`section`);b.className=`social-pane__mutual-friends social-primary__panel`,b.id=`social-panel-mutual`,b.setAttribute(`role`,`tabpanel`),b.setAttribute(`aria-labelledby`,`social-tab-mutual`);let x=b.appendChild(r.createElement(`div`));x.classList.add(`social-main`,`social-main--mutual`,`flex-column`);let S=r.createElement(`div`);S.classList.add(`social-mutual-summary`,`flex-column`),x.appendChild(S);let C=function(){let e=S.appendChild(r.createElement(`div`));return e.classList.add(`social-mutual-summary-line`),e},w=function(){let e=C();return e.appendChild(m(h(`You`),s)),e.appendChild(h(` and `)),e.appendChild(m(h(a),i.uri)),e};if(!c){if(!l)w().appendChild(h(` have not said you know each other.`));else{let e=C();e.appendChild(m(h(`You`),s)),e.appendChild(h(` know `)),e.appendChild(m(h(a),i.uri)),e.appendChild(h(` (unconfirmed).`))}}else if(l)w().appendChild(h(` say you know each other.`));else{S.classList.add(`social-mutual-summary--confirm`);let e=S.appendChild(r.createElement(`div`));e.classList.add(`social-mutual-summary-line`),e.appendChild(m(h(a),i.uri)),e.appendChild(h(` knows `)),e.appendChild(m(h(`you`),s)),e.appendChild(h(` (unconfirmed).`))}if(c&&!l){let e=r.createElement(`span`);e.className=`social-mutual-confirm-prompt`,e.appendChild(h(`Confirm you know `)),e.appendChild(m(h(a),i.uri));let n=g(e,new t.Statement(o,f,i,d??void 0),!!l,{disabled:!u,disabledTitle:u?void 0:`Your profile is not editable`});n.classList.add(`social-mutual-checkbox-form`),x.appendChild(n)}if(p.length){let t=x.appendChild(r.createElement(`table`));t.className=`social-main social-friends-list social-friends-grid`;let n=function(t){return e.widgets.personTR(r,e.ns.foaf(`knows`),t,{renderSupportingInfo:_,renderNameSuffix:v})};y=function(){let r=[...p].sort((t,n)=>{let r=e.utils.label(t)||t.value,i=e.utils.label(n)||n.value;return r.localeCompare(i)});e.utils.syncTableToArray(t,r,n,function(e,t){return n(t)})},y()}return{section:b,content:x,refreshMutualFriends:y}}function r(t){let{dom:n,subject:r,profile:i,editable:a,renderSupportingInfo:o,renderNameSuffix:s}=t,c=n.createElement(`section`);c.className=`social-pane__all-friends social-primary__panel`,c.id=`social-panel-all-friends`,c.setAttribute(`role`,`tabpanel`),c.setAttribute(`aria-labelledby`,`social-tab-all-friends`);let l=c.appendChild(n.createElement(`div`));l.className=`social-friends-delete-confirmation`;let u=c.appendChild(n.createElement(`table`));u.className=`social-main`;let d=e.widgets.attachmentList(n,r,u,{doc:i,modify:!!a,predicate:e.ns.foaf(`knows`),noun:`friend`,confirmationContainer:l,refreshOnDocumentLoad:!1,renderSupportingInfo:o,renderNameSuffix:s});d.classList.add(`social-friends-list`),d.style.marginTop=`0`;let f=d.rows[0],p=f.cells[0],m=f.cells[1];if(p.replaceChildren(...Array.from(m.childNodes)),p.classList.add(`social-friends-list-surface`),m.remove(),a){let e=n.createElement(`p`);e.className=`social-friends-drop-hint`,e.textContent=`Drop a WebID anywhere here to add a friend.`,p.prepend(e)}let h=d.querySelector(`td table`);return h instanceof HTMLTableElement&&h.classList.add(`social-friends-grid`),{section:c,mainTable:u,friendsList:d}}function i(t){let{dom:n,triage:r,renderSupportingInfo:i,renderNameSuffix:a}=t,o=n.createElement(`section`);o.className=`social-pane__requests social-primary__panel`,o.id=`social-panel-requests`,o.setAttribute(`role`,`tabpanel`),o.setAttribute(`aria-labelledby`,`social-tab-requests`);let s=o.appendChild(n.createElement(`div`));s.classList.add(`social-main`,`social-main--requests`,`flex-column`);let c=s.appendChild(n.createElement(`p`));c.className=`social-requests__note`,c.textContent=`Best effort preview: this view only reflects profile documents that are currently loaded. A dedicated inbox would still be needed for complete request discovery.`;let l=function(e,t,r){let i=s.appendChild(n.createElement(`section`));i.classList.add(`social-requests__group`,`flex-column`);let a=i.appendChild(n.createElement(`div`));a.className=`social-requests__group-header`;let o=a.appendChild(n.createElement(`h2`));o.className=`social-requests__group-title`,o.textContent=e;let c=a.appendChild(n.createElement(`p`));c.className=`social-requests__group-description`,c.textContent=t;let l=i.appendChild(n.createElement(`p`));l.className=`social-requests__empty`,l.textContent=r;let u=i.appendChild(n.createElement(`table`));return u.className=`social-main social-friends-list social-friends-grid social-requests__table`,{empty:l,table:u}},u=l(`Incoming requests`,`People who say they know this profile, but have not been confirmed yet.`,`No incoming requests are visible from the currently loaded data.`),d=l(`Awaiting confirmation`,`People this profile knows who have not linked back yet.`,`Nothing is waiting for confirmation right now.`),f=function(t){return e.widgets.personTR(n,e.ns.foaf(`knows`),t,{renderSupportingInfo:i,renderNameSuffix:a})},p=function(t){return[...t].sort((t,n)=>{let r=e.utils.label(t)||t.value,i=e.utils.label(n)||n.value;return r.localeCompare(i)})},m=function(t,n){let r=p(n);t.empty.hidden=r.length>0,t.table.hidden=r.length===0,e.utils.syncTableToArray(t.table,r,f,function(e,t){return f(t)})},h=function(e){m(u,e.requests),m(d,e.unconfirmed)};return h(r),{section:o,refreshRequests:h}}exports.createAllFriendsSection=r,exports.createMutualSection=n,exports.createRequestsSection=i;
|
|
2
2
|
//# sourceMappingURL=socialSections.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../_virtual/_rolldown/runtime.cjs.js"),t=require("
|
|
1
|
+
const e=require("../_virtual/_rolldown/runtime.cjs.js"),t=require("../icons/folder.cjs.js"),n=require("../icons/person.cjs.js"),r=require("../icons/friends.cjs.js"),i=require("./webIdUtils.cjs.js"),a=require("./podUtils.cjs.js");let o=require("pane-registry");o=e.__toESM(o);let s=require("rdflib");var c=t.default,l=n.default,u=r.default;function d(e,t,n,r,i,a){return{name:e.name,paneName:n,tabName:a,label:function(){return r},render:function(r,i,a){return e.render(t,i,n===`folder`?{...a,solo:!1,fullView:!1}:a)},shouldGetFocus:function(){return!1},requireQueryButton:!!e.requireQueryButton,subject:t,icon:i}}async function f(e,t,n=`Pane`,r=``,a=o.byName){let c=new URL(window.location.href),l=t||(0,s.sym)(c.toString()),u=await i.loadProfileFromURI(l);if(!u||!u.value)return null;let f=a(e);return f?d(f,u,e,n,r):null}async function p(e,t=o.byName){if(e&&i.isWebIdUri(e)){let n=t(`profile`);return n?d(n,e,`profile`,`Profile`,l):null}return f(`profile`,e,`Profile`,l,t)}async function m(e,t=o.byName){return f(`social`,e,`Social`,u,t)}async function h(e,t){let n=o.byName(`folder`);return n?d(n,e,n.name,t||`Storage`,c):null}async function g(e){let t=await a.getPodStorages(e);return t.length===0?[]:Promise.all(t.map((e,n)=>h(e,t.length>1?`Storage ${n+1}`:`Storage`))).then(e=>e.filter(e=>e!==null))}exports.createPaneItem=d,exports.getFolderPaneForStorage=h,exports.getFolderPanesFromURI=g,exports.getPaneItemFromURI=f,exports.getProfilePaneFromURI=p,exports.getSocialPaneFromURI=m;
|
|
2
2
|
//# sourceMappingURL=paneUtils.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paneUtils.cjs.js","names":["folderIcon","personIcon","friendsIcon","paneRegistry","sym","loadProfileFromURI","isWebIdUri","getPodStorages","require_runtime","
|
|
1
|
+
{"version":3,"file":"paneUtils.cjs.js","names":["folderIcon","personIcon","friendsIcon","paneRegistry","sym","loadProfileFromURI","isWebIdUri","getPodStorages","require_runtime","require_folder","require_person","require_friends","require_webIdUtils","require_podUtils","pane_registry","rdflib","FOLDER_ICON","PERSON_ICON","FRIENDS_ICON","createPaneItem","pane","labelText","subject","context","paneName","options","getPaneItemFromURI","windowHref","finalURL","webId","byName","icon","getProfilePaneFromURI","getSocialPaneFromURI","getFolderPaneForStorage","folderPane","podUrl","label","getFolderPanesFromURI","podStorages","pod","index","panes"],"sources":["../../src/utils/paneUtils.ts"],"sourcesContent":["import * as paneRegistry from 'pane-registry'\nimport folderIcon from '../icons/folder.svg'\nimport personIcon from '../icons/person.svg'\nimport friendsIcon from '../icons/friends.svg'\nimport { isWebIdUri, loadProfileFromURI } from './webIdUtils'\nimport { getPodStorages } from './podUtils'\nimport { NamedNode, sym } from 'rdflib'\n\nconst FOLDER_ICON = folderIcon\nconst PERSON_ICON = personIcon\nconst FRIENDS_ICON = friendsIcon\n\nexport type PaneItem = {\n name: string\n paneName: string\n tabName?: string\n label: () => string\n render: (subject: NamedNode, context: any, options: any) => any\n shouldGetFocus: () => boolean\n requireQueryButton: boolean\n subject: NamedNode\n icon: string\n}\n\ntype PaneLookup = (name: string) => any\n\nexport function createPaneItem (\n pane: any,\n subject: NamedNode,\n paneName: string,\n labelText: string,\n icon: string,\n tabName?: string\n): PaneItem {\n return {\n name: pane.name,\n paneName,\n tabName,\n label: function () {\n return labelText\n },\n render: function (_subject, context, options) {\n // Storage is an explicit browser view, even though GotoSubject uses solo for top-level navigation.\n return pane.render(subject, context, paneName === 'folder' ? { ...options, solo: false, fullView: false } : options)\n },\n shouldGetFocus: function () {\n return false\n },\n requireQueryButton: !!pane.requireQueryButton,\n subject,\n icon\n }\n}\n\nexport async function getPaneItemFromURI (\n paneName: string,\n subject?: NamedNode,\n labelText = 'Pane',\n icon = '',\n byName: PaneLookup = paneRegistry.byName\n): Promise<PaneItem | null> {\n const windowHref = new URL(window.location.href)\n const finalURL = subject || sym(windowHref.toString())\n const webId = await loadProfileFromURI(finalURL)\n if (!webId || !webId.value) return null\n\n const pane = byName(paneName)\n if (!pane) return null\n\n return createPaneItem(pane, webId, paneName, labelText, icon)\n}\n\nexport async function getProfilePaneFromURI (subject?: NamedNode, byName: PaneLookup = paneRegistry.byName) {\n if (subject && isWebIdUri(subject)) {\n const pane = byName('profile')\n return pane\n ? createPaneItem(pane, subject, 'profile', 'Profile', PERSON_ICON)\n : null\n }\n return getPaneItemFromURI('profile', subject, 'Profile', PERSON_ICON, byName)\n}\n\nexport async function getSocialPaneFromURI (subject?: NamedNode, byName: PaneLookup = paneRegistry.byName) {\n return getPaneItemFromURI('social', subject, 'Social', FRIENDS_ICON, byName)\n}\n\nexport async function getFolderPaneForStorage (podUrl: NamedNode, label?: string): Promise<PaneItem | null> {\n const folderPane = paneRegistry.byName('folder')\n if (!folderPane) return null\n\n return createPaneItem(folderPane, podUrl, folderPane.name, label || 'Storage', FOLDER_ICON)\n}\nexport async function getFolderPanesFromURI (subject: NamedNode): Promise<PaneItem[]> {\n const podStorages = await getPodStorages(subject)\n if (podStorages.length === 0) return []\n\n return Promise.all(\n podStorages.map((pod, index) =>\n getFolderPaneForStorage(\n pod,\n podStorages.length > 1 ? `Storage ${index + 1}` : 'Storage'\n )\n )\n ).then(panes => panes.filter((pane): pane is PaneItem => pane !== null))\n}\n"],"mappings":"A,2SAQA,IAAMgB,EAAchB,EAAAA,QACdiB,EAAchB,EAAAA,QACdiB,EAAehB,EAAAA,QAgBrB,SAAgBiB,EACd,EACA,EACA,EACA,EACA,EACA,EACU,CACV,MAAO,CACL,KAAMC,EAAK,KACX,WACA,UACA,MAAO,UAAY,CACjB,OAAOC,CACT,EACA,OAAQ,SAAU,EAAU,EAAS,EAAS,CAE5C,OAAOD,EAAK,OAAOE,EAASC,EAASC,IAAa,SAAW,CAAE,GAAGC,EAAS,KAAM,GAAO,SAAU,EAAM,EAAIA,CAAO,CACrH,EACA,eAAgB,UAAY,CAC1B,MAAO,EACT,EACA,mBAAoB,CAAC,CAACL,EAAK,mBAC3B,UACA,MACF,CACF,CAEA,eAAsBM,EACpB,EACA,EACA,EAAY,OACZ,EAAO,GACP,EAAqBvB,EAAa,OACR,CAC1B,IAAMwB,EAAa,IAAI,IAAI,OAAO,SAAS,IAAI,EACzCC,EAAWN,IAAA,EAAWlB,EAAAA,IAAAA,CAAIuB,EAAW,SAAS,CAAC,EAC/CE,EAAQ,MAAMxB,EAAAA,mBAAmBuB,CAAQ,EAC/C,GAAI,CAACC,GAAS,CAACA,EAAM,MAAO,OAAO,KAEnC,IAAMT,EAAOU,EAAON,CAAQ,EAG5B,OAFKJ,EAEED,EAAeC,EAAMS,EAAOL,EAAUH,EAAWU,CAAI,EAF1C,IAGpB,CAEA,eAAsBC,EAAuB,EAAqB,EAAqB7B,EAAa,OAAQ,CAC1G,GAAImB,GAAWhB,EAAAA,WAAWgB,CAAO,EAAG,CAClC,IAAMF,EAAOU,EAAO,SAAS,EAC7B,OAAOV,EACHD,EAAeC,EAAME,EAAS,UAAW,UAAWL,CAAW,EAC/D,IACN,CACA,OAAOS,EAAmB,UAAWJ,EAAS,UAAWL,EAAaa,CAAM,CAC9E,CAEA,eAAsBG,EAAsB,EAAqB,EAAqB9B,EAAa,OAAQ,CACzG,OAAOuB,EAAmB,SAAUJ,EAAS,SAAUJ,EAAcY,CAAM,CAC7E,CAEA,eAAsBI,EAAyB,EAAmB,EAA0C,CAC1G,IAAMC,EAAahC,EAAa,OAAO,QAAQ,EAG/C,OAFKgC,EAEEhB,EAAegB,EAAYC,EAAQD,EAAW,KAAME,GAAS,UAAWrB,CAAW,EAFlE,IAG1B,CACA,eAAsBsB,EAAuB,EAAyC,CACpF,IAAMC,EAAc,MAAMhC,EAAAA,eAAee,CAAO,EAGhD,OAFIiB,EAAY,SAAW,EAAU,CAAC,EAE/B,QAAQ,IACbA,EAAY,KAAK,EAAK,IACpBL,EACEM,EACAD,EAAY,OAAS,EAAI,WAAWE,EAAQ,IAAM,SACpD,CACF,CACF,CAAC,CAAC,KAAK,GAASC,EAAM,OAAQ,GAA2BtB,IAAS,IAAI,CAAC,CACzE,C"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import i from "
|
|
5
|
-
import a from "
|
|
1
|
+
import e from "../icons/folder.esm.js";
|
|
2
|
+
import t from "../icons/person.esm.js";
|
|
3
|
+
import n from "../icons/friends.esm.js";
|
|
4
|
+
import { isWebIdUri as r, loadProfileFromURI as i } from "./webIdUtils.esm.js";
|
|
5
|
+
import { getPodStorages as a } from "./podUtils.esm.js";
|
|
6
6
|
import * as o from "pane-registry";
|
|
7
7
|
import { sym as s } from "rdflib";
|
|
8
8
|
// src/utils/paneUtils.ts
|
|
9
|
-
var c =
|
|
9
|
+
var c = e, l = t, u = n;
|
|
10
10
|
function d(e, t, n, r, i, a) {
|
|
11
11
|
return {
|
|
12
12
|
name: e.name,
|
|
@@ -30,18 +30,18 @@ function d(e, t, n, r, i, a) {
|
|
|
30
30
|
icon: i
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
async function f(e,
|
|
34
|
-
let c = new URL(window.location.href), l =
|
|
33
|
+
async function f(e, t, n = "Pane", r = "", a = o.byName) {
|
|
34
|
+
let c = new URL(window.location.href), l = t || s(c.toString()), u = await i(l);
|
|
35
35
|
if (!u || !u.value) return null;
|
|
36
36
|
let f = a(e);
|
|
37
|
-
return f ? d(f, u, e,
|
|
37
|
+
return f ? d(f, u, e, n, r) : null;
|
|
38
38
|
}
|
|
39
|
-
async function p(
|
|
40
|
-
if (
|
|
41
|
-
let
|
|
42
|
-
return
|
|
39
|
+
async function p(e, t = o.byName) {
|
|
40
|
+
if (e && r(e)) {
|
|
41
|
+
let n = t("profile");
|
|
42
|
+
return n ? d(n, e, "profile", "Profile", l) : null;
|
|
43
43
|
}
|
|
44
|
-
return f("profile",
|
|
44
|
+
return f("profile", e, "Profile", l, t);
|
|
45
45
|
}
|
|
46
46
|
async function m(e, t = o.byName) {
|
|
47
47
|
return f("social", e, "Social", u, t);
|
|
@@ -51,7 +51,7 @@ async function h(e, t) {
|
|
|
51
51
|
return n ? d(n, e, n.name, t || "Storage", c) : null;
|
|
52
52
|
}
|
|
53
53
|
async function g(e) {
|
|
54
|
-
let t = await
|
|
54
|
+
let t = await a(e);
|
|
55
55
|
return t.length === 0 ? [] : Promise.all(t.map((e, n) => h(e, t.length > 1 ? `Storage ${n + 1}` : "Storage"))).then((e) => e.filter((e) => e !== null));
|
|
56
56
|
}
|
|
57
57
|
export { d as createPaneItem, h as getFolderPaneForStorage, g as getFolderPanesFromURI, f as getPaneItemFromURI, p as getProfilePaneFromURI, m as getSocialPaneFromURI };
|
package/dist/versionInfo.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={buildTime:`2026-
|
|
1
|
+
var e={buildTime:`2026-11-18T18:32:49Z`,commit:`c0be672459262c83fb6ee0be44a6664cc71e7be9`,npmInfo:{"solid-panes":`5.1.1`,npm:`10.9.9`,node:`22.23.4`,acorn:`8.16.0`,ada:`2.9.2`,amaro:`1.1.8`,ares:`1.34.9`,brotli:`1.1.0`,cjs_module_lexer:`2.2.0`,cldr:`48.0`,icu:`78.3`,llhttp:`9.4.3`,modules:`127`,napi:`10`,nbytes:`0.1.3`,ncrypto:`0.0.1`,nghttp2:`1.69.0`,openssl:`3.5.9`,simdjson:`4.5.0`,simdutf:`6.4.2`,sqlite:`3.53.4`,tz:`2026e`,undici:`6.29.1`,unicode:`17.0`,uv:`1.51.0`,uvwasi:`0.0.23`,v8:`12.4.254.21-node.57`,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":["versionInfo_default"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\n buildTime: '2026-
|
|
1
|
+
{"version":3,"file":"versionInfo.cjs.js","names":["versionInfo_default"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\n buildTime: '2026-11-18T18:32:49Z',\n commit: 'c0be672459262c83fb6ee0be44a6664cc71e7be9',\n npmInfo: {\n 'solid-panes': '5.1.1',\n npm: '10.9.9',\n node: '22.23.4',\n acorn: '8.16.0',\n ada: '2.9.2',\n amaro: '1.1.8',\n ares: '1.34.9',\n brotli: '1.1.0',\n cjs_module_lexer: '2.2.0',\n cldr: '48.0',\n icu: '78.3',\n llhttp: '9.4.3',\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.9',\n simdjson: '4.5.0',\n simdutf: '6.4.2',\n sqlite: '3.53.4',\n tz: '2026e',\n undici: '6.29.1',\n unicode: '17.0',\n uv: '1.51.0',\n uvwasi: '0.0.23',\n v8: '12.4.254.21-node.57',\n zlib: '1.3.1-e00f703',\n zstd: '1.5.7',\n }\n}\n"],"mappings":"AAAA,IAAAA,EAAe,CACb,UAAW,uBACX,OAAQ,2CACR,QAAS,CACP,cAAe,QACf,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,E"}
|
package/dist/versionInfo.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// src/versionInfo.ts
|
|
2
2
|
var e = {
|
|
3
|
-
buildTime: "2026-
|
|
4
|
-
commit: "
|
|
3
|
+
buildTime: "2026-11-18T18:32:49Z",
|
|
4
|
+
commit: "c0be672459262c83fb6ee0be44a6664cc71e7be9",
|
|
5
5
|
npmInfo: {
|
|
6
|
-
"solid-panes": "5.1.
|
|
6
|
+
"solid-panes": "5.1.1",
|
|
7
7
|
npm: "10.9.9",
|
|
8
|
-
node: "22.23.
|
|
8
|
+
node: "22.23.4",
|
|
9
9
|
acorn: "8.16.0",
|
|
10
10
|
ada: "2.9.2",
|
|
11
11
|
amaro: "1.1.8",
|
|
12
|
-
ares: "1.34.
|
|
12
|
+
ares: "1.34.9",
|
|
13
13
|
brotli: "1.1.0",
|
|
14
14
|
cjs_module_lexer: "2.2.0",
|
|
15
15
|
cldr: "48.0",
|
|
@@ -20,12 +20,12 @@ var e = {
|
|
|
20
20
|
nbytes: "0.1.3",
|
|
21
21
|
ncrypto: "0.0.1",
|
|
22
22
|
nghttp2: "1.69.0",
|
|
23
|
-
openssl: "3.5.
|
|
23
|
+
openssl: "3.5.9",
|
|
24
24
|
simdjson: "4.5.0",
|
|
25
25
|
simdutf: "6.4.2",
|
|
26
|
-
sqlite: "3.
|
|
27
|
-
tz: "
|
|
28
|
-
undici: "6.
|
|
26
|
+
sqlite: "3.53.4",
|
|
27
|
+
tz: "2026e",
|
|
28
|
+
undici: "6.29.1",
|
|
29
29
|
unicode: "17.0",
|
|
30
30
|
uv: "1.51.0",
|
|
31
31
|
uvwasi: "0.0.23",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionInfo.esm.js","names":["versionInfo_default"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\n buildTime: '2026-
|
|
1
|
+
{"version":3,"file":"versionInfo.esm.js","names":["versionInfo_default"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\n buildTime: '2026-11-18T18:32:49Z',\n commit: 'c0be672459262c83fb6ee0be44a6664cc71e7be9',\n npmInfo: {\n 'solid-panes': '5.1.1',\n npm: '10.9.9',\n node: '22.23.4',\n acorn: '8.16.0',\n ada: '2.9.2',\n amaro: '1.1.8',\n ares: '1.34.9',\n brotli: '1.1.0',\n cjs_module_lexer: '2.2.0',\n cldr: '48.0',\n icu: '78.3',\n llhttp: '9.4.3',\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.9',\n simdjson: '4.5.0',\n simdutf: '6.4.2',\n sqlite: '3.53.4',\n tz: '2026e',\n undici: '6.29.1',\n unicode: '17.0',\n uv: '1.51.0',\n uvwasi: '0.0.23',\n v8: '12.4.254.21-node.57',\n zlib: '1.3.1-e00f703',\n zstd: '1.5.7',\n }\n}\n"],"mappings":";AAAA,IAAAA,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": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
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",
|
|
@@ -58,24 +58,23 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@lit/context": "^1.1.6",
|
|
60
60
|
"@solid/better-simple-slideshow": "^0.1.0",
|
|
61
|
-
"activitystreams-pane": "2.
|
|
62
|
-
"chat-pane": "4.
|
|
63
|
-
"contacts-pane": "4.
|
|
61
|
+
"activitystreams-pane": "2.1.0",
|
|
62
|
+
"chat-pane": "4.1.0",
|
|
63
|
+
"contacts-pane": "4.1.0",
|
|
64
64
|
"dompurify": "^3.4.4",
|
|
65
|
-
"folder-pane": "4.0
|
|
66
|
-
"issue-pane": "4.
|
|
65
|
+
"folder-pane": "4.1.0",
|
|
66
|
+
"issue-pane": "4.1.0",
|
|
67
67
|
"lit-html": "^3.3.2",
|
|
68
68
|
"marked": "^18.0.3",
|
|
69
|
-
"meeting-pane": "4.
|
|
69
|
+
"meeting-pane": "4.1.0",
|
|
70
70
|
"mime-types": "^3.0.2",
|
|
71
|
-
"
|
|
72
|
-
"pane
|
|
73
|
-
"profile-pane": "4.1.0-0",
|
|
71
|
+
"pane-registry": "5.1.1",
|
|
72
|
+
"profile-pane": "4.1.0",
|
|
74
73
|
"rdflib": "2.4.1",
|
|
75
|
-
"solid-logic": "6.0
|
|
74
|
+
"solid-logic": "6.2.0",
|
|
76
75
|
"solid-namespace": "^0.5.4",
|
|
77
|
-
"solid-ui": "5.0
|
|
78
|
-
"source-pane": "4.
|
|
76
|
+
"solid-ui": "5.1.0",
|
|
77
|
+
"source-pane": "4.1.0"
|
|
79
78
|
},
|
|
80
79
|
"overrides": {
|
|
81
80
|
"rdflib": "$rdflib"
|