poi-plugin-quest-info-2 0.10.3 → 0.10.5
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/.babelrc.json +18 -0
- package/.eslintrc.js +2 -3
- package/.nvmrc +1 -0
- package/CHANGELOG.md +13 -0
- package/build/kcQuestsData/DATA_VERSION +1 -1
- package/build/kcQuestsData/index.ts +1 -1
- package/build/kcQuestsData/quests-scn-new.json +7 -12
- package/build/kcQuestsData/quests-scn.json +1287 -1921
- package/build/kcanotifyGamedata/DATA_VERSION +1 -1
- package/build/kcanotifyGamedata/index.ts +1 -1
- package/build/kcanotifyGamedata/quests-en.json +220 -40
- package/build/kcanotifyGamedata/quests-jp.json +231 -42
- package/build/kcanotifyGamedata/quests-ko.json +228 -42
- package/build/kcanotifyGamedata/quests-scn.json +227 -42
- package/build/kcanotifyGamedata/quests-tcn.json +227 -42
- package/build/prePostQuest.json +118 -49
- package/build/questCategory.json +9 -9
- package/build/questCodeMap.json +8 -8
- package/package.json +25 -19
- package/shims/poi.d.ts +2 -2
- package/src/Toolbar.tsx +8 -8
- package/src/__tests__/__snapshots__/questCategory.spec.ts.snap +138 -128
- package/src/__tests__/__snapshots__/questHelper.spec.ts.snap +13 -5
- package/src/__tests__/kcanotifyData.spec.ts +9 -9
- package/src/__tests__/kcwikiData.spec.ts +5 -5
- package/src/__tests__/questCategory.spec.ts +3 -3
- package/src/components/QuestCard/index.tsx +5 -4
- package/src/patch.ts +2 -2
- package/src/poi/hooks.ts +2 -2
- package/src/poi/store.ts +5 -5
- package/src/poi/types.ts +1 -1
- package/src/questHelper.ts +6 -6
- package/src/reducer.ts +1 -1
- package/src/store/filterTags.ts +6 -6
- package/src/store/gameQuest.tsx +1 -1
- package/src/store/kcwiki.ts +1 -1
- package/src/store/quest.ts +2 -2
- package/src/store/search.ts +24 -3
- package/src/store/store.tsx +1 -1
- package/src/tags.tsx +1 -1
package/build/questCategory.json
CHANGED
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
339,
|
|
63
63
|
342,
|
|
64
64
|
426,
|
|
65
|
+
428,
|
|
65
66
|
637,
|
|
66
67
|
643,
|
|
67
68
|
653,
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
675,
|
|
70
71
|
678,
|
|
71
72
|
680,
|
|
73
|
+
686,
|
|
72
74
|
688,
|
|
73
75
|
822,
|
|
74
76
|
845,
|
|
@@ -331,11 +333,11 @@
|
|
|
331
333
|
351,
|
|
332
334
|
352,
|
|
333
335
|
358,
|
|
334
|
-
359,
|
|
335
336
|
360,
|
|
336
337
|
364,
|
|
337
338
|
365,
|
|
338
339
|
366,
|
|
340
|
+
369,
|
|
339
341
|
401,
|
|
340
342
|
405,
|
|
341
343
|
406,
|
|
@@ -355,7 +357,6 @@
|
|
|
355
357
|
424,
|
|
356
358
|
425,
|
|
357
359
|
427,
|
|
358
|
-
428,
|
|
359
360
|
429,
|
|
360
361
|
430,
|
|
361
362
|
431,
|
|
@@ -429,7 +430,6 @@
|
|
|
429
430
|
683,
|
|
430
431
|
684,
|
|
431
432
|
685,
|
|
432
|
-
686,
|
|
433
433
|
687,
|
|
434
434
|
689,
|
|
435
435
|
690,
|
|
@@ -496,6 +496,9 @@
|
|
|
496
496
|
863,
|
|
497
497
|
864,
|
|
498
498
|
865,
|
|
499
|
+
866,
|
|
500
|
+
867,
|
|
501
|
+
868,
|
|
499
502
|
869,
|
|
500
503
|
870,
|
|
501
504
|
871,
|
|
@@ -551,6 +554,8 @@
|
|
|
551
554
|
952,
|
|
552
555
|
957,
|
|
553
556
|
958,
|
|
557
|
+
959,
|
|
558
|
+
960,
|
|
554
559
|
961,
|
|
555
560
|
966,
|
|
556
561
|
967,
|
|
@@ -565,10 +570,6 @@
|
|
|
565
570
|
981,
|
|
566
571
|
982,
|
|
567
572
|
983,
|
|
568
|
-
984,
|
|
569
|
-
985,
|
|
570
|
-
986,
|
|
571
|
-
987,
|
|
572
573
|
989,
|
|
573
574
|
992,
|
|
574
575
|
993,
|
|
@@ -578,12 +579,12 @@
|
|
|
578
579
|
997,
|
|
579
580
|
998,
|
|
580
581
|
1001,
|
|
581
|
-
1002,
|
|
582
582
|
1101,
|
|
583
583
|
1102,
|
|
584
584
|
1106,
|
|
585
585
|
1108,
|
|
586
586
|
1109,
|
|
587
|
+
1110,
|
|
587
588
|
1111,
|
|
588
589
|
1112,
|
|
589
590
|
1113,
|
|
@@ -592,7 +593,6 @@
|
|
|
592
593
|
1116,
|
|
593
594
|
1117,
|
|
594
595
|
1118,
|
|
595
|
-
1119,
|
|
596
596
|
1127,
|
|
597
597
|
1128,
|
|
598
598
|
1129,
|
package/build/questCodeMap.json
CHANGED
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"Cm1": 311,
|
|
203
203
|
"C9": 312,
|
|
204
204
|
"Cs1": 313,
|
|
205
|
-
"
|
|
205
|
+
"Cs2": 314,
|
|
206
206
|
"Cs3": 315,
|
|
207
207
|
"C13": 316,
|
|
208
208
|
"C15": 317,
|
|
@@ -242,13 +242,13 @@
|
|
|
242
242
|
"Cy8": 356,
|
|
243
243
|
"Cy9": 357,
|
|
244
244
|
"C68": 358,
|
|
245
|
-
"2310C1": 359,
|
|
246
245
|
"C70": 360,
|
|
247
246
|
"Cy10": 362,
|
|
248
247
|
"C73": 364,
|
|
249
248
|
"C75": 365,
|
|
250
249
|
"C76": 366,
|
|
251
250
|
"Cy11": 368,
|
|
251
|
+
"2311C1": 369,
|
|
252
252
|
"D1": 401,
|
|
253
253
|
"Dd1": 402,
|
|
254
254
|
"Dd2": 403,
|
|
@@ -459,6 +459,9 @@
|
|
|
459
459
|
"B104": 863,
|
|
460
460
|
"B105": 864,
|
|
461
461
|
"B106": 865,
|
|
462
|
+
"2311B1": 866,
|
|
463
|
+
"2311B2": 867,
|
|
464
|
+
"2311B3": 868,
|
|
462
465
|
"B107": 869,
|
|
463
466
|
"B108": 870,
|
|
464
467
|
"B109": 871,
|
|
@@ -531,6 +534,8 @@
|
|
|
531
534
|
"B171": 952,
|
|
532
535
|
"B172": 957,
|
|
533
536
|
"B173": 958,
|
|
537
|
+
"2311B4": 959,
|
|
538
|
+
"2311B5": 960,
|
|
534
539
|
"B174": 961,
|
|
535
540
|
"B175": 966,
|
|
536
541
|
"B176": 967,
|
|
@@ -547,10 +552,6 @@
|
|
|
547
552
|
"B185": 981,
|
|
548
553
|
"B186": 982,
|
|
549
554
|
"B187": 983,
|
|
550
|
-
"2310B1": 984,
|
|
551
|
-
"2310B2": 985,
|
|
552
|
-
"2310B3": 986,
|
|
553
|
-
"2310B4": 987,
|
|
554
555
|
"B188": 989,
|
|
555
556
|
"2307B1": 992,
|
|
556
557
|
"B193": 993,
|
|
@@ -560,7 +561,6 @@
|
|
|
560
561
|
"B191": 997,
|
|
561
562
|
"B192": 998,
|
|
562
563
|
"B194": 1001,
|
|
563
|
-
"2310B5": 1002,
|
|
564
564
|
"F96": 1101,
|
|
565
565
|
"F97": 1102,
|
|
566
566
|
"Fy5": 1103,
|
|
@@ -570,6 +570,7 @@
|
|
|
570
570
|
"Fy8": 1107,
|
|
571
571
|
"F103": 1108,
|
|
572
572
|
"F104": 1109,
|
|
573
|
+
"2311F1": 1110,
|
|
573
574
|
"F105": 1111,
|
|
574
575
|
"F106": 1112,
|
|
575
576
|
"F107": 1113,
|
|
@@ -578,7 +579,6 @@
|
|
|
578
579
|
"F110": 1116,
|
|
579
580
|
"F111": 1117,
|
|
580
581
|
"F112": 1118,
|
|
581
|
-
"2310F1": 1119,
|
|
582
582
|
"Fy9": 1120,
|
|
583
583
|
"Fy10": 1123,
|
|
584
584
|
"F115": 1127,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "poi-plugin-quest-info-2",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "show quest info",
|
|
6
6
|
"homepage": "https://github.com/lawvs/poi-plugin-quest-2/",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"dev": "npm run storybook",
|
|
22
22
|
"build": "npm run convertAssets && npm run update",
|
|
23
|
-
"build-storybook": "build
|
|
23
|
+
"build-storybook": "storybook build",
|
|
24
24
|
"clean": "rm -rf build",
|
|
25
25
|
"convertAssets": "ts-node scripts/convertAssets.ts",
|
|
26
26
|
"downloadKcQuestsData": "ts-node scripts/downloadKcQuestsData.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"genQuestData": "ts-node scripts/genQuestData.ts",
|
|
30
30
|
"lint": "eslint . --ignore-path .gitignore",
|
|
31
31
|
"lint:fix": "npm run lint -- --fix",
|
|
32
|
-
"storybook": "
|
|
32
|
+
"storybook": "storybook dev -p 6006",
|
|
33
33
|
"test": "jest",
|
|
34
34
|
"typeCheck": "tsc --noEmit",
|
|
35
35
|
"update": "npm run downloadKcanotifyData && npm run downloadKcQuestsData && npm run genQuestData",
|
|
@@ -45,12 +45,16 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/core": "^7.12.10",
|
|
48
|
+
"@babel/preset-env": "^7.23.2",
|
|
49
|
+
"@babel/preset-react": "^7.22.15",
|
|
50
|
+
"@babel/preset-typescript": "^7.23.2",
|
|
48
51
|
"@blueprintjs/core": "^3.52.0",
|
|
49
|
-
"@changesets/cli": "^2.
|
|
50
|
-
"@storybook/addon-actions": "^
|
|
51
|
-
"@storybook/addon-essentials": "^
|
|
52
|
-
"@storybook/addon-links": "^
|
|
53
|
-
"@storybook/react": "^
|
|
52
|
+
"@changesets/cli": "^2.26.2",
|
|
53
|
+
"@storybook/addon-actions": "^7.5.2",
|
|
54
|
+
"@storybook/addon-essentials": "^7.5.2",
|
|
55
|
+
"@storybook/addon-links": "^7.5.2",
|
|
56
|
+
"@storybook/react": "^7.5.2",
|
|
57
|
+
"@storybook/react-webpack5": "^7.5.2",
|
|
54
58
|
"@types/jest": "^27.4.1",
|
|
55
59
|
"@types/pangu": "^3.3.0",
|
|
56
60
|
"@types/react-highlight-words": "^0.16.4",
|
|
@@ -58,28 +62,30 @@
|
|
|
58
62
|
"@types/react-window": "^1.8.5",
|
|
59
63
|
"@types/sharp": "^0.27.1",
|
|
60
64
|
"@types/styled-components": "^5.1.7",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
62
|
-
"@typescript-eslint/parser": "^
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^6.9.0",
|
|
66
|
+
"@typescript-eslint/parser": "^6.9.0",
|
|
63
67
|
"babel-loader": "^8.2.2",
|
|
64
|
-
"eslint": "^8.
|
|
65
|
-
"eslint-config-prettier": "^
|
|
66
|
-
"eslint-plugin-prettier": "^
|
|
68
|
+
"eslint": "^8.52.0",
|
|
69
|
+
"eslint-config-prettier": "^9.0.0",
|
|
70
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
67
71
|
"eslint-plugin-react": "^7.29.4",
|
|
68
72
|
"eslint-plugin-react-hooks": "^4.5.0",
|
|
73
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
69
74
|
"https-proxy-agent": "^5.0.0",
|
|
70
75
|
"i18next": "^19.8.5",
|
|
71
|
-
"jest": "^
|
|
76
|
+
"jest": "^30.0.0-alpha.1",
|
|
72
77
|
"pangu": "^4.0.7",
|
|
73
78
|
"poi-asset-themes": "^4.2.0",
|
|
74
|
-
"prettier": "^
|
|
75
|
-
"react": "^
|
|
76
|
-
"react-dom": "^
|
|
79
|
+
"prettier": "^3.0.3",
|
|
80
|
+
"react": "^18.2.0",
|
|
81
|
+
"react-dom": "^18.2.0",
|
|
77
82
|
"react-i18next": "^11.8.5",
|
|
78
83
|
"sharp": "^0.28.3",
|
|
84
|
+
"storybook": "^7.5.2",
|
|
79
85
|
"styled-components": "^5.3.3",
|
|
80
|
-
"ts-jest": "^
|
|
86
|
+
"ts-jest": "^29.1.1",
|
|
81
87
|
"ts-node": "^10.7.0",
|
|
82
|
-
"typescript": "^4.
|
|
88
|
+
"typescript": "^4.7.4"
|
|
83
89
|
},
|
|
84
90
|
"poiPlugin": {
|
|
85
91
|
"title": "Quest Information",
|
package/shims/poi.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ declare module 'views/utils/selectors' {
|
|
|
55
55
|
export const extensionSelectorFactory: (id: string) => Selector<any, any>
|
|
56
56
|
export const fcdSelector: Selector<any, IFCD>
|
|
57
57
|
export const fleetInExpeditionSelectorFactory: (
|
|
58
|
-
id: number
|
|
58
|
+
id: number,
|
|
59
59
|
) => Selector<any, any>
|
|
60
60
|
export const fleetShipsIdSelectorFactory: (id: number) => Selector<any, any>
|
|
61
61
|
export const inRepairShipsIdSelector: Selector<any, any>
|
|
@@ -91,7 +91,7 @@ declare module 'views/utils/ship-img' {
|
|
|
91
91
|
type: string,
|
|
92
92
|
damagaed: boolean,
|
|
93
93
|
ip?: string,
|
|
94
|
-
version?: number
|
|
94
|
+
version?: number,
|
|
95
95
|
) => string
|
|
96
96
|
}
|
|
97
97
|
|
package/src/Toolbar.tsx
CHANGED
|
@@ -33,7 +33,7 @@ export const SearchInput: React.FC = () => {
|
|
|
33
33
|
const handleChange = useCallback(
|
|
34
34
|
(event: ChangeEvent<HTMLInputElement>) =>
|
|
35
35
|
setSearchInput(event.target.value),
|
|
36
|
-
[setSearchInput]
|
|
36
|
+
[setSearchInput],
|
|
37
37
|
)
|
|
38
38
|
|
|
39
39
|
const handleClear = useCallback(() => setSearchInput(''), [setSearchInput])
|
|
@@ -80,10 +80,10 @@ const useInputStringFilter = () => {
|
|
|
80
80
|
quest.docQuest.desc
|
|
81
81
|
} ${quest.docQuest.rewards ?? ''} ${quest.docQuest.memo2 ?? ''}`
|
|
82
82
|
return searchKeywords.some((keyword) =>
|
|
83
|
-
text.toUpperCase().includes(keyword)
|
|
83
|
+
text.toUpperCase().includes(keyword),
|
|
84
84
|
)
|
|
85
85
|
},
|
|
86
|
-
[searchKeywords]
|
|
86
|
+
[searchKeywords],
|
|
87
87
|
)
|
|
88
88
|
return stringFilter
|
|
89
89
|
}
|
|
@@ -122,23 +122,23 @@ const useToolbarFilter = (): ((quest: UnionQuest) => boolean) => {
|
|
|
122
122
|
}
|
|
123
123
|
return true
|
|
124
124
|
},
|
|
125
|
-
[progressTag, questStatusQuery]
|
|
125
|
+
[progressTag, questStatusQuery],
|
|
126
126
|
)
|
|
127
127
|
|
|
128
128
|
const typeTagsFilter = Or(
|
|
129
|
-
...TYPE_TAGS.filter((tag) => typeTags[tag.name]).map((tag) => tag.filter)
|
|
129
|
+
...TYPE_TAGS.filter((tag) => typeTags[tag.name]).map((tag) => tag.filter),
|
|
130
130
|
)
|
|
131
131
|
const categoryTagsFilter = Or(
|
|
132
132
|
...CATEGORY_TAGS.filter((tag) => categoryTags[tag.name]).map(
|
|
133
|
-
(tag) => tag.filter
|
|
134
|
-
)
|
|
133
|
+
(tag) => tag.filter,
|
|
134
|
+
),
|
|
135
135
|
)
|
|
136
136
|
|
|
137
137
|
const toolbarFilter = And(
|
|
138
138
|
searchFilter,
|
|
139
139
|
typeTagsFilter,
|
|
140
140
|
categoryTagsFilter,
|
|
141
|
-
progressTagFilter
|
|
141
|
+
progressTagFilter,
|
|
142
142
|
)
|
|
143
143
|
|
|
144
144
|
return toolbarFilter
|