@rpg-engine/long-bow 0.8.46 → 0.8.47
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/DailyTasks/DailyRewardsTooltip.d.ts +11 -0
- package/dist/components/DailyTasks/DailyTaskItem.d.ts +13 -0
- package/dist/components/DailyTasks/DailyTasks.d.ts +13 -0
- package/dist/components/DailyTasks/GlobalDailyProgress.d.ts +8 -0
- package/dist/components/DailyTasks/TaskProgress.d.ts +11 -0
- package/dist/components/DailyTasks/TaskProgressDetails.d.ts +7 -0
- package/dist/components/DailyTasks/utils/dailyTasks.utils.d.ts +8 -0
- package/dist/components/ReadOnlyCheckItem.d.ts +7 -0
- package/dist/constants/uiColors.d.ts +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/long-bow.cjs.development.js +1 -0
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +1 -0
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/mocks/dailyTasks.mocks.d.ts +2 -0
- package/dist/stories/Features/dailyTasks/DailyTasks.stories.d.ts +1 -0
- package/package.json +2 -2
- package/src/components/DailyTasks/DailyRewardsTooltip.tsx +158 -0
- package/src/components/DailyTasks/DailyTaskItem.tsx +161 -0
- package/src/components/DailyTasks/DailyTasks.tsx +151 -0
- package/src/components/DailyTasks/GlobalDailyProgress.tsx +132 -0
- package/src/components/DailyTasks/TaskProgress.tsx +92 -0
- package/src/components/DailyTasks/TaskProgressDetails.tsx +128 -0
- package/src/components/DailyTasks/utils/dailyTasks.utils.ts +96 -0
- package/src/components/ReadOnlyCheckItem.tsx +43 -0
- package/src/constants/uiColors.ts +1 -0
- package/src/index.tsx +0 -1
- package/src/mocks/dailyTasks.mocks.ts +212 -0
- package/src/stories/Features/dailyTasks/DailyTasks.stories.tsx +145 -0
- package/dist/components/Character/CharacterSkinSelectionModal.d.ts +0 -13
- package/dist/stories/Character/character/CharacterSkinSelectionModal.stories.d.ts +0 -5
- package/src/components/Character/CharacterSkinSelectionModal.tsx +0 -157
- 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,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;
|
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';
|