@webority/ui-elements 0.23.0 → 0.23.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/ui-file-viewer.js
CHANGED
|
@@ -59,7 +59,7 @@ function u(e) {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
var d = {
|
|
62
|
-
pdf: () => import("./fileViewerPdf-
|
|
62
|
+
pdf: () => import("./fileViewerPdf-CRBzt1sz.js").then((e) => e.PdfView),
|
|
63
63
|
image: () => import("./fileViewerImage-BCa3VOzL.js").then((e) => e.ImageView),
|
|
64
64
|
video: () => import("./fileViewerMedia-nWkR08x2.js").then((e) => e.MediaView),
|
|
65
65
|
audio: () => import("./fileViewerMedia-nWkR08x2.js").then((e) => e.MediaView)
|
|
@@ -181,7 +181,7 @@ var d = {
|
|
|
181
181
|
kind: t,
|
|
182
182
|
captions: this.captions,
|
|
183
183
|
workerSrc: this.workerSrc,
|
|
184
|
-
assetBase: this.assetBase || i.defaultAssetBase
|
|
184
|
+
assetBase: m(this.assetBase || i.defaultAssetBase)
|
|
185
185
|
}), this._view.load());
|
|
186
186
|
}
|
|
187
187
|
_shell(e) {
|
|
@@ -291,7 +291,13 @@ var d = {
|
|
|
291
291
|
window.localStorage.setItem(`wui-view:${this.viewKey}`, JSON.stringify(this._prefs));
|
|
292
292
|
} catch {}
|
|
293
293
|
}
|
|
294
|
-
}
|
|
295
|
-
|
|
294
|
+
};
|
|
295
|
+
function m(e) {
|
|
296
|
+
return e && new URL(e, document.baseURI).href;
|
|
297
|
+
}
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region src/fileViewer.js
|
|
300
|
+
var h = typeof document > "u" ? null : document.currentScript;
|
|
301
|
+
h?.src && (p.defaultAssetBase = new URL("pdfjs/", h.src).href), typeof customElements < "u" && !customElements.get("wui-file-viewer") && customElements.define("wui-file-viewer", p);
|
|
296
302
|
//#endregion
|
|
297
303
|
export { p as WuiFileViewer, l as fileKind, u as fileNameFromUrl };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-elements",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "Webority framework-agnostic UI custom elements (<wui-*>) — the single implementation of the interactive components, styled by @webority/theme. Used natively in Razor and wrapped by @webority/ui-react.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|