@rpg-engine/long-bow 0.4.96 → 0.4.97

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.
@@ -9,4 +9,4 @@ export interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonEleme
9
9
  buttonType: ButtonTypes;
10
10
  onPointerDown?: (e: any) => void;
11
11
  }
12
- export declare const Button: ({ disabled, children, buttonType, onPointerDown, ...props }: IButtonProps) => React.JSX.Element;
12
+ export declare const Button: ({ disabled, children, buttonType, onPointerDown, ...props }: IButtonProps) => JSX.Element;
@@ -9,6 +9,6 @@ export declare class ErrorBoundary extends Component<Props, State> {
9
9
  state: State;
10
10
  static getDerivedStateFromError(_: Error): State;
11
11
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
12
- render(): number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
12
+ render(): number | boolean | React.ReactFragment | JSX.Element | null | undefined;
13
13
  }
14
14
  export {};
@@ -6,5 +6,5 @@ interface IProps {
6
6
  fontSize?: string;
7
7
  center?: boolean;
8
8
  }
9
- export declare const Ellipsis: ({ children, maxLines, maxWidth, fontSize, center, }: IProps) => React.JSX.Element;
9
+ export declare const Ellipsis: ({ children, maxLines, maxWidth, fontSize, center, }: IProps) => JSX.Element;
10
10
  export {};
@@ -13851,7 +13851,7 @@ var ItemInfo = function ItemInfo(_ref) {
13851
13851
  var label = stat.label || stat.key[0].toUpperCase() + stat.key.slice(1);
13852
13852
  var isItemToCompare = !!itemToCompare;
13853
13853
  var isOnlyInOneItem = isItemToCompare && !(itemToCompare != null && itemToCompare[stat.key]);
13854
- var statDiff = parseInt(itemStatistic.toString()) - parseInt((_itemToCompare$stat$k = itemToCompare == null || (_itemToCompare$stat$k2 = itemToCompare[stat.key]) == null ? void 0 : _itemToCompare$stat$k2.toString()) != null ? _itemToCompare$stat$k : '0');
13854
+ var statDiff = parseInt(itemStatistic.toString()) - parseInt((_itemToCompare$stat$k = itemToCompare == null ? void 0 : (_itemToCompare$stat$k2 = itemToCompare[stat.key]) == null ? void 0 : _itemToCompare$stat$k2.toString()) != null ? _itemToCompare$stat$k : '0');
13855
13855
  var isDifference = isItemToCompare && statDiff !== 0;
13856
13856
  var isBetter = statDiff > 0 && !stat.higherIsWorse || statDiff < 0 && stat.higherIsWorse;
13857
13857
  statistics.push(React__default.createElement(Statistic, {
@@ -14153,7 +14153,7 @@ var CraftingRecipe = function CraftingRecipe(_ref) {
14153
14153
  name = modifiedWords.join(' ');
14154
14154
  return name;
14155
14155
  };
14156
- var levelInSkill = (_skills$level = skills == null || (_skills = skills[(_recipe$minCraftingRe = recipe == null || (_recipe$minCraftingRe2 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe2[0]) != null ? _recipe$minCraftingRe : '']) == null ? void 0 : _skills.level) != null ? _skills$level : 1;
14156
+ var levelInSkill = (_skills$level = skills == null ? void 0 : (_skills = skills[(_recipe$minCraftingRe = recipe == null ? void 0 : (_recipe$minCraftingRe2 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe2[0]) != null ? _recipe$minCraftingRe : '']) == null ? void 0 : _skills.level) != null ? _skills$level : 1;
14157
14157
  return React__default.createElement(RadioOptionsWrapper, null, React__default.createElement(SpriteAtlasWrapper, null, React__default.createElement(ItemInfoWrapper, {
14158
14158
  item: recipe,
14159
14159
  atlasIMG: atlasIMG,
@@ -14183,7 +14183,7 @@ var CraftingRecipe = function CraftingRecipe(_ref) {
14183
14183
  }
14184
14184
  }, modifyString(recipe.name))), React__default.createElement(MinCraftingRequirementsText, {
14185
14185
  levelIsOk: (_recipe$levelIsOk = recipe == null ? void 0 : recipe.levelIsOk) != null ? _recipe$levelIsOk : false
14186
- }, modifyString("" + ((_recipe$minCraftingRe3 = recipe == null || (_recipe$minCraftingRe4 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe4[0]) != null ? _recipe$minCraftingRe3 : '')), " lvl", ' ', (_recipe$minCraftingRe5 = recipe == null || (_recipe$minCraftingRe6 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe6[1]) != null ? _recipe$minCraftingRe5 : 0, " (", levelInSkill, ")"), recipe.ingredients.map(function (ingredient, index) {
14186
+ }, modifyString("" + ((_recipe$minCraftingRe3 = recipe == null ? void 0 : (_recipe$minCraftingRe4 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe4[0]) != null ? _recipe$minCraftingRe3 : '')), " lvl", ' ', (_recipe$minCraftingRe5 = recipe == null ? void 0 : (_recipe$minCraftingRe6 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe6[1]) != null ? _recipe$minCraftingRe5 : 0, " (", levelInSkill, ")"), recipe.ingredients.map(function (ingredient, index) {
14187
14187
  var itemQtyInInventory = !inventory ? 0 : countItemFromInventory(ingredient.key, inventory);
14188
14188
  return React__default.createElement(Recipe, {
14189
14189
  key: index