@gamelearn/arcade-components 0.24.5 → 0.24.7

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.
@@ -42,9 +42,9 @@ function Panel(_ref) {
42
42
  var isCharacter = character.type === 'character';
43
43
  var emotion = (0, _react.useMemo)(function () {
44
44
  if (isCharacter) {
45
- var _character$resource, _character$resource$a;
45
+ var _character$resource, _character$resource$a, _character$resource$a2;
46
46
 
47
- if (character !== null && character !== void 0 && (_character$resource = character.resource) !== null && _character$resource !== void 0 && (_character$resource$a = _character$resource.animations) !== null && _character$resource$a !== void 0 && _character$resource$a[character.emotion]) {
47
+ if (character !== null && character !== void 0 && (_character$resource = character.resource) !== null && _character$resource !== void 0 && (_character$resource$a = _character$resource.animations) !== null && _character$resource$a !== void 0 && (_character$resource$a2 = _character$resource$a[character.emotion]) !== null && _character$resource$a2 !== void 0 && _character$resource$a2.url) {
48
48
  var _character$resource2, _character$resource2$;
49
49
 
50
50
  return character === null || character === void 0 ? void 0 : (_character$resource2 = character.resource) === null || _character$resource2 === void 0 ? void 0 : (_character$resource2$ = _character$resource2.animations) === null || _character$resource2$ === void 0 ? void 0 : _character$resource2$[character.emotion];
@@ -101,9 +101,7 @@ var DragItemPuzzleComponent = function DragItemPuzzleComponent(_ref) {
101
101
  };
102
102
 
103
103
  (0, _react.useEffect)(function () {
104
- if (resolvedClass !== "") {
105
- disableExit(true);
106
- }
104
+ disableExit(resolvedClass !== "");
107
105
  }, [resolvedClass, disableExit]);
108
106
 
109
107
  var intersectRect = function intersectRect(a, b) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "license": "Gamelearn",
4
- "version": "0.24.5",
4
+ "version": "0.24.7",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist",