@influenzanet/case-web-app-core 2.7.8 → 2.8.0

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.
@@ -25,10 +25,18 @@ export interface AlertDialog {
25
25
  btn: string;
26
26
  };
27
27
  }
28
+ export interface VerifyWhatsAppDialog {
29
+ type: 'verifyWhatsApp';
30
+ origin?: DialogOrigin;
31
+ payload: {
32
+ phoneNumber: string;
33
+ token?: string;
34
+ };
35
+ }
28
36
  export interface DialogState {
29
- config?: DialogWithoutPayload | LoginDialog | AlertDialog;
37
+ config?: DialogWithoutPayload | LoginDialog | AlertDialog | VerifyWhatsAppDialog;
30
38
  }
31
- export declare let initialState: DialogState;
39
+ export declare const initialState: DialogState;
32
40
  export declare const dialogActions: import("@reduxjs/toolkit").CaseReducerActions<{
33
41
  reset(state: import("immer/dist/internal").WritableDraft<DialogState>): import("immer/dist/internal").WritableDraft<DialogState>;
34
42
  closeDialog(state: import("immer/dist/internal").WritableDraft<DialogState>): void;
@@ -38,6 +46,7 @@ export declare const dialogActions: import("@reduxjs/toolkit").CaseReducerAction
38
46
  }>): void;
39
47
  openLoginDialog(state: import("immer/dist/internal").WritableDraft<DialogState>, action: PayloadAction<LoginDialog>): void;
40
48
  openAlertDialog(state: import("immer/dist/internal").WritableDraft<DialogState>, action: PayloadAction<AlertDialog>): void;
49
+ openVerifyWhatsAppDialog(state: import("immer/dist/internal").WritableDraft<DialogState>, action: PayloadAction<VerifyWhatsAppDialog>): void;
41
50
  }>;
42
51
  declare const _default: import("redux").Reducer<DialogState, import("redux").AnyAction>;
43
52
  export default _default;
@@ -0,0 +1 @@
1
+ export declare const blurPhone: (phone: string) => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@influenzanet/case-web-app-core",
3
3
  "description": "Common logic and components for the participant web-app",
4
- "version": "2.7.8",
4
+ "version": "2.8.0",
5
5
  "scripts": {
6
6
  "build": "rollup -c",
7
7
  "storybook": "start-storybook -p 6007",
@@ -72,6 +72,7 @@
72
72
  "redux": "^4.1.2",
73
73
  "rollup": "4.3.0",
74
74
  "rollup-plugin-copy": "3.5.0",
75
+ "rollup-plugin-json": "^4.0.0",
75
76
  "rollup-plugin-peer-deps-external": "2.2.4",
76
77
  "rollup-plugin-postcss": "4.0.2",
77
78
  "rollup-plugin-typescript2": "0.36.0",