@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.
Files changed (28) hide show
  1. package/dist/components/Quests/QuestInfo/QuestInfo.d.ts +3 -1
  2. package/dist/components/Quests/QuestInfo/QuestObjectivesSection.d.ts +8 -0
  3. package/dist/components/Quests/QuestInfo/QuestRequirementsSection.d.ts +8 -0
  4. package/dist/components/Quests/QuestInfo/QuestRewardsSection.d.ts +8 -0
  5. package/dist/components/Quests/QuestInfo/QuestSectionTypes.d.ts +8 -0
  6. package/dist/components/Quests/QuestList.d.ts +4 -5
  7. package/dist/components/Quests/QuestListRow.d.ts +15 -0
  8. package/dist/components/Tutorial/TutorialStepper.d.ts +2 -0
  9. package/dist/index.d.ts +1 -0
  10. package/dist/long-bow.cjs.development.js +435 -138
  11. package/dist/long-bow.cjs.development.js.map +1 -1
  12. package/dist/long-bow.cjs.production.min.js +1 -1
  13. package/dist/long-bow.cjs.production.min.js.map +1 -1
  14. package/dist/long-bow.esm.js +436 -140
  15. package/dist/long-bow.esm.js.map +1 -1
  16. package/package.json +1 -1
  17. package/src/components/Quests/QuestInfo/QuestInfo.tsx +57 -68
  18. package/src/components/Quests/QuestInfo/QuestObjectivesSection.tsx +114 -0
  19. package/src/components/Quests/QuestInfo/QuestRequirementsSection.tsx +74 -0
  20. package/src/components/Quests/QuestInfo/QuestRewardsSection.tsx +128 -0
  21. package/src/components/Quests/QuestInfo/QuestSectionTypes.ts +8 -0
  22. package/src/components/Quests/QuestList.tsx +12 -87
  23. package/src/components/Quests/QuestListRow.tsx +178 -0
  24. package/src/components/Store/CartView.tsx +3 -2
  25. package/src/components/Store/MetadataCollector.tsx +28 -1
  26. package/src/components/Store/__test__/MetadataCollector.spec.tsx +12 -3
  27. package/src/components/Tutorial/TutorialStepper.tsx +2 -0
  28. 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 {};
@@ -0,0 +1,8 @@
1
+ export interface IQuestAtlasProps {
2
+ itemsAtlasJSON?: any;
3
+ itemsAtlasIMG?: any;
4
+ entitiesAtlasJSON?: any;
5
+ entitiesAtlasIMG?: any;
6
+ iconsAtlasJSON?: any;
7
+ iconsAtlasIMG?: any;
8
+ }
@@ -1,8 +1,10 @@
1
- import { IQuest, QuestStatus } from '@rpg-engine/shared';
1
+ import { IQuest } from '@rpg-engine/shared';
2
2
  import React from 'react';
3
3
  import { CSSProperties } from 'styled-components';
4
- export interface IQuestListProps {
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 {};
@@ -4,6 +4,8 @@ export interface ITutorialLesson {
4
4
  title: string;
5
5
  body?: React.ReactNode | string;
6
6
  text?: string;
7
+ bodyHighlights?: string[];
8
+ textHighlights?: string[];
7
9
  image: string;
8
10
  imageUrl?: string;
9
11
  }
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';