@rpg-engine/long-bow 0.8.1 → 0.8.3

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.
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { IChatRevampProps } from './types';
3
- export declare const ChatRevamp: ({ chatMessages, onSendGlobalChatMessage, onSendGuildChatMessage, onChangeCharacterName, onFocus, onBlur, onCloseButton, styles, tabs, onChangeTab, activeTab, privateChatCharacters, onCharacterClick, onSendPrivateChatMessage, recentChatCharacters, recentSelectedChatCharacterId, onPreviousChatCharacterClick, onRemoveRecentChatCharacter, unseenMessageCharacterIds, onSendTradeMessage, searchCharacterUI, hideSearchCharacterUI, showSearchCharacterUI, minimizedByDefault, autoCloseOnSend, onSendLocalChatMessage, }: IChatRevampProps) => JSX.Element;
3
+ export declare const ChatRevamp: React.FC<IChatRevampProps>;
@@ -5,18 +5,16 @@ export declare type ChatMessage = ILocalChatMessage | IPrivateChatMessage | ITra
5
5
  export interface IChatRevampProps {
6
6
  chatMessages: ChatMessage[];
7
7
  onSendGlobalChatMessage: (message: string) => void;
8
- onCloseButton: () => void;
8
+ onSendGuildChatMessage: (message: string) => void;
9
+ onChangeCharacterName: (characterName: string) => void;
9
10
  onFocus?: () => void;
10
11
  onBlur?: () => void;
12
+ onCloseButton: () => void;
11
13
  styles?: IStyles;
12
- tabs: {
13
- label: string;
14
- id: string;
15
- }[];
16
- activeTab: string;
17
- onChangeTab: (tabId: string) => void;
14
+ tabs: any[];
15
+ onChangeTab: (tab: string) => void;
16
+ activeTab?: string;
18
17
  privateChatCharacters?: PrivateChatCharacter[];
19
- onChangeCharacterName: (characterName: string) => void;
20
18
  onCharacterClick?: (character: PrivateChatCharacter) => void;
21
19
  onSendPrivateChatMessage: (message: string) => void;
22
20
  recentChatCharacters?: PrivateChatCharacter[];
@@ -25,12 +23,12 @@ export interface IChatRevampProps {
25
23
  onRemoveRecentChatCharacter?: (character: PrivateChatCharacter) => void;
26
24
  unseenMessageCharacterIds?: string[];
27
25
  onSendTradeMessage: (message: string) => void;
28
- searchCharacterUI: boolean;
29
- hideSearchCharacterUI: () => void;
30
- showSearchCharacterUI: () => void;
26
+ searchCharacterUI?: boolean;
27
+ hideSearchCharacterUI?: () => void;
28
+ showSearchCharacterUI?: () => void;
31
29
  minimizedByDefault?: boolean;
32
30
  autoCloseOnSend?: boolean;
33
- onSendGuildChatMessage: (message: string) => void;
34
- isInGuild: boolean;
35
31
  onSendLocalChatMessage: (message: string) => void;
32
+ onDiscordClick?: () => void;
33
+ onWhatsAppClick?: () => void;
36
34
  }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ISocialModalProps {
3
+ onClose: () => void;
4
+ }
5
+ export declare const SocialModal: React.FC<ISocialModalProps>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IDividerProps {
3
+ className?: string;
4
+ margin?: string;
5
+ }
6
+ export declare const Divider: React.FC<IDividerProps>;
7
+ export {};
package/dist/index.d.ts CHANGED
@@ -47,6 +47,7 @@ export * from './components/shared/SpriteFromAtlas';
47
47
  export * from './components/Shortcuts/Shortcuts';
48
48
  export * from './components/SkillProgressBar';
49
49
  export * from './components/SkillsContainer';
50
+ export * from './components/SocialModal/SocialModal';
50
51
  export * from './components/Spellbook/Spellbook';
51
52
  export * from './components/Stepper';
52
53
  export * from './components/Table/Table';