@elliemae/pui-app-bridge 2.18.0 → 2.19.0

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.
@@ -19,9 +19,30 @@ interface ServiceEndpoints {
19
19
  interface Env {
20
20
  serviceEndpoints: ServiceEndpoints;
21
21
  }
22
+ /**
23
+ * Files specific to the mode of the micro-frontend application.
24
+ */
22
25
  type EnvConfig = {
26
+ /**
27
+ * Array of file paths specific to the environment (development or production).
28
+ * relative or absolute URLs
29
+ */
23
30
  files: Array<string>;
24
31
  };
32
+ /**
33
+ * Modes in which a micro-frontend application can operate.
34
+ */
35
+ export declare enum LaunchMode {
36
+ DEVELOPMENT = "development",
37
+ PRODUCTION = "production"
38
+ }
39
+ /**
40
+ * Library that manages the micro-frontend application.
41
+ */
42
+ export declare enum MicroAppManager {
43
+ SSF = "ssf",
44
+ APPSDK = "appsdk"
45
+ }
25
46
  /**
26
47
  * guest micro frontend app configuration
27
48
  */
@@ -35,9 +56,13 @@ export type MicroFrontendApp = {
35
56
  */
36
57
  name: string;
37
58
  /**
38
- * application mode. dev or prod
59
+ * Optional title for the micro-frontend application.
60
+ */
61
+ title?: string;
62
+ /**
63
+ * Mode in which the micro-frontend operates (e.g., 'development', 'production').
39
64
  */
40
- mode?: string;
65
+ mode?: LaunchMode;
41
66
  /**
42
67
  * url where the application is hosted
43
68
  */
@@ -50,6 +75,15 @@ export type MicroFrontendApp = {
50
75
  * home route of the application
51
76
  */
52
77
  homeRoute?: string;
78
+ /**
79
+ * If true, the micro-frontend is treated as a JavaScript module.
80
+ */
81
+ isJsModule?: boolean;
82
+ /**
83
+ * Library that manages the micro-frontend application (e.g., 'ssf', 'appsdk').
84
+ * @default 'appsdk'
85
+ */
86
+ microappManager?: MicroAppManager;
53
87
  /**
54
88
  * security context under which the guest application is running
55
89
  */
@@ -1,7 +1,8 @@
1
+ import { LaunchMode } from '../config/app.js';
1
2
  export type AppInfo = {
2
3
  id: string;
3
4
  name: string;
4
- mode: string;
5
+ mode: LaunchMode;
5
6
  hostUrl: string;
6
7
  manifestPath: string;
7
8
  homeRoute: string;