@elice/material-external 1.230210.0 → 1.230217.0-sepmatlec.0
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.
|
@@ -19,14 +19,15 @@ const MaterialExternal = ({
|
|
|
19
19
|
className,
|
|
20
20
|
locale = 'en'
|
|
21
21
|
}) => {
|
|
22
|
-
var _a;
|
|
23
|
-
|
|
24
22
|
const prefixCls = 'em-material-external';
|
|
25
|
-
const
|
|
23
|
+
const {
|
|
24
|
+
materialExternal,
|
|
25
|
+
status: materialExternalStatus
|
|
26
|
+
} = materialSharedUtils.useMaterialFetch('materialExternal', React__default["default"].useCallback(signal => apiClient.getOrgMaterialExternalGet({
|
|
26
27
|
materialExternalId
|
|
27
28
|
}, {
|
|
28
29
|
signal
|
|
29
|
-
}), [materialExternalId])); //
|
|
30
|
+
}), [materialExternalId]), apiClient.config.init); //
|
|
30
31
|
//
|
|
31
32
|
//
|
|
32
33
|
|
|
@@ -37,7 +38,7 @@ const MaterialExternal = ({
|
|
|
37
38
|
defaultLocale: "en",
|
|
38
39
|
messages: locale in locales ? locales[locale] : locales.en
|
|
39
40
|
}, React__default["default"].createElement(MaterialExternalContent, {
|
|
40
|
-
materialExternal:
|
|
41
|
+
materialExternal: materialExternal,
|
|
41
42
|
externalGetStatus: materialExternalStatus
|
|
42
43
|
})));
|
|
43
44
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IntlProvider } from 'react-intl';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getOrgMaterialExternalGet, config } from '@elice/api-client';
|
|
4
|
+
import { useMaterialFetch } from '@elice/material-shared-utils';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import * as locales from './locales.js';
|
|
7
7
|
import { en } from './locales.js';
|
|
@@ -13,14 +13,15 @@ const MaterialExternal = ({
|
|
|
13
13
|
className,
|
|
14
14
|
locale = 'en'
|
|
15
15
|
}) => {
|
|
16
|
-
var _a;
|
|
17
|
-
|
|
18
16
|
const prefixCls = 'em-material-external';
|
|
19
|
-
const
|
|
17
|
+
const {
|
|
18
|
+
materialExternal,
|
|
19
|
+
status: materialExternalStatus
|
|
20
|
+
} = useMaterialFetch('materialExternal', React.useCallback(signal => getOrgMaterialExternalGet({
|
|
20
21
|
materialExternalId
|
|
21
22
|
}, {
|
|
22
23
|
signal
|
|
23
|
-
}), [materialExternalId])); //
|
|
24
|
+
}), [materialExternalId]), config.init); //
|
|
24
25
|
//
|
|
25
26
|
//
|
|
26
27
|
|
|
@@ -31,7 +32,7 @@ const MaterialExternal = ({
|
|
|
31
32
|
defaultLocale: "en",
|
|
32
33
|
messages: locale in locales ? locales[locale] : en
|
|
33
34
|
}, React.createElement(MaterialExternalContent, {
|
|
34
|
-
materialExternal:
|
|
35
|
+
materialExternal: materialExternal,
|
|
35
36
|
externalGetStatus: materialExternalStatus
|
|
36
37
|
})));
|
|
37
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-external",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.230217.0-sepmatlec.0",
|
|
4
4
|
"description": "User view and editing components of Elice material external",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@elice/api-client": "1.
|
|
32
|
+
"@elice/api-client": "1.230126.0-sepmatlec.3",
|
|
33
33
|
"@elice/blocks": "^1.220803.0",
|
|
34
34
|
"@elice/design-tokens": "^1.220803.0",
|
|
35
35
|
"@elice/icons": "^1.220803.0",
|
|
36
36
|
"@elice/markdown": "^1.220803.0",
|
|
37
37
|
"@elice/material-shared-types": "*",
|
|
38
38
|
"@elice/material-shared-utils": "*",
|
|
39
|
-
"@elice/types": "1.
|
|
39
|
+
"@elice/types": "1.230126.0-sepmatlec.3",
|
|
40
40
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
41
41
|
"react-intl": "^5.0.0",
|
|
42
42
|
"react-use": "^17.0.0",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"tslib": "^2.3.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@elice/api-client": "1.
|
|
50
|
+
"@elice/api-client": "1.230126.0-sepmatlec.3",
|
|
51
51
|
"@elice/blocks": "^1.220803.0",
|
|
52
52
|
"@elice/design-tokens": "^1.220803.0",
|
|
53
53
|
"@elice/icons": "^1.220803.0",
|
|
54
54
|
"@elice/icons-legacy": "npm:@elice/icons@0.220803.1",
|
|
55
55
|
"@elice/markdown": "^1.220803.0",
|
|
56
|
-
"@elice/material-shared-types": "1.
|
|
57
|
-
"@elice/material-shared-utils": "1.
|
|
58
|
-
"@elice/types": "1.
|
|
56
|
+
"@elice/material-shared-types": "1.230217.0-sepmatlec.0",
|
|
57
|
+
"@elice/material-shared-utils": "1.230217.0-sepmatlec.0",
|
|
58
|
+
"@elice/types": "1.230126.0-sepmatlec.3",
|
|
59
59
|
"@types/classnames": "^2.3.1",
|
|
60
60
|
"@types/react": "~17.0.9",
|
|
61
61
|
"@types/styled-components": "^5.1.21",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"react-use": "^17.2.4",
|
|
65
65
|
"styled-components": "^5.3.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "6b2a7a2aa54b21685ea99f8bb5f240cdfd1b343a"
|
|
68
68
|
}
|