@openlettermarketing/olc-react-sdk 1.9.8 → 2.0.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.
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/types/src/App.d.ts +1 -0
- package/build/types/src/components/CreateTemplate/index.d.ts +1 -0
- package/build/types/src/index.d.ts +2 -1
- package/build/types/src/utils/message.d.ts +1 -0
- package/build/types/src/utils/template-builder.d.ts +1 -1
- package/build/types/version.d.ts +1 -1
- package/package.json +1 -1
package/build/types/src/App.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ interface CreateTemplateProps {
|
|
|
5
5
|
createTemplateRoute?: string | null;
|
|
6
6
|
templateBuilderRoute?: string | null;
|
|
7
7
|
restrictedProducts?: any;
|
|
8
|
+
disallowedProducts?: string[] | null | undefined;
|
|
8
9
|
}
|
|
9
10
|
declare const CreateTemplate: React.FC<CreateTemplateProps>;
|
|
10
11
|
export default CreateTemplate;
|
|
@@ -24,6 +24,7 @@ interface TemplateBuilderProps {
|
|
|
24
24
|
allowedTemplateSections?: TemplateTypes[] | string[] | null | undefined;
|
|
25
25
|
env?: string;
|
|
26
26
|
restrictedProducts?: number[] | null | undefined;
|
|
27
|
+
disallowedProducts?: string[] | null | undefined;
|
|
27
28
|
propertyOfferCost?: number;
|
|
28
29
|
customPropertyOfferCost?: number;
|
|
29
30
|
gsvCost?: number;
|
|
@@ -38,5 +39,5 @@ interface TemplateBuilderProps {
|
|
|
38
39
|
root?: CustomCSSProperties;
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
|
-
declare const TemplateBuilder: ({ container, secretKey, publicApiKey, platformName, templateGalleryModal, createTemplateRoute, templateBuilderRoute, olcTemplate, designerTemplateQuery, sandbox, allowSenderFields, allowPropertyFields, excludedFields, designerQueryAmount, allowedAddOns, allowedTemplateSections, env, restrictedProducts, propertyOfferCost, customPropertyOfferCost, gsvCost, onReturnAndNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onDuplicateTemplate, onSubmit, styles, }: TemplateBuilderProps) => void;
|
|
42
|
+
declare const TemplateBuilder: ({ container, secretKey, publicApiKey, platformName, templateGalleryModal, createTemplateRoute, templateBuilderRoute, olcTemplate, designerTemplateQuery, sandbox, allowSenderFields, allowPropertyFields, excludedFields, designerQueryAmount, allowedAddOns, allowedTemplateSections, env, restrictedProducts, disallowedProducts, propertyOfferCost, customPropertyOfferCost, gsvCost, onReturnAndNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onDuplicateTemplate, onSubmit, styles, }: TemplateBuilderProps) => void;
|
|
42
43
|
export default TemplateBuilder;
|
|
@@ -70,6 +70,7 @@ export declare const MESSAGES: {
|
|
|
70
70
|
readonly HEADING: "Do you want to upload your own images?";
|
|
71
71
|
readonly ACCEPTED_FORMATS: "Accepted File Formats: JPEG, PNG, SVG";
|
|
72
72
|
readonly MAX_SIZE: "Max File Size Limits: 5MB";
|
|
73
|
+
readonly NOTE: "Please upload a high-resolution image to ensure better print quality for your mailer.";
|
|
73
74
|
readonly UPLOAD_BTN_TEXT: "Upload Image";
|
|
74
75
|
readonly TYPE_VALIDATION: "Only image files with extensions jpeg, png, or svg are allowed.";
|
|
75
76
|
readonly SIZE_VALIDATION: "File size must be under 5MB.";
|
|
@@ -20,7 +20,7 @@ export interface Product {
|
|
|
20
20
|
export declare const drawRestrictedAreaOnPage: (store: any, product: Product, envelopeType: string) => void;
|
|
21
21
|
export declare const extractFontFamilies: (jsonData: any[]) => string[];
|
|
22
22
|
export declare const removeBracketsFromRPL: (jsonData: any[]) => any;
|
|
23
|
-
export declare const changeColorOfBoxesForSnapPack: (jsonData: any[]) => any;
|
|
23
|
+
export declare const changeColorOfBoxesForSnapPack: (jsonData: any[], preFill?: boolean) => any;
|
|
24
24
|
export declare const validateGSV: (pages: any) => boolean;
|
|
25
25
|
export declare const validateEmoji: (pages: any) => boolean;
|
|
26
26
|
export declare const isValidQR: (pages: any) => boolean;
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION: "
|
|
1
|
+
export const SDK_VERSION: "2.0.0";
|