poi-plugin-quest-info-2 0.12.21 → 0.13.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # poi-plugin-quest-info-2
2
2
 
3
+ ## 0.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0ca1322: Support jump to Richelieu Manager
8
+
9
+ ### Patch Changes
10
+
11
+ - e4b0971: Update quest data
12
+
13
+ ## 0.12.22
14
+
15
+ ### Patch Changes
16
+
17
+ - 424e566: Update quest data
18
+
3
19
  ## 0.12.21
4
20
 
5
21
  ### Patch Changes
@@ -1 +1 @@
1
- 4308a6eea1bdfb97fc1dc73cd2c8c1aeccb41020
1
+ 8fd9ff93a65ef9e50f2c6f2098c53b0205fe6110
@@ -4,4 +4,4 @@ export const KcwikiQuestData = {
4
4
  'zh-CN': zh_CN,
5
5
  }
6
6
 
7
- export const version = '4308a6eea1bdfb97fc1dc73cd2c8c1aeccb41020'
7
+ export const version = '8fd9ff93a65ef9e50f2c6f2098c53b0205fe6110'
@@ -1,8 +1,12 @@
1
1
  [
2
2
  "326",
3
3
  "372",
4
+ "373",
4
5
  "1014",
5
6
  "1015",
6
7
  "1138",
7
- "1139"
8
+ "1139",
9
+ "1140",
10
+ "1141",
11
+ "1142"
8
12
  ]
@@ -2538,6 +2538,14 @@
2538
2538
  ],
2539
2539
  "rewards": "奖励:以下奖励二选一: 新型兵装资材 「25mm 连装机铳」×2 以下奖励三选一: 间宫 ×2 开发资材 ×10 勋章"
2540
2540
  },
2541
+ "373": {
2542
+ "code": "Cy14",
2543
+ "desc": "【法国舰队演习】编成以法国出生的舰艇为旗舰、包含期间在内法国舰艇 3 艘以上的演习舰队。以此舰队在本日内达成演习【A 判定】胜利 4 次以上!Merci♪",
2544
+ "memo2": "年常任务 (7 月) 演习舰队需要 【包括旗舰在内共 3 艘「海外舰 | 法国船」】 演习 4 回 A 胜",
2545
+ "name": "【法国舰队】演习!",
2546
+ "pre": [],
2547
+ "rewards": "奖励:以下奖励三选一: 新型兵装资材 新型火炮兵装资材 开发资材 ×8 以下奖励三选一: 「13.8cm 连装炮」×3 「15.2cm 三连装主炮」×2 「38cm 四连装炮」"
2548
+ },
2541
2549
  "401": {
2542
2550
  "code": "D1",
2543
2551
  "desc": "舰队出发「远征」!",
@@ -3428,7 +3436,7 @@
3428
3436
  "pre": [
3429
3437
  "B56"
3430
3438
  ],
3431
- "rewards": "奖励:开发资材 ×2 「九六式陆攻」\n开发资材 ×2"
3439
+ "rewards": "奖励:开发资材 ×2 「九六式陆攻」"
3432
3440
  },
3433
3441
  "642": {
3434
3442
  "code": "F38",
@@ -5798,7 +5806,8 @@
5798
5806
  "memo2": "年常任务 (5 月) 鹈来型海防舰旗舰,僚舰 1~3 海防舰,且不含其他舰种,出击 1-1 完成 3 次 S 胜,出击 1-2、1-5 各完成 2 次 A 胜。",
5799
5807
  "name": "鹈来型海防舰,保卫平静的海洋吧!",
5800
5808
  "pre": [
5801
- "Bd2"
5809
+ "Bd2",
5810
+ "A16"
5802
5811
  ],
5803
5812
  "rewards": "奖励:以下奖励三选一: 燃料燃料 ×880 高速修复材 ×6 特制家具职人 ×1 以下奖励三选一: 开发资材 ×16 「12cm 单装高角炮 E 型」×3 改修资材 ×3 "
5804
5813
  },
@@ -6135,5 +6144,31 @@
6135
6144
  "Fy11"
6136
6145
  ],
6137
6146
  "rewards": "奖励:「通信装置 & 要员」×1"
6147
+ },
6148
+ "1140": {
6149
+ "code": "F125",
6150
+ "desc": "在旗舰 “「黎塞留 | 黎塞留 Deux」” 第一以及第二装备栏装备 “「38cm 四连装炮改」”。准备「开发资材」×20 以及「海外舰最新技术」×1。废弃 “「41cm 连装炮」”×4!(任务达成后会消耗掉资材和装备)",
6151
+ "memo2": "以【「黎塞留 | 黎塞留 Deux」】作为旗舰第一格和第二格装备【「38cm 四连装炮改」】,废弃「41cm 连装炮」×4,准备「开发资材」×20、「海外舰最新技术」×1。 放入的两个【「38cm 四连装炮改」】都会被消耗。",
6152
+ "name": "【新锐海外舰装备】开发新型四连装主炮",
6153
+ "pre": [
6154
+ "Cy14"
6155
+ ],
6156
+ "rewards": "奖励:「38cm 四连装炮改 deux」\n「Loire 130M」"
6157
+ },
6158
+ "1141": {
6159
+ "code": "F126",
6160
+ "desc": "在旗舰 “「大和 | 大和改二 / 重」” 或 “「由良 | 由良改二」”“「矢矧 | 矢矧改二 / 乙」” 的第一装备栏装备最大改修的 “「零式水上侦察机 11 型乙」”。废弃 “「零式水上侦察机」”×15、「新型航空兵装资材」×2、「开发资材」×60、准备「夜间熟练搭乘员」×1!",
6161
+ "name": "开发最新改修型三座水上侦察机",
6162
+ "pre": [
6163
+ "F111"
6164
+ ],
6165
+ "rewards": "奖励:「零式水上侦察机 11 型甲改二」"
6166
+ },
6167
+ "1142": {
6168
+ "code": "F127",
6169
+ "desc": "在旗舰 “「翔鹤 | 翔鹤改二 / 甲」” 的第一装备栏装备 “「天山一二型 (村田队)」”。废弃天山 ×4。准备「天山一二型甲改 (空六号电探改装备机)」×1、「新型航空兵装资材」×2、「开发资材」×48、「夜间熟练搭乘员」×1!",
6170
+ "name": "配备最精锐【天山】舰攻队",
6171
+ "pre": [],
6172
+ "rewards": "奖励:「天山一二型甲改二 (村田队 / 电探装备)」"
6138
6173
  }
6139
6174
  }
@@ -167,7 +167,8 @@
167
167
  "A15"
168
168
  ],
169
169
  "post": [
170
- "WF01"
170
+ "WF01",
171
+ "By14"
171
172
  ]
172
173
  },
173
174
  "119": {
@@ -2263,6 +2264,12 @@
2263
2264
  "Fy11"
2264
2265
  ]
2265
2266
  },
2267
+ "373": {
2268
+ "pre": [],
2269
+ "post": [
2270
+ "F125"
2271
+ ]
2272
+ },
2266
2273
  "401": {
2267
2274
  "pre": [
2268
2275
  "A5"
@@ -4803,6 +4810,7 @@
4803
4810
  },
4804
4811
  "1012": {
4805
4812
  "pre": [
4813
+ "A16",
4806
4814
  "Bd2"
4807
4815
  ],
4808
4816
  "post": []
@@ -4950,7 +4958,9 @@
4950
4958
  "F101",
4951
4959
  "F110"
4952
4960
  ],
4953
- "post": []
4961
+ "post": [
4962
+ "F126"
4963
+ ]
4954
4964
  },
4955
4965
  "1118": {
4956
4966
  "pre": [
@@ -5052,5 +5062,17 @@
5052
5062
  "Fy11"
5053
5063
  ],
5054
5064
  "post": []
5065
+ },
5066
+ "1140": {
5067
+ "pre": [
5068
+ "Cy14"
5069
+ ],
5070
+ "post": []
5071
+ },
5072
+ "1141": {
5073
+ "pre": [
5074
+ "F111"
5075
+ ],
5076
+ "post": []
5055
5077
  }
5056
5078
  }
@@ -105,6 +105,7 @@
105
105
  368,
106
106
  371,
107
107
  372,
108
+ 373,
108
109
  434,
109
110
  436,
110
111
  437,
@@ -347,7 +348,6 @@
347
348
  364,
348
349
  365,
349
350
  366,
350
- 373,
351
351
  401,
352
352
  405,
353
353
  406,
@@ -251,6 +251,7 @@
251
251
  "Cy11": 368,
252
252
  "Cy12": 371,
253
253
  "Cy13": 372,
254
+ "Cy14": 373,
254
255
  "D1": 401,
255
256
  "Dd1": 402,
256
257
  "Dd2": 403,
@@ -595,5 +596,8 @@
595
596
  "F122": 1134,
596
597
  "F123": 1137,
597
598
  "Fy11": 1138,
598
- "F124": 1139
599
+ "F124": 1139,
600
+ "F125": 1140,
601
+ "F126": 1141,
602
+ "F127": 1142
599
603
  }
package/i18n/en-US.json CHANGED
@@ -40,6 +40,7 @@
40
40
  "Search in wikiwiki": "Search in 艦これ 攻略 Wiki",
41
41
  "Search in Kcwiki": "Search in Kcwiki",
42
42
  "Search in KanColle Wiki": "Search in KanColle Wiki",
43
+ "Search in Richelieu Manager": "Search in Richelieu Manager",
43
44
  "Star project, support the author": "Star project, support the author",
44
45
  "": ""
45
46
  }
package/i18n/ja-JP.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "Search in wikiwiki": "艦これ 攻略 Wikiでこのタスクを検索",
36
36
  "Search in Kcwiki": "艦娘百科でこのタスクを検索",
37
37
  "Search in KanColle Wiki": "KanColle Wikiでこのタスクを検索",
38
+ "Search in Richelieu Manager": "リシュリューの任務マネージャを検索",
38
39
  "Star project, support the author": "Starプロジェクト、著者をサポート",
39
40
  "": ""
40
41
  }
package/i18n/ko-KR.json CHANGED
@@ -19,6 +19,7 @@
19
19
  "Search in wikiwiki": "艦これ 攻略 Wiki에서 이 작업 검색",
20
20
  "Search in Kcwiki": "艦娘百科에서 이 작업 검색",
21
21
  "Search in KanColle Wiki": "KanColle Wiki에서 이 작업 검색",
22
+ "Search in Richelieu Manager": "リシュリューの任務マネージャ에서 이 작업 검색",
22
23
  "Star project, support the author": "스타 프로젝트, 작가 지원",
23
24
  "": ""
24
25
  }
package/i18n/zh-CN.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "Search in wikiwiki": "在 艦これ攻略Wiki 搜索该任务",
36
36
  "Search in Kcwiki": "在 舰娘百科 搜索该任务",
37
37
  "Search in KanColle Wiki": "在 英wiki 搜索该任务",
38
+ "Search in Richelieu Manager": "在 黎塞留任务管理器 搜索该任务",
38
39
  "Star project, support the author": "Star 项目,支持作者",
39
40
  "": ""
40
41
  }
package/i18n/zh-TW.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "Search in wikiwiki": "在 艦これ 攻略 Wiki 搜索該任務",
36
36
  "Search in Kcwiki": "在 艦娘百科 搜索該任務",
37
37
  "Search in KanColle Wiki": "在 KanColle Wiki 搜索該任務",
38
+ "Search in Richelieu Manager": "在 黎塞留任務管理器 搜索該任務",
38
39
  "Star project, support the author": "Star項目,支持作者",
39
40
  "": ""
40
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poi-plugin-quest-info-2",
3
- "version": "0.12.21",
3
+ "version": "0.13.0",
4
4
  "private": false,
5
5
  "description": "show quest info",
6
6
  "homepage": "https://github.com/lawvs/poi-plugin-quest-2/",
@@ -37,11 +37,13 @@
37
37
  "release": "npm run build && changeset publish"
38
38
  },
39
39
  "dependencies": {
40
- "moize": "^6.1.1",
40
+ "moize": "^6.1.6",
41
41
  "react-highlight-words": "^0.20.0",
42
- "react-use": "^17.3.1",
43
- "react-virtualized-auto-sizer": "^1.0.6",
44
- "react-window": "^1.8.7"
42
+ "react-use": "^17.5.1",
43
+ "react-virtualized-auto-sizer": "^1.0.24",
44
+ "react-window": "^1.8.10",
45
+ "styled-components": "^6.1.13",
46
+ "stylis": "^4.3.4"
45
47
  },
46
48
  "devDependencies": {
47
49
  "@babel/core": "^7.12.10",
@@ -49,7 +51,7 @@
49
51
  "@babel/preset-react": "^7.22.15",
50
52
  "@babel/preset-typescript": "^7.23.2",
51
53
  "@blueprintjs/core": "^4.19.5",
52
- "@changesets/cli": "^2.26.2",
54
+ "@changesets/cli": "^2.27.7",
53
55
  "@storybook/addon-actions": "^7.5.2",
54
56
  "@storybook/addon-essentials": "^7.5.2",
55
57
  "@storybook/addon-links": "^7.5.2",
@@ -61,30 +63,29 @@
61
63
  "@types/react-virtualized-auto-sizer": "^1.0.1",
62
64
  "@types/react-window": "^1.8.5",
63
65
  "@types/sharp": "^0.27.1",
64
- "@types/styled-components": "^5.1.7",
66
+ "@types/styled-components": "^5.1.34",
65
67
  "@typescript-eslint/eslint-plugin": "^6.9.0",
66
68
  "@typescript-eslint/parser": "^6.9.0",
67
69
  "babel-loader": "^8.2.2",
68
70
  "eslint": "^8.52.0",
69
- "eslint-config-prettier": "^9.0.0",
70
- "eslint-plugin-prettier": "^5.0.1",
71
- "eslint-plugin-react": "^7.29.4",
71
+ "eslint-config-prettier": "^9.1.0",
72
+ "eslint-plugin-prettier": "^5.2.1",
73
+ "eslint-plugin-react": "^7.35.0",
72
74
  "eslint-plugin-react-hooks": "^4.5.0",
73
75
  "eslint-plugin-storybook": "^0.6.15",
74
- "https-proxy-agent": "^5.0.0",
76
+ "https-proxy-agent": "^7.0.5",
75
77
  "i18next": "^19.8.5",
76
78
  "jest": "^30.0.0-alpha.1",
77
79
  "pangu": "^4.0.7",
78
80
  "poi-asset-themes": "^4.5.0",
79
- "prettier": "^3.0.3",
81
+ "prettier": "^3.3.3",
80
82
  "react": "^18.2.0",
81
83
  "react-dom": "^18.2.0",
82
84
  "react-i18next": "^11.8.5",
83
- "sharp": "^0.28.3",
85
+ "sharp": "^0.33.5",
84
86
  "storybook": "^7.5.2",
85
- "styled-components": "^5.3.3",
86
87
  "ts-jest": "^29.1.1",
87
- "ts-node": "^10.7.0",
88
+ "ts-node": "^10.9.2",
88
89
  "typescript": "^4.7.4"
89
90
  },
90
91
  "poiPlugin": {
@@ -94,5 +95,6 @@
94
95
  "i18nDir": "./i18n",
95
96
  "priority": 2,
96
97
  "apiVer": {}
97
- }
98
+ },
99
+ "packageManager": "npm@10.7.0"
98
100
  }
package/src/Settings.tsx CHANGED
@@ -11,7 +11,7 @@ import type { ChangeEvent } from 'react'
11
11
  import React, { StrictMode, useCallback, useState } from 'react'
12
12
  import styled from 'styled-components'
13
13
  import { version as DATA_VERSION } from '../build/kcanotifyGamedata'
14
- import { homepage, version as PACKAGE_VERSION } from '../package.json'
14
+ import PKG from '../package.json'
15
15
  import { IN_POI } from './poi/env'
16
16
  import { usePluginTranslation, useStateExporter } from './poi/hooks'
17
17
  import { tips } from './poi/utils'
@@ -102,13 +102,13 @@ const SettingsMain = () => {
102
102
  onChange={handleEnabledChange}
103
103
  />
104
104
 
105
- <Text>{t('Version', { version: PACKAGE_VERSION })}</Text>
105
+ <Text>{t('Version', { version: PKG.version })}</Text>
106
106
  <Text>{t('Data Version', { version: DATA_VERSION })}</Text>
107
107
  <AnchorButton
108
108
  icon={IconNames.CODE}
109
109
  rightIcon={IconNames.SHARE}
110
110
  text={t('View source code on GitHub')}
111
- href={homepage}
111
+ href={PKG.homepage}
112
112
  target="_blank"
113
113
  />
114
114
 
@@ -1,6 +1,5 @@
1
1
  import { Card, Elevation, Text, Tooltip } from '@blueprintjs/core'
2
- import React, { forwardRef } from 'react'
3
- import type { StyledComponentProps } from 'styled-components'
2
+ import React, { ComponentPropsWithoutRef, forwardRef } from 'react'
4
3
  import { guessQuestCategory, QUEST_STATUS } from '../../questHelper'
5
4
  import type { QuestCardProps } from './index'
6
5
  import { CardBody, CardTail, CatIndicator, FlexCard } from './styles'
@@ -11,8 +10,7 @@ import { questStatusMap } from './utils'
11
10
  */
12
11
  export const MinimalQuestCard = forwardRef<
13
12
  Card,
14
- // eslint-disable-next-line @typescript-eslint/ban-types
15
- QuestCardProps & StyledComponentProps<typeof Card, any, {}, never>
13
+ QuestCardProps & ComponentPropsWithoutRef<typeof FlexCard>
16
14
  >(({ code, name, desc, tip, status = QUEST_STATUS.DEFAULT, ...props }, ref) => {
17
15
  const indicatorColor = guessQuestCategory(code).color
18
16
  const TailIcon = questStatusMap[status]
@@ -10,10 +10,9 @@ import {
10
10
  Popover,
11
11
  } from '@blueprintjs/core'
12
12
  import { IconNames } from '@blueprintjs/icons'
13
- import React, { forwardRef } from 'react'
13
+ import React, { ComponentPropsWithoutRef, forwardRef } from 'react'
14
14
  // https://github.com/bvaughn/react-highlight-words
15
15
  import Highlighter from 'react-highlight-words'
16
- import type { StyledComponentProps } from 'styled-components'
17
16
  import { usePluginTranslation } from '../../poi/hooks'
18
17
  import {
19
18
  QUEST_STATUS,
@@ -80,7 +79,7 @@ const CardAction = ({ gameId }: { gameId: number }) => {
80
79
 
81
80
  export const QuestCard = forwardRef<
82
81
  Card,
83
- QuestCardProps & StyledComponentProps<typeof Card, any, object, never>
82
+ QuestCardProps & ComponentPropsWithoutRef<typeof FlexCard>
84
83
  >(({ gameId, code, name, desc, tip, tip2, ...props }, ref) => {
85
84
  const status = useQuestStatus(gameId)
86
85
  const headIcon = questIconMap[guessQuestCategory(code).type]
@@ -171,6 +170,13 @@ export const MoreOptions = forwardRef<
171
170
  href={`https://kancolle.fandom.com/wiki/Quests#:~:text=${code}`}
172
171
  target="_blank"
173
172
  />
173
+ <MenuItem
174
+ icon={IconNames.Control}
175
+ text={t('Search in Richelieu Manager')}
176
+ tagName="a"
177
+ href={`https://richelieu-manager.net/quest/${code}`}
178
+ target="_blank"
179
+ />
174
180
  <MenuDivider />
175
181
  <MenuItem
176
182
  icon={IconNames.Heart}
@@ -93,7 +93,7 @@ export const QuestList = ({ quests }: { quests: UnionQuest[] }) => {
93
93
  return (
94
94
  <QuestListWrapper>
95
95
  <AutoSizer>
96
- {({ height, width }) => (
96
+ {({ height, width }: { height: number; width: number }) => (
97
97
  <ListWrapper
98
98
  ref={listRef}
99
99
  height={height}
package/src/tags.tsx CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Tag } from '@blueprintjs/core'
2
- import { IconNames } from '@blueprintjs/icons'
3
2
  import React from 'react'
4
3
  import styled from 'styled-components'
5
4
  import { useGameTab, usePluginTranslation } from './poi/hooks'
@@ -111,7 +110,6 @@ export const ProgressTags = () => {
111
110
  {t('Locked', { number: lockedQuestNum })}
112
111
  </Tag>
113
112
  <Tag
114
- icon={IconNames.EXCHANGE}
115
113
  onClick={() => {
116
114
  toggleTag(PROGRESS_TAG.Unlocked)
117
115
  }}