@rpg-engine/long-bow 0.2.10 → 0.2.12
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/dist/long-bow.cjs.development.js +14 -5
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +14 -5
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/PropertySelect/PropertySelect.tsx +9 -2
- package/src/components/QuestInfo/QuestInfo.tsx +13 -3
package/dist/long-bow.esm.js
CHANGED
|
@@ -20387,6 +20387,9 @@ var PropertySelect = function PropertySelect(_ref) {
|
|
|
20387
20387
|
useEffect(function () {
|
|
20388
20388
|
onChange(availableProperties[currentIndex]);
|
|
20389
20389
|
}, [currentIndex]);
|
|
20390
|
+
useEffect(function () {
|
|
20391
|
+
setCurrentIndex(0);
|
|
20392
|
+
}, [availableProperties]);
|
|
20390
20393
|
|
|
20391
20394
|
var getCurrentSelectionName = function getCurrentSelectionName() {
|
|
20392
20395
|
var item = availableProperties[currentIndex];
|
|
@@ -20401,9 +20404,11 @@ var PropertySelect = function PropertySelect(_ref) {
|
|
|
20401
20404
|
return React.createElement(Container$1, null, React.createElement(TextOverlay, null, React.createElement(Item, null, getCurrentSelectionName())), React.createElement("div", {
|
|
20402
20405
|
className: "rpgui-progress-track"
|
|
20403
20406
|
}), React.createElement(LeftArrow, {
|
|
20404
|
-
onClick: onLeftClick
|
|
20407
|
+
onClick: onLeftClick,
|
|
20408
|
+
onTouchStart: onLeftClick
|
|
20405
20409
|
}), React.createElement(RightArrow, {
|
|
20406
|
-
onClick: onRightClick
|
|
20410
|
+
onClick: onRightClick,
|
|
20411
|
+
onTouchStart: onRightClick
|
|
20407
20412
|
}));
|
|
20408
20413
|
};
|
|
20409
20414
|
var Item = /*#__PURE__*/styled.span.withConfig({
|
|
@@ -27105,11 +27110,15 @@ var QuestInfo = function QuestInfo(_ref) {
|
|
|
27105
27110
|
if (onClose) onClose();
|
|
27106
27111
|
},
|
|
27107
27112
|
width: "730px",
|
|
27108
|
-
cancelDrag: ".equipment-container-body"
|
|
27113
|
+
cancelDrag: ".equipment-container-body .arrow-selector"
|
|
27109
27114
|
}, quests.length >= 2 ? React.createElement(QuestsContainer, null, currentIndex !== 0 && React.createElement(LeftArrow$1, {
|
|
27110
|
-
|
|
27115
|
+
className: "arrow-selector",
|
|
27116
|
+
onClick: onLeftClick,
|
|
27117
|
+
onTouchStart: onLeftClick
|
|
27111
27118
|
}), currentIndex !== quests.length - 1 && React.createElement(RightArrow$1, {
|
|
27112
|
-
|
|
27119
|
+
className: "arrow-selector",
|
|
27120
|
+
onClick: onRightClick,
|
|
27121
|
+
onTouchStart: onRightClick
|
|
27113
27122
|
}), React.createElement(QuestContainer, null, React.createElement(TitleContainer$1, {
|
|
27114
27123
|
className: "drag-handler"
|
|
27115
27124
|
}, React.createElement(Title$1, null, React.createElement(Thumbnail, {
|