@rpg-engine/long-bow 0.3.52 → 0.3.53
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/CircularController/CircularController.d.ts +1 -2
- package/dist/components/Item/Inventory/ItemContainer.d.ts +1 -2
- package/dist/components/Shortcuts/Shortcuts.d.ts +1 -10
- package/dist/components/Shortcuts/ShortcutsSetter.d.ts +1 -1
- package/dist/components/Spellbook/Spellbook.d.ts +1 -2
- package/dist/components/Spellbook/constants.d.ts +1 -1
- package/dist/long-bow.cjs.development.js +89 -94
- 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 +87 -93
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/CircularController/CircularController.tsx +2 -1
- package/src/components/Item/Inventory/ItemContainer.tsx +1 -1
- package/src/components/Shortcuts/Shortcuts.tsx +2 -11
- package/src/components/Shortcuts/ShortcutsSetter.tsx +7 -2
- package/src/components/Spellbook/Spellbook.tsx +1 -2
- package/src/components/Spellbook/constants.ts +1 -1
- package/src/stories/ItemContainer.stories.tsx +7 -2
- package/src/stories/Spellbook.stories.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpg-engine/long-bow",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.53",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@rollup/plugin-image": "^2.1.1",
|
|
86
|
-
"@rpg-engine/shared": "^0.6.
|
|
86
|
+
"@rpg-engine/shared": "^0.6.85",
|
|
87
87
|
"dayjs": "^1.11.2",
|
|
88
88
|
"font-awesome": "^4.7.0",
|
|
89
89
|
"fs-extra": "^10.1.0",
|
|
@@ -3,12 +3,13 @@ import {
|
|
|
3
3
|
IItem,
|
|
4
4
|
IItemContainer,
|
|
5
5
|
IRawSpell,
|
|
6
|
+
IShortcut,
|
|
7
|
+
ShortcutType,
|
|
6
8
|
} from '@rpg-engine/shared';
|
|
7
9
|
import React from 'react';
|
|
8
10
|
import styled from 'styled-components';
|
|
9
11
|
import { uiColors } from '../../constants/uiColors';
|
|
10
12
|
import { SpriteFromAtlas } from '../shared/SpriteFromAtlas';
|
|
11
|
-
import { IShortcut, ShortcutType } from '../Shortcuts/Shortcuts';
|
|
12
13
|
import { SingleShortcut } from '../Shortcuts/SingleShortcut';
|
|
13
14
|
|
|
14
15
|
export type CircularControllerProps = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IItem,
|
|
3
3
|
IItemContainer,
|
|
4
|
+
IShortcut,
|
|
4
5
|
ItemContainerType,
|
|
5
6
|
ItemType,
|
|
6
7
|
} from '@rpg-engine/shared';
|
|
@@ -10,7 +11,6 @@ import { SlotsContainer } from '../../Abstractions/SlotsContainer';
|
|
|
10
11
|
import { ItemQuantitySelector } from './ItemQuantitySelector';
|
|
11
12
|
|
|
12
13
|
import { IPosition } from '../../../types/eventTypes';
|
|
13
|
-
import { IShortcut } from '../../Shortcuts/Shortcuts';
|
|
14
14
|
import { ShortcutsSetter } from '../../Shortcuts/ShortcutsSetter';
|
|
15
15
|
import { ItemSlot } from './ItemSlot';
|
|
16
16
|
|
|
@@ -3,23 +3,14 @@ import {
|
|
|
3
3
|
IItem,
|
|
4
4
|
IItemContainer,
|
|
5
5
|
IRawSpell,
|
|
6
|
+
IShortcut,
|
|
7
|
+
ShortcutType,
|
|
6
8
|
} from '@rpg-engine/shared';
|
|
7
9
|
import React, { useEffect } from 'react';
|
|
8
10
|
import styled from 'styled-components';
|
|
9
11
|
import { SpriteFromAtlas } from '../shared/SpriteFromAtlas';
|
|
10
12
|
import { SingleShortcut } from './SingleShortcut';
|
|
11
13
|
|
|
12
|
-
export enum ShortcutType {
|
|
13
|
-
Spell,
|
|
14
|
-
Item,
|
|
15
|
-
None,
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface IShortcut {
|
|
19
|
-
type: ShortcutType;
|
|
20
|
-
payload: IRawSpell | IItem | null;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
14
|
export type ShortcutsProps = {
|
|
24
15
|
shortcuts: IShortcut[];
|
|
25
16
|
onShortcutCast: (index: number) => void;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
getItemTextureKeyPath,
|
|
3
|
+
IItem,
|
|
4
|
+
IRawSpell,
|
|
5
|
+
IShortcut,
|
|
6
|
+
ShortcutType,
|
|
7
|
+
} from '@rpg-engine/shared';
|
|
2
8
|
import React from 'react';
|
|
3
9
|
import styled from 'styled-components';
|
|
4
10
|
import { uiColors } from '../../constants/uiColors';
|
|
5
11
|
import { SpriteFromAtlas } from '../shared/SpriteFromAtlas';
|
|
6
|
-
import { IShortcut, ShortcutType } from './Shortcuts';
|
|
7
12
|
|
|
8
13
|
type ShortcutsSetterProps = {
|
|
9
14
|
setSettingShortcutIndex: (index: number) => void;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { IRawSpell } from '@rpg-engine/shared';
|
|
1
|
+
import { IRawSpell, IShortcut } from '@rpg-engine/shared';
|
|
2
2
|
import React, { Fragment, useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { uiFonts } from '../../constants/uiFonts';
|
|
5
5
|
import { DraggableContainer } from '../DraggableContainer';
|
|
6
6
|
import { Input } from '../Input';
|
|
7
7
|
import { RPGUIContainerTypes } from '../RPGUIContainer';
|
|
8
|
-
import { IShortcut } from '../Shortcuts/Shortcuts';
|
|
9
8
|
import { ShortcutsSetter } from '../Shortcuts/ShortcutsSetter';
|
|
10
9
|
import { Spell } from './Spell';
|
|
11
10
|
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IItem,
|
|
3
|
+
IShortcut,
|
|
4
|
+
ItemContainerType,
|
|
5
|
+
ItemType,
|
|
6
|
+
ShortcutType,
|
|
7
|
+
} from '@rpg-engine/shared';
|
|
2
8
|
import { Meta, Story } from '@storybook/react';
|
|
3
9
|
import React, { useEffect, useState } from 'react';
|
|
4
10
|
import {
|
|
@@ -7,7 +13,6 @@ import {
|
|
|
7
13
|
} from '../../src/components/Item/Inventory/ItemContainer';
|
|
8
14
|
import { RPGUIRoot } from '../../src/components/RPGUIRoot';
|
|
9
15
|
import { itemContainerMock } from '../../src/mocks/itemContainer.mocks';
|
|
10
|
-
import { IShortcut, ShortcutType } from '../components/Shortcuts/Shortcuts';
|
|
11
16
|
import {
|
|
12
17
|
defaultShortcut,
|
|
13
18
|
SHORTCUTS_STORAGE_KEY,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { IShortcut, ShortcutType } from '@rpg-engine/shared';
|
|
1
2
|
import { Meta, Story } from '@storybook/react';
|
|
2
3
|
import React, { useEffect, useState } from 'react';
|
|
3
4
|
import { RPGUIRoot } from '../components/RPGUIRoot';
|
|
4
|
-
import { IShortcut, ShortcutType } from '../components/Shortcuts/Shortcuts';
|
|
5
5
|
import {
|
|
6
6
|
defaultShortcut,
|
|
7
7
|
SHORTCUTS_STORAGE_KEY,
|