Skip to content

Commit 77ccfd1

Browse files
guanbinruiJack-WorksLanttcathanszhoounuanyang233
authored
[Release] New release 2.6.0 (minor) (#5932)
* chore: bump version to 2.6.0 * fix: missing builds (#5935) * fix: missing builds * fix: missing resolve * fix: next id bugs (#5936) * fix: connect should give username * feat: should show verify dialog when click `to be verify` on popup * refactor: review feedback * fix: popup can not disconnect persona * fix: zora api (#5942) * fix: bugfix for next id (#5934) * fix: bugfix for next id * fix: bugfix * fix: refactor detach profile with next dot id * fix: adjust maskicon position (#5943) * fix(twitter): search injected dom selector (#5944) * fix: sns share in ITO and PET (#5941) * fix(kv): fetch with no-cors mode response opaque data (#5940) * fix: reply review (#5946) * fix: plugin wrapper (#5947) * fix(zora): check ipfs before resolving * fix(zora): check ipfs before resolving (#5949) * fix(zora): check ipfs before resolving * fix: check ipfs in resolver Co-authored-by: zhouhanseng <z308114274@gmail.com> * fix: line break (#5950) * fix: line break * Update packages/typed-message/dom/Renderer/utils/renderText.tsx Co-authored-by: UncleBill <billbill290@gmail.com> Co-authored-by: UncleBill <billbill290@gmail.com> * fix(mobile): no media viewer (#5925) * fix: revert constants (#5957) * fix: persona db overwrite bug (#5964) * fix: hyper proxy r2d2 route not work on cloudflare (#5955) * fix: workaround, change hyper proxy url * fix: nftscan api * chore: remove debug code * fix: nftscan api Co-authored-by: zhouhanseng <z308114274@gmail.com> * fix: bsc to bnb (#5965) * fix: persona db override (#5966) * fix: twitter image (#5967) * fix: twitter image payload & avatar * fix: lint error * fix: ito entrance (#5968) * chore: prettier Co-authored-by: Jack Works <jackworks@protonmail.com> Co-authored-by: Lantt <laanfor@gmail.com> Co-authored-by: Hancheng Zhou <z308114274@gmail.com> Co-authored-by: nuanyang233 <nuanyang233@gmail.com> Co-authored-by: lelenei <72531217+lelenei@users.noreply.github.com> Co-authored-by: UncleBill <billbill290@gmail.com>
1 parent e6fdf27 commit 77ccfd1

File tree

8 files changed

+14
-10
lines changed

8 files changed

+14
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"yarn": ">=999.0.0",
99
"npm": ">=999.0.0"
1010
},
11-
"version": "2.5.0",
11+
"version": "2.6.0",
1212
"private": true,
1313
"license": "AGPL-3.0-or-later",
1414
"scripts": {

packages/injected-script/main/EventListenerPatch/capture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function dispatchEventRaw<T extends Event>(
8181
overwrites: Partial<T> = {},
8282
) {
8383
let currentTarget: null | Node | Document = target
84-
const event = getMockedEvent(eventBase, () => currentTarget!, overwrites)
84+
const event = getMockedEvent(eventBase, () => (isTwitter() ? target! : currentTarget!), overwrites)
8585
// Note: in firefox, "event" is "Opaque". Displayed as an empty object.
8686
const type = eventBase.type
8787
if (!CapturingEvents.has(type)) return warn("[@masknet/injected-script] Trying to send event didn't captured.")

packages/mask/src/components/CompositionDialog/Composition.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ export function Composition({ type = 'timeline', requireClipboardPermission }: P
4646

4747
useEffect(() => {
4848
return MaskMessages.events.requestComposition.on(({ reason, open, content, options }) => {
49-
if (reason !== 'reply' && (reason !== type || globalUIState.profiles.value.length <= 0)) return
49+
if (
50+
(reason !== 'reply' && reason !== type) ||
51+
(reason === 'reply' && type === 'popup') ||
52+
globalUIState.profiles.value.length <= 0
53+
)
54+
return
5055
setOpen(open)
5156
setReason(reason)
5257
if (content) UI.current?.setMessage(content)

packages/mask/src/components/shared/ApplicationBoard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export function ApplicationBoard({ secondEntries, secondEntryChainTabs }: MaskAp
234234

235235
// Todo: remove this after refactor applicationBoard
236236
const isITOSupportedChain =
237-
ITO_Definition.enableRequirement.web3![NetworkPluginID.PLUGIN_EVM]?.supportedChainIds?.includes(currentChainId)
237+
ITO_Definition.enableRequirement.web3![currentPluginId]?.supportedChainIds?.includes(currentChainId)
238238

239239
const firstLevelEntries: MaskAppEntry[] = [
240240
createEntry(

packages/mask/src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Mask Network",
3-
"version": "2.5.0",
3+
"version": "2.6.0",
44
"manifest_version": 2,
55
"permissions": ["storage", "downloads", "webNavigation", "activeTab"],
66
"optional_permissions": ["<all_urls>", "notifications", "clipboardRead"],

packages/mask/src/social-network-adaptor/twitter.com/injection/PostDialogHint.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { isReplyPageSelector, postEditorInPopupSelector, searchReplyToolbarSelec
44
import { createReactRootShadowed } from '../../../utils/shadow-root/renderInShadowRoot'
55
import { PostDialogHint } from '../../../components/InjectedComponents/PostDialogHint'
66
import { MaskMessages } from '../../../utils/messages'
7-
import { hasEditor, isCompose } from '../utils/postBox'
87
import { startWatch } from '../../../utils/watcher'
98
import { makeStyles, MaskColorVar } from '@masknet/theme'
109
import { alpha } from '@mui/material'
1110
import { twitterBase } from '../base'
1211
import { sayHelloShowed } from '../../../settings/settings'
1312
import { makeTypedMessageText } from '@masknet/typed-message'
1413
import { useI18N } from '../../../utils'
14+
import { hasEditor, isCompose } from '../utils/postBox'
1515

1616
const useStyles = makeStyles()((theme) => ({
1717
iconButton: {

packages/mask/src/social-network-adaptor/twitter.com/utils/selector.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ export const postEditorContentInPopupSelector: () => LiveSelector<E, true> = ()
110110
'[aria-labelledby="modal-header"] > div:first-child > div:first-child > div:first-child > div:nth-child(3)',
111111
)
112112
export const postEditorInPopupSelector: () => LiveSelector<E, true> = () =>
113-
querySelector<E>(
114-
'[aria-labelledby="modal-header"] > div:first-child > div:first-child > div:first-child > div:nth-child(3) > div:first-child [role="button"][aria-label]:nth-child(6)',
115-
)
113+
querySelector<E>('[aria-labelledby="modal-header"] div[data-testid="toolBar"] div[data-testid="geoButton"]')
116114
export const toolBoxInSideBarSelector: () => LiveSelector<E, true> = () =>
117115
querySelector<E>('[role="banner"] [role="navigation"] > div')
118116
export const sideBarProfileSelector: () => LiveSelector<E, true> = () =>
@@ -267,7 +265,7 @@ export const searchProfileSetAvatarSelector = () =>
267265
? searchProfessionalButtonSelector()
268266
.closest<E>(4)
269267
.querySelector('div > div:nth-child(2) >div > div:nth-child(2)')
270-
: querySelector<E>('[data-testid="ProfileBirthdate"]')
268+
: querySelector<E>('[data-testid^="ProfileBirthdate"]')
271269
.closest<E>(5)
272270
.querySelector('div > div:nth-child(2) > div:nth-child(2)')
273271
// #endregion

packages/web3-shared/evm/pipes/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export function resolveBlockLinkOnExplorer(chainId: ChainId, block: string): str
174174
return urlcat(resolveLinkOnExplorer(chainId), '/block/:block', { block })
175175
}
176176

177+
// TODO check ipfs inside before resolving
177178
export function resolveIPFSLink(ipfs: string): string {
178179
return urlcat('https://coldcdn.com/api/cdn/mipfsygtms/ipfs/:ipfs', { ipfs })
179180
}

0 commit comments

Comments
 (0)