@elice/material-exercise 1.231026.0 → 1.231103.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.
|
@@ -26,6 +26,22 @@ var ExerciseProviderNoImage = function ExerciseProviderNoImage(_ref) {
|
|
|
26
26
|
buttonText = _ref.buttonText,
|
|
27
27
|
onButtonClick = _ref.onButtonClick;
|
|
28
28
|
var intl = reactIntl.useIntl();
|
|
29
|
+
/**
|
|
30
|
+
* render action button
|
|
31
|
+
*/
|
|
32
|
+
var renderActionButton = function renderActionButton() {
|
|
33
|
+
if (typeof onButtonClick !== 'function') {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return React__default["default"].createElement(blocks.Button, {
|
|
37
|
+
onClick: onButtonClick
|
|
38
|
+
}, buttonText || intl.formatMessage({
|
|
39
|
+
id: 'exerciseContext.provider.noImage.button'
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
//
|
|
43
|
+
//
|
|
44
|
+
//
|
|
29
45
|
return React__default["default"].createElement(StyledProviderNoImage, null, React__default["default"].createElement(blocks.SafeImage, {
|
|
30
46
|
src: imageSrc,
|
|
31
47
|
defaultSrc: "https://static.elice.io/elice-material/exercise/empty-code-purple.png",
|
|
@@ -40,11 +56,7 @@ var ExerciseProviderNoImage = function ExerciseProviderNoImage(_ref) {
|
|
|
40
56
|
role: "white"
|
|
41
57
|
}, text || intl.formatMessage({
|
|
42
58
|
id: 'exerciseContext.provider.noImage.title'
|
|
43
|
-
}))),
|
|
44
|
-
onClick: onButtonClick
|
|
45
|
-
}, buttonText || intl.formatMessage({
|
|
46
|
-
id: 'exerciseContext.provider.noImage.button'
|
|
47
|
-
})));
|
|
59
|
+
}))), renderActionButton());
|
|
48
60
|
};
|
|
49
61
|
//
|
|
50
62
|
//
|
|
@@ -17,6 +17,22 @@ var ExerciseProviderNoImage = function ExerciseProviderNoImage(_ref) {
|
|
|
17
17
|
buttonText = _ref.buttonText,
|
|
18
18
|
onButtonClick = _ref.onButtonClick;
|
|
19
19
|
var intl = useIntl();
|
|
20
|
+
/**
|
|
21
|
+
* render action button
|
|
22
|
+
*/
|
|
23
|
+
var renderActionButton = function renderActionButton() {
|
|
24
|
+
if (typeof onButtonClick !== 'function') {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return React.createElement(Button, {
|
|
28
|
+
onClick: onButtonClick
|
|
29
|
+
}, buttonText || intl.formatMessage({
|
|
30
|
+
id: 'exerciseContext.provider.noImage.button'
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
33
|
+
//
|
|
34
|
+
//
|
|
35
|
+
//
|
|
20
36
|
return React.createElement(StyledProviderNoImage, null, React.createElement(SafeImage, {
|
|
21
37
|
src: imageSrc,
|
|
22
38
|
defaultSrc: "https://static.elice.io/elice-material/exercise/empty-code-purple.png",
|
|
@@ -31,11 +47,7 @@ var ExerciseProviderNoImage = function ExerciseProviderNoImage(_ref) {
|
|
|
31
47
|
role: "white"
|
|
32
48
|
}, text || intl.formatMessage({
|
|
33
49
|
id: 'exerciseContext.provider.noImage.title'
|
|
34
|
-
}))),
|
|
35
|
-
onClick: onButtonClick
|
|
36
|
-
}, buttonText || intl.formatMessage({
|
|
37
|
-
id: 'exerciseContext.provider.noImage.button'
|
|
38
|
-
})));
|
|
50
|
+
}))), renderActionButton());
|
|
39
51
|
};
|
|
40
52
|
//
|
|
41
53
|
//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-exercise",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.231103.0",
|
|
4
4
|
"description": "User view and editing components of Elice material exercise",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"@elice/design-tokens": "^1.220803.0",
|
|
83
83
|
"@elice/icons": "^1.230814.0",
|
|
84
84
|
"@elice/markdown": "^1.220815.0",
|
|
85
|
-
"@elice/material-shared-types": "1.
|
|
86
|
-
"@elice/material-shared-utils": "1.
|
|
85
|
+
"@elice/material-shared-types": "1.231103.0",
|
|
86
|
+
"@elice/material-shared-utils": "1.231103.0",
|
|
87
87
|
"@elice/mui-elements": "^5.230825.0",
|
|
88
88
|
"@elice/mui-system": "^5.230825.0",
|
|
89
89
|
"@elice/types": "^1.230815.0",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"recoil": "^0.6.1",
|
|
113
113
|
"styled-components": "^5.2.0"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "f617fd87ac50d26998ed038719439b76d438158b"
|
|
116
116
|
}
|