@gamelearn/arcade-components 0.14.6 → 0.14.8
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/README.md +1 -1
- package/dist/components/conversational-pro-component/components/ConversationalProComponent.js +1 -1
- package/dist/components/decision-component/components/DecisionComponent.js +1 -1
- package/dist/components/image-click-wrapper-component/components/ImageClickWrapperComponent.js +2 -0
- package/dist/components/terminal-puzzle-component/components/Visor/index.js +5 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ yarn compile
|
|
|
66
66
|
yalc publish
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Después, en el repositorio de `arcade
|
|
69
|
+
Después, en el repositorio de `arcade` tendremos que linkar el paquete generado de la siguiente forma:
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
72
|
yalc link @gamelearn/arcade-components
|
package/dist/components/conversational-pro-component/components/ConversationalProComponent.js
CHANGED
|
@@ -182,7 +182,7 @@ var ConversationProViewer = function ConversationProViewer(_ref) {
|
|
|
182
182
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
183
183
|
className: "conversation--layer"
|
|
184
184
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
185
|
-
className: "conversation",
|
|
185
|
+
className: "conversation arcade-conversation",
|
|
186
186
|
style: backgroundImage ? {
|
|
187
187
|
backgroundImage: "url(\"".concat(backgroundImage, "\")")
|
|
188
188
|
} : {}
|
|
@@ -180,7 +180,7 @@ var DecisionComponent = function DecisionComponent(_ref) {
|
|
|
180
180
|
var CharactersWrapper = function CharactersWrapper(_ref4) {
|
|
181
181
|
var children = _ref4.children;
|
|
182
182
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
183
|
-
className: "conversation",
|
|
183
|
+
className: "conversation arcade-conversation",
|
|
184
184
|
style: inheritProps.background ? {
|
|
185
185
|
backgroundImage: "url(\"".concat(inheritProps.background, "\")")
|
|
186
186
|
} : {}
|
package/dist/components/image-click-wrapper-component/components/ImageClickWrapperComponent.js
CHANGED
|
@@ -194,6 +194,8 @@ var ImageClickWrapperComponent = function ImageClickWrapperComponent(props) {
|
|
|
194
194
|
}, [clickedZones, areas.length, handleFinish, hideContinue]);
|
|
195
195
|
(0, _react.useEffect)(function () {
|
|
196
196
|
setResolveAction(function (resolve) {
|
|
197
|
+
setCompleted(true);
|
|
198
|
+
setDisableClick(true);
|
|
197
199
|
setFinished(true);
|
|
198
200
|
setTimeout(function () {
|
|
199
201
|
resolve();
|
|
@@ -70,13 +70,16 @@ var Visor = function Visor(_ref) {
|
|
|
70
70
|
component: _pdfComponent.PdfVisor,
|
|
71
71
|
props: _objectSpread(_objectSpread({}, file), {}, {
|
|
72
72
|
url: url,
|
|
73
|
-
translate: translate
|
|
73
|
+
translate: translate,
|
|
74
|
+
endPdf: function endPdf() {}
|
|
74
75
|
})
|
|
75
76
|
},
|
|
76
77
|
application: {
|
|
77
78
|
component: _pdfComponent.PdfVisor,
|
|
78
79
|
props: _objectSpread(_objectSpread({}, file), {}, {
|
|
79
|
-
url: url
|
|
80
|
+
url: url,
|
|
81
|
+
translate: translate,
|
|
82
|
+
endPdf: function endPdf() {}
|
|
80
83
|
})
|
|
81
84
|
}
|
|
82
85
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamelearn/arcade-components",
|
|
3
3
|
"license": "Gamelearn",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.8",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@babel/cli": "7.12.10",
|
|
56
56
|
"@babel/preset-env": "7.12.11",
|
|
57
57
|
"@babel/preset-react": "7.12.10",
|
|
58
|
-
"@gamelearn/ui-components-core": "5.
|
|
58
|
+
"@gamelearn/ui-components-core": "5.29.0",
|
|
59
59
|
"@react-three/test-renderer": "6.0.6",
|
|
60
60
|
"@storybook/addon-actions": "6.1.11",
|
|
61
61
|
"@storybook/addon-essentials": "6.1.11",
|
|
@@ -76,4 +76,4 @@
|
|
|
76
76
|
"^react-pdf$": "react-pdf/dist/umd/entry.jest"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
}
|
|
79
|
+
}
|