minimal-piral 1.6.0-beta.7193 → 1.6.0-beta.7201

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
@@ -169,6 +169,7 @@ export interface PiralEventMap extends PiralCustomEventMap {
169
169
  "unload-pilet": PiralUnloadPiletEvent;
170
170
  [custom: string]: any;
171
171
  "store-data": PiralStoreDataEvent;
172
+ "unhandled-error": PiralUnhandledErrorEvent;
172
173
  }
173
174
 
174
175
  /**
@@ -285,6 +286,28 @@ export interface PiralStoreDataEvent<TValue = any> {
285
286
  expires: number;
286
287
  }
287
288
 
289
+ /**
290
+ * Gets fired when an unhandled error in a component has been prevented.
291
+ */
292
+ export interface PiralUnhandledErrorEvent {
293
+ /**
294
+ * The container showing the error / containing the component.
295
+ */
296
+ container: any;
297
+ /**
298
+ * The type of the error, i.e., the type of component that crashed.
299
+ */
300
+ errorType: string;
301
+ /**
302
+ * The actual error that was emitted.
303
+ */
304
+ error: Error;
305
+ /**
306
+ * The name of the pilet containing the problematic component.
307
+ */
308
+ pilet: string;
309
+ }
310
+
288
311
  /**
289
312
  * Defines the potential targets when storing data.
290
313
  */
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.1372cf.js"></script></head>
6
+ <script defer src="/index.6dc892.js"></script></head>
7
7
  <body>
8
8
  <div id="app"></div>
9
9
 
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": "1.6.0-beta.7193",
4
+ "version": "1.6.0-beta.7201",
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": "1.6.0-beta.7193",
31
+ "version": "1.6.0-beta.7201",
32
32
  "generated": true
33
33
  },
34
34
  "main": "./app/index.js",
@@ -41,9 +41,9 @@
41
41
  "@types/react-dom": "^18.0.0",
42
42
  "@types/react-router": "^5.1.8",
43
43
  "@types/react-router-dom": "^5.1.6",
44
- "piral-cli": "^1.6.0-beta.7193",
45
- "piral-cli-webpack5": "^1.6.0-beta.7193",
46
- "piral-core": "^1.6.0-beta.7193",
44
+ "piral-cli": "^1.6.0-beta.7201",
45
+ "piral-cli-webpack5": "^1.6.0-beta.7201",
46
+ "piral-core": "^1.6.0-beta.7201",
47
47
  "tslib": "2.5.2",
48
48
  "react": "18.2.0",
49
49
  "react-dom": "18.2.0",