@salla.sa/twilight 2.14.593 → 2.14.594

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight",
3
- "version": "2.14.593",
3
+ "version": "2.14.594",
4
4
  "description": "Salla Theme Toolkit, Webcomponents, Events, Requests, Utils",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -34,8 +34,8 @@
34
34
  "homepage": "https://salla.dev",
35
35
  "dependencies": {
36
36
  "@jitsu/js": "^1.10.0",
37
- "@salla.sa/analytics": "2.14.593",
38
- "@salla.sa/base": "2.14.593",
37
+ "@salla.sa/analytics": "2.14.594",
38
+ "@salla.sa/base": "2.14.594",
39
39
  "axios": "^1.6.7",
40
40
  "infinite-scroll": "^4.0.1",
41
41
  "jwt-decode": "^4.0.0",
@@ -72,5 +72,5 @@
72
72
  "peerDependencies": {
73
73
  "webpack": "^4 || ^5"
74
74
  },
75
- "gitHead": "7cab4976ff6f5ed0e73dd663c8ed0b1029d8a3b5"
75
+ "gitHead": "608da3769c7eacc078e48c086e2a87e815739d67"
76
76
  }
package/types/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import AppHelpers from "./helpers/app-helpers";
6
6
  import SallaNotify from "./lib/notify";
7
7
  import SallaLang from "./lib/lang";
8
8
  import SallaForm from "./lib/form";
9
+ import SallaErrorMonitor from "./lib/error-monitor";
9
10
  import {TwilightConfig} from "./tiwlight-config";
10
11
  import Config from "@salla.sa/base/types/config";
11
12
  import SallaBase from "@salla.sa/base/types";
@@ -19,6 +20,7 @@ export default interface Salla extends SallaActions,SallaBase {
19
20
  lang: SallaLang;
20
21
 
21
22
  notify: SallaNotify;
23
+ errorMonitor: SallaErrorMonitor;
22
24
  success: (message: string, data?: any) => void;
23
25
  error: (message: string, data?: any) => void;
24
26
 
@@ -0,0 +1,7 @@
1
+ export default interface SallaErrorMonitor {
2
+ /**
3
+ * Report a component error that Stencil swallowed. Only chunk-load failures
4
+ * (a rejected lazy `import()`) are forwarded; anything else is ignored.
5
+ */
6
+ captureChunkError: (error: unknown, element?: Element) => void;
7
+ }