@rpg-engine/long-bow 0.8.21 → 0.8.23

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 (33) hide show
  1. package/dist/components/InformationCenter/InformationCenter.d.ts +16 -13
  2. package/dist/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.d.ts +1 -1
  3. package/dist/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.d.ts +2 -1
  4. package/dist/components/InformationCenter/sections/bestiary/InformationCenterNPCTooltip.d.ts +1 -1
  5. package/dist/components/InformationCenter/sections/faq/InformationCenterFaqSection.d.ts +1 -1
  6. package/dist/components/InformationCenter/sections/items/InformationCenterItemDetails.d.ts +1 -1
  7. package/dist/components/InformationCenter/sections/items/InformationCenterItemTooltip.d.ts +1 -1
  8. package/dist/components/InformationCenter/sections/items/InformationCenterItemsSection.d.ts +2 -1
  9. package/dist/components/InformationCenter/sections/tutorials/InformationCenterTutorialsSection.d.ts +1 -1
  10. package/dist/long-bow.cjs.development.js +795 -688
  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 +796 -689
  15. package/dist/long-bow.esm.js.map +1 -1
  16. package/dist/mocks/informationCenter.mocks.d.ts +1 -2
  17. package/package.json +2 -2
  18. package/src/components/CraftBook/CraftBook.tsx +1 -1
  19. package/src/components/Dropdown.tsx +25 -3
  20. package/src/components/InformationCenter/InformationCenter.tsx +125 -124
  21. package/src/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.tsx +52 -7
  22. package/src/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.tsx +201 -207
  23. package/src/components/InformationCenter/sections/bestiary/InformationCenterNPCTooltip.tsx +7 -6
  24. package/src/components/InformationCenter/sections/faq/InformationCenterFaqSection.tsx +1 -1
  25. package/src/components/InformationCenter/sections/items/InformationCenterItemDetails.tsx +8 -6
  26. package/src/components/InformationCenter/sections/items/InformationCenterItemTooltip.tsx +1 -1
  27. package/src/components/InformationCenter/sections/items/InformationCenterItemsSection.tsx +36 -10
  28. package/src/components/InformationCenter/sections/tutorials/InformationCenterTutorialsSection.tsx +146 -36
  29. package/src/components/InformationCenter/shared/BaseInformationDetails.tsx +2 -0
  30. package/src/mocks/informationCenter.mocks.ts +159 -48
  31. package/src/stories/UI/info/InformationCenter.stories.tsx +1 -1
  32. package/dist/components/InformationCenter/InformationCenterTypes.d.ts +0 -96
  33. package/src/components/InformationCenter/InformationCenterTypes.ts +0 -105
@@ -1,16 +1,19 @@
1
1
  import React from 'react';
2
- import { IInformationCenterProps } from './InformationCenterTypes';
3
- export interface IFaqItem {
4
- id: string;
5
- question: string;
6
- answer: string;
7
- }
8
- export interface IVideoGuide {
9
- id: string;
10
- title: string;
11
- description: string;
12
- thumbnailUrl: string;
13
- videoUrl: string;
14
- category: 'Combat' | 'Crafting' | 'Exploration' | 'General';
2
+ import { IFaqItem, IInformationCenterItem, IInformationCenterNPC, IVideoGuide } from '@rpg-engine/shared';
3
+ interface IInformationCenterProps {
4
+ itemsAtlasJSON: Record<string, any>;
5
+ itemsAtlasIMG: string;
6
+ entitiesAtlasJSON: Record<string, any>;
7
+ entitiesAtlasIMG: string;
8
+ iconsAtlasJSON: any;
9
+ iconsAtlasIMG: any;
10
+ faqItems?: IFaqItem[];
11
+ bestiaryItems?: IInformationCenterNPC[];
12
+ videoGuides?: IVideoGuide[];
13
+ items?: IInformationCenterItem[];
14
+ loading?: boolean;
15
+ error?: string;
16
+ initialSearchQuery?: string;
15
17
  }
16
18
  export declare const InformationCenter: React.FC<IInformationCenterProps>;
19
+ export {};
@@ -1,5 +1,5 @@
1
+ import { IInformationCenterNPC } from '@rpg-engine/shared';
1
2
  import React from 'react';
2
- import { IInformationCenterNPC } from '../../InformationCenterTypes';
3
3
  interface IBestiarySectionProps {
4
4
  bestiaryItems: IInformationCenterNPC[];
5
5
  itemsAtlasJSON: Record<string, any>;
@@ -1,5 +1,5 @@
1
+ import { IInformationCenterNPC } from '@rpg-engine/shared';
1
2
  import React from 'react';
2
- import { IInformationCenterNPC } from '../../InformationCenterTypes';
3
3
  interface INPCDetailsProps {
4
4
  npc: IInformationCenterNPC;
5
5
  itemsAtlasJSON: Record<string, any>;
@@ -10,5 +10,6 @@ interface INPCDetailsProps {
10
10
  iconAtlasJSON?: any;
11
11
  onBack: () => void;
12
12
  }
13
+ export declare const formatItemName: (itemPath: string) => string;
13
14
  export declare const InformationCenterNPCDetails: React.FC<INPCDetailsProps>;
14
15
  export {};
@@ -1,5 +1,5 @@
1
+ import { IInformationCenterNPC } from '@rpg-engine/shared';
1
2
  import React from 'react';
2
- import { IInformationCenterNPC } from '../../InformationCenterTypes';
3
3
  interface INPCTooltipProps {
4
4
  npc: IInformationCenterNPC;
5
5
  itemsAtlasJSON: any;
@@ -1,5 +1,5 @@
1
+ import { IFaqItem } from '@rpg-engine/shared';
1
2
  import React from 'react';
2
- import { IFaqItem } from '../../InformationCenter';
3
3
  interface IFaqSectionProps {
4
4
  faqItems: IFaqItem[];
5
5
  initialSearchQuery: string;
@@ -1,5 +1,5 @@
1
+ import { IInformationCenterItem, IInformationCenterNPC } from '@rpg-engine/shared';
1
2
  import React from 'react';
2
- import { IInformationCenterItem, IInformationCenterNPC } from '../../InformationCenterTypes';
3
3
  interface IInformationCenterItemDetailsProps {
4
4
  item: IInformationCenterItem;
5
5
  itemsAtlasJSON: Record<string, any>;
@@ -1,5 +1,5 @@
1
+ import { IInformationCenterItem } from '@rpg-engine/shared';
1
2
  import React from 'react';
2
- import { IInformationCenterItem } from '../../InformationCenterTypes';
3
3
  interface IItemTooltipProps {
4
4
  item: IInformationCenterItem;
5
5
  }
@@ -1,5 +1,5 @@
1
+ import { IInformationCenterItem, IInformationCenterNPC } from '@rpg-engine/shared';
1
2
  import React from 'react';
2
- import { IInformationCenterItem, IInformationCenterNPC } from '../../InformationCenterTypes';
3
3
  interface IItemsSectionProps {
4
4
  items: IInformationCenterItem[];
5
5
  bestiaryItems: IInformationCenterNPC[];
@@ -8,5 +8,6 @@ interface IItemsSectionProps {
8
8
  initialSearchQuery: string;
9
9
  tabId: string;
10
10
  }
11
+ export declare const formatItemType: (type: string) => string;
11
12
  export declare const InformationCenterItemsSection: React.FC<IItemsSectionProps>;
12
13
  export {};
@@ -1,5 +1,5 @@
1
+ import { IVideoGuide } from '@rpg-engine/shared';
1
2
  import React from 'react';
2
- import { IVideoGuide } from '../../InformationCenter';
3
3
  interface ITutorialsSectionProps {
4
4
  videoGuides: IVideoGuide[];
5
5
  initialSearchQuery: string;