sample-cross-fx 0.14.9-beta.3522 → 0.14.10-beta.3616
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.fc1cf0.js → index.00ccd7.js} +242 -210
- package/app/{index.fc1cf0.js.map → index.00ccd7.js.map} +1 -1
- package/app/index.d.ts +7 -2
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +20 -20
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.
|
|
@@ -468,10 +468,15 @@ declare module "sample-cross-fx" {
|
|
|
468
468
|
params: T extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[T] : T extends string ? any : T;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
+
/**
|
|
472
|
+
* Gives the extension params shape for the given extension slot name.
|
|
473
|
+
*/
|
|
474
|
+
export type ExtensionParams<TName> = TName extends keyof PiralExtensionSlotMap ? PiralExtensionSlotMap[TName] : TName extends string ? any : TName;
|
|
475
|
+
|
|
471
476
|
/**
|
|
472
477
|
* The props for defining an extension slot.
|
|
473
478
|
*/
|
|
474
|
-
export type ExtensionSlotProps<
|
|
479
|
+
export type ExtensionSlotProps<TName = string> = BaseExtensionSlotProps<TName extends string ? TName : string, ExtensionParams<TName>>;
|
|
475
480
|
|
|
476
481
|
/**
|
|
477
482
|
* 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.
|
|
8
|
+
<script defer src="/index.00ccd7.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.
|
|
5
|
+
require('.//index.00ccd7.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.
|
|
4
|
+
"version": "0.14.10-beta.3616",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://piral.io",
|
|
7
7
|
"keywords": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"piralCLI": {
|
|
47
|
-
"version": "0.14.
|
|
47
|
+
"version": "0.14.9",
|
|
48
48
|
"generated": true
|
|
49
49
|
},
|
|
50
50
|
"main": "./app/index.js",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@types/react-router": "^5.1.8",
|
|
59
59
|
"@types/react-router-dom": "^5.1.6",
|
|
60
60
|
"@vue/component-compiler-utils": "^3.0.0",
|
|
61
|
-
"piral-cli": "^0.14.
|
|
62
|
-
"piral-cli-webpack5": "^0.14.
|
|
61
|
+
"piral-cli": "^0.14.9",
|
|
62
|
+
"piral-cli-webpack5": "^0.14.9",
|
|
63
63
|
"sass": "^1.17.0",
|
|
64
64
|
"vue-template-compiler": "^2.6.10",
|
|
65
65
|
"@angular/common": "8.2.14",
|
|
@@ -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.
|
|
86
|
-
"piral-blazor": "^0.14.
|
|
87
|
-
"piral-core": "^0.14.
|
|
88
|
-
"piral-elm": "^0.14.
|
|
89
|
-
"piral-hyperapp": "^0.14.
|
|
90
|
-
"piral-inferno": "^0.14.
|
|
91
|
-
"piral-lazy": "^0.14.
|
|
92
|
-
"piral-litel": "^0.14.
|
|
93
|
-
"piral-mithril": "^0.14.
|
|
94
|
-
"piral-ng": "^0.14.
|
|
95
|
-
"piral-ngjs": "^0.14.
|
|
96
|
-
"piral-preact": "^0.14.
|
|
97
|
-
"piral-riot": "^0.14.
|
|
98
|
-
"piral-solid": "^0.14.
|
|
99
|
-
"piral-svelte": "^0.14.
|
|
100
|
-
"piral-vue": "^0.14.
|
|
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",
|