Move to a fork of react-sizeme with updated React peer dependency

This commit is contained in:
Filipp Riabchun 2021-01-26 19:20:46 +01:00
parent b175ae7fd3
commit a3041b22f7
10 changed files with 70 additions and 71 deletions

View File

@ -40,6 +40,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@hypnosphi/react-sizeme": "^2.6.13",
"@storybook/addons": "6.2.0-alpha.18",
"@storybook/api": "6.2.0-alpha.18",
"@storybook/channels": "6.2.0-alpha.18",
@ -52,7 +53,6 @@
"core-js": "^3.8.2",
"global": "^4.4.0",
"lodash": "^4.17.20",
"react-sizeme": "^2.6.12",
"regenerator-runtime": "^0.13.7",
"ts-dedent": "^2.0.0",
"util-deprecate": "^1.0.2"

View File

@ -2,7 +2,7 @@ import React, { FunctionComponent } from 'react';
import { styled } from '@storybook/theming';
import { Badge } from '@storybook/components';
import { CheckResult } from 'axe-core';
import { SizeMe } from 'react-sizeme';
import { SizeMe } from '@hypnosphi/react-sizeme';
const List = styled.div({
display: 'flex',

View File

@ -2,7 +2,7 @@ import * as React from 'react';
import { styled } from '@storybook/theming';
import { NodeResult, Result } from 'axe-core';
import { SizeMe } from 'react-sizeme';
import { SizeMe } from '@hypnosphi/react-sizeme';
import HighlightToggle from './Report/HighlightToggle';
import { RuleType } from './A11YPanel';
import { useA11yContext } from './A11yContext';

View File

@ -42,6 +42,7 @@
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@hypnosphi/react-sizeme": "^2.6.13",
"@storybook/addons": "6.2.0-alpha.18",
"@storybook/api": "6.2.0-alpha.18",
"@storybook/components": "6.2.0-alpha.18",
@ -49,7 +50,6 @@
"@storybook/theming": "6.2.0-alpha.18",
"core-js": "^3.8.2",
"global": "^4.4.0",
"react-sizeme": "^2.6.12",
"regenerator-runtime": "^0.13.7",
"upath": "^1.2.0"
},

View File

@ -2,7 +2,7 @@
import React, { Fragment } from 'react';
import { styled, themes, convert } from '@storybook/theming';
import { ScrollArea, TabsState, Link, Placeholder } from '@storybook/components';
import { SizeMe } from 'react-sizeme';
import { SizeMe } from '@hypnosphi/react-sizeme';
import Result from './Result';
import provideJestResult, { Test } from '../hoc/provideJestResult';

View File

@ -1,2 +1 @@
declare module 'global';
declare module 'react-sizeme';

View File

@ -1,55 +1,55 @@
{
"@storybook/addon-a11y": "6.2.0-alpha.17",
"@storybook/addon-actions": "6.2.0-alpha.17",
"@storybook/addon-backgrounds": "6.2.0-alpha.17",
"@storybook/addon-controls": "6.2.0-alpha.17",
"@storybook/addon-cssresources": "6.2.0-alpha.17",
"@storybook/addon-design-assets": "6.2.0-alpha.17",
"@storybook/addon-docs": "6.2.0-alpha.17",
"@storybook/addon-essentials": "6.2.0-alpha.17",
"@storybook/addon-events": "6.2.0-alpha.17",
"@storybook/addon-google-analytics": "6.2.0-alpha.17",
"@storybook/addon-graphql": "6.2.0-alpha.17",
"@storybook/addon-jest": "6.2.0-alpha.17",
"@storybook/addon-knobs": "6.2.0-alpha.17",
"@storybook/addon-links": "6.2.0-alpha.17",
"@storybook/addon-queryparams": "6.2.0-alpha.17",
"@storybook/addon-storyshots": "6.2.0-alpha.17",
"@storybook/addon-storyshots-puppeteer": "6.2.0-alpha.17",
"@storybook/addon-storysource": "6.2.0-alpha.17",
"@storybook/addon-toolbars": "6.2.0-alpha.17",
"@storybook/addon-viewport": "6.2.0-alpha.17",
"@storybook/addons": "6.2.0-alpha.17",
"@storybook/angular": "6.2.0-alpha.17",
"@storybook/api": "6.2.0-alpha.17",
"@storybook/aurelia": "6.2.0-alpha.17",
"@storybook/channel-postmessage": "6.2.0-alpha.17",
"@storybook/channel-websocket": "6.2.0-alpha.17",
"@storybook/channels": "6.2.0-alpha.17",
"@storybook/cli": "6.2.0-alpha.17",
"@storybook/client-api": "6.2.0-alpha.17",
"@storybook/client-logger": "6.2.0-alpha.17",
"@storybook/codemod": "6.2.0-alpha.17",
"@storybook/components": "6.2.0-alpha.17",
"@storybook/core": "6.2.0-alpha.17",
"@storybook/core-events": "6.2.0-alpha.17",
"@storybook/ember": "6.2.0-alpha.17",
"@storybook/html": "6.2.0-alpha.17",
"@storybook/marionette": "6.2.0-alpha.17",
"@storybook/marko": "6.2.0-alpha.17",
"@storybook/mithril": "6.2.0-alpha.17",
"@storybook/node-logger": "6.2.0-alpha.17",
"@storybook/postinstall": "6.2.0-alpha.17",
"@storybook/preact": "6.2.0-alpha.17",
"@storybook/rax": "6.2.0-alpha.17",
"@storybook/react": "6.2.0-alpha.17",
"@storybook/riot": "6.2.0-alpha.17",
"@storybook/router": "6.2.0-alpha.17",
"@storybook/server": "6.2.0-alpha.17",
"@storybook/source-loader": "6.2.0-alpha.17",
"@storybook/svelte": "6.2.0-alpha.17",
"@storybook/theming": "6.2.0-alpha.17",
"@storybook/ui": "6.2.0-alpha.17",
"@storybook/vue": "6.2.0-alpha.17",
"@storybook/web-components": "6.2.0-alpha.17"
"@storybook/addon-a11y": "6.2.0-alpha.18",
"@storybook/addon-actions": "6.2.0-alpha.18",
"@storybook/addon-backgrounds": "6.2.0-alpha.18",
"@storybook/addon-controls": "6.2.0-alpha.18",
"@storybook/addon-cssresources": "6.2.0-alpha.18",
"@storybook/addon-design-assets": "6.2.0-alpha.18",
"@storybook/addon-docs": "6.2.0-alpha.18",
"@storybook/addon-essentials": "6.2.0-alpha.18",
"@storybook/addon-events": "6.2.0-alpha.18",
"@storybook/addon-google-analytics": "6.2.0-alpha.18",
"@storybook/addon-graphql": "6.2.0-alpha.18",
"@storybook/addon-jest": "6.2.0-alpha.18",
"@storybook/addon-knobs": "6.2.0-alpha.18",
"@storybook/addon-links": "6.2.0-alpha.18",
"@storybook/addon-queryparams": "6.2.0-alpha.18",
"@storybook/addon-storyshots": "6.2.0-alpha.18",
"@storybook/addon-storyshots-puppeteer": "6.2.0-alpha.18",
"@storybook/addon-storysource": "6.2.0-alpha.18",
"@storybook/addon-toolbars": "6.2.0-alpha.18",
"@storybook/addon-viewport": "6.2.0-alpha.18",
"@storybook/addons": "6.2.0-alpha.18",
"@storybook/angular": "6.2.0-alpha.18",
"@storybook/api": "6.2.0-alpha.18",
"@storybook/aurelia": "6.2.0-alpha.18",
"@storybook/channel-postmessage": "6.2.0-alpha.18",
"@storybook/channel-websocket": "6.2.0-alpha.18",
"@storybook/channels": "6.2.0-alpha.18",
"@storybook/cli": "6.2.0-alpha.18",
"@storybook/client-api": "6.2.0-alpha.18",
"@storybook/client-logger": "6.2.0-alpha.18",
"@storybook/codemod": "6.2.0-alpha.18",
"@storybook/components": "6.2.0-alpha.18",
"@storybook/core": "6.2.0-alpha.18",
"@storybook/core-events": "6.2.0-alpha.18",
"@storybook/ember": "6.2.0-alpha.18",
"@storybook/html": "6.2.0-alpha.18",
"@storybook/marionette": "6.2.0-alpha.18",
"@storybook/marko": "6.2.0-alpha.18",
"@storybook/mithril": "6.2.0-alpha.18",
"@storybook/node-logger": "6.2.0-alpha.18",
"@storybook/postinstall": "6.2.0-alpha.18",
"@storybook/preact": "6.2.0-alpha.18",
"@storybook/rax": "6.2.0-alpha.18",
"@storybook/react": "6.2.0-alpha.18",
"@storybook/riot": "6.2.0-alpha.18",
"@storybook/router": "6.2.0-alpha.18",
"@storybook/server": "6.2.0-alpha.18",
"@storybook/source-loader": "6.2.0-alpha.18",
"@storybook/svelte": "6.2.0-alpha.18",
"@storybook/theming": "6.2.0-alpha.18",
"@storybook/ui": "6.2.0-alpha.18",
"@storybook/vue": "6.2.0-alpha.18",
"@storybook/web-components": "6.2.0-alpha.18"
}

View File

@ -37,6 +37,7 @@
},
"dependencies": {
"@emotion/core": "^10.1.1",
"@hypnosphi/react-sizeme": "^2.6.13",
"@storybook/addons": "6.2.0-alpha.18",
"@storybook/api": "6.2.0-alpha.18",
"@storybook/channels": "6.2.0-alpha.18",
@ -61,7 +62,6 @@
"qs": "^6.9.5",
"react-draggable": "^4.4.3",
"react-helmet-async": "^1.0.7",
"react-sizeme": "^2.6.12",
"regenerator-runtime": "^0.13.7",
"resolve-from": "^5.0.0",
"store2": "^2.12.0"

View File

@ -1,5 +1,5 @@
import React, { FunctionComponent, useMemo } from 'react';
import sizeMe from 'react-sizeme';
import sizeMe from '@hypnosphi/react-sizeme';
import { State } from '@storybook/api';
import { Symbols } from '@storybook/components';

View File

@ -2728,6 +2728,16 @@
temp "^0.8.1"
write-file-atomic "^2.3.0"
"@hypnosphi/react-sizeme@^2.6.13":
version "2.6.13"
resolved "https://registry.yarnpkg.com/@hypnosphi/react-sizeme/-/react-sizeme-2.6.13.tgz#81b7bf40b27adcb48b804fb8c725f63962e9a7d9"
integrity sha512-6PJJeYPiGacebN7Tm7k2EJTgMYeTQ2xnY5e0Otwx5Qq5AjnjErHuA2s9Yb9wS9ns7J2Eu+IwkNBvdJoVxweqkw==
dependencies:
element-resize-detector "^1.2.1"
invariant "^2.2.4"
shallowequal "^1.1.0"
throttle-debounce "^2.1.0"
"@iarna/toml@^2.2.0":
version "2.2.5"
resolved "https://registry.yarnpkg.com/@iarna/toml/-/toml-2.2.5.tgz#b32366c89b43c6f8cefbdefac778b9c828e3ba8c"
@ -27250,16 +27260,6 @@ react-shallow-renderer@^16.13.1:
object-assign "^4.1.1"
react-is "^16.12.0 || ^17.0.0"
react-sizeme@^2.6.12:
version "2.6.12"
resolved "https://registry.yarnpkg.com/react-sizeme/-/react-sizeme-2.6.12.tgz#ed207be5476f4a85bf364e92042520499455453e"
integrity sha512-tL4sCgfmvapYRZ1FO2VmBmjPVzzqgHA7kI8lSJ6JS6L78jXFNRdOZFpXyK6P1NBZvKPPCZxReNgzZNUajAerZw==
dependencies:
element-resize-detector "^1.2.1"
invariant "^2.2.4"
shallowequal "^1.1.0"
throttle-debounce "^2.1.0"
react-syntax-highlighter@^13.5.3:
version "13.5.3"
resolved "https://registry.yarnpkg.com/react-syntax-highlighter/-/react-syntax-highlighter-13.5.3.tgz#9712850f883a3e19eb858cf93fad7bb357eea9c6"