@rpg-engine/long-bow 0.3.79 → 0.3.81

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.
Files changed (34) hide show
  1. package/dist/components/Abstractions/ModalPortal.d.ts +6 -0
  2. package/dist/components/Abstractions/SlotsContainer.d.ts +1 -0
  3. package/dist/components/DraggableContainer.d.ts +1 -0
  4. package/dist/components/Equipment/EquipmentSet.d.ts +1 -1
  5. package/dist/components/Item/Inventory/ItemContainer.d.ts +1 -1
  6. package/dist/components/QuestInfo/QuestInfo.d.ts +1 -0
  7. package/dist/components/QuestList.d.ts +1 -0
  8. package/dist/components/SkillsContainer.d.ts +1 -0
  9. package/dist/components/Spellbook/Spellbook.d.ts +1 -0
  10. package/dist/components/TimeWidget/TimeWidget.d.ts +1 -0
  11. package/dist/long-bow.cjs.development.js +105 -89
  12. package/dist/long-bow.cjs.development.js.map +1 -1
  13. package/dist/long-bow.cjs.production.min.js +1 -1
  14. package/dist/long-bow.cjs.production.min.js.map +1 -1
  15. package/dist/long-bow.esm.js +105 -89
  16. package/dist/long-bow.esm.js.map +1 -1
  17. package/package.json +1 -1
  18. package/src/components/Abstractions/ModalPortal.tsx +22 -0
  19. package/src/components/Abstractions/SlotsContainer.tsx +3 -0
  20. package/src/components/CraftBook/CraftBook.tsx +1 -0
  21. package/src/components/DraggableContainer.tsx +3 -0
  22. package/src/components/Equipment/EquipmentSet.tsx +4 -3
  23. package/src/components/Item/Cards/ItemInfo.tsx +1 -1
  24. package/src/components/Item/Cards/ItemTooltip.tsx +20 -22
  25. package/src/components/Item/Cards/MobileItemTooltip.tsx +70 -55
  26. package/src/components/Item/Inventory/ItemContainer.tsx +28 -24
  27. package/src/components/Item/Inventory/ItemSlot.tsx +3 -1
  28. package/src/components/QuestInfo/QuestInfo.tsx +3 -0
  29. package/src/components/QuestList.tsx +7 -1
  30. package/src/components/SkillsContainer.tsx +7 -1
  31. package/src/components/Spellbook/Spellbook.tsx +3 -0
  32. package/src/components/TimeWidget/TimeWidget.tsx +3 -1
  33. package/src/components/TradingMenu/TradingMenu.tsx +1 -0
  34. package/src/mocks/itemContainer.mocks.ts +1 -1
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ModalPortalProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const ModalPortal: React.FC<ModalPortalProps>;
6
+ export default ModalPortal;
@@ -7,6 +7,7 @@ interface IProps {
7
7
  onPositionChange?: (position: IPosition) => void;
8
8
  onOutsideClick?: () => void;
9
9
  initialPosition?: IPosition;
10
+ scale?: number;
10
11
  }
11
12
  export declare const SlotsContainer: React.FC<IProps>;
12
13
  export {};
@@ -15,5 +15,6 @@ export interface IDraggableContainerProps {
15
15
  onPositionChange?: (position: IPosition) => void;
16
16
  onOutsideClick?: () => void;
17
17
  initialPosition?: IPosition;
18
+ scale?: number;
18
19
  }
19
20
  export declare const DraggableContainer: React.FC<IDraggableContainerProps>;
@@ -9,7 +9,7 @@ export interface IEquipmentSetProps {
9
9
  onItemDragEnd?: (quantity?: number) => void;
10
10
  onItemPlaceDrop?: (item: IItem | null, slotIndex: number, itemContainerType: ItemContainerType | null) => void;
11
11
  onItemOutsideDrop?: (item: IItem, position: IPosition) => void;
12
- dragScale?: number;
12
+ scale?: number;
13
13
  checkIfItemCanBeMoved: () => boolean;
14
14
  checkIfItemShouldDragEnd?: () => boolean;
15
15
  onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
@@ -9,7 +9,7 @@ export interface IItemContainerProps {
9
9
  onItemDragEnd?: (quantity?: number) => void;
10
10
  onOutsideDrop?: (item: IItem, position: IPosition) => void;
11
11
  onItemPlaceDrop?: (item: IItem | null, slotIndex: number, itemContainerType: ItemContainerType | null) => void;
12
- dragScale?: number;
12
+ scale?: number;
13
13
  checkIfItemCanBeMoved: () => boolean;
14
14
  checkIfItemShouldDragEnd?: () => boolean;
15
15
  onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
@@ -10,5 +10,6 @@ export interface IQuestInfoProps {
10
10
  buttons?: IQuestsButtonProps[];
11
11
  quests: IQuest[];
12
12
  onChangeQuest: (currentQuestIndex: number, currentQuestId: string) => void;
13
+ scale?: number;
13
14
  }
14
15
  export declare const QuestInfo: React.FC<IQuestInfoProps>;
@@ -3,5 +3,6 @@ import React from 'react';
3
3
  export interface IQuestListProps {
4
4
  quests?: IQuest[];
5
5
  onClose: () => void;
6
+ scale?: number;
6
7
  }
7
8
  export declare const QuestList: React.FC<IQuestListProps>;
@@ -5,5 +5,6 @@ export interface ISkillContainerProps {
5
5
  onCloseButton: () => void;
6
6
  atlasJSON: any;
7
7
  atlasIMG: any;
8
+ scale?: number;
8
9
  }
9
10
  export declare const SkillsContainer: React.FC<ISkillContainerProps>;
@@ -13,5 +13,6 @@ export interface ISpellbookProps {
13
13
  removeShortcut: (index: number) => void;
14
14
  atlasIMG: any;
15
15
  atlasJSON: any;
16
+ scale?: number;
16
17
  }
17
18
  export declare const Spellbook: React.FC<ISpellbookProps>;
@@ -4,5 +4,6 @@ export interface IClockWidgetProps {
4
4
  onClose?: () => void;
5
5
  TimeClock: string;
6
6
  periodOfDay: PeriodOfDay;
7
+ scale?: number;
7
8
  }
8
9
  export declare const TimeWidget: React.FC<IClockWidgetProps>;