@oanda/labs-sentiment-widget 1.0.13 → 1.0.15

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 CHANGED
@@ -3,6 +3,98 @@
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.15 (2023-10-04)
7
+
8
+
9
+
10
+ ## 1.0.14 (2023-10-03)
11
+
12
+
13
+
14
+ ## 1.0.13 (2023-10-03)
15
+
16
+
17
+
18
+ ## 1.0.12 (2023-10-03)
19
+
20
+
21
+
22
+ ## 1.0.11 (2023-10-02)
23
+
24
+
25
+
26
+ ## 1.0.10 (2023-09-29)
27
+
28
+
29
+
30
+ ## 1.0.9 (2023-09-28)
31
+
32
+
33
+
34
+ ## 1.0.8 (2023-09-27)
35
+
36
+
37
+
38
+ ## 1.0.7 (2023-09-26)
39
+
40
+
41
+
42
+ ## 1.0.6 (2023-09-21)
43
+
44
+
45
+
46
+ ## 1.0.5 (2023-09-13)
47
+
48
+ **Note:** Version bump only for package @oanda/labs-sentiment-widget
49
+
50
+
51
+
52
+
53
+
54
+ ## 1.0.14 (2023-10-03)
55
+
56
+
57
+
58
+ ## 1.0.13 (2023-10-03)
59
+
60
+
61
+
62
+ ## 1.0.12 (2023-10-03)
63
+
64
+
65
+
66
+ ## 1.0.11 (2023-10-02)
67
+
68
+
69
+
70
+ ## 1.0.10 (2023-09-29)
71
+
72
+
73
+
74
+ ## 1.0.9 (2023-09-28)
75
+
76
+
77
+
78
+ ## 1.0.8 (2023-09-27)
79
+
80
+
81
+
82
+ ## 1.0.7 (2023-09-26)
83
+
84
+
85
+
86
+ ## 1.0.6 (2023-09-21)
87
+
88
+
89
+
90
+ ## 1.0.5 (2023-09-13)
91
+
92
+ **Note:** Version bump only for package @oanda/labs-sentiment-widget
93
+
94
+
95
+
96
+
97
+
6
98
  ## 1.0.13 (2023-10-03)
7
99
 
8
100
 
@@ -7,11 +7,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
7
7
  const {
8
8
  graphqlUrl,
9
9
  division,
10
- instrument
10
+ instrument,
11
+ renderElementId
11
12
  } = window.sentimentWidgetConfig;
12
13
  (0, _reactDom.render)(_react.default.createElement(_SentimentWidget.SentimentWidget, {
13
14
  graphqlUrl: graphqlUrl,
14
15
  division: division,
15
16
  instrument: instrument
16
- }), document.getElementById('sentiment'));
17
+ }), document.getElementById(renderElementId));
17
18
  //# sourceMappingURL=render.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"render.js","names":["_react","_interopRequireDefault","require","_reactDom","_SentimentWidget","obj","__esModule","default","graphqlUrl","division","instrument","window","sentimentWidgetConfig","render","createElement","SentimentWidget","document","getElementById"],"sources":["../../../src/SentimentWidget/render.tsx"],"sourcesContent":["import React from 'react';\nimport { render } from 'react-dom';\nimport { SentimentWidget } from './SentimentWidget';\nimport { SentimentConfig } from './types';\n\ndeclare global {\n interface Window {\n sentimentWidgetConfig: SentimentConfig;\n }\n}\n\nconst {\n graphqlUrl,\n division,\n instrument,\n} = window.sentimentWidgetConfig;\n\nrender(\n <SentimentWidget\n graphqlUrl={graphqlUrl}\n division={division}\n instrument={instrument}\n />,\n document.getElementById('sentiment'),\n);\n"],"mappings":";;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AAAoD,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AASpD,MAAM;EACJG,UAAU;EACVC,QAAQ;EACRC;AACF,CAAC,GAAGC,MAAM,CAACC,qBAAqB;AAEhC,IAAAC,gBAAM,EACJb,MAAA,CAAAO,OAAA,CAAAO,aAAA,CAACV,gBAAA,CAAAW,eAAe;EACdP,UAAU,EAAEA,UAAW;EACvBC,QAAQ,EAAEA,QAAS;EACnBC,UAAU,EAAEA;AAAW,CACxB,CAAC,EACFM,QAAQ,CAACC,cAAc,CAAC,WAAW,CACrC,CAAC"}
1
+ {"version":3,"file":"render.js","names":["_react","_interopRequireDefault","require","_reactDom","_SentimentWidget","obj","__esModule","default","graphqlUrl","division","instrument","renderElementId","window","sentimentWidgetConfig","render","createElement","SentimentWidget","document","getElementById"],"sources":["../../../src/SentimentWidget/render.tsx"],"sourcesContent":["import React from 'react';\nimport { render } from 'react-dom';\nimport { SentimentWidget } from './SentimentWidget';\nimport { SentimentWrapperConfig } from './types';\n\ndeclare global {\n interface Window {\n sentimentWidgetConfig: SentimentWrapperConfig;\n }\n}\n\nconst {\n graphqlUrl,\n division,\n instrument,\n renderElementId,\n} = window.sentimentWidgetConfig;\n\nrender(\n <SentimentWidget\n graphqlUrl={graphqlUrl}\n division={division}\n instrument={instrument}\n />,\n document.getElementById(renderElementId),\n);\n"],"mappings":";;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AAAoD,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AASpD,MAAM;EACJG,UAAU;EACVC,QAAQ;EACRC,UAAU;EACVC;AACF,CAAC,GAAGC,MAAM,CAACC,qBAAqB;AAEhC,IAAAC,gBAAM,EACJd,MAAA,CAAAO,OAAA,CAAAQ,aAAA,CAACX,gBAAA,CAAAY,eAAe;EACdR,UAAU,EAAEA,UAAW;EACvBC,QAAQ,EAAEA,QAAS;EACnBC,UAAU,EAAEA;AAAW,CACxB,CAAC,EACFO,QAAQ,CAACC,cAAc,CAACP,eAAe,CACzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["SentimentSort","exports"],"sources":["../../../src/SentimentWidget/types.ts"],"sourcesContent":["export interface SentimentConfig {\n graphqlUrl: string;\n division: string;\n instrument?: string;\n}\n\nexport interface SentimentWidgetConfig {\n division: string;\n instrument: string;\n}\n\nexport interface SentimentToolConfig {\n division: string;\n}\n\nexport interface SentimentListData {\n name: string;\n sentiment: {\n shortPercent: number;\n longPercent: number;\n }\n}\n\nexport interface SentimentListResponse {\n sentimentList: SentimentListData[]\n}\n\nexport enum SentimentSort {\n Bearish = 'BEARISH',\n Bullish = 'BULLISH',\n}\n"],"mappings":";;;;;;IA2BYA,aAAa,GAAAC,OAAA,CAAAD,aAAA,aAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA"}
1
+ {"version":3,"file":"types.js","names":["SentimentSort","exports"],"sources":["../../../src/SentimentWidget/types.ts"],"sourcesContent":["export interface SentimentConfig {\n graphqlUrl: string;\n division: string;\n instrument?: string;\n}\nexport interface SentimentWrapperConfig extends SentimentConfig {\n renderElementId: string;\n}\nexport interface SentimentWidgetConfig {\n division: string;\n instrument: string;\n}\n\nexport interface SentimentToolConfig {\n division: string;\n}\n\nexport interface SentimentListData {\n name: string;\n sentiment: {\n shortPercent: number;\n longPercent: number;\n }\n}\n\nexport interface SentimentListResponse {\n sentimentList: SentimentListData[]\n}\n\nexport enum SentimentSort {\n Bearish = 'BEARISH',\n Bullish = 'BULLISH',\n}\n"],"mappings":";;;;;;IA6BYA,aAAa,GAAAC,OAAA,CAAAD,aAAA,aAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA"}
@@ -4,11 +4,12 @@ import { SentimentWidget } from './SentimentWidget';
4
4
  const {
5
5
  graphqlUrl,
6
6
  division,
7
- instrument
7
+ instrument,
8
+ renderElementId
8
9
  } = window.sentimentWidgetConfig;
9
10
  render(React.createElement(SentimentWidget, {
10
11
  graphqlUrl: graphqlUrl,
11
12
  division: division,
12
13
  instrument: instrument
13
- }), document.getElementById('sentiment'));
14
+ }), document.getElementById(renderElementId));
14
15
  //# sourceMappingURL=render.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"render.js","names":["React","render","SentimentWidget","graphqlUrl","division","instrument","window","sentimentWidgetConfig","createElement","document","getElementById"],"sources":["../../../src/SentimentWidget/render.tsx"],"sourcesContent":["import React from 'react';\nimport { render } from 'react-dom';\nimport { SentimentWidget } from './SentimentWidget';\nimport { SentimentConfig } from './types';\n\ndeclare global {\n interface Window {\n sentimentWidgetConfig: SentimentConfig;\n }\n}\n\nconst {\n graphqlUrl,\n division,\n instrument,\n} = window.sentimentWidgetConfig;\n\nrender(\n <SentimentWidget\n graphqlUrl={graphqlUrl}\n division={division}\n instrument={instrument}\n />,\n document.getElementById('sentiment'),\n);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,eAAe,QAAQ,mBAAmB;AASnD,MAAM;EACJC,UAAU;EACVC,QAAQ;EACRC;AACF,CAAC,GAAGC,MAAM,CAACC,qBAAqB;AAEhCN,MAAM,CACJD,KAAA,CAAAQ,aAAA,CAACN,eAAe;EACdC,UAAU,EAAEA,UAAW;EACvBC,QAAQ,EAAEA,QAAS;EACnBC,UAAU,EAAEA;AAAW,CACxB,CAAC,EACFI,QAAQ,CAACC,cAAc,CAAC,WAAW,CACrC,CAAC"}
1
+ {"version":3,"file":"render.js","names":["React","render","SentimentWidget","graphqlUrl","division","instrument","renderElementId","window","sentimentWidgetConfig","createElement","document","getElementById"],"sources":["../../../src/SentimentWidget/render.tsx"],"sourcesContent":["import React from 'react';\nimport { render } from 'react-dom';\nimport { SentimentWidget } from './SentimentWidget';\nimport { SentimentWrapperConfig } from './types';\n\ndeclare global {\n interface Window {\n sentimentWidgetConfig: SentimentWrapperConfig;\n }\n}\n\nconst {\n graphqlUrl,\n division,\n instrument,\n renderElementId,\n} = window.sentimentWidgetConfig;\n\nrender(\n <SentimentWidget\n graphqlUrl={graphqlUrl}\n division={division}\n instrument={instrument}\n />,\n document.getElementById(renderElementId),\n);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,eAAe,QAAQ,mBAAmB;AASnD,MAAM;EACJC,UAAU;EACVC,QAAQ;EACRC,UAAU;EACVC;AACF,CAAC,GAAGC,MAAM,CAACC,qBAAqB;AAEhCP,MAAM,CACJD,KAAA,CAAAS,aAAA,CAACP,eAAe;EACdC,UAAU,EAAEA,UAAW;EACvBC,QAAQ,EAAEA,QAAS;EACnBC,UAAU,EAAEA;AAAW,CACxB,CAAC,EACFK,QAAQ,CAACC,cAAc,CAACL,eAAe,CACzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["SentimentSort"],"sources":["../../../src/SentimentWidget/types.ts"],"sourcesContent":["export interface SentimentConfig {\n graphqlUrl: string;\n division: string;\n instrument?: string;\n}\n\nexport interface SentimentWidgetConfig {\n division: string;\n instrument: string;\n}\n\nexport interface SentimentToolConfig {\n division: string;\n}\n\nexport interface SentimentListData {\n name: string;\n sentiment: {\n shortPercent: number;\n longPercent: number;\n }\n}\n\nexport interface SentimentListResponse {\n sentimentList: SentimentListData[]\n}\n\nexport enum SentimentSort {\n Bearish = 'BEARISH',\n Bullish = 'BULLISH',\n}\n"],"mappings":"AA2BA,WAAYA,aAAa,aAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA"}
1
+ {"version":3,"file":"types.js","names":["SentimentSort"],"sources":["../../../src/SentimentWidget/types.ts"],"sourcesContent":["export interface SentimentConfig {\n graphqlUrl: string;\n division: string;\n instrument?: string;\n}\nexport interface SentimentWrapperConfig extends SentimentConfig {\n renderElementId: string;\n}\nexport interface SentimentWidgetConfig {\n division: string;\n instrument: string;\n}\n\nexport interface SentimentToolConfig {\n division: string;\n}\n\nexport interface SentimentListData {\n name: string;\n sentiment: {\n shortPercent: number;\n longPercent: number;\n }\n}\n\nexport interface SentimentListResponse {\n sentimentList: SentimentListData[]\n}\n\nexport enum SentimentSort {\n Bearish = 'BEARISH',\n Bullish = 'BULLISH',\n}\n"],"mappings":"AA6BA,WAAYA,aAAa,aAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA"}
@@ -1,6 +1,6 @@
1
- import { SentimentConfig } from './types';
1
+ import { SentimentWrapperConfig } from './types';
2
2
  declare global {
3
3
  interface Window {
4
- sentimentWidgetConfig: SentimentConfig;
4
+ sentimentWidgetConfig: SentimentWrapperConfig;
5
5
  }
6
6
  }
@@ -3,6 +3,9 @@ export interface SentimentConfig {
3
3
  division: string;
4
4
  instrument?: string;
5
5
  }
6
+ export interface SentimentWrapperConfig extends SentimentConfig {
7
+ renderElementId: string;
8
+ }
6
9
  export interface SentimentWidgetConfig {
7
10
  division: string;
8
11
  instrument: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oanda/labs-sentiment-widget",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Labs Sentiment Widget",
5
5
  "main": "dist/main/index.js",
6
6
  "module": "dist/module/index.js",
@@ -11,9 +11,9 @@
11
11
  "license": "UNLICENSED",
12
12
  "dependencies": {
13
13
  "@apollo/client": "3.7.17",
14
- "@oanda/labs-widget-common": "^1.0.13",
14
+ "@oanda/labs-widget-common": "^1.0.15",
15
15
  "classnames": "2.3.2",
16
16
  "graphql": "16.7.1"
17
17
  },
18
- "gitHead": "454abdc419c6da23e0050e7c4dc8978f7fdabcf3"
18
+ "gitHead": "3b81bb8660a20137ba83499e1fe5ffe38ad948f2"
19
19
  }
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { render } from 'react-dom';
3
3
  import { SentimentWidget } from './SentimentWidget';
4
- import { SentimentConfig } from './types';
4
+ import { SentimentWrapperConfig } from './types';
5
5
 
6
6
  declare global {
7
7
  interface Window {
8
- sentimentWidgetConfig: SentimentConfig;
8
+ sentimentWidgetConfig: SentimentWrapperConfig;
9
9
  }
10
10
  }
11
11
 
@@ -13,6 +13,7 @@ const {
13
13
  graphqlUrl,
14
14
  division,
15
15
  instrument,
16
+ renderElementId,
16
17
  } = window.sentimentWidgetConfig;
17
18
 
18
19
  render(
@@ -21,5 +22,5 @@ render(
21
22
  division={division}
22
23
  instrument={instrument}
23
24
  />,
24
- document.getElementById('sentiment'),
25
+ document.getElementById(renderElementId),
25
26
  );
@@ -3,7 +3,9 @@ export interface SentimentConfig {
3
3
  division: string;
4
4
  instrument?: string;
5
5
  }
6
-
6
+ export interface SentimentWrapperConfig extends SentimentConfig {
7
+ renderElementId: string;
8
+ }
7
9
  export interface SentimentWidgetConfig {
8
10
  division: string;
9
11
  instrument: string;