sample-cross-fx 1.2.0-beta.5859 → 1.2.0-beta.5865

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/app/index.d.ts CHANGED
@@ -606,15 +606,17 @@ export interface NgModuleDefiner {
606
606
  * Defines the module to use when bootstrapping the Angular pilet.
607
607
  * @param ngModule The module to use for running Angular.
608
608
  * @param opts The options to pass when bootstrapping.
609
+ * @param flags The flags to use when dealing with the module.
609
610
  */
610
- <T>(module: AngularCore.Type<T>, opts?: NgOptions): void;
611
+ <T>(module: AngularCore.Type<T>, opts?: NgOptions, flags?: NgModuleFlags): void;
611
612
  /**
612
613
  * Defines the module to lazy load for bootstrapping the Angular pilet.
613
614
  * @param getModule The module lazy loader to use for running Angular.
614
615
  * @param opts The options to pass when bootstrapping.
616
+ * @param flags The flags to use when dealing with the module.
615
617
  * @returns The module ID to be used to reference components.
616
618
  */
617
- <T>(getModule: LazyType<T>, opts?: NgOptions): NgComponentLoader;
619
+ <T>(getModule: LazyType<T>, opts?: NgOptions, flags?: NgModuleFlags): NgComponentLoader;
618
620
  }
619
621
 
620
622
  export interface NgComponent {
@@ -997,6 +999,13 @@ export interface BaseExtensionSlotProps<TName, TParams> {
997
999
  */
998
1000
  export type NgOptions = Parameters<AngularCore.PlatformRef["bootstrapModule"]>[1];
999
1001
 
1002
+ export interface NgModuleFlags {
1003
+ /**
1004
+ * If set to true prevents the module from being disposed.
1005
+ */
1006
+ keepAlive?: boolean;
1007
+ }
1008
+
1000
1009
  /**
1001
1010
  * The lazy loading interface for retrieving Angular components.
1002
1011
  */
@@ -1026,6 +1035,7 @@ export interface NgLazyType {
1026
1035
  default: AngularCore.Type<any>;
1027
1036
  }>;
1028
1037
  opts: NgOptions;
1038
+ flags: NgModuleFlags;
1029
1039
  state: any;
1030
1040
  }
1031
1041
 
package/app/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <title>Sample - Cross Framework with Piral</title>
6
6
  <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
7
7
 
8
- <script defer src="/index.f7d79f.js"></script></head>
8
+ <script defer src="/index.01ecb9.js"></script></head>
9
9
  <body>
10
10
  <div id="app"></div>
11
11
 
package/app/index.js CHANGED
@@ -2,7 +2,7 @@ if (process.env.NODE_ENV === 'test') {
2
2
  // behavior for the test environment, we'll try to make it work
3
3
 
4
4
  if (typeof window !== 'undefined') {
5
- require('.//index.f7d79f.js');
5
+ require('.//index.01ecb9.js');
6
6
  const ctx = window['dbg:piral'];
7
7
  const dependencies = (ctx && ctx.pilets && ctx.pilets.getDependencies({})) || {};
8
8
  module.exports = dependencies['sample-cross-fx'] || {};
package/files.tar CHANGED
Binary file
package/files_once.tar CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sample-cross-fx",
3
3
  "description": "Example project illustrating the mixing of different (opt-in) frameworks via plugins.",
4
- "version": "1.2.0-beta.5859",
4
+ "version": "1.2.0-beta.5865",
5
5
  "license": "MIT",
6
6
  "homepage": "https://piral.io",
7
7
  "keywords": [
@@ -50,7 +50,7 @@
50
50
  "files": []
51
51
  },
52
52
  "piralCLI": {
53
- "version": "1.2.0-beta.5859",
53
+ "version": "1.2.0-beta.5865",
54
54
  "generated": true
55
55
  },
56
56
  "main": "./app/index.js",
@@ -65,8 +65,8 @@
65
65
  "@types/react-router": "^5.1.8",
66
66
  "@types/react-router-dom": "^5.1.6",
67
67
  "@vue/component-compiler-utils": "^3.0.0",
68
- "piral-cli": "^1.2.0-beta.5859",
69
- "piral-cli-webpack5": "^1.2.0-beta.5859",
68
+ "piral-cli": "^1.2.0-beta.5865",
69
+ "piral-cli-webpack5": "^1.2.0-beta.5865",
70
70
  "sass": "^1.17.0",
71
71
  "vue-template-compiler": "^2.6.10",
72
72
  "@angular/common": "16.0.1",
@@ -89,22 +89,22 @@
89
89
  "inferno-create-element": "7.4.11",
90
90
  "lit-element": "2.5.1",
91
91
  "mithril": "2.2.2",
92
- "piral-aurelia": "^1.2.0-beta.5859",
93
- "piral-blazor": "^1.2.0-beta.5859",
94
- "piral-core": "^1.2.0-beta.5859",
95
- "piral-elm": "^1.2.0-beta.5859",
96
- "piral-hyperapp": "^1.2.0-beta.5859",
97
- "piral-inferno": "^1.2.0-beta.5859",
98
- "piral-lazy": "^1.2.0-beta.5859",
99
- "piral-litel": "^1.2.0-beta.5859",
100
- "piral-mithril": "^1.2.0-beta.5859",
101
- "piral-ng": "^1.2.0-beta.5859",
102
- "piral-ngjs": "^1.2.0-beta.5859",
103
- "piral-preact": "^1.2.0-beta.5859",
104
- "piral-riot": "^1.2.0-beta.5859",
105
- "piral-solid": "^1.2.0-beta.5859",
106
- "piral-svelte": "^1.2.0-beta.5859",
107
- "piral-vue": "^1.2.0-beta.5859",
92
+ "piral-aurelia": "^1.2.0-beta.5865",
93
+ "piral-blazor": "^1.2.0-beta.5865",
94
+ "piral-core": "^1.2.0-beta.5865",
95
+ "piral-elm": "^1.2.0-beta.5865",
96
+ "piral-hyperapp": "^1.2.0-beta.5865",
97
+ "piral-inferno": "^1.2.0-beta.5865",
98
+ "piral-lazy": "^1.2.0-beta.5865",
99
+ "piral-litel": "^1.2.0-beta.5865",
100
+ "piral-mithril": "^1.2.0-beta.5865",
101
+ "piral-ng": "^1.2.0-beta.5865",
102
+ "piral-ngjs": "^1.2.0-beta.5865",
103
+ "piral-preact": "^1.2.0-beta.5865",
104
+ "piral-riot": "^1.2.0-beta.5865",
105
+ "piral-solid": "^1.2.0-beta.5865",
106
+ "piral-svelte": "^1.2.0-beta.5865",
107
+ "piral-vue": "^1.2.0-beta.5865",
108
108
  "preact": "10.8.2",
109
109
  "react": "18.2.0",
110
110
  "react-dom": "18.2.0",