@social-mail/social-mail-client 1.2.48 → 1.2.49

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.
Files changed (37) hide show
  1. package/component.js +24 -77
  2. package/dist/admin/AdminAppIndex.pack.js +72 -20
  3. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  4. package/dist/admin/AdminAppIndex.pack.min.js +30 -4
  5. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  6. package/dist/public/channel/ChannelView.pack.js +4 -3
  7. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  8. package/dist/public/channel/ChannelView.pack.min.js +1 -1
  9. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  10. package/dist/site-editor/blocks/Components.d.ts.map +1 -1
  11. package/dist/site-editor/blocks/Components.js +5 -3
  12. package/dist/site-editor/blocks/Components.js.map +1 -1
  13. package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
  14. package/dist/site-editor/editor/HtmlPageEditor.js +10 -10
  15. package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
  16. package/dist/site-editor/styler/properties/layouts/blocks/layoutComponent.d.ts +2 -0
  17. package/dist/site-editor/styler/properties/layouts/blocks/layoutComponent.d.ts.map +1 -0
  18. package/dist/site-editor/styler/properties/layouts/blocks/layoutComponent.js +44 -0
  19. package/dist/site-editor/styler/properties/layouts/blocks/layoutComponent.js.map +1 -0
  20. package/dist/site-editor/styler/properties/layouts/layout.d.ts.map +1 -1
  21. package/dist/site-editor/styler/properties/layouts/layout.js +5 -3
  22. package/dist/site-editor/styler/properties/layouts/layout.js.map +1 -1
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/dist/web/AppIndex.pack.js +72 -20
  25. package/dist/web/AppIndex.pack.js.map +1 -1
  26. package/dist/web/AppIndex.pack.min.js +30 -4
  27. package/dist/web/AppIndex.pack.min.js.map +1 -1
  28. package/node_modules/@web-atoms/module-loader/package.json +1 -1
  29. package/node_modules/@web-atoms/module-loader/umd/src/UMDClass.ts +6 -5
  30. package/node_modules/@web-atoms/module-loader/umd.d.ts +2 -1
  31. package/node_modules/@web-atoms/module-loader/umd.js +4 -3
  32. package/node_modules/@web-atoms/module-loader/umd.js.map +1 -1
  33. package/package.json +2 -2
  34. package/src/site-editor/blocks/Components.tsx +5 -2
  35. package/src/site-editor/editor/HtmlPageEditor.tsx +10 -10
  36. package/src/site-editor/styler/properties/layouts/blocks/layoutComponent.ts +32 -0
  37. package/src/site-editor/styler/properties/layouts/layout.ts +3 -1
@@ -1864,6 +1864,7 @@ class System {
1864
1864
  };
1865
1865
  }
1866
1866
  }
1867
+ const globalNS = (typeof window !== "undefined" ? window : global);
1867
1868
  class UMDClass {
1868
1869
  constructor() {
1869
1870
  this.debug = false;
@@ -1921,16 +1922,17 @@ class UMDClass {
1921
1922
  }
1922
1923
  hostView(id, path, designMode) {
1923
1924
  return __awaiter(this, void 0, void 0, function* () {
1925
+ var _a;
1924
1926
  try {
1925
1927
  this.mock = designMode;
1926
1928
  AmdLoader.instance.get(path);
1927
1929
  const m = yield this.load(this.defaultApp, designMode);
1928
- const app = new (m.default)();
1930
+ const app = ((_a = globalNS.webApp) !== null && _a !== void 0 ? _a : (globalNS.webApp = new (m.default)()));
1929
1931
  app.onReady(() => __awaiter(this, void 0, void 0, function* () {
1930
1932
  try {
1931
1933
  const viewClass = yield AmdLoader.instance.import(path);
1932
1934
  const view = new (viewClass.default)(app);
1933
- const element = document.getElementById(id);
1935
+ const element = typeof id === "string" ? document.getElementById(id) : id;
1934
1936
  element.appendChild(view.element);
1935
1937
  }
1936
1938
  catch (e) {
@@ -1975,7 +1977,6 @@ class UMDClass {
1975
1977
  }
1976
1978
  const UMD = new UMDClass();
1977
1979
  ((u) => {
1978
- const globalNS = (typeof window !== "undefined" ? window : global);
1979
1980
  globalNS.UMD = u;
1980
1981
  globalNS.AmdLoader = AmdLoader;
1981
1982
  globalNS.System = System;