@openlettermarketing/olc-react-sdk 2.1.10 → 2.1.11
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/README.md +2 -0
- package/build/index.js +83 -83
- package/build/index.js.map +1 -1
- package/build/types/src/App.d.ts +2 -0
- package/build/types/src/assets/images/input/checkbox-icon.d.ts +6 -0
- package/build/types/src/components/SidePanel/CustomQRCode/V2/QRCodeModal/index.d.ts +5 -1
- package/build/types/src/components/SidePanel/CustomQRCode/index.d.ts +3 -1
- package/build/types/src/components/SidePanel/index.d.ts +2 -0
- package/build/types/src/components/TemplateBuilder/index.d.ts +2 -0
- package/build/types/src/index.d.ts +3 -1
- package/build/types/src/redux/actions/action-types.d.ts +2 -0
- package/build/types/src/redux/actions/customQRCodeActions.d.ts +8 -0
- package/build/types/src/redux/reducers/customQRCodeReducer.d.ts +2 -0
- package/build/types/src/utils/message.d.ts +2 -0
- package/build/types/version.d.ts +1 -1
- package/package.json +1 -1
package/build/types/src/App.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ interface AppProps {
|
|
|
14
14
|
allowedAddOns?: any;
|
|
15
15
|
allowedTemplateSections?: any;
|
|
16
16
|
allowAdditionalPage?: boolean;
|
|
17
|
+
showQrScanNotificationFields?: boolean;
|
|
18
|
+
defaultQrNotificationEmail?: string;
|
|
17
19
|
restrictedProducts?: any;
|
|
18
20
|
disallowedProducts?: string[] | null | undefined;
|
|
19
21
|
propertyOfferCost?: number;
|
|
@@ -9,7 +9,11 @@ interface QRCodeModalProps {
|
|
|
9
9
|
setQrUrl: (value: string) => void;
|
|
10
10
|
setUtmSource: (value: string) => void;
|
|
11
11
|
setUtmMedium: (value: string) => void;
|
|
12
|
-
|
|
12
|
+
setQrSendEmail: (value: boolean) => void;
|
|
13
|
+
setQrNotificationEmail: (value: string) => void;
|
|
14
|
+
setCustomUtms: (utms: Record<string, any>) => void;
|
|
15
|
+
showQrScanNotificationFields?: boolean;
|
|
16
|
+
defaultQrNotificationEmail?: string;
|
|
13
17
|
handleDialogChange: (model: string) => void;
|
|
14
18
|
handleClose: () => void;
|
|
15
19
|
setUtmCampaignName: (value: string) => void;
|
|
@@ -6,6 +6,8 @@ interface CustomQRProps {
|
|
|
6
6
|
allowSenderFields: any;
|
|
7
7
|
allowPropertyFields: any;
|
|
8
8
|
excludedFields: any;
|
|
9
|
+
showQrScanNotificationFields?: boolean;
|
|
10
|
+
defaultQrNotificationEmail?: string;
|
|
9
11
|
currentTheme?: string | null | undefined;
|
|
10
12
|
onGetQRCodes?: (payload: any) => Promise<any>;
|
|
11
13
|
onDeleteQRCodes?: (id: string | number) => Promise<void>;
|
|
@@ -15,7 +17,7 @@ interface CustomQRProps {
|
|
|
15
17
|
declare const CustomQRCode: {
|
|
16
18
|
name: string;
|
|
17
19
|
Tab: (props: any) => React.JSX.Element;
|
|
18
|
-
Panel: (({ store, allowSenderFields, allowPropertyFields, excludedFields, currentTheme, onGetQRCodes, onDeleteQRCodes, onUploadQRCode, onEditQRCode, }: CustomQRProps) => React.JSX.Element) & {
|
|
20
|
+
Panel: (({ store, allowSenderFields, allowPropertyFields, excludedFields, currentTheme, onGetQRCodes, onDeleteQRCodes, onUploadQRCode, onEditQRCode, showQrScanNotificationFields, defaultQrNotificationEmail, }: CustomQRProps) => React.JSX.Element) & {
|
|
19
21
|
displayName: string;
|
|
20
22
|
};
|
|
21
23
|
};
|
|
@@ -11,6 +11,8 @@ interface Props {
|
|
|
11
11
|
excludedFields?: string[] | null;
|
|
12
12
|
designerQueryAmount?: string | number;
|
|
13
13
|
allowPropertyFields?: boolean;
|
|
14
|
+
showQrScanNotificationFields?: boolean;
|
|
15
|
+
defaultQrNotificationEmail?: string;
|
|
14
16
|
allowedAddOns?: any;
|
|
15
17
|
allowedTemplateSections?: any;
|
|
16
18
|
propertyOfferCost?: number;
|
|
@@ -22,6 +22,8 @@ interface TemplateBuilderProps {
|
|
|
22
22
|
allowSenderFields?: boolean;
|
|
23
23
|
allowPropertyFields?: boolean;
|
|
24
24
|
allowAdditionalPage?: boolean;
|
|
25
|
+
showQrScanNotificationFields?: boolean;
|
|
26
|
+
defaultQrNotificationEmail?: string;
|
|
25
27
|
excludedFields?: string[] | null;
|
|
26
28
|
designerQueryAmount?: string | number;
|
|
27
29
|
allowedAddOns?: any;
|
|
@@ -31,6 +31,8 @@ interface TemplateBuilderProps {
|
|
|
31
31
|
customPropertyOfferCost?: number;
|
|
32
32
|
gsvCost?: number;
|
|
33
33
|
allowAdditionalPage?: boolean;
|
|
34
|
+
showQrScanNotificationFields?: boolean;
|
|
35
|
+
defaultQrNotificationEmail?: string;
|
|
34
36
|
showTemplateTypesPage?: boolean;
|
|
35
37
|
showHireDesignerOption?: boolean;
|
|
36
38
|
currentTheme?: string | null | undefined;
|
|
@@ -53,5 +55,5 @@ interface TemplateBuilderProps {
|
|
|
53
55
|
root?: CustomCSSProperties;
|
|
54
56
|
};
|
|
55
57
|
}
|
|
56
|
-
declare const TemplateBuilder: ({ container, secretKey, publicApiKey, platformName, templateGalleryModal, createTemplateRoute, templateBuilderRoute, olcTemplate, designerTemplateQuery, sandbox, allowSenderFields, allowPropertyFields, allowAdditionalPage, excludedFields, designerQueryAmount, allowedAddOns, allowedTemplateSections, env, restrictedProducts, disallowedProducts, propertyOfferCost, customPropertyOfferCost, gsvCost, showTemplateTypesPage, showHireDesignerOption, currentTheme, onReturnAndNavigate, onHireDesignerNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onDuplicateTemplate, onGetBrandingImages, onDeleteBrandingImage, onUploadBrandingImage, onGetQRCodes, onDeleteQRCodes, onUploadQRCode, onEditQRCode, onSubmit, styles, }: TemplateBuilderProps) => void;
|
|
58
|
+
declare const TemplateBuilder: ({ container, secretKey, publicApiKey, platformName, templateGalleryModal, createTemplateRoute, templateBuilderRoute, olcTemplate, designerTemplateQuery, sandbox, allowSenderFields, allowPropertyFields, allowAdditionalPage, showQrScanNotificationFields, defaultQrNotificationEmail, excludedFields, designerQueryAmount, allowedAddOns, allowedTemplateSections, env, restrictedProducts, disallowedProducts, propertyOfferCost, customPropertyOfferCost, gsvCost, showTemplateTypesPage, showHireDesignerOption, currentTheme, onReturnAndNavigate, onHireDesignerNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onDuplicateTemplate, onGetBrandingImages, onDeleteBrandingImage, onUploadBrandingImage, onGetQRCodes, onDeleteQRCodes, onUploadQRCode, onEditQRCode, onSubmit, styles, }: TemplateBuilderProps) => void;
|
|
57
59
|
export default TemplateBuilder;
|
|
@@ -23,6 +23,8 @@ export declare const SET_QR_URL = "SET_QR_URL";
|
|
|
23
23
|
export declare const SET_UTM_SOURCE = "SET_UTM_SOURCE";
|
|
24
24
|
export declare const SET_UTM_MEDIUM = "SET_UTM_MEDIUM";
|
|
25
25
|
export declare const SET_UTM_CAMPAIGN_NAME = "SET_UTM_CAMPAIGN_NAME";
|
|
26
|
+
export declare const SET_QR_SEND_EMAIL = "SET_QR_SEND_EMAIL";
|
|
27
|
+
export declare const SET_QR_NOTIFICATION_EMAIL = "SET_QR_NOTIFICATION_EMAIL";
|
|
26
28
|
export declare const SET_CUSTOM_UTMS = "SET_CUSTOM_UTMS";
|
|
27
29
|
export declare const CLEAR_QR_FIELDS = "CLEAR_QR_FIELDS";
|
|
28
30
|
export declare const SET_IS_QR = "SET_IS_QR";
|
|
@@ -18,6 +18,14 @@ export declare const setUtmCampaignName: (utmCampaignName: string) => {
|
|
|
18
18
|
type: string;
|
|
19
19
|
payload: string;
|
|
20
20
|
};
|
|
21
|
+
export declare const setQrSendEmail: (sendEmail: boolean) => {
|
|
22
|
+
type: string;
|
|
23
|
+
payload: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare const setQrNotificationEmail: (notificationEmail: string) => {
|
|
26
|
+
type: string;
|
|
27
|
+
payload: string;
|
|
28
|
+
};
|
|
21
29
|
export declare const setCustomUtms: (customUtms: Record<string, any>) => {
|
|
22
30
|
type: string;
|
|
23
31
|
payload: Record<string, any>;
|
|
@@ -81,6 +81,8 @@ export declare const MESSAGES: {
|
|
|
81
81
|
readonly QR_PLACEHOLDER: "Enter QR URL";
|
|
82
82
|
readonly INVALID_URL: "Please add a valid URL to your QR code.";
|
|
83
83
|
readonly FAILED_QR: "Failed to create QR code";
|
|
84
|
+
readonly NOTIFICATION_EMAIL_REQUIRED: "Notification email is required.";
|
|
85
|
+
readonly NOTIFICATION_EMAIL_INVALID: "Enter a valid email.";
|
|
84
86
|
readonly SUBMIT_BUTTON: "Add new QR code";
|
|
85
87
|
readonly UPDATE_BUTTON: "Update QR code";
|
|
86
88
|
readonly QR_NOTE: "Add a QR code to track engagement. Select a saved code or create a new one for this template.";
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION: "2.1.
|
|
1
|
+
export const SDK_VERSION: "2.1.11";
|
package/package.json
CHANGED