@openlettermarketing/olc-react-sdk 2.1.6-beta.7 → 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.
- package/build/index.js +1 -1
- package/package.json +1 -2
- package/build/index.js.map +0 -1
- package/build/types/src/App.d.ts +0 -41
- package/build/types/src/assets/images/input/cancel.d.ts +0 -3
- package/build/types/src/assets/images/input/search.d.ts +0 -3
- package/build/types/src/assets/images/input/select-cancel.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/add.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/cancel-file.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/cancel-input.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/confirm-close-icon.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/confirm-new.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/cross.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/del.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/doc.d.ts +0 -11
- package/build/types/src/assets/images/modal-icons/docx.d.ts +0 -11
- package/build/types/src/assets/images/modal-icons/envelope-icon.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/info.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/jpeg.d.ts +0 -11
- package/build/types/src/assets/images/modal-icons/jpg.d.ts +0 -11
- package/build/types/src/assets/images/modal-icons/modal-cross.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/new-cancel.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/order-download.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/pdf.d.ts +0 -11
- package/build/types/src/assets/images/modal-icons/png.d.ts +0 -11
- package/build/types/src/assets/images/modal-icons/save.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/template-copy.d.ts +0 -3
- package/build/types/src/assets/images/modal-icons/tool-cancel.d.ts +0 -5
- package/build/types/src/assets/images/products/personal-new.d.ts +0 -3
- package/build/types/src/assets/images/products/postcard-new.d.ts +0 -3
- package/build/types/src/assets/images/products/professional-new.d.ts +0 -3
- package/build/types/src/assets/images/products/real-new.d.ts +0 -3
- package/build/types/src/assets/images/templates/address-block-icon.d.ts +0 -8
- package/build/types/src/assets/images/templates/arrow-down.d.ts +0 -3
- package/build/types/src/assets/images/templates/bi-fold-self-mailers.d.ts +0 -3
- package/build/types/src/assets/images/templates/content-copy-icon.d.ts +0 -3
- package/build/types/src/assets/images/templates/custom-add-on-icon.d.ts +0 -3
- package/build/types/src/assets/images/templates/custom-qr-section-icon.d.ts +0 -3
- package/build/types/src/assets/images/templates/custom-template.d.ts +0 -3
- package/build/types/src/assets/images/templates/designer.d.ts +0 -3
- package/build/types/src/assets/images/templates/dot.d.ts +0 -3
- package/build/types/src/assets/images/templates/edit-pencil-icon.d.ts +0 -3
- package/build/types/src/assets/images/templates/epo-icon.d.ts +0 -3
- package/build/types/src/assets/images/templates/field.d.ts +0 -3
- package/build/types/src/assets/images/templates/gsv-icon.d.ts +0 -3
- package/build/types/src/assets/images/templates/info-icon.d.ts +0 -3
- package/build/types/src/assets/images/templates/personal-letter.d.ts +0 -3
- package/build/types/src/assets/images/templates/postcard.d.ts +0 -3
- package/build/types/src/assets/images/templates/professional-letter.d.ts +0 -3
- package/build/types/src/assets/images/templates/qr-code.d.ts +0 -3
- package/build/types/src/assets/images/templates/real-penned-letters.d.ts +0 -3
- package/build/types/src/assets/images/templates/size-image-lg.d.ts +0 -3
- package/build/types/src/assets/images/templates/size-image-mid.d.ts +0 -3
- package/build/types/src/assets/images/templates/size-image-xl.d.ts +0 -3
- package/build/types/src/assets/images/templates/size-image.d.ts +0 -3
- package/build/types/src/assets/images/templates/snap-pack.d.ts +0 -6
- package/build/types/src/assets/images/templates/template-default-design.d.ts +0 -3
- package/build/types/src/assets/images/templates/tri-fold-self-mailers.d.ts +0 -3
- package/build/types/src/assets/images/tooltip/tool-arrow.d.ts +0 -3
- package/build/types/src/components/CreateTemplate/V2/index.d.ts +0 -12
- package/build/types/src/components/CreateTemplate/index.d.ts +0 -12
- package/build/types/src/components/GenericUIBlocks/Button/index.d.ts +0 -13
- package/build/types/src/components/GenericUIBlocks/CircularProgress/index.d.ts +0 -7
- package/build/types/src/components/GenericUIBlocks/CustomTooltip/index.d.ts +0 -10
- package/build/types/src/components/GenericUIBlocks/Dialog/V2/index.d.ts +0 -22
- package/build/types/src/components/GenericUIBlocks/Dialog/index.d.ts +0 -21
- package/build/types/src/components/GenericUIBlocks/Divider/index.d.ts +0 -4
- package/build/types/src/components/GenericUIBlocks/GeneralSelect/index.d.ts +0 -24
- package/build/types/src/components/GenericUIBlocks/GeneralTooltip/index.d.ts +0 -11
- package/build/types/src/components/GenericUIBlocks/GenericSnackbar/Toast/index.d.ts +0 -4
- package/build/types/src/components/GenericUIBlocks/Grid/index.d.ts +0 -3
- package/build/types/src/components/GenericUIBlocks/Input/index.d.ts +0 -28
- package/build/types/src/components/GenericUIBlocks/Tabs/index.d.ts +0 -4
- package/build/types/src/components/GenericUIBlocks/Typography/index.d.ts +0 -10
- package/build/types/src/components/SidePanel/CustomAddOns/index.d.ts +0 -5
- package/build/types/src/components/SidePanel/CustomBlockColors/index.d.ts +0 -5
- package/build/types/src/components/SidePanel/CustomFields/customFieldSection.d.ts +0 -5
- package/build/types/src/components/SidePanel/CustomQRCode/V2/QRCodeModal/index.d.ts +0 -20
- package/build/types/src/components/SidePanel/CustomQRCode/index.d.ts +0 -22
- package/build/types/src/components/SidePanel/CustomUploads/V2/index.d.ts +0 -13
- package/build/types/src/components/SidePanel/CustomUploads/index.d.ts +0 -27
- package/build/types/src/components/SidePanel/Templates/ModalGallery/HireDesigner/index.d.ts +0 -4
- package/build/types/src/components/SidePanel/Templates/ModalGallery/V2/index.d.ts +0 -36
- package/build/types/src/components/SidePanel/Templates/ModalGallery/index.d.ts +0 -34
- package/build/types/src/components/SidePanel/Templates/SideBarGallery/index.d.ts +0 -26
- package/build/types/src/components/SidePanel/Templates/TemplatesCard/V2/index.d.ts +0 -4
- package/build/types/src/components/SidePanel/Templates/TemplatesCard/index.d.ts +0 -4
- package/build/types/src/components/SidePanel/Templates/customTemplateSection.d.ts +0 -29
- package/build/types/src/components/SidePanel/index.d.ts +0 -34
- package/build/types/src/components/TemplateBuilder/index.d.ts +0 -50
- package/build/types/src/components/TemplateTypes/index.d.ts +0 -11
- package/build/types/src/components/TopNavigation/ConfirmNavigateDialog/index.d.ts +0 -10
- package/build/types/src/components/TopNavigation/DuplicateTemplateModal.d.ts +0 -15
- package/build/types/src/components/TopNavigation/EditTemplateNameModel/index.d.ts +0 -21
- package/build/types/src/components/TopNavigation/SaveTemplateModel/index.d.ts +0 -13
- package/build/types/src/components/TopNavigation/index.d.ts +0 -18
- package/build/types/src/index.d.ts +0 -55
- package/build/types/src/redux/actions/action-types.d.ts +0 -33
- package/build/types/src/redux/actions/customQRCodeActions.d.ts +0 -37
- package/build/types/src/redux/actions/snackbarActions.d.ts +0 -5
- package/build/types/src/redux/actions/templateActions.d.ts +0 -98
- package/build/types/src/redux/reducers/customFieldReducer.d.ts +0 -8
- package/build/types/src/redux/reducers/customQRCodeReducer.d.ts +0 -14
- package/build/types/src/redux/reducers/index.d.ts +0 -15
- package/build/types/src/redux/reducers/snackbarReducer.d.ts +0 -16
- package/build/types/src/redux/reducers/templateReducer.d.ts +0 -68
- package/build/types/src/redux/store.d.ts +0 -11
- package/build/types/src/utils/api.d.ts +0 -5
- package/build/types/src/utils/constants.d.ts +0 -39
- package/build/types/src/utils/customStyles.d.ts +0 -24
- package/build/types/src/utils/fetchWrapper.d.ts +0 -8
- package/build/types/src/utils/helper.d.ts +0 -85
- package/build/types/src/utils/local-storage.d.ts +0 -4
- package/build/types/src/utils/message.d.ts +0 -155
- package/build/types/src/utils/products.d.ts +0 -23
- package/build/types/src/utils/template-builder.d.ts +0 -74
- package/build/types/src/utils/templateIdentifierArea/biFold.d.ts +0 -47
- package/build/types/src/utils/templateIdentifierArea/index.d.ts +0 -2
- package/build/types/src/utils/templateIdentifierArea/personal.d.ts +0 -47
- package/build/types/src/utils/templateIdentifierArea/postCards.d.ts +0 -50
- package/build/types/src/utils/templateIdentifierArea/professional.d.ts +0 -48
- package/build/types/src/utils/templateIdentifierArea/snapPack.d.ts +0 -47
- package/build/types/src/utils/templateIdentifierArea/triFold.d.ts +0 -47
- package/build/types/src/utils/templateRestrictedArea/biFold.d.ts +0 -78
- package/build/types/src/utils/templateRestrictedArea/nonWindowProfessional.d.ts +0 -76
- package/build/types/src/utils/templateRestrictedArea/personal.d.ts +0 -76
- package/build/types/src/utils/templateRestrictedArea/postCard.d.ts +0 -78
- package/build/types/src/utils/templateRestrictedArea/postCardJumbo.d.ts +0 -78
- package/build/types/src/utils/templateRestrictedArea/professional.d.ts +0 -78
- package/build/types/src/utils/templateRestrictedArea/realPenned.d.ts +0 -78
- package/build/types/src/utils/templateRestrictedArea/snapPack.d.ts +0 -79
- package/build/types/src/utils/templateRestrictedArea/triFold.d.ts +0 -78
- package/build/types/src/utils/templateSafetyBorders/biFold.d.ts +0 -2
- package/build/types/src/utils/templateSafetyBorders/index.d.ts +0 -2
- package/build/types/src/utils/templateSafetyBorders/personal.d.ts +0 -2
- package/build/types/src/utils/templateSafetyBorders/postCards.d.ts +0 -5
- package/build/types/src/utils/templateSafetyBorders/professional.d.ts +0 -3
- package/build/types/src/utils/templateSafetyBorders/snapPack.d.ts +0 -2
- package/build/types/src/utils/templateSafetyBorders/triFold.d.ts +0 -2
- package/build/types/src/utils/types.d.ts +0 -8
- package/build/types/version.d.ts +0 -1
|
@@ -1,20 +0,0 @@
|
|
|
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,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoreType } from 'polotno/model/store';
|
|
3
|
-
import './styles.scss';
|
|
4
|
-
interface CustomQRProps {
|
|
5
|
-
store: StoreType;
|
|
6
|
-
allowSenderFields: any;
|
|
7
|
-
allowPropertyFields: any;
|
|
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>;
|
|
14
|
-
}
|
|
15
|
-
declare const CustomQRCode: {
|
|
16
|
-
name: string;
|
|
17
|
-
Tab: (props: any) => React.JSX.Element;
|
|
18
|
-
Panel: (({ store, allowSenderFields, allowPropertyFields, excludedFields, currentTheme, onGetQRCodes, onDeleteQRCodes, onUploadQRCode, onEditQRCode, }: CustomQRProps) => React.JSX.Element) & {
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default CustomQRCode;
|
|
@@ -1,13 +0,0 @@
|
|
|
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,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoreType } from 'polotno/model/store';
|
|
3
|
-
import CustomUploadsV2 from './V2';
|
|
4
|
-
interface UploadPanelProps {
|
|
5
|
-
store: StoreType;
|
|
6
|
-
}
|
|
7
|
-
export declare const UploadPanel: (({ store }: UploadPanelProps) => React.JSX.Element) & {
|
|
8
|
-
displayName: string;
|
|
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
|
-
};
|
|
26
|
-
export default UploadPanel;
|
|
27
|
-
export { CustomUploadsV2 };
|
|
@@ -1,36 +0,0 @@
|
|
|
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;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TemplateCategory, TemplateRecord, TemplateType } from '../customTemplateSection';
|
|
3
|
-
type CustomTemplateSectionProps = {
|
|
4
|
-
product: any;
|
|
5
|
-
openGalleryModal: boolean;
|
|
6
|
-
selectedCategory: TemplateCategory | null;
|
|
7
|
-
templateCategories: TemplateCategory[];
|
|
8
|
-
currentTemplateType: TemplateType | undefined;
|
|
9
|
-
templateTypes: TemplateType[] | null | undefined;
|
|
10
|
-
designerQueryAmount?: string | number;
|
|
11
|
-
search: any;
|
|
12
|
-
searchApplied: boolean;
|
|
13
|
-
loader: boolean;
|
|
14
|
-
platformName: any;
|
|
15
|
-
myTemplates: TemplateRecord[];
|
|
16
|
-
teamTemplates: TemplateRecord[];
|
|
17
|
-
olcTemplates: TemplateRecord[];
|
|
18
|
-
pagination: any;
|
|
19
|
-
setSearch: any;
|
|
20
|
-
handleSearch: any;
|
|
21
|
-
removeSearchInput: any;
|
|
22
|
-
searchKeyDown: any;
|
|
23
|
-
currentTemplateTypeRef: any;
|
|
24
|
-
setCurrentTemplateType: any;
|
|
25
|
-
setSelectedCategory: any;
|
|
26
|
-
handleLoadTemplateModel: any;
|
|
27
|
-
handleTabChange: any;
|
|
28
|
-
handleDialogChange: any;
|
|
29
|
-
closeGalleryModal: any;
|
|
30
|
-
setOpenGalleryModal: any;
|
|
31
|
-
setHireDesignerModal: any;
|
|
32
|
-
};
|
|
33
|
-
declare const ModalGallery: (props: CustomTemplateSectionProps) => React.JSX.Element;
|
|
34
|
-
export default ModalGallery;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TemplateCategory, TemplateRecord, TemplateType } from '../customTemplateSection';
|
|
3
|
-
import './styles.scss';
|
|
4
|
-
type CustomTemplateSectionProps = {
|
|
5
|
-
selectedCategory: TemplateCategory | null;
|
|
6
|
-
templateCategories: TemplateCategory[];
|
|
7
|
-
currentTemplateType: TemplateType | undefined;
|
|
8
|
-
templateTypes: TemplateType[] | null | undefined;
|
|
9
|
-
search: any;
|
|
10
|
-
searchApplied: boolean;
|
|
11
|
-
loader: boolean;
|
|
12
|
-
platformName: any;
|
|
13
|
-
myTemplates: TemplateRecord[];
|
|
14
|
-
teamTemplates: TemplateRecord[];
|
|
15
|
-
olcTemplates: TemplateRecord[];
|
|
16
|
-
setSearch: any;
|
|
17
|
-
handleSearch: any;
|
|
18
|
-
removeSearchInput: any;
|
|
19
|
-
searchKeyDown: any;
|
|
20
|
-
setCurrentTemplateType: any;
|
|
21
|
-
setSelectedCategory: any;
|
|
22
|
-
handleLoadTemplateModel: any;
|
|
23
|
-
handleDialogChange: any;
|
|
24
|
-
};
|
|
25
|
-
declare const SideBarSelction: (props: CustomTemplateSectionProps) => React.JSX.Element;
|
|
26
|
-
export default SideBarSelction;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { TemplatesSection } from 'polotno/side-panel';
|
|
2
|
-
import './styles.scss';
|
|
3
|
-
type SideSection = typeof TemplatesSection;
|
|
4
|
-
export type Payload = {
|
|
5
|
-
tab: string;
|
|
6
|
-
page: number;
|
|
7
|
-
pageSize: number;
|
|
8
|
-
productId: string | null;
|
|
9
|
-
search?: string;
|
|
10
|
-
categoryIds?: string[];
|
|
11
|
-
};
|
|
12
|
-
export type TemplateType = {
|
|
13
|
-
id: string;
|
|
14
|
-
label: string;
|
|
15
|
-
value: string;
|
|
16
|
-
};
|
|
17
|
-
export type TemplateCategory = {
|
|
18
|
-
id: string;
|
|
19
|
-
title: string;
|
|
20
|
-
totalTemplates: number;
|
|
21
|
-
label?: string;
|
|
22
|
-
};
|
|
23
|
-
export type TemplateRecord = {
|
|
24
|
-
id: string;
|
|
25
|
-
thumbnailUrl: string;
|
|
26
|
-
title: string;
|
|
27
|
-
};
|
|
28
|
-
declare const CustomTemplateSection: SideSection;
|
|
29
|
-
export default CustomTemplateSection;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoreType } from 'polotno/model/store';
|
|
3
|
-
interface Props {
|
|
4
|
-
store: StoreType;
|
|
5
|
-
currentTemplateType: string;
|
|
6
|
-
currentProductId?: number;
|
|
7
|
-
platformName?: string | null;
|
|
8
|
-
templateGalleryModal?: boolean;
|
|
9
|
-
selectedSection?: string;
|
|
10
|
-
allowSenderFields?: boolean;
|
|
11
|
-
excludedFields?: string[] | null;
|
|
12
|
-
designerQueryAmount?: string | number;
|
|
13
|
-
allowPropertyFields?: boolean;
|
|
14
|
-
allowedAddOns?: any;
|
|
15
|
-
allowedTemplateSections?: any;
|
|
16
|
-
propertyOfferCost?: number;
|
|
17
|
-
customPropertyOfferCost?: number;
|
|
18
|
-
gsvCost?: number;
|
|
19
|
-
currentTheme?: string | null | undefined;
|
|
20
|
-
onGetOneTemplate?: (payload: any) => Promise<any>;
|
|
21
|
-
onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
|
|
22
|
-
onGetTemplates?: (payload: any) => Promise<any>;
|
|
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>;
|
|
31
|
-
selectedTemplateType?: string | null;
|
|
32
|
-
}
|
|
33
|
-
declare const SidePanel: React.FC<Props>;
|
|
34
|
-
export default SidePanel;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StoreType } from 'polotno/model/store';
|
|
3
|
-
import './styles.scss';
|
|
4
|
-
/**
|
|
5
|
-
* This code defines a React functional component called `TemplateBuilder` that is responsible for rendering a template builder interface.
|
|
6
|
-
* It includes various useEffect hooks to handle component lifecycle events and state updates.
|
|
7
|
-
* The component uses the `polotno` library to create a canvas workspace where users can design templates.
|
|
8
|
-
* It also includes a side panel with different sections for adding and customizing elements on the canvas.
|
|
9
|
-
*
|
|
10
|
-
* @param {Object} props - The component props.
|
|
11
|
-
* @param {Object} props.store - The store object passed as a prop to the `TemplateBuilder` component.
|
|
12
|
-
* @param {Object} props.styles - The styles contain CSS Properties passed as a prop to the `TemplateBuilder` component.
|
|
13
|
-
* @returns {JSX.Element} The rendered template builder interface.
|
|
14
|
-
*/
|
|
15
|
-
interface TemplateBuilderProps {
|
|
16
|
-
store: StoreType;
|
|
17
|
-
platformName?: string | null;
|
|
18
|
-
templateGalleryModal?: boolean;
|
|
19
|
-
createTemplateRoute?: string | null;
|
|
20
|
-
olcTemplate?: Record<string, any>;
|
|
21
|
-
designerTemplateQuery?: Record<string, any> | null;
|
|
22
|
-
allowSenderFields?: boolean;
|
|
23
|
-
allowPropertyFields?: boolean;
|
|
24
|
-
allowAdditionalPage?: boolean;
|
|
25
|
-
excludedFields?: string[] | null;
|
|
26
|
-
designerQueryAmount?: string | number;
|
|
27
|
-
allowedAddOns?: any;
|
|
28
|
-
allowedTemplateSections?: any;
|
|
29
|
-
propertyOfferCost?: number;
|
|
30
|
-
customPropertyOfferCost?: number;
|
|
31
|
-
gsvCost?: number;
|
|
32
|
-
selectedTemplateType?: string | null;
|
|
33
|
-
currentTheme?: string | null | undefined;
|
|
34
|
-
onReturnAndNavigate?: () => void;
|
|
35
|
-
onGetCustomFields?: () => Promise<any>;
|
|
36
|
-
onDuplicateTemplate?: (payload: any) => Promise<any>;
|
|
37
|
-
onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
|
|
38
|
-
onGetOneTemplate?: (payload: any) => Promise<any>;
|
|
39
|
-
onGetTemplates?: (payload: any) => Promise<any>;
|
|
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>;
|
|
48
|
-
}
|
|
49
|
-
declare const TemplateBuilder: React.FC<TemplateBuilderProps>;
|
|
50
|
-
export default TemplateBuilder;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./styles.scss";
|
|
3
|
-
interface ConfirmNavigateDialogProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
currentTheme?: string | null | undefined;
|
|
6
|
-
handleClose: () => void;
|
|
7
|
-
handleNavigateAction: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const ConfirmNavigateDialog: React.FC<ConfirmNavigateDialogProps>;
|
|
10
|
-
export default ConfirmNavigateDialog;
|
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './styles.scss';
|
|
3
|
-
/**
|
|
4
|
-
* EditTemplateNameModel Component
|
|
5
|
-
* A modal for duplicating a template.
|
|
6
|
-
*
|
|
7
|
-
* @param {boolean} open - Boolean indicating whether the modal is open.
|
|
8
|
-
* @param {Function} handleClose - Function to handle the closing of the modal.
|
|
9
|
-
* @returns {JSX.Element} The duplicate template modal component.
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
interface EditTemplateNameModelProps {
|
|
13
|
-
open: boolean;
|
|
14
|
-
title: string;
|
|
15
|
-
setTemplateTitle: any;
|
|
16
|
-
handleEditName: any;
|
|
17
|
-
templateTitle: string;
|
|
18
|
-
handleClose: () => void;
|
|
19
|
-
}
|
|
20
|
-
declare const EditTemplateNameModel: React.FC<EditTemplateNameModelProps>;
|
|
21
|
-
export default EditTemplateNameModel;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './styles.scss';
|
|
3
|
-
interface SaveTemplateModelProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
handleClose: () => void;
|
|
7
|
-
handleSave: () => void;
|
|
8
|
-
store: any;
|
|
9
|
-
allowedAddOns?: any;
|
|
10
|
-
currentTheme?: string | null | undefined;
|
|
11
|
-
}
|
|
12
|
-
declare const SaveTemplateModel: React.FC<SaveTemplateModelProps>;
|
|
13
|
-
export default SaveTemplateModel;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './styles.scss';
|
|
3
|
-
interface TopNavigationProps {
|
|
4
|
-
store: any;
|
|
5
|
-
createTemplateRoute?: string | null;
|
|
6
|
-
isStoreUpdated: boolean;
|
|
7
|
-
setIsDuplication: any;
|
|
8
|
-
olcTemplate?: Record<string, any>;
|
|
9
|
-
designerTemplateQuery?: Record<string, any> | null;
|
|
10
|
-
allowedAddOns?: any;
|
|
11
|
-
allowAdditionalPage?: boolean;
|
|
12
|
-
currentTheme?: string | null | undefined;
|
|
13
|
-
onDuplicateTemplate?: (payload: any) => Promise<any>;
|
|
14
|
-
onReturnAndNavigate?: () => void;
|
|
15
|
-
onSubmit?: (payload: any) => Promise<any>;
|
|
16
|
-
}
|
|
17
|
-
declare const TopNavigation: React.FC<TopNavigationProps>;
|
|
18
|
-
export default TopNavigation;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import '@fontsource/inter/200.css';
|
|
2
|
-
import '@fontsource/inter/300.css';
|
|
3
|
-
import '@fontsource/inter/400.css';
|
|
4
|
-
import '@fontsource/inter/500.css';
|
|
5
|
-
import '@fontsource/inter/600.css';
|
|
6
|
-
import '@fontsource/inter/700.css';
|
|
7
|
-
import '@fontsource/inter/800.css';
|
|
8
|
-
import { CustomCSSProperties } from './utils/customStyles';
|
|
9
|
-
import { AddOnTypes, TemplateTypes } from './utils/types';
|
|
10
|
-
interface TemplateBuilderProps {
|
|
11
|
-
container: HTMLElement | null;
|
|
12
|
-
secretKey: string;
|
|
13
|
-
publicApiKey: string;
|
|
14
|
-
platformName?: string | null;
|
|
15
|
-
templateGalleryModal?: boolean;
|
|
16
|
-
createTemplateRoute?: string | null;
|
|
17
|
-
templateBuilderRoute?: string | null;
|
|
18
|
-
olcTemplate?: Record<string, any>;
|
|
19
|
-
designerTemplateQuery?: Record<string, any> | null;
|
|
20
|
-
sandbox?: boolean;
|
|
21
|
-
allowSenderFields?: boolean;
|
|
22
|
-
allowPropertyFields?: boolean;
|
|
23
|
-
excludedFields?: string[] | null;
|
|
24
|
-
designerQueryAmount?: string | number;
|
|
25
|
-
allowedAddOns?: AddOnTypes[] | string[] | null | undefined;
|
|
26
|
-
allowedTemplateSections?: TemplateTypes[] | string[] | null | undefined;
|
|
27
|
-
env?: string;
|
|
28
|
-
restrictedProducts?: number[] | null | undefined;
|
|
29
|
-
disallowedProducts?: string[] | null | undefined;
|
|
30
|
-
propertyOfferCost?: number;
|
|
31
|
-
customPropertyOfferCost?: number;
|
|
32
|
-
gsvCost?: number;
|
|
33
|
-
allowAdditionalPage?: boolean;
|
|
34
|
-
showTemplateTypesPage?: boolean;
|
|
35
|
-
currentTheme?: string | null | undefined;
|
|
36
|
-
onReturnAndNavigate?: () => void;
|
|
37
|
-
onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
|
|
38
|
-
onGetOneTemplate?: (payload: any) => Promise<any>;
|
|
39
|
-
onGetTemplates?: (payload: any) => Promise<any>;
|
|
40
|
-
onGetCustomFields?: () => Promise<any>;
|
|
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>;
|
|
49
|
-
onSubmit?: (payload: any) => Promise<any>;
|
|
50
|
-
styles?: {
|
|
51
|
-
root?: CustomCSSProperties;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
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;
|
|
55
|
-
export default TemplateBuilder;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const SET_SUCCESS_SNACKBAR = "SET_SUCCESS_SNACKBAR";
|
|
2
|
-
export declare const SET_ERROR_SNACKBAR = "SET_ERROR_SNACKBAR";
|
|
3
|
-
export declare const CLEAR_SNACKBAR = "CLEAR_SNACKBAR";
|
|
4
|
-
export declare const GET_ONE_TEMPLATE: string;
|
|
5
|
-
export declare const TEMPLATE_LOADING: string;
|
|
6
|
-
export declare const TEMPLATE_PAGINATION_CHANGE: string;
|
|
7
|
-
export declare const TEMPLATE_SEARCH: string;
|
|
8
|
-
export declare const SET_UPLOADED_IMAGES: string;
|
|
9
|
-
export declare const SET_ROS_OFFER_PERCENTAGE = "SET_ROS_OFFER_PERCENTAGE";
|
|
10
|
-
export declare const CLEAR_ALL_TEMPLATE: string;
|
|
11
|
-
export declare const CLEAR_TEMPLATE_FIELDS: string;
|
|
12
|
-
export declare const LOAD_DATA_FROM_LOCAL_STORAGE: string;
|
|
13
|
-
export declare const CLEAR_TEMPLATE: string;
|
|
14
|
-
export declare const SELECT_PRODUCT: string;
|
|
15
|
-
export declare const SELECT_POSTCARD: string;
|
|
16
|
-
export declare const SET_PRODUCTS: string;
|
|
17
|
-
export declare const SET_CUSTOM_FIELDS = "SET_CUSTOM_FIELDS";
|
|
18
|
-
export declare const SET_CUSTOM_FIELDS_V2 = "SET_CUSTOM_FIELDS_V2";
|
|
19
|
-
export declare const SET_PLATFORM_FIELDS = "SET_PLATFORM_FIELDS";
|
|
20
|
-
export declare const SET_HIRE_DESIGNER_FORM_FIELDS = "SET_HIRE_DESIGNER_FORM_FIELDS";
|
|
21
|
-
export declare const CLEAR_HIRE_DESIGNER_FORM_FIELDS = "CLEAR_HIRE_DESIGNER_FORM_FIELDS";
|
|
22
|
-
export declare const SET_QR_URL = "SET_QR_URL";
|
|
23
|
-
export declare const SET_UTM_SOURCE = "SET_UTM_SOURCE";
|
|
24
|
-
export declare const SET_UTM_MEDIUM = "SET_UTM_MEDIUM";
|
|
25
|
-
export declare const SET_UTM_CAMPAIGN_NAME = "SET_UTM_CAMPAIGN_NAME";
|
|
26
|
-
export declare const SET_CUSTOM_UTMS = "SET_CUSTOM_UTMS";
|
|
27
|
-
export declare const CLEAR_QR_FIELDS = "CLEAR_QR_FIELDS";
|
|
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";
|
|
31
|
-
export declare const SET_BLOCK_COLOR = "SET_BLOCK_COLOR";
|
|
32
|
-
export declare const SET_PAGE_COUNT = "SET_PAGE_COUNT";
|
|
33
|
-
export declare const CLEAR_REDUX: string;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare const setIsQR: (isQR: boolean) => {
|
|
2
|
-
type: string;
|
|
3
|
-
payload: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare const setQrUrl: (url: string) => {
|
|
6
|
-
type: string;
|
|
7
|
-
payload: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const setUtmSource: (utmSource: string) => {
|
|
10
|
-
type: string;
|
|
11
|
-
payload: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const setUtmMedium: (utmMedium: string) => {
|
|
14
|
-
type: string;
|
|
15
|
-
payload: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const setUtmCampaignName: (utmCampaignName: string) => {
|
|
18
|
-
type: string;
|
|
19
|
-
payload: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const setCustomUtms: (customUtms: Record<string, any>) => {
|
|
22
|
-
type: string;
|
|
23
|
-
payload: Record<string, any>;
|
|
24
|
-
};
|
|
25
|
-
export declare const clearQrFields: () => {
|
|
26
|
-
type: string;
|
|
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
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AppDispatch } from "../store";
|
|
2
|
-
declare const success: (message: string, heading?: string) => (dispatch: AppDispatch) => void;
|
|
3
|
-
declare const failure: (message: string, heading?: string) => (dispatch: AppDispatch) => void;
|
|
4
|
-
declare const closeSnackbar: () => (dispatch: AppDispatch) => void;
|
|
5
|
-
export { success, failure, closeSnackbar };
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { AppDispatch } from '../store';
|
|
2
|
-
/**
|
|
3
|
-
* Uploads a template using the provided template form data.
|
|
4
|
-
*
|
|
5
|
-
* @param {FormData} templateFormData - The form data containing the template files to upload.
|
|
6
|
-
* @returns {Promise<any>} - A promise that resolves with the response from the server.
|
|
7
|
-
* @throws {Error} - If an error occurs during the upload process.
|
|
8
|
-
*/
|
|
9
|
-
declare const uploadTemplate: (templateFormData: FormData) => Promise<unknown>;
|
|
10
|
-
declare const getAllTemplatesByTab: (payload: any) => Promise<any>;
|
|
11
|
-
/**
|
|
12
|
-
* Loads form data to the store.
|
|
13
|
-
*
|
|
14
|
-
* @param {string} data - The form data in JSON format.
|
|
15
|
-
* @returns {void} - Dispatches an action to the Redux store.
|
|
16
|
-
*/
|
|
17
|
-
declare const loadFormDataToStore: (data: string) => (dispatch: AppDispatch) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Downloads the proof for the provided data.
|
|
20
|
-
*
|
|
21
|
-
* @param {object} data - The data for which the proof is requested.
|
|
22
|
-
* @returns {Promise<any>} - The response object from the POST request.
|
|
23
|
-
* @throws {object} - The error response if there is an error.
|
|
24
|
-
*/
|
|
25
|
-
declare const downloadProof: (data: object) => Promise<unknown>;
|
|
26
|
-
/**
|
|
27
|
-
* Downloads the envelope for the provided data.
|
|
28
|
-
*
|
|
29
|
-
* @param {object} data - The data for which the proof is requested.
|
|
30
|
-
* @returns {Promise<any>} - The response object from the POST request.
|
|
31
|
-
* @throws {object} - The error response if there is an error.
|
|
32
|
-
*/
|
|
33
|
-
declare const envelopeProof: (data: object) => Promise<unknown>;
|
|
34
|
-
/**
|
|
35
|
-
* Uploads a file.
|
|
36
|
-
*
|
|
37
|
-
* @param {File} file - The file to upload.
|
|
38
|
-
* @returns {Promise<string>} - The file path of the uploaded file.
|
|
39
|
-
* @throws {object} - The error response if there is an error.
|
|
40
|
-
*/
|
|
41
|
-
declare const uploadFile: (file: File) => Promise<any>;
|
|
42
|
-
/**
|
|
43
|
-
* Clears template fields.
|
|
44
|
-
*
|
|
45
|
-
* @returns {Function} - The thunk function.
|
|
46
|
-
*/
|
|
47
|
-
declare const clearTemplateFields: () => (dispatch: AppDispatch) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Selects a product.
|
|
50
|
-
*
|
|
51
|
-
* @param {any} product - The selected product.
|
|
52
|
-
* @param {string} [productType=''] - The type of the selected product.
|
|
53
|
-
* @returns {Function} - The thunk function.
|
|
54
|
-
*/
|
|
55
|
-
declare const selectProduct: (product: any, productType?: string) => (dispatch: AppDispatch) => void;
|
|
56
|
-
/**
|
|
57
|
-
* Selects a postcard.
|
|
58
|
-
*
|
|
59
|
-
* @param {any} product - The selected product.
|
|
60
|
-
* @param {string} productType - The type of the selected product.
|
|
61
|
-
* @returns {Function} - The thunk function.
|
|
62
|
-
*/
|
|
63
|
-
declare const selectPostCard: (product: any, productType: string) => (dispatch: AppDispatch) => void;
|
|
64
|
-
/**
|
|
65
|
-
* Clears all templates.
|
|
66
|
-
*
|
|
67
|
-
* @returns {Function} - The thunk function.
|
|
68
|
-
*/
|
|
69
|
-
declare const clearAllTemplates: () => (dispatch: AppDispatch) => void;
|
|
70
|
-
/**
|
|
71
|
-
* Searches and advances change.
|
|
72
|
-
*
|
|
73
|
-
* @param {string} name - The name of the field.
|
|
74
|
-
* @param {any} value - The value of the field.
|
|
75
|
-
* @returns {Function} - The thunk function.
|
|
76
|
-
*/
|
|
77
|
-
declare const searchAndAdvanceChange: (name: string, value: any) => (dispatch: AppDispatch) => void;
|
|
78
|
-
/**
|
|
79
|
-
* Retrieves all template categories from the server using an HTTP GET request.
|
|
80
|
-
*
|
|
81
|
-
* @returns {Promise<any>} - A promise that resolves with the response from the server.
|
|
82
|
-
* @throws {object} - The error response if there is an error.
|
|
83
|
-
*/
|
|
84
|
-
declare const getAllTemplateCategories: () => Promise<any>;
|
|
85
|
-
/**
|
|
86
|
-
* Sets the page count for the current template.
|
|
87
|
-
*
|
|
88
|
-
* @param {number} count - The number of pages.
|
|
89
|
-
* @returns {Function} - The thunk function.
|
|
90
|
-
*/
|
|
91
|
-
declare const setPageCount: (count: number) => (dispatch: AppDispatch) => void;
|
|
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 };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface CustomFieldState {
|
|
2
|
-
customFields: any[];
|
|
3
|
-
customFieldsV2: any[];
|
|
4
|
-
platformFields: any[];
|
|
5
|
-
defaultDynamicFields: any[];
|
|
6
|
-
}
|
|
7
|
-
declare const customFieldReducer: (state: CustomFieldState | undefined, action: any) => CustomFieldState;
|
|
8
|
-
export { customFieldReducer };
|