@rpg-engine/long-bow 0.2.22 → 0.2.24
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/Equipment/EquipmentSet.d.ts +2 -0
- package/dist/components/HistoryDialog.d.ts +1 -1
- package/dist/components/Item/Inventory/ErrorBoundary.d.ts +14 -0
- package/dist/components/Item/Inventory/ItemContainer.d.ts +2 -0
- package/dist/components/Item/Inventory/ItemSlot.d.ts +2 -0
- package/dist/long-bow.cjs.development.js +855 -702
- 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 +858 -705
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Character/CharacterSelection.tsx +19 -11
- package/src/components/Equipment/EquipmentSet.tsx +6 -0
- package/src/components/HistoryDialog.tsx +20 -3
- package/src/components/Item/Inventory/ErrorBoundary.tsx +43 -0
- package/src/components/Item/Inventory/ItemContainer.tsx +6 -0
- package/src/components/Item/Inventory/ItemSlot.tsx +33 -24
- package/src/components/NPCDialog/img/{background.png → background01.png} +0 -0
- package/src/components/NPCDialog/img/background02.png +0 -0
- package/src/components/NPCDialog/img/background03.png +0 -0
- package/src/components/QuestList.tsx +13 -1
- package/src/components/SkillProgressBar.tsx +11 -8
- package/src/mocks/atlas/items/items.json +169 -121
- package/src/mocks/atlas/items/items.png +0 -0
- package/src/stories/CharacterSelection.stories.tsx +4 -0
- package/src/stories/EquipmentSet.stories.tsx +4 -0
- package/src/stories/HistoryDialog.stories.tsx +4 -2
- package/src/stories/ItemContainer.stories.tsx +4 -0
- package/src/components/NPCDialog/.DS_Store +0 -0
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { NPCMultiDialogType } from './NPCDialog/NPCMultiDialog';
|
|
3
3
|
import { IQuestionDialog, IQuestionDialogAnswer } from './NPCDialog/QuestionDialog/QuestionDialog';
|
|
4
4
|
export interface IHistoryDialogProps {
|
|
5
|
-
backgroundImgPath: string;
|
|
5
|
+
backgroundImgPath: string[];
|
|
6
6
|
fullCoverBackground: boolean;
|
|
7
7
|
questions?: IQuestionDialog[];
|
|
8
8
|
answers?: IQuestionDialogAnswer[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { Component, ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface State {
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class ErrorBoundary extends Component<Props, State> {
|
|
9
|
+
state: State;
|
|
10
|
+
static getDerivedStateFromError(_: Error): State;
|
|
11
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
12
|
+
render(): number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -7,5 +7,7 @@ export interface IItemContainerProps {
|
|
|
7
7
|
onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
|
|
8
8
|
onSelected?: (optionId: string, item: IItem) => void;
|
|
9
9
|
type: ItemContainerType;
|
|
10
|
+
atlasJSON: any;
|
|
11
|
+
atlasIMG: any;
|
|
10
12
|
}
|
|
11
13
|
export declare const ItemContainer: React.FC<IItemContainerProps>;
|
|
@@ -10,6 +10,8 @@ interface IProps {
|
|
|
10
10
|
onMouseOver: (event: any, slotIndex: number, item: IItem | null, x: number, y: number) => void;
|
|
11
11
|
onMouseOut?: () => void;
|
|
12
12
|
onClick: (ItemType: ItemType, itemContainerType: ItemContainerType | null, item: IItem) => void;
|
|
13
|
+
atlasJSON: any;
|
|
14
|
+
atlasIMG: any;
|
|
13
15
|
}
|
|
14
16
|
export declare const ItemSlot: React.FC<IProps>;
|
|
15
17
|
export {};
|