sample-cross-fx 0.15.0-beta.4813 → 0.15.0-beta.4815

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
@@ -157,6 +157,9 @@ export interface PiletMetadata {
157
157
  * Listener for Piral app shell events.
158
158
  */
159
159
  export interface Listener<T> {
160
+ /**
161
+ * Receives an event of type T.
162
+ */
160
163
  (arg: T): void;
161
164
  }
162
165
 
@@ -504,6 +507,9 @@ export interface PiralPageMeta extends PiralCustomPageMeta, PiralCustomPageMeta
504
507
  * The shape of an implicit unregister function.
505
508
  */
506
509
  export interface RegistrationDisposer {
510
+ /**
511
+ * Cleans up the previous registration.
512
+ */
507
513
  (): void;
508
514
  }
509
515
 
@@ -526,6 +532,9 @@ export type ExtensionSlotProps<TName = string> = BaseExtensionSlotProps<TName ex
526
532
  * Can be implemented by functions to be used for disposal purposes.
527
533
  */
528
534
  export interface Disposable {
535
+ /**
536
+ * Disposes the created resource.
537
+ */
529
538
  (): void;
530
539
  }
531
540
 
@@ -589,7 +598,21 @@ export interface VueComponent<TProps> {
589
598
  * Represents the interface implemented by a module definer function.
590
599
  */
591
600
  export interface NgModuleDefiner {
601
+ /**
602
+ * Defines the module to use when bootstrapping the Angular pilet.
603
+ * @param ngModule The module to use for running Angular.
604
+ * @param opts The options to pass when bootstrapping.
605
+ */
592
606
  <T>(module: AngularCore.Type<T>, opts?: NgOptions): void;
607
+ /**
608
+ * Defines the module to lazy load for bootstrapping the Angular pilet.
609
+ * @param getModule The module lazy loader to use for running Angular.
610
+ * @param opts The options to pass when bootstrapping.
611
+ * @returns The module ID to be used to reference components.
612
+ */
613
+ <T>(getModule: () => Promise<{
614
+ default: AngularCore.Type<T>;
615
+ }>, opts?: NgOptions): NgComponentLoader;
593
616
  }
594
617
 
595
618
  export interface NgComponent {
@@ -970,6 +993,17 @@ export interface BaseExtensionSlotProps<TName, TParams> {
970
993
  */
971
994
  export type NgOptions = Parameters<AngularCore.PlatformRef["bootstrapModule"]>[1];
972
995
 
996
+ /**
997
+ * Gives you the ability to use a component from a lazy loaded module.
998
+ */
999
+ export interface NgComponentLoader {
1000
+ /**
1001
+ * Uses a component from a lazy loaded module.
1002
+ * @param selector The selector defined for the component to load.
1003
+ */
1004
+ (selector: string): NgComponent;
1005
+ }
1006
+
973
1007
  export interface NgLazyType {
974
1008
  selector: string;
975
1009
  module(): Promise<{
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.830f8c.js"></script></head>
8
+ <script defer src="/index.2f5618.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.830f8c.js');
5
+ require('.//index.2f5618.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": "0.15.0-beta.4813",
4
+ "version": "0.15.0-beta.4815",
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": "0.15.0-beta.4813",
53
+ "version": "0.15.0-beta.4815",
54
54
  "generated": true
55
55
  },
56
56
  "main": "./app/index.js",
@@ -64,8 +64,8 @@
64
64
  "@types/react-router": "^5.1.8",
65
65
  "@types/react-router-dom": "^5.1.6",
66
66
  "@vue/component-compiler-utils": "^3.0.0",
67
- "piral-cli": "^0.15.0-beta.4813",
68
- "piral-cli-webpack5": "^0.15.0-beta.4813",
67
+ "piral-cli": "^0.15.0-beta.4815",
68
+ "piral-cli-webpack5": "^0.15.0-beta.4815",
69
69
  "sass": "^1.17.0",
70
70
  "vue-template-compiler": "^2.6.10",
71
71
  "@angular/common": "14.1.3",
@@ -88,22 +88,22 @@
88
88
  "inferno-create-element": "7.4.11",
89
89
  "lit-element": "2.5.1",
90
90
  "mithril": "2.2.2",
91
- "piral-aurelia": "^0.15.0-beta.4813",
92
- "piral-blazor": "^0.15.0-beta.4813",
93
- "piral-core": "^0.15.0-beta.4813",
94
- "piral-elm": "^0.15.0-beta.4813",
95
- "piral-hyperapp": "^0.15.0-beta.4813",
96
- "piral-inferno": "^0.15.0-beta.4813",
97
- "piral-lazy": "^0.15.0-beta.4813",
98
- "piral-litel": "^0.15.0-beta.4813",
99
- "piral-mithril": "^0.15.0-beta.4813",
100
- "piral-ng": "^0.15.0-beta.4813",
101
- "piral-ngjs": "^0.15.0-beta.4813",
102
- "piral-preact": "^0.15.0-beta.4813",
103
- "piral-riot": "^0.15.0-beta.4813",
104
- "piral-solid": "^0.15.0-beta.4813",
105
- "piral-svelte": "^0.15.0-beta.4813",
106
- "piral-vue": "^0.15.0-beta.4813",
91
+ "piral-aurelia": "^0.15.0-beta.4815",
92
+ "piral-blazor": "^0.15.0-beta.4815",
93
+ "piral-core": "^0.15.0-beta.4815",
94
+ "piral-elm": "^0.15.0-beta.4815",
95
+ "piral-hyperapp": "^0.15.0-beta.4815",
96
+ "piral-inferno": "^0.15.0-beta.4815",
97
+ "piral-lazy": "^0.15.0-beta.4815",
98
+ "piral-litel": "^0.15.0-beta.4815",
99
+ "piral-mithril": "^0.15.0-beta.4815",
100
+ "piral-ng": "^0.15.0-beta.4815",
101
+ "piral-ngjs": "^0.15.0-beta.4815",
102
+ "piral-preact": "^0.15.0-beta.4815",
103
+ "piral-riot": "^0.15.0-beta.4815",
104
+ "piral-solid": "^0.15.0-beta.4815",
105
+ "piral-svelte": "^0.15.0-beta.4815",
106
+ "piral-vue": "^0.15.0-beta.4815",
107
107
  "preact": "10.8.2",
108
108
  "react": "18.2.0",
109
109
  "react-dom": "18.2.0",