@openlettermarketing/olc-react-sdk 1.8.6 → 1.8.7-beta.2
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/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/build/types/src/redux/actions/action-types.d.ts +7 -0
- package/build/types/src/redux/actions/customQRCodeActions.d.ts +27 -0
- package/build/types/src/redux/reducers/customQRCodeReducer.d.ts +10 -0
- package/build/types/src/redux/reducers/index.d.ts +2 -0
- package/build/types/src/redux/store.d.ts +1 -0
- package/build/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -16,4 +16,11 @@ export declare const SELECT_POSTCARD: string;
|
|
|
16
16
|
export declare const SET_CUSTOM_FIELDS = "SET_CUSTOM_FIELDS";
|
|
17
17
|
export declare const SET_CUSTOM_FIELDS_V2 = "SET_CUSTOM_FIELDS_V2";
|
|
18
18
|
export declare const SET_PLATFORM_FIELDS = "SET_PLATFORM_FIELDS";
|
|
19
|
+
export declare const SET_QR_URL = "SET_QR_URL";
|
|
20
|
+
export declare const SET_UTM_SOURCE = "SET_UTM_SOURCE";
|
|
21
|
+
export declare const SET_UTM_MEDIUM = "SET_UTM_MEDIUM";
|
|
22
|
+
export declare const SET_UTM_CAMPAIGN_NAME = "SET_UTM_CAMPAIGN_NAME";
|
|
23
|
+
export declare const SET_CUSTOM_UTMS = "SET_CUSTOM_UTMS";
|
|
24
|
+
export declare const CLEAR_QR_FIELDS = "CLEAR_QR_FIELDS";
|
|
25
|
+
export declare const SET_IS_QR = "SET_IS_QR";
|
|
19
26
|
export declare const CLEAR_REDUX: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const setIsQR: (isQR: boolean) => {
|
|
2
|
+
type: string;
|
|
3
|
+
payload: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const setQrUrl: (url: string) => {
|
|
6
|
+
type: string;
|
|
7
|
+
payload: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const setUtmSource: (utmSource: string) => {
|
|
10
|
+
type: string;
|
|
11
|
+
payload: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const setUtmMedium: (utmMedium: string) => {
|
|
14
|
+
type: string;
|
|
15
|
+
payload: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const setUtmCampaignName: (utmCampaignName: string) => {
|
|
18
|
+
type: string;
|
|
19
|
+
payload: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const setCustomUtms: (customUtms: Record<string, any>) => {
|
|
22
|
+
type: string;
|
|
23
|
+
payload: Record<string, any>;
|
|
24
|
+
};
|
|
25
|
+
export declare const clearQrFields: () => {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface CustomQRCodeState {
|
|
2
|
+
url: string;
|
|
3
|
+
utmSource: string;
|
|
4
|
+
utmMedium: string;
|
|
5
|
+
utmCampaignName: string;
|
|
6
|
+
customUtms: Record<string, any>;
|
|
7
|
+
isQR: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const customQRCodeReducer: (state: CustomQRCodeState | undefined, action: any) => CustomQRCodeState;
|
|
10
|
+
export { customQRCodeReducer };
|
|
@@ -4,10 +4,12 @@ declare const rootReducer: import("redux").Reducer<{
|
|
|
4
4
|
snackbarReducers: {
|
|
5
5
|
snackbar: any;
|
|
6
6
|
};
|
|
7
|
+
customQRCode: import("./customQRCodeReducer").CustomQRCodeState;
|
|
7
8
|
}, any, Partial<{
|
|
8
9
|
templates: never;
|
|
9
10
|
customFields: import("./customFieldReducer").CustomFieldState | undefined;
|
|
10
11
|
snackbarReducers: never;
|
|
12
|
+
customQRCode: import("./customQRCodeReducer").CustomQRCodeState | undefined;
|
|
11
13
|
}>>;
|
|
12
14
|
export type RootState = ReturnType<typeof rootReducer>;
|
|
13
15
|
export default rootReducer;
|
|
@@ -4,6 +4,7 @@ declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore
|
|
|
4
4
|
snackbarReducers: {
|
|
5
5
|
snackbar: any;
|
|
6
6
|
};
|
|
7
|
+
customQRCode: import("./reducers/customQRCodeReducer").CustomQRCodeState;
|
|
7
8
|
}, any, any>;
|
|
8
9
|
export type RootState = ReturnType<typeof store.getState>;
|
|
9
10
|
export type AppDispatch = typeof store.dispatch;
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION: "1.8.
|
|
1
|
+
export const SDK_VERSION: "1.8.7-beta.2";
|
package/package.json
CHANGED