@oanda/labs-volatility-chart-widget 1.0.200 → 1.0.202
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 +1561 -41331
- package/dist/module/VolatilityChartWidget/ChartWithData.js +25 -18
- package/dist/module/VolatilityChartWidget/ChartWithData.js.map +1 -1
- package/dist/module/VolatilityChartWidget/Main.js +40 -32
- package/dist/module/VolatilityChartWidget/Main.js.map +1 -1
- package/dist/module/VolatilityChartWidget/MainWithData.js +22 -15
- package/dist/module/VolatilityChartWidget/MainWithData.js.map +1 -1
- package/dist/module/VolatilityChartWidget/VolatilityChartWidget.js +19 -12
- package/dist/module/VolatilityChartWidget/VolatilityChartWidget.js.map +1 -1
- package/dist/module/VolatilityChartWidget/components/Chart/Chart.js +26 -18
- package/dist/module/VolatilityChartWidget/components/Chart/Chart.js.map +1 -1
- package/dist/module/VolatilityChartWidget/components/Chart/constants.js +23 -17
- package/dist/module/VolatilityChartWidget/components/Chart/constants.js.map +1 -1
- package/dist/module/VolatilityChartWidget/components/Chart/getOption.js +44 -33
- package/dist/module/VolatilityChartWidget/components/Chart/getOption.js.map +1 -1
- package/dist/module/VolatilityChartWidget/components/Chart/index.js +16 -1
- package/dist/module/VolatilityChartWidget/components/Chart/index.js.map +1 -1
- package/dist/module/VolatilityChartWidget/components/Chart/types.js +7 -1
- package/dist/module/VolatilityChartWidget/components/Chart/types.js.map +1 -1
- package/dist/module/VolatilityChartWidget/components/InstrumentSelector/InstrumentSelector.js +32 -24
- package/dist/module/VolatilityChartWidget/components/InstrumentSelector/InstrumentSelector.js.map +1 -1
- package/dist/module/VolatilityChartWidget/components/InstrumentSelector/index.js +16 -1
- package/dist/module/VolatilityChartWidget/components/InstrumentSelector/index.js.map +1 -1
- package/dist/module/VolatilityChartWidget/components/InstrumentSelector/types.js +5 -1
- package/dist/module/VolatilityChartWidget/components/TimeSpanSwitch/TimeSpanSwitch.js +13 -6
- package/dist/module/VolatilityChartWidget/components/TimeSpanSwitch/TimeSpanSwitch.js.map +1 -1
- package/dist/module/VolatilityChartWidget/components/TimeSpanSwitch/index.js +16 -1
- package/dist/module/VolatilityChartWidget/components/TimeSpanSwitch/index.js.map +1 -1
- package/dist/module/VolatilityChartWidget/components/TimeSpanSwitch/types.js +5 -1
- package/dist/module/VolatilityChartWidget/config.js +21 -16
- package/dist/module/VolatilityChartWidget/config.js.map +1 -1
- package/dist/module/VolatilityChartWidget/constants.js +7 -1
- package/dist/module/VolatilityChartWidget/constants.js.map +1 -1
- package/dist/module/VolatilityChartWidget/index.js +16 -1
- package/dist/module/VolatilityChartWidget/index.js.map +1 -1
- package/dist/module/VolatilityChartWidget/render.js +15 -12
- package/dist/module/VolatilityChartWidget/render.js.map +1 -1
- package/dist/module/VolatilityChartWidget/types.js +5 -1
- package/dist/module/VolatilityChartWidget/utils.js +9 -1
- package/dist/module/VolatilityChartWidget/utils.js.map +1 -1
- package/dist/module/gql/getVolatilityChartAssetClasses.js +8 -2
- package/dist/module/gql/getVolatilityChartAssetClasses.js.map +1 -1
- package/dist/module/gql/getVolatilityChartData.js +8 -2
- package/dist/module/gql/getVolatilityChartData.js.map +1 -1
- package/dist/module/gql/types/fragment-masking.js +11 -3
- package/dist/module/gql/types/fragment-masking.js.map +1 -1
- package/dist/module/gql/types/gql.js +9 -2
- package/dist/module/gql/types/gql.js.map +1 -1
- package/dist/module/gql/types/graphql.js +22 -16
- package/dist/module/gql/types/graphql.js.map +1 -1
- package/dist/module/gql/types/index.js +27 -2
- package/dist/module/gql/types/index.js.map +1 -1
- package/dist/module/index.js +16 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/translations/index.js +21 -14
- package/dist/module/translations/index.js.map +1 -1
- package/dist/module/translations/translations.js +7 -1
- package/dist/module/translations/translations.js.map +1 -1
- package/dist/types/gql/getVolatilityChartAssetClasses.d.ts +1 -1
- package/dist/types/gql/getVolatilityChartData.d.ts +1 -1
- package/package.json +8 -4
- package/tsconfig.types.json +2 -4
|
@@ -1,3 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _fragmentMasking = require("./fragment-masking");
|
|
7
|
+
Object.keys(_fragmentMasking).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _fragmentMasking[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _fragmentMasking[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _gql = require("./gql");
|
|
18
|
+
Object.keys(_gql).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _gql[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _gql[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
3
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/gql/types/index.ts"],"sourcesContent":["export * from './fragment-masking';\nexport * from './gql';\n"],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_fragmentMasking","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_gql"],"sources":["../../../../src/gql/types/index.ts"],"sourcesContent":["export * from './fragment-masking';\nexport * from './gql';\n"],"mappings":";;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,gBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,gBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,gBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,IAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,IAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,IAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,IAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/dist/module/index.js
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _VolatilityChartWidget = require("./VolatilityChartWidget");
|
|
7
|
+
Object.keys(_VolatilityChartWidget).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _VolatilityChartWidget[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _VolatilityChartWidget[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
2
17
|
//# sourceMappingURL=index.js.map
|
package/dist/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from './VolatilityChartWidget';\n"],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_VolatilityChartWidget","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../src/index.ts"],"sourcesContent":["export * from './VolatilityChartWidget';\n"],"mappings":";;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,sBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,sBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,sBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1,20 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.translations = void 0;
|
|
7
|
+
var _monoI18n = require("@oanda/mono-i18n");
|
|
8
|
+
var _en = _interopRequireDefault(require("./sources/en.json"));
|
|
9
|
+
var _es = _interopRequireDefault(require("./sources/es.json"));
|
|
10
|
+
var _th = _interopRequireDefault(require("./sources/th.json"));
|
|
11
|
+
var _zh_TW = _interopRequireDefault(require("./sources/zh_TW.json"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
const translations = exports.translations = {
|
|
14
|
+
[_monoI18n.Locale.en]: {
|
|
15
|
+
translation: _en.default
|
|
9
16
|
},
|
|
10
|
-
[Locale.zhTW]: {
|
|
11
|
-
translation:
|
|
17
|
+
[_monoI18n.Locale.zhTW]: {
|
|
18
|
+
translation: _zh_TW.default
|
|
12
19
|
},
|
|
13
|
-
[Locale.es]: {
|
|
14
|
-
translation:
|
|
20
|
+
[_monoI18n.Locale.es]: {
|
|
21
|
+
translation: _es.default
|
|
15
22
|
},
|
|
16
|
-
[Locale.th]: {
|
|
17
|
-
translation:
|
|
23
|
+
[_monoI18n.Locale.th]: {
|
|
24
|
+
translation: _th.default
|
|
18
25
|
}
|
|
19
26
|
};
|
|
20
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["_monoI18n","require","_en","_interopRequireDefault","_es","_th","_zh_TW","e","__esModule","default","translations","exports","Locale","en","translation","zhTW","es","th"],"sources":["../../../src/translations/index.ts"],"sourcesContent":["import type { Translations } from '@oanda/mono-i18n';\nimport { Locale } from '@oanda/mono-i18n';\n\nimport en from './sources/en.json';\nimport es from './sources/es.json';\nimport th from './sources/th.json';\nimport zhTW from './sources/zh_TW.json';\nimport type { defaultTranslations } from './translations';\n\nexport type TranslationKey = keyof typeof defaultTranslations;\n\nexport const translations: Translations = {\n [Locale.en]: { translation: en },\n [Locale.zhTW]: { translation: zhTW },\n [Locale.es]: { translation: es },\n [Locale.th]: { translation: th },\n};\n"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,GAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,GAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,GAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AAAwC,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAKjC,MAAMG,YAA0B,GAAAC,OAAA,CAAAD,YAAA,GAAG;EACxC,CAACE,gBAAM,CAACC,EAAE,GAAG;IAAEC,WAAW,EAAED;EAAG,CAAC;EAChC,CAACD,gBAAM,CAACG,IAAI,GAAG;IAAED,WAAW,EAAEC;EAAK,CAAC;EACpC,CAACH,gBAAM,CAACI,EAAE,GAAG;IAAEF,WAAW,EAAEE;EAAG,CAAC;EAChC,CAACJ,gBAAM,CAACK,EAAE,GAAG;IAAEH,WAAW,EAAEG;EAAG;AACjC,CAAC","ignoreList":[]}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.defaultTranslations = void 0;
|
|
7
|
+
const defaultTranslations = exports.defaultTranslations = {
|
|
2
8
|
'10_weeks': '10 weeks',
|
|
3
9
|
'10d': '10D',
|
|
4
10
|
'10w': '10W',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.js","names":["defaultTranslations","daily","data_unavailable","date","day","fri","hour","hourly","instrument","instrument_type","mobile_tooltip_placeholder","mon","pagination_entries_range","pips","price_range","thurs","tues","utc_info","wed","weekly"],"sources":["../../../src/translations/translations.ts"],"sourcesContent":["export const defaultTranslations = {\n '10_weeks': '10 weeks',\n '10d': '10D',\n '10w': '10W',\n '1_month': '1 month',\n '1m': '1M',\n '3_months': '3 months',\n '3m': '3M',\n '5_days': '5 days',\n '5_weeks': '5 weeks',\n '5d': '5D',\n '5w': '5W',\n daily: 'Daily',\n data_unavailable: 'Data unavailable',\n date: 'Date',\n day: 'Day',\n fri: 'Fri',\n hour: 'Hour',\n hourly: 'Hourly',\n instrument: 'Instrument',\n instrument_type: 'Instrument Type',\n mobile_tooltip_placeholder: 'Tap a bar to see the value',\n mon: 'Mon',\n pagination_entries_range:\n '{{firstItemOnPage}}-{{lastItemOnPage}} of {{itemCount}} entries',\n pips: 'Pips',\n price_range: 'Price range',\n thurs: 'Thurs',\n tues: 'Tues',\n utc_info: 'Hours displayed in UTC',\n wed: 'Wed',\n weekly: 'Weekly',\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.js","names":["defaultTranslations","exports","daily","data_unavailable","date","day","fri","hour","hourly","instrument","instrument_type","mobile_tooltip_placeholder","mon","pagination_entries_range","pips","price_range","thurs","tues","utc_info","wed","weekly"],"sources":["../../../src/translations/translations.ts"],"sourcesContent":["export const defaultTranslations = {\n '10_weeks': '10 weeks',\n '10d': '10D',\n '10w': '10W',\n '1_month': '1 month',\n '1m': '1M',\n '3_months': '3 months',\n '3m': '3M',\n '5_days': '5 days',\n '5_weeks': '5 weeks',\n '5d': '5D',\n '5w': '5W',\n daily: 'Daily',\n data_unavailable: 'Data unavailable',\n date: 'Date',\n day: 'Day',\n fri: 'Fri',\n hour: 'Hour',\n hourly: 'Hourly',\n instrument: 'Instrument',\n instrument_type: 'Instrument Type',\n mobile_tooltip_placeholder: 'Tap a bar to see the value',\n mon: 'Mon',\n pagination_entries_range:\n '{{firstItemOnPage}}-{{lastItemOnPage}} of {{itemCount}} entries',\n pips: 'Pips',\n price_range: 'Price range',\n thurs: 'Thurs',\n tues: 'Tues',\n utc_info: 'Hours displayed in UTC',\n wed: 'Wed',\n weekly: 'Weekly',\n};\n"],"mappings":";;;;;;AAAO,MAAMA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG;EACjC,UAAU,EAAE,UAAU;EACtB,KAAK,EAAE,KAAK;EACZ,KAAK,EAAE,KAAK;EACZ,SAAS,EAAE,SAAS;EACpB,IAAI,EAAE,IAAI;EACV,UAAU,EAAE,UAAU;EACtB,IAAI,EAAE,IAAI;EACV,QAAQ,EAAE,QAAQ;EAClB,SAAS,EAAE,SAAS;EACpB,IAAI,EAAE,IAAI;EACV,IAAI,EAAE,IAAI;EACVE,KAAK,EAAE,OAAO;EACdC,gBAAgB,EAAE,kBAAkB;EACpCC,IAAI,EAAE,MAAM;EACZC,GAAG,EAAE,KAAK;EACVC,GAAG,EAAE,KAAK;EACVC,IAAI,EAAE,MAAM;EACZC,MAAM,EAAE,QAAQ;EAChBC,UAAU,EAAE,YAAY;EACxBC,eAAe,EAAE,iBAAiB;EAClCC,0BAA0B,EAAE,4BAA4B;EACxDC,GAAG,EAAE,KAAK;EACVC,wBAAwB,EACtB,iEAAiE;EACnEC,IAAI,EAAE,MAAM;EACZC,WAAW,EAAE,aAAa;EAC1BC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,MAAM;EACZC,QAAQ,EAAE,wBAAwB;EAClCC,GAAG,EAAE,KAAK;EACVC,MAAM,EAAE;AACV,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getVolatilityChartAssetClasses: import("
|
|
1
|
+
export declare const getVolatilityChartAssetClasses: import("graphql").DocumentNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getVolatilityChartData: import("
|
|
1
|
+
export declare const getVolatilityChartData: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oanda/labs-volatility-chart-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.202",
|
|
4
4
|
"description": "Labs Volatility Chart Widget",
|
|
5
5
|
"main": "dist/main/index.js",
|
|
6
6
|
"module": "dist/module/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
+
"build:cjs": "babel --root-mode upward src --out-dir dist/main --source-maps --extensions .ts,.tsx --delete-dir-on-start --no-comments --copy-files --ignore \"**/*.d.ts\"",
|
|
10
|
+
"build:esm": "babel --root-mode upward src --out-dir dist/module --source-maps --extensions .ts,.tsx --delete-dir-on-start --no-comments --copy-files --ignore \"**/*.d.ts\"",
|
|
11
|
+
"build:types": "rm -rf dist/types && tsc --project tsconfig.types.json",
|
|
12
|
+
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
|
|
13
|
+
"clean": "rm -rf dist/",
|
|
9
14
|
"codegen": "graphql-codegen --config codegen.ts",
|
|
10
15
|
"translations:pull": "op run --env-file=\"../../.env\" -- lokalise pull"
|
|
11
16
|
},
|
|
@@ -13,7 +18,7 @@
|
|
|
13
18
|
"author": "OANDA",
|
|
14
19
|
"license": "UNLICENSED",
|
|
15
20
|
"dependencies": {
|
|
16
|
-
"@oanda/labs-widget-common": "^1.0.
|
|
21
|
+
"@oanda/labs-widget-common": "^1.0.253",
|
|
17
22
|
"@oanda/mono-i18n": "10.0.1",
|
|
18
23
|
"echarts": "6.0.0",
|
|
19
24
|
"echarts-for-react": "3.0.4",
|
|
@@ -22,6 +27,5 @@
|
|
|
22
27
|
"devDependencies": {
|
|
23
28
|
"@graphql-codegen/cli": "5.0.0",
|
|
24
29
|
"@graphql-codegen/client-preset": "4.1.0"
|
|
25
|
-
}
|
|
26
|
-
"gitHead": "9f0bb69ebb741a06a9fbd53c1b63a32085d0f2f4"
|
|
30
|
+
}
|
|
27
31
|
}
|