minimal-piral 0.15.1-beta.4906 → 0.15.1-beta.4908
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
|
@@ -185,7 +185,9 @@ export type AnyComponent<T> = React.ComponentType<T> | FirstParametersOf<Compone
|
|
|
185
185
|
/**
|
|
186
186
|
* The props used by a page component.
|
|
187
187
|
*/
|
|
188
|
-
export interface PageComponentProps<T
|
|
188
|
+
export interface PageComponentProps<T extends {
|
|
189
|
+
[K in keyof T]?: string;
|
|
190
|
+
} = {}, S = any> extends RouteBaseProps<T, S> {
|
|
189
191
|
/**
|
|
190
192
|
* The meta data registered with the page.
|
|
191
193
|
*/
|
|
@@ -314,7 +316,9 @@ export interface ComponentConverters<TProps> extends PiralCustomComponentConvert
|
|
|
314
316
|
/**
|
|
315
317
|
* The props that every registered page component obtains.
|
|
316
318
|
*/
|
|
317
|
-
export interface RouteBaseProps<UrlParams
|
|
319
|
+
export interface RouteBaseProps<UrlParams extends {
|
|
320
|
+
[K in keyof UrlParams]?: string;
|
|
321
|
+
} = {}, UrlState = any> extends ReactRouter.RouteComponentProps<UrlParams, {}, UrlState>, BaseComponentProps {}
|
|
318
322
|
|
|
319
323
|
/**
|
|
320
324
|
* Custom meta data to include for pages.
|
package/app/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
4
4
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
5
5
|
<title>Minimal Piral Sample</title>
|
|
6
|
-
<script defer src="/index.
|
|
6
|
+
<script defer src="/index.5a7c95.js"></script></head>
|
|
7
7
|
<body>
|
|
8
8
|
<div id="app"></div>
|
|
9
9
|
|
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.5a7c95.js');
|
|
6
6
|
const ctx = window['dbg:piral'];
|
|
7
7
|
const dependencies = (ctx && ctx.pilets && ctx.pilets.getDependencies({})) || {};
|
|
8
8
|
module.exports = dependencies['minimal-piral'] || {};
|
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": "minimal-piral",
|
|
3
3
|
"description": "Example project illustrating the exposure of a minimal Pilet API.",
|
|
4
|
-
"version": "0.15.1-beta.
|
|
4
|
+
"version": "0.15.1-beta.4908",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://piral.io",
|
|
7
7
|
"keywords": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"files": []
|
|
29
29
|
},
|
|
30
30
|
"piralCLI": {
|
|
31
|
-
"version": "0.15.1-beta.
|
|
31
|
+
"version": "0.15.1-beta.4908",
|
|
32
32
|
"generated": true
|
|
33
33
|
},
|
|
34
34
|
"main": "./app/index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@types/react-dom": "^18.0.0",
|
|
41
41
|
"@types/react-router": "^5.1.8",
|
|
42
42
|
"@types/react-router-dom": "^5.1.6",
|
|
43
|
-
"piral-cli": "^0.15.1-beta.
|
|
44
|
-
"piral-cli-webpack5": "^0.15.1-beta.
|
|
45
|
-
"piral-core": "^0.15.1-beta.
|
|
43
|
+
"piral-cli": "^0.15.1-beta.4908",
|
|
44
|
+
"piral-cli-webpack5": "^0.15.1-beta.4908",
|
|
45
|
+
"piral-core": "^0.15.1-beta.4908",
|
|
46
46
|
"tslib": "2.3.1",
|
|
47
47
|
"react": "18.2.0",
|
|
48
48
|
"react-dom": "18.2.0",
|