@fonixtree/magic-design 2.0.163 → 2.0.164

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 (57) hide show
  1. package/es/composite-comp/bol/components/Banner/defaultJSON.js +3 -5
  2. package/es/composite-comp/bol/components/Button/defaultJSON.js +6 -1
  3. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +11 -6
  4. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +17 -12
  5. package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +14 -3
  6. package/es/composite-comp/bol/components/Tag/defaultJSON.js +6 -1
  7. package/es/composite-comp/bol/components/Text/defaultJSON.js +16 -5
  8. package/es/composite-comp/bol/components/Video/defaultJSON.js +9 -4
  9. package/es/composite-comp/bol/components/Wallet/defaultJSON.js +14 -6
  10. package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +8 -3
  11. package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +2 -6
  12. package/es/composite-comp/dito/components/Bargain/defaultJSON.js +11 -6
  13. package/es/composite-comp/dito/components/CommonFunctions/defaultJSON.js +6 -1
  14. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +11 -6
  15. package/es/composite-comp/dito/components/GroupBuy/defaultJSON.js +11 -6
  16. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +6 -1
  17. package/es/composite-comp/dito/components/Orders/defaultJSON.js +6 -1
  18. package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +10 -5
  19. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +7 -2
  20. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +15 -7
  21. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +6 -1
  22. package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +6 -5
  23. package/es/composite-comp/monpay/components/InterestProducts/defaultJSON.js +6 -1
  24. package/es/composite-comp/monpay/components/MerchantSales/defaultJSON.js +6 -1
  25. package/es/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +13 -8
  26. package/es/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +17 -9
  27. package/es/composite-comp/monpay/components/MonpaySignBoard/defaultJSON.js +7 -2
  28. package/es/composite-comp/nuri/components/AffiliateRecommend/defaultJSON.js +13 -5
  29. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +3 -5
  30. package/lib/composite-comp/bol/components/Button/defaultJSON.js +6 -1
  31. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +11 -6
  32. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +17 -12
  33. package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +14 -3
  34. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +6 -1
  35. package/lib/composite-comp/bol/components/Text/defaultJSON.js +16 -5
  36. package/lib/composite-comp/bol/components/Video/defaultJSON.js +9 -4
  37. package/lib/composite-comp/bol/components/Wallet/defaultJSON.js +14 -6
  38. package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +8 -3
  39. package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +2 -6
  40. package/lib/composite-comp/dito/components/Bargain/defaultJSON.js +11 -6
  41. package/lib/composite-comp/dito/components/CommonFunctions/defaultJSON.js +6 -1
  42. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +11 -6
  43. package/lib/composite-comp/dito/components/GroupBuy/defaultJSON.js +11 -6
  44. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +6 -1
  45. package/lib/composite-comp/dito/components/Orders/defaultJSON.js +6 -1
  46. package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +10 -5
  47. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +7 -2
  48. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +15 -7
  49. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +6 -1
  50. package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +6 -5
  51. package/lib/composite-comp/monpay/components/InterestProducts/defaultJSON.js +6 -1
  52. package/lib/composite-comp/monpay/components/MerchantSales/defaultJSON.js +6 -1
  53. package/lib/composite-comp/monpay/components/MonpayFlashDeal/defaultJSON.js +13 -8
  54. package/lib/composite-comp/monpay/components/MonpayRecommend/defaultJSON.js +17 -9
  55. package/lib/composite-comp/monpay/components/MonpaySignBoard/defaultJSON.js +7 -2
  56. package/lib/composite-comp/nuri/components/AffiliateRecommend/defaultJSON.js +13 -5
  57. package/package.json +1 -1
@@ -7,10 +7,15 @@ exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
13
+ var _a;
14
+
11
15
  var groupId = (0, _uuid.v4)();
12
16
  var imageId = (0, _uuid.v4)();
13
17
  var groupNameId = (0, _uuid.v4)();
18
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
14
19
  return {
15
20
  id: groupId,
16
21
  parentId: parentId,
@@ -43,7 +48,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
43
48
  text: text,
44
49
  content: {
45
50
  sizeType: 'Customize font styles',
46
- fontFamily: 'Open Sans',
51
+ fontFamily: defaultFontFamily,
47
52
  fontWeight: 400,
48
53
  fontSize: 14,
49
54
  color: '#8493AF'
@@ -67,7 +72,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
67
72
  },
68
73
  buttonText: {
69
74
  sizeType: 'Customize font styles',
70
- fontFamily: 'Open Sans',
75
+ fontFamily: defaultFontFamily,
71
76
  fontWeight: 400,
72
77
  fontSize: 12,
73
78
  fontStyle: 'normal',
@@ -134,7 +139,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
134
139
  text: text,
135
140
  content: {
136
141
  sizeType: 'Customize font styles',
137
- fontFamily: 'Open Sans',
142
+ fontFamily: defaultFontFamily,
138
143
  fontWeight: 600,
139
144
  fontSize: 14,
140
145
  color: '#CE1126'
@@ -153,7 +158,10 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
153
158
  exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
154
159
 
155
160
  var getDefaultJSON = function getDefaultJSON() {
161
+ var _a;
162
+
156
163
  var groupId = (0, _uuid.v4)();
164
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
157
165
  return {
158
166
  id: groupId,
159
167
  type: 'MONPAY_RECOMMEND',
@@ -191,7 +199,7 @@ var getDefaultJSON = function getDefaultJSON() {
191
199
  },
192
200
  buttonText: {
193
201
  sizeType: 'Customize font styles',
194
- fontFamily: 'Open Sans',
202
+ fontFamily: defaultFontFamily,
195
203
  fontWeight: 600,
196
204
  fontSize: 8,
197
205
  fontStyle: 'normal',
@@ -230,7 +238,7 @@ var getDefaultJSON = function getDefaultJSON() {
230
238
  text: '',
231
239
  content: {
232
240
  sizeType: 'Customize font styles',
233
- fontFamily: 'Open Sans',
241
+ fontFamily: defaultFontFamily,
234
242
  fontWeight: 700,
235
243
  fontSize: 14,
236
244
  color: '#232F46'
@@ -253,7 +261,7 @@ var getDefaultJSON = function getDefaultJSON() {
253
261
  text: '',
254
262
  content: {
255
263
  sizeType: 'Customize font styles',
256
- fontFamily: 'Open Sans',
264
+ fontFamily: defaultFontFamily,
257
265
  fontWeight: 700,
258
266
  fontSize: 14,
259
267
  color: '#CE1126'
@@ -276,7 +284,7 @@ var getDefaultJSON = function getDefaultJSON() {
276
284
  text: '',
277
285
  content: {
278
286
  sizeType: 'Customize font styles',
279
- fontFamily: 'Open Sans',
287
+ fontFamily: defaultFontFamily,
280
288
  fontWeight: 500,
281
289
  fontSize: 10,
282
290
  color: '#8493AF'
@@ -302,7 +310,7 @@ var getDefaultJSON = function getDefaultJSON() {
302
310
  text: '',
303
311
  content: {
304
312
  sizeType: 'Customize font styles',
305
- fontFamily: 'Open Sans',
313
+ fontFamily: defaultFontFamily,
306
314
  fontWeight: 400,
307
315
  fontSize: 10,
308
316
  color: '#545454',
@@ -326,7 +334,7 @@ var getDefaultJSON = function getDefaultJSON() {
326
334
  text: '',
327
335
  content: {
328
336
  sizeType: 'Customize font styles',
329
- fontFamily: 'Open Sans',
337
+ fontFamily: defaultFontFamily,
330
338
  fontWeight: 400,
331
339
  fontSize: 10,
332
340
  color: '#545454',
@@ -7,7 +7,12 @@ exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var getDefaultJSON = function getDefaultJSON() {
13
+ var _a;
14
+
15
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
11
16
  return {
12
17
  id: (0, _uuid.v4)(),
13
18
  type: 'MONPAY_SIGN_BOARD',
@@ -26,7 +31,7 @@ var getDefaultJSON = function getDefaultJSON() {
26
31
  text: 'Store Name',
27
32
  content: {
28
33
  sizeType: 'Customize font styles',
29
- fontFamily: 'Open Sans',
34
+ fontFamily: defaultFontFamily,
30
35
  fontWeight: 600,
31
36
  fontSize: 16,
32
37
  color: '#000',
@@ -51,7 +56,7 @@ var getDefaultJSON = function getDefaultJSON() {
51
56
  },
52
57
  buttonText: {
53
58
  sizeType: 'Customize font styles',
54
- fontFamily: 'Open Sans',
59
+ fontFamily: defaultFontFamily,
55
60
  fontWeight: 400,
56
61
  fontSize: 12,
57
62
  fontStyle: 'normal',
@@ -7,10 +7,15 @@ exports.recommendGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo, text) {
13
+ var _a;
14
+
11
15
  var groupId = (0, _uuid.v4)();
12
16
  var imageId = (0, _uuid.v4)();
13
17
  var groupNameId = (0, _uuid.v4)();
18
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
14
19
  return {
15
20
  id: groupId,
16
21
  parentId: parentId,
@@ -43,7 +48,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
43
48
  text: text,
44
49
  content: {
45
50
  sizeType: 'Customize font styles',
46
- fontFamily: 'Open Sans',
51
+ fontFamily: defaultFontFamily,
47
52
  fontWeight: 400,
48
53
  fontSize: 14,
49
54
  color: '#8493AF'
@@ -67,7 +72,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
67
72
  },
68
73
  buttonText: {
69
74
  sizeType: 'Customize font styles',
70
- fontFamily: 'Open Sans',
75
+ fontFamily: defaultFontFamily,
71
76
  fontWeight: 400,
72
77
  fontSize: 12,
73
78
  fontStyle: 'normal',
@@ -133,7 +138,7 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
133
138
  text: text,
134
139
  content: {
135
140
  sizeType: 'Customize font styles',
136
- fontFamily: 'Open Sans',
141
+ fontFamily: defaultFontFamily,
137
142
  fontWeight: 600,
138
143
  fontSize: 14,
139
144
  color: '#CE1126'
@@ -152,7 +157,10 @@ var recommendGroupSourceJSON = function recommendGroupSourceJSON(parentId, logo,
152
157
  exports.recommendGroupSourceJSON = recommendGroupSourceJSON;
153
158
 
154
159
  var getDefaultJSON = function getDefaultJSON() {
160
+ var _a;
161
+
155
162
  var groupId = (0, _uuid.v4)();
163
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
156
164
  return {
157
165
  id: groupId,
158
166
  type: 'AFFILIATE_RECOMMEND',
@@ -166,7 +174,7 @@ var getDefaultJSON = function getDefaultJSON() {
166
174
  text: 'Flash Deal',
167
175
  content: {
168
176
  sizeType: 'Customize font styles',
169
- fontFamily: 'Open Sans',
177
+ fontFamily: defaultFontFamily,
170
178
  fontWeight: 400,
171
179
  fontSize: 10,
172
180
  color: '#282828'
@@ -189,7 +197,7 @@ var getDefaultJSON = function getDefaultJSON() {
189
197
  text: 'Flash Deal',
190
198
  content: {
191
199
  sizeType: 'Customize font styles',
192
- fontFamily: 'Open Sans',
200
+ fontFamily: defaultFontFamily,
193
201
  fontWeight: 800,
194
202
  fontSize: 18,
195
203
  color: '#333'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.163",
4
+ "version": "2.0.164",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",