@data-fair/lib-vue 1.15.2 → 1.15.3

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": "@data-fair/lib-vue",
3
- "version": "1.15.2",
3
+ "version": "1.15.3",
4
4
  "description": "Composables and other utilities for Vue applications in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "files": [
package/ui-notif.d.ts CHANGED
@@ -14,7 +14,7 @@ interface UiNotifBase {
14
14
  interface UiNotifError {
15
15
  type: 'error';
16
16
  msg: string;
17
- error: any;
17
+ error?: any;
18
18
  errorMsg: string;
19
19
  clientError?: boolean;
20
20
  }
@@ -28,7 +28,7 @@ export declare const getUiNotif: () => {
28
28
  } | {
29
29
  type: "error";
30
30
  msg: string;
31
- error: any;
31
+ error?: any;
32
32
  errorMsg: string;
33
33
  clientError?: boolean | undefined;
34
34
  } | null, UiNotif | {
@@ -37,7 +37,7 @@ export declare const getUiNotif: () => {
37
37
  } | {
38
38
  type: "error";
39
39
  msg: string;
40
- error: any;
40
+ error?: any;
41
41
  errorMsg: string;
42
42
  clientError?: boolean | undefined;
43
43
  } | null>;
package/ui-notif.js CHANGED
@@ -41,6 +41,7 @@ export const getUiNotif = () => {
41
41
  function sendUiNotif (partialNotif) {
42
42
  const notif = notification.value = getFullNotif(partialNotif)
43
43
  if (inIframe) {
44
+ if (notif.type === 'error') { delete notif.error }
44
45
  window.top?.postMessage({ vIframe: true, uiNotification: notif }, '*')
45
46
  } else {
46
47
  console.log('iframe notification', notif)