mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
fix types issues, after upgrading by regenerating lockfiles
This commit is contained in:
parent
6235cab57f
commit
87ca92718a
@ -24,7 +24,7 @@ function areAllRequiredElementsHighlighted(
|
||||
highlighted: string[]
|
||||
): CheckBoxStates {
|
||||
const highlightedCount = elementsToHighlight.filter((item) =>
|
||||
highlighted.includes(item.target[0])
|
||||
highlighted.includes(item.target[0] as any)
|
||||
).length;
|
||||
|
||||
// eslint-disable-next-line no-nested-ternary
|
||||
@ -52,7 +52,7 @@ const HighlightToggle: React.FC<ToggleProps> = ({ toggleId, elementsToHighlight
|
||||
|
||||
const handleToggle = React.useCallback((): void => {
|
||||
toggleHighlight(
|
||||
elementsToHighlight.map((e) => e.target[0]),
|
||||
elementsToHighlight.map((e) => e.target[0] as any),
|
||||
checkBoxState !== CheckBoxStates.CHECKED
|
||||
);
|
||||
}, [elementsToHighlight, checkBoxState, toggleHighlight]);
|
||||
|
@ -1,3 +1,4 @@
|
||||
import type { OutputFile } from 'esbuild';
|
||||
import { platform } from 'os';
|
||||
import { sanitizePath } from './files';
|
||||
|
||||
@ -9,12 +10,13 @@ test('sanitizePath', () => {
|
||||
? 'C:\\Users\\username\\Projects\\projectname\\storybook'
|
||||
: '/Users/username/Projects/projectname/storybook';
|
||||
const text = 'demo text';
|
||||
const file = {
|
||||
const file: OutputFile = {
|
||||
path: isWindows
|
||||
? 'C:\\Users\\username\\Projects\\projectname\\storybook\\node_modules\\@storybook\\addon-x+y\\dist\\manager.js'
|
||||
: '/Users/username/Projects/projectname/storybook/node_modules/@storybook/addon-x+y/dist/manager.js',
|
||||
contents: Uint8Array.from(Array.from(text).map((letter) => letter.charCodeAt(0))),
|
||||
text,
|
||||
hash: '',
|
||||
};
|
||||
const { location, url } = sanitizePath(file, addonsDir);
|
||||
|
||||
|
@ -74,6 +74,7 @@ const AppRouterProvider: React.FC<AppRouterProviderProps> = ({ children, action,
|
||||
apply: false,
|
||||
hashFragment: null,
|
||||
segmentPaths: [tree],
|
||||
onlyHashChange: false,
|
||||
},
|
||||
nextUrl: pathname,
|
||||
}}
|
||||
|
@ -80,6 +80,7 @@
|
||||
],
|
||||
"resolutions": {
|
||||
"@playwright/test": "1.36.0",
|
||||
"@testing-library/jest-dom": "^5.11.9",
|
||||
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
||||
"@typescript-eslint/experimental-utils": "^5.45.0",
|
||||
"@typescript-eslint/parser": "^5.45.0",
|
||||
|
@ -24,7 +24,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@adobe/css-tools@npm:^4.0.1, @adobe/css-tools@npm:^4.3.0":
|
||||
"@adobe/css-tools@npm:^4.0.1":
|
||||
version: 4.3.1
|
||||
resolution: "@adobe/css-tools@npm:4.3.1"
|
||||
checksum: 05672719b544cc0c21ae3ed0eb6349bf458e9d09457578eeeb07cf0f696469ac6417e9c9be1b129e5d6a18098a061c1db55b2275591760ef30a79822436fcbfa
|
||||
@ -8818,36 +8818,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@testing-library/jest-dom@npm:^6.1.2":
|
||||
version: 6.1.3
|
||||
resolution: "@testing-library/jest-dom@npm:6.1.3"
|
||||
dependencies:
|
||||
"@adobe/css-tools": ^4.3.0
|
||||
"@babel/runtime": ^7.9.2
|
||||
aria-query: ^5.0.0
|
||||
chalk: ^3.0.0
|
||||
css.escape: ^1.5.1
|
||||
dom-accessibility-api: ^0.5.6
|
||||
lodash: ^4.17.15
|
||||
redent: ^3.0.0
|
||||
peerDependencies:
|
||||
"@jest/globals": ">= 28"
|
||||
"@types/jest": ">= 28"
|
||||
jest: ">= 28"
|
||||
vitest: ">= 0.32"
|
||||
peerDependenciesMeta:
|
||||
"@jest/globals":
|
||||
optional: true
|
||||
"@types/jest":
|
||||
optional: true
|
||||
jest:
|
||||
optional: true
|
||||
vitest:
|
||||
optional: true
|
||||
checksum: 544e01939d3c14a3d44ae2e2bb9fe2a0cb5a9e4992ca2728f41188fb9fb2d56e25f1a2e1c12000be2a94d8da36cb220b24020e1b5c5c4c4bede9058a0d80583d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@testing-library/react@npm:^11.2.2":
|
||||
version: 11.2.7
|
||||
resolution: "@testing-library/react@npm:11.2.7"
|
||||
|
@ -52,6 +52,7 @@
|
||||
"esbuild": "^0.18.0",
|
||||
"eslint": "^8.28.0",
|
||||
"serialize-javascript": "^3.1.0",
|
||||
"@testing-library/jest-dom": "^5.11.9",
|
||||
"type-fest": "~2.19"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -31,7 +31,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@adobe/css-tools@npm:^4.0.1, @adobe/css-tools@npm:^4.3.0":
|
||||
"@adobe/css-tools@npm:^4.0.1":
|
||||
version: 4.3.1
|
||||
resolution: "@adobe/css-tools@npm:4.3.1"
|
||||
checksum: 05672719b544cc0c21ae3ed0eb6349bf458e9d09457578eeeb07cf0f696469ac6417e9c9be1b129e5d6a18098a061c1db55b2275591760ef30a79822436fcbfa
|
||||
@ -3222,36 +3222,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@testing-library/jest-dom@npm:^6.1.2":
|
||||
version: 6.1.3
|
||||
resolution: "@testing-library/jest-dom@npm:6.1.3"
|
||||
dependencies:
|
||||
"@adobe/css-tools": ^4.3.0
|
||||
"@babel/runtime": ^7.9.2
|
||||
aria-query: ^5.0.0
|
||||
chalk: ^3.0.0
|
||||
css.escape: ^1.5.1
|
||||
dom-accessibility-api: ^0.5.6
|
||||
lodash: ^4.17.15
|
||||
redent: ^3.0.0
|
||||
peerDependencies:
|
||||
"@jest/globals": ">= 28"
|
||||
"@types/jest": ">= 28"
|
||||
jest: ">= 28"
|
||||
vitest: ">= 0.32"
|
||||
peerDependenciesMeta:
|
||||
"@jest/globals":
|
||||
optional: true
|
||||
"@types/jest":
|
||||
optional: true
|
||||
jest:
|
||||
optional: true
|
||||
vitest:
|
||||
optional: true
|
||||
checksum: 544e01939d3c14a3d44ae2e2bb9fe2a0cb5a9e4992ca2728f41188fb9fb2d56e25f1a2e1c12000be2a94d8da36cb220b24020e1b5c5c4c4bede9058a0d80583d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@testing-library/react@npm:^14.0.0":
|
||||
version: 14.0.0
|
||||
resolution: "@testing-library/react@npm:14.0.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user