@elice/material-shared-utils 1.261108.0-customhtmlmaterial.0 → 1.261108.0-customhtmlmaterial.2
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.
|
@@ -5,6 +5,11 @@ export interface MaterialConfig {
|
|
|
5
5
|
apiOriginUrl: string;
|
|
6
6
|
/** Origin of API websocket server. Should start with `ws(s?)://` */
|
|
7
7
|
apiWsOriginUrl: string;
|
|
8
|
+
/**
|
|
9
|
+
* Origin of the elice-material API server (Custom HTML materials). Should start with
|
|
10
|
+
* `http(s?)://`. Only screens that call elice-material need it.
|
|
11
|
+
*/
|
|
12
|
+
materialApiOriginUrl?: string;
|
|
8
13
|
/** Organization name short. */
|
|
9
14
|
orgNameShort: string;
|
|
10
15
|
/** Elice API session key. */
|
|
@@ -15,6 +15,7 @@ var MaterialConfigProvider = function MaterialConfigProvider(_ref) {
|
|
|
15
15
|
var children = _ref.children,
|
|
16
16
|
apiOriginUrl = _ref.apiOriginUrl,
|
|
17
17
|
apiWsOriginUrl = _ref.apiWsOriginUrl,
|
|
18
|
+
materialApiOriginUrl = _ref.materialApiOriginUrl,
|
|
18
19
|
_ref$orgNameShort = _ref.orgNameShort,
|
|
19
20
|
orgNameShortProp = _ref$orgNameShort === void 0 ? 'academy' : _ref$orgNameShort;
|
|
20
21
|
var _React$useState = React__default.default.useState(orgNameShortProp),
|
|
@@ -48,6 +49,7 @@ var MaterialConfigProvider = function MaterialConfigProvider(_ref) {
|
|
|
48
49
|
value: {
|
|
49
50
|
apiOriginUrl: apiOriginUrl,
|
|
50
51
|
apiWsOriginUrl: apiWsOriginUrl,
|
|
52
|
+
materialApiOriginUrl: materialApiOriginUrl,
|
|
51
53
|
orgNameShort: orgNameShort,
|
|
52
54
|
sessionKey: sessionKey
|
|
53
55
|
}
|
|
@@ -5,6 +5,11 @@ export interface MaterialConfig {
|
|
|
5
5
|
apiOriginUrl: string;
|
|
6
6
|
/** Origin of API websocket server. Should start with `ws(s?)://` */
|
|
7
7
|
apiWsOriginUrl: string;
|
|
8
|
+
/**
|
|
9
|
+
* Origin of the elice-material API server (Custom HTML materials). Should start with
|
|
10
|
+
* `http(s?)://`. Only screens that call elice-material need it.
|
|
11
|
+
*/
|
|
12
|
+
materialApiOriginUrl?: string;
|
|
8
13
|
/** Organization name short. */
|
|
9
14
|
orgNameShort: string;
|
|
10
15
|
/** Elice API session key. */
|
|
@@ -7,6 +7,7 @@ var MaterialConfigProvider = function MaterialConfigProvider(_ref) {
|
|
|
7
7
|
var children = _ref.children,
|
|
8
8
|
apiOriginUrl = _ref.apiOriginUrl,
|
|
9
9
|
apiWsOriginUrl = _ref.apiWsOriginUrl,
|
|
10
|
+
materialApiOriginUrl = _ref.materialApiOriginUrl,
|
|
10
11
|
_ref$orgNameShort = _ref.orgNameShort,
|
|
11
12
|
orgNameShortProp = _ref$orgNameShort === void 0 ? 'academy' : _ref$orgNameShort;
|
|
12
13
|
var _React$useState = React.useState(orgNameShortProp),
|
|
@@ -40,6 +41,7 @@ var MaterialConfigProvider = function MaterialConfigProvider(_ref) {
|
|
|
40
41
|
value: {
|
|
41
42
|
apiOriginUrl: apiOriginUrl,
|
|
42
43
|
apiWsOriginUrl: apiWsOriginUrl,
|
|
44
|
+
materialApiOriginUrl: materialApiOriginUrl,
|
|
43
45
|
orgNameShort: orgNameShort,
|
|
44
46
|
sessionKey: sessionKey
|
|
45
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-shared-utils",
|
|
3
|
-
"version": "1.261108.0-customhtmlmaterial.
|
|
3
|
+
"version": "1.261108.0-customhtmlmaterial.2",
|
|
4
4
|
"description": "Shared typings for elice material projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@tanstack/react-query": "^4",
|
|
25
25
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
26
26
|
"react-use": "^17.0.0",
|
|
27
|
-
"@elice/material-shared-types": "1.261108.0-customhtmlmaterial.
|
|
27
|
+
"@elice/material-shared-types": "1.261108.0-customhtmlmaterial.2"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"lodash-es": "^4.17.21",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"react-use": "^17.2.4",
|
|
49
49
|
"rollup": "^4.0.0",
|
|
50
50
|
"typescript": "~5.9.3",
|
|
51
|
-
"@elice/material-shared-types": "1.261108.0-customhtmlmaterial.
|
|
51
|
+
"@elice/material-shared-types": "1.261108.0-customhtmlmaterial.2"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"start": "run-s watch",
|