@social-mail/social-mail-client 1.2.297 → 1.2.299
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/admin/AdminAppIndex.pack.js +7 -2
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +3 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/site-editor/editor/SelectedElement.js +1 -1
- package/dist/site-editor/editor/SelectedElement.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js +5 -0
- package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +7 -2
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +3 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/editor/HtmlPageEditor.tsx +1 -1
- package/src/site-editor/editor/SelectedElement.tsx +1 -1
- package/src/site-editor/editor/WebSitePageEditor.tsx +6 -0
|
@@ -46476,7 +46476,7 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
|
|
|
46476
46476
|
this.name = e.tagName.toLowerCase();
|
|
46477
46477
|
this.parentName = (_a = e.parentElement) === null || _a === void 0 ? void 0 : _a.tagName.toLowerCase();
|
|
46478
46478
|
const r = e.getBoundingClientRect();
|
|
46479
|
-
this.isImage =
|
|
46479
|
+
this.isImage = /^(img|video|pdf)/i.test(this.name);
|
|
46480
46480
|
this.top = `${r.top + 2}px`;
|
|
46481
46481
|
this.left = `${r.left + 2}px`;
|
|
46482
46482
|
this.width = `${r.width}px`;
|
|
@@ -49301,7 +49301,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
49301
49301
|
const target = e.target;
|
|
49302
49302
|
e.preventDefault();
|
|
49303
49303
|
const element = target.nodeType === Node.ELEMENT_NODE ? target : target.parentElement;
|
|
49304
|
-
if (/^(IMG|INJECT|VIDEO)
|
|
49304
|
+
if (/^(IMG|INJECT|VIDEO|PDF)/.test(element.tagName)) {
|
|
49305
49305
|
this.changeImage().catch(console.error);
|
|
49306
49306
|
return;
|
|
49307
49307
|
}
|
|
@@ -49927,6 +49927,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
49927
49927
|
inject = true;
|
|
49928
49928
|
break;
|
|
49929
49929
|
}
|
|
49930
|
+
if (/pdf/i.test(tagName)) {
|
|
49931
|
+
accept = "application/pdf";
|
|
49932
|
+
multiple = false;
|
|
49933
|
+
inject = false;
|
|
49934
|
+
}
|
|
49930
49935
|
const files = yield PageNavigator.pushPageForResult(ChooseMediaPage, {
|
|
49931
49936
|
folder: this.folder,
|
|
49932
49937
|
accept,
|