@openlettermarketing/olc-react-sdk 2.1.6-beta.2 → 2.1.6-beta.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 +77 -77
- package/build/index.js.map +1 -1
- package/build/types/src/assets/images/modal-icons/warning.d.ts +3 -0
- package/build/types/src/components/GenericUIBlocks/Dialog/V2/index.d.ts +1 -0
- package/build/types/src/components/TopNavigation/FieldValidationModal/index.d.ts +12 -0
- package/build/types/src/utils/message.d.ts +7 -0
- package/build/types/src/utils/template-builder.d.ts +26 -0
- package/build/types/src/utils/templateIdentifierArea/triFold.d.ts +0 -2
- package/build/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/assets/images/modal-icons/warning.tsx +15 -0
- package/src/components/GenericUIBlocks/Dialog/V2/index.tsx +4 -2
- package/src/components/GenericUIBlocks/Dialog/V2/styles.scss +4 -0
- package/src/components/TopNavigation/FieldValidationModal/index.tsx +82 -0
- package/src/components/TopNavigation/FieldValidationModal/styles.scss +39 -0
- package/src/components/TopNavigation/index.tsx +66 -0
- package/src/utils/message.ts +8 -1
- package/src/utils/products.ts +1 -1
- package/src/utils/template-builder.ts +105 -3
- package/src/utils/templateIdentifierArea/triFold.ts +8 -26
- package/src/utils/templateRestrictedArea/triFold.ts +6 -8
- package/src/utils/templateSafetyBorders/triFold.ts +20 -27
- package/version.js +1 -1
|
@@ -3,13 +3,6 @@ import { Element, Store } from "./types"
|
|
|
3
3
|
|
|
4
4
|
export const addSafetyBordersToTriFold = (store: Store): void => {
|
|
5
5
|
const randomizedId = Math.random().toString(36).substring(2, 7);
|
|
6
|
-
const borderWidth = store.width + 2;
|
|
7
|
-
const borderHeight = store.height - 52;
|
|
8
|
-
const foldSectionHeight = store.height / 3;
|
|
9
|
-
const foldLineOneY = foldSectionHeight;
|
|
10
|
-
const foldLineTwoY = foldSectionHeight * 2 - 5;
|
|
11
|
-
const borderBottomY = store.height - 28.4;
|
|
12
|
-
const rightBorderX = store.width - 29;
|
|
13
6
|
|
|
14
7
|
const safetyBordersTextFirst = createSafetyTextElement(
|
|
15
8
|
`safety-text-1-${randomizedId}`,
|
|
@@ -22,8 +15,8 @@ export const addSafetyBordersToTriFold = (store: Store): void => {
|
|
|
22
15
|
const safetyLineTextFirst = createSafetyTextElement(
|
|
23
16
|
`safety-line-1-${randomizedId}`,
|
|
24
17
|
-2,
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
366,
|
|
19
|
+
866,
|
|
27
20
|
"Fold Line",
|
|
28
21
|
0
|
|
29
22
|
);
|
|
@@ -31,8 +24,8 @@ export const addSafetyBordersToTriFold = (store: Store): void => {
|
|
|
31
24
|
const safetySecondLineTextFirst = createSafetyTextElement(
|
|
32
25
|
`safety-line-2-${randomizedId}`,
|
|
33
26
|
-2,
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
744,
|
|
28
|
+
866,
|
|
36
29
|
"Fold Line",
|
|
37
30
|
0
|
|
38
31
|
);
|
|
@@ -47,12 +40,12 @@ export const addSafetyBordersToTriFold = (store: Store): void => {
|
|
|
47
40
|
alwaysOnTop: true,
|
|
48
41
|
showInExport: false,
|
|
49
42
|
children: [
|
|
50
|
-
createBorder(`top-1-${randomizedId}`, 26, 23.5,
|
|
51
|
-
createBorder(`bottom-1-${randomizedId}`, 26,
|
|
52
|
-
createBorder(`left-1-${randomizedId}`, 24.16,
|
|
53
|
-
createBorder(`right-1-${randomizedId}`,
|
|
54
|
-
createBorder(`fold-line-1-${randomizedId}`,
|
|
55
|
-
createBorder(`fold-line-2-${randomizedId}`,
|
|
43
|
+
createBorder(`top-1-${randomizedId}`, 26, 23.5, 811, 4, 0),
|
|
44
|
+
createBorder(`bottom-1-${randomizedId}`, 26, 1123.6, 811, 4, 0),
|
|
45
|
+
createBorder(`left-1-${randomizedId}`, 24.16, 1125, 1100, 4, -90),
|
|
46
|
+
createBorder(`right-1-${randomizedId}`, 835, 1125, 1100, 4, -90),
|
|
47
|
+
createBorder(`fold-line-1-${randomizedId}`, 866, 384, 866, 2, 180, 'rgba(208,2,27,1)'),
|
|
48
|
+
createBorder(`fold-line-2-${randomizedId}`, 866, 763, 866, 2, 180, 'rgba(208,2,27,1)'),
|
|
56
49
|
],
|
|
57
50
|
};
|
|
58
51
|
|
|
@@ -67,8 +60,8 @@ export const addSafetyBordersToTriFold = (store: Store): void => {
|
|
|
67
60
|
const safetyLineTextSecond = createSafetyTextElement(
|
|
68
61
|
`safety-line-2-1-${randomizedId}`,
|
|
69
62
|
-2,
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
366,
|
|
64
|
+
866,
|
|
72
65
|
"Fold Line",
|
|
73
66
|
0
|
|
74
67
|
);
|
|
@@ -76,8 +69,8 @@ export const addSafetyBordersToTriFold = (store: Store): void => {
|
|
|
76
69
|
const safetySecondLineTextSecond = createSafetyTextElement(
|
|
77
70
|
`safety-line-2-2-${randomizedId}`,
|
|
78
71
|
-2,
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
744,
|
|
73
|
+
866,
|
|
81
74
|
"Fold Line",
|
|
82
75
|
0
|
|
83
76
|
);
|
|
@@ -93,12 +86,12 @@ export const addSafetyBordersToTriFold = (store: Store): void => {
|
|
|
93
86
|
alwaysOnTop: true,
|
|
94
87
|
showInExport: false,
|
|
95
88
|
children: [
|
|
96
|
-
createBorder(`top-2-${randomizedId}`, 26, 23.5,
|
|
97
|
-
createBorder(`bottom-2-${randomizedId}`, 26,
|
|
98
|
-
createBorder(`left-2-${randomizedId}`, 24.16,
|
|
99
|
-
createBorder(`right-2-${randomizedId}`,
|
|
100
|
-
createBorder(`fold-line-2-1-${randomizedId}`,
|
|
101
|
-
createBorder(`fold-line-2-2-${randomizedId}`,
|
|
89
|
+
createBorder(`top-2-${randomizedId}`, 26, 23.5, 811, 4, 0),
|
|
90
|
+
createBorder(`bottom-2-${randomizedId}`, 26, 1123.6, 811, 4, 0),
|
|
91
|
+
createBorder(`left-2-${randomizedId}`, 24.16, 1125, 1100, 4, -90),
|
|
92
|
+
createBorder(`right-2-${randomizedId}`, 835, 1125, 1100, 4, -90),
|
|
93
|
+
createBorder(`fold-line-2-1-${randomizedId}`, 866, 384, 866, 2, 180, 'rgba(208,2,27,1)'),
|
|
94
|
+
createBorder(`fold-line-2-2-${randomizedId}`, 866, 763, 866, 2, 180, 'rgba(208,2,27,1)'),
|
|
102
95
|
],
|
|
103
96
|
};
|
|
104
97
|
|
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '2.1.6-beta.
|
|
1
|
+
export const SDK_VERSION = '2.1.6-beta.3';
|