sample-cross-fx 0.15.0-beta.4803 → 0.15.0-beta.4812

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
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import * as Vue from 'vue';
3
+ import * as AngularCore from '@angular/core';
3
4
  import * as Angular from 'angular';
4
5
  import * as Inferno from 'inferno';
5
6
  import * as Preact from 'preact';
6
7
  import * as Riot from 'riot';
7
8
  import * as SolidJs from 'solid-js';
8
9
  import * as ReactRouter from 'react-router';
9
- import * as AngularCore from '@angular/core';
10
10
 
11
11
  /**
12
12
  * Defines the API accessible from pilets.
@@ -202,7 +202,7 @@ export interface PiletNgApi {
202
202
  * @param component The component root.
203
203
  * @returns The Piral Ng component.
204
204
  */
205
- fromNg(component: any): NgComponent;
205
+ fromNg<T>(component: AngularCore.Type<T>): NgComponent;
206
206
  /**
207
207
  * Angular component for displaying extensions of the given name.
208
208
  */
@@ -589,14 +589,14 @@ export interface VueComponent<TProps> {
589
589
  * Represents the interface implemented by a module definer function.
590
590
  */
591
591
  export interface NgModuleDefiner {
592
- (module: any, opts?: NgOptions): void;
592
+ <T>(module: AngularCore.Type<T>, opts?: NgOptions): void;
593
593
  }
594
594
 
595
595
  export interface NgComponent {
596
596
  /**
597
597
  * The component root.
598
598
  */
599
- component: any;
599
+ component: AngularCore.Type<any> | NgLazyType;
600
600
  /**
601
601
  * The type of the Angular component.
602
602
  */
@@ -970,6 +970,15 @@ export interface BaseExtensionSlotProps<TName, TParams> {
970
970
  */
971
971
  export type NgOptions = Parameters<AngularCore.PlatformRef["bootstrapModule"]>[1];
972
972
 
973
+ export interface NgLazyType {
974
+ selector: string;
975
+ module(): Promise<{
976
+ default: AngularCore.Type<any>;
977
+ }>;
978
+ opts: NgOptions;
979
+ state: any;
980
+ }
981
+
973
982
  /**
974
983
  * The VDOM representation of an Element.
975
984
  * @memberOf [VDOM]
@@ -1167,6 +1176,10 @@ export interface NavigationApi {
1167
1176
  * Gets the current navigation / application path.
1168
1177
  */
1169
1178
  path: string;
1179
+ /**
1180
+ * Gets the current navigation path incl. search and hash parts.
1181
+ */
1182
+ url: string;
1170
1183
  /**
1171
1184
  * The original router behind the navigation. Don't depend on this
1172
1185
  * as the implementation is router specific and may change over time.
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.717365.js"></script></head>
8
+ <script defer src="/index.13e756.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.717365.js');
5
+ require('.//index.13e756.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.4803",
4
+ "version": "0.15.0-beta.4812",
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.4803",
53
+ "version": "0.15.0-beta.4812",
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.4803",
68
- "piral-cli-webpack5": "^0.15.0-beta.4803",
67
+ "piral-cli": "^0.15.0-beta.4812",
68
+ "piral-cli-webpack5": "^0.15.0-beta.4812",
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.4803",
92
- "piral-blazor": "^0.15.0-beta.4803",
93
- "piral-core": "^0.15.0-beta.4803",
94
- "piral-elm": "^0.15.0-beta.4803",
95
- "piral-hyperapp": "^0.15.0-beta.4803",
96
- "piral-inferno": "^0.15.0-beta.4803",
97
- "piral-lazy": "^0.15.0-beta.4803",
98
- "piral-litel": "^0.15.0-beta.4803",
99
- "piral-mithril": "^0.15.0-beta.4803",
100
- "piral-ng": "^0.15.0-beta.4803",
101
- "piral-ngjs": "^0.15.0-beta.4803",
102
- "piral-preact": "^0.15.0-beta.4803",
103
- "piral-riot": "^0.15.0-beta.4803",
104
- "piral-solid": "^0.15.0-beta.4803",
105
- "piral-svelte": "^0.15.0-beta.4803",
106
- "piral-vue": "^0.15.0-beta.4803",
91
+ "piral-aurelia": "^0.15.0-beta.4812",
92
+ "piral-blazor": "^0.15.0-beta.4812",
93
+ "piral-core": "^0.15.0-beta.4812",
94
+ "piral-elm": "^0.15.0-beta.4812",
95
+ "piral-hyperapp": "^0.15.0-beta.4812",
96
+ "piral-inferno": "^0.15.0-beta.4812",
97
+ "piral-lazy": "^0.15.0-beta.4812",
98
+ "piral-litel": "^0.15.0-beta.4812",
99
+ "piral-mithril": "^0.15.0-beta.4812",
100
+ "piral-ng": "^0.15.0-beta.4812",
101
+ "piral-ngjs": "^0.15.0-beta.4812",
102
+ "piral-preact": "^0.15.0-beta.4812",
103
+ "piral-riot": "^0.15.0-beta.4812",
104
+ "piral-solid": "^0.15.0-beta.4812",
105
+ "piral-svelte": "^0.15.0-beta.4812",
106
+ "piral-vue": "^0.15.0-beta.4812",
107
107
  "preact": "10.8.2",
108
108
  "react": "18.2.0",
109
109
  "react-dom": "18.2.0",