@oanda/labs-instrument-live-rate-widget 1.0.34 → 1.0.35
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 +144 -0
- package/dist/main/InstrumentLiveRateWidget/InstrumentLiveRateWidget.js +13 -13
- package/dist/main/InstrumentLiveRateWidget/InstrumentLiveRateWidget.js.map +1 -1
- package/dist/main/InstrumentLiveRateWidget/Main.js +5 -5
- package/dist/main/InstrumentLiveRateWidget/Main.js.map +1 -1
- package/dist/main/InstrumentLiveRateWidget/ValidationWrapper.js +5 -5
- package/dist/main/InstrumentLiveRateWidget/ValidationWrapper.js.map +1 -1
- package/dist/main/InstrumentLiveRateWidget/constant.js.map +1 -1
- package/dist/main/InstrumentLiveRateWidget/render.js +7 -7
- package/dist/main/InstrumentLiveRateWidget/render.js.map +1 -1
- package/dist/main/InstrumentLiveRateWidget/types.js +1 -1
- package/dist/main/InstrumentLiveRateWidget/types.js.map +1 -1
- package/dist/main/InstrumentLiveRateWidget/utils.js +1 -1
- package/dist/main/InstrumentLiveRateWidget/utils.js.map +1 -1
- package/dist/main/gql/types/fragment-masking.js.map +1 -1
- package/dist/main/gql/types/gql.js +2 -2
- package/dist/main/gql/types/gql.js.map +1 -1
- package/dist/main/gql/types/graphql.js +142 -142
- package/dist/main/gql/types/graphql.js.map +1 -1
- package/dist/main/gql/types/index.js.map +1 -1
- package/dist/main/index.js +8 -8
- package/dist/main/index.js.map +1 -1
- package/dist/main/translations/index.js +1 -1
- package/dist/main/translations/index.js.map +1 -1
- package/dist/main/translations/translations.js.map +1 -1
- package/dist/module/InstrumentLiveRateWidget/InstrumentLiveRateWidget.js +13 -13
- package/dist/module/InstrumentLiveRateWidget/InstrumentLiveRateWidget.js.map +1 -1
- package/dist/module/InstrumentLiveRateWidget/Main.js +5 -5
- package/dist/module/InstrumentLiveRateWidget/Main.js.map +1 -1
- package/dist/module/InstrumentLiveRateWidget/ValidationWrapper.js +5 -5
- package/dist/module/InstrumentLiveRateWidget/ValidationWrapper.js.map +1 -1
- package/dist/module/InstrumentLiveRateWidget/constant.js.map +1 -1
- package/dist/module/InstrumentLiveRateWidget/render.js +7 -7
- package/dist/module/InstrumentLiveRateWidget/render.js.map +1 -1
- package/dist/module/InstrumentLiveRateWidget/types.js +1 -1
- package/dist/module/InstrumentLiveRateWidget/types.js.map +1 -1
- package/dist/module/InstrumentLiveRateWidget/utils.js +1 -1
- package/dist/module/InstrumentLiveRateWidget/utils.js.map +1 -1
- package/dist/module/gql/types/fragment-masking.js.map +1 -1
- package/dist/module/gql/types/gql.js +2 -2
- package/dist/module/gql/types/gql.js.map +1 -1
- package/dist/module/gql/types/graphql.js +142 -142
- package/dist/module/gql/types/graphql.js.map +1 -1
- package/dist/module/gql/types/index.js +2 -2
- package/dist/module/gql/types/index.js.map +1 -1
- package/dist/module/index.js +1 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/translations/index.js +1 -1
- package/dist/module/translations/index.js.map +1 -1
- package/dist/module/translations/translations.js.map +1 -1
- package/dist/types/InstrumentLiveRateWidget/InstrumentLiveRateWidget.d.ts +1 -1
- package/dist/types/InstrumentLiveRateWidget/Main.d.ts +1 -1
- package/dist/types/InstrumentLiveRateWidget/ValidationWrapper.d.ts +1 -1
- package/dist/types/InstrumentLiveRateWidget/constant.d.ts +1 -1
- package/dist/types/InstrumentLiveRateWidget/types.d.ts +3 -3
- package/dist/types/InstrumentLiveRateWidget/utils.d.ts +3 -3
- package/dist/types/gql/types/gql.d.ts +4 -4
- package/dist/types/gql/types/index.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/translations/index.d.ts +2 -2
- package/package.json +3 -3
- package/src/InstrumentLiveRateWidget/InstrumentLiveRateWidget.tsx +13 -12
- package/src/InstrumentLiveRateWidget/Main.tsx +12 -8
- package/src/InstrumentLiveRateWidget/ValidationWrapper.tsx +32 -28
- package/src/InstrumentLiveRateWidget/constant.ts +1 -3
- package/src/InstrumentLiveRateWidget/render.tsx +44 -31
- package/src/InstrumentLiveRateWidget/types.tsx +8 -3
- package/src/InstrumentLiveRateWidget/utils.ts +16 -16
- package/src/gql/types/fragment-masking.ts +41 -21
- package/src/gql/types/gql.ts +12 -5
- package/src/gql/types/graphql.ts +214 -50
- package/src/gql/types/index.ts +2 -2
- package/src/index.ts +1 -1
- package/src/translations/index.ts +4 -4
- package/src/translations/translations.ts +2 -1
- package/test/Main.test.tsx +9 -5
- package/test/mocks.ts +1 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export const defaultTranslations = {
|
|
2
2
|
data_unavailable: 'Data unavailable',
|
|
3
|
-
pagination_entries_range:
|
|
3
|
+
pagination_entries_range:
|
|
4
|
+
'{{firstItemOnPage}}-{{lastItemOnPage}} of {{itemCount}} entries',
|
|
4
5
|
};
|
package/test/Main.test.tsx
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jest-environment jsdom
|
|
3
3
|
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
4
|
import { MockedProvider } from '@apollo/client/testing';
|
|
7
|
-
import {
|
|
8
|
-
|
|
5
|
+
import {
|
|
6
|
+
LiveRatesProvider,
|
|
7
|
+
MockLayoutProvider,
|
|
8
|
+
} from '@oanda/labs-widget-common';
|
|
9
|
+
import { render } from '@testing-library/react';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
|
|
9
12
|
import { Division } from '../src/gql/types/graphql';
|
|
13
|
+
import { Main } from '../src/InstrumentLiveRateWidget/Main';
|
|
10
14
|
import { widgetMocks } from './mocks';
|
|
11
15
|
|
|
12
16
|
describe('Main component', () => {
|
|
@@ -25,7 +29,7 @@ describe('Main component', () => {
|
|
|
25
29
|
/>
|
|
26
30
|
</MockLayoutProvider>
|
|
27
31
|
</LiveRatesProvider>
|
|
28
|
-
</MockedProvider
|
|
32
|
+
</MockedProvider>
|
|
29
33
|
);
|
|
30
34
|
|
|
31
35
|
expect(await findByTestId('instrument-rate-wrapper')).toBeInTheDocument();
|