@rpg-engine/long-bow 0.8.46 → 0.8.48

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 (35) hide show
  1. package/dist/components/DailyTasks/DailyRewardsTooltip.d.ts +11 -0
  2. package/dist/components/DailyTasks/DailyTaskItem.d.ts +13 -0
  3. package/dist/components/DailyTasks/DailyTasks.d.ts +13 -0
  4. package/dist/components/DailyTasks/GlobalDailyProgress.d.ts +8 -0
  5. package/dist/components/DailyTasks/TaskProgress.d.ts +11 -0
  6. package/dist/components/DailyTasks/TaskProgressDetails.d.ts +7 -0
  7. package/dist/components/DailyTasks/utils/dailyTasks.utils.d.ts +8 -0
  8. package/dist/components/ReadOnlyCheckItem.d.ts +7 -0
  9. package/dist/constants/uiColors.d.ts +1 -0
  10. package/dist/index.d.ts +1 -1
  11. package/dist/long-bow.cjs.development.js +611 -85
  12. package/dist/long-bow.cjs.development.js.map +1 -1
  13. package/dist/long-bow.cjs.production.min.js +1 -1
  14. package/dist/long-bow.cjs.production.min.js.map +1 -1
  15. package/dist/long-bow.esm.js +611 -86
  16. package/dist/long-bow.esm.js.map +1 -1
  17. package/dist/mocks/dailyTasks.mocks.d.ts +2 -0
  18. package/dist/stories/Features/dailyTasks/DailyTasks.stories.d.ts +1 -0
  19. package/package.json +2 -2
  20. package/src/components/DailyTasks/DailyRewardsTooltip.tsx +158 -0
  21. package/src/components/DailyTasks/DailyTaskItem.tsx +161 -0
  22. package/src/components/DailyTasks/DailyTasks.tsx +151 -0
  23. package/src/components/DailyTasks/GlobalDailyProgress.tsx +132 -0
  24. package/src/components/DailyTasks/TaskProgress.tsx +92 -0
  25. package/src/components/DailyTasks/TaskProgressDetails.tsx +128 -0
  26. package/src/components/DailyTasks/utils/dailyTasks.utils.ts +96 -0
  27. package/src/components/ReadOnlyCheckItem.tsx +43 -0
  28. package/src/constants/uiColors.ts +1 -0
  29. package/src/index.tsx +1 -1
  30. package/src/mocks/dailyTasks.mocks.ts +212 -0
  31. package/src/stories/Features/dailyTasks/DailyTasks.stories.tsx +145 -0
  32. package/dist/components/Character/CharacterSkinSelectionModal.d.ts +0 -13
  33. package/dist/stories/Character/character/CharacterSkinSelectionModal.stories.d.ts +0 -5
  34. package/src/components/Character/CharacterSkinSelectionModal.tsx +0 -157
  35. package/src/stories/Character/character/CharacterSkinSelectionModal.stories.tsx +0 -49
@@ -0,0 +1,11 @@
1
+ import { ITaskReward } from '@rpg-engine/shared';
2
+ import React from 'react';
3
+ interface IDailyRewardsTooltipProps {
4
+ rewards: ITaskReward[];
5
+ itemsAtlasJSON: Record<string, any>;
6
+ itemsAtlasIMG: string;
7
+ iconAtlasJSON?: Record<string, any>;
8
+ iconAtlasIMG?: string;
9
+ }
10
+ export declare const DailyRewardsTooltip: React.FC<IDailyRewardsTooltipProps>;
11
+ export {};
@@ -0,0 +1,13 @@
1
+ import { ICharacterDailyTask, TaskType } from '@rpg-engine/shared';
2
+ import React from 'react';
3
+ interface IDailyTaskItemProps {
4
+ task: ICharacterDailyTask;
5
+ spriteKey: string;
6
+ onClaimReward: (taskKey: string, taskType: TaskType) => void;
7
+ itemsAtlasJSON: Record<string, any>;
8
+ itemsAtlasIMG: string;
9
+ iconAtlasJSON?: Record<string, any>;
10
+ iconAtlasIMG?: string;
11
+ }
12
+ export declare const DailyTaskItem: React.FC<IDailyTaskItemProps>;
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { ICharacterDailyTask, ITaskIdentifier } from '@rpg-engine/shared';
2
+ import React from 'react';
3
+ export interface IDailyTasksProps {
4
+ tasks: ICharacterDailyTask[];
5
+ onClaimReward: (task: ITaskIdentifier) => void;
6
+ onClose: () => void;
7
+ scale?: number;
8
+ itemsAtlasJSON: Record<string, any>;
9
+ itemsAtlasIMG: string;
10
+ iconAtlasJSON?: Record<string, any>;
11
+ iconAtlasIMG?: string;
12
+ }
13
+ export declare const DailyTasks: React.FC<IDailyTasksProps>;
@@ -0,0 +1,8 @@
1
+ import { ICharacterDailyTask, ICollectGlobalRewardRequest } from '@rpg-engine/shared';
2
+ import React from 'react';
3
+ interface IGlobalTaskProgressProps {
4
+ tasks: ICharacterDailyTask[];
5
+ onClaimAllRewards: (tasks: ICollectGlobalRewardRequest) => void;
6
+ }
7
+ export declare const GlobalDailyProgress: React.FC<IGlobalTaskProgressProps>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ICharacterDailyTask } from '@rpg-engine/shared';
2
+ import React from 'react';
3
+ interface TaskProgressProps {
4
+ task: ICharacterDailyTask;
5
+ itemsAtlasJSON: Record<string, any>;
6
+ itemsAtlasIMG: string;
7
+ iconAtlasJSON?: Record<string, any>;
8
+ iconAtlasIMG?: string;
9
+ }
10
+ export declare const TaskProgress: React.FC<TaskProgressProps>;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ICharacterDailyTask } from '@rpg-engine/shared';
2
+ import React from 'react';
3
+ interface ITaskProgressDetailsProps {
4
+ task: ICharacterDailyTask;
5
+ }
6
+ export declare const TaskProgressDetails: React.FC<ITaskProgressDetailsProps>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ICharacterDailyTask, TaskType } from '@rpg-engine/shared';
2
+ export declare const formatTaskKey: (key: string) => string;
3
+ export declare const getTaskIcon: (taskType: TaskType, difficulty?: string | undefined) => string;
4
+ export declare const getStatusInfo: (task: ICharacterDailyTask) => {
5
+ text: string;
6
+ color: string;
7
+ };
8
+ export declare const formatDifficulty: (difficulty: string) => string;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface IReadOnlyCheckItemProps {
3
+ labelLeft?: string;
4
+ labelRight?: string;
5
+ checked: boolean;
6
+ }
7
+ export declare const ReadOnlyCheckItem: React.FC<IReadOnlyCheckItemProps>;
@@ -16,6 +16,7 @@ export declare const uiColors: {
16
16
  darkBlue: string;
17
17
  brown: string;
18
18
  lightGreen: string;
19
+ green: string;
19
20
  brownGreen: string;
20
21
  white: string;
21
22
  };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export * from './components/Arrow/SelectArrow';
2
2
  export * from './components/AsyncDropdown';
3
3
  export * from './components/Button';
4
4
  export * from './components/Character/CharacterSelection';
5
- export * from './components/Character/CharacterSkinSelectionModal';
6
5
  export * from './components/Chat/Chat';
7
6
  export * from './components/Chatdeprecated/ChatDeprecated';
8
7
  export * from './components/ChatRevamp/ChatRevamp';
@@ -10,6 +9,7 @@ export * from './components/CheckButton';
10
9
  export * from './components/CheckItem';
11
10
  export * from './components/CircularController/CircularController';
12
11
  export * from './components/CraftBook/CraftBook';
12
+ export * from './components/DailyTasks/DailyTasks';
13
13
  export * from './components/DPad/JoystickDPad';
14
14
  export * from './components/DraggableContainer';
15
15
  export * from './components/Dropdown';