@social-mail/social-mail-client 1.2.45 → 1.2.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.2.45",
3
+ "version": "1.2.46",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,6 +25,7 @@ import { TextBox } from "../blocks/TextBox";
25
25
  import { Card } from "../blocks/Card";
26
26
  import { List } from "../blocks/List";
27
27
  import { BlogComponent } from "../blocks/Components";
28
+ import { UMD } from "@web-atoms/core/dist/core/types";
28
29
 
29
30
  styled.css `
30
31
  display: grid;
@@ -526,9 +527,9 @@ export default class HtmlPageEditor extends AtomControl {
526
527
  const blogView = clone.querySelector(`section[data-web-atoms-view="blog-view"]`);
527
528
  if (blogView) {
528
529
  const blogScript = this.htmlDocument.createElement("script");
529
- blogScript.src = "https://cdn.jsdelivr.net/npm/@social-mail/social-mail-client@1.2.45/component.js";
530
+ blogScript.src = UMD.resolvePath("@social-mail/social-mail-client/component.js");
530
531
  blogScript.setAttribute("data-package", "@social-mail/social-mail-client");
531
- blogScript.setAttribute("data-package-root", "https://cdn.jsdelivr.net/npm/@social-mail/social-mail-client@1.2.45/");
532
+ blogScript.setAttribute("data-package-root", UMD.resolvePath("@social-mail/social-mail-client/"));
532
533
  blogScript.setAttribute("data-replace", "true");
533
534
  blogScript.setAttribute("data-view", "dist/public/channel/ChannelView");
534
535
  blogView.parentElement.replaceChild(blogScript, blogView);