@oanda/labs-currency-strength-widget 1.0.87 → 1.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +716 -0
- package/dist/main/CurrencyStrengthWidget/CurrencyStrengthWidget.js +9 -3
- package/dist/main/CurrencyStrengthWidget/CurrencyStrengthWidget.js.map +1 -1
- package/dist/main/CurrencyStrengthWidget/render.js +4 -2
- package/dist/main/CurrencyStrengthWidget/render.js.map +1 -1
- package/dist/main/CurrencyStrengthWidget/types.js.map +1 -1
- package/dist/module/CurrencyStrengthWidget/CurrencyStrengthWidget.js +10 -4
- package/dist/module/CurrencyStrengthWidget/CurrencyStrengthWidget.js.map +1 -1
- package/dist/module/CurrencyStrengthWidget/render.js +4 -2
- package/dist/module/CurrencyStrengthWidget/render.js.map +1 -1
- package/dist/module/CurrencyStrengthWidget/types.js.map +1 -1
- package/dist/types/CurrencyStrengthWidget/CurrencyStrengthWidget.d.ts +1 -1
- package/dist/types/CurrencyStrengthWidget/types.d.ts +3 -7
- package/package.json +3 -3
- package/src/CurrencyStrengthWidget/CurrencyStrengthWidget.tsx +9 -3
- package/src/CurrencyStrengthWidget/render.tsx +4 -1
- package/src/CurrencyStrengthWidget/types.ts +3 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,722 @@
|
|
|
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.89 (2024-11-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## 1.0.170 (2024-11-28)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 1.0.169 (2024-11-20)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## 1.0.168 (2024-11-19)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 1.0.167 (2024-10-14)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## 1.0.166 (2024-10-07)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## 1.0.165 (2024-10-03)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## 1.0.164 (2024-09-26)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## 1.0.163 (2024-09-18)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## 1.0.162 (2024-09-12)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## 1.0.161 (2024-09-11)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## 1.0.160 (2024-09-10)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## 1.0.159 (2024-09-09)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## 1.0.158 (2024-09-04)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## 1.0.157 (2024-09-04)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## 1.0.156 (2024-09-02)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## 1.0.155 (2024-08-29)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## 1.0.154 (2024-08-29)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## 1.0.153 (2024-08-23)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## 1.0.152 (2024-08-23)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## 1.0.151 (2024-08-20)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## 1.0.150 (2024-08-19)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## 1.0.149 (2024-08-07)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## 1.0.148 (2024-08-01)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## 1.0.147 (2024-08-01)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## 1.0.146 (2024-07-26)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## 1.0.145 (2024-07-25)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## 1.0.144 (2024-07-22)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## 1.0.143 (2024-07-19)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## 1.0.142 (2024-07-16)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## 1.0.141 (2024-07-16)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
## 1.0.140 (2024-07-12)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## 1.0.139 (2024-07-12)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## 1.0.138 (2024-07-10)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## 1.0.137 (2024-07-05)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## 1.0.136 (2024-07-03)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## 1.0.135 (2024-07-03)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## 1.0.134 (2024-07-03)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## 1.0.133 (2024-06-28)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## 1.0.132 (2024-06-27)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## 1.0.131 (2024-06-27)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
## 1.0.130 (2024-06-26)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## 1.0.129 (2024-06-17)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
## 1.0.128 (2024-06-17)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
## 1.0.127 (2024-06-10)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
## 1.0.126 (2024-05-29)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
## 1.0.125 (2024-05-29)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
## 1.0.124 (2024-05-29)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
## 1.0.123 (2024-05-28)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
## 1.0.122 (2024-05-27)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
## 1.0.121 (2024-05-27)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
## 1.0.120 (2024-05-24)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
## 1.0.119 (2024-05-17)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
## 1.0.118 (2024-05-09)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
## 1.0.117 (2024-05-07)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## 1.0.116 (2024-04-23)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## 1.0.115 (2024-04-22)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
## 1.0.114 (2024-04-19)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## 1.0.113 (2024-04-19)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
## 1.0.112 (2024-04-15)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
## 1.0.111 (2024-04-11)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
## 1.0.110 (2024-04-05)
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
## 1.0.109 (2024-04-05)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
## 1.0.108 (2024-04-04)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
## 1.0.107 (2024-04-03)
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
## 1.0.106 (2024-03-29)
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
## 1.0.105 (2024-03-28)
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
## 1.0.104 (2024-03-21)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
## 1.0.103 (2024-03-20)
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
## 1.0.102 (2024-03-20)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
## 1.0.101 (2024-03-13)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
## 1.0.100 (2024-03-12)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## 1.0.99 (2024-03-11)
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
## 1.0.98 (2024-03-07)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
## 1.0.97 (2024-03-06)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
## 1.0.96 (2024-03-06)
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
## 1.0.95 (2024-03-04)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
## 1.0.94 (2024-02-29)
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
## 1.0.93 (2024-02-28)
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
## 1.0.92 (2024-02-28)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
## 1.0.91 (2024-02-23)
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
## 1.0.90 (2024-02-23)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
## 1.0.89 (2024-02-21)
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
## 1.0.88 (2024-02-21)
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
## 1.0.87 (2024-02-20)
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
## 1.0.86 (2024-02-20)
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
## 1.0.85 (2024-02-13)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
## 1.0.84 (2024-02-13)
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
## 1.0.83 (2024-02-09)
|
|
359
|
+
|
|
360
|
+
**Note:** Version bump only for package @oanda/labs-currency-strength-widget
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
## 1.0.88 (2024-11-28)
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
## 1.0.169 (2024-11-20)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
## 1.0.168 (2024-11-19)
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
## 1.0.167 (2024-10-14)
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
## 1.0.166 (2024-10-07)
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
## 1.0.165 (2024-10-03)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
## 1.0.164 (2024-09-26)
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
## 1.0.163 (2024-09-18)
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
## 1.0.162 (2024-09-12)
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
## 1.0.161 (2024-09-11)
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
## 1.0.160 (2024-09-10)
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
## 1.0.159 (2024-09-09)
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
## 1.0.158 (2024-09-04)
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
## 1.0.157 (2024-09-04)
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
## 1.0.156 (2024-09-02)
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
## 1.0.155 (2024-08-29)
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
## 1.0.154 (2024-08-29)
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
## 1.0.153 (2024-08-23)
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
## 1.0.152 (2024-08-23)
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
## 1.0.151 (2024-08-20)
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
## 1.0.150 (2024-08-19)
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
## 1.0.149 (2024-08-07)
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
## 1.0.148 (2024-08-01)
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
## 1.0.147 (2024-08-01)
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
## 1.0.146 (2024-07-26)
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
## 1.0.145 (2024-07-25)
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
## 1.0.144 (2024-07-22)
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
## 1.0.143 (2024-07-19)
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
## 1.0.142 (2024-07-16)
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
## 1.0.141 (2024-07-16)
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
## 1.0.140 (2024-07-12)
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
## 1.0.139 (2024-07-12)
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
## 1.0.138 (2024-07-10)
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
## 1.0.137 (2024-07-05)
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
## 1.0.136 (2024-07-03)
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
## 1.0.135 (2024-07-03)
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
## 1.0.134 (2024-07-03)
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
## 1.0.133 (2024-06-28)
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
## 1.0.132 (2024-06-27)
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
## 1.0.131 (2024-06-27)
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
## 1.0.130 (2024-06-26)
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
## 1.0.129 (2024-06-17)
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
## 1.0.128 (2024-06-17)
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
## 1.0.127 (2024-06-10)
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
## 1.0.126 (2024-05-29)
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
## 1.0.125 (2024-05-29)
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
## 1.0.124 (2024-05-29)
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
## 1.0.123 (2024-05-28)
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
## 1.0.122 (2024-05-27)
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
## 1.0.121 (2024-05-27)
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
## 1.0.120 (2024-05-24)
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
## 1.0.119 (2024-05-17)
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
## 1.0.118 (2024-05-09)
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
## 1.0.117 (2024-05-07)
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
## 1.0.116 (2024-04-23)
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
## 1.0.115 (2024-04-22)
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
## 1.0.114 (2024-04-19)
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
## 1.0.113 (2024-04-19)
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
## 1.0.112 (2024-04-15)
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
## 1.0.111 (2024-04-11)
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
## 1.0.110 (2024-04-05)
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
## 1.0.109 (2024-04-05)
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
## 1.0.108 (2024-04-04)
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
## 1.0.107 (2024-04-03)
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
## 1.0.106 (2024-03-29)
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
## 1.0.105 (2024-03-28)
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
## 1.0.104 (2024-03-21)
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
## 1.0.103 (2024-03-20)
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
## 1.0.102 (2024-03-20)
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
## 1.0.101 (2024-03-13)
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
## 1.0.100 (2024-03-12)
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
## 1.0.99 (2024-03-11)
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
## 1.0.98 (2024-03-07)
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
## 1.0.97 (2024-03-06)
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
## 1.0.96 (2024-03-06)
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
## 1.0.95 (2024-03-04)
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
## 1.0.94 (2024-02-29)
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
## 1.0.93 (2024-02-28)
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
## 1.0.92 (2024-02-28)
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
## 1.0.91 (2024-02-23)
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
## 1.0.90 (2024-02-23)
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
## 1.0.89 (2024-02-21)
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
## 1.0.88 (2024-02-21)
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
## 1.0.87 (2024-02-20)
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
## 1.0.86 (2024-02-20)
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
## 1.0.85 (2024-02-13)
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
## 1.0.84 (2024-02-13)
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
## 1.0.83 (2024-02-09)
|
|
715
|
+
|
|
716
|
+
**Note:** Version bump only for package @oanda/labs-currency-strength-widget
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
6
722
|
## 1.0.87 (2024-11-20)
|
|
7
723
|
|
|
8
724
|
|
|
@@ -17,7 +17,8 @@ const CurrencyStrengthWidget = _ref => {
|
|
|
17
17
|
currency,
|
|
18
18
|
locale,
|
|
19
19
|
theme,
|
|
20
|
-
isParamError
|
|
20
|
+
isParamError,
|
|
21
|
+
logoLink
|
|
21
22
|
} = _ref;
|
|
22
23
|
const client = new _client.ApolloClient({
|
|
23
24
|
uri: graphqlUrl,
|
|
@@ -32,8 +33,13 @@ const CurrencyStrengthWidget = _ref => {
|
|
|
32
33
|
client: client
|
|
33
34
|
}, isParamError ? _react.default.createElement("div", {
|
|
34
35
|
className: "lw-flex lw-h-[425px] lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary"
|
|
35
|
-
}, _react.default.createElement(_labsWidgetCommon.ChartError, null)) :
|
|
36
|
-
|
|
36
|
+
}, _react.default.createElement(_labsWidgetCommon.ChartError, null)) : (0, _labsWidgetCommon.renderComponent)({
|
|
37
|
+
Component: _react.default.createElement(_Main.Main, {
|
|
38
|
+
currency: currency,
|
|
39
|
+
theme: theme
|
|
40
|
+
}),
|
|
41
|
+
logoLink,
|
|
42
|
+
linkArea: 'logo'
|
|
37
43
|
}))));
|
|
38
44
|
};
|
|
39
45
|
exports.CurrencyStrengthWidget = CurrencyStrengthWidget;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyStrengthWidget.js","names":["_react","_interopRequireDefault","require","_monoI18n","_client","_labsWidgetCommon","_translations","_Main","e","__esModule","default","CurrencyStrengthWidget","_ref","graphqlUrl","currency","locale","theme","isParamError","client","ApolloClient","uri","cache","InMemoryCache","createElement","ThemeProvider","LocaleProvider","getLocale","translations","ApolloProvider","className","ChartError","Main","exports"],"sources":["../../../src/CurrencyStrengthWidget/CurrencyStrengthWidget.tsx"],"sourcesContent":["import React from 'react';\nimport { LocaleProvider } from '@oanda/mono-i18n';\nimport { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';\nimport {
|
|
1
|
+
{"version":3,"file":"CurrencyStrengthWidget.js","names":["_react","_interopRequireDefault","require","_monoI18n","_client","_labsWidgetCommon","_translations","_Main","e","__esModule","default","CurrencyStrengthWidget","_ref","graphqlUrl","currency","locale","theme","isParamError","logoLink","client","ApolloClient","uri","cache","InMemoryCache","createElement","ThemeProvider","LocaleProvider","getLocale","translations","ApolloProvider","className","ChartError","renderComponent","Component","Main","linkArea","exports"],"sources":["../../../src/CurrencyStrengthWidget/CurrencyStrengthWidget.tsx"],"sourcesContent":["import React from 'react';\nimport { LocaleProvider } from '@oanda/mono-i18n';\nimport { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';\nimport {\n ChartError, ThemeProvider, getLocale, renderComponent,\n} from '@oanda/labs-widget-common';\nimport { CurrencyStrengthConfig } from './types';\nimport { translations } from '../translations';\nimport { Main } from './Main';\n\nconst CurrencyStrengthWidget = ({\n graphqlUrl, currency, locale, theme, isParamError, logoLink,\n}: CurrencyStrengthConfig) => {\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 ) : renderComponent({\n Component: <Main currency={currency} theme={theme} />,\n logoLink,\n linkArea: 'logo',\n })}\n </ApolloProvider>\n </LocaleProvider>\n </ThemeProvider>\n );\n};\n\nexport { CurrencyStrengthWidget };\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAIA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AAA8B,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9B,MAAMG,sBAAsB,GAAGC,IAAA,IAED;EAAA,IAFE;IAC9BC,UAAU;IAAEC,QAAQ;IAAEC,MAAM;IAAEC,KAAK;IAAEC,YAAY;IAAEC;EAC7B,CAAC,GAAAN,IAAA;EACvB,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,CAACnB,iBAAA,CAAAoB,aAAa;IAACT,KAAK,EAAEA;EAAM,GAC1BhB,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACrB,SAAA,CAAAuB,cAAc;IAACX,MAAM,EAAE,IAAAY,2BAAS,EAACZ,MAAM,CAAE;IAACa,YAAY,EAAEA;EAAa,GACpE5B,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACpB,OAAA,CAAAyB,cAAc;IAACV,MAAM,EAAEA;EAAO,GAC5BF,YAAY,GACXjB,MAAA,CAAAU,OAAA,CAAAc,aAAA;IAAKM,SAAS,EAAC;EAAmG,GAChH9B,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACnB,iBAAA,CAAA0B,UAAU,MAAE,CACV,CAAC,GACJ,IAAAC,iCAAe,EAAC;IAClBC,SAAS,EAAEjC,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACjB,KAAA,CAAA2B,IAAI;MAACpB,QAAQ,EAAEA,QAAS;MAACE,KAAK,EAAEA;IAAM,CAAE,CAAC;IACrDE,QAAQ;IACRiB,QAAQ,EAAE;EACZ,CAAC,CACa,CACF,CACH,CAAC;AAEpB,CAAC;AAACC,OAAA,CAAAzB,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -15,7 +15,8 @@ currencyStrengthParamsElements.forEach(element => {
|
|
|
15
15
|
const mode = element.getAttribute('data-mode');
|
|
16
16
|
const {
|
|
17
17
|
currency,
|
|
18
|
-
locale
|
|
18
|
+
locale,
|
|
19
|
+
logoLink
|
|
19
20
|
} = JSON.parse(params);
|
|
20
21
|
const isParamError = (0, _labsWidgetCommon.validateToolParams)({
|
|
21
22
|
locale,
|
|
@@ -31,7 +32,8 @@ currencyStrengthParamsElements.forEach(element => {
|
|
|
31
32
|
locale: locale,
|
|
32
33
|
theme: mode,
|
|
33
34
|
isParamError: isParamError,
|
|
34
|
-
currency: currency
|
|
35
|
+
currency: currency,
|
|
36
|
+
logoLink: logoLink
|
|
35
37
|
}));
|
|
36
38
|
});
|
|
37
39
|
//# sourceMappingURL=render.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","names":["_react","_interopRequireDefault","require","_client","_labsWidgetCommon","_CurrencyStrengthWidget","e","__esModule","default","graphqlUrl","window","widgetsConfig","currencyStrengthParamsElements","document","querySelectorAll","forEach","element","root","createRoot","params","getAttribute","mode","currency","locale","JSON","parse","isParamError","validateToolParams","name","valueCheck","value","validateLocale","render","createElement","CurrencyStrengthWidget","theme"],"sources":["../../../src/CurrencyStrengthWidget/render.tsx"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { Theme, validateLocale, validateToolParams } from '@oanda/labs-widget-common';\nimport { CurrencyStrengthWidget } from './CurrencyStrengthWidget';\n\nconst {\n graphqlUrl,\n} = window.widgetsConfig || {};\n\nconst currencyStrengthParamsElements = document.querySelectorAll('div[data-currency-strength-params]');\n\ncurrencyStrengthParamsElements.forEach((element) => {\n const root = createRoot(element);\n const params = element.getAttribute('data-currency-strength-params');\n const mode = element.getAttribute('data-mode');\n const {
|
|
1
|
+
{"version":3,"file":"render.js","names":["_react","_interopRequireDefault","require","_client","_labsWidgetCommon","_CurrencyStrengthWidget","e","__esModule","default","graphqlUrl","window","widgetsConfig","currencyStrengthParamsElements","document","querySelectorAll","forEach","element","root","createRoot","params","getAttribute","mode","currency","locale","logoLink","JSON","parse","isParamError","validateToolParams","name","valueCheck","value","validateLocale","render","createElement","CurrencyStrengthWidget","theme"],"sources":["../../../src/CurrencyStrengthWidget/render.tsx"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { Theme, validateLocale, validateToolParams } from '@oanda/labs-widget-common';\nimport { CurrencyStrengthWidget } from './CurrencyStrengthWidget';\n\nconst {\n graphqlUrl,\n} = window.widgetsConfig || {};\n\nconst currencyStrengthParamsElements = document.querySelectorAll('div[data-currency-strength-params]');\n\ncurrencyStrengthParamsElements.forEach((element) => {\n const root = createRoot(element);\n const params = element.getAttribute('data-currency-strength-params');\n const mode = element.getAttribute('data-mode');\n const {\n currency, locale, logoLink,\n } = JSON.parse(params as string);\n\n const isParamError = validateToolParams({ locale, graphqlUrl }, [\n {\n name: 'locale',\n valueCheck: (value) => validateLocale(value),\n }, {\n name: 'graphqlUrl',\n }]);\n\n root.render(\n <CurrencyStrengthWidget\n graphqlUrl={graphqlUrl}\n locale={locale}\n theme={mode as Theme}\n isParamError={isParamError}\n currency={currency}\n logoLink={logoLink}\n />,\n );\n});\n"],"mappings":";;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,uBAAA,GAAAH,OAAA;AAAkE,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElE,MAAM;EACJG;AACF,CAAC,GAAGC,MAAM,CAACC,aAAa,IAAI,CAAC,CAAC;AAE9B,MAAMC,8BAA8B,GAAGC,QAAQ,CAACC,gBAAgB,CAAC,oCAAoC,CAAC;AAEtGF,8BAA8B,CAACG,OAAO,CAAEC,OAAO,IAAK;EAClD,MAAMC,IAAI,GAAG,IAAAC,kBAAU,EAACF,OAAO,CAAC;EAChC,MAAMG,MAAM,GAAGH,OAAO,CAACI,YAAY,CAAC,+BAA+B,CAAC;EACpE,MAAMC,IAAI,GAAGL,OAAO,CAACI,YAAY,CAAC,WAAW,CAAC;EAC9C,MAAM;IACJE,QAAQ;IAAEC,MAAM;IAAEC;EACpB,CAAC,GAAGC,IAAI,CAACC,KAAK,CAACP,MAAgB,CAAC;EAEhC,MAAMQ,YAAY,GAAG,IAAAC,oCAAkB,EAAC;IAAEL,MAAM;IAAEd;EAAW,CAAC,EAAE,CAC9D;IACEoB,IAAI,EAAE,QAAQ;IACdC,UAAU,EAAGC,KAAK,IAAK,IAAAC,gCAAc,EAACD,KAAK;EAC7C,CAAC,EAAE;IACDF,IAAI,EAAE;EACR,CAAC,CAAC,CAAC;EAELZ,IAAI,CAACgB,MAAM,CACTjC,MAAA,CAAAQ,OAAA,CAAA0B,aAAA,CAAC7B,uBAAA,CAAA8B,sBAAsB;IACrB1B,UAAU,EAAEA,UAAW;IACvBc,MAAM,EAAEA,MAAO;IACfa,KAAK,EAAEf,IAAc;IACrBM,YAAY,EAAEA,YAAa;IAC3BL,QAAQ,EAAEA,QAAS;IACnBE,QAAQ,EAAEA;EAAS,CACpB,CACH,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../src/CurrencyStrengthWidget/types.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/CurrencyStrengthWidget/types.ts"],"sourcesContent":["import { Theme, WidgetConfig } from '@oanda/labs-widget-common';\n\nexport interface CurrencyStrengthConfig extends WidgetConfig {\n currency?: string;\n}\n\nexport interface CurrencyStrengthWrapperConfig extends CurrencyStrengthConfig {\n renderElementId: string;\n}\n\nexport interface WidgetProps {\n currency?: string;\n theme?: Theme;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LocaleProvider } from '@oanda/mono-i18n';
|
|
3
3
|
import { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';
|
|
4
|
-
import { ChartError, ThemeProvider, getLocale } from '@oanda/labs-widget-common';
|
|
4
|
+
import { ChartError, ThemeProvider, getLocale, renderComponent } from '@oanda/labs-widget-common';
|
|
5
5
|
import { translations } from '../translations';
|
|
6
6
|
import { Main } from './Main';
|
|
7
7
|
const CurrencyStrengthWidget = _ref => {
|
|
@@ -10,7 +10,8 @@ const CurrencyStrengthWidget = _ref => {
|
|
|
10
10
|
currency,
|
|
11
11
|
locale,
|
|
12
12
|
theme,
|
|
13
|
-
isParamError
|
|
13
|
+
isParamError,
|
|
14
|
+
logoLink
|
|
14
15
|
} = _ref;
|
|
15
16
|
const client = new ApolloClient({
|
|
16
17
|
uri: graphqlUrl,
|
|
@@ -25,8 +26,13 @@ const CurrencyStrengthWidget = _ref => {
|
|
|
25
26
|
client: client
|
|
26
27
|
}, isParamError ? React.createElement("div", {
|
|
27
28
|
className: "lw-flex lw-h-[425px] lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary"
|
|
28
|
-
}, React.createElement(ChartError, null)) :
|
|
29
|
-
|
|
29
|
+
}, React.createElement(ChartError, null)) : renderComponent({
|
|
30
|
+
Component: React.createElement(Main, {
|
|
31
|
+
currency: currency,
|
|
32
|
+
theme: theme
|
|
33
|
+
}),
|
|
34
|
+
logoLink,
|
|
35
|
+
linkArea: 'logo'
|
|
30
36
|
}))));
|
|
31
37
|
};
|
|
32
38
|
export { CurrencyStrengthWidget };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyStrengthWidget.js","names":["React","LocaleProvider","ApolloClient","InMemoryCache","ApolloProvider","ChartError","ThemeProvider","getLocale","translations","Main","CurrencyStrengthWidget","_ref","graphqlUrl","currency","locale","theme","isParamError","client","uri","cache","createElement","className"],"sources":["../../../src/CurrencyStrengthWidget/CurrencyStrengthWidget.tsx"],"sourcesContent":["import React from 'react';\nimport { LocaleProvider } from '@oanda/mono-i18n';\nimport { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';\nimport {
|
|
1
|
+
{"version":3,"file":"CurrencyStrengthWidget.js","names":["React","LocaleProvider","ApolloClient","InMemoryCache","ApolloProvider","ChartError","ThemeProvider","getLocale","renderComponent","translations","Main","CurrencyStrengthWidget","_ref","graphqlUrl","currency","locale","theme","isParamError","logoLink","client","uri","cache","createElement","className","Component","linkArea"],"sources":["../../../src/CurrencyStrengthWidget/CurrencyStrengthWidget.tsx"],"sourcesContent":["import React from 'react';\nimport { LocaleProvider } from '@oanda/mono-i18n';\nimport { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';\nimport {\n ChartError, ThemeProvider, getLocale, renderComponent,\n} from '@oanda/labs-widget-common';\nimport { CurrencyStrengthConfig } from './types';\nimport { translations } from '../translations';\nimport { Main } from './Main';\n\nconst CurrencyStrengthWidget = ({\n graphqlUrl, currency, locale, theme, isParamError, logoLink,\n}: CurrencyStrengthConfig) => {\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 ) : renderComponent({\n Component: <Main currency={currency} theme={theme} />,\n logoLink,\n linkArea: 'logo',\n })}\n </ApolloProvider>\n </LocaleProvider>\n </ThemeProvider>\n );\n};\n\nexport { CurrencyStrengthWidget };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,YAAY,EAAEC,aAAa,EAAEC,cAAc,QAAQ,gBAAgB;AAC5E,SACEC,UAAU,EAAEC,aAAa,EAAEC,SAAS,EAAEC,eAAe,QAChD,2BAA2B;AAElC,SAASC,YAAY,QAAQ,iBAAiB;AAC9C,SAASC,IAAI,QAAQ,QAAQ;AAE7B,MAAMC,sBAAsB,GAAGC,IAAA,IAED;EAAA,IAFE;IAC9BC,UAAU;IAAEC,QAAQ;IAAEC,MAAM;IAAEC,KAAK;IAAEC,YAAY;IAAEC;EAC7B,CAAC,GAAAN,IAAA;EACvB,MAAMO,MAAM,GAAG,IAAIjB,YAAY,CAAC;IAC9BkB,GAAG,EAAEP,UAAU;IACfQ,KAAK,EAAE,IAAIlB,aAAa,CAAC;EAC3B,CAAC,CAAC;EAEF,OACEH,KAAA,CAAAsB,aAAA,CAAChB,aAAa;IAACU,KAAK,EAAEA;EAAM,GAC1BhB,KAAA,CAAAsB,aAAA,CAACrB,cAAc;IAACc,MAAM,EAAER,SAAS,CAACQ,MAAM,CAAE;IAACN,YAAY,EAAEA;EAAa,GACpET,KAAA,CAAAsB,aAAA,CAAClB,cAAc;IAACe,MAAM,EAAEA;EAAO,GAC5BF,YAAY,GACXjB,KAAA,CAAAsB,aAAA;IAAKC,SAAS,EAAC;EAAmG,GAChHvB,KAAA,CAAAsB,aAAA,CAACjB,UAAU,MAAE,CACV,CAAC,GACJG,eAAe,CAAC;IAClBgB,SAAS,EAAExB,KAAA,CAAAsB,aAAA,CAACZ,IAAI;MAACI,QAAQ,EAAEA,QAAS;MAACE,KAAK,EAAEA;IAAM,CAAE,CAAC;IACrDE,QAAQ;IACRO,QAAQ,EAAE;EACZ,CAAC,CACa,CACF,CACH,CAAC;AAEpB,CAAC;AAED,SAASd,sBAAsB","ignoreList":[]}
|
|
@@ -12,7 +12,8 @@ currencyStrengthParamsElements.forEach(element => {
|
|
|
12
12
|
const mode = element.getAttribute('data-mode');
|
|
13
13
|
const {
|
|
14
14
|
currency,
|
|
15
|
-
locale
|
|
15
|
+
locale,
|
|
16
|
+
logoLink
|
|
16
17
|
} = JSON.parse(params);
|
|
17
18
|
const isParamError = validateToolParams({
|
|
18
19
|
locale,
|
|
@@ -28,7 +29,8 @@ currencyStrengthParamsElements.forEach(element => {
|
|
|
28
29
|
locale: locale,
|
|
29
30
|
theme: mode,
|
|
30
31
|
isParamError: isParamError,
|
|
31
|
-
currency: currency
|
|
32
|
+
currency: currency,
|
|
33
|
+
logoLink: logoLink
|
|
32
34
|
}));
|
|
33
35
|
});
|
|
34
36
|
//# sourceMappingURL=render.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","names":["React","createRoot","validateLocale","validateToolParams","CurrencyStrengthWidget","graphqlUrl","window","widgetsConfig","currencyStrengthParamsElements","document","querySelectorAll","forEach","element","root","params","getAttribute","mode","currency","locale","JSON","parse","isParamError","name","valueCheck","value","render","createElement","theme"],"sources":["../../../src/CurrencyStrengthWidget/render.tsx"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { Theme, validateLocale, validateToolParams } from '@oanda/labs-widget-common';\nimport { CurrencyStrengthWidget } from './CurrencyStrengthWidget';\n\nconst {\n graphqlUrl,\n} = window.widgetsConfig || {};\n\nconst currencyStrengthParamsElements = document.querySelectorAll('div[data-currency-strength-params]');\n\ncurrencyStrengthParamsElements.forEach((element) => {\n const root = createRoot(element);\n const params = element.getAttribute('data-currency-strength-params');\n const mode = element.getAttribute('data-mode');\n const {
|
|
1
|
+
{"version":3,"file":"render.js","names":["React","createRoot","validateLocale","validateToolParams","CurrencyStrengthWidget","graphqlUrl","window","widgetsConfig","currencyStrengthParamsElements","document","querySelectorAll","forEach","element","root","params","getAttribute","mode","currency","locale","logoLink","JSON","parse","isParamError","name","valueCheck","value","render","createElement","theme"],"sources":["../../../src/CurrencyStrengthWidget/render.tsx"],"sourcesContent":["import React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { Theme, validateLocale, validateToolParams } from '@oanda/labs-widget-common';\nimport { CurrencyStrengthWidget } from './CurrencyStrengthWidget';\n\nconst {\n graphqlUrl,\n} = window.widgetsConfig || {};\n\nconst currencyStrengthParamsElements = document.querySelectorAll('div[data-currency-strength-params]');\n\ncurrencyStrengthParamsElements.forEach((element) => {\n const root = createRoot(element);\n const params = element.getAttribute('data-currency-strength-params');\n const mode = element.getAttribute('data-mode');\n const {\n currency, locale, logoLink,\n } = JSON.parse(params as string);\n\n const isParamError = validateToolParams({ locale, graphqlUrl }, [\n {\n name: 'locale',\n valueCheck: (value) => validateLocale(value),\n }, {\n name: 'graphqlUrl',\n }]);\n\n root.render(\n <CurrencyStrengthWidget\n graphqlUrl={graphqlUrl}\n locale={locale}\n theme={mode as Theme}\n isParamError={isParamError}\n currency={currency}\n logoLink={logoLink}\n />,\n );\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAAgBC,cAAc,EAAEC,kBAAkB,QAAQ,2BAA2B;AACrF,SAASC,sBAAsB,QAAQ,0BAA0B;AAEjE,MAAM;EACJC;AACF,CAAC,GAAGC,MAAM,CAACC,aAAa,IAAI,CAAC,CAAC;AAE9B,MAAMC,8BAA8B,GAAGC,QAAQ,CAACC,gBAAgB,CAAC,oCAAoC,CAAC;AAEtGF,8BAA8B,CAACG,OAAO,CAAEC,OAAO,IAAK;EAClD,MAAMC,IAAI,GAAGZ,UAAU,CAACW,OAAO,CAAC;EAChC,MAAME,MAAM,GAAGF,OAAO,CAACG,YAAY,CAAC,+BAA+B,CAAC;EACpE,MAAMC,IAAI,GAAGJ,OAAO,CAACG,YAAY,CAAC,WAAW,CAAC;EAC9C,MAAM;IACJE,QAAQ;IAAEC,MAAM;IAAEC;EACpB,CAAC,GAAGC,IAAI,CAACC,KAAK,CAACP,MAAgB,CAAC;EAEhC,MAAMQ,YAAY,GAAGnB,kBAAkB,CAAC;IAAEe,MAAM;IAAEb;EAAW,CAAC,EAAE,CAC9D;IACEkB,IAAI,EAAE,QAAQ;IACdC,UAAU,EAAGC,KAAK,IAAKvB,cAAc,CAACuB,KAAK;EAC7C,CAAC,EAAE;IACDF,IAAI,EAAE;EACR,CAAC,CAAC,CAAC;EAELV,IAAI,CAACa,MAAM,CACT1B,KAAA,CAAA2B,aAAA,CAACvB,sBAAsB;IACrBC,UAAU,EAAEA,UAAW;IACvBa,MAAM,EAAEA,MAAO;IACfU,KAAK,EAAEZ,IAAc;IACrBM,YAAY,EAAEA,YAAa;IAC3BL,QAAQ,EAAEA,QAAS;IACnBE,QAAQ,EAAEA;EAAS,CACpB,CACH,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../src/CurrencyStrengthWidget/types.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/CurrencyStrengthWidget/types.ts"],"sourcesContent":["import { Theme, WidgetConfig } from '@oanda/labs-widget-common';\n\nexport interface CurrencyStrengthConfig extends WidgetConfig {\n currency?: string;\n}\n\nexport interface CurrencyStrengthWrapperConfig extends CurrencyStrengthConfig {\n renderElementId: string;\n}\n\nexport interface WidgetProps {\n currency?: string;\n theme?: Theme;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CurrencyStrengthConfig } from './types';
|
|
3
|
-
declare const CurrencyStrengthWidget: ({ graphqlUrl, currency, locale, theme, isParamError, }: CurrencyStrengthConfig) => React.JSX.Element;
|
|
3
|
+
declare const CurrencyStrengthWidget: ({ graphqlUrl, currency, locale, theme, isParamError, logoLink, }: CurrencyStrengthConfig) => React.JSX.Element;
|
|
4
4
|
export { CurrencyStrengthWidget };
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface CurrencyStrengthConfig {
|
|
4
|
-
graphqlUrl: string;
|
|
5
|
-
locale: Locale;
|
|
6
|
-
theme?: Theme;
|
|
1
|
+
import { Theme, WidgetConfig } from '@oanda/labs-widget-common';
|
|
2
|
+
export interface CurrencyStrengthConfig extends WidgetConfig {
|
|
7
3
|
currency?: string;
|
|
8
|
-
isParamError?: boolean;
|
|
9
4
|
}
|
|
10
5
|
export interface CurrencyStrengthWrapperConfig extends CurrencyStrengthConfig {
|
|
11
6
|
renderElementId: string;
|
|
12
7
|
}
|
|
13
8
|
export interface WidgetProps {
|
|
14
9
|
currency?: string;
|
|
10
|
+
theme?: Theme;
|
|
15
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oanda/labs-currency-strength-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.89",
|
|
4
4
|
"description": "Labs Currency Strength Widget",
|
|
5
5
|
"main": "dist/main/index.js",
|
|
6
6
|
"module": "dist/module/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"author": "OANDA",
|
|
13
13
|
"license": "UNLICENSED",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@oanda/labs-widget-common": "^1.0.
|
|
15
|
+
"@oanda/labs-widget-common": "^1.0.171",
|
|
16
16
|
"@oanda/mono-i18n": "10.0.1",
|
|
17
17
|
"echarts": "5.5.0",
|
|
18
18
|
"echarts-for-react": "3.0.2",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"@graphql-codegen/client-preset": "4.1.0",
|
|
24
24
|
"@graphql-codegen/typescript": "4.0.1"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "f978676624ce706f807cbecc432c67ed809dbf48"
|
|
27
27
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LocaleProvider } from '@oanda/mono-i18n';
|
|
3
3
|
import { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
ChartError, ThemeProvider, getLocale, renderComponent,
|
|
6
|
+
} from '@oanda/labs-widget-common';
|
|
5
7
|
import { CurrencyStrengthConfig } from './types';
|
|
6
8
|
import { translations } from '../translations';
|
|
7
9
|
import { Main } from './Main';
|
|
8
10
|
|
|
9
11
|
const CurrencyStrengthWidget = ({
|
|
10
|
-
graphqlUrl, currency, locale, theme, isParamError,
|
|
12
|
+
graphqlUrl, currency, locale, theme, isParamError, logoLink,
|
|
11
13
|
}: CurrencyStrengthConfig) => {
|
|
12
14
|
const client = new ApolloClient({
|
|
13
15
|
uri: graphqlUrl,
|
|
@@ -22,7 +24,11 @@ const CurrencyStrengthWidget = ({
|
|
|
22
24
|
<div className="lw-flex lw-h-[425px] lw-w-full lw-items-center lw-border lw-border-solid lw-border-border-primary">
|
|
23
25
|
<ChartError />
|
|
24
26
|
</div>
|
|
25
|
-
) :
|
|
27
|
+
) : renderComponent({
|
|
28
|
+
Component: <Main currency={currency} theme={theme} />,
|
|
29
|
+
logoLink,
|
|
30
|
+
linkArea: 'logo',
|
|
31
|
+
})}
|
|
26
32
|
</ApolloProvider>
|
|
27
33
|
</LocaleProvider>
|
|
28
34
|
</ThemeProvider>
|
|
@@ -13,7 +13,9 @@ currencyStrengthParamsElements.forEach((element) => {
|
|
|
13
13
|
const root = createRoot(element);
|
|
14
14
|
const params = element.getAttribute('data-currency-strength-params');
|
|
15
15
|
const mode = element.getAttribute('data-mode');
|
|
16
|
-
const {
|
|
16
|
+
const {
|
|
17
|
+
currency, locale, logoLink,
|
|
18
|
+
} = JSON.parse(params as string);
|
|
17
19
|
|
|
18
20
|
const isParamError = validateToolParams({ locale, graphqlUrl }, [
|
|
19
21
|
{
|
|
@@ -30,6 +32,7 @@ currencyStrengthParamsElements.forEach((element) => {
|
|
|
30
32
|
theme={mode as Theme}
|
|
31
33
|
isParamError={isParamError}
|
|
32
34
|
currency={currency}
|
|
35
|
+
logoLink={logoLink}
|
|
33
36
|
/>,
|
|
34
37
|
);
|
|
35
38
|
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Theme } from '@oanda/labs-widget-common';
|
|
1
|
+
import { Theme, WidgetConfig } from '@oanda/labs-widget-common';
|
|
3
2
|
|
|
4
|
-
export interface CurrencyStrengthConfig {
|
|
5
|
-
graphqlUrl: string;
|
|
6
|
-
locale: Locale;
|
|
7
|
-
theme?: Theme;
|
|
3
|
+
export interface CurrencyStrengthConfig extends WidgetConfig {
|
|
8
4
|
currency?: string;
|
|
9
|
-
isParamError?: boolean;
|
|
10
5
|
}
|
|
11
6
|
|
|
12
7
|
export interface CurrencyStrengthWrapperConfig extends CurrencyStrengthConfig {
|
|
@@ -15,4 +10,5 @@ export interface CurrencyStrengthWrapperConfig extends CurrencyStrengthConfig {
|
|
|
15
10
|
|
|
16
11
|
export interface WidgetProps {
|
|
17
12
|
currency?: string;
|
|
13
|
+
theme?: Theme;
|
|
18
14
|
}
|