@onylab/common-api 0.1.234 → 1.1.0
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/dist/common-api.d.ts +9 -5
- package/dist/common-api.node.min.js +1 -1
- package/dist/common-api.node.min.js.map +1 -1
- package/dist/data/email/element/html/fullimg.template +6 -6
- package/dist/data/email/element/html/img.template +8 -8
- package/dist/data/email/element/html/index.template +11 -11
- package/package.json +53 -57
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<tr class="Section Image">
|
|
2
2
|
<td class="Image-topLeft Target"
|
|
3
3
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
4
|
-
<img alt="" height="12" width="64" src="https://
|
|
4
|
+
<img alt="" height="12" width="64" src="https://cdn.onylab.com/image/email/ui/image--topleft.png"
|
|
5
5
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
6
6
|
<td class="Image-topMiddle Target"
|
|
7
7
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
8
|
-
<img alt="" height="12" width="472" src="https://
|
|
8
|
+
<img alt="" height="12" width="472" src="https://cdn.onylab.com/image/email/ui/image--topmiddle.png"
|
|
9
9
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
10
10
|
<td class="Image-topRight Target"
|
|
11
11
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
12
12
|
<img alt=""
|
|
13
|
-
height="12" width="64" src="https://
|
|
13
|
+
height="12" width="64" src="https://cdn.onylab.com/image/email/ui/image--topright.png"
|
|
14
14
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
15
15
|
</tr>
|
|
16
16
|
<tr class="Section Image">
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
<tr class="Section Image">
|
|
22
22
|
<td class="Image-bottomLeft Target"
|
|
23
23
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
24
|
-
<img alt="" height="40" width="64" src="https://
|
|
24
|
+
<img alt="" height="40" width="64" src="https://cdn.onylab.com/image/email/ui/image--bottomleft.png"
|
|
25
25
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
26
26
|
<td class="Image-bottomMiddle Target"
|
|
27
27
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
28
|
-
<img alt="" height="40" width="472" src="https://
|
|
28
|
+
<img alt="" height="40" width="472" src="https://cdn.onylab.com/image/email/ui/image--bottommiddle.png"
|
|
29
29
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
30
30
|
<td class="Image-bottomRight Target"
|
|
31
31
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
32
32
|
<img alt=""
|
|
33
|
-
height="40" width="64" src="https://
|
|
33
|
+
height="40" width="64" src="https://cdn.onylab.com/image/email/ui/image--bottomright.png"
|
|
34
34
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
35
35
|
</tr>
|
|
36
36
|
<tr>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<tr class="Section Image">
|
|
2
2
|
<td class="Image-topLeft Target"
|
|
3
3
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
4
|
-
<img alt="" height="12" width="64" src="https://
|
|
4
|
+
<img alt="" height="12" width="64" src="https://cdn.onylab.com/image/email/ui/image--topleft.png"
|
|
5
5
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
6
6
|
<td class="Image-topMiddle Target"
|
|
7
7
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
8
|
-
<img alt="" height="12" width="472" src="https://
|
|
8
|
+
<img alt="" height="12" width="472" src="https://cdn.onylab.com/image/email/ui/image--topmiddle.png"
|
|
9
9
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
10
10
|
<td class="Image-topRight Target"
|
|
11
11
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
12
12
|
<img alt=""
|
|
13
|
-
height="12" width="64" src="https://
|
|
13
|
+
height="12" width="64" src="https://cdn.onylab.com/image/email/ui/image--topright.png"
|
|
14
14
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
15
15
|
</tr>
|
|
16
16
|
<tr class="Section Image">
|
|
17
17
|
<td class="Image-left Target"
|
|
18
18
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
19
|
-
<img alt="" height="264" width="64" src="https://
|
|
19
|
+
<img alt="" height="264" width="64" src="https://cdn.onylab.com/image/email/ui/image--left.png"
|
|
20
20
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
21
21
|
<td class="Image-content"
|
|
22
22
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#434770;text-align:center;">
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
<td class="Image-right Target"
|
|
26
26
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
27
27
|
<img
|
|
28
|
-
alt="" height="264" width="64" src="https://
|
|
28
|
+
alt="" height="264" width="64" src="https://cdn.onylab.com/image/email/ui/image--right.png"
|
|
29
29
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
30
30
|
</tr>
|
|
31
31
|
<tr class="Section Image">
|
|
32
32
|
<td class="Image-bottomLeft Target"
|
|
33
33
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
34
|
-
<img alt="" height="40" width="64" src="https://
|
|
34
|
+
<img alt="" height="40" width="64" src="https://cdn.onylab.com/image/email/ui/image--bottomleft.png"
|
|
35
35
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
36
36
|
<td class="Image-bottomMiddle Target"
|
|
37
37
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
38
|
-
<img alt="" height="40" width="472" src="https://
|
|
38
|
+
<img alt="" height="40" width="472" src="https://cdn.onylab.com/image/email/ui/image--bottommiddle.png"
|
|
39
39
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
40
40
|
<td class="Image-bottomRight Target"
|
|
41
41
|
style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
|
|
42
42
|
<img alt=""
|
|
43
|
-
height="40" width="64" src="https://
|
|
43
|
+
height="40" width="64" src="https://cdn.onylab.com/image/email/ui/image--bottomright.png"
|
|
44
44
|
style="display:block;border-width:0;line-height:100%;"/></td>
|
|
45
45
|
</tr>
|
|
46
46
|
<tr>
|
|
@@ -230,36 +230,36 @@
|
|
|
230
230
|
width: 20px !important;
|
|
231
231
|
}
|
|
232
232
|
.Image-bottomLeft {
|
|
233
|
-
background-image: url("https://
|
|
233
|
+
background-image: url("https://cdn.onylab.com/image/email/ui/image--bottomleft--mobile.png") !important;
|
|
234
234
|
}
|
|
235
235
|
.Image-bottomRight {
|
|
236
|
-
background-image: url("https://
|
|
236
|
+
background-image: url("https://cdn.onylab.com/image/email/ui/image--bottomright--mobile.png") !important;
|
|
237
237
|
}
|
|
238
238
|
.Image-topLeft {
|
|
239
|
-
background-image: url("https://
|
|
239
|
+
background-image: url("https://cdn.onylab.com/image/email/ui/image--topleft--mobile.png") !important;
|
|
240
240
|
}
|
|
241
241
|
.Image-topRight {
|
|
242
|
-
background-image: url("https://
|
|
242
|
+
background-image: url("https://cdn.onylab.com/image/email/ui/image--topright--mobile.png") !important;
|
|
243
243
|
}
|
|
244
244
|
.Image-bottomMiddle, .Image-bottomMiddle::before, .Image-topMiddle, .Image-topMiddle::before {
|
|
245
245
|
height: 24px !important;
|
|
246
246
|
width: 100% !important;
|
|
247
247
|
}
|
|
248
248
|
.Image-bottomMiddle {
|
|
249
|
-
background-image: url("https://
|
|
249
|
+
background-image: url("https://cdn.onylab.com/image/email/ui/image--bottommiddle--mobile.png") !important;
|
|
250
250
|
}
|
|
251
251
|
.Image-topMiddle {
|
|
252
|
-
background-image: url("https://
|
|
252
|
+
background-image: url("https://cdn.onylab.com/image/email/ui/image--topmiddle--mobile.png") !important;
|
|
253
253
|
}
|
|
254
254
|
.Image-left, .Image-left::before, .Image-right, .Image-right::before {
|
|
255
255
|
height: auto !important;
|
|
256
256
|
width: 20px !important;
|
|
257
257
|
}
|
|
258
258
|
.Image-left {
|
|
259
|
-
background-image: url("https://
|
|
259
|
+
background-image: url("https://cdn.onylab.com/image/email/ui/image--left--mobile.png") !important;
|
|
260
260
|
}
|
|
261
261
|
.Image-right {
|
|
262
|
-
background-image: url("https://
|
|
262
|
+
background-image: url("https://cdn.onylab.com/image/email/ui/image--right--mobile.png") !important;
|
|
263
263
|
}
|
|
264
264
|
.Image-content {
|
|
265
265
|
height: auto !important;
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
.ListItem-bulletArea {
|
|
278
278
|
height: 20px !important;
|
|
279
279
|
width: 12px !important;
|
|
280
|
-
background-image: url("https://
|
|
280
|
+
background-image: url("https://cdn.onylab.com/image/email/ui/bullet.png") !important;
|
|
281
281
|
background-size: 12px 20px !important;
|
|
282
282
|
}
|
|
283
283
|
.Footer-logoArea {
|
|
@@ -516,11 +516,11 @@
|
|
|
516
516
|
<img alt="logo" height="20" width="42" src="{{ base.shop.logo }}" style="display:block;line-height:100%;border-width:0;"/>
|
|
517
517
|
</a>
|
|
518
518
|
<br>-->
|
|
519
|
-
<a href="
|
|
519
|
+
<a href="{{ base.shop.terms }}" style="-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;outline-color:0;text-decoration:none;color:white;">
|
|
520
520
|
Conditions
|
|
521
521
|
</a>
|
|
522
522
|
|
|
|
523
|
-
<a href="mailto:
|
|
523
|
+
<a href="mailto:{{ base.shop.email }}" style="-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;outline-color:0;text-decoration:none;color:white;">
|
|
524
524
|
Service Client
|
|
525
525
|
</a>
|
|
526
526
|
{{#isCommercial}}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Common API",
|
|
4
4
|
"main": "dist/common-api.node.min.js",
|
|
5
5
|
"types": "dist/common-api.d.ts",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "1.1.0",
|
|
7
7
|
"author": "Paul M.",
|
|
8
8
|
"license": "NO LICENSE",
|
|
9
9
|
"engines": {
|
|
@@ -24,71 +24,67 @@
|
|
|
24
24
|
"validate": "(npm run compile --silent && npm run lint --silent && npm run test || { exit 1; })"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@sentry/
|
|
28
|
-
"@sentry/node": "
|
|
29
|
-
"@
|
|
30
|
-
"@types/
|
|
31
|
-
"@types/
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"clean-css": "^5.3.1",
|
|
27
|
+
"@sentry/node": "^8.35.0",
|
|
28
|
+
"@sentry/profiling-node": "^8.35.0",
|
|
29
|
+
"@types/clean-css": "^4.2.11",
|
|
30
|
+
"@types/compression": "^1.7.5",
|
|
31
|
+
"@types/html-minifier-terser": "^7.0.2",
|
|
32
|
+
"axios": "^1.7.7",
|
|
33
|
+
"clean-css": "^5.3.3",
|
|
35
34
|
"color-name": "^1.1.4",
|
|
36
35
|
"compression": "^1.7.4",
|
|
37
36
|
"connect-timeout": "^1.9.0",
|
|
38
37
|
"cors": "^2.8.5",
|
|
39
|
-
"emoji-regex": "^10.
|
|
40
|
-
"express": "4.
|
|
41
|
-
"express-session": "1.
|
|
42
|
-
"fast-diff": "^1.
|
|
43
|
-
"helmet": "^
|
|
44
|
-
"html-minifier-terser": "^7.
|
|
38
|
+
"emoji-regex": "^10.4.0",
|
|
39
|
+
"express": "^4.21.1",
|
|
40
|
+
"express-session": "^1.18.1",
|
|
41
|
+
"fast-diff": "^1.3.0",
|
|
42
|
+
"helmet": "^8.0.0",
|
|
43
|
+
"html-minifier-terser": "^7.2.0",
|
|
44
|
+
"iconv-lite": "^0.6.3",
|
|
45
45
|
"lodash": "^4.17.21",
|
|
46
|
-
"luxon": "^
|
|
46
|
+
"luxon": "^3.5.0",
|
|
47
47
|
"mustache": "^4.2.0",
|
|
48
|
-
"node-mailjet": "^
|
|
49
|
-
"prettyjson": "^1.2.
|
|
48
|
+
"node-mailjet": "^6.0.6",
|
|
49
|
+
"prettyjson": "^1.2.5",
|
|
50
50
|
"retry": "^0.13.1",
|
|
51
|
-
"shopify-api-node": "^3.
|
|
52
|
-
"shopify-token": "^4.0
|
|
53
|
-
"typeorm": "^0.
|
|
54
|
-
"urlencode": "^1.1.0"
|
|
51
|
+
"shopify-api-node": "^3.14.0",
|
|
52
|
+
"shopify-token": "^4.1.0",
|
|
53
|
+
"typeorm": "^0.3.20"
|
|
55
54
|
},
|
|
56
55
|
"devDependencies": {
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"@types/
|
|
60
|
-
"@types/
|
|
61
|
-
"@types/
|
|
62
|
-
"@types/
|
|
63
|
-
"@types/express
|
|
64
|
-
"@types/
|
|
65
|
-
"@types/glob": "^
|
|
66
|
-
"@types/lodash": "^4.
|
|
67
|
-
"@types/luxon": "^
|
|
68
|
-
"@types/mocha": "^
|
|
69
|
-
"@types/mustache": "^4.
|
|
70
|
-
"@types/node": "^
|
|
71
|
-
"@types/node-mailjet": "^3.3.
|
|
72
|
-
"@types/prettyjson": "0.0.
|
|
73
|
-
"@types/retry": "^0.12.
|
|
74
|
-
"@types/sinon": "^10.0.
|
|
75
|
-
"@types/
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"typescript": "^4.4.3",
|
|
90
|
-
"webpack": "^5.52.1",
|
|
91
|
-
"webpack-cli": "^4.8.0",
|
|
56
|
+
"@faker-js/faker": "^9.1.0",
|
|
57
|
+
"@pamls/eslint-config": "^0.2.24",
|
|
58
|
+
"@types/chai": "^4.3.20",
|
|
59
|
+
"@types/color-name": "^1.1.5",
|
|
60
|
+
"@types/connect-timeout": "^0.0.39",
|
|
61
|
+
"@types/cors": "^2.8.17",
|
|
62
|
+
"@types/express": "^5.0.0",
|
|
63
|
+
"@types/express-session": "^1.18.0",
|
|
64
|
+
"@types/glob": "^8.1.0",
|
|
65
|
+
"@types/lodash": "^4.17.12",
|
|
66
|
+
"@types/luxon": "^3.4.2",
|
|
67
|
+
"@types/mocha": "^10.0.9",
|
|
68
|
+
"@types/mustache": "^4.2.5",
|
|
69
|
+
"@types/node": "^22.8.2",
|
|
70
|
+
"@types/node-mailjet": "^3.3.12",
|
|
71
|
+
"@types/prettyjson": "^0.0.33",
|
|
72
|
+
"@types/retry": "^0.12.5",
|
|
73
|
+
"@types/sinon": "^10.0.20",
|
|
74
|
+
"@types/webpack-env": "^1.18.5",
|
|
75
|
+
"chai": "^4.5.0",
|
|
76
|
+
"copy-webpack-plugin": "^12.0.2",
|
|
77
|
+
"mocha": "^10.7.3",
|
|
78
|
+
"nock": "^13.5.5",
|
|
79
|
+
"sinon": "^15.2.0",
|
|
80
|
+
"source-map-support": "^0.5.21",
|
|
81
|
+
"ts-loader": "^9.5.1",
|
|
82
|
+
"ts-node": "^10.9.2",
|
|
83
|
+
"tsconfig-paths": "^4.2.0",
|
|
84
|
+
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
|
85
|
+
"typescript": "^5.6.3",
|
|
86
|
+
"webpack": "^5.95.0",
|
|
87
|
+
"webpack-cli": "^5.1.4",
|
|
92
88
|
"webpack-node-externals": "^3.0.0"
|
|
93
89
|
},
|
|
94
90
|
"directories": {
|