@openlettermarketing/olc-react-sdk 1.7.1 → 1.7.3
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 +18 -18
- package/build/index.js.map +1 -1
- package/build/types/utils/constants.d.ts +1 -0
- package/build/types/utils/helper.d.ts +1 -1
- package/build/types/utils/template-builder.d.ts +0 -1
- package/package.json +1 -1
- package/build/types/assets/images/templates/snap-pack.d.ts +0 -6
- package/build/types/utils/templateIdentifierArea/snapPack.d.ts +0 -47
- package/build/types/utils/templateRestrictedArea/snapPack.d.ts +0 -79
- package/build/types/utils/templateSafetyBorders/snapPack.d.ts +0 -2
|
@@ -17,4 +17,5 @@ export declare const defaultTemplateTypes: TemplateTypes[];
|
|
|
17
17
|
export declare const sortOrderForTemplates: string[];
|
|
18
18
|
export declare const EMAIL_REGEX: RegExp;
|
|
19
19
|
export declare const VIDEO_URL_REGEX: RegExp;
|
|
20
|
+
export declare const DISALLOWED_DOMAINS: string[];
|
|
20
21
|
export {};
|
|
@@ -29,7 +29,7 @@ export declare const createBorder: (id: string, x: number, y: number, width: num
|
|
|
29
29
|
draggable: boolean;
|
|
30
30
|
resizable: boolean;
|
|
31
31
|
};
|
|
32
|
-
export declare const createSafetyTextElement: (id: string, x: number, y: number, width: number, text: string, rotation?: number
|
|
32
|
+
export declare const createSafetyTextElement: (id: string, x: number, y: number, width: number, text: string, rotation?: number) => {
|
|
33
33
|
id: string;
|
|
34
34
|
type: string;
|
|
35
35
|
name: string;
|
|
@@ -19,7 +19,6 @@ export interface Product {
|
|
|
19
19
|
export declare const drawRestrictedAreaOnPage: (store: any, product: Product, envelopeType: string) => void;
|
|
20
20
|
export declare const extractFontFamilies: (jsonData: any[]) => string[];
|
|
21
21
|
export declare const removeBracketsFromRPL: (jsonData: any[]) => any;
|
|
22
|
-
export declare const changeColorOfBoxesForSnapPack: (jsonData: any[]) => any;
|
|
23
22
|
export declare const validateGSV: (pages: any) => boolean;
|
|
24
23
|
export declare const validateEmoji: (pages: any) => boolean;
|
|
25
24
|
export declare const isValidQR: (pages: any) => boolean;
|
package/package.json
CHANGED
|
@@ -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 addIdentifierAreaToSnapPackMailer: (store: Store) => void;
|
|
47
|
-
export {};
|
|
@@ -1,79 +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
|
-
blurEnabled?: boolean;
|
|
18
|
-
blurRadius?: number;
|
|
19
|
-
brightnessEnabled?: boolean;
|
|
20
|
-
brightness?: number;
|
|
21
|
-
sepiaEnabled?: boolean;
|
|
22
|
-
grayscaleEnabled?: boolean;
|
|
23
|
-
shadowEnabled?: boolean;
|
|
24
|
-
shadowBlur?: number;
|
|
25
|
-
shadowOffsetX?: number;
|
|
26
|
-
shadowOffsetY?: number;
|
|
27
|
-
shadowColor?: string;
|
|
28
|
-
shadowOpacity?: number;
|
|
29
|
-
draggable?: boolean;
|
|
30
|
-
resizable?: boolean;
|
|
31
|
-
contentEditable: boolean;
|
|
32
|
-
styleEditable: boolean;
|
|
33
|
-
subType?: string;
|
|
34
|
-
fill?: string;
|
|
35
|
-
dash?: any[];
|
|
36
|
-
custom?: any;
|
|
37
|
-
strokeWidth?: number;
|
|
38
|
-
stroke?: string;
|
|
39
|
-
cornerRadius?: number;
|
|
40
|
-
text?: string;
|
|
41
|
-
placeholder?: string;
|
|
42
|
-
fontSize?: number;
|
|
43
|
-
fontFamily?: string;
|
|
44
|
-
fontStyle?: string;
|
|
45
|
-
fontWeight?: string;
|
|
46
|
-
textDecoration?: string;
|
|
47
|
-
align?: string;
|
|
48
|
-
verticalAlign?: string;
|
|
49
|
-
lineHeight?: number;
|
|
50
|
-
letterSpacing?: number;
|
|
51
|
-
backgroundEnabled?: boolean;
|
|
52
|
-
backgroundColor?: string;
|
|
53
|
-
backgroundOpacity?: number;
|
|
54
|
-
backgroundCornerRadius?: number;
|
|
55
|
-
backgroundPadding?: number;
|
|
56
|
-
src?: string;
|
|
57
|
-
cropX?: number;
|
|
58
|
-
cropY?: number;
|
|
59
|
-
cropWidth?: number;
|
|
60
|
-
cropHeight?: number;
|
|
61
|
-
flipX?: boolean;
|
|
62
|
-
flipY?: boolean;
|
|
63
|
-
clipSrc?: string;
|
|
64
|
-
borderSize?: number;
|
|
65
|
-
keepRatio?: boolean;
|
|
66
|
-
}
|
|
67
|
-
interface Page {
|
|
68
|
-
addElement: (element: Element) => void;
|
|
69
|
-
}
|
|
70
|
-
interface Store {
|
|
71
|
-
width: number;
|
|
72
|
-
height: number;
|
|
73
|
-
pages: Page[];
|
|
74
|
-
history: {
|
|
75
|
-
clear: () => void;
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
export declare const addRestrictedAreaToSnapPackMailer: (store: Store, barcodeSrc: string) => void;
|
|
79
|
-
export {};
|