@pi-outpost/embed 0.35.0 → 0.35.2
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/{PdfViewer-vJS_KjBR.js → PdfViewer-BJfC4rzg.js} +57 -56
- package/dist/PdfViewer-D6C-NAyn.cjs +1 -0
- package/dist/{conversationExport-CfZyBQjN.js → conversationExport-DU5Xp2g-.js} +3 -3
- package/dist/{conversationExport-ekqsE4gj.cjs → conversationExport-DwLc0HDC.cjs} +2 -2
- package/dist/{conversationHistory-Df_mxhq9.js → conversationHistory-DHEPfViO.js} +21 -17
- package/dist/{conversationHistory-CMG8Vmtn.cjs → conversationHistory-DTP8xNqg.cjs} +3 -3
- package/dist/{docxExport-Cyk5ToUi.js → docxExport-BWwEuboU.js} +4 -4
- package/dist/{docxExport-DF-PXilo.cjs → docxExport-PjDC4XKL.cjs} +2 -2
- package/dist/{loadReferencedImage-XQS67fhR.js → loadReferencedImage-C8Hn2ejN.js} +7 -7
- package/dist/{loadReferencedImage-C60bzMNm.cjs → loadReferencedImage-q-G47ESL.cjs} +1 -1
- package/dist/pi-outpost-embed.cjs +13 -13
- package/dist/pi-outpost-embed.js +3573 -3565
- package/dist/workspacePath-D0C-ViGF.cjs +1 -0
- package/dist/{workspacePath-CpsPdoMU.js → workspacePath-Dzahj9-k.js} +7 -4
- package/package.json +1 -1
- package/dist/PdfViewer-BivxlUFq.cjs +0 -1
- package/dist/workspacePath-CmeO2xGd.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`//`)}function t(e,t){let n=t.split(/[?#]/)[0],r=n.startsWith(`/`)?n.split(`/`):[...e.split(`/`).slice(0,-1),...n.split(`/`)],i=[];for(let e of r)e!==``&&e!==`.`&&(e===`..`?i.pop():i.push(e));return i.join(`/`)}function n(e){return/\.(png|jpe?g|gif|webp|svg|avif)$/i.test(e)}function r(e){return/\.pdf$/i.test(e)}function i(e){return/\.(docx|xlsx|pptx|msg|eml|emlx)$/i.test(e)}function a(e,t,n,r,i){let a=n?`&token=${encodeURIComponent(n)}`:``,o=r===void 0?``:`&v=${encodeURIComponent(String(r))}`,s=i===void 0?``:`&workspace=${encodeURIComponent(i)}`;return`${e}/files/raw?path=${encodeURIComponent(t)}${a}${o}${s}`}function o(e){return e?e.id??e.root:void 0}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
|
@@ -16,9 +16,12 @@ function r(e) {
|
|
|
16
16
|
function i(e) {
|
|
17
17
|
return /\.(docx|xlsx|pptx|msg|eml|emlx)$/i.test(e);
|
|
18
18
|
}
|
|
19
|
-
function a(e, t, n, r) {
|
|
20
|
-
let
|
|
21
|
-
return `${e}/files/raw?path=${encodeURIComponent(t)}${
|
|
19
|
+
function a(e, t, n, r, i) {
|
|
20
|
+
let a = n ? `&token=${encodeURIComponent(n)}` : "", o = r === void 0 ? "" : `&v=${encodeURIComponent(String(r))}`, s = i === void 0 ? "" : `&workspace=${encodeURIComponent(i)}`;
|
|
21
|
+
return `${e}/files/raw?path=${encodeURIComponent(t)}${a}${o}${s}`;
|
|
22
|
+
}
|
|
23
|
+
function o(e) {
|
|
24
|
+
return e ? e.id ?? e.root : void 0;
|
|
22
25
|
}
|
|
23
26
|
//#endregion
|
|
24
|
-
export { a, r as i, e as n,
|
|
27
|
+
export { a, r as i, e as n, o, n as r, t as s, i as t };
|