@openlettermarketing/olc-react-sdk 1.7.7 → 1.7.8-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/App.d.ts +1 -0
- package/build/types/src/components/SidePanel/Templates/ModalGallery/index.d.ts +1 -1
- package/build/types/src/components/SidePanel/Templates/SideBarGallery/index.d.ts +1 -1
- package/build/types/src/components/SidePanel/Templates/customTemplateSection.d.ts +1 -0
- package/build/types/src/components/SidePanel/index.d.ts +1 -0
- package/build/types/src/components/TemplateBuilder/index.d.ts +1 -0
- package/build/types/src/index.d.ts +3 -2
- package/build/types/src/redux/actions/action-types.d.ts +1 -0
- package/build/types/src/redux/reducers/customFieldReducer.d.ts +1 -0
- package/build/types/src/utils/constants.d.ts +1 -0
- package/build/types/src/utils/message.d.ts +1 -1
- package/build/types/src/utils/types.d.ts +8 -0
- package/build/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/build/types/src/utils/addOnTypes.d.ts +0 -4
package/build/types/src/App.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ type CustomTemplateSectionProps = {
|
|
|
6
6
|
selectedCategory: TemplateCategory | null;
|
|
7
7
|
templateCategories: TemplateCategory[];
|
|
8
8
|
currentTemplateType: TemplateType | undefined;
|
|
9
|
-
templateTypes: [
|
|
9
|
+
templateTypes: TemplateType[] | null | undefined;
|
|
10
10
|
designerQueryAmount?: string | number;
|
|
11
11
|
search: any;
|
|
12
12
|
searchApplied: boolean;
|
|
@@ -5,7 +5,7 @@ type CustomTemplateSectionProps = {
|
|
|
5
5
|
selectedCategory: TemplateCategory | null;
|
|
6
6
|
templateCategories: TemplateCategory[];
|
|
7
7
|
currentTemplateType: TemplateType | undefined;
|
|
8
|
-
templateTypes: [
|
|
8
|
+
templateTypes: TemplateType[] | null | undefined;
|
|
9
9
|
search: any;
|
|
10
10
|
searchApplied: boolean;
|
|
11
11
|
loader: boolean;
|
|
@@ -11,6 +11,7 @@ interface Props {
|
|
|
11
11
|
designerQueryAmount?: string | number;
|
|
12
12
|
allowPropertyFields?: boolean;
|
|
13
13
|
allowedAddOns?: any;
|
|
14
|
+
allowedTemplateSections?: any;
|
|
14
15
|
onGetOneTemplate?: (payload: any) => Promise<any>;
|
|
15
16
|
onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
|
|
16
17
|
onGetTemplates?: (payload: any) => Promise<any>;
|
|
@@ -24,6 +24,7 @@ interface TemplateBuilderProps {
|
|
|
24
24
|
excludedFields?: string[] | null;
|
|
25
25
|
designerQueryAmount?: string | number;
|
|
26
26
|
allowedAddOns?: any;
|
|
27
|
+
allowedTemplateSections?: any;
|
|
27
28
|
onReturnAndNavigate?: () => void;
|
|
28
29
|
onGetCustomFields?: () => Promise<any>;
|
|
29
30
|
onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
|
|
@@ -4,7 +4,7 @@ import '@fontsource/inter/500.css';
|
|
|
4
4
|
import '@fontsource/inter/600.css';
|
|
5
5
|
import '@fontsource/inter/700.css';
|
|
6
6
|
import { CustomCSSProperties } from './utils/customStyles';
|
|
7
|
-
import { AddOnTypes } from './utils/
|
|
7
|
+
import { AddOnTypes, TemplateTypes } from './utils/types';
|
|
8
8
|
interface TemplateBuilderProps {
|
|
9
9
|
container: HTMLElement | null;
|
|
10
10
|
secretKey: string;
|
|
@@ -21,6 +21,7 @@ interface TemplateBuilderProps {
|
|
|
21
21
|
excludedFields?: string[] | null;
|
|
22
22
|
designerQueryAmount?: string | number;
|
|
23
23
|
allowedAddOns?: AddOnTypes[] | string[] | null | undefined;
|
|
24
|
+
allowedTemplateSections?: TemplateTypes[] | string[] | null | undefined;
|
|
24
25
|
env?: string;
|
|
25
26
|
restrictedProducts?: number[] | null | undefined;
|
|
26
27
|
onReturnAndNavigate?: () => void;
|
|
@@ -33,5 +34,5 @@ interface TemplateBuilderProps {
|
|
|
33
34
|
root?: CustomCSSProperties;
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
declare const TemplateBuilder: ({ container, secretKey, publicApiKey, platformName, templateGalleryModal, createTemplateRoute, templateBuilderRoute, olcTemplate, designerTemplateQuery, sandbox, allowSenderFields, allowPropertyFields, excludedFields, designerQueryAmount, allowedAddOns, env, restrictedProducts, onReturnAndNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onSubmit, styles, }: TemplateBuilderProps) => void;
|
|
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;
|
|
37
38
|
export default TemplateBuilder;
|
|
@@ -13,5 +13,6 @@ export declare const CLEAR_TEMPLATE: string;
|
|
|
13
13
|
export declare const SELECT_PRODUCT: string;
|
|
14
14
|
export declare const SELECT_POSTCARD: string;
|
|
15
15
|
export declare const SET_CUSTOM_FIELDS = "SET_CUSTOM_FIELDS";
|
|
16
|
+
export declare const SET_CUSTOM_FIELDS_V2 = "SET_CUSTOM_FIELDS_V2";
|
|
16
17
|
export declare const SET_PLATFORM_FIELDS = "SET_PLATFORM_FIELDS";
|
|
17
18
|
export declare const CLEAR_REDUX: string;
|
|
@@ -18,7 +18,7 @@ export declare const MESSAGES: {
|
|
|
18
18
|
readonly GSV_RESTRICT_ONE_PER_PAGE: "Only one GSV image is allowed per page.";
|
|
19
19
|
readonly EMOJI_NOT_ALLOWED: "Emojis are not allowed in the template. Please remove them before saving.";
|
|
20
20
|
readonly EMPTY_QR_NOT_ALLOWED: "Please add a URL to your QR code in order to save the template.";
|
|
21
|
-
readonly SIZE_LIMIT_EXCEED: "Template size should be less than
|
|
21
|
+
readonly SIZE_LIMIT_EXCEED: "Template size should be less than 5MB. Please remove custom fonts or unnecessary assets.";
|
|
22
22
|
readonly CREATE: {
|
|
23
23
|
readonly TITLE: "Create New Template";
|
|
24
24
|
readonly TEMPLATE_LABEL: "Template Name*";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type AddOnValue = 'gsv' | 'property_offer';
|
|
2
|
+
export type TemplateTypesValue = 'my_templates' | 'team_templates' | 'olc-templates';
|
|
3
|
+
export type AddOnTypes = {
|
|
4
|
+
[key in AddOnValue]?: string;
|
|
5
|
+
};
|
|
6
|
+
export type TemplateTypes = {
|
|
7
|
+
[key in TemplateTypesValue]?: string;
|
|
8
|
+
};
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION: "1.7.
|
|
1
|
+
export const SDK_VERSION: "1.7.8-beta.2";
|
package/package.json
CHANGED