@oanda/labs-currency-power-balance-widget 1.0.72 → 1.0.74

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 (44) hide show
  1. package/CHANGELOG.md +596 -0
  2. package/dist/main/CurrencyPowerBalanceWidget/ChartWithData.js +3 -4
  3. package/dist/main/CurrencyPowerBalanceWidget/ChartWithData.js.map +1 -1
  4. package/dist/main/CurrencyPowerBalanceWidget/CurrencyPowerBalance.js +1 -1
  5. package/dist/main/CurrencyPowerBalanceWidget/CurrencyPowerBalance.js.map +1 -1
  6. package/dist/main/CurrencyPowerBalanceWidget/Main.js +2 -2
  7. package/dist/main/CurrencyPowerBalanceWidget/Main.js.map +1 -1
  8. package/dist/main/CurrencyPowerBalanceWidget/components/Chart/Chart.js +2 -2
  9. package/dist/main/CurrencyPowerBalanceWidget/components/Chart/Chart.js.map +1 -1
  10. package/dist/main/CurrencyPowerBalanceWidget/components/Chart/options/formatters.js +15 -6
  11. package/dist/main/CurrencyPowerBalanceWidget/components/Chart/options/formatters.js.map +1 -1
  12. package/dist/main/CurrencyPowerBalanceWidget/components/Chart/options/getResponsiveOption.js +2 -2
  13. package/dist/main/CurrencyPowerBalanceWidget/components/Chart/options/getResponsiveOption.js.map +1 -1
  14. package/dist/main/CurrencyPowerBalanceWidget/components/TimeUnitSwitch/TimeUnitSelect.js +1 -1
  15. package/dist/main/CurrencyPowerBalanceWidget/components/TimeUnitSwitch/TimeUnitSelect.js.map +1 -1
  16. package/dist/main/CurrencyPowerBalanceWidget/render.js +1 -1
  17. package/dist/main/CurrencyPowerBalanceWidget/render.js.map +1 -1
  18. package/dist/main/gql/getCurrencyPowerBalance.js +12 -3
  19. package/dist/main/gql/getCurrencyPowerBalance.js.map +1 -1
  20. package/dist/main/gql/types/fragment-masking.js +2 -3
  21. package/dist/main/gql/types/fragment-masking.js.map +1 -1
  22. package/dist/main/gql/types/gql.js +1 -2
  23. package/dist/main/gql/types/gql.js.map +1 -1
  24. package/dist/main/translations/index.js +1 -1
  25. package/dist/main/translations/index.js.map +1 -1
  26. package/dist/module/CurrencyPowerBalanceWidget/ChartWithData.js +3 -4
  27. package/dist/module/CurrencyPowerBalanceWidget/ChartWithData.js.map +1 -1
  28. package/dist/module/CurrencyPowerBalanceWidget/Main.js +2 -2
  29. package/dist/module/CurrencyPowerBalanceWidget/Main.js.map +1 -1
  30. package/dist/module/CurrencyPowerBalanceWidget/components/Chart/Chart.js +1 -1
  31. package/dist/module/CurrencyPowerBalanceWidget/components/Chart/Chart.js.map +1 -1
  32. package/dist/module/CurrencyPowerBalanceWidget/components/Chart/options/formatters.js +15 -6
  33. package/dist/module/CurrencyPowerBalanceWidget/components/Chart/options/formatters.js.map +1 -1
  34. package/dist/module/CurrencyPowerBalanceWidget/components/Chart/options/getResponsiveOption.js +2 -2
  35. package/dist/module/CurrencyPowerBalanceWidget/components/Chart/options/getResponsiveOption.js.map +1 -1
  36. package/dist/module/gql/getCurrencyPowerBalance.js +12 -3
  37. package/dist/module/gql/getCurrencyPowerBalance.js.map +1 -1
  38. package/dist/module/gql/types/fragment-masking.js +2 -3
  39. package/dist/module/gql/types/fragment-masking.js.map +1 -1
  40. package/dist/module/gql/types/gql.js +1 -2
  41. package/dist/module/gql/types/gql.js.map +1 -1
  42. package/dist/types/CurrencyPowerBalanceWidget/components/Chart/options/formatters.d.ts +1 -1
  43. package/dist/types/gql/types/graphql.d.ts +1 -3
  44. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,602 @@
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.74 (2024-07-03)
7
+
8
+
9
+
10
+ ## 1.0.134 (2024-07-03)
11
+
12
+
13
+
14
+ ## 1.0.133 (2024-06-28)
15
+
16
+
17
+
18
+ ## 1.0.132 (2024-06-27)
19
+
20
+
21
+
22
+ ## 1.0.131 (2024-06-27)
23
+
24
+
25
+
26
+ ## 1.0.130 (2024-06-26)
27
+
28
+
29
+
30
+ ## 1.0.129 (2024-06-17)
31
+
32
+
33
+
34
+ ## 1.0.128 (2024-06-17)
35
+
36
+
37
+
38
+ ## 1.0.127 (2024-06-10)
39
+
40
+
41
+
42
+ ## 1.0.126 (2024-05-29)
43
+
44
+
45
+
46
+ ## 1.0.125 (2024-05-29)
47
+
48
+
49
+
50
+ ## 1.0.124 (2024-05-29)
51
+
52
+
53
+
54
+ ## 1.0.123 (2024-05-28)
55
+
56
+
57
+
58
+ ## 1.0.122 (2024-05-27)
59
+
60
+
61
+
62
+ ## 1.0.121 (2024-05-27)
63
+
64
+
65
+
66
+ ## 1.0.120 (2024-05-24)
67
+
68
+
69
+
70
+ ## 1.0.119 (2024-05-17)
71
+
72
+
73
+
74
+ ## 1.0.118 (2024-05-09)
75
+
76
+
77
+
78
+ ## 1.0.117 (2024-05-07)
79
+
80
+
81
+
82
+ ## 1.0.116 (2024-04-23)
83
+
84
+
85
+
86
+ ## 1.0.115 (2024-04-22)
87
+
88
+
89
+
90
+ ## 1.0.114 (2024-04-19)
91
+
92
+
93
+
94
+ ## 1.0.113 (2024-04-19)
95
+
96
+
97
+
98
+ ## 1.0.112 (2024-04-15)
99
+
100
+
101
+
102
+ ## 1.0.111 (2024-04-11)
103
+
104
+
105
+
106
+ ## 1.0.110 (2024-04-05)
107
+
108
+
109
+
110
+ ## 1.0.109 (2024-04-05)
111
+
112
+
113
+
114
+ ## 1.0.108 (2024-04-04)
115
+
116
+
117
+
118
+ ## 1.0.107 (2024-04-03)
119
+
120
+
121
+
122
+ ## 1.0.106 (2024-03-29)
123
+
124
+
125
+
126
+ ## 1.0.105 (2024-03-28)
127
+
128
+
129
+
130
+ ## 1.0.104 (2024-03-21)
131
+
132
+
133
+
134
+ ## 1.0.103 (2024-03-20)
135
+
136
+
137
+
138
+ ## 1.0.102 (2024-03-20)
139
+
140
+
141
+
142
+ ## 1.0.101 (2024-03-13)
143
+
144
+
145
+
146
+ ## 1.0.100 (2024-03-12)
147
+
148
+
149
+
150
+ ## 1.0.99 (2024-03-11)
151
+
152
+
153
+
154
+ ## 1.0.98 (2024-03-07)
155
+
156
+
157
+
158
+ ## 1.0.97 (2024-03-06)
159
+
160
+
161
+
162
+ ## 1.0.96 (2024-03-06)
163
+
164
+
165
+
166
+ ## 1.0.95 (2024-03-04)
167
+
168
+
169
+
170
+ ## 1.0.94 (2024-02-29)
171
+
172
+
173
+
174
+ ## 1.0.93 (2024-02-28)
175
+
176
+
177
+
178
+ ## 1.0.92 (2024-02-28)
179
+
180
+
181
+
182
+ ## 1.0.91 (2024-02-23)
183
+
184
+
185
+
186
+ ## 1.0.90 (2024-02-23)
187
+
188
+
189
+
190
+ ## 1.0.89 (2024-02-21)
191
+
192
+
193
+
194
+ ## 1.0.88 (2024-02-21)
195
+
196
+
197
+
198
+ ## 1.0.87 (2024-02-20)
199
+
200
+
201
+
202
+ ## 1.0.86 (2024-02-20)
203
+
204
+
205
+
206
+ ## 1.0.85 (2024-02-13)
207
+
208
+
209
+
210
+ ## 1.0.84 (2024-02-13)
211
+
212
+
213
+
214
+ ## 1.0.83 (2024-02-09)
215
+
216
+
217
+
218
+ ## 1.0.82 (2024-02-05)
219
+
220
+
221
+
222
+ ## 1.0.81 (2024-02-05)
223
+
224
+
225
+
226
+ ## 1.0.80 (2024-02-05)
227
+
228
+
229
+
230
+ ## 1.0.79 (2024-02-05)
231
+
232
+
233
+
234
+ ## 1.0.78 (2024-01-30)
235
+
236
+
237
+
238
+ ## 1.0.77 (2024-01-25)
239
+
240
+
241
+
242
+ ## 1.0.76 (2024-01-25)
243
+
244
+
245
+
246
+ ## 1.0.75 (2024-01-22)
247
+
248
+
249
+
250
+ ## 1.0.74 (2024-01-22)
251
+
252
+
253
+
254
+ ## 1.0.73 (2024-01-22)
255
+
256
+
257
+
258
+ ## 1.0.72 (2024-01-19)
259
+
260
+
261
+
262
+ ## 1.0.71 (2024-01-18)
263
+
264
+
265
+
266
+ ## 1.0.70 (2024-01-17)
267
+
268
+
269
+
270
+ ## 1.0.69 (2024-01-17)
271
+
272
+
273
+
274
+ ## 1.0.68 (2024-01-15)
275
+
276
+
277
+
278
+ ## 1.0.67 (2024-01-15)
279
+
280
+
281
+
282
+ ## 1.0.66 (2024-01-12)
283
+
284
+
285
+
286
+ ## 1.0.65 (2024-01-11)
287
+
288
+
289
+
290
+ ## 1.0.64 (2024-01-11)
291
+
292
+
293
+
294
+ ## 1.0.63 (2024-01-11)
295
+
296
+
297
+
298
+ ## 1.0.62 (2024-01-10)
299
+
300
+ **Note:** Version bump only for package @oanda/labs-currency-power-balance-widget
301
+
302
+
303
+
304
+
305
+
306
+ ## 1.0.73 (2024-07-03)
307
+
308
+
309
+
310
+ ## 1.0.133 (2024-06-28)
311
+
312
+
313
+
314
+ ## 1.0.132 (2024-06-27)
315
+
316
+
317
+
318
+ ## 1.0.131 (2024-06-27)
319
+
320
+
321
+
322
+ ## 1.0.130 (2024-06-26)
323
+
324
+
325
+
326
+ ## 1.0.129 (2024-06-17)
327
+
328
+
329
+
330
+ ## 1.0.128 (2024-06-17)
331
+
332
+
333
+
334
+ ## 1.0.127 (2024-06-10)
335
+
336
+
337
+
338
+ ## 1.0.126 (2024-05-29)
339
+
340
+
341
+
342
+ ## 1.0.125 (2024-05-29)
343
+
344
+
345
+
346
+ ## 1.0.124 (2024-05-29)
347
+
348
+
349
+
350
+ ## 1.0.123 (2024-05-28)
351
+
352
+
353
+
354
+ ## 1.0.122 (2024-05-27)
355
+
356
+
357
+
358
+ ## 1.0.121 (2024-05-27)
359
+
360
+
361
+
362
+ ## 1.0.120 (2024-05-24)
363
+
364
+
365
+
366
+ ## 1.0.119 (2024-05-17)
367
+
368
+
369
+
370
+ ## 1.0.118 (2024-05-09)
371
+
372
+
373
+
374
+ ## 1.0.117 (2024-05-07)
375
+
376
+
377
+
378
+ ## 1.0.116 (2024-04-23)
379
+
380
+
381
+
382
+ ## 1.0.115 (2024-04-22)
383
+
384
+
385
+
386
+ ## 1.0.114 (2024-04-19)
387
+
388
+
389
+
390
+ ## 1.0.113 (2024-04-19)
391
+
392
+
393
+
394
+ ## 1.0.112 (2024-04-15)
395
+
396
+
397
+
398
+ ## 1.0.111 (2024-04-11)
399
+
400
+
401
+
402
+ ## 1.0.110 (2024-04-05)
403
+
404
+
405
+
406
+ ## 1.0.109 (2024-04-05)
407
+
408
+
409
+
410
+ ## 1.0.108 (2024-04-04)
411
+
412
+
413
+
414
+ ## 1.0.107 (2024-04-03)
415
+
416
+
417
+
418
+ ## 1.0.106 (2024-03-29)
419
+
420
+
421
+
422
+ ## 1.0.105 (2024-03-28)
423
+
424
+
425
+
426
+ ## 1.0.104 (2024-03-21)
427
+
428
+
429
+
430
+ ## 1.0.103 (2024-03-20)
431
+
432
+
433
+
434
+ ## 1.0.102 (2024-03-20)
435
+
436
+
437
+
438
+ ## 1.0.101 (2024-03-13)
439
+
440
+
441
+
442
+ ## 1.0.100 (2024-03-12)
443
+
444
+
445
+
446
+ ## 1.0.99 (2024-03-11)
447
+
448
+
449
+
450
+ ## 1.0.98 (2024-03-07)
451
+
452
+
453
+
454
+ ## 1.0.97 (2024-03-06)
455
+
456
+
457
+
458
+ ## 1.0.96 (2024-03-06)
459
+
460
+
461
+
462
+ ## 1.0.95 (2024-03-04)
463
+
464
+
465
+
466
+ ## 1.0.94 (2024-02-29)
467
+
468
+
469
+
470
+ ## 1.0.93 (2024-02-28)
471
+
472
+
473
+
474
+ ## 1.0.92 (2024-02-28)
475
+
476
+
477
+
478
+ ## 1.0.91 (2024-02-23)
479
+
480
+
481
+
482
+ ## 1.0.90 (2024-02-23)
483
+
484
+
485
+
486
+ ## 1.0.89 (2024-02-21)
487
+
488
+
489
+
490
+ ## 1.0.88 (2024-02-21)
491
+
492
+
493
+
494
+ ## 1.0.87 (2024-02-20)
495
+
496
+
497
+
498
+ ## 1.0.86 (2024-02-20)
499
+
500
+
501
+
502
+ ## 1.0.85 (2024-02-13)
503
+
504
+
505
+
506
+ ## 1.0.84 (2024-02-13)
507
+
508
+
509
+
510
+ ## 1.0.83 (2024-02-09)
511
+
512
+
513
+
514
+ ## 1.0.82 (2024-02-05)
515
+
516
+
517
+
518
+ ## 1.0.81 (2024-02-05)
519
+
520
+
521
+
522
+ ## 1.0.80 (2024-02-05)
523
+
524
+
525
+
526
+ ## 1.0.79 (2024-02-05)
527
+
528
+
529
+
530
+ ## 1.0.78 (2024-01-30)
531
+
532
+
533
+
534
+ ## 1.0.77 (2024-01-25)
535
+
536
+
537
+
538
+ ## 1.0.76 (2024-01-25)
539
+
540
+
541
+
542
+ ## 1.0.75 (2024-01-22)
543
+
544
+
545
+
546
+ ## 1.0.74 (2024-01-22)
547
+
548
+
549
+
550
+ ## 1.0.73 (2024-01-22)
551
+
552
+
553
+
554
+ ## 1.0.72 (2024-01-19)
555
+
556
+
557
+
558
+ ## 1.0.71 (2024-01-18)
559
+
560
+
561
+
562
+ ## 1.0.70 (2024-01-17)
563
+
564
+
565
+
566
+ ## 1.0.69 (2024-01-17)
567
+
568
+
569
+
570
+ ## 1.0.68 (2024-01-15)
571
+
572
+
573
+
574
+ ## 1.0.67 (2024-01-15)
575
+
576
+
577
+
578
+ ## 1.0.66 (2024-01-12)
579
+
580
+
581
+
582
+ ## 1.0.65 (2024-01-11)
583
+
584
+
585
+
586
+ ## 1.0.64 (2024-01-11)
587
+
588
+
589
+
590
+ ## 1.0.63 (2024-01-11)
591
+
592
+
593
+
594
+ ## 1.0.62 (2024-01-10)
595
+
596
+ **Note:** Version bump only for package @oanda/labs-currency-power-balance-widget
597
+
598
+
599
+
600
+
601
+
6
602
  ## 1.0.72 (2024-06-28)
7
603
 
8
604
 
@@ -14,7 +14,6 @@ var _getCurrencyPowerBalance = require("../gql/getCurrencyPowerBalance");
14
14
  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); }
15
15
  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; }
16
16
  const ChartWithData = _ref => {
17
- var _data$currencyPowerBa, _;
18
17
  let {
19
18
  timeUnit,
20
19
  currencies
@@ -36,13 +35,13 @@ const ChartWithData = _ref => {
36
35
  },
37
36
  fetchPolicy: 'cache-and-network'
38
37
  });
39
- const showError = (data === null || data === void 0 || (_data$currencyPowerBa = data.currencyPowerBalance) === null || _data$currencyPowerBa === void 0 ? void 0 : _data$currencyPowerBa.length) === 0 || error || currencies && (currencies.length === 0 || currencies.length === 1);
38
+ const showError = data?.currencyPowerBalance?.length === 0 || error || currencies && (currencies.length === 0 || currencies.length === 1);
40
39
  return _react.default.createElement(_react.default.Fragment, null, loading && _react.default.createElement("div", {
41
40
  className: "lw-mb-[50px] lw-flex lw-h-[375px] lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary"
42
41
  }, _react.default.createElement(_labsWidgetCommon.Spinner, {
43
42
  size: _labsWidgetCommon.SpinnerSize.lg
44
43
  })), !loading && !showError && _react.default.createElement(_Chart.Chart, {
45
- values: data === null || data === void 0 ? void 0 : data.currencyPowerBalance,
44
+ values: data?.currencyPowerBalance,
46
45
  timeUnit: timeUnit,
47
46
  currencies: currencies
48
47
  }), !loading && showError && _react.default.createElement("div", {
@@ -52,7 +51,7 @@ const ChartWithData = _ref => {
52
51
  }), _react.default.createElement("div", {
53
52
  className: "lw-mt-2 lw-h-8"
54
53
  }, !loading && !showError && _react.default.createElement(_labsWidgetCommon.LastUpdated, {
55
- timestamp: data === null || data === void 0 || (_ = data.currencyPowerBalance[0]) === null || _ === void 0 ? void 0 : _.updatedAt,
54
+ timestamp: data?.currencyPowerBalance[0]?.updatedAt,
56
55
  labelCallback: lang
57
56
  })));
58
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ChartWithData.js","names":["_react","_interopRequireWildcard","require","_client","_monoI18n","_labsWidgetCommon","_Chart","_constants","_getCurrencyPowerBalance","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ChartWithData","_ref","_data$currencyPowerBa","_","timeUnit","currencies","size","useContext","ThemeContext","isDesktop","Size","DESKTOP","lang","useLocale","loading","data","error","useQuery","getCurrencyPowerBalance","variables","fetchPolicy","showError","currencyPowerBalance","length","createElement","Fragment","className","Spinner","SpinnerSize","lg","Chart","values","ChartError","Tooltip","id","CURRENCY_POWER_BALANCE_TOOLTIP_ID","LastUpdated","timestamp","updatedAt","labelCallback","exports"],"sources":["../../../src/CurrencyPowerBalanceWidget/ChartWithData.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useQuery } from '@apollo/client';\nimport { useLocale } from '@oanda/mono-i18n';\nimport {\n ChartError, Spinner, SpinnerSize, ThemeContext, Tooltip, Size,\n LastUpdated,\n} from '@oanda/labs-widget-common';\nimport { Chart } from './components/Chart';\nimport { CURRENCY_POWER_BALANCE_TOOLTIP_ID } from './constants';\nimport { getCurrencyPowerBalance } from '../gql/getCurrencyPowerBalance';\nimport { ChartWithDataProps } from './types';\nimport { GetCurrencyPowerBalanceQuery, GetCurrencyPowerBalanceQueryVariables } from '../gql/types/graphql';\n\nconst ChartWithData = ({ timeUnit, currencies }: ChartWithDataProps) => {\n const { size } = useContext(ThemeContext);\n const isDesktop = size === Size.DESKTOP;\n const { lang } = useLocale();\n const { loading, data, error } = useQuery<\n GetCurrencyPowerBalanceQuery,\n GetCurrencyPowerBalanceQueryVariables\n >(getCurrencyPowerBalance, {\n variables: {\n timeUnit,\n },\n fetchPolicy: 'cache-and-network',\n });\n\n const showError = data?.currencyPowerBalance?.length === 0 || error\n || (currencies && (currencies.length === 0 || currencies.length === 1));\n\n return (\n <>\n {loading\n && (\n <div className=\"lw-mb-[50px] lw-flex lw-h-[375px] lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary\">\n <Spinner size={SpinnerSize.lg} />\n </div>\n )}\n {!loading && !showError && (\n <Chart values={data?.currencyPowerBalance!} timeUnit={timeUnit} currencies={currencies} />\n )}\n {!loading && showError && (\n <div className=\"lw-flex lw-h-[375px] lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary\">\n <ChartError />\n </div>\n )}\n {isDesktop && <Tooltip id={CURRENCY_POWER_BALANCE_TOOLTIP_ID} />}\n <div className=\"lw-mt-2 lw-h-8\">\n {!loading && !showError && (\n <LastUpdated\n timestamp={data?.currencyPowerBalance![0]?.updatedAt}\n labelCallback={lang}\n />\n )}\n </div>\n </>\n );\n};\n\nexport { ChartWithData };\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAIA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,wBAAA,GAAAN,OAAA;AAAyE,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CA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AAe,OAAA,CAAAsC,aAAA,CAAChD,iBAAA,CAAA4D,WAAW;IACVC,SAAS,EAAEtB,IAAI,aAAJA,IAAI,gBAAAZ,CAAA,GAAJY,IAAI,CAAEO,oBAAoB,CAAE,CAAC,CAAC,cAAAnB,CAAA,uBAA9BA,CAAA,CAAgCmC,SAAU;IACrDC,aAAa,EAAE3B;EAAK,CACrB,CAEA,CACL,CAAC;AAEP,CAAC;AAAC4B,OAAA,CAAAxC,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"ChartWithData.js","names":["_react","_interopRequireWildcard","require","_client","_monoI18n","_labsWidgetCommon","_Chart","_constants","_getCurrencyPowerBalance","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ChartWithData","_ref","timeUnit","currencies","size","useContext","ThemeContext","isDesktop","Size","DESKTOP","lang","useLocale","loading","data","error","useQuery","getCurrencyPowerBalance","variables","fetchPolicy","showError","currencyPowerBalance","length","createElement","Fragment","className","Spinner","SpinnerSize","lg","Chart","values","ChartError","Tooltip","id","CURRENCY_POWER_BALANCE_TOOLTIP_ID","LastUpdated","timestamp","updatedAt","labelCallback","exports"],"sources":["../../../src/CurrencyPowerBalanceWidget/ChartWithData.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useQuery } from '@apollo/client';\nimport { useLocale } from '@oanda/mono-i18n';\nimport {\n ChartError, Spinner, SpinnerSize, ThemeContext, Tooltip, Size,\n LastUpdated,\n} from '@oanda/labs-widget-common';\nimport { Chart } from './components/Chart';\nimport { CURRENCY_POWER_BALANCE_TOOLTIP_ID } from './constants';\nimport { getCurrencyPowerBalance } from '../gql/getCurrencyPowerBalance';\nimport { ChartWithDataProps } from './types';\nimport { GetCurrencyPowerBalanceQuery, GetCurrencyPowerBalanceQueryVariables } from '../gql/types/graphql';\n\nconst ChartWithData = ({ timeUnit, currencies }: ChartWithDataProps) => {\n const { size } = useContext(ThemeContext);\n const isDesktop = size === Size.DESKTOP;\n const { lang } = useLocale();\n const { loading, data, error } = useQuery<\n GetCurrencyPowerBalanceQuery,\n GetCurrencyPowerBalanceQueryVariables\n >(getCurrencyPowerBalance, {\n variables: {\n timeUnit,\n },\n fetchPolicy: 'cache-and-network',\n });\n\n const showError = data?.currencyPowerBalance?.length === 0 || error\n || (currencies && (currencies.length === 0 || currencies.length === 1));\n\n return (\n <>\n {loading\n && (\n <div className=\"lw-mb-[50px] lw-flex lw-h-[375px] lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary\">\n <Spinner size={SpinnerSize.lg} />\n </div>\n )}\n {!loading && !showError && (\n <Chart values={data?.currencyPowerBalance!} timeUnit={timeUnit} currencies={currencies} />\n )}\n {!loading && showError && (\n <div className=\"lw-flex lw-h-[375px] lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary\">\n <ChartError />\n </div>\n )}\n {isDesktop && <Tooltip id={CURRENCY_POWER_BALANCE_TOOLTIP_ID} />}\n <div className=\"lw-mt-2 lw-h-8\">\n {!loading && !showError && (\n <LastUpdated\n timestamp={data?.currencyPowerBalance![0]?.updatedAt}\n labelCallback={lang}\n />\n )}\n </div>\n </>\n );\n};\n\nexport { ChartWithData };\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAIA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,wBAAA,GAAAN,OAAA;AAAyE,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,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AACO,SAAS,IACrBhD,MAAA,CAAAe,OAAA,CAAAoC,aAAA,CAAC9C,iBAAA,CAAA0D,WAAW;IACVC,SAAS,EAAEtB,IAAI,EAAEO,oBAAoB,CAAE,CAAC,CAAC,EAAEgB,SAAU;IACrDC,aAAa,EAAE3B;EAAK,CACrB,CAEA,CACL,CAAC;AAEP,CAAC;AAAC4B,OAAA,CAAAtC,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -10,7 +10,7 @@ var _labsWidgetCommon = require("@oanda/labs-widget-common");
10
10
  var _monoI18n = require("@oanda/mono-i18n");
11
11
  var _Main = require("./Main");
12
12
  var _translations = require("../translations");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
14
  const CurrencyPowerBalance = _ref => {
15
15
  let {
16
16
  graphqlUrl,
@@ -1 +1 @@
1
- {"version":3,"file":"CurrencyPowerBalance.js","names":["_react","_interopRequireDefault","require","_client","_labsWidgetCommon","_monoI18n","_Main","_translations","obj","__esModule","default","CurrencyPowerBalance","_ref","graphqlUrl","theme","locale","timeUnit","currencies","isParamError","client","ApolloClient","uri","cache","InMemoryCache","createElement","ThemeProvider","LocaleProvider","getLocale","translations","ApolloProvider","className","ChartError","Main","exports"],"sources":["../../../src/CurrencyPowerBalanceWidget/CurrencyPowerBalance.tsx"],"sourcesContent":["import React from 'react';\nimport { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';\nimport { ChartError, ThemeProvider, getLocale } from '@oanda/labs-widget-common';\nimport { LocaleProvider } from '@oanda/mono-i18n';\nimport { Main } from './Main';\nimport { CurrencyPowerBalanceConfig } from './types';\nimport { translations } from '../translations';\n\nconst CurrencyPowerBalance = ({\n graphqlUrl, theme, locale, timeUnit, currencies, isParamError,\n}: CurrencyPowerBalanceConfig) => {\n const client = new ApolloClient({\n uri: graphqlUrl,\n cache: new InMemoryCache(),\n });\n\n return (\n <ThemeProvider theme={theme}>\n <LocaleProvider locale={getLocale(locale)} translations={translations}>\n <ApolloProvider client={client}>\n {isParamError ? (\n <div className=\"lw-flex lw-h-[425px] lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary\">\n <ChartError />\n </div>\n ) : <Main timeUnit={timeUnit} currencies={currencies} />}\n </ApolloProvider>\n </LocaleProvider>\n </ThemeProvider>\n );\n};\n\nexport { CurrencyPowerBalance };\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAEA,IAAAK,aAAA,GAAAL,OAAA;AAA+C,SAAAD,uBAAAO,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE/C,MAAMG,oBAAoB,GAAGC,IAAA,IAEK;EAAA,IAFJ;IAC5BC,UAAU;IAAEC,KAAK;IAAEC,MAAM;IAAEC,QAAQ;IAAEC,UAAU;IAAEC;EACvB,CAAC,GAAAN,IAAA;EAC3B,MAAMO,MAAM,GAAG,IAAIC,oBAAY,CAAC;IAC9BC,GAAG,EAAER,UAAU;IACfS,KAAK,EAAE,IAAIC,qBAAa,CAAC;EAC3B,CAAC,CAAC;EAEF,OACEvB,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACpB,iBAAA,CAAAqB,aAAa;IAACX,KAAK,EAAEA;EAAM,GAC1Bd,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACnB,SAAA,CAAAqB,cAAc;IAACX,MAAM,EAAE,IAAAY,2BAAS,EAACZ,MAAM,CAAE;IAACa,YAAY,EAAEA;EAAa,GACpE5B,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACrB,OAAA,CAAA0B,cAAc;IAACV,MAAM,EAAEA;EAAO,GAC5BD,YAAY,GACXlB,MAAA,CAAAU,OAAA,CAAAc,aAAA;IAAKM,SAAS,EAAC;EAAmG,GAChH9B,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACpB,iBAAA,CAAA2B,UAAU,MAAE,CACV,CAAC,GACJ/B,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAAClB,KAAA,CAAA0B,IAAI;IAAChB,QAAQ,EAAEA,QAAS;IAACC,UAAU,EAAEA;EAAW,CAAE,CACzC,CACF,CACH,CAAC;AAEpB,CAAC;AAACgB,OAAA,CAAAtB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"file":"CurrencyPowerBalance.js","names":["_react","_interopRequireDefault","require","_client","_labsWidgetCommon","_monoI18n","_Main","_translations","e","__esModule","default","CurrencyPowerBalance","_ref","graphqlUrl","theme","locale","timeUnit","currencies","isParamError","client","ApolloClient","uri","cache","InMemoryCache","createElement","ThemeProvider","LocaleProvider","getLocale","translations","ApolloProvider","className","ChartError","Main","exports"],"sources":["../../../src/CurrencyPowerBalanceWidget/CurrencyPowerBalance.tsx"],"sourcesContent":["import React from 'react';\nimport { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';\nimport { ChartError, ThemeProvider, getLocale } from '@oanda/labs-widget-common';\nimport { LocaleProvider } from '@oanda/mono-i18n';\nimport { Main } from './Main';\nimport { CurrencyPowerBalanceConfig } from './types';\nimport { translations } from '../translations';\n\nconst CurrencyPowerBalance = ({\n graphqlUrl, theme, locale, timeUnit, currencies, isParamError,\n}: CurrencyPowerBalanceConfig) => {\n const client = new ApolloClient({\n uri: graphqlUrl,\n cache: new InMemoryCache(),\n });\n\n return (\n <ThemeProvider theme={theme}>\n <LocaleProvider locale={getLocale(locale)} translations={translations}>\n <ApolloProvider client={client}>\n {isParamError ? (\n <div className=\"lw-flex lw-h-[425px] lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary\">\n <ChartError />\n </div>\n ) : <Main timeUnit={timeUnit} currencies={currencies} />}\n </Ap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,CAAClB,KAAA,CAAA0B,IAAI;IAAChB,QAAQ,EAAEA,QAAS;IAACC,UAAU,EAAEA;EAAW,CAAE,CACzC,CACF,CACH,CAAC;AAEpB,CAAC;AAACgB,OAAA,CAAAtB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -42,9 +42,9 @@ const Main = _ref => {
42
42
  "data-testid": "time-unit-label",
43
43
  key: label,
44
44
  className: "lw-mb-6 lw-flex lw-justify-center lw-font-sans lw-text-lg lw-font-bold"
45
- }, tooltipLabel ? _react.default.createElement("span", null, "".concat(lang(tooltipLabel.translationKey, {
45
+ }, tooltipLabel ? _react.default.createElement("span", null, `${lang(tooltipLabel.translationKey, {
46
46
  count: tooltipLabel.count
47
- }))) : _react.default.createElement("span", null, "".concat(lang(label))));
47
+ })}`) : _react.default.createElement("span", null, `${lang(label)}`));
48
48
  })) : _react.default.createElement(_TimeUnitSwitch.TimeUnitSwitch, {
49
49
  selected: selectedTimeUnit,
50
50
  callback: setSelectedTimeUnit,