sample-cross-fx 0.14.9 → 0.14.10-beta.3659

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
@@ -89,7 +89,7 @@ declare module "sample-cross-fx" {
89
89
  * @param Component The component to be rendered.
90
90
  * @param defaults Optionally, sets the default values for the expected data.
91
91
  */
92
- registerExtension<TName>(name: TName extends string ? TName : string, Component: AnyComponent<ExtensionComponentProps<TName>>, defaults?: TName): RegistrationDisposer;
92
+ registerExtension<TName>(name: TName extends string ? TName : string, Component: AnyComponent<ExtensionComponentProps<TName>>, defaults?: Partial<ExtensionParams<TName>>): RegistrationDisposer;
93
93
  /**
94
94
  * Unregisters a global extension component.
95
95
  * Only previously registered extension components can be unregistered.
@@ -444,7 +444,12 @@ declare module "sample-cross-fx" {
444
444
  /**
445
445
  * The props used by a page component.
446
446
  */
447
- export interface PageComponentProps<T = any, S = any> extends RouteBaseProps<T, S> {}
447
+ export interface PageComponentProps<T = any, S = any> extends RouteBaseProps<T, S> {
448
+ /**
449
+ * The meta data registered with the page.
450
+ */
451
+ meta: PiralPageMeta;
452
+ }
448
453
 
449
454
  /**
450
455
  * The meta data registered for a page.
@@ -468,10 +473,15 @@ declare module "sample-cross-fx" {
468
473
  params: T extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[T] : T extends string ? any : T;
469
474
  }
470
475
 
476
+ /**
477
+ * Gives the extension params shape for the given extension slot name.
478
+ */
479
+ export type ExtensionParams<TName> = TName extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[TName] : TName extends string ? any : TName;
480
+
471
481
  /**
472
482
  * The props for defining an extension slot.
473
483
  */
474
- export type ExtensionSlotProps<K = string> = BaseExtensionSlotProps<K extends string ? K : string, K extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[K] : K extends string ? any : K>;
484
+ export type ExtensionSlotProps<TName = string> = BaseExtensionSlotProps<TName extends string ? TName : string, ExtensionParams<TName>>;
475
485
 
476
486
  /**
477
487
  * Can be implemented by functions to be used for disposal purposes.
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.f0735e.js"></script></head>
8
+ <script defer src="/index.45e7ab.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.f0735e.js');
5
+ require('.//index.45e7ab.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.14.9",
4
+ "version": "0.14.10-beta.3659",
5
5
  "license": "MIT",
6
6
  "homepage": "https://piral.io",
7
7
  "keywords": [
@@ -82,22 +82,22 @@
82
82
  "inferno-create-element": "7.4.9",
83
83
  "lit-element": "2.5.1",
84
84
  "mithril": "2.0.4",
85
- "piral-aurelia": "^0.14.8",
86
- "piral-blazor": "^0.14.8",
87
- "piral-core": "^0.14.8",
88
- "piral-elm": "^0.14.8",
89
- "piral-hyperapp": "^0.14.8",
90
- "piral-inferno": "^0.14.8",
91
- "piral-lazy": "^0.14.8",
92
- "piral-litel": "^0.14.8",
93
- "piral-mithril": "^0.14.8",
94
- "piral-ng": "^0.14.8",
95
- "piral-ngjs": "^0.14.8",
96
- "piral-preact": "^0.14.8",
97
- "piral-riot": "^0.14.8",
98
- "piral-solid": "^0.14.8",
99
- "piral-svelte": "^0.14.8",
100
- "piral-vue": "^0.14.8",
85
+ "piral-aurelia": "^0.14.9",
86
+ "piral-blazor": "^0.14.9",
87
+ "piral-core": "^0.14.9",
88
+ "piral-elm": "^0.14.9",
89
+ "piral-hyperapp": "^0.14.9",
90
+ "piral-inferno": "^0.14.9",
91
+ "piral-lazy": "^0.14.9",
92
+ "piral-litel": "^0.14.9",
93
+ "piral-mithril": "^0.14.9",
94
+ "piral-ng": "^0.14.9",
95
+ "piral-ngjs": "^0.14.9",
96
+ "piral-preact": "^0.14.9",
97
+ "piral-riot": "^0.14.9",
98
+ "piral-solid": "^0.14.9",
99
+ "piral-svelte": "^0.14.9",
100
+ "piral-vue": "^0.14.9",
101
101
  "preact": "10.5.14",
102
102
  "react": "17.0.2",
103
103
  "react-dom": "17.0.2",