@openlettermarketing/olc-react-sdk 2.1.6-beta.8 → 2.1.6-beta.9

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 (141) hide show
  1. package/build/index.js +1 -1
  2. package/package.json +1 -2
  3. package/build/index.js.map +0 -1
  4. package/build/types/src/App.d.ts +0 -41
  5. package/build/types/src/assets/images/input/cancel.d.ts +0 -3
  6. package/build/types/src/assets/images/input/search.d.ts +0 -3
  7. package/build/types/src/assets/images/input/select-cancel.d.ts +0 -3
  8. package/build/types/src/assets/images/modal-icons/add.d.ts +0 -3
  9. package/build/types/src/assets/images/modal-icons/cancel-file.d.ts +0 -3
  10. package/build/types/src/assets/images/modal-icons/cancel-input.d.ts +0 -3
  11. package/build/types/src/assets/images/modal-icons/confirm-close-icon.d.ts +0 -3
  12. package/build/types/src/assets/images/modal-icons/confirm-new.d.ts +0 -3
  13. package/build/types/src/assets/images/modal-icons/cross.d.ts +0 -3
  14. package/build/types/src/assets/images/modal-icons/del.d.ts +0 -3
  15. package/build/types/src/assets/images/modal-icons/doc.d.ts +0 -11
  16. package/build/types/src/assets/images/modal-icons/docx.d.ts +0 -11
  17. package/build/types/src/assets/images/modal-icons/envelope-icon.d.ts +0 -3
  18. package/build/types/src/assets/images/modal-icons/info.d.ts +0 -3
  19. package/build/types/src/assets/images/modal-icons/jpeg.d.ts +0 -11
  20. package/build/types/src/assets/images/modal-icons/jpg.d.ts +0 -11
  21. package/build/types/src/assets/images/modal-icons/modal-cross.d.ts +0 -3
  22. package/build/types/src/assets/images/modal-icons/new-cancel.d.ts +0 -3
  23. package/build/types/src/assets/images/modal-icons/order-download.d.ts +0 -3
  24. package/build/types/src/assets/images/modal-icons/pdf.d.ts +0 -11
  25. package/build/types/src/assets/images/modal-icons/png.d.ts +0 -11
  26. package/build/types/src/assets/images/modal-icons/save.d.ts +0 -3
  27. package/build/types/src/assets/images/modal-icons/template-copy.d.ts +0 -3
  28. package/build/types/src/assets/images/modal-icons/tool-cancel.d.ts +0 -5
  29. package/build/types/src/assets/images/products/personal-new.d.ts +0 -3
  30. package/build/types/src/assets/images/products/postcard-new.d.ts +0 -3
  31. package/build/types/src/assets/images/products/professional-new.d.ts +0 -3
  32. package/build/types/src/assets/images/products/real-new.d.ts +0 -3
  33. package/build/types/src/assets/images/templates/address-block-icon.d.ts +0 -8
  34. package/build/types/src/assets/images/templates/arrow-down.d.ts +0 -3
  35. package/build/types/src/assets/images/templates/bi-fold-self-mailers.d.ts +0 -3
  36. package/build/types/src/assets/images/templates/content-copy-icon.d.ts +0 -3
  37. package/build/types/src/assets/images/templates/custom-add-on-icon.d.ts +0 -3
  38. package/build/types/src/assets/images/templates/custom-qr-section-icon.d.ts +0 -3
  39. package/build/types/src/assets/images/templates/custom-template.d.ts +0 -3
  40. package/build/types/src/assets/images/templates/designer.d.ts +0 -3
  41. package/build/types/src/assets/images/templates/dot.d.ts +0 -3
  42. package/build/types/src/assets/images/templates/edit-pencil-icon.d.ts +0 -3
  43. package/build/types/src/assets/images/templates/epo-icon.d.ts +0 -3
  44. package/build/types/src/assets/images/templates/field.d.ts +0 -3
  45. package/build/types/src/assets/images/templates/gsv-icon.d.ts +0 -3
  46. package/build/types/src/assets/images/templates/info-icon.d.ts +0 -3
  47. package/build/types/src/assets/images/templates/personal-letter.d.ts +0 -3
  48. package/build/types/src/assets/images/templates/postcard.d.ts +0 -3
  49. package/build/types/src/assets/images/templates/professional-letter.d.ts +0 -3
  50. package/build/types/src/assets/images/templates/qr-code.d.ts +0 -3
  51. package/build/types/src/assets/images/templates/real-penned-letters.d.ts +0 -3
  52. package/build/types/src/assets/images/templates/size-image-lg.d.ts +0 -3
  53. package/build/types/src/assets/images/templates/size-image-mid.d.ts +0 -3
  54. package/build/types/src/assets/images/templates/size-image-xl.d.ts +0 -3
  55. package/build/types/src/assets/images/templates/size-image.d.ts +0 -3
  56. package/build/types/src/assets/images/templates/snap-pack.d.ts +0 -6
  57. package/build/types/src/assets/images/templates/template-default-design.d.ts +0 -3
  58. package/build/types/src/assets/images/templates/tri-fold-self-mailers.d.ts +0 -3
  59. package/build/types/src/assets/images/tooltip/tool-arrow.d.ts +0 -3
  60. package/build/types/src/components/CreateTemplate/V2/index.d.ts +0 -12
  61. package/build/types/src/components/CreateTemplate/index.d.ts +0 -12
  62. package/build/types/src/components/GenericUIBlocks/Button/index.d.ts +0 -13
  63. package/build/types/src/components/GenericUIBlocks/CircularProgress/index.d.ts +0 -7
  64. package/build/types/src/components/GenericUIBlocks/CustomTooltip/index.d.ts +0 -10
  65. package/build/types/src/components/GenericUIBlocks/Dialog/V2/index.d.ts +0 -22
  66. package/build/types/src/components/GenericUIBlocks/Dialog/index.d.ts +0 -21
  67. package/build/types/src/components/GenericUIBlocks/Divider/index.d.ts +0 -4
  68. package/build/types/src/components/GenericUIBlocks/GeneralSelect/index.d.ts +0 -24
  69. package/build/types/src/components/GenericUIBlocks/GeneralTooltip/index.d.ts +0 -11
  70. package/build/types/src/components/GenericUIBlocks/GenericSnackbar/Toast/index.d.ts +0 -4
  71. package/build/types/src/components/GenericUIBlocks/Grid/index.d.ts +0 -3
  72. package/build/types/src/components/GenericUIBlocks/Input/index.d.ts +0 -28
  73. package/build/types/src/components/GenericUIBlocks/Tabs/index.d.ts +0 -4
  74. package/build/types/src/components/GenericUIBlocks/Typography/index.d.ts +0 -10
  75. package/build/types/src/components/SidePanel/CustomAddOns/index.d.ts +0 -5
  76. package/build/types/src/components/SidePanel/CustomBlockColors/index.d.ts +0 -5
  77. package/build/types/src/components/SidePanel/CustomFields/customFieldSection.d.ts +0 -5
  78. package/build/types/src/components/SidePanel/CustomQRCode/V2/QRCodeModal/index.d.ts +0 -20
  79. package/build/types/src/components/SidePanel/CustomQRCode/index.d.ts +0 -22
  80. package/build/types/src/components/SidePanel/CustomUploads/V2/index.d.ts +0 -13
  81. package/build/types/src/components/SidePanel/CustomUploads/index.d.ts +0 -27
  82. package/build/types/src/components/SidePanel/Templates/ModalGallery/HireDesigner/index.d.ts +0 -4
  83. package/build/types/src/components/SidePanel/Templates/ModalGallery/V2/index.d.ts +0 -36
  84. package/build/types/src/components/SidePanel/Templates/ModalGallery/index.d.ts +0 -34
  85. package/build/types/src/components/SidePanel/Templates/SideBarGallery/index.d.ts +0 -26
  86. package/build/types/src/components/SidePanel/Templates/TemplatesCard/V2/index.d.ts +0 -4
  87. package/build/types/src/components/SidePanel/Templates/TemplatesCard/index.d.ts +0 -4
  88. package/build/types/src/components/SidePanel/Templates/customTemplateSection.d.ts +0 -29
  89. package/build/types/src/components/SidePanel/index.d.ts +0 -34
  90. package/build/types/src/components/TemplateBuilder/index.d.ts +0 -50
  91. package/build/types/src/components/TemplateTypes/index.d.ts +0 -11
  92. package/build/types/src/components/TopNavigation/ConfirmNavigateDialog/index.d.ts +0 -10
  93. package/build/types/src/components/TopNavigation/DuplicateTemplateModal.d.ts +0 -15
  94. package/build/types/src/components/TopNavigation/EditTemplateNameModel/index.d.ts +0 -21
  95. package/build/types/src/components/TopNavigation/SaveTemplateModel/index.d.ts +0 -13
  96. package/build/types/src/components/TopNavigation/index.d.ts +0 -18
  97. package/build/types/src/index.d.ts +0 -55
  98. package/build/types/src/redux/actions/action-types.d.ts +0 -33
  99. package/build/types/src/redux/actions/customQRCodeActions.d.ts +0 -37
  100. package/build/types/src/redux/actions/snackbarActions.d.ts +0 -5
  101. package/build/types/src/redux/actions/templateActions.d.ts +0 -98
  102. package/build/types/src/redux/reducers/customFieldReducer.d.ts +0 -8
  103. package/build/types/src/redux/reducers/customQRCodeReducer.d.ts +0 -14
  104. package/build/types/src/redux/reducers/index.d.ts +0 -15
  105. package/build/types/src/redux/reducers/snackbarReducer.d.ts +0 -16
  106. package/build/types/src/redux/reducers/templateReducer.d.ts +0 -68
  107. package/build/types/src/redux/store.d.ts +0 -11
  108. package/build/types/src/utils/api.d.ts +0 -5
  109. package/build/types/src/utils/constants.d.ts +0 -39
  110. package/build/types/src/utils/customStyles.d.ts +0 -24
  111. package/build/types/src/utils/fetchWrapper.d.ts +0 -8
  112. package/build/types/src/utils/helper.d.ts +0 -85
  113. package/build/types/src/utils/local-storage.d.ts +0 -4
  114. package/build/types/src/utils/message.d.ts +0 -155
  115. package/build/types/src/utils/products.d.ts +0 -23
  116. package/build/types/src/utils/template-builder.d.ts +0 -74
  117. package/build/types/src/utils/templateIdentifierArea/biFold.d.ts +0 -47
  118. package/build/types/src/utils/templateIdentifierArea/index.d.ts +0 -2
  119. package/build/types/src/utils/templateIdentifierArea/personal.d.ts +0 -47
  120. package/build/types/src/utils/templateIdentifierArea/postCards.d.ts +0 -50
  121. package/build/types/src/utils/templateIdentifierArea/professional.d.ts +0 -48
  122. package/build/types/src/utils/templateIdentifierArea/snapPack.d.ts +0 -47
  123. package/build/types/src/utils/templateIdentifierArea/triFold.d.ts +0 -47
  124. package/build/types/src/utils/templateRestrictedArea/biFold.d.ts +0 -78
  125. package/build/types/src/utils/templateRestrictedArea/nonWindowProfessional.d.ts +0 -76
  126. package/build/types/src/utils/templateRestrictedArea/personal.d.ts +0 -76
  127. package/build/types/src/utils/templateRestrictedArea/postCard.d.ts +0 -78
  128. package/build/types/src/utils/templateRestrictedArea/postCardJumbo.d.ts +0 -78
  129. package/build/types/src/utils/templateRestrictedArea/professional.d.ts +0 -78
  130. package/build/types/src/utils/templateRestrictedArea/realPenned.d.ts +0 -78
  131. package/build/types/src/utils/templateRestrictedArea/snapPack.d.ts +0 -79
  132. package/build/types/src/utils/templateRestrictedArea/triFold.d.ts +0 -78
  133. package/build/types/src/utils/templateSafetyBorders/biFold.d.ts +0 -2
  134. package/build/types/src/utils/templateSafetyBorders/index.d.ts +0 -2
  135. package/build/types/src/utils/templateSafetyBorders/personal.d.ts +0 -2
  136. package/build/types/src/utils/templateSafetyBorders/postCards.d.ts +0 -5
  137. package/build/types/src/utils/templateSafetyBorders/professional.d.ts +0 -3
  138. package/build/types/src/utils/templateSafetyBorders/snapPack.d.ts +0 -2
  139. package/build/types/src/utils/templateSafetyBorders/triFold.d.ts +0 -2
  140. package/build/types/src/utils/types.d.ts +0 -8
  141. package/build/types/version.d.ts +0 -1
@@ -1,14 +0,0 @@
1
- export interface CustomQRCodeState {
2
- url: string;
3
- utmSource: string;
4
- utmMedium: string;
5
- utmCampaignName: string;
6
- customUtms: Record<string, any>;
7
- isQR: boolean;
8
- dialog: {
9
- open: boolean;
10
- model: string;
11
- };
12
- }
13
- declare const customQRCodeReducer: (state: CustomQRCodeState | undefined, action: any) => CustomQRCodeState;
14
- export { customQRCodeReducer };
@@ -1,15 +0,0 @@
1
- declare const rootReducer: import("redux").Reducer<{
2
- templates: import("./templateReducer").TemplateState;
3
- customFields: import("./customFieldReducer").CustomFieldState;
4
- snackbarReducers: {
5
- snackbar: any;
6
- };
7
- customQRCode: import("./customQRCodeReducer").CustomQRCodeState;
8
- }, any, Partial<{
9
- templates: never;
10
- customFields: import("./customFieldReducer").CustomFieldState | undefined;
11
- snackbarReducers: never;
12
- customQRCode: import("./customQRCodeReducer").CustomQRCodeState | undefined;
13
- }>>;
14
- export type RootState = ReturnType<typeof rootReducer>;
15
- export default rootReducer;
@@ -1,16 +0,0 @@
1
- interface SnackbarState {
2
- snackbar: {
3
- open: boolean;
4
- status: 'success' | 'error';
5
- heading: string;
6
- message: string;
7
- };
8
- }
9
- export type ActionPayload = {
10
- type: string;
11
- payload: any;
12
- };
13
- declare const snackbarReducers: (state: SnackbarState | undefined, { type, payload }: ActionPayload) => {
14
- snackbar: any;
15
- };
16
- export { snackbarReducers };
@@ -1,68 +0,0 @@
1
- export interface DynamicField {
2
- value: string;
3
- key: string;
4
- defaultValue: string;
5
- }
6
- export interface Template {
7
- title: string;
8
- product: Product | null;
9
- templateType: string;
10
- }
11
- export interface Product {
12
- id: string | number;
13
- size: Array<{
14
- size: string;
15
- }>;
16
- productType: string;
17
- }
18
- export interface TemplatesState {
19
- count: number;
20
- rows: any[];
21
- currentPage: number;
22
- lastPage: number;
23
- from: number;
24
- to: number;
25
- perPage: number;
26
- total: number;
27
- loading: boolean;
28
- totalRecordsInDB: number | null;
29
- }
30
- export interface PaginationState {
31
- page: number;
32
- pageSize: number;
33
- loading: boolean;
34
- }
35
- export interface TemplateState {
36
- title: string;
37
- product: Product | null;
38
- dynamicField: string;
39
- dynamicFields: Record<string, DynamicField>;
40
- defaultDynamicFieldsHashMap: Record<string, DynamicField>;
41
- defaultDynamicFields: DynamicField[];
42
- defaultSenderFields: DynamicField[];
43
- defaultPropertyFields: DynamicField[];
44
- defaultMiscFields: DynamicField[];
45
- products: any[];
46
- productDetails: any[];
47
- productDetailByTemplate: any[];
48
- templates: TemplatesState;
49
- templatesPagination: PaginationState;
50
- template: Template | null;
51
- totalRecordsInDB: number | null;
52
- search: string;
53
- searchProductIds: string;
54
- searchCreator: string;
55
- templateType: string;
56
- envelopeType: string;
57
- templateLoading: boolean | null;
58
- uploadedImages: any[];
59
- offerPercentage: string | null;
60
- blockColor: string;
61
- hireDesignerForm: any;
62
- pageCount: number;
63
- }
64
- declare const templateReducer: (state: TemplateState | undefined, { type, payload }: {
65
- type: string;
66
- payload: any;
67
- }) => TemplateState;
68
- export { templateReducer };
@@ -1,11 +0,0 @@
1
- declare const store: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<{
2
- templates: import("./reducers/templateReducer").TemplateState;
3
- customFields: import("./reducers/customFieldReducer").CustomFieldState;
4
- snackbarReducers: {
5
- snackbar: any;
6
- };
7
- customQRCode: import("./reducers/customQRCodeReducer").CustomQRCodeState;
8
- }, any, any>;
9
- export type RootState = ReturnType<typeof store.getState>;
10
- export type AppDispatch = typeof store.dispatch;
11
- export default store;
@@ -1,5 +0,0 @@
1
- export declare const get: (endpoint: string, params?: any) => Promise<unknown>;
2
- export declare const post: (endpoint: string, body: any) => Promise<unknown>;
3
- export declare const put: (endpoint: string, body: any) => Promise<unknown>;
4
- export declare const patch: (endpoint: string, body: any) => Promise<unknown>;
5
- export declare const del: (endpoint: string, params?: Record<string, string>) => Promise<unknown>;
@@ -1,39 +0,0 @@
1
- export declare const PROD_API_BASE_URL = "https://qrforward.org/api/v1/sdk";
2
- export declare const DEMO_API_BASE_URL = "https://demo.qrforward.org/api/v1/sdk";
3
- export declare const STAGE_API_BASE_URL = "https://staging.qrforward.org/api/v1/sdk";
4
- export declare const LOCAL_API_BASE_URL = "http://localhost:8089/api/v1/sdk";
5
- export declare const LOCAL_S3_URL = "http://localhost:8089/api/v1/download/s3/sdk-images";
6
- export declare const STAGE_S3_URL = "https://staging.qrforward.org/api/v1/download/s3/sdk-images";
7
- export declare const DEMO_S3_URL = "https://demo.qrforward.org/api/v1/download/s3/sdk-images";
8
- export declare const PROD_S3_URL = "https://qrforward.org/api/v1/download/s3/sdk-images";
9
- export declare const DEMO_PO_GENERATOR_URL = "https://demo.offer-generator.com/property-offers";
10
- export declare const STAGE_PO_GENERATOR_URL = "https://staging.offer-generator.com/property-offers";
11
- export declare const PROD_PO_GENERATOR_URL = "https://offer-generator.com/property-offers";
12
- export declare const DPI: number;
13
- export declare const BARCODE_IMAGE_URL: string;
14
- export declare const GOOGLE_STREET_VIEW_IMAGE_URL: string;
15
- export declare const PRODUCT_LEARN_URL: string;
16
- export declare const multiPageLetters: string[];
17
- export declare const emojiRegex: RegExp;
18
- export declare const allowedImageTypes: string[];
19
- interface TemplateTypes {
20
- id: string;
21
- label: string;
22
- value: string;
23
- }
24
- export declare const defaultTemplateTypes: TemplateTypes[];
25
- export declare const sortOrderForTemplates: string[];
26
- export declare const sortOrderForTemplatesV2: string[];
27
- export declare const EMAIL_REGEX: RegExp;
28
- export declare const VIDEO_URL_REGEX: RegExp;
29
- export declare const DISALLOWED_DOMAINS: string[];
30
- export declare const MERGE_UTM_PARAMS: {
31
- key: string;
32
- value: string;
33
- }[];
34
- export declare const DEFAULT_RESTRICTED_AREA_BG = "#FFFFFF";
35
- export declare const RESTRICTED_AREA_COLOR_PALETTE: {
36
- name: string;
37
- value: string;
38
- }[];
39
- export {};
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- export interface CustomCSSProperties extends React.CSSProperties {
3
- '--font-family'?: string;
4
- '--scrollbar-thumb-color'?: string;
5
- '--scrollbar-track-color'?: string;
6
- '--primary-color'?: string;
7
- '--secondary-color'?: string;
8
- '--svg-color'?: string;
9
- '--svg-color-not-active'?: string;
10
- '--text-color'?: string;
11
- '--modal-background-color'?: string;
12
- '--notification-background-color'?: string;
13
- '--notification-text-color'?: string;
14
- '--border-color'?: string;
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;
20
- }
21
- export interface Styles {
22
- root: CustomCSSProperties;
23
- }
24
- export declare const customStyles: Styles;
@@ -1,8 +0,0 @@
1
- export interface RequestOptions {
2
- method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
3
- headers?: Record<string, string>;
4
- body?: any;
5
- params?: Record<string, string>;
6
- }
7
- declare const fetchWrapper: (endpoint: string, options: RequestOptions) => Promise<unknown>;
8
- export default fetchWrapper;
@@ -1,85 +0,0 @@
1
- export declare let publicApiKey: string;
2
- export declare let isSandbox: boolean;
3
- export declare let currentEnv: any;
4
- export declare const copyToClipboard: (text: string) => void;
5
- export declare const getPublicApiKey: () => string;
6
- export declare const setPublicApiKey: (key: string) => void;
7
- export declare const getIsSandbox: () => boolean;
8
- export declare const getEnv: () => any;
9
- export declare const setIsSandbox: (sandbox: boolean) => void;
10
- export declare const setEnv: (env: string) => void;
11
- export declare const removeSThroughOne: (input: string) => string;
12
- export declare const validURL: (str: string) => boolean;
13
- export declare const hexToRgba: (hex: any, opacity: any) => string;
14
- export declare const getType: (file: any) => "image" | "svg" | "video";
15
- export declare const cleanString: (input: string) => string;
16
- export declare const createBorder: (id: string, x: number, y: number, width: number, height: number, rotation: number, color?: string) => {
17
- id: string;
18
- type: string;
19
- opacity: number;
20
- visible: boolean;
21
- selectable: boolean;
22
- removable: boolean;
23
- alwaysOnTop: boolean;
24
- showInExport: boolean;
25
- x: number;
26
- y: number;
27
- width: number;
28
- height: number;
29
- rotation: number;
30
- color: string;
31
- dash: number[];
32
- draggable: boolean;
33
- resizable: boolean;
34
- };
35
- export declare const createSafetyTextElement: (id: string, x: number, y: number, width: number, text: string, rotation?: number, fontSize?: number) => {
36
- id: string;
37
- type: string;
38
- name: string;
39
- opacity: number;
40
- visible: boolean;
41
- selectable: boolean;
42
- removable: boolean;
43
- alwaysOnTop: boolean;
44
- showInExport: boolean;
45
- x: number;
46
- y: number;
47
- width: number;
48
- height: number;
49
- rotation: number;
50
- animations: never[];
51
- blurEnabled: boolean;
52
- blurRadius: number;
53
- brightnessEnabled: boolean;
54
- brightness: number;
55
- sepiaEnabled: boolean;
56
- grayscaleEnabled: boolean;
57
- shadowEnabled: boolean;
58
- shadowBlur: number;
59
- shadowOffsetX: number;
60
- shadowOffsetY: number;
61
- shadowColor: string;
62
- shadowOpacity: number;
63
- draggable: boolean;
64
- resizable: boolean;
65
- contentEditable: boolean;
66
- styleEditable: boolean;
67
- text: string;
68
- fontSize: number;
69
- fontFamily: string;
70
- fontStyle: string;
71
- fontWeight: string;
72
- fill: string;
73
- align: string;
74
- verticalAlign: string;
75
- strokeWidth: number;
76
- stroke: string;
77
- lineHeight: number;
78
- letterSpacing: number;
79
- backgroundEnabled: boolean;
80
- backgroundColor: string;
81
- backgroundOpacity: number;
82
- backgroundCornerRadius: number;
83
- backgroundPadding: number;
84
- };
85
- export declare const dataURLtoBlob: (dataURL: string, type: string) => Blob;
@@ -1,4 +0,0 @@
1
- export declare const setItem: (key: string, value: string) => void;
2
- export declare const getItem: (key: string) => string | null;
3
- export declare const removeItem: (key: string) => void;
4
- export declare const clearStorage: () => void;
@@ -1,155 +0,0 @@
1
- export declare const MESSAGES: {
2
- readonly TEMPLATE_MESSAGE_ON_SMALL_SCREEN: "Template Builder is available on tablet and web view only.";
3
- readonly GENERAL_ERROR: "Internal Server Error";
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.";
6
- readonly TEMPLATE: {
7
- readonly SEARCH_PLACE_HOLDER: "Search by template name or template ID";
8
- readonly NAME_REQUIRED: "Template Name is required";
9
- readonly TYPE_REQUIRED: "Template Type is required";
10
- readonly DESIGN_NEW: "Design Your Own";
11
- readonly NO_MY_TEMPLATES: "No Templates to show";
12
- readonly LOADING_TEMPLATE: "Loading Templates...";
13
- readonly NO_TEAM_TEMPLATES: "No Team Templates to show";
14
- readonly NO_OLC_TEMPLATES: "No OLC Templates to show";
15
- readonly PRODUCT_TYPE_REQUIRED: "Product Type is required";
16
- readonly ENVELOPE_TYPE_REQUIRED: "Envelope Type is required";
17
- readonly POSTCARD_SIZE_REQUIRED: "Postcard Size is required";
18
- readonly NAME_LESS_50: "Template Name should be less than or equal to 50 characters";
19
- readonly GSV_RESTRICT_ONE_PER_PAGE: "Only one GSV image is allowed per page.";
20
- readonly EMOJI_NOT_ALLOWED: "Emojis are not allowed in the template. Please remove them before saving.";
21
- readonly EMPTY_QR_NOT_ALLOWED: "Please add a URL to your QR code in order to save the template.";
22
- readonly SIZE_LIMIT_EXCEED: "Template size should be less than 7MB. Please remove custom fonts or unnecessary assets.";
23
- readonly CREATE: {
24
- readonly TITLE: "Create New Template";
25
- readonly TEMPLATE_LABEL: "Template Name*";
26
- readonly PRODUCT_LABEL: "Product Type*";
27
- readonly LEARN_TEXT: "Learn More";
28
- readonly CANCEL_BUTTON: "Cancel";
29
- readonly SUBMIT_BUTTON: "Next";
30
- };
31
- readonly LIMIT_MODAL: {
32
- readonly TITLE: "Limit Reached";
33
- readonly HEADING: "You've reached your template limit";
34
- readonly SUB_HEADING: "Please Upgrade your subscription to add more templates";
35
- readonly CANCEL_BUTTON: "Cancel";
36
- readonly SUBMIT_BUTTON: "View Plans";
37
- };
38
- readonly DELETE: {
39
- readonly TITLE: "Delete Template";
40
- readonly HEADING: "Are you sure you want to delete this Template?";
41
- readonly PARAGRAPH: "This template will be deleted from your Templates list but will still be included in associated orders.";
42
- };
43
- readonly SAVE: {
44
- readonly TITLE: "Confirm Save Template";
45
- readonly HEADING: "Are you sure you want to save this template?";
46
- readonly PARAGRAPH: "The updates provided will be used right away for any orders referencing this template.";
47
- readonly CANCEL_BUTTON: "Cancel";
48
- readonly SUBMIT_BUTTON: "Save";
49
- };
50
- readonly CANCEL: {
51
- readonly TITLE: "Confirm Cancel Template";
52
- readonly HEADING: "Are you sure you want to cancel this Template?";
53
- readonly PARAGRAPH: "You will lose your changes after canceling.";
54
- readonly BACK_BUTTON: "Go Back";
55
- readonly CANCEL_BUTTON: "Cancel Template";
56
- };
57
- readonly DESIGN_YOUR_OWN: {
58
- readonly TITLE: "Confirm";
59
- readonly HEADING: "Are you sure you want to discard these changes?";
60
- readonly PARAGRAPH: "You will lose your changes. Please save your changes or click ok to proceed.";
61
- };
62
- readonly SELECT_TEMPLATE: {
63
- readonly TITLE: "Confirm";
64
- readonly HEADING: "Are you sure you want to change current template with this one?";
65
- readonly PARAGRAPH: "You will lose your changes. Please save your changes or click ok to proceed.";
66
- readonly SUBMIT_BUTTON: "OK";
67
- readonly CANCEL_BUTTON: "Cancel";
68
- };
69
- readonly CUSTOM_UPLOAD_SECTION: {
70
- readonly HEADING: "Do you want to upload your own images?";
71
- readonly ACCEPTED_FORMATS: "Accepted File Formats: JPEG, PNG, SVG";
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.";
74
- readonly UPLOAD_BTN_TEXT: "Upload Image";
75
- readonly TYPE_VALIDATION: "Only image files with extensions jpeg, png, or svg are allowed.";
76
- readonly SIZE_VALIDATION: "File size must be under 5MB.";
77
- };
78
- readonly QR_SECTION: {
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.";
81
- readonly QR_PLACEHOLDER: "Enter QR URL";
82
- readonly INVALID_URL: "Please add a valid URL to your QR code.";
83
- readonly FAILED_QR: "Failed to create QR code";
84
- readonly SUBMIT_BUTTON: "Add new QR code";
85
- readonly UPDATE_BUTTON: "Update QR code";
86
- readonly QR_NOTE: "Add a QR code to track engagement. Select a saved code or create a new one for this template.";
87
- };
88
- readonly HIRE_DESIGNER: {
89
- readonly TITLE: "Custom Design Form";
90
- readonly UPLOAD_HEADING: "Upload Design Files";
91
- readonly UPLOADED_TEXT: "Uploaded";
92
- readonly FILE_VALLIDATION: "One or more files have unsupported formats. Please upload only .png, .jpg, .jpeg, .pdf, .doc, or .docx files.";
93
- readonly FILE_NUMBER: "You can only upload up to 5 files.";
94
- readonly TITLE_REQUIRED: "Template Name is required";
95
- readonly URL_REQUIRED: "Video URL is required";
96
- readonly URL_VAIDATION: "Video URL is not valid";
97
- readonly COMMENT_REQUIRED: "Comments are required";
98
- readonly EMAIL_REQUIRED: "Email is required";
99
- readonly EMAIL_VALIDATION: "Email is not valid";
100
- readonly SUBMIT_BUTTON: "Next";
101
- };
102
- readonly DUPLICATE_MODAL: {
103
- readonly TITLE: "Clone Template";
104
- readonly NAME_PLACEHOLDER: "Enter new template name";
105
- readonly CANCEL_BUTTON: "Cancel";
106
- readonly SUBMIT_BUTTON: "Clone";
107
- readonly SUB_HEADING: "Enter a New Name for Your Template";
108
- readonly DESCRIPTION: "Create a clone of an existing template. Please provide a new name for the template to proceed.";
109
- readonly NOTE: " Note: Only saved changes will appear in the cloned template.";
110
- };
111
- readonly CUSTOM_ADD_ONS: {
112
- readonly TITLE: "Optional Add-On's";
113
- readonly NO_RESULT: "Add-ons are unavailable because the property address is excluded. Please update your settings to enable these features.";
114
- readonly DESCRIPTION: "Optional add-ons are additional services that user can choose to include with their template, enhancing their overall experience.";
115
- readonly GSV: {
116
- readonly TITLE: "Street View Property Image";
117
- readonly DESCRIPTION: "+$0.02 per mail piece";
118
- readonly CUSTOM_PRICE: " per mail piece";
119
- };
120
- readonly PROPERTY_OFFER: {
121
- readonly TITLE: "Add an Offer";
122
- readonly DESCRIPTION: "(generated using Property Info)";
123
- readonly PRICE: "+$0.03 per mail piece";
124
- readonly CUSTOM_PRICE: " per mail piece";
125
- readonly CUSTOM: {
126
- readonly TITLE: "Add an Offer (+$0.03 per mail piece)";
127
- readonly DESCRIPTION: "Unsure of your offer %?";
128
- readonly PRICE: "+$0.03 per mail piece";
129
- readonly CLICK: "Click here";
130
- readonly CSV_IMPORT: "to import a CSV to determine the best offer % for you!";
131
- readonly CUSTOM_PRICE: "Enter Offer Percentage*";
132
- };
133
- };
134
- };
135
- readonly DOWNLOAD_PROOF_BUTTON: "Download Mailer Proof";
136
- readonly DOWNLOAD_ENVELOPE_BUTTON: "Download Envelope Proof";
137
- readonly CANCEL_BUTTON: "Cancel";
138
- readonly SUBMIT_BUTTON: "Save";
139
- };
140
- readonly QR_CODE_MODAL: {
141
- readonly CREATE_TITLE: "Create New QR Code";
142
- readonly UPDATE_TITLE: "Update QR Code";
143
- readonly INPUT: {
144
- readonly LABEL: "Campaign Name";
145
- readonly PLACEHOLDER: "Enter Campaign Name";
146
- readonly ERROR: {
147
- readonly REQUIRED: "QR Code URL is required";
148
- readonly INVALID: "QR Code URL is not valid";
149
- };
150
- };
151
- };
152
- readonly SNACKBAR: {
153
- readonly HEADING: "Notifications";
154
- };
155
- };
@@ -1,23 +0,0 @@
1
- interface Size {
2
- id: string;
3
- size: string;
4
- title?: string;
5
- label?: string;
6
- }
7
- interface Product {
8
- id: string;
9
- title: string;
10
- productType: string;
11
- size: Size[];
12
- finish?: string;
13
- label?: string;
14
- envelopeOptions?: string;
15
- hasEnvelope?: boolean;
16
- paper?: string;
17
- envelope?: any;
18
- nonEnvelope?: any;
19
- ink?: string;
20
- windowed?: boolean;
21
- }
22
- export declare const Products: Product[];
23
- export {};
@@ -1,74 +0,0 @@
1
- export declare const addressPrinting: {
2
- [key: string]: boolean;
3
- };
4
- export declare const multiPageTemplates: string[];
5
- export interface EnvelopeType {
6
- id: number;
7
- label: string;
8
- type: string;
9
- productId: number;
10
- }
11
- export interface DesignType {
12
- id: number;
13
- type: string;
14
- label: string;
15
- productId: number;
16
- }
17
- export declare const envelopeTypes: EnvelopeType[];
18
- export declare const designTypes: DesignType[];
19
- export declare const selfMailerProduct: {
20
- id: string;
21
- title: string;
22
- productType: string;
23
- hasEnvelope: boolean;
24
- paper: string;
25
- finish: string;
26
- size: {
27
- id: string;
28
- size: string;
29
- }[];
30
- types: ({
31
- id: string;
32
- defaultSize: string;
33
- title: string;
34
- productType: string;
35
- hasEnvelope: boolean;
36
- paper: string;
37
- finish: string;
38
- size: {
39
- id: string;
40
- size: string;
41
- }[];
42
- label?: undefined;
43
- } | {
44
- id: string;
45
- defaultSize: string;
46
- title: string;
47
- productType: string;
48
- hasEnvelope: boolean;
49
- paper: string;
50
- label: string;
51
- finish: string;
52
- size: {
53
- id: string;
54
- size: string;
55
- label: string;
56
- }[];
57
- })[];
58
- };
59
- export declare const getFileAsBlob: (url: string, returnType?: string) => Promise<any>;
60
- export declare const blobToString: (blob: Blob) => Promise<string>;
61
- export declare const downloadPDF: (title: string, url: string) => void;
62
- export interface Product {
63
- id: string;
64
- productType: string;
65
- selectedSize: string;
66
- }
67
- export declare const drawRestrictedAreaOnPage: (store: any, product: Product, envelopeType: string) => void;
68
- export declare const extractFontFamilies: (jsonData: any[]) => string[];
69
- export declare const removeBracketsFromRPL: (jsonData: any[]) => any;
70
- export declare const changeColorOfBoxesForSnapPack: (jsonData: any[], preFill?: boolean, isLoading?: boolean) => any;
71
- export declare const extractCustomRistrictedBoxColor: (jsonData: any) => null;
72
- export declare const validateGSV: (pages: any) => boolean;
73
- export declare const validateEmoji: (pages: any) => boolean;
74
- export declare const isValidQR: (pages: any) => boolean;
@@ -1,47 +0,0 @@
1
- interface Element {
2
- id: string;
3
- type: string;
4
- name: string;
5
- opacity: number;
6
- visible: boolean;
7
- selectable: boolean;
8
- removable: boolean;
9
- alwaysOnTop: boolean;
10
- showInExport: boolean;
11
- x: number;
12
- y: number;
13
- width: number;
14
- height: number;
15
- rotation: number;
16
- animations?: any[];
17
- draggable?: boolean;
18
- resizable?: boolean;
19
- contentEditable: boolean;
20
- styleEditable: boolean;
21
- text: string;
22
- fontSize: number;
23
- fontFamily: string;
24
- fontStyle: string;
25
- fontWeight: string;
26
- fill: string;
27
- align: string;
28
- verticalAlign: string;
29
- lineHeight: number;
30
- letterSpacing: number;
31
- backgroundEnabled?: boolean;
32
- backgroundColor?: string;
33
- backgroundOpacity?: number;
34
- backgroundCornerRadius?: number;
35
- backgroundPadding?: number;
36
- }
37
- interface Page {
38
- addElement: (element: Element) => void;
39
- }
40
- interface Store {
41
- pages: Page[];
42
- history: {
43
- clear: () => void;
44
- };
45
- }
46
- export declare const addIdentifierAreaToBiFold: (store: Store) => void;
47
- export {};
@@ -1,2 +0,0 @@
1
- import { StoreType } from "polotno/model/store";
2
- export declare const addIdentifiersForTemplates: (productId: string, store: StoreType) => void;
@@ -1,47 +0,0 @@
1
- interface Element {
2
- id: string;
3
- type: string;
4
- name: string;
5
- opacity: number;
6
- visible: boolean;
7
- selectable: boolean;
8
- removable: boolean;
9
- alwaysOnTop: boolean;
10
- showInExport: boolean;
11
- x: number;
12
- y: number;
13
- width: number;
14
- height: number;
15
- rotation: number;
16
- animations?: any[];
17
- draggable?: boolean;
18
- resizable?: boolean;
19
- contentEditable: boolean;
20
- styleEditable: boolean;
21
- text: string;
22
- fontSize: number;
23
- fontFamily: string;
24
- fontStyle: string;
25
- fontWeight: string;
26
- fill: string;
27
- align: string;
28
- verticalAlign: string;
29
- lineHeight: number;
30
- letterSpacing: number;
31
- backgroundEnabled?: boolean;
32
- backgroundColor?: string;
33
- backgroundOpacity?: number;
34
- backgroundCornerRadius?: number;
35
- backgroundPadding?: number;
36
- }
37
- interface Page {
38
- addElement: (element: Element) => void;
39
- }
40
- interface Store {
41
- pages: Page[];
42
- history: {
43
- clear: () => void;
44
- };
45
- }
46
- export declare const addIdentifierAreaToPersonalLetter: (store: Store) => void;
47
- export {};