sample-piral 0.14.16 → 0.14.17-beta.3882
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.b61165.js → index.6a7669.js} +18 -9
- package/app/index.6a7669.js.map +1 -0
- package/app/index.d.ts +6 -3
- 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 +4 -4
- package/app/index.b61165.js.map +0 -1
package/app/index.d.ts
CHANGED
|
@@ -913,20 +913,23 @@ declare module "sample-piral" {
|
|
|
913
913
|
* @param element The container hosting the element.
|
|
914
914
|
* @param props The props to transport.
|
|
915
915
|
* @param ctx The associated context.
|
|
916
|
+
* @param locals The local state of this component instance.
|
|
916
917
|
*/
|
|
917
|
-
mount(element: HTMLElement, props: TProps, ctx: ComponentContext): void;
|
|
918
|
+
mount(element: HTMLElement, props: TProps, ctx: ComponentContext, locals: Record<string, any>): void;
|
|
918
919
|
/**
|
|
919
920
|
* Called when the component should be updated.
|
|
920
921
|
* @param element The container hosting the element.
|
|
921
922
|
* @param props The props to transport.
|
|
922
923
|
* @param ctx The associated context.
|
|
924
|
+
* @param locals The local state of this component instance.
|
|
923
925
|
*/
|
|
924
|
-
update?(element: HTMLElement, props: TProps, ctx: ComponentContext): void;
|
|
926
|
+
update?(element: HTMLElement, props: TProps, ctx: ComponentContext, locals: Record<string, any>): void;
|
|
925
927
|
/**
|
|
926
928
|
* Called when a component is unmounted.
|
|
927
929
|
* @param element The container that was hosting the element.
|
|
930
|
+
* @param locals The local state of this component instance.
|
|
928
931
|
*/
|
|
929
|
-
unmount?(element: HTMLElement): void;
|
|
932
|
+
unmount?(element: HTMLElement, locals: Record<string, any>): void;
|
|
930
933
|
}
|
|
931
934
|
|
|
932
935
|
/**
|
package/app/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<title>Piral Sample</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.6a7669.js"></script></head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="app">
|
|
11
11
|
<div class="pi-center">
|
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.6a7669.js');
|
|
6
6
|
const ctx = window['dbg:piral'];
|
|
7
7
|
const dependencies = (ctx && ctx.pilets && ctx.pilets.getDependencies({})) || {};
|
|
8
8
|
module.exports = dependencies['sample-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": "sample-piral",
|
|
3
3
|
"description": "Example project illustrating the use of the piral and piral-cli packages.",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.17-beta.3882",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://piral.io",
|
|
7
7
|
"keywords": [
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"piralCLI": {
|
|
27
|
-
"version": "0.14.
|
|
27
|
+
"version": "0.14.16",
|
|
28
28
|
"generated": true
|
|
29
29
|
},
|
|
30
30
|
"main": "./app/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@types/react-dom": "^17.0.0",
|
|
37
37
|
"@types/react-router": "^5.1.8",
|
|
38
38
|
"@types/react-router-dom": "^5.1.6",
|
|
39
|
-
"piral-cli": "^0.14.
|
|
40
|
-
"piral-cli-webpack5": "^0.14.
|
|
39
|
+
"piral-cli": "^0.14.16",
|
|
40
|
+
"piral-cli-webpack5": "^0.14.16",
|
|
41
41
|
"sass": "^1.17.0",
|
|
42
42
|
"bootstrap": "^4.3.1",
|
|
43
43
|
"piral": "^0.14.16",
|