@social-mail/social-mail-client 1.8.368 → 1.8.370

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/content/images/svg/splash/comment.svg +45 -0
  2. package/dist/admin/AdminAppIndex.pack.global.css +1 -1
  3. package/dist/admin/AdminAppIndex.pack.global.css.map +1 -1
  4. package/dist/admin/AdminAppIndex.pack.js +46 -3
  5. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  6. package/dist/admin/AdminAppIndex.pack.min.js +1 -1
  7. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  8. package/dist/common/BaseApp.d.ts.map +1 -1
  9. package/dist/common/BaseApp.js +6 -2
  10. package/dist/common/BaseApp.js.map +1 -1
  11. package/dist/common/pages/splash/SplashScreenPage.d.ts +14 -0
  12. package/dist/common/pages/splash/SplashScreenPage.d.ts.map +1 -0
  13. package/dist/common/pages/splash/SplashScreenPage.global.css +2 -0
  14. package/dist/common/pages/splash/SplashScreenPage.global.css.map +1 -0
  15. package/dist/common/pages/splash/SplashScreenPage.js +36 -0
  16. package/dist/common/pages/splash/SplashScreenPage.js.map +1 -0
  17. package/dist/site-editor-app/SiteEditorApp.pack.global.css +1 -1
  18. package/dist/site-editor-app/SiteEditorApp.pack.global.css.map +1 -1
  19. package/dist/site-editor-app/SiteEditorApp.pack.js +46 -3
  20. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  21. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  22. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/dist/web/AppIndex.d.ts.map +1 -1
  25. package/dist/web/AppIndex.js +6 -2
  26. package/dist/web/AppIndex.js.map +1 -1
  27. package/dist/web/AppIndex.pack.global.css +1 -1
  28. package/dist/web/AppIndex.pack.global.css.map +1 -1
  29. package/dist/web/AppIndex.pack.js +46 -3
  30. package/dist/web/AppIndex.pack.js.map +1 -1
  31. package/dist/web/AppIndex.pack.min.js +1 -1
  32. package/dist/web/AppIndex.pack.min.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/common/BaseApp.tsx +4 -0
  35. package/src/common/pages/splash/SplashScreenPage.global.css +16 -0
  36. package/src/common/pages/splash/SplashScreenPage.tsx +34 -0
  37. package/src/web/AppIndex.tsx +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.8.368",
3
+ "version": "1.8.370",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,6 +16,7 @@ import { AppLocation } from "./TestMode";
16
16
 
17
17
  import "../style/GlobalStyle";
18
18
  import BusyProgress from "../services/BusyProgress";
19
+ import SplashScreenPage from "./pages/splash/SplashScreenPage";
19
20
 
20
21
 
21
22
  (Symbol as any).asyncDispose ??= Symbol("asyncDispose");
@@ -37,6 +38,8 @@ export default abstract class BaseApp extends MobileDesktopApp {
37
38
 
38
39
  async init() {
39
40
 
41
+ PageNavigator.openPage(SplashScreenPage);
42
+
40
43
  this.commands.install(this);
41
44
 
42
45
  // attach upload events..
@@ -81,6 +84,7 @@ export default abstract class BaseApp extends MobileDesktopApp {
81
84
  const url = new URL(SocialMailApp.config.links.login);
82
85
  url.searchParams.append("returnUrl", location.href);
83
86
  location.href = url.toString();
87
+ return;
84
88
  }
85
89
  PageNavigator.openPage(LoginPage);
86
90
  }
@@ -0,0 +1,16 @@
1
+ splash-screen-page {
2
+ overflow: hidden;
3
+ &[data-base-page=base-page]>[data-page-element=content] {
4
+ overflow: hidden;
5
+ }
6
+ splash-screen {
7
+ width: 100%;
8
+ height: 100%;
9
+ overflow: hidden;
10
+ & > * {
11
+ width: 100%;
12
+ height: 100%;
13
+ overflow: hidden;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,34 @@
1
+ import { UMD } from "@web-atoms/core/dist/core/types";
2
+ import XNode from "@web-atoms/core/dist/core/XNode";
3
+ import FetchBuilder from "@web-atoms/core/dist/services/FetchBuilder";
4
+ import { ContentPage } from "@web-atoms/web-controls/dist/mobile-app/MobileApp";
5
+ import "./SplashScreenPage.global.css";
6
+
7
+ const svg = UMD.resolvePath("@social-mail/social-mail-client/content/images/svg/splash/comment.svg");
8
+
9
+ /* eslint-disable @typescript-eslint/no-namespace */
10
+ declare global {
11
+ namespace JSX {
12
+ // eslint-disable-next-line @typescript-eslint/naming-convention
13
+ interface IntrinsicElements {
14
+ "splash-screen": any;
15
+ }
16
+ }
17
+ }
18
+
19
+ export default class SplashScreenPage extends ContentPage {
20
+
21
+ constructor(app, e = document.createElement("splash-screen-page")) {
22
+ super(app, e);
23
+ }
24
+
25
+ async init() {
26
+ this.hideToolbar = true;
27
+ this.renderer = <div>
28
+ <splash-screen/>
29
+ </div>;
30
+ const text = await FetchBuilder.get(svg).asText();
31
+ this.element.querySelector("splash-screen").innerHTML = text;
32
+ }
33
+
34
+ }
@@ -20,6 +20,7 @@ import SocialMailApp from "../common/SocialMailApp";
20
20
  import MiniComposePage from "./page/mails/mini-compose/MiniComposePage";
21
21
  import { AppLocation } from "../common/TestMode";
22
22
  import BusyProgress from "../services/BusyProgress";
23
+ import SplashScreenPage from "../common/pages/splash/SplashScreenPage";
23
24
 
24
25
  (Symbol as any).asyncDispose ??= Symbol("asyncDispose");
25
26
  (Symbol as any).dispose ??= Symbol("dispose");
@@ -36,6 +37,9 @@ export default class AppIndex extends MobileDesktopApp {
36
37
  }
37
38
 
38
39
  async init() {
40
+
41
+ PageNavigator.openPage(SplashScreenPage);
42
+
39
43
  AppCommands.install(this);
40
44
 
41
45
  // attach upload events..
@@ -46,6 +50,7 @@ export default class AppIndex extends MobileDesktopApp {
46
50
  if (!currentUser) {
47
51
  if (SocialMailApp.config.links.login) {
48
52
  location.href = SocialMailApp.config.links.login;
53
+ return;
49
54
  }
50
55
  PageNavigator.openPage(LoginPage);
51
56
  return;