@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.
Files changed (30) hide show
  1. package/dist/components/Equipment/EquipmentSet.d.ts +2 -0
  2. package/dist/components/HistoryDialog.d.ts +1 -1
  3. package/dist/components/Item/Inventory/ErrorBoundary.d.ts +14 -0
  4. package/dist/components/Item/Inventory/ItemContainer.d.ts +2 -0
  5. package/dist/components/Item/Inventory/ItemSlot.d.ts +2 -0
  6. package/dist/long-bow.cjs.development.js +855 -702
  7. package/dist/long-bow.cjs.development.js.map +1 -1
  8. package/dist/long-bow.cjs.production.min.js +1 -1
  9. package/dist/long-bow.cjs.production.min.js.map +1 -1
  10. package/dist/long-bow.esm.js +858 -705
  11. package/dist/long-bow.esm.js.map +1 -1
  12. package/package.json +1 -1
  13. package/src/components/Character/CharacterSelection.tsx +19 -11
  14. package/src/components/Equipment/EquipmentSet.tsx +6 -0
  15. package/src/components/HistoryDialog.tsx +20 -3
  16. package/src/components/Item/Inventory/ErrorBoundary.tsx +43 -0
  17. package/src/components/Item/Inventory/ItemContainer.tsx +6 -0
  18. package/src/components/Item/Inventory/ItemSlot.tsx +33 -24
  19. package/src/components/NPCDialog/img/{background.png → background01.png} +0 -0
  20. package/src/components/NPCDialog/img/background02.png +0 -0
  21. package/src/components/NPCDialog/img/background03.png +0 -0
  22. package/src/components/QuestList.tsx +13 -1
  23. package/src/components/SkillProgressBar.tsx +11 -8
  24. package/src/mocks/atlas/items/items.json +169 -121
  25. package/src/mocks/atlas/items/items.png +0 -0
  26. package/src/stories/CharacterSelection.stories.tsx +4 -0
  27. package/src/stories/EquipmentSet.stories.tsx +4 -0
  28. package/src/stories/HistoryDialog.stories.tsx +4 -2
  29. package/src/stories/ItemContainer.stories.tsx +4 -0
  30. package/src/components/NPCDialog/.DS_Store +0 -0
Binary file
@@ -34,6 +34,10 @@ const availableCharacters: ICharacterProps[] = [
34
34
  name: 'Kid',
35
35
  textureKey: 'kid-1',
36
36
  },
37
+ {
38
+ name: 'Purple Hair Hero 1',
39
+ textureKey: 'purple-hair-hero-1',
40
+ },
37
41
  ];
38
42
 
39
43
  Default.args = {
@@ -7,6 +7,8 @@ import {
7
7
  } from '../../src/components/Equipment/EquipmentSet';
8
8
  import { RPGUIRoot } from '../../src/components/RPGUIRoot';
9
9
  import { equipmentSetMock } from '../../src/mocks/equipmentSet.mocks';
10
+ import atlasJSON from '../mocks/atlas/items/items.json';
11
+ import atlasIMG from '../mocks/atlas/items/items.png';
10
12
 
11
13
  const meta: Meta = {
12
14
  title: 'Equipment Set',
@@ -44,6 +46,8 @@ const Template: Story<IEquipmentSetProps> = args => (
44
46
  onSelected={onSelected}
45
47
  onItemClick={onItemClick}
46
48
  type={ItemContainerType.Equipment}
49
+ atlasIMG={atlasIMG}
50
+ atlasJSON={atlasJSON}
47
51
  />
48
52
  </RPGUIRoot>
49
53
  );
@@ -2,7 +2,9 @@ import { Meta, Story } from '@storybook/react';
2
2
  import React from 'react';
3
3
  import { RPGUIRoot } from '../components/RPGUIRoot';
4
4
  import aliceDefaultThumbnail from '../components/NPCDialog/img/npcDialog/npcThumbnails/alice.png';
5
- import ImgBackground from '../components/NPCDialog/img/background.png';
5
+ import ImgBackground01 from '../components/NPCDialog/img/background01.png';
6
+ import ImgBackground02 from '../components/NPCDialog/img/background02.png';
7
+ import ImgBackground03 from '../components/NPCDialog/img/background03.png';
6
8
  import {
7
9
  HistoryDialog,
8
10
  IHistoryDialogProps,
@@ -55,5 +57,5 @@ const textAndTypeArray: NPCMultiDialogType[] = [
55
57
  HistoryDialogStore.args = {
56
58
  textAndTypeArray,
57
59
  fullCoverBackground: true,
58
- backgroundImgPath: ImgBackground,
60
+ backgroundImgPath: [ImgBackground01, ImgBackground02, ImgBackground03],
59
61
  };
@@ -7,6 +7,8 @@ import {
7
7
  } from '../../src/components/Item/Inventory/ItemContainer';
8
8
  import { RPGUIRoot } from '../../src/components/RPGUIRoot';
9
9
  import { itemContainerMock } from '../../src/mocks/itemContainer.mocks';
10
+ import atlasJSON from '../mocks/atlas/items/items.json';
11
+ import atlasIMG from '../mocks/atlas/items/items.png';
10
12
 
11
13
  const meta: Meta = {
12
14
  title: 'Item Container',
@@ -44,6 +46,8 @@ const Template: Story<IItemContainerProps> = () => (
44
46
  onSelected={onSelected}
45
47
  onItemClick={onItemClick}
46
48
  type={ItemContainerType.Inventory}
49
+ atlasIMG={atlasIMG}
50
+ atlasJSON={atlasJSON}
47
51
  />
48
52
  </RPGUIRoot>
49
53
  );
Binary file