sample-piral 0.15.0-beta.4813 → 0.15.0-beta.4815
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
|
@@ -150,6 +150,9 @@ export interface PiletMetadata {
|
|
|
150
150
|
* Listener for Piral app shell events.
|
|
151
151
|
*/
|
|
152
152
|
export interface Listener<T> {
|
|
153
|
+
/**
|
|
154
|
+
* Receives an event of type T.
|
|
155
|
+
*/
|
|
153
156
|
(arg: T): void;
|
|
154
157
|
}
|
|
155
158
|
|
|
@@ -364,6 +367,9 @@ export interface PiralPageMeta extends PiralCustomPageMeta, PiralCustomPageMeta
|
|
|
364
367
|
* The shape of an implicit unregister function.
|
|
365
368
|
*/
|
|
366
369
|
export interface RegistrationDisposer {
|
|
370
|
+
/**
|
|
371
|
+
* Cleans up the previous registration.
|
|
372
|
+
*/
|
|
367
373
|
(): void;
|
|
368
374
|
}
|
|
369
375
|
|
|
@@ -386,6 +392,9 @@ export type ExtensionSlotProps<TName = string> = BaseExtensionSlotProps<TName ex
|
|
|
386
392
|
* Can be implemented by functions to be used for disposal purposes.
|
|
387
393
|
*/
|
|
388
394
|
export interface Disposable {
|
|
395
|
+
/**
|
|
396
|
+
* Disposes the created resource.
|
|
397
|
+
*/
|
|
389
398
|
(): void;
|
|
390
399
|
}
|
|
391
400
|
|
|
@@ -500,10 +509,18 @@ export type ModalComponentProps<T> = BaseComponentProps & BareModalComponentProp
|
|
|
500
509
|
export interface ModalLayoutOptions {}
|
|
501
510
|
|
|
502
511
|
export interface FeedResolver<TData> {
|
|
512
|
+
/**
|
|
513
|
+
* Function to derive the initial set of data.
|
|
514
|
+
* @returns The promise for retrieving the initial data set.
|
|
515
|
+
*/
|
|
503
516
|
(): Promise<TData>;
|
|
504
517
|
}
|
|
505
518
|
|
|
506
519
|
export type FeedConnector<TData, TReducers = {}> = GetActions<TReducers> & {
|
|
520
|
+
/**
|
|
521
|
+
* Connector function for wrapping a component.
|
|
522
|
+
* @param component The component to connect by providing a data prop.
|
|
523
|
+
*/
|
|
507
524
|
<TProps>(component: React.ComponentType<TProps & FeedConnectorProps<TData>>): React.FC<TProps>;
|
|
508
525
|
/**
|
|
509
526
|
* Invalidates the underlying feed connector.
|
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.2cf9fb.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.2cf9fb.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.15.0-beta.
|
|
4
|
+
"version": "0.15.0-beta.4815",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://piral.io",
|
|
7
7
|
"keywords": [
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"files": []
|
|
32
32
|
},
|
|
33
33
|
"piralCLI": {
|
|
34
|
-
"version": "0.15.0-beta.
|
|
34
|
+
"version": "0.15.0-beta.4815",
|
|
35
35
|
"generated": true
|
|
36
36
|
},
|
|
37
37
|
"main": "./app/index.js",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"@types/react-dom": "^18.0.0",
|
|
44
44
|
"@types/react-router": "^5.1.8",
|
|
45
45
|
"@types/react-router-dom": "^5.1.6",
|
|
46
|
-
"piral-cli": "^0.15.0-beta.
|
|
47
|
-
"piral-cli-webpack5": "^0.15.0-beta.
|
|
46
|
+
"piral-cli": "^0.15.0-beta.4815",
|
|
47
|
+
"piral-cli-webpack5": "^0.15.0-beta.4815",
|
|
48
48
|
"sass": "^1.17.0",
|
|
49
49
|
"bootstrap": "^4.3.1",
|
|
50
|
-
"piral": "^0.15.0-beta.
|
|
51
|
-
"piral-auth": "^0.15.0-beta.
|
|
52
|
-
"piral-hooks-utils": "^0.15.0-beta.
|
|
53
|
-
"piral-search": "^0.15.0-beta.
|
|
50
|
+
"piral": "^0.15.0-beta.4815",
|
|
51
|
+
"piral-auth": "^0.15.0-beta.4815",
|
|
52
|
+
"piral-hooks-utils": "^0.15.0-beta.4815",
|
|
53
|
+
"piral-search": "^0.15.0-beta.4815",
|
|
54
54
|
"reactstrap": "8.10.1",
|
|
55
55
|
"tslib": "2.3.1",
|
|
56
56
|
"react": "18.2.0",
|