@social-mail/social-mail-client 1.2.88 → 1.2.89

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 +6 -0
  2. package/dist/admin/AdminAppIndex.pack.js +19 -26
  3. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  4. package/dist/admin/AdminAppIndex.pack.min.js +2 -2
  5. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  6. package/dist/public/channel/BlogService.d.ts +1 -1
  7. package/dist/public/channel/BlogService.d.ts.map +1 -1
  8. package/dist/public/channel/BlogService.js +2 -2
  9. package/dist/public/channel/BlogService.js.map +1 -1
  10. package/dist/public/channel/ChannelMessageList.d.ts.map +1 -1
  11. package/dist/public/channel/ChannelMessageList.js +15 -2
  12. package/dist/public/channel/ChannelMessageList.js.map +1 -1
  13. package/dist/public/channel/ChannelView.pack.js +36 -30
  14. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  15. package/dist/public/channel/ChannelView.pack.min.js +4 -4
  16. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  17. package/dist/tsconfig.tsbuildinfo +1 -1
  18. package/dist/web/AppIndex.pack.js +19 -26
  19. package/dist/web/AppIndex.pack.js.map +1 -1
  20. package/dist/web/AppIndex.pack.min.js +2 -2
  21. package/dist/web/AppIndex.pack.min.js.map +1 -1
  22. package/index.js +6 -1
  23. package/node_modules/@web-atoms/core/dist/tsconfig.tsbuildinfo +1 -1
  24. package/node_modules/@web-atoms/core/dist/web/WebApp.d.ts +1 -0
  25. package/node_modules/@web-atoms/core/dist/web/WebApp.d.ts.map +1 -1
  26. package/node_modules/@web-atoms/core/dist/web/WebApp.js +3 -0
  27. package/node_modules/@web-atoms/core/dist/web/WebApp.js.map +1 -1
  28. package/node_modules/@web-atoms/core/package.json +1 -1
  29. package/node_modules/@web-atoms/core/src/web/WebApp.ts +6 -0
  30. package/node_modules/@web-atoms/module-loader/package.json +1 -1
  31. package/node_modules/@web-atoms/module-loader/umd/src/System.ts +3 -0
  32. package/node_modules/@web-atoms/module-loader/umd/src/UMDClass.ts +13 -27
  33. package/node_modules/@web-atoms/module-loader/umd.js +16 -26
  34. package/node_modules/@web-atoms/module-loader/umd.js.map +1 -1
  35. package/package.json +3 -3
  36. package/src/public/channel/BlogService.ts +2 -2
  37. package/src/public/channel/ChannelMessageList.tsx +16 -2
@@ -1828,6 +1828,9 @@ class System {
1828
1828
  setup = importsOrSetup;
1829
1829
  }
1830
1830
  const module = instance.get(name);
1831
+ if (module.isLoaded) {
1832
+ return;
1833
+ }
1831
1834
  module.dependencies.push(...imports.map((x) => instance.get(module.require.resolve(x))));
1832
1835
  module.isLoaded = true;
1833
1836
  const postResolve = new Promise((resolve, reject) => {
@@ -1928,17 +1931,12 @@ class UMDClass {
1928
1931
  AmdLoader.instance.get(path);
1929
1932
  const m = yield this.load(this.defaultApp, designMode);
1930
1933
  const app = ((_a = globalNS.webApp) !== null && _a !== void 0 ? _a : (globalNS.webApp = new (m.default)()));
1931
- app.onReady(() => __awaiter(this, void 0, void 0, function* () {
1932
- try {
1933
- const viewClass = yield AmdLoader.instance.import(path);
1934
- const view = new (viewClass.default)(app);
1935
- const element = typeof id === "string" ? document.getElementById(id) : id;
1936
- element.appendChild(view.element);
1937
- }
1938
- catch (e) {
1939
- console.error(e);
1940
- }
1941
- }));
1934
+ yield app.initPromise;
1935
+ const viewClass = yield AmdLoader.instance.import(path);
1936
+ const view = new (viewClass.default)(app);
1937
+ const element = typeof id === "string" ? document.getElementById(id) : id;
1938
+ element.appendChild(view.element);
1939
+ return view;
1942
1940
  }
1943
1941
  catch (e) {
1944
1942
  console.error(e);
@@ -1947,26 +1945,18 @@ class UMDClass {
1947
1945
  }
1948
1946
  loadView(path, designMode, appPath) {
1949
1947
  return __awaiter(this, void 0, void 0, function* () {
1948
+ var _a;
1950
1949
  try {
1951
1950
  this.mock = designMode;
1952
1951
  appPath = appPath || this.defaultApp;
1953
1952
  AmdLoader.instance.get(path);
1954
1953
  const m = yield this.load(appPath, designMode);
1955
- const app = new (m.default)();
1956
- return yield new Promise((resolve, reject) => {
1957
- app.onReady(() => __awaiter(this, void 0, void 0, function* () {
1958
- try {
1959
- const viewClass = yield AmdLoader.instance.import(path);
1960
- const view = new (viewClass.default)(app);
1961
- app.root = view;
1962
- resolve(view);
1963
- }
1964
- catch (e) {
1965
- console.error(e);
1966
- reject(e);
1967
- }
1968
- }));
1969
- });
1954
+ const app = ((_a = globalNS.webApp) !== null && _a !== void 0 ? _a : (globalNS.webApp = new (m.default)()));
1955
+ yield app.initPromise;
1956
+ const viewClass = yield AmdLoader.instance.import(path);
1957
+ const view = new (viewClass.default)(app);
1958
+ app.root = view;
1959
+ return view;
1970
1960
  }
1971
1961
  catch (er) {
1972
1962
  console.error(er);
@@ -28517,6 +28507,9 @@ System.register(["../App", "../core/AtomOnce", "../core/AtomUri", "../di/Service
28517
28507
  this.url = new AtomUri(location.href);
28518
28508
  });
28519
28509
  });
28510
+ this.initPromise = new Promise((resolve, reject) => {
28511
+ this.onReady(resolve);
28512
+ });
28520
28513
  }
28521
28514
  updateDefaultStyle(textContent) {
28522
28515
  if (this.styleElement) {