@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,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'
@@ -9,13 +9,11 @@ var _uuid = require("uuid");
9
9
 
10
10
  var _constants = require("../../../../constants");
11
11
 
12
- var _a;
13
-
14
- var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans1';
15
- console.log('window.systemParams', window.systemParams);
16
-
17
12
  var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
13
+ var _a;
14
+
18
15
  var groupId = (0, _uuid.v4)();
16
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
19
17
  return {
20
18
  id: groupId,
21
19
  image: {
@@ -7,11 +7,16 @@ exports.getDefaultJSON = exports.buttonGroupSourceJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  /**
11
13
  * 获取 text 元组件json
12
14
  */
13
15
  var buttonGroupSourceJSON = function buttonGroupSourceJSON() {
16
+ var _a;
17
+
14
18
  var groupId = (0, _uuid.v4)();
19
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
15
20
  return {
16
21
  id: groupId,
17
22
  button: {
@@ -23,7 +28,7 @@ var buttonGroupSourceJSON = function buttonGroupSourceJSON() {
23
28
  },
24
29
  buttonText: {
25
30
  sizeType: 'Customize font styles',
26
- fontFamily: 'Open Sans',
31
+ fontFamily: defaultFontFamily,
27
32
  fontWeight: 400,
28
33
  fontSize: 14,
29
34
  fontStyle: 'normal',
@@ -7,8 +7,13 @@ exports.imagesGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
13
+ var _a;
14
+
11
15
  var groupId = (0, _uuid.v4)();
16
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
12
17
  return {
13
18
  compId: compId,
14
19
  id: groupId,
@@ -41,7 +46,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
41
46
  text: 'Title of this group',
42
47
  content: {
43
48
  sizeType: 'Customize font styles',
44
- fontFamily: 'Open Sans',
49
+ fontFamily: defaultFontFamily,
45
50
  fontWeight: 600,
46
51
  fontSize: 16,
47
52
  pcFontSize: 42,
@@ -64,7 +69,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
64
69
  text: 'Please enter a description',
65
70
  content: {
66
71
  sizeType: 'Customize font styles',
67
- fontFamily: 'Open Sans',
72
+ fontFamily: defaultFontFamily,
68
73
  fontWeight: 400,
69
74
  fontSize: 14,
70
75
  pcFontSize: 28,
@@ -106,7 +111,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
106
111
  },
107
112
  buttonText: {
108
113
  sizeType: 'Customize font styles',
109
- fontFamily: 'Open Sans',
114
+ fontFamily: defaultFontFamily,
110
115
  fontWeight: 400,
111
116
  fontSize: 13,
112
117
  pcFontSize: 16,
@@ -143,7 +148,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
143
148
  },
144
149
  buttonText: {
145
150
  sizeType: 'Customize font styles',
146
- fontFamily: 'Open Sans',
151
+ fontFamily: defaultFontFamily,
147
152
  fontWeight: 600,
148
153
  fontSize: 14,
149
154
  fontStyle: 'normal',
@@ -172,7 +177,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
172
177
  },
173
178
  buttonText: {
174
179
  sizeType: 'Customize font styles',
175
- fontFamily: 'Open Sans',
180
+ fontFamily: defaultFontFamily,
176
181
  fontWeight: 600,
177
182
  fontSize: 14,
178
183
  fontStyle: 'normal',
@@ -208,7 +213,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
208
213
  },
209
214
  buttonText: {
210
215
  sizeType: 'Customize font styles',
211
- fontFamily: 'Open Sans',
216
+ fontFamily: defaultFontFamily,
212
217
  fontWeight: 600,
213
218
  fontSize: 14,
214
219
  fontStyle: 'normal',
@@ -7,13 +7,18 @@ exports.getDefaultJSON = exports.ImageTextGroupSourceJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
13
+ var _a;
14
+
11
15
  var groupId = (0, _uuid.v4)();
12
16
  var imageId = (0, _uuid.v4)();
13
17
  var titleId = (0, _uuid.v4)();
14
18
  var textId = (0, _uuid.v4)();
15
19
  var buttonId = (0, _uuid.v4)();
16
20
  var secButtonId = (0, _uuid.v4)();
21
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
17
22
  return {
18
23
  id: groupId,
19
24
  image: {
@@ -54,7 +59,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
54
59
  text: 'Title of this group',
55
60
  content: {
56
61
  sizeType: 'Customize font styles',
57
- fontFamily: 'Open Sans',
62
+ fontFamily: defaultFontFamily,
58
63
  fontWeight: 600,
59
64
  fontSize: 12,
60
65
  color: '#232F46'
@@ -75,7 +80,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
75
80
  text: 'Please enter a description',
76
81
  content: {
77
82
  sizeType: 'Customize font styles',
78
- fontFamily: 'Open Sans',
83
+ fontFamily: defaultFontFamily,
79
84
  fontWeight: 400,
80
85
  fontSize: 10,
81
86
  color: '#8493AF'
@@ -95,7 +100,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
95
100
  },
96
101
  buttonText: {
97
102
  sizeType: 'Customize font styles',
98
- fontFamily: 'Open Sans',
103
+ fontFamily: defaultFontFamily,
99
104
  fontWeight: 400,
100
105
  fontSize: 10,
101
106
  fontStyle: 'normal',
@@ -131,7 +136,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
131
136
  },
132
137
  buttonText: {
133
138
  sizeType: 'Customize font styles',
134
- fontFamily: 'Open Sans',
139
+ fontFamily: defaultFontFamily,
135
140
  fontWeight: 600,
136
141
  fontSize: 14,
137
142
  fontStyle: 'normal',
@@ -160,7 +165,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
160
165
  },
161
166
  buttonText: {
162
167
  sizeType: 'Customize font styles',
163
- fontFamily: 'Open Sans',
168
+ fontFamily: defaultFontFamily,
164
169
  fontWeight: 400,
165
170
  fontSize: 10,
166
171
  fontStyle: 'normal',
@@ -196,7 +201,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
196
201
  },
197
202
  buttonText: {
198
203
  sizeType: 'Customize font styles',
199
- fontFamily: 'Open Sans',
204
+ fontFamily: defaultFontFamily,
200
205
  fontWeight: 600,
201
206
  fontSize: 14,
202
207
  fontStyle: 'normal',
@@ -249,7 +254,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
249
254
  specialContent: [],
250
255
  text: '',
251
256
  content: {
252
- fontFamily: 'Open Sans',
257
+ fontFamily: defaultFontFamily,
253
258
  fontWeight: 700,
254
259
  fontSize: 28,
255
260
  color: '#232F46',
@@ -270,7 +275,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
270
275
  text: '',
271
276
  content: {
272
277
  sizeType: 'Customize font styles',
273
- fontFamily: 'Open Sans',
278
+ fontFamily: defaultFontFamily,
274
279
  fontWeight: 400,
275
280
  fontSize: 18,
276
281
  color: '#232F46',
@@ -290,7 +295,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
290
295
  },
291
296
  buttonText: {
292
297
  sizeType: 'Customize font styles',
293
- fontFamily: 'Open Sans',
298
+ fontFamily: defaultFontFamily,
294
299
  fontWeight: 600,
295
300
  fontSize: 14,
296
301
  fontStyle: 'normal',
@@ -312,7 +317,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
312
317
  },
313
318
  buttonText: {
314
319
  sizeType: 'Customize font styles',
315
- fontFamily: 'Open Sans',
320
+ fontFamily: defaultFontFamily,
316
321
  fontWeight: 600,
317
322
  fontSize: 14,
318
323
  fontStyle: 'normal',
@@ -340,7 +345,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
340
345
  },
341
346
  buttonText: {
342
347
  sizeType: 'Customize font styles',
343
- fontFamily: 'Open Sans',
348
+ fontFamily: defaultFontFamily,
344
349
  fontWeight: 600,
345
350
  fontSize: 14,
346
351
  fontStyle: 'normal',
@@ -362,7 +367,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
362
367
  },
363
368
  buttonText: {
364
369
  sizeType: 'Customize font styles',
365
- fontFamily: 'Open Sans',
370
+ fontFamily: defaultFontFamily,
366
371
  fontWeight: 600,
367
372
  fontSize: 14,
368
373
  fontStyle: 'normal',
@@ -7,6 +7,8 @@ exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var __assign = void 0 && (void 0).__assign || function () {
11
13
  __assign = Object.assign || function (t) {
12
14
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -27,6 +29,9 @@ var __assign = void 0 && (void 0).__assign || function () {
27
29
  * 获取 text 元组件json
28
30
  */
29
31
  var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
32
+ var _a;
33
+
34
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
30
35
  return {
31
36
  id: (0, _uuid.v4)(),
32
37
  open: true,
@@ -35,7 +40,7 @@ var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
35
40
  text: 'Thank you for you subscription',
36
41
  content: {
37
42
  sizeType: 'Customize font styles',
38
- fontFamily: 'Open Sans',
43
+ fontFamily: defaultFontFamily,
39
44
  fontWeight: 400,
40
45
  fontSize: 14,
41
46
  color: '#8493AF'
@@ -57,6 +62,9 @@ var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
57
62
 
58
63
 
59
64
  var getDefaultMetaButtonJson = function getDefaultMetaButtonJson() {
65
+ var _a;
66
+
67
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
60
68
  return {
61
69
  id: (0, _uuid.v4)(),
62
70
  open: true,
@@ -66,7 +74,7 @@ var getDefaultMetaButtonJson = function getDefaultMetaButtonJson() {
66
74
  },
67
75
  buttonText: {
68
76
  sizeType: 'Customize font styles',
69
- fontFamily: 'Open Sans',
77
+ fontFamily: defaultFontFamily,
70
78
  fontWeight: 600,
71
79
  fontSize: 14,
72
80
  fontStyle: 'normal',
@@ -102,6 +110,9 @@ var getDefaultMetaButtonJson = function getDefaultMetaButtonJson() {
102
110
  };
103
111
 
104
112
  var getDefaultJSON = function getDefaultJSON() {
113
+ var _a;
114
+
115
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
105
116
  return {
106
117
  id: (0, _uuid.v4)(),
107
118
  type: 'NEWSLETTER',
@@ -112,7 +123,7 @@ var getDefaultJSON = function getDefaultJSON() {
112
123
  placeholder: 'Email Address',
113
124
  content: {
114
125
  sizeType: 'Customize font styles',
115
- fontFamily: 'Open Sans',
126
+ fontFamily: defaultFontFamily,
116
127
  fontWeight: 600,
117
128
  fontSize: 16,
118
129
  color: '#CE1126'
@@ -7,11 +7,16 @@ exports.tagGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  /**
11
13
  * 获取 text 元组件json
12
14
  */
13
15
  var tagGroupSourceJSON = function tagGroupSourceJSON() {
16
+ var _a;
17
+
14
18
  var groupId = (0, _uuid.v4)();
19
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
15
20
  return {
16
21
  id: groupId,
17
22
  button: {
@@ -24,7 +29,7 @@ var tagGroupSourceJSON = function tagGroupSourceJSON() {
24
29
  },
25
30
  buttonText: {
26
31
  sizeType: 'Customize font styles',
27
- fontFamily: 'Open Sans',
32
+ fontFamily: defaultFontFamily,
28
33
  fontWeight: 600,
29
34
  fontSize: 12,
30
35
  fontStyle: 'normal',
@@ -7,6 +7,8 @@ exports.textGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var __assign = void 0 && (void 0).__assign || function () {
11
13
  __assign = Object.assign || function (t) {
12
14
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -27,6 +29,9 @@ var __assign = void 0 && (void 0).__assign || function () {
27
29
  * 获取 text 元组件json
28
30
  */
29
31
  var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
32
+ var _a;
33
+
34
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
30
35
  return {
31
36
  id: (0, _uuid.v4)(),
32
37
  open: true,
@@ -35,7 +40,7 @@ var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
35
40
  text: 'Flash Deal',
36
41
  content: {
37
42
  sizeType: 'Customize font styles',
38
- fontFamily: 'Open Sans',
43
+ fontFamily: defaultFontFamily,
39
44
  fontWeight: 600,
40
45
  fontSize: 14,
41
46
  color: '#CE1126'
@@ -53,7 +58,10 @@ var getDefaultMetaTextJson = function getDefaultMetaTextJson() {
53
58
  };
54
59
 
55
60
  var textGroupSourceJSON = function textGroupSourceJSON(parentId) {
61
+ var _a;
62
+
56
63
  var groupId = (0, _uuid.v4)();
64
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
57
65
  return {
58
66
  id: groupId,
59
67
  parentId: parentId,
@@ -64,7 +72,7 @@ var textGroupSourceJSON = function textGroupSourceJSON(parentId) {
64
72
  text: 'Group Name',
65
73
  content: {
66
74
  sizeType: 'Customize font styles',
67
- fontFamily: 'Open Sans',
75
+ fontFamily: defaultFontFamily,
68
76
  fontWeight: 600,
69
77
  fontSize: 22,
70
78
  pcFontSize: 22,
@@ -78,7 +86,7 @@ var textGroupSourceJSON = function textGroupSourceJSON(parentId) {
78
86
  text: 'For the text area, you can enter a subtitle or description, the default width is the same as title.',
79
87
  content: {
80
88
  sizeType: 'Body 1',
81
- fontFamily: 'Open Sans',
89
+ fontFamily: defaultFontFamily,
82
90
  fontWeight: 400,
83
91
  fontSize: 18,
84
92
  pcFontSize: 18,
@@ -91,7 +99,10 @@ var textGroupSourceJSON = function textGroupSourceJSON(parentId) {
91
99
  exports.textGroupSourceJSON = textGroupSourceJSON;
92
100
 
93
101
  var getDefaultJSON = function getDefaultJSON() {
102
+ var _a;
103
+
94
104
  var groupId = (0, _uuid.v4)();
105
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
95
106
  return {
96
107
  id: groupId,
97
108
  type: 'TEXT',
@@ -100,7 +111,7 @@ var getDefaultJSON = function getDefaultJSON() {
100
111
  text: 'Title use, click modify text.',
101
112
  content: {
102
113
  sizeType: 'Customize font styles',
103
- fontFamily: 'Montserrat',
114
+ fontFamily: defaultFontFamily,
104
115
  fontWeight: 600,
105
116
  fontSize: 28,
106
117
  pcFontSize: 68,
@@ -112,7 +123,7 @@ var getDefaultJSON = function getDefaultJSON() {
112
123
  text: 'For the text area, you can enter a subtitle or description',
113
124
  content: {
114
125
  sizeType: 'Title 1',
115
- fontFamily: 'Montserrat',
126
+ fontFamily: defaultFontFamily,
116
127
  fontWeight: 400,
117
128
  fontSize: 16,
118
129
  pcFontSize: 32,
@@ -7,8 +7,13 @@ exports.videoGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
13
+ var _a;
14
+
11
15
  var groupId = (0, _uuid.v4)();
16
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
12
17
  return {
13
18
  id: groupId,
14
19
  parentId: parentId,
@@ -41,7 +46,7 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
41
46
  specialContent: [],
42
47
  content: {
43
48
  sizeType: 'Customize font styles',
44
- fontFamily: 'Open Sans',
49
+ fontFamily: defaultFontFamily,
45
50
  fontWeight: 700,
46
51
  fontSize: 16,
47
52
  pcFontSize: 18,
@@ -64,7 +69,7 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
64
69
  text: 'For the text area, you can enter a subtitle or description, the default width is the same as title.',
65
70
  content: {
66
71
  sizeType: 'Customize font styles',
67
- fontFamily: 'Open Sans',
72
+ fontFamily: defaultFontFamily,
68
73
  fontWeight: 400,
69
74
  fontSize: 13,
70
75
  pcFontSize: 13,
@@ -85,7 +90,7 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
85
90
  },
86
91
  buttonText: {
87
92
  sizeType: 'Customize font styles',
88
- fontFamily: 'Open Sans',
93
+ fontFamily: defaultFontFamily,
89
94
  fontWeight: 600,
90
95
  fontSize: 12,
91
96
  fontStyle: 'normal',
@@ -126,7 +131,7 @@ var videoGroupSourceJSON = function videoGroupSourceJSON(parentId) {
126
131
  },
127
132
  buttonText: {
128
133
  sizeType: 'Customize font styles',
129
- fontFamily: 'Open Sans',
134
+ fontFamily: defaultFontFamily,
130
135
  fontWeight: 600,
131
136
  fontSize: 12,
132
137
  fontStyle: 'normal',
@@ -7,8 +7,13 @@ exports.imagesGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
+ var _constants = require("../../../../constants");
11
+
10
12
  var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
13
+ var _a;
14
+
11
15
  var groupId = (0, _uuid.v4)();
16
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
12
17
  return {
13
18
  id: groupId,
14
19
  parentId: parentId,
@@ -21,7 +26,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
21
26
  text: 'Cashback',
22
27
  content: {
23
28
  sizeType: 'Customize font styles',
24
- fontFamily: 'Open Sans',
29
+ fontFamily: defaultFontFamily,
25
30
  fontWeight: 700,
26
31
  fontSize: 18,
27
32
  color: '#fff',
@@ -43,7 +48,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
43
48
  text: 'RM1000',
44
49
  content: {
45
50
  sizeType: 'Customize font styles',
46
- fontFamily: 'Open Sans',
51
+ fontFamily: defaultFontFamily,
47
52
  fontWeight: 700,
48
53
  fontSize: 38,
49
54
  color: '#fff',
@@ -66,7 +71,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
66
71
  text: 'Make money and shop on Cendol!',
67
72
  content: {
68
73
  sizeType: 'Customize font styles',
69
- fontFamily: 'Open Sans',
74
+ fontFamily: defaultFontFamily,
70
75
  fontWeight: 400,
71
76
  fontSize: 14,
72
77
  color: '#fff',
@@ -91,7 +96,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
91
96
  },
92
97
  buttonText: {
93
98
  sizeType: 'Customize font styles',
94
- fontFamily: 'Open Sans',
99
+ fontFamily: defaultFontFamily,
95
100
  fontWeight: 700,
96
101
  fontSize: 13,
97
102
  fontStyle: 'normal',
@@ -130,7 +135,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
130
135
  text: '',
131
136
  content: {
132
137
  sizeType: 'Customize font styles',
133
- fontFamily: 'Open Sans',
138
+ fontFamily: defaultFontFamily,
134
139
  fontWeight: 400,
135
140
  fontSize: 12,
136
141
  color: '#fff',
@@ -155,7 +160,10 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(parentId) {
155
160
  exports.imagesGroupSourceJSON = imagesGroupSourceJSON;
156
161
 
157
162
  var getDefaultJSON = function getDefaultJSON() {
163
+ var _a;
164
+
158
165
  var groupId = (0, _uuid.v4)();
166
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
159
167
  return {
160
168
  id: groupId,
161
169
  type: 'WALLET',
@@ -168,7 +176,7 @@ var getDefaultJSON = function getDefaultJSON() {
168
176
  text: 'Wallet',
169
177
  content: {
170
178
  sizeType: 'Customize font styles',
171
- fontFamily: 'Open Sans',
179
+ fontFamily: defaultFontFamily,
172
180
  fontWeight: 600,
173
181
  fontSize: 18,
174
182
  pcFontSize: 38,
@@ -9,6 +9,8 @@ var _uuid = require("uuid");
9
9
 
10
10
  var _base = require("../../../../assets/images/base64");
11
11
 
12
+ var _constants = require("../../../../constants");
13
+
12
14
  var walletDataList = [{
13
15
  name: 'Saldo',
14
16
  icon: _base.walletSaldoIcon,
@@ -24,7 +26,10 @@ var walletDataList = [{
24
26
  }];
25
27
 
26
28
  var getDefaultJSON = function getDefaultJSON() {
29
+ var _a;
30
+
27
31
  var groupId = (0, _uuid.v4)();
32
+ var defaultFontFamily = _constants.projectFontFamily[(_a = window.systemParams) === null || _a === void 0 ? void 0 : _a.projectCode] || 'Open Sans';
28
33
  return {
29
34
  id: groupId,
30
35
  type: 'WALLET_NURI',
@@ -52,7 +57,7 @@ var getDefaultJSON = function getDefaultJSON() {
52
57
  text: item.name,
53
58
  content: {
54
59
  sizeType: 'Customize font styles',
55
- fontFamily: 'Open Sans',
60
+ fontFamily: defaultFontFamily,
56
61
  fontWeight: 400,
57
62
  fontSize: 11,
58
63
  color: '#232F46',
@@ -74,7 +79,7 @@ var getDefaultJSON = function getDefaultJSON() {
74
79
  text: '****',
75
80
  content: {
76
81
  sizeType: 'Customize font styles',
77
- fontFamily: 'Open Sans',
82
+ fontFamily: defaultFontFamily,
78
83
  fontWeight: 700,
79
84
  fontSize: 14,
80
85
  color: '#232F46',
@@ -96,7 +101,7 @@ var getDefaultJSON = function getDefaultJSON() {
96
101
  text: item.text,
97
102
  content: {
98
103
  sizeType: 'Customize font styles',
99
- fontFamily: 'Open Sans',
104
+ fontFamily: defaultFontFamily,
100
105
  fontWeight: 400,
101
106
  fontSize: 11,
102
107
  color: '#232F46',