@openlettermarketing/olc-react-sdk 1.8.7-beta.3 → 1.8.7-beta.5
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/App.d.ts +1 -0
- package/build/types/src/assets/images/modal-icons/order-download.d.ts +3 -0
- package/build/types/src/assets/images/modal-icons/template-copy.d.ts +3 -0
- package/build/types/src/components/GenericUIBlocks/GeneralSelect/index.d.ts +1 -0
- package/build/types/src/components/TemplateBuilder/index.d.ts +1 -0
- package/build/types/src/components/TopNavigation/DuplicateTemplateModal.d.ts +15 -0
- package/build/types/src/components/TopNavigation/index.d.ts +3 -0
- package/build/types/src/index.d.ts +2 -1
- package/build/types/src/utils/message.d.ts +10 -1
- package/build/types/version.d.ts +1 -1
- package/package.json +1 -1
package/build/types/src/App.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ interface AppProps {
|
|
|
20
20
|
onGetOneTemplate?: (payload: any) => Promise<any>;
|
|
21
21
|
onGetTemplates?: (payload: any) => Promise<any>;
|
|
22
22
|
onGetCustomFields?: () => Promise<any>;
|
|
23
|
+
onDuplicateTemplate?: (payload: any) => Promise<any>;
|
|
23
24
|
onSubmit?: (payload: any) => Promise<any>;
|
|
24
25
|
}
|
|
25
26
|
declare const App: React.FC<AppProps>;
|
|
@@ -27,6 +27,7 @@ interface TemplateBuilderProps {
|
|
|
27
27
|
allowedTemplateSections?: any;
|
|
28
28
|
onReturnAndNavigate?: () => void;
|
|
29
29
|
onGetCustomFields?: () => Promise<any>;
|
|
30
|
+
onDuplicateTemplate?: (payload: any) => Promise<any>;
|
|
30
31
|
onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
|
|
31
32
|
onGetOneTemplate?: (payload: any) => Promise<any>;
|
|
32
33
|
onGetTemplates?: (payload: any) => Promise<any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DuplicateTemplateModalProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
value: string;
|
|
5
|
+
setIsDuplication: any;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
onDuplicateTemplate?: (payload: any) => Promise<any>;
|
|
9
|
+
title: string;
|
|
10
|
+
submitButtonText: string;
|
|
11
|
+
icon: React.ReactNode;
|
|
12
|
+
error: string;
|
|
13
|
+
}
|
|
14
|
+
declare const DuplicateTemplateModal: React.FC<DuplicateTemplateModalProps>;
|
|
15
|
+
export default DuplicateTemplateModal;
|
|
@@ -4,7 +4,10 @@ interface TopNavigationProps {
|
|
|
4
4
|
store: any;
|
|
5
5
|
createTemplateRoute?: string | null;
|
|
6
6
|
isStoreUpdated: boolean;
|
|
7
|
+
setIsDuplication: any;
|
|
7
8
|
olcTemplate?: Record<string, any>;
|
|
9
|
+
designerTemplateQuery?: Record<string, any> | null;
|
|
10
|
+
onDuplicateTemplate?: (payload: any) => Promise<any>;
|
|
8
11
|
onReturnAndNavigate?: () => void;
|
|
9
12
|
onSubmit?: (payload: any) => Promise<any>;
|
|
10
13
|
}
|
|
@@ -29,10 +29,11 @@ interface TemplateBuilderProps {
|
|
|
29
29
|
onGetOneTemplate?: (payload: any) => Promise<any>;
|
|
30
30
|
onGetTemplates?: (payload: any) => Promise<any>;
|
|
31
31
|
onGetCustomFields?: () => Promise<any>;
|
|
32
|
+
onDuplicateTemplate?: (payload: any) => Promise<any>;
|
|
32
33
|
onSubmit?: (payload: any) => Promise<any>;
|
|
33
34
|
styles?: {
|
|
34
35
|
root?: CustomCSSProperties;
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
declare const TemplateBuilder: ({ container, secretKey, publicApiKey, platformName, templateGalleryModal, createTemplateRoute, templateBuilderRoute, olcTemplate, designerTemplateQuery, sandbox, allowSenderFields, allowPropertyFields, excludedFields, designerQueryAmount, allowedAddOns, allowedTemplateSections, env, restrictedProducts, onReturnAndNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onSubmit, styles, }: TemplateBuilderProps) => void;
|
|
38
|
+
declare const TemplateBuilder: ({ container, secretKey, publicApiKey, platformName, templateGalleryModal, createTemplateRoute, templateBuilderRoute, olcTemplate, designerTemplateQuery, sandbox, allowSenderFields, allowPropertyFields, excludedFields, designerQueryAmount, allowedAddOns, allowedTemplateSections, env, restrictedProducts, onReturnAndNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onDuplicateTemplate, onSubmit, styles, }: TemplateBuilderProps) => void;
|
|
38
39
|
export default TemplateBuilder;
|
|
@@ -2,6 +2,7 @@ export declare const MESSAGES: {
|
|
|
2
2
|
readonly TEMPLATE_MESSAGE_ON_SMALL_SCREEN: "Template Builder is available on tablet and web view only.";
|
|
3
3
|
readonly GENERAL_ERROR: "Internal Server Error";
|
|
4
4
|
readonly DOWNLOAD_ERROR: "Something went wrong. Please try again.";
|
|
5
|
+
readonly CLONE_ERROR: "We are currently unable to clone the template. Please try again later.";
|
|
5
6
|
readonly TEMPLATE: {
|
|
6
7
|
readonly SEARCH_PLACE_HOLDER: "Search by template name or template ID";
|
|
7
8
|
readonly NAME_REQUIRED: "Template Name is required";
|
|
@@ -92,7 +93,15 @@ export declare const MESSAGES: {
|
|
|
92
93
|
readonly COMMENT_REQUIRED: "Comments are required";
|
|
93
94
|
readonly EMAIL_REQUIRED: "Email is required";
|
|
94
95
|
readonly EMAIL_VALIDATION: "Email is not valid";
|
|
95
|
-
readonly SUBMIT_BUTTON: "
|
|
96
|
+
readonly SUBMIT_BUTTON: "Next";
|
|
97
|
+
};
|
|
98
|
+
readonly DUPLICATE_MODAL: {
|
|
99
|
+
readonly TITLE: "Clone Template";
|
|
100
|
+
readonly NAME_PLACEHOLDER: "Enter new template name";
|
|
101
|
+
readonly CANCEL_BUTTON: "Cancel";
|
|
102
|
+
readonly SUBMIT_BUTTON: "Clone";
|
|
103
|
+
readonly SUB_HEADING: "Enter a New Name for Your Template";
|
|
104
|
+
readonly DESCRIPTION: "Create a clone of an existing template. Please provide a new name for the template to proceed.";
|
|
96
105
|
};
|
|
97
106
|
readonly CUSTOM_ADD_ONS: {
|
|
98
107
|
readonly TITLE: "Optional Add-On's";
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION: "1.8.7-beta.
|
|
1
|
+
export const SDK_VERSION: "1.8.7-beta.5";
|
package/package.json
CHANGED