@openlettermarketing/olc-react-sdk 2.0.7 → 2.0.8-beta.1

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.
Files changed (50) hide show
  1. package/build/0d4f0d57e33a9233156c.svg +1 -0
  2. package/build/64d58bce5a7096906d818f05dbe5e2de.png +0 -0
  3. package/build/7396af59b80e76d63220.svg +1 -0
  4. package/build/bc286d534e14683971eb.svg +1 -0
  5. package/build/index.js +97 -97
  6. package/build/index.js.map +1 -1
  7. package/build/types/src/App.d.ts +9 -0
  8. package/build/types/src/assets/images/modal-icons/cancel-input.d.ts +3 -0
  9. package/build/types/src/assets/images/modal-icons/confirm-close-icon.d.ts +3 -0
  10. package/build/types/src/assets/images/modal-icons/confirm-new.d.ts +3 -0
  11. package/build/types/src/assets/images/modal-icons/new-cancel.d.ts +3 -0
  12. package/build/types/src/assets/images/products/personal-new.d.ts +3 -0
  13. package/build/types/src/assets/images/products/postcard-new.d.ts +3 -0
  14. package/build/types/src/assets/images/products/professional-new.d.ts +3 -0
  15. package/build/types/src/assets/images/products/real-new.d.ts +3 -0
  16. package/build/types/src/assets/images/templates/qr-code.d.ts +3 -0
  17. package/build/types/src/components/CreateTemplate/V2/index.d.ts +12 -0
  18. package/build/types/src/components/CreateTemplate/index.d.ts +1 -0
  19. package/build/types/src/components/GenericUIBlocks/Button/index.d.ts +1 -0
  20. package/build/types/src/components/GenericUIBlocks/Dialog/V2/index.d.ts +22 -0
  21. package/build/types/src/components/GenericUIBlocks/Dialog/index.d.ts +2 -1
  22. package/build/types/src/components/GenericUIBlocks/GeneralSelect/index.d.ts +1 -0
  23. package/build/types/src/components/GenericUIBlocks/Input/index.d.ts +4 -0
  24. package/build/types/src/components/SidePanel/CustomQRCode/V2/QRCodeModal/index.d.ts +20 -0
  25. package/build/types/src/components/SidePanel/CustomQRCode/index.d.ts +7 -1
  26. package/build/types/src/components/SidePanel/CustomUploads/V2/index.d.ts +13 -0
  27. package/build/types/src/components/SidePanel/CustomUploads/index.d.ts +18 -0
  28. package/build/types/src/components/SidePanel/Templates/ModalGallery/V2/index.d.ts +36 -0
  29. package/build/types/src/components/SidePanel/Templates/TemplatesCard/V2/index.d.ts +4 -0
  30. package/build/types/src/components/SidePanel/index.d.ts +8 -0
  31. package/build/types/src/components/TemplateBuilder/index.d.ts +9 -0
  32. package/build/types/src/components/TemplateTypes/index.d.ts +11 -0
  33. package/build/types/src/components/TopNavigation/ConfirmNavigateDialog/index.d.ts +1 -0
  34. package/build/types/src/components/TopNavigation/EditTemplateNameModel/index.d.ts +4 -0
  35. package/build/types/src/components/TopNavigation/SaveTemplateModel/index.d.ts +1 -0
  36. package/build/types/src/components/TopNavigation/index.d.ts +3 -2
  37. package/build/types/src/index.d.ts +13 -2
  38. package/build/types/src/redux/actions/action-types.d.ts +3 -0
  39. package/build/types/src/redux/actions/customQRCodeActions.d.ts +10 -0
  40. package/build/types/src/redux/actions/templateActions.d.ts +7 -1
  41. package/build/types/src/redux/reducers/customQRCodeReducer.d.ts +4 -0
  42. package/build/types/src/redux/reducers/templateReducer.d.ts +1 -0
  43. package/build/types/src/utils/constants.d.ts +1 -0
  44. package/build/types/src/utils/customStyles.d.ts +4 -0
  45. package/build/types/src/utils/helper.d.ts +1 -1
  46. package/build/types/src/utils/message.d.ts +14 -0
  47. package/build/types/src/utils/products.d.ts +4 -0
  48. package/build/types/src/utils/template-builder.d.ts +46 -0
  49. package/build/types/version.d.ts +1 -1
  50. package/package.json +1 -1
@@ -19,6 +19,8 @@ interface AppProps {
19
19
  propertyOfferCost?: number;
20
20
  customPropertyOfferCost?: number;
21
21
  gsvCost?: number;
22
+ showTemplateTypesPage?: boolean;
23
+ currentTheme?: string | null | undefined;
22
24
  styles?: any;
23
25
  onReturnAndNavigate?: () => void;
24
26
  onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
@@ -26,6 +28,13 @@ interface AppProps {
26
28
  onGetTemplates?: (payload: any) => Promise<any>;
27
29
  onGetCustomFields?: () => Promise<any>;
28
30
  onDuplicateTemplate?: (payload: any) => Promise<any>;
31
+ onGetBrandingImages?: (payload: any) => Promise<any>;
32
+ onDeleteBrandingImage?: (id: string | number) => Promise<void>;
33
+ onUploadBrandingImage?: (payload: any) => Promise<any>;
34
+ onGetQRCodes?: (payload: any) => Promise<any>;
35
+ onDeleteQRCodes?: (id: string | number) => Promise<void>;
36
+ onUploadQRCode?: (payload: any) => Promise<any>;
37
+ onEditQRCode?: (payload: any) => Promise<any>;
29
38
  onSubmit?: (payload: any) => Promise<any>;
30
39
  }
31
40
  declare const App: React.FC<AppProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CancelInput: () => React.JSX.Element;
3
+ export default CancelInput;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ConfirmCloseIcon: (props: any) => React.JSX.Element;
3
+ export default ConfirmCloseIcon;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ConfirmNew: (props: any) => React.JSX.Element;
3
+ export default ConfirmNew;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const NewCancel: () => React.JSX.Element;
3
+ export default NewCancel;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PersonalNew: (props: any) => React.JSX.Element;
3
+ export default PersonalNew;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PostCardNew: (props: any) => React.JSX.Element;
3
+ export default PostCardNew;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ProfessionalNew: (props: any) => React.JSX.Element;
3
+ export default ProfessionalNew;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const RealNew: (props: any) => React.JSX.Element;
3
+ export default RealNew;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const QRCode: () => React.JSX.Element;
3
+ export default QRCode;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import './styles.scss';
3
+ interface CreateTemplateV2Props {
4
+ onReturnAndNavigate?: () => void;
5
+ createTemplateRoute?: string | null;
6
+ templateBuilderRoute?: string | null;
7
+ restrictedProducts?: any;
8
+ disallowedProducts?: string[] | null | undefined;
9
+ currentTheme?: string | null | undefined;
10
+ }
11
+ declare const CreateTemplateV2: React.FC<CreateTemplateV2Props>;
12
+ export default CreateTemplateV2;
@@ -6,6 +6,7 @@ interface CreateTemplateProps {
6
6
  templateBuilderRoute?: string | null;
7
7
  restrictedProducts?: any;
8
8
  disallowedProducts?: string[] | null | undefined;
9
+ currentTheme?: string | null | undefined;
9
10
  }
10
11
  declare const CreateTemplate: React.FC<CreateTemplateProps>;
11
12
  export default CreateTemplate;
@@ -7,6 +7,7 @@ interface ButtonProps {
7
7
  className?: string;
8
8
  disabled?: boolean;
9
9
  backdrop?: boolean;
10
+ currentTheme?: string | null | undefined;
10
11
  }
11
12
  declare const Button: React.FC<ButtonProps>;
12
13
  export default Button;
@@ -0,0 +1,22 @@
1
+ import React, { ReactNode, CSSProperties } from 'react';
2
+ import './styles.scss';
3
+ interface DialogProps {
4
+ icon?: ReactNode;
5
+ customStyles?: CSSProperties;
6
+ open: boolean;
7
+ handleClose: () => void;
8
+ loading?: boolean;
9
+ title?: string | ReactNode;
10
+ subHeading?: string;
11
+ description?: string;
12
+ onSubmit?: () => void;
13
+ onCancel?: () => void;
14
+ cancelText?: string;
15
+ submitText?: string;
16
+ children?: ReactNode;
17
+ isGallery?: boolean;
18
+ currentTheme?: string | null | undefined;
19
+ isQRCode?: boolean;
20
+ }
21
+ declare const DialogV2: React.FC<DialogProps>;
22
+ export default DialogV2;
@@ -6,7 +6,7 @@ interface DialogProps {
6
6
  open: boolean;
7
7
  handleClose: () => void;
8
8
  loading?: boolean;
9
- title?: string;
9
+ title?: string | ReactNode;
10
10
  subHeading?: string;
11
11
  description?: string;
12
12
  onSubmit?: () => void;
@@ -15,6 +15,7 @@ interface DialogProps {
15
15
  submitText?: string;
16
16
  children?: ReactNode;
17
17
  isGallery?: boolean;
18
+ currentTheme?: string | null | undefined;
18
19
  }
19
20
  declare const Dialog: React.FC<DialogProps>;
20
21
  export default Dialog;
@@ -18,6 +18,7 @@ interface GeneralSelectProps {
18
18
  clearField: boolean;
19
19
  qrField?: boolean;
20
20
  search?: boolean;
21
+ currentTheme?: string | null | undefined;
21
22
  }
22
23
  declare const GeneralSelect: React.FC<GeneralSelectProps>;
23
24
  export default GeneralSelect;
@@ -19,6 +19,10 @@ interface InputProps {
19
19
  handleFileRemove?: () => void;
20
20
  qrField?: boolean;
21
21
  onlyNumber?: boolean;
22
+ currentTheme?: string | null | undefined;
23
+ required?: boolean;
24
+ isClearable?: boolean;
25
+ className?: string;
22
26
  }
23
27
  declare const Input: FC<InputProps>;
24
28
  export default Input;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import './styles.scss';
3
+ interface QRCodeModalProps {
4
+ show: boolean;
5
+ utms?: any;
6
+ utmFields?: any;
7
+ handleSelect?: any;
8
+ isEditing?: boolean;
9
+ setQrUrl: (value: string) => void;
10
+ setUtmSource: (value: string) => void;
11
+ setUtmMedium: (value: string) => void;
12
+ setCustomUtms: (utms: string[]) => void;
13
+ handleDialogChange: (model: string) => void;
14
+ handleClose: () => void;
15
+ setUtmCampaignName: (value: string) => void;
16
+ addNewQRCode: () => void;
17
+ loading: boolean;
18
+ }
19
+ declare const QRCodeModal: React.FC<QRCodeModalProps>;
20
+ export default QRCodeModal;
@@ -1,15 +1,21 @@
1
1
  import React from 'react';
2
2
  import type { StoreType } from 'polotno/model/store';
3
+ import './styles.scss';
3
4
  interface CustomQRProps {
4
5
  store: StoreType;
5
6
  allowSenderFields: any;
6
7
  allowPropertyFields: any;
7
8
  excludedFields: any;
9
+ currentTheme?: string | null | undefined;
10
+ onGetQRCodes?: (payload: any) => Promise<any>;
11
+ onDeleteQRCodes?: (id: string | number) => Promise<void>;
12
+ onUploadQRCode?: (payload: any) => Promise<any>;
13
+ onEditQRCode?: (payload: any) => Promise<any>;
8
14
  }
9
15
  declare const CustomQRCode: {
10
16
  name: string;
11
17
  Tab: (props: any) => React.JSX.Element;
12
- Panel: (({ store, allowSenderFields, allowPropertyFields, excludedFields }: CustomQRProps) => React.JSX.Element) & {
18
+ Panel: (({ store, allowSenderFields, allowPropertyFields, excludedFields, currentTheme, onGetQRCodes, onDeleteQRCodes, onUploadQRCode, onEditQRCode, }: CustomQRProps) => React.JSX.Element) & {
13
19
  displayName: string;
14
20
  };
15
21
  };
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { StoreType } from 'polotno/model/store';
3
+ import './styles.scss';
4
+ interface CustomUploadsV2Props {
5
+ store: StoreType;
6
+ onGetBrandingImages?: (payload: any) => Promise<any>;
7
+ onDeleteBrandingImage?: (id: string | number) => Promise<void>;
8
+ onUploadBrandingImage?: (payload: any) => Promise<any>;
9
+ }
10
+ export declare const CustomUploadsV2: (({ store, onGetBrandingImages, onDeleteBrandingImage, onUploadBrandingImage, }: CustomUploadsV2Props) => React.JSX.Element) & {
11
+ displayName: string;
12
+ };
13
+ export default CustomUploadsV2;
@@ -1,9 +1,27 @@
1
1
  import React from 'react';
2
2
  import type { StoreType } from 'polotno/model/store';
3
+ import CustomUploadsV2 from './V2';
3
4
  interface UploadPanelProps {
4
5
  store: StoreType;
5
6
  }
6
7
  export declare const UploadPanel: (({ store }: UploadPanelProps) => React.JSX.Element) & {
7
8
  displayName: string;
8
9
  };
10
+ interface CustomUploadsV2Props {
11
+ store: StoreType;
12
+ onGetBrandingImages?: (payload: any) => Promise<any>;
13
+ onDeleteBrandingImage?: (id: string | number) => Promise<void>;
14
+ onUploadBrandingImage?: (payload: any) => Promise<any>;
15
+ }
16
+ export declare const CustomUploadsV2Panel: (({ store, onGetBrandingImages, onDeleteBrandingImage, onUploadBrandingImage, }: CustomUploadsV2Props) => React.JSX.Element) & {
17
+ displayName: string;
18
+ };
19
+ export declare const CustomUploadsV2Section: {
20
+ name: string;
21
+ Tab: (props: any) => React.JSX.Element;
22
+ Panel: (({ store, onGetBrandingImages, onDeleteBrandingImage, onUploadBrandingImage, }: CustomUploadsV2Props) => React.JSX.Element) & {
23
+ displayName: string;
24
+ };
25
+ };
9
26
  export default UploadPanel;
27
+ export { CustomUploadsV2 };
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { TemplateCategory, TemplateRecord, TemplateType } from '../../customTemplateSection';
3
+ import './styles.scss';
4
+ type CustomTemplateSectionProps = {
5
+ product: any;
6
+ openGalleryModal: boolean;
7
+ selectedCategory: TemplateCategory | null;
8
+ templateCategories: TemplateCategory[];
9
+ currentTemplateType: TemplateType | undefined;
10
+ templateTypes: TemplateType[] | null | undefined;
11
+ designerQueryAmount?: string | number;
12
+ search: any;
13
+ searchApplied: boolean;
14
+ loader: boolean;
15
+ platformName: any;
16
+ myTemplates: TemplateRecord[];
17
+ teamTemplates: TemplateRecord[];
18
+ olcTemplates: TemplateRecord[];
19
+ pagination: any;
20
+ setSearch: any;
21
+ handleSearch: any;
22
+ removeSearchInput: any;
23
+ searchKeyDown: any;
24
+ currentTemplateTypeRef: any;
25
+ setCurrentTemplateType: any;
26
+ setSelectedCategory: any;
27
+ handleLoadTemplateModel: any;
28
+ handleTabChange: any;
29
+ handleDialogChange: any;
30
+ closeGalleryModal: any;
31
+ setOpenGalleryModal: any;
32
+ setHireDesignerModal: any;
33
+ currentTheme?: string | null | undefined;
34
+ };
35
+ declare const ModalGalleryV2: (props: CustomTemplateSectionProps) => React.JSX.Element;
36
+ export default ModalGalleryV2;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './styles.scss';
3
+ declare const TemplatesCard: (props: any) => React.JSX.Element;
4
+ export default TemplatesCard;
@@ -16,10 +16,18 @@ interface Props {
16
16
  propertyOfferCost?: number;
17
17
  customPropertyOfferCost?: number;
18
18
  gsvCost?: number;
19
+ currentTheme?: string | null | undefined;
19
20
  onGetOneTemplate?: (payload: any) => Promise<any>;
20
21
  onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
21
22
  onGetTemplates?: (payload: any) => Promise<any>;
22
23
  onGetCustomFields?: () => Promise<any>;
24
+ onGetBrandingImages?: (payload: any) => Promise<any>;
25
+ onDeleteBrandingImage?: (id: string | number) => Promise<void>;
26
+ onUploadBrandingImage?: (payload: any) => Promise<any>;
27
+ onGetQRCodes?: (payload: any) => Promise<any>;
28
+ onDeleteQRCodes?: (id: string | number) => Promise<void>;
29
+ onUploadQRCode?: (payload: any) => Promise<any>;
30
+ onEditQRCode?: (payload: any) => Promise<any>;
23
31
  }
24
32
  declare const SidePanel: React.FC<Props>;
25
33
  export default SidePanel;
@@ -29,6 +29,8 @@ interface TemplateBuilderProps {
29
29
  propertyOfferCost?: number;
30
30
  customPropertyOfferCost?: number;
31
31
  gsvCost?: number;
32
+ selectedTemplateType?: string | null;
33
+ currentTheme?: string | null | undefined;
32
34
  onReturnAndNavigate?: () => void;
33
35
  onGetCustomFields?: () => Promise<any>;
34
36
  onDuplicateTemplate?: (payload: any) => Promise<any>;
@@ -36,6 +38,13 @@ interface TemplateBuilderProps {
36
38
  onGetOneTemplate?: (payload: any) => Promise<any>;
37
39
  onGetTemplates?: (payload: any) => Promise<any>;
38
40
  onSubmit?: (payload: any) => Promise<any>;
41
+ onGetBrandingImages?: (payload: any) => Promise<any>;
42
+ onDeleteBrandingImage?: (id: string | number) => Promise<void>;
43
+ onUploadBrandingImage?: (payload: any) => Promise<any>;
44
+ onGetQRCodes?: (payload: any) => Promise<any>;
45
+ onDeleteQRCodes?: (id: string | number) => Promise<void>;
46
+ onUploadQRCode?: (payload: any) => Promise<any>;
47
+ onEditQRCode?: (payload: any) => Promise<any>;
39
48
  }
40
49
  declare const TemplateBuilder: React.FC<TemplateBuilderProps>;
41
50
  export default TemplateBuilder;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import './styles.scss';
3
+ interface TemplateTypesProps {
4
+ onReturnAndNavigate?: () => void;
5
+ createTemplateRoute?: string | null;
6
+ selectedTemplateType?: string | null;
7
+ setSelectedTemplateType?: any;
8
+ setTemplateTypeSelected?: any;
9
+ }
10
+ declare const TemplateTypes: React.FC<TemplateTypesProps>;
11
+ export default TemplateTypes;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import "./styles.scss";
3
3
  interface ConfirmNavigateDialogProps {
4
4
  open: boolean;
5
+ currentTheme?: string | null | undefined;
5
6
  handleClose: () => void;
6
7
  handleNavigateAction: () => void;
7
8
  }
@@ -11,6 +11,10 @@ import './styles.scss';
11
11
  */
12
12
  interface EditTemplateNameModelProps {
13
13
  open: boolean;
14
+ title: string;
15
+ setTemplateTitle: any;
16
+ handleEditName: any;
17
+ templateTitle: string;
14
18
  handleClose: () => void;
15
19
  }
16
20
  declare const EditTemplateNameModel: React.FC<EditTemplateNameModelProps>;
@@ -7,6 +7,7 @@ interface SaveTemplateModelProps {
7
7
  handleSave: () => void;
8
8
  store: any;
9
9
  allowedAddOns?: any;
10
+ currentTheme?: string | null | undefined;
10
11
  }
11
12
  declare const SaveTemplateModel: React.FC<SaveTemplateModelProps>;
12
13
  export default SaveTemplateModel;
@@ -7,11 +7,12 @@ interface TopNavigationProps {
7
7
  setIsDuplication: any;
8
8
  olcTemplate?: Record<string, any>;
9
9
  designerTemplateQuery?: Record<string, any> | null;
10
+ allowedAddOns?: any;
11
+ allowAdditionalPage?: boolean;
12
+ currentTheme?: string | null | undefined;
10
13
  onDuplicateTemplate?: (payload: any) => Promise<any>;
11
14
  onReturnAndNavigate?: () => void;
12
15
  onSubmit?: (payload: any) => Promise<any>;
13
- allowedAddOns?: any;
14
- allowAdditionalPage?: boolean;
15
16
  }
16
17
  declare const TopNavigation: React.FC<TopNavigationProps>;
17
18
  export default TopNavigation;
@@ -1,8 +1,10 @@
1
- import './index.scss';
1
+ import '@fontsource/inter/200.css';
2
+ import '@fontsource/inter/300.css';
2
3
  import '@fontsource/inter/400.css';
3
4
  import '@fontsource/inter/500.css';
4
5
  import '@fontsource/inter/600.css';
5
6
  import '@fontsource/inter/700.css';
7
+ import '@fontsource/inter/800.css';
6
8
  import { CustomCSSProperties } from './utils/customStyles';
7
9
  import { AddOnTypes, TemplateTypes } from './utils/types';
8
10
  interface TemplateBuilderProps {
@@ -29,16 +31,25 @@ interface TemplateBuilderProps {
29
31
  customPropertyOfferCost?: number;
30
32
  gsvCost?: number;
31
33
  allowAdditionalPage?: boolean;
34
+ showTemplateTypesPage?: boolean;
35
+ currentTheme?: string | null | undefined;
32
36
  onReturnAndNavigate?: () => void;
33
37
  onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
34
38
  onGetOneTemplate?: (payload: any) => Promise<any>;
35
39
  onGetTemplates?: (payload: any) => Promise<any>;
36
40
  onGetCustomFields?: () => Promise<any>;
37
41
  onDuplicateTemplate?: (payload: any) => Promise<any>;
42
+ onGetBrandingImages?: (payload: any) => Promise<any>;
43
+ onDeleteBrandingImage?: (id: string | number) => Promise<void>;
44
+ onUploadBrandingImage?: (payload: any) => Promise<any>;
45
+ onGetQRCodes?: (payload: any) => Promise<any>;
46
+ onDeleteQRCodes?: (id: string | number) => Promise<void>;
47
+ onUploadQRCode?: (payload: any) => Promise<any>;
48
+ onEditQRCode?: (payload: any) => Promise<any>;
38
49
  onSubmit?: (payload: any) => Promise<any>;
39
50
  styles?: {
40
51
  root?: CustomCSSProperties;
41
52
  };
42
53
  }
43
- 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, onReturnAndNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onDuplicateTemplate, onSubmit, styles, }: TemplateBuilderProps) => void;
54
+ 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, currentTheme, onReturnAndNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onDuplicateTemplate, onGetBrandingImages, onDeleteBrandingImage, onUploadBrandingImage, onGetQRCodes, onDeleteQRCodes, onUploadQRCode, onEditQRCode, onSubmit, styles, }: TemplateBuilderProps) => void;
44
55
  export default TemplateBuilder;
@@ -13,6 +13,7 @@ export declare const LOAD_DATA_FROM_LOCAL_STORAGE: string;
13
13
  export declare const CLEAR_TEMPLATE: string;
14
14
  export declare const SELECT_PRODUCT: string;
15
15
  export declare const SELECT_POSTCARD: string;
16
+ export declare const SET_PRODUCTS: string;
16
17
  export declare const SET_CUSTOM_FIELDS = "SET_CUSTOM_FIELDS";
17
18
  export declare const SET_CUSTOM_FIELDS_V2 = "SET_CUSTOM_FIELDS_V2";
18
19
  export declare const SET_PLATFORM_FIELDS = "SET_PLATFORM_FIELDS";
@@ -25,6 +26,8 @@ export declare const SET_UTM_CAMPAIGN_NAME = "SET_UTM_CAMPAIGN_NAME";
25
26
  export declare const SET_CUSTOM_UTMS = "SET_CUSTOM_UTMS";
26
27
  export declare const CLEAR_QR_FIELDS = "CLEAR_QR_FIELDS";
27
28
  export declare const SET_IS_QR = "SET_IS_QR";
29
+ export declare const SET_QR_DIALOG = "SET_QR_DIALOG";
30
+ export declare const CLOSE_QR_DIALOG = "CLOSE_QR_DIALOG";
28
31
  export declare const SET_BLOCK_COLOR = "SET_BLOCK_COLOR";
29
32
  export declare const SET_PAGE_COUNT = "SET_PAGE_COUNT";
30
33
  export declare const CLEAR_REDUX: string;
@@ -25,3 +25,13 @@ export declare const setCustomUtms: (customUtms: Record<string, any>) => {
25
25
  export declare const clearQrFields: () => {
26
26
  type: string;
27
27
  };
28
+ export declare const setQrDialog: (open: boolean, model?: string) => {
29
+ type: string;
30
+ payload: {
31
+ open: boolean;
32
+ model: string;
33
+ };
34
+ };
35
+ export declare const closeQrDialog: () => {
36
+ type: string;
37
+ };
@@ -89,4 +89,10 @@ declare const getAllTemplateCategories: () => Promise<any>;
89
89
  * @returns {Function} - The thunk function.
90
90
  */
91
91
  declare const setPageCount: (count: number) => (dispatch: AppDispatch) => void;
92
- export { uploadTemplate, getAllTemplatesByTab, searchAndAdvanceChange, clearAllTemplates, selectProduct, selectPostCard, clearTemplateFields, loadFormDataToStore, uploadFile, downloadProof, envelopeProof, getAllTemplateCategories, setPageCount };
92
+ /**
93
+ * Fetches products from the API and updates the store.
94
+ *
95
+ * @returns {Function} - The thunk function.
96
+ */
97
+ declare const fetchProducts: () => (dispatch: AppDispatch) => Promise<any>;
98
+ export { uploadTemplate, getAllTemplatesByTab, searchAndAdvanceChange, clearAllTemplates, selectProduct, selectPostCard, clearTemplateFields, loadFormDataToStore, uploadFile, downloadProof, envelopeProof, getAllTemplateCategories, setPageCount, fetchProducts };
@@ -5,6 +5,10 @@ export interface CustomQRCodeState {
5
5
  utmCampaignName: string;
6
6
  customUtms: Record<string, any>;
7
7
  isQR: boolean;
8
+ dialog: {
9
+ open: boolean;
10
+ model: string;
11
+ };
8
12
  }
9
13
  declare const customQRCodeReducer: (state: CustomQRCodeState | undefined, action: any) => CustomQRCodeState;
10
14
  export { customQRCodeReducer };
@@ -43,6 +43,7 @@ export interface TemplateState {
43
43
  defaultPropertyFields: DynamicField[];
44
44
  defaultMiscFields: DynamicField[];
45
45
  products: any[];
46
+ productDetails: any[];
46
47
  productDetailByTemplate: any[];
47
48
  templates: TemplatesState;
48
49
  templatesPagination: PaginationState;
@@ -23,6 +23,7 @@ interface TemplateTypes {
23
23
  }
24
24
  export declare const defaultTemplateTypes: TemplateTypes[];
25
25
  export declare const sortOrderForTemplates: string[];
26
+ export declare const sortOrderForTemplatesV2: string[];
26
27
  export declare const EMAIL_REGEX: RegExp;
27
28
  export declare const VIDEO_URL_REGEX: RegExp;
28
29
  export declare const DISALLOWED_DOMAINS: string[];
@@ -13,6 +13,10 @@ export interface CustomCSSProperties extends React.CSSProperties {
13
13
  '--notification-text-color'?: string;
14
14
  '--border-color'?: string;
15
15
  '--error-color'?: string;
16
+ '--primary-color-hover'?: string;
17
+ '--card-background-color'?: string;
18
+ '--modal-svg-bg'?: string;
19
+ '--primary-color-btn-hover'?: string;
16
20
  }
17
21
  export interface Styles {
18
22
  root: CustomCSSProperties;
@@ -11,7 +11,7 @@ export declare const setEnv: (env: string) => void;
11
11
  export declare const removeSThroughOne: (input: string) => string;
12
12
  export declare const validURL: (str: string) => boolean;
13
13
  export declare const hexToRgba: (hex: any, opacity: any) => string;
14
- export declare const getType: (file: any) => "svg" | "image" | "video";
14
+ export declare const getType: (file: any) => "image" | "svg" | "video";
15
15
  export declare const cleanString: (input: string) => string;
16
16
  export declare const createBorder: (id: string, x: number, y: number, width: number, height: number, rotation: number, color?: string) => {
17
17
  id: string;
@@ -77,10 +77,12 @@ export declare const MESSAGES: {
77
77
  };
78
78
  readonly QR_SECTION: {
79
79
  readonly EMPTY_QR: "Please add a URL to your QR code.";
80
+ readonly EMPTY_CAMPAIGN: "Please add a Campaign Name to your QR code.";
80
81
  readonly QR_PLACEHOLDER: "Enter QR URL";
81
82
  readonly INVALID_URL: "Please add a valid URL to your QR code.";
82
83
  readonly SUBMIT_BUTTON: "Add new QR code";
83
84
  readonly UPDATE_BUTTON: "Update QR code";
85
+ readonly QR_NOTE: "Add a QR code to track engagement. Select a saved code or create a new one for this template.";
84
86
  };
85
87
  readonly HIRE_DESIGNER: {
86
88
  readonly TITLE: "Custom Design Form";
@@ -134,6 +136,18 @@ export declare const MESSAGES: {
134
136
  readonly CANCEL_BUTTON: "Cancel";
135
137
  readonly SUBMIT_BUTTON: "Save";
136
138
  };
139
+ readonly QR_CODE_MODAL: {
140
+ readonly CREATE_TITLE: "Create New QR Code";
141
+ readonly UPDATE_TITLE: "Update QR Code";
142
+ readonly INPUT: {
143
+ readonly LABEL: "Campaign Name";
144
+ readonly PLACEHOLDER: "Enter Campaign Name";
145
+ readonly ERROR: {
146
+ readonly REQUIRED: "QR Code URL is required";
147
+ readonly INVALID: "QR Code URL is not valid";
148
+ };
149
+ };
150
+ };
137
151
  readonly SNACKBAR: {
138
152
  readonly HEADING: "Notifications";
139
153
  };
@@ -2,12 +2,16 @@ interface Size {
2
2
  id: string;
3
3
  size: string;
4
4
  title?: string;
5
+ label?: string;
5
6
  }
6
7
  interface Product {
7
8
  id: string;
8
9
  title: string;
9
10
  productType: string;
10
11
  size: Size[];
12
+ finish?: string;
13
+ label?: string;
14
+ envelopeOptions?: string;
11
15
  hasEnvelope?: boolean;
12
16
  paper?: string;
13
17
  envelope?: any;
@@ -8,7 +8,53 @@ export interface EnvelopeType {
8
8
  type: string;
9
9
  productId: number;
10
10
  }
11
+ export interface DesignType {
12
+ id: number;
13
+ type: string;
14
+ productId: number;
15
+ }
11
16
  export declare const envelopeTypes: EnvelopeType[];
17
+ export declare const designTypes: DesignType[];
18
+ export declare const selfMailerProduct: {
19
+ id: string;
20
+ title: string;
21
+ productType: string;
22
+ hasEnvelope: boolean;
23
+ paper: string;
24
+ finish: string;
25
+ size: {
26
+ id: string;
27
+ size: string;
28
+ }[];
29
+ types: ({
30
+ id: string;
31
+ defaultSize: string;
32
+ title: string;
33
+ productType: string;
34
+ hasEnvelope: boolean;
35
+ paper: string;
36
+ finish: string;
37
+ size: {
38
+ id: string;
39
+ size: string;
40
+ }[];
41
+ label?: undefined;
42
+ } | {
43
+ id: string;
44
+ defaultSize: string;
45
+ title: string;
46
+ productType: string;
47
+ hasEnvelope: boolean;
48
+ paper: string;
49
+ label: string;
50
+ finish: string;
51
+ size: {
52
+ id: string;
53
+ size: string;
54
+ label: string;
55
+ }[];
56
+ })[];
57
+ };
12
58
  export declare const getFileAsBlob: (url: string, returnType?: string) => Promise<any>;
13
59
  export declare const blobToString: (blob: Blob) => Promise<string>;
14
60
  export declare const downloadPDF: (title: string, url: string) => void;
@@ -1 +1 @@
1
- export const SDK_VERSION: "2.0.7";
1
+ export const SDK_VERSION: "2.0.8-beta.1";