@rpg-engine/long-bow 0.8.231 → 0.8.232
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/Quests/QuestInfo/QuestInfo.d.ts +3 -1
- package/dist/components/Quests/QuestInfo/QuestObjectivesSection.d.ts +8 -0
- package/dist/components/Quests/QuestInfo/QuestRequirementsSection.d.ts +8 -0
- package/dist/components/Quests/QuestInfo/QuestRewardsSection.d.ts +8 -0
- package/dist/components/Quests/QuestInfo/QuestSectionTypes.d.ts +8 -0
- package/dist/components/Quests/QuestList.d.ts +4 -5
- package/dist/components/Quests/QuestListRow.d.ts +15 -0
- package/dist/components/Tutorial/TutorialStepper.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +435 -138
- 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 +436 -140
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Quests/QuestInfo/QuestInfo.tsx +57 -68
- package/src/components/Quests/QuestInfo/QuestObjectivesSection.tsx +114 -0
- package/src/components/Quests/QuestInfo/QuestRequirementsSection.tsx +74 -0
- package/src/components/Quests/QuestInfo/QuestRewardsSection.tsx +128 -0
- package/src/components/Quests/QuestInfo/QuestSectionTypes.ts +8 -0
- package/src/components/Quests/QuestList.tsx +12 -87
- package/src/components/Quests/QuestListRow.tsx +178 -0
- package/src/components/Store/CartView.tsx +3 -2
- package/src/components/Store/MetadataCollector.tsx +28 -1
- package/src/components/Store/__test__/MetadataCollector.spec.tsx +12 -3
- package/src/components/Tutorial/TutorialStepper.tsx +2 -0
- package/src/index.tsx +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { IQuest } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { IQuestAtlasProps } from './QuestSectionTypes';
|
|
3
4
|
export interface IQuestsButtonProps {
|
|
4
5
|
disabled: boolean;
|
|
6
|
+
disabledReason?: string;
|
|
5
7
|
title: string;
|
|
6
8
|
onClick: (questId: string, npcId: string) => void;
|
|
7
9
|
}
|
|
8
|
-
export interface IQuestInfoProps {
|
|
10
|
+
export interface IQuestInfoProps extends IQuestAtlasProps {
|
|
9
11
|
onClose?: () => void;
|
|
10
12
|
buttons?: IQuestsButtonProps[];
|
|
11
13
|
quests: IQuest[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IQuestObjectiveInteraction, IQuestObjectiveKill } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IQuestAtlasProps } from './QuestSectionTypes';
|
|
4
|
+
interface IProps extends IQuestAtlasProps {
|
|
5
|
+
objectives?: Array<IQuestObjectiveKill | IQuestObjectiveInteraction>;
|
|
6
|
+
}
|
|
7
|
+
export declare const QuestObjectivesSection: React.FC<IProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IQuestObjectiveInteraction } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IQuestAtlasProps } from './QuestSectionTypes';
|
|
4
|
+
interface IProps extends IQuestAtlasProps {
|
|
5
|
+
objectives?: IQuestObjectiveInteraction[];
|
|
6
|
+
}
|
|
7
|
+
export declare const QuestRequirementsSection: React.FC<IProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IQuestReward } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IQuestAtlasProps } from './QuestSectionTypes';
|
|
4
|
+
interface IProps extends IQuestAtlasProps {
|
|
5
|
+
rewards?: IQuestReward[];
|
|
6
|
+
}
|
|
7
|
+
export declare const QuestRewardsSection: React.FC<IProps>;
|
|
8
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { IQuest
|
|
1
|
+
import { IQuest } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CSSProperties } from 'styled-components';
|
|
4
|
-
|
|
4
|
+
import { IQuestListAtlasProps } from './QuestListRow';
|
|
5
|
+
export interface IQuestListProps extends IQuestListAtlasProps {
|
|
5
6
|
quests?: IQuest[];
|
|
7
|
+
compact?: boolean;
|
|
6
8
|
styles?: {
|
|
7
9
|
container?: CSSProperties;
|
|
8
10
|
card?: CSSProperties;
|
|
@@ -11,6 +13,3 @@ export interface IQuestListProps {
|
|
|
11
13
|
};
|
|
12
14
|
}
|
|
13
15
|
export declare const QuestList: React.FC<IQuestListProps>;
|
|
14
|
-
export declare const formatQuestText: (text: string) => string;
|
|
15
|
-
export declare const getQuestStatusColor: (status?: QuestStatus | undefined) => string;
|
|
16
|
-
export declare const formatQuestStatus: (status?: QuestStatus | undefined) => string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IQuest, QuestStatus } from '@rpg-engine/shared';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface IQuestListAtlasProps {
|
|
4
|
+
itemsAtlasJSON?: any;
|
|
5
|
+
itemsAtlasIMG?: any;
|
|
6
|
+
}
|
|
7
|
+
interface IProps extends IQuestListAtlasProps {
|
|
8
|
+
quest: IQuest;
|
|
9
|
+
compact?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const QuestListRow: React.FC<IProps>;
|
|
12
|
+
export declare const formatQuestText: (text: string) => string;
|
|
13
|
+
export declare const getQuestStatusColor: (status?: QuestStatus | undefined) => string;
|
|
14
|
+
export declare const formatQuestStatus: (status?: QuestStatus | undefined) => string;
|
|
15
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export * from './components/PropertySelect/PropertySelect';
|
|
|
62
62
|
export * from './components/QuantitySelector/QuantitySelectorModal';
|
|
63
63
|
export * from './components/Quests/QuestInfo/QuestInfo';
|
|
64
64
|
export * from './components/Quests/QuestList';
|
|
65
|
+
export * from './components/Quests/QuestListRow';
|
|
65
66
|
export * from './components/RadioButton';
|
|
66
67
|
export * from './components/RadioSelectCard/RadioSelectCard';
|
|
67
68
|
export * from './components/RangeSlider';
|