@topol.io/editor 1.0.0-alpha.3 → 1.0.0-alpha.4

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.
@@ -17,11 +17,12 @@ export interface ISaveData {
17
17
  }
18
18
  /**
19
19
  * Payload for onError callback.
20
- * Used when transforming (type, message) arguments into a single object.
20
+ * Used when transforming (type, message, responseBody) arguments into a single object.
21
21
  */
22
22
  export interface IErrorData {
23
23
  type: string;
24
24
  message: string;
25
+ responseBody?: unknown;
25
26
  }
26
27
  /**
27
28
  * Payload for onTestSend callback (Email Editor only).
@@ -114,8 +114,9 @@ export default interface IEmailCallbacks {
114
114
  * Called when an error occurs.
115
115
  * @param type - The error type
116
116
  * @param message - The error message
117
+ * @param responseBody - The response body (optional)
117
118
  */
118
- onError?(type: string, message: string): void;
119
+ onError?(type: string, message: string, responseBody?: unknown): void;
119
120
  /**
120
121
  * Called when a new language variant is created.
121
122
  * @param lang - The language code that was created
@@ -97,8 +97,9 @@ export interface ILandingPageCallbacks {
97
97
  * Called when an error occurs.
98
98
  * @param type - The error type
99
99
  * @param message - The error message
100
+ * @param responseBody - The response body (optional)
100
101
  */
101
- onError?(type: string, message: string): void;
102
+ onError?(type: string, message: string, responseBody?: unknown): void;
102
103
  }
103
104
  /**
104
105
  * Configuration options for the Landing Page Editor.
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "author": "Topol.io",
13
13
  "homepage": "https://topol.io",
14
14
  "license": "Apache-2.0",
15
- "version": "1.0.0-alpha.3",
15
+ "version": "1.0.0-alpha.4",
16
16
  "files": [
17
17
  "dist"
18
18
  ],