poi-plugin-quest-info-2 0.12.22 → 0.13.1

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.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f520c6b: Update quest data
8
+
9
+ ## 0.13.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 0ca1322: Support jump to Richelieu Manager
14
+
15
+ ### Patch Changes
16
+
17
+ - e4b0971: Update quest data
18
+
3
19
  ## 0.12.22
4
20
 
5
21
  ### Patch Changes
@@ -1 +1 @@
1
- aee897ac4d63eaddbc37bc813220ee9090471b02
1
+ 3311e128592585b293ae3b3732f474997c7448d7
@@ -4,4 +4,4 @@ export const KcwikiQuestData = {
4
4
  'zh-CN': zh_CN,
5
5
  }
6
6
 
7
- export const version = 'aee897ac4d63eaddbc37bc813220ee9090471b02'
7
+ export const version = '3311e128592585b293ae3b3732f474997c7448d7'
@@ -1,12 +1,3 @@
1
1
  [
2
- "326",
3
- "372",
4
- "373",
5
- "1014",
6
- "1015",
7
- "1138",
8
- "1139",
9
- "1140",
10
- "1141",
11
- "1142"
2
+ "313"
12
3
  ]
@@ -2158,7 +2158,7 @@
2158
2158
  "326": {
2159
2159
  "code": "Cs5",
2160
2160
  "desc": "夏季大演习:夏季期间一日之中 “演习” 取得 8 回以上 “胜利”,努力提高舰队的练度!不要输给酷暑!舰队、拔锚!",
2161
- "memo2": "夏季限定 单日内演习取得 8 次胜利",
2161
+ "memo2": "2023~2024 夏季大演习,奖励与 Cs4 不同",
2162
2162
  "name": "夏季大演习",
2163
2163
  "pre": [
2164
2164
  "C1",
@@ -2540,8 +2540,8 @@
2540
2540
  },
2541
2541
  "373": {
2542
2542
  "code": "Cy14",
2543
- "desc": "【法国舰队演习】编成以法国出生的舰艇为旗舰、包含期间在内法国舰艇 3 艘以上的演习舰队。以此舰队在本日内达成演习【A 判定】胜利 4 次以上!Merici♪",
2544
- "memo2": "年常任务 (7 月) 演习舰队需要【包括旗舰在内共 3 艘法国船】 演习 4 回 A 胜",
2543
+ "desc": "【法国舰队演习】编成以法国出生的舰艇为旗舰、包含期间在内法国舰艇 3 艘以上的演习舰队。以此舰队在本日内达成演习【A 判定】胜利 4 次以上!Merci♪",
2544
+ "memo2": "年常任务 (7 月) 演习舰队需要 【包括旗舰在内共 3 艘「海外舰 | 法国船」】 演习 4 回 A 胜",
2545
2545
  "name": "【法国舰队】演习!",
2546
2546
  "pre": [],
2547
2547
  "rewards": "奖励:以下奖励三选一: 新型兵装资材 新型火炮兵装资材 开发资材 ×8 以下奖励三选一: 「13.8cm 连装炮」×3 「15.2cm 三连装主炮」×2 「38cm 四连装炮」"
@@ -3436,7 +3436,7 @@
3436
3436
  "pre": [
3437
3437
  "B56"
3438
3438
  ],
3439
- "rewards": "奖励:开发资材 ×2 「九六式陆攻」\n开发资材 ×2"
3439
+ "rewards": "奖励:开发资材 ×2 「九六式陆攻」"
3440
3440
  },
3441
3441
  "642": {
3442
3442
  "code": "F38",
@@ -5837,7 +5837,8 @@
5837
5837
  "memo2": "1-3 1-4 2-2 2-3 5-1 各 S 胜 1 次 需包含 (秋月型 + 摩耶改 / 改二 + 天龙改二 + 龙田改二 + 五十铃改二) 其中 3 艘 + 3 自由舰",
5838
5838
  "name": "防空水上舰,出击!",
5839
5839
  "pre": [
5840
- "B201"
5840
+ "B201",
5841
+ "B30"
5841
5842
  ],
5842
5843
  "rewards": "奖励:以下奖励三选一: 开发资材 ×8 「12.7cm 连装高角炮」×4 改修资材 ×2 以下奖励三选一: 「10cm 连装高角炮」×4 勋章 ×1 补强增设 ×1"
5843
5844
  },
@@ -6166,9 +6167,12 @@
6166
6167
  },
6167
6168
  "1142": {
6168
6169
  "code": "F127",
6169
- "desc": "在旗舰 “「翔鹤 | 翔鹤改二 / 甲」” 的第一装备栏装备 “「天山一二型 (村田队)」”。准备「天山一二型甲改 (空六号电探改装备机)」×1、「新型航空兵装资材」×2、「开发资材」×48、「夜间熟练搭乘员」×1!",
6170
+ "desc": "在旗舰 “「翔鹤 | 翔鹤改二 / 甲」” 的第一装备栏装备 “「天山一二型 (村田队)」”。废弃天山 ×4。准备「天山一二型甲改 (空六号电探改装备机)」×1、「新型航空兵装资材」×2、「开发资材」×48、「夜间熟练搭乘员」×1!",
6170
6171
  "name": "配备最精锐【天山】舰攻队",
6171
- "pre": [],
6172
+ "pre": [
6173
+ "F20",
6174
+ "F105"
6175
+ ],
6172
6176
  "rewards": "奖励:「天山一二型甲改二 (村田队 / 电探装备)」"
6173
6177
  }
6174
6178
  }
@@ -1 +1 @@
1
- 2024081001
1
+ 2024090801
@@ -12,4 +12,4 @@ export const QuestData = {
12
12
  'ko-KR': ko_KR,
13
13
  }
14
14
 
15
- export const version = '2024081001'
15
+ export const version = '2024090801'
@@ -1394,7 +1394,8 @@
1394
1394
  ],
1395
1395
  "post": [
1396
1396
  "Bm2",
1397
- "B111"
1397
+ "B111",
1398
+ "B202"
1398
1399
  ]
1399
1400
  },
1400
1401
  "256": {
@@ -2853,7 +2854,8 @@
2853
2854
  "B50"
2854
2855
  ],
2855
2856
  "post": [
2856
- "F88"
2857
+ "F88",
2858
+ "F127"
2857
2859
  ]
2858
2860
  },
2859
2861
  "623": {
@@ -4832,6 +4834,7 @@
4832
4834
  },
4833
4835
  "1015": {
4834
4836
  "pre": [
4837
+ "B30",
4835
4838
  "B201"
4836
4839
  ],
4837
4840
  "post": []
@@ -4908,7 +4911,9 @@
4908
4911
  "pre": [
4909
4912
  "F40"
4910
4913
  ],
4911
- "post": []
4914
+ "post": [
4915
+ "F127"
4916
+ ]
4912
4917
  },
4913
4918
  "1112": {
4914
4919
  "pre": [
@@ -5074,5 +5079,12 @@
5074
5079
  "F111"
5075
5080
  ],
5076
5081
  "post": []
5082
+ },
5083
+ "1142": {
5084
+ "pre": [
5085
+ "F20",
5086
+ "F105"
5087
+ ],
5088
+ "post": []
5077
5089
  }
5078
5090
  }
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.22",
3
+ "version": "0.13.1",
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,31 +63,30 @@
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",
75
76
  "i18next": "^19.8.5",
76
77
  "jest": "^30.0.0-alpha.1",
77
78
  "pangu": "^4.0.7",
78
79
  "poi-asset-themes": "^4.5.0",
79
- "prettier": "^3.0.3",
80
+ "prettier": "^3.3.3",
80
81
  "react": "^18.2.0",
81
82
  "react-dom": "^18.2.0",
82
83
  "react-i18next": "^11.8.5",
83
- "sharp": "^0.28.3",
84
+ "sharp": "^0.33.5",
84
85
  "storybook": "^7.5.2",
85
- "styled-components": "^5.3.3",
86
86
  "ts-jest": "^29.1.1",
87
- "ts-node": "^10.7.0",
88
- "typescript": "^4.7.4"
87
+ "ts-node": "^10.9.2",
88
+ "typescript": "^4.7.4",
89
+ "undici": "^6.19.8"
89
90
  },
90
91
  "poiPlugin": {
91
92
  "title": "Quest Information",
@@ -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
  }}