@oanda/labs-currency-strength-widget 1.0.140 → 1.0.141

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 (32) hide show
  1. package/CHANGELOG.md +568 -0
  2. package/dist/main/CurrencyStrengthWidget/ChartsWithData.js +15 -11
  3. package/dist/main/CurrencyStrengthWidget/ChartsWithData.js.map +1 -1
  4. package/dist/main/CurrencyStrengthWidget/Main.js +2 -2
  5. package/dist/main/CurrencyStrengthWidget/Main.js.map +1 -1
  6. package/dist/main/CurrencyStrengthWidget/components/Chart/Chart.js +1 -2
  7. package/dist/main/CurrencyStrengthWidget/components/Chart/Chart.js.map +1 -1
  8. package/dist/main/CurrencyStrengthWidget/components/Chart/formatters.js +1 -5
  9. package/dist/main/CurrencyStrengthWidget/components/Chart/formatters.js.map +1 -1
  10. package/dist/main/CurrencyStrengthWidget/components/Chart/getOption.js +3 -3
  11. package/dist/main/CurrencyStrengthWidget/components/Chart/getOption.js.map +1 -1
  12. package/dist/main/gql/getCurrencyStrength.js +3 -12
  13. package/dist/main/gql/getCurrencyStrength.js.map +1 -1
  14. package/dist/main/gql/types/fragment-masking.js +3 -2
  15. package/dist/main/gql/types/fragment-masking.js.map +1 -1
  16. package/dist/main/gql/types/gql.js +3 -3
  17. package/dist/main/gql/types/gql.js.map +1 -1
  18. package/dist/module/CurrencyStrengthWidget/ChartsWithData.js +15 -11
  19. package/dist/module/CurrencyStrengthWidget/ChartsWithData.js.map +1 -1
  20. package/dist/module/CurrencyStrengthWidget/Main.js +2 -2
  21. package/dist/module/CurrencyStrengthWidget/Main.js.map +1 -1
  22. package/dist/module/CurrencyStrengthWidget/components/Chart/formatters.js +1 -5
  23. package/dist/module/CurrencyStrengthWidget/components/Chart/formatters.js.map +1 -1
  24. package/dist/module/CurrencyStrengthWidget/components/Chart/getOption.js +3 -3
  25. package/dist/module/CurrencyStrengthWidget/components/Chart/getOption.js.map +1 -1
  26. package/dist/module/gql/getCurrencyStrength.js +3 -12
  27. package/dist/module/gql/getCurrencyStrength.js.map +1 -1
  28. package/dist/module/gql/types/fragment-masking.js +3 -2
  29. package/dist/module/gql/types/fragment-masking.js.map +1 -1
  30. package/dist/module/gql/types/gql.js +2 -1
  31. package/dist/module/gql/types/gql.js.map +1 -1
  32. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,574 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.0.141 (2025-09-29)
7
+
8
+
9
+
10
+ ## 1.0.222 (2025-09-17)
11
+
12
+
13
+
14
+ ## 1.0.221 (2025-09-11)
15
+
16
+
17
+
18
+ ## 1.0.220 (2025-09-09)
19
+
20
+
21
+
22
+ ## 1.0.219 (2025-09-02)
23
+
24
+
25
+
26
+ ## 1.0.218 (2025-09-01)
27
+
28
+
29
+
30
+ ## 1.0.217 (2025-08-25)
31
+
32
+
33
+
34
+ ## 1.0.216 (2025-08-18)
35
+
36
+
37
+
38
+ ## 1.0.215 (2025-08-18)
39
+
40
+
41
+
42
+ ## 1.0.214 (2025-08-14)
43
+
44
+
45
+
46
+ ## 1.0.213 (2025-08-12)
47
+
48
+
49
+
50
+ ## 1.0.212 (2025-08-05)
51
+
52
+
53
+
54
+ ## 1.0.211 (2025-08-05)
55
+
56
+
57
+
58
+ ## 1.0.210 (2025-07-31)
59
+
60
+
61
+
62
+ ## 1.0.209 (2025-07-31)
63
+
64
+
65
+
66
+ ## 1.0.208 (2025-07-24)
67
+
68
+
69
+
70
+ ## 1.0.207 (2025-07-18)
71
+
72
+
73
+
74
+ ## 1.0.206 (2025-07-18)
75
+
76
+
77
+
78
+ ## 1.0.205 (2025-07-17)
79
+
80
+
81
+
82
+ ## 1.0.204 (2025-07-09)
83
+
84
+
85
+
86
+ ## 1.0.203 (2025-06-16)
87
+
88
+
89
+
90
+ ## 1.0.202 (2025-06-04)
91
+
92
+
93
+
94
+ ## 1.0.201 (2025-06-02)
95
+
96
+
97
+
98
+ ## 1.0.200 (2025-05-30)
99
+
100
+
101
+
102
+ ## 1.0.199 (2025-05-29)
103
+
104
+
105
+
106
+ ## 1.0.198 (2025-05-26)
107
+
108
+
109
+
110
+ ## 1.0.197 (2025-05-23)
111
+
112
+
113
+
114
+ ## 1.0.196 (2025-05-22)
115
+
116
+
117
+
118
+ ## 1.0.195 (2025-05-21)
119
+
120
+
121
+
122
+ ## 1.0.194 (2025-05-21)
123
+
124
+
125
+
126
+ ## 1.0.193 (2025-05-15)
127
+
128
+
129
+
130
+ ## 1.0.192 (2025-05-14)
131
+
132
+
133
+
134
+ ## 1.0.191 (2025-04-30)
135
+
136
+
137
+
138
+ ## 1.0.190 (2025-04-28)
139
+
140
+
141
+
142
+ ## 1.0.189 (2025-04-23)
143
+
144
+
145
+
146
+ ## 1.0.188 (2025-04-22)
147
+
148
+
149
+
150
+ ## 1.0.187 (2025-04-18)
151
+
152
+
153
+
154
+ ## 1.0.186 (2025-04-10)
155
+
156
+
157
+
158
+ ## 1.0.185 (2025-04-09)
159
+
160
+
161
+
162
+ ## 1.0.184 (2025-04-08)
163
+
164
+
165
+
166
+ ## 1.0.183 (2025-04-04)
167
+
168
+
169
+
170
+ ## 1.0.182 (2025-03-21)
171
+
172
+
173
+
174
+ ## 1.0.181 (2025-03-13)
175
+
176
+
177
+
178
+ ## 1.0.180 (2025-01-30)
179
+
180
+
181
+
182
+ ## 1.0.179 (2025-01-29)
183
+
184
+
185
+
186
+ ## 1.0.178 (2025-01-12)
187
+
188
+
189
+
190
+ ## 1.0.177 (2025-01-10)
191
+
192
+
193
+
194
+ ## 1.0.176 (2025-01-10)
195
+
196
+
197
+
198
+ ## 1.0.175 (2025-01-08)
199
+
200
+
201
+
202
+ ## 1.0.174 (2024-12-16)
203
+
204
+
205
+
206
+ ## 1.0.173 (2024-12-11)
207
+
208
+
209
+
210
+ ## 1.0.172 (2024-11-29)
211
+
212
+
213
+
214
+ ## 1.0.171 (2024-11-28)
215
+
216
+
217
+
218
+ ## 1.0.170 (2024-11-28)
219
+
220
+
221
+
222
+ ## 1.0.169 (2024-11-20)
223
+
224
+
225
+
226
+ ## 1.0.168 (2024-11-19)
227
+
228
+
229
+
230
+ ## 1.0.167 (2024-10-14)
231
+
232
+
233
+
234
+ ## 1.0.166 (2024-10-07)
235
+
236
+
237
+
238
+ ## 1.0.165 (2024-10-03)
239
+
240
+
241
+
242
+ ## 1.0.164 (2024-09-26)
243
+
244
+
245
+
246
+ ## 1.0.163 (2024-09-18)
247
+
248
+
249
+
250
+ ## 1.0.162 (2024-09-12)
251
+
252
+
253
+
254
+ ## 1.0.161 (2024-09-11)
255
+
256
+
257
+
258
+ ## 1.0.160 (2024-09-10)
259
+
260
+
261
+
262
+ ## 1.0.159 (2024-09-09)
263
+
264
+
265
+
266
+ ## 1.0.158 (2024-09-04)
267
+
268
+
269
+
270
+ ## 1.0.157 (2024-09-04)
271
+
272
+
273
+
274
+ ## 1.0.156 (2024-09-02)
275
+
276
+
277
+
278
+ ## 1.0.155 (2024-08-29)
279
+
280
+
281
+
282
+ ## 1.0.154 (2024-08-29)
283
+
284
+
285
+
286
+ ## 1.0.153 (2024-08-23)
287
+
288
+
289
+
290
+ ## 1.0.152 (2024-08-23)
291
+
292
+
293
+
294
+ ## 1.0.151 (2024-08-20)
295
+
296
+
297
+
298
+ ## 1.0.150 (2024-08-19)
299
+
300
+
301
+
302
+ ## 1.0.149 (2024-08-07)
303
+
304
+
305
+
306
+ ## 1.0.148 (2024-08-01)
307
+
308
+
309
+
310
+ ## 1.0.147 (2024-08-01)
311
+
312
+
313
+
314
+ ## 1.0.146 (2024-07-26)
315
+
316
+
317
+
318
+ ## 1.0.145 (2024-07-25)
319
+
320
+
321
+
322
+ ## 1.0.144 (2024-07-22)
323
+
324
+
325
+
326
+ ## 1.0.143 (2024-07-19)
327
+
328
+
329
+
330
+ ## 1.0.142 (2024-07-16)
331
+
332
+
333
+
334
+ ## 1.0.141 (2024-07-16)
335
+
336
+
337
+
338
+ ## 1.0.140 (2024-07-12)
339
+
340
+
341
+
342
+ ## 1.0.139 (2024-07-12)
343
+
344
+
345
+
346
+ ## 1.0.138 (2024-07-10)
347
+
348
+
349
+
350
+ ## 1.0.137 (2024-07-05)
351
+
352
+
353
+
354
+ ## 1.0.136 (2024-07-03)
355
+
356
+
357
+
358
+ ## 1.0.135 (2024-07-03)
359
+
360
+
361
+
362
+ ## 1.0.134 (2024-07-03)
363
+
364
+
365
+
366
+ ## 1.0.133 (2024-06-28)
367
+
368
+
369
+
370
+ ## 1.0.132 (2024-06-27)
371
+
372
+
373
+
374
+ ## 1.0.131 (2024-06-27)
375
+
376
+
377
+
378
+ ## 1.0.130 (2024-06-26)
379
+
380
+
381
+
382
+ ## 1.0.129 (2024-06-17)
383
+
384
+
385
+
386
+ ## 1.0.128 (2024-06-17)
387
+
388
+
389
+
390
+ ## 1.0.127 (2024-06-10)
391
+
392
+
393
+
394
+ ## 1.0.126 (2024-05-29)
395
+
396
+
397
+
398
+ ## 1.0.125 (2024-05-29)
399
+
400
+
401
+
402
+ ## 1.0.124 (2024-05-29)
403
+
404
+
405
+
406
+ ## 1.0.123 (2024-05-28)
407
+
408
+
409
+
410
+ ## 1.0.122 (2024-05-27)
411
+
412
+
413
+
414
+ ## 1.0.121 (2024-05-27)
415
+
416
+
417
+
418
+ ## 1.0.120 (2024-05-24)
419
+
420
+
421
+
422
+ ## 1.0.119 (2024-05-17)
423
+
424
+
425
+
426
+ ## 1.0.118 (2024-05-09)
427
+
428
+
429
+
430
+ ## 1.0.117 (2024-05-07)
431
+
432
+
433
+
434
+ ## 1.0.116 (2024-04-23)
435
+
436
+
437
+
438
+ ## 1.0.115 (2024-04-22)
439
+
440
+
441
+
442
+ ## 1.0.114 (2024-04-19)
443
+
444
+
445
+
446
+ ## 1.0.113 (2024-04-19)
447
+
448
+
449
+
450
+ ## 1.0.112 (2024-04-15)
451
+
452
+
453
+
454
+ ## 1.0.111 (2024-04-11)
455
+
456
+
457
+
458
+ ## 1.0.110 (2024-04-05)
459
+
460
+
461
+
462
+ ## 1.0.109 (2024-04-05)
463
+
464
+
465
+
466
+ ## 1.0.108 (2024-04-04)
467
+
468
+
469
+
470
+ ## 1.0.107 (2024-04-03)
471
+
472
+
473
+
474
+ ## 1.0.106 (2024-03-29)
475
+
476
+
477
+
478
+ ## 1.0.105 (2024-03-28)
479
+
480
+
481
+
482
+ ## 1.0.104 (2024-03-21)
483
+
484
+
485
+
486
+ ## 1.0.103 (2024-03-20)
487
+
488
+
489
+
490
+ ## 1.0.102 (2024-03-20)
491
+
492
+
493
+
494
+ ## 1.0.101 (2024-03-13)
495
+
496
+
497
+
498
+ ## 1.0.100 (2024-03-12)
499
+
500
+
501
+
502
+ ## 1.0.99 (2024-03-11)
503
+
504
+
505
+
506
+ ## 1.0.98 (2024-03-07)
507
+
508
+
509
+
510
+ ## 1.0.97 (2024-03-06)
511
+
512
+
513
+
514
+ ## 1.0.96 (2024-03-06)
515
+
516
+
517
+
518
+ ## 1.0.95 (2024-03-04)
519
+
520
+
521
+
522
+ ## 1.0.94 (2024-02-29)
523
+
524
+
525
+
526
+ ## 1.0.93 (2024-02-28)
527
+
528
+
529
+
530
+ ## 1.0.92 (2024-02-28)
531
+
532
+
533
+
534
+ ## 1.0.91 (2024-02-23)
535
+
536
+
537
+
538
+ ## 1.0.90 (2024-02-23)
539
+
540
+
541
+
542
+ ## 1.0.89 (2024-02-21)
543
+
544
+
545
+
546
+ ## 1.0.88 (2024-02-21)
547
+
548
+
549
+
550
+ ## 1.0.87 (2024-02-20)
551
+
552
+
553
+
554
+ ## 1.0.86 (2024-02-20)
555
+
556
+
557
+
558
+ ## 1.0.85 (2024-02-13)
559
+
560
+
561
+
562
+ ## 1.0.84 (2024-02-13)
563
+
564
+
565
+
566
+ ## 1.0.83 (2024-02-09)
567
+
568
+ **Note:** Version bump only for package @oanda/labs-currency-strength-widget
569
+
570
+
571
+
572
+
573
+
6
574
  ## 1.0.140 (2025-09-17)
7
575
 
8
576
 
@@ -14,6 +14,7 @@ var _Chart = require("./components/Chart");
14
14
  var _formatters = require("./components/Chart/formatters");
15
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
16
  const ChartWithData = _ref => {
17
+ var _data$currencyStrengt, _data$currencyStrengt2, _data$currencyStrengt3, _data$currencyStrengt4, _;
17
18
  let {
18
19
  currency
19
20
  } = _ref;
@@ -31,9 +32,9 @@ const ChartWithData = _ref => {
31
32
  } = (0, _client.useQuery)(_getCurrencyStrength.getCurrencyStrength, {
32
33
  fetchPolicy: 'cache-and-network'
33
34
  });
34
- const showChart = data?.currencyStrength && data?.currencyStrength?.length > 0;
35
- const showError = data?.currencyStrength?.length === 0 || error;
36
- const currencyData = currency ? data?.currencyStrength?.filter(item => item.currency === currency) : data?.currencyStrength?.slice().sort(_formatters.sortCurrencies);
35
+ const showChart = (data === null || data === void 0 ? void 0 : data.currencyStrength) && (data === null || data === void 0 || (_data$currencyStrengt = data.currencyStrength) === null || _data$currencyStrengt === void 0 ? void 0 : _data$currencyStrengt.length) > 0;
36
+ const showError = (data === null || data === void 0 || (_data$currencyStrengt2 = data.currencyStrength) === null || _data$currencyStrengt2 === void 0 ? void 0 : _data$currencyStrengt2.length) === 0 || error;
37
+ const currencyData = currency ? data === null || data === void 0 || (_data$currencyStrengt3 = data.currencyStrength) === null || _data$currencyStrengt3 === void 0 ? void 0 : _data$currencyStrengt3.filter(item => item.currency === currency) : data === null || data === void 0 || (_data$currencyStrengt4 = data.currencyStrength) === null || _data$currencyStrengt4 === void 0 ? void 0 : _data$currencyStrengt4.slice().sort(_formatters.sortCurrencies);
37
38
  return _react.default.createElement(_react.default.Fragment, null, loading && _react.default.createElement("div", {
38
39
  className: (0, _classnames.default)('lw-flex lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary', {
39
40
  'lw-h-[461px]': !currency,
@@ -47,13 +48,16 @@ const ChartWithData = _ref => {
47
48
  'lw-grid-cols-1': !isDesktop || currency
48
49
  }),
49
50
  "data-testid": "currency-strength-chart-wrapper"
50
- }, currencyData && currencyData.map(item => _react.default.createElement("div", {
51
- key: item.currency,
52
- className: "lw-flex lw-h-[135px] lw-flex-1 lw-items-center lw-justify-center"
53
- }, _react.default.createElement(_Chart.Chart, {
54
- currency: item.currency,
55
- values: item.strengthRelation?.slice().sort(_formatters.sortCurrencies)
56
- })))), !loading && showError && _react.default.createElement("div", {
51
+ }, currencyData && currencyData.map(item => {
52
+ var _item$strengthRelatio;
53
+ return _react.default.createElement("div", {
54
+ key: item.currency,
55
+ className: "lw-flex lw-h-[135px] lw-flex-1 lw-items-center lw-justify-center"
56
+ }, _react.default.createElement(_Chart.Chart, {
57
+ currency: item.currency,
58
+ values: (_item$strengthRelatio = item.strengthRelation) === null || _item$strengthRelatio === void 0 ? void 0 : _item$strengthRelatio.slice().sort(_formatters.sortCurrencies)
59
+ }));
60
+ })), !loading && showError && _react.default.createElement("div", {
57
61
  className: (0, _classnames.default)('lw-flex lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary', {
58
62
  'lw-h-[425px]': !currency,
59
63
  'lw-h-[135px]': currency
@@ -62,7 +66,7 @@ const ChartWithData = _ref => {
62
66
  className: "lw-mt-2 lw-h-8"
63
67
  }, _react.default.createElement(_labsWidgetCommon.LastUpdated, {
64
68
  labelCallback: lang,
65
- timestamp: data?.currencyStrength[0]?.updatedAt
69
+ timestamp: data === null || data === void 0 || (_ = data.currencyStrength[0]) === null || _ === void 0 ? void 0 : _.updatedAt
66
70
  })));
67
71
  };
68
72
  exports.ChartWithData = ChartWithData;
@@ -1 +1 @@
1
- {"version":3,"file":"ChartsWithData.js","names":["_client","require","_labsWidgetCommon","_monoI18n","_classnames","_interopRequireDefault","_react","_getCurrencyStrength","_Chart","_formatters","e","__esModule","default","ChartWithData","_ref","currency","size","useLayoutProvider","isDesktop","Size","DESKTOP","lang","useLocale","loading","data","error","useQuery","getCurrencyStrength","fetchPolicy","showChart","currencyStrength","length","showError","currencyData","filter","item","slice","sort","sortCurrencies","createElement","Fragment","className","classnames","Spinner","SpinnerSize","lg","map","key","Chart","values","strengthRelation","ChartError","LastUpdated","labelCallback","timestamp","updatedAt","exports"],"sources":["../../../src/CurrencyStrengthWidget/ChartsWithData.tsx"],"sourcesContent":["import { useQuery } from '@apollo/client';\nimport {\n ChartError,\n LastUpdated,\n Size,\n Spinner,\n SpinnerSize,\n useLayoutProvider,\n} from '@oanda/labs-widget-common';\nimport { useLocale } from '@oanda/mono-i18n';\nimport classnames from 'classnames';\nimport React from 'react';\n\nimport { getCurrencyStrength } from '../gql/getCurrencyStrength';\nimport type { GetCurrencyStrengthQuery } from '../gql/types/graphql';\nimport { Chart } from './components/Chart';\nimport { sortCurrencies } from './components/Chart/formatters';\nimport type { WidgetProps } from './types';\n\nconst ChartWithData = ({ currency }: WidgetProps) => {\n const { size } = useLayoutProvider();\n const isDesktop = size === Size.DESKTOP;\n const { lang } = useLocale();\n const { loading, data, error } = useQuery<GetCurrencyStrengthQuery>(\n getCurrencyStrength,\n {\n fetchPolicy: 'cache-and-network',\n }\n );\n\n const showChart =\n data?.currencyStrength && data?.currencyStrength?.length > 0;\n const showError = data?.currencyStrength?.length === 0 || error;\n\n const currencyData = currency\n ? data?.currencyStrength?.filter((item) => item.currency === currency)\n : data?.currencyStrength?.slice().sort(sortCurrencies);\n\n return (\n <>\n {loading && (\n <div\n className={classnames(\n 'lw-flex lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary',\n {\n 'lw-h-[461px]': !currency,\n 'lw-h-[135px]': currency,\n }\n )}\n >\n <Spinner size={SpinnerSize.lg} />\n </div>\n )}\n {!loading && showChart && (\n <div\n className={classnames('lw-grid lw-place-content-center lw-gap-7', {\n 'lw-grid-cols-3 ': isDesktop && !currency,\n 'lw-grid-cols-1': !isDesktop || currency,\n })}\n data-testid=\"currency-strength-chart-wrapper\"\n >\n {currencyData &&\n currencyData.map((item) => (\n <div\n key={item.currency}\n className=\"lw-flex lw-h-[135px] lw-flex-1 lw-items-center lw-justify-center\"\n >\n <Chart\n currency={item.currency}\n values={item.strengthRelation?.slice().sort(sortCurrencies)!}\n />\n </div>\n ))}\n </div>\n )}\n {!loading && showError && (\n <div\n className={classnames(\n 'lw-flex lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary',\n {\n 'lw-h-[425px]': !currency,\n 'lw-h-[135px]': currency,\n }\n )}\n >\n <ChartError />\n </div>\n )}\n {!loading && !showError && (\n <div className=\"lw-mt-2 lw-h-8\">\n <LastUpdated\n labelCallback={lang}\n timestamp={data?.currencyStrength![0]?.updatedAt}\n />\n </div>\n )}\n </>\n );\n};\n\nexport { ChartWithData };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAQA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAEA,IAAAM,oBAAA,GAAAN,OAAA;AAEA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AAA+D,SAAAI,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG/D,MAAMG,aAAa,GAAGC,IAAA,IAA+B;EAAA,IAA9B;IAAEC;EAAsB,CAAC,GAAAD,IAAA;EAC9C,MAAM;IAAEE;EAAK,CAAC,GAAG,IAAAC,mCAAiB,EAAC,CAAC;EACpC,MAAMC,SAAS,GAAGF,IAAI,KAAKG,sBAAI,CAACC,OAAO;EACvC,MAAM;IAAEC;EAAK,CAAC,GAAG,IAAAC,mBAAS,EAAC,CAAC;EAC5B,MAAM;IAAEC,OAAO;IAAEC,IAAI;IAAEC;EAAM,CAAC,GAAG,IAAAC,gBAAQ,EACvCC,wCAAmB,EACnB;IACEC,WAAW,EA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EAAkE,GAE5EnC,MAAA,CAAAM,OAAA,CAAA2B,aAAA,CAAC/B,MAAA,CAAAwC,KAAK;IACJjC,QAAQ,EAAEoB,IAAI,CAACpB,QAAS;IACxBkC,MAAM,EAAEd,IAAI,CAACe,gBAAgB,EAAEd,KAAK,CAAC,CAAC,CAACC,IAAI,CAACC,0BAAc;EAAG,CAC9D,CACE,CACN,CACA,CACN,EACA,CAACf,OAAO,IAAIS,SAAS,IACpB1B,MAAA,CAAAM,OAAA,CAAA2B,aAAA;IACEE,SAAS,EAAE,IAAAC,mBAAU,EACnB,sFAAsF,EACtF;MACE,cAAc,EAAE,CAAC3B,QAAQ;MACzB,cAAc,EAAEA;IAClB,CACF;EAAE,GAEFT,MAAA,CAAAM,OAAA,CAAA2B,aAAA,CAACrC,iBAAA,CAAAiD,UAAU,MAAE,CACV,CACN,EACA,CAAC5B,OAAO,IAAI,CAACS,SAAS,IACrB1B,MAAA,CAAAM,OAAA,CAAA2B,aAAA;IAAKE,SAAS,EAAC;EAAgB,GAC7BnC,MAAA,CAAAM,OAAA,CAAA2B,aAAA,CAACrC,iBAAA,CAAAkD,WAAW;IACVC,aAAa,EAAEhC,IAAK;IACpBiC,SAAS,EAAE9B,IAAI,EAAEM,gBAAgB,CAAE,CAAC,CAAC,EAAEyB;EAAU,CAClD,CACE,CAEP,CAAC;AAEP,CAAC;AAACC,OAAA,CAAA3C,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"ChartsWithData.js","names":["_client","require","_labsWidgetCommon","_monoI18n","_classnames","_interopRequireDefault","_react","_getCurrencyStrength","_Chart","_formatters","e","__esModule","default","ChartWithData","_ref","_data$currencyStrengt","_data$currencyStrengt2","_data$currencyStrengt3","_data$currencyStrengt4","_","currency","size","useLayoutProvider","isDesktop","Size","DESKTOP","lang","useLocale","loading","data","error","useQuery","getCurrencyStrength","fetchPolicy","showChart","currencyStrength","length","showError","currencyData","filter","item","slice","sort","sortCurrencies","createElement","Fragment","className","classnames","Spinner","SpinnerSize","lg","map","_item$strengthRelatio","key","Chart","values","strengthRelation","ChartError","LastUpdated","labelCallback","timestamp","updatedAt","exports"],"sources":["../../../src/CurrencyStrengthWidget/ChartsWithData.tsx"],"sourcesContent":["import { useQuery } from '@apollo/client';\nimport {\n ChartError,\n LastUpdated,\n Size,\n Spinner,\n SpinnerSize,\n useLayoutProvider,\n} from '@oanda/labs-widget-common';\nimport { useLocale } from '@oanda/mono-i18n';\nimport classnames from 'classnames';\nimport React from 'react';\n\nimport { getCurrencyStrength } from '../gql/getCurrencyStrength';\nimport type { GetCurrencyStrengthQuery } from '../gql/types/graphql';\nimport { Chart } from './components/Chart';\nimport { sortCurrencies } from './components/Chart/formatters';\nimport type { WidgetProps } from './types';\n\nconst ChartWithData = ({ currency }: WidgetProps) => {\n const { size } = useLayoutProvider();\n const isDesktop = size === Size.DESKTOP;\n const { lang } = useLocale();\n const { loading, data, error } = useQuery<GetCurrencyStrengthQuery>(\n getCurrencyStrength,\n {\n fetchPolicy: 'cache-and-network',\n }\n );\n\n const showChart =\n data?.currencyStrength && data?.currencyStrength?.length > 0;\n const showError = data?.currencyStrength?.length === 0 || error;\n\n const currencyData = currency\n ? data?.currencyStrength?.filter((item) => item.currency === currency)\n : data?.currencyStrength?.slice().sort(sortCurrencies);\n\n return (\n <>\n {loading && (\n <div\n className={classnames(\n 'lw-flex lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary',\n {\n 'lw-h-[461px]': !currency,\n 'lw-h-[135px]': currency,\n }\n )}\n >\n <Spinner size={SpinnerSize.lg} />\n </div>\n )}\n {!loading && showChart && (\n <div\n className={classnames('lw-grid lw-place-content-center lw-gap-7', {\n 'lw-grid-cols-3 ': isDesktop && !currency,\n 'lw-grid-cols-1': !isDesktop || currency,\n })}\n data-testid=\"currency-strength-chart-wrapper\"\n >\n {currencyData &&\n currencyData.map((item) => (\n <div\n key={item.currency}\n className=\"lw-flex lw-h-[135px] lw-flex-1 lw-items-center lw-justify-center\"\n >\n <Chart\n currency={item.currency}\n values={item.strengthRelation?.slice().sort(sortCurrencies)!}\n />\n </div>\n ))}\n </div>\n )}\n {!loading && showError && (\n <div\n className={classnames(\n 'lw-flex lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary',\n {\n 'lw-h-[425px]': !currency,\n 'lw-h-[135px]': currency,\n }\n )}\n >\n <ChartError />\n </div>\n )}\n {!loading && !showError && (\n <div className=\"lw-mt-2 lw-h-8\">\n <LastUpdated\n labelCallback={lang}\n timestamp={data?.currencyStrength![0]?.updatedAt}\n />\n </div>\n )}\n </>\n );\n};\n\nexport { ChartWithData };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAQA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAEA,IAAAM,oBAAA,GAAAN,OAAA;AAEA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AAA+D,SAAAI,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG/D,MAAMG,aAAa,GAAGC,IAAA,IAA+B;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,sBAAA,EAAAC,sBAAA,EAAAC,CAAA;EAAA,IAA9B;IAAEC;EAAsB,CAAC,GAAAN,IAAA;EAC9C,MAAM;IAAEO;EAAK,CAAC,GAAG,IAAAC,mCAAiB,EAAC,CAAC;EACpC,MAAMC,SAAS,GAAGF,IAAI,KAAKG,sBAAI,CAACC,OAAO;EACvC,MAAM;IAAEC;EAAK,CAAC,GAAG,IAAAC,mBAAS,EAAC,CAAC;EAC5B,MAAM;IAAEC,OAAO;IAAEC,IAAI;IAAEC;EAAM,CAAC,GAAG,IAAAC,gBAAQ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AI,aAAJA,IAAI,gBAAAV,CAAA,GAAJU,IAAI,CAAEM,gBAAgB,CAAE,CAAC,CAAC,cAAAhB,CAAA,uBAA1BA,CAAA,CAA4B0C;EAAU,CAClD,CACE,CAEP,CAAC;AAEP,CAAC;AAACC,OAAA,CAAAjD,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -23,9 +23,9 @@ const Main = _ref => {
23
23
  "data-testid": "currency-strength-wrapper"
24
24
  }, _react.default.createElement("div", {
25
25
  className: "lw-mb-8 lw-flex lw-justify-center lw-font-sans lw-text-lg lw-font-bold"
26
- }, _react.default.createElement("span", null, `${lang('daily')} (${lang('minute', {
26
+ }, _react.default.createElement("span", null, "".concat(lang('daily'), " (").concat(lang('minute', {
27
27
  count: 5
28
- })})`)), _react.default.createElement(_ChartsWithData.ChartWithData, {
28
+ }), ")"))), _react.default.createElement(_ChartsWithData.ChartWithData, {
29
29
  currency: currency
30
30
  })));
31
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Main.js","names":["_labsWidgetCommon","require","_monoI18n","_react","_interopRequireDefault","_ChartsWithData","e","__esModule","default","Main","_ref","currency","lang","useLocale","size","useLayoutProvider","createElement","Fragment","className","count","ChartWithData","exports"],"sources":["../../../src/CurrencyStrengthWidget/Main.tsx"],"sourcesContent":["import { useLayoutProvider } from '@oanda/labs-widget-common';\nimport { useLocale } from '@oanda/mono-i18n';\nimport React from 'react';\n\nimport { ChartWithData } from './ChartsWithData';\nimport type { WidgetProps } from './types';\n\nconst Main = ({ currency }: WidgetProps) => {\n const { lang } = useLocale();\n const { size } = useLayoutProvider();\n\n return (\n <>\n {size && (\n <div data-testid=\"currency-strength-wrapper\">\n <div className=\"lw-mb-8 lw-flex lw-justify-center lw-font-sans lw-text-lg lw-font-bold\">\n <span>{`${lang('daily')} (${lang('minute', { count: 5 })})`}</span>\n </div>\n <ChartWithData currency={currency} />\n </div>\n )}\n </>\n );\n};\n\nexport { Main };\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AAAiD,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGjD,MAAMG,IAAI,GAAGC,IAAA,IAA+B;EAAA,IAA9B;IAAEC;EAAsB,CAAC,GAAAD,IAAA;EACrC,MAAM;IAAEE;EAAK,CAAC,GAAG,IAAAC,mBAAS,EAAC,CAAC;EAC5B,MAAM;IAAEC;EAAK,CAAC,GAAG,IAAAC,mCAAiB,EAAC,CAAC;EAEpC,OACEZ,MAAA,CAAAK,OAAA,CAAAQ,aAAA,CAAAb,MAAA,CAAAK,OAAA,CAAAS,QAAA,QACGH,IAAI,IACHX,MAAA,CAAAK,OAAA,CAAAQ,aAAA;IAAK,eAAY;EAA2B,GAC1Cb,MAAA,CAAAK,OAAA,CAAAQ,aAAA;IAAKE,SAAS,EAAC;EAAwE,GACrFf,MAAA,CAAAK,OAAA,CAAAQ,aAAA,eAAO,GAAGJ,IAAI,CAAC,OAAO,CAAC,KAAKA,IAAI,CAAC,QAAQ,EAAE;IAAEO,KAAK,EAAE;EAAE,CAAC,CAAC,GAAU,CAC/D,CAAC,EACNhB,MAAA,CAAAK,OAAA,CAAAQ,aAAA,CAACX,eAAA,CAAAe,aAAa;IAACT,QAAQ,EAAEA;EAAS,CAAE,CACjC,CAEP,CAAC;AAEP,CAAC;AAACU,OAAA,CAAAZ,IAAA,GAAAA,IAAA","ignoreList":[]}
1
+ {"version":3,"file":"Main.js","names":["_labsWidgetCommon","require","_monoI18n","_react","_interopRequireDefault","_ChartsWithData","e","__esModule","default","Main","_ref","currency","lang","useLocale","size","useLayoutProvider","createElement","Fragment","className","concat","count","ChartWithData","exports"],"sources":["../../../src/CurrencyStrengthWidget/Main.tsx"],"sourcesContent":["import { useLayoutProvider } from '@oanda/labs-widget-common';\nimport { useLocale } from '@oanda/mono-i18n';\nimport React from 'react';\n\nimport { ChartWithData } from './ChartsWithData';\nimport type { WidgetProps } from './types';\n\nconst Main = ({ currency }: WidgetProps) => {\n const { lang } = useLocale();\n const { size } = useLayoutProvider();\n\n return (\n <>\n {size && (\n <div data-testid=\"currency-strength-wrapper\">\n <div className=\"lw-mb-8 lw-flex lw-justify-center lw-font-sans lw-text-lg lw-font-bold\">\n <span>{`${lang('daily')} (${lang('minute', { count: 5 })})`}</span>\n </div>\n <ChartWithData currency={currency} />\n </div>\n )}\n </>\n );\n};\n\nexport { Main };\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AAAiD,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGjD,MAAMG,IAAI,GAAGC,IAAA,IAA+B;EAAA,IAA9B;IAAEC;EAAsB,CAAC,GAAAD,IAAA;EACrC,MAAM;IAAEE;EAAK,CAAC,GAAG,IAAAC,mBAAS,EAAC,CAAC;EAC5B,MAAM;IAAEC;EAAK,CAAC,GAAG,IAAAC,mCAAiB,EAAC,CAAC;EAEpC,OACEZ,MAAA,CAAAK,OAAA,CAAAQ,aAAA,CAAAb,MAAA,CAAAK,OAAA,CAAAS,QAAA,QACGH,IAAI,IACHX,MAAA,CAAAK,OAAA,CAAAQ,aAAA;IAAK,eAAY;EAA2B,GAC1Cb,MAAA,CAAAK,OAAA,CAAAQ,aAAA;IAAKE,SAAS,EAAC;EAAwE,GACrFf,MAAA,CAAAK,OAAA,CAAAQ,aAAA,kBAAAG,MAAA,CAAUP,IAAI,CAAC,OAAO,CAAC,QAAAO,MAAA,CAAKP,IAAI,CAAC,QAAQ,EAAE;IAAEQ,KAAK,EAAE;EAAE,CAAC,CAAC,MAAU,CAC/D,CAAC,EACNjB,MAAA,CAAAK,OAAA,CAAAQ,aAAA,CAACX,eAAA,CAAAgB,aAAa;IAACV,QAAQ,EAAEA;EAAS,CAAE,CACjC,CAEP,CAAC;AAEP,CAAC;AAACW,OAAA,CAAAb,IAAA,GAAAA,IAAA","ignoreList":[]}
@@ -14,8 +14,7 @@ var _react = _interopRequireDefault(require("react"));
14
14
  var _constants = require("./constants");
15
15
  var _getOption = require("./getOption");
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
19
18
  echarts.use([_components.GridSimpleComponent, _components.GraphicComponent, _components.TooltipComponent, _components.TitleComponent, _charts.BarChart, _renderers.CanvasRenderer]);
20
19
  echarts.registerTheme('dark_theme', (0, _labsWidgetCommon.getChartTheme)(_labsWidgetCommon.Theme.Dark));
21
20
  echarts.registerTheme('light_theme', (0, _labsWidgetCommon.getChartTheme)(_labsWidgetCommon.Theme.Light));