@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.
- package/component.js +6 -0
- package/dist/admin/AdminAppIndex.pack.js +19 -26
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +2 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/public/channel/BlogService.d.ts +1 -1
- package/dist/public/channel/BlogService.d.ts.map +1 -1
- package/dist/public/channel/BlogService.js +2 -2
- package/dist/public/channel/BlogService.js.map +1 -1
- package/dist/public/channel/ChannelMessageList.d.ts.map +1 -1
- package/dist/public/channel/ChannelMessageList.js +15 -2
- package/dist/public/channel/ChannelMessageList.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +36 -30
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +4 -4
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +19 -26
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +2 -2
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/index.js +6 -1
- package/node_modules/@web-atoms/core/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@web-atoms/core/dist/web/WebApp.d.ts +1 -0
- package/node_modules/@web-atoms/core/dist/web/WebApp.d.ts.map +1 -1
- package/node_modules/@web-atoms/core/dist/web/WebApp.js +3 -0
- package/node_modules/@web-atoms/core/dist/web/WebApp.js.map +1 -1
- package/node_modules/@web-atoms/core/package.json +1 -1
- package/node_modules/@web-atoms/core/src/web/WebApp.ts +6 -0
- package/node_modules/@web-atoms/module-loader/package.json +1 -1
- package/node_modules/@web-atoms/module-loader/umd/src/System.ts +3 -0
- package/node_modules/@web-atoms/module-loader/umd/src/UMDClass.ts +13 -27
- package/node_modules/@web-atoms/module-loader/umd.js +16 -26
- package/node_modules/@web-atoms/module-loader/umd.js.map +1 -1
- package/package.json +3 -3
- package/src/public/channel/BlogService.ts +2 -2
- package/src/public/channel/ChannelMessageList.tsx +16 -2
package/component.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
(function () {
|
|
2
2
|
let id = 1;
|
|
3
3
|
const currentScript = document.currentScript;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
4
7
|
setTimeout(() => {
|
|
5
8
|
for(const e of Array.from(document.querySelectorAll(`[styler-layout="component"]`))) {
|
|
6
9
|
e.id ||= `web_atoms_uid_${id++}`;
|
|
@@ -25,6 +28,9 @@
|
|
|
25
28
|
if (v = e.getAttribute("data-replace")) {
|
|
26
29
|
script.setAttribute("data-replace", v);
|
|
27
30
|
}
|
|
31
|
+
if (v = e.getAttribute("data-json-args")) {
|
|
32
|
+
script.setAttribute("data-json-args");
|
|
33
|
+
}
|
|
28
34
|
e.setAttribute("data-ready", "yes");
|
|
29
35
|
document.body.appendChild(script);
|
|
30
36
|
}
|
|
@@ -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.
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
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
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
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);
|
|
@@ -35834,6 +35824,9 @@ System.register(["../App", "../core/AtomOnce", "../core/AtomUri", "../di/Service
|
|
|
35834
35824
|
this.url = new AtomUri(location.href);
|
|
35835
35825
|
});
|
|
35836
35826
|
});
|
|
35827
|
+
this.initPromise = new Promise((resolve, reject) => {
|
|
35828
|
+
this.onReady(resolve);
|
|
35829
|
+
});
|
|
35837
35830
|
}
|
|
35838
35831
|
updateDefaultStyle(textContent) {
|
|
35839
35832
|
if (this.styleElement) {
|