@rpg-engine/long-bow 0.3.42 → 0.3.44
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/components/Abstractions/SlotsContainer.d.ts +0 -1
- package/dist/components/Button.d.ts +2 -3
- package/dist/components/Chat/Chat.d.ts +2 -12
- package/dist/components/CheckButton.d.ts +2 -1
- package/dist/components/DraggableContainer.d.ts +0 -1
- package/dist/components/Equipment/EquipmentSet.d.ts +0 -8
- package/dist/components/Input.d.ts +0 -1
- package/dist/components/Item/Inventory/ItemContainer.d.ts +0 -12
- package/dist/components/Item/Inventory/ItemSlot.d.ts +0 -9
- package/dist/components/NPCDialog/NPCDialogText.d.ts +2 -4
- package/dist/components/RangeSlider.d.ts +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/long-bow.cjs.development.js +515 -7464
- 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 +520 -7460
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/mocks/equipmentSet.mocks.d.ts +2 -15
- package/dist/mocks/skills.mocks.d.ts +121 -2
- package/package.json +2 -5
- package/src/components/Abstractions/SlotsContainer.tsx +0 -3
- package/src/components/Button.tsx +8 -18
- package/src/components/Chat/Chat.tsx +105 -105
- package/src/components/CheckButton.tsx +1 -1
- package/src/components/DraggableContainer.tsx +1 -4
- package/src/components/Dropdown.tsx +1 -7
- package/src/components/Equipment/EquipmentSet.tsx +0 -46
- package/src/components/Input.tsx +2 -6
- package/src/components/Item/Inventory/ItemContainer.tsx +6 -104
- package/src/components/Item/Inventory/ItemSlot.tsx +34 -234
- package/src/components/NPCDialog/NPCDialog.tsx +28 -4
- package/src/components/NPCDialog/NPCDialogText.tsx +15 -75
- package/src/components/RangeSlider.tsx +14 -37
- package/src/components/SkillsContainer.tsx +1 -1
- package/src/components/TimeWidget/TimeWidget.tsx +0 -1
- package/src/components/TradingMenu/TradingItemRow.tsx +6 -43
- package/src/components/TradingMenu/TradingMenu.tsx +1 -1
- package/src/components/shared/SpriteFromAtlas.tsx +1 -4
- package/src/hooks/useOutsideAlerter.ts +2 -2
- package/src/index.tsx +0 -8
- package/src/mocks/atlas/items/items.json +314 -6086
- package/src/mocks/atlas/items/items.png +0 -0
- package/src/mocks/equipmentSet.mocks.ts +4 -49
- package/src/mocks/itemContainer.mocks.ts +6 -54
- package/src/mocks/skills.mocks.ts +2 -8
- package/src/stories/Chat.stories.tsx +3 -20
- package/src/stories/EquipmentSet.stories.tsx +0 -10
- package/src/stories/ItemContainer.stories.tsx +15 -84
- package/src/stories/RangeSlider.stories.tsx +9 -10
- package/dist/components/Chatdeprecated/ChatDeprecated.d.ts +0 -13
- package/dist/components/CircularController/CircularController.d.ts +0 -10
- package/dist/components/CraftBook/CraftBook.d.ts +0 -15
- package/dist/components/CraftBook/MockItems.d.ts +0 -2
- package/dist/components/DropdownSelectorContainer.d.ts +0 -13
- package/dist/components/Item/Inventory/ItemQuantitySelector.d.ts +0 -7
- package/dist/components/RadioInput/RadioButton.d.ts +0 -8
- package/dist/components/RadioInput/RadioInput.d.ts +0 -13
- package/dist/components/RadioInput/instruments.d.ts +0 -4
- package/dist/components/Spellbook/QuickSpells.d.ts +0 -10
- package/dist/components/Spellbook/Spell.d.ts +0 -11
- package/dist/components/Spellbook/Spellbook.d.ts +0 -15
- package/dist/components/Spellbook/SpellbookShortcuts.d.ts +0 -10
- package/dist/components/Spellbook/constants.d.ts +0 -3
- package/dist/components/Spellbook/mockSpells.d.ts +0 -2
- package/dist/components/itemSelector/ItemSelector.d.ts +0 -14
- package/dist/constants/uiDevices.d.ts +0 -1
- package/dist/stories/ChatDeprecated.stories.d.ts +0 -5
- package/dist/stories/CircullarController.stories.d.ts +0 -5
- package/dist/stories/CraftBook.stories.d.ts +0 -4
- package/dist/stories/DropdownSelectorContainer.stories.d.ts +0 -5
- package/dist/stories/ItemQuantitySelector.stories.d.ts +0 -5
- package/dist/stories/ItemSelector.stories.d.ts +0 -4
- package/dist/stories/QuickSpells.stories.d.ts +0 -5
- package/dist/stories/RadioInput.stories.d.ts +0 -5
- package/dist/stories/Spellbook.stories.d.ts +0 -5
- package/src/.DS_Store +0 -0
- package/src/components/Chatdeprecated/ChatDeprecated.tsx +0 -200
- package/src/components/CircularController/CircularController.tsx +0 -162
- package/src/components/CraftBook/CraftBook.tsx +0 -230
- package/src/components/CraftBook/MockItems.ts +0 -46
- package/src/components/DropdownSelectorContainer.tsx +0 -42
- package/src/components/Item/Inventory/ItemQuantitySelector.tsx +0 -142
- package/src/components/NPCDialog/.DS_Store +0 -0
- package/src/components/NPCDialog/img/.DS_Store +0 -0
- package/src/components/NPCDialog/img/press-button.gif +0 -0
- package/src/components/RadioInput/RadioButton.tsx +0 -98
- package/src/components/RadioInput/RadioInput.tsx +0 -99
- package/src/components/RadioInput/instruments.ts +0 -16
- package/src/components/Spellbook/QuickSpells.tsx +0 -120
- package/src/components/Spellbook/Spell.tsx +0 -201
- package/src/components/Spellbook/Spellbook.tsx +0 -144
- package/src/components/Spellbook/SpellbookShortcuts.tsx +0 -77
- package/src/components/Spellbook/constants.ts +0 -12
- package/src/components/Spellbook/mockSpells.ts +0 -60
- package/src/components/itemSelector/ItemSelector.tsx +0 -136
- package/src/constants/uiDevices.ts +0 -5
- package/src/mocks/.DS_Store +0 -0
- package/src/mocks/atlas/.DS_Store +0 -0
- package/src/stories/ChatDeprecated.stories.tsx +0 -170
- package/src/stories/CircullarController.stories.tsx +0 -33
- package/src/stories/CraftBook.stories.tsx +0 -40
- package/src/stories/DropdownSelectorContainer.stories.tsx +0 -41
- package/src/stories/ItemQuantitySelector.stories.tsx +0 -26
- package/src/stories/ItemSelector.stories.tsx +0 -77
- package/src/stories/QuickSpells.stories.tsx +0 -38
- package/src/stories/RadioInput.stories.tsx +0 -35
- package/src/stories/Spellbook.stories.tsx +0 -107
|
@@ -3,10 +3,9 @@ export declare enum ButtonTypes {
|
|
|
3
3
|
RPGUIButton = "rpgui-button",
|
|
4
4
|
RPGUIGoldButton = "rpgui-button golden"
|
|
5
5
|
}
|
|
6
|
-
export interface IButtonProps
|
|
6
|
+
export interface IButtonProps {
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
buttonType: ButtonTypes;
|
|
10
|
-
onClick?: (e: any) => void;
|
|
11
10
|
}
|
|
12
|
-
export declare const Button:
|
|
11
|
+
export declare const Button: React.FC<IButtonProps & React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>;
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import { IChatMessage } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
interface IStyles {
|
|
4
|
-
textColor?: string;
|
|
5
|
-
buttonColor?: string;
|
|
6
|
-
buttonBackgroundColor?: string;
|
|
7
|
-
width?: string;
|
|
8
|
-
height?: string;
|
|
9
|
-
}
|
|
10
3
|
export interface IChatProps {
|
|
11
4
|
chatMessages: IChatMessage[];
|
|
12
5
|
onSendChatMessage: (message: string) => void;
|
|
13
6
|
onCloseButton: () => void;
|
|
14
|
-
onFocus?: () => void;
|
|
15
|
-
onBlur?: () => void;
|
|
16
7
|
opacity?: number;
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
width?: string;
|
|
9
|
+
height?: string;
|
|
19
10
|
}
|
|
20
11
|
export declare const Chat: React.FC<IChatProps>;
|
|
21
|
-
export {};
|
|
@@ -7,7 +7,8 @@ export interface ICheckProps {
|
|
|
7
7
|
items: ICheckItems[];
|
|
8
8
|
onChange: (selectedValues: IChecklistSelectedValues) => void;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
interface IChecklistSelectedValues {
|
|
11
11
|
[label: string]: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare const CheckButton: React.FC<ICheckProps>;
|
|
14
|
+
export {};
|
|
@@ -14,6 +14,5 @@ export interface IDraggableContainerProps {
|
|
|
14
14
|
cancelDrag?: string;
|
|
15
15
|
onPositionChange?: (position: IPosition) => void;
|
|
16
16
|
onOutsideClick?: () => void;
|
|
17
|
-
initialPosition?: IPosition;
|
|
18
17
|
}
|
|
19
18
|
export declare const DraggableContainer: React.FC<IDraggableContainerProps>;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import { IEquipmentSet, IItem, ItemContainerType, ItemType } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { IPosition } from '../../types/eventTypes';
|
|
4
3
|
export interface IEquipmentSetProps {
|
|
5
4
|
equipmentSet: IEquipmentSet;
|
|
6
5
|
onClose?: () => void;
|
|
7
6
|
onItemClick?: (ItemType: ItemType, item: IItem, itemContainerType: ItemContainerType | null) => void;
|
|
8
|
-
onItemDragStart?: (item: IItem, slotIndex: number, itemContainerType: ItemContainerType | null) => void;
|
|
9
|
-
onItemDragEnd?: (quantity?: number) => void;
|
|
10
|
-
onItemPlaceDrop?: (item: IItem | null, slotIndex: number, itemContainerType: ItemContainerType | null) => void;
|
|
11
|
-
onItemOutsideDrop?: (item: IItem, position: IPosition) => void;
|
|
12
|
-
dragScale?: number;
|
|
13
|
-
checkIfItemCanBeMoved: () => boolean;
|
|
14
|
-
checkIfItemShouldDragEnd?: () => boolean;
|
|
15
7
|
onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
|
|
16
8
|
onSelected?: (optionId: string) => void;
|
|
17
9
|
initialPosition?: {
|
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
import { IItem, IItemContainer, ItemContainerType } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { IPosition } from '../../../types/eventTypes';
|
|
4
3
|
export interface IItemContainerProps {
|
|
5
4
|
itemContainer: IItemContainer;
|
|
6
5
|
onClose?: () => void;
|
|
7
6
|
onItemClick?: (item: IItem, ItemType: IItem['type'], itemContainerType: ItemContainerType | null) => void;
|
|
8
|
-
onItemDragStart?: (item: IItem, slotIndex: number, itemContainerType: ItemContainerType | null) => void;
|
|
9
|
-
onItemDragEnd?: (quantity?: number) => void;
|
|
10
|
-
onOutsideDrop?: (item: IItem, position: IPosition) => void;
|
|
11
|
-
onItemPlaceDrop?: (item: IItem | null, slotIndex: number, itemContainerType: ItemContainerType | null) => void;
|
|
12
|
-
dragScale?: number;
|
|
13
|
-
checkIfItemCanBeMoved: () => boolean;
|
|
14
|
-
checkIfItemShouldDragEnd?: () => boolean;
|
|
15
7
|
onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
|
|
16
8
|
onSelected?: (optionId: string, item: IItem) => void;
|
|
17
9
|
type: ItemContainerType;
|
|
18
10
|
atlasJSON: any;
|
|
19
11
|
atlasIMG: any;
|
|
20
12
|
disableContextMenu?: boolean;
|
|
21
|
-
initialPosition?: {
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
};
|
|
25
13
|
}
|
|
26
14
|
export declare const ItemContainer: React.FC<IItemContainerProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IItem, IItemContainer, ItemContainerType, ItemSlotType, ItemType } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { IPosition } from '../../../types/eventTypes';
|
|
4
3
|
interface IProps {
|
|
5
4
|
slotIndex: number;
|
|
6
5
|
item: IItem | null;
|
|
@@ -11,14 +10,6 @@ interface IProps {
|
|
|
11
10
|
onMouseOver: (event: any, slotIndex: number, item: IItem | null, x: number, y: number) => void;
|
|
12
11
|
onMouseOut?: () => void;
|
|
13
12
|
onClick: (ItemType: ItemType, itemContainerType: ItemContainerType | null, item: IItem) => void;
|
|
14
|
-
onDragStart: (item: IItem, slotIndex: number, itemContainerType: ItemContainerType | null) => void;
|
|
15
|
-
onDragEnd: (quantity?: number) => void;
|
|
16
|
-
onOutsideDrop?: (item: IItem, position: IPosition) => void;
|
|
17
|
-
dragScale?: number;
|
|
18
|
-
checkIfItemCanBeMoved: () => boolean;
|
|
19
|
-
checkIfItemShouldDragEnd?: () => boolean;
|
|
20
|
-
openQuantitySelector?: (maxQuantity: number, callback: () => void) => void;
|
|
21
|
-
onPlaceDrop: (item: IItem | null, slotIndex: number, itemContainerType: ItemContainerType | null) => void;
|
|
22
13
|
atlasJSON: any;
|
|
23
14
|
atlasIMG: any;
|
|
24
15
|
isContextMenuDisabled?: boolean;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { NPCDialogType } from '../..';
|
|
3
2
|
interface IProps {
|
|
4
3
|
text: string;
|
|
5
4
|
onClose: () => void;
|
|
6
|
-
onEndStep
|
|
7
|
-
onStartStep
|
|
8
|
-
type?: NPCDialogType;
|
|
5
|
+
onEndStep: () => void;
|
|
6
|
+
onStartStep: () => void;
|
|
9
7
|
}
|
|
10
8
|
export declare const NPCDialogText: React.FC<IProps>;
|
|
11
9
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
export * from './components/Button';
|
|
2
2
|
export * from './components/Character/CharacterSelection';
|
|
3
3
|
export * from './components/Chat/Chat';
|
|
4
|
-
export * from './components/Chatdeprecated/ChatDeprecated';
|
|
5
4
|
export * from './components/CheckButton';
|
|
6
|
-
export * from './components/CircularController/CircularController';
|
|
7
|
-
export * from './components/CraftBook/CraftBook';
|
|
8
5
|
export * from './components/DraggableContainer';
|
|
9
6
|
export * from './components/Dropdown';
|
|
10
|
-
export * from './components/DropdownSelectorContainer';
|
|
11
7
|
export * from './components/Equipment/EquipmentSet';
|
|
12
8
|
export * from './components/HistoryDialog';
|
|
13
9
|
export * from './components/Input';
|
|
14
|
-
export { ErrorBoundary } from './components/Item/Inventory/ErrorBoundary';
|
|
15
10
|
export * from './components/Item/Inventory/ItemContainer';
|
|
16
11
|
export * from './components/Item/Inventory/ItemSlot';
|
|
17
|
-
export * from './components/itemSelector/ItemSelector';
|
|
18
12
|
export * from './components/ListMenu';
|
|
19
13
|
export * from './components/NPCDialog/NPCDialog';
|
|
20
14
|
export * from './components/NPCDialog/NPCMultiDialog';
|
|
@@ -30,8 +24,6 @@ export * from './components/RPGUIRoot';
|
|
|
30
24
|
export * from './components/shared/SpriteFromAtlas';
|
|
31
25
|
export * from './components/SkillProgressBar';
|
|
32
26
|
export * from './components/SkillsContainer';
|
|
33
|
-
export * from './components/Spellbook/QuickSpells';
|
|
34
|
-
export * from './components/Spellbook/Spellbook';
|
|
35
27
|
export * from './components/TextArea';
|
|
36
28
|
export * from './components/TimeWidget/TimeWidget';
|
|
37
29
|
export * from './components/TradingMenu/TradingMenu';
|