From 1b47ea80ca21a6dfbb420f21739ad06b2fc039f5 Mon Sep 17 00:00:00 2001 From: Bill Collins Date: Wed, 11 Dec 2024 10:31:36 +0000 Subject: [PATCH 1/8] Update @radix-ui/react-dialog This fixes its usage of the global JSX namespace --- code/core/package.json | 2 +- code/yarn.lock | 224 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 224 insertions(+), 2 deletions(-) diff --git a/code/core/package.json b/code/core/package.json index ac5c8991b31f..2432d15c9499 100644 --- a/code/core/package.json +++ b/code/core/package.json @@ -304,7 +304,7 @@ "@ndelangen/get-tarball": "^3.0.7", "@polka/compression": "^1.0.0-next.28", "@popperjs/core": "^2.6.0", - "@radix-ui/react-dialog": "^1.0.5", + "@radix-ui/react-dialog": "^1.1.2", "@radix-ui/react-scroll-area": "1.2.0-rc.7", "@radix-ui/react-slot": "^1.0.2", "@storybook/docs-mdx": "4.0.0-next.1", diff --git a/code/yarn.lock b/code/yarn.lock index 32615bb80a66..b1939b096d96 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -4916,6 +4916,19 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-context@npm:1.1.1": + version: 1.1.1 + resolution: "@radix-ui/react-context@npm:1.1.1" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/fc4ace9d79d7954c715ade765e06c95d7e1b12a63a536bcbe842fb904f03f88fc5bd6e38d44bd23243d37a270b4c44380fedddaeeae2d274f0b898a20665aba2 + languageName: node + linkType: hard + "@radix-ui/react-dialog@npm:^1.0.5": version: 1.0.5 resolution: "@radix-ui/react-dialog@npm:1.0.5" @@ -4949,6 +4962,38 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-dialog@npm:^1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-dialog@npm:1.1.2" + dependencies: + "@radix-ui/primitive": "npm:1.1.0" + "@radix-ui/react-compose-refs": "npm:1.1.0" + "@radix-ui/react-context": "npm:1.1.1" + "@radix-ui/react-dismissable-layer": "npm:1.1.1" + "@radix-ui/react-focus-guards": "npm:1.1.1" + "@radix-ui/react-focus-scope": "npm:1.1.0" + "@radix-ui/react-id": "npm:1.1.0" + "@radix-ui/react-portal": "npm:1.1.2" + "@radix-ui/react-presence": "npm:1.1.1" + "@radix-ui/react-primitive": "npm:2.0.0" + "@radix-ui/react-slot": "npm:1.1.0" + "@radix-ui/react-use-controllable-state": "npm:1.1.0" + aria-hidden: "npm:^1.1.1" + react-remove-scroll: "npm:2.6.0" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/61997c23605ff604ef1673480eea0b63cbe2e102d24e64b71431afa408bfdda26f879193c09254304eb17a8d623085a2e6c96b5c944658c02bd935f8cf0f9546 + languageName: node + linkType: hard + "@radix-ui/react-direction@npm:1.1.0": version: 1.1.0 resolution: "@radix-ui/react-direction@npm:1.1.0" @@ -4986,6 +5031,29 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-dismissable-layer@npm:1.1.1": + version: 1.1.1 + resolution: "@radix-ui/react-dismissable-layer@npm:1.1.1" + dependencies: + "@radix-ui/primitive": "npm:1.1.0" + "@radix-ui/react-compose-refs": "npm:1.1.0" + "@radix-ui/react-primitive": "npm:2.0.0" + "@radix-ui/react-use-callback-ref": "npm:1.1.0" + "@radix-ui/react-use-escape-keydown": "npm:1.1.0" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/637f8d55437bd2269d5aa9fa48e869eade31082cd950b5efcc5f0d9ed016b46feb7fcfcc115ba9972dba68c4686b57873d84aca67ece76ab77463e7de995f6da + languageName: node + linkType: hard + "@radix-ui/react-focus-guards@npm:1.0.1": version: 1.0.1 resolution: "@radix-ui/react-focus-guards@npm:1.0.1" @@ -5001,6 +5069,19 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-focus-guards@npm:1.1.1": + version: 1.1.1 + resolution: "@radix-ui/react-focus-guards@npm:1.1.1" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/2e99750ca593083a530542a185d656b45b100752353a7a193a67566e3c256414a76fa9171d152f8c0167b8d6c1fdf62b2e07750d7af2974bf8ef39eb204aa537 + languageName: node + linkType: hard + "@radix-ui/react-focus-scope@npm:1.0.4": version: 1.0.4 resolution: "@radix-ui/react-focus-scope@npm:1.0.4" @@ -5023,6 +5104,27 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-focus-scope@npm:1.1.0": + version: 1.1.0 + resolution: "@radix-ui/react-focus-scope@npm:1.1.0" + dependencies: + "@radix-ui/react-compose-refs": "npm:1.1.0" + "@radix-ui/react-primitive": "npm:2.0.0" + "@radix-ui/react-use-callback-ref": "npm:1.1.0" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/2593d4bbd4a3525624675ec1d5a591a44f015f43f449b99a5a33228159b83f445e8f1c6bc6f9f2011387abaeadd3df406623c08d4e795b7ae509795652a1d069 + languageName: node + linkType: hard + "@radix-ui/react-id@npm:1.0.1": version: 1.0.1 resolution: "@radix-ui/react-id@npm:1.0.1" @@ -5039,6 +5141,21 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-id@npm:1.1.0": + version: 1.1.0 + resolution: "@radix-ui/react-id@npm:1.1.0" + dependencies: + "@radix-ui/react-use-layout-effect": "npm:1.1.0" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/acf13e29e51ee96336837fc0cfecc306328b20b0e0070f6f0f7aa7a621ded4a1ee5537cfad58456f64bae76caa7f8769231e88dc7dc106197347ee433c275a79 + languageName: node + linkType: hard + "@radix-ui/react-portal@npm:1.0.4": version: 1.0.4 resolution: "@radix-ui/react-portal@npm:1.0.4" @@ -5059,6 +5176,26 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-portal@npm:1.1.2": + version: 1.1.2 + resolution: "@radix-ui/react-portal@npm:1.1.2" + dependencies: + "@radix-ui/react-primitive": "npm:2.0.0" + "@radix-ui/react-use-layout-effect": "npm:1.1.0" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/836967330893b16b85371775ed1a59e038ce99189f4851cfa976bde2710d704c2a9e49e0a5206e7ac3fcf8a67ddd2d126b8352a88f295d6ef49d04e269736ed1 + languageName: node + linkType: hard + "@radix-ui/react-presence@npm:1.0.1": version: 1.0.1 resolution: "@radix-ui/react-presence@npm:1.0.1" @@ -5100,6 +5237,26 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-presence@npm:1.1.1": + version: 1.1.1 + resolution: "@radix-ui/react-presence@npm:1.1.1" + dependencies: + "@radix-ui/react-compose-refs": "npm:1.1.0" + "@radix-ui/react-use-layout-effect": "npm:1.1.0" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/777cda0406450ff5ca0e49235e486237723323d046a3382e35a0e78eededccfc95a76a9b5fecd7404dac793264762f4bc10111af1e08f8cc2d4d571d7971220e + languageName: node + linkType: hard + "@radix-ui/react-primitive@npm:1.0.3": version: 1.0.3 resolution: "@radix-ui/react-primitive@npm:1.0.3" @@ -5241,6 +5398,21 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-use-controllable-state@npm:1.1.0": + version: 1.1.0 + resolution: "@radix-ui/react-use-controllable-state@npm:1.1.0" + dependencies: + "@radix-ui/react-use-callback-ref": "npm:1.1.0" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/2af883b5b25822ac226e60a6bfde647c0123a76345052a90219026059b3f7225844b2c13a9a16fba859c1cda5fb3d057f2a04503f71780e607516492db4eb3a1 + languageName: node + linkType: hard + "@radix-ui/react-use-escape-keydown@npm:1.0.3": version: 1.0.3 resolution: "@radix-ui/react-use-escape-keydown@npm:1.0.3" @@ -5257,6 +5429,21 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-use-escape-keydown@npm:1.1.0": + version: 1.1.0 + resolution: "@radix-ui/react-use-escape-keydown@npm:1.1.0" + dependencies: + "@radix-ui/react-use-callback-ref": "npm:1.1.0" + peerDependencies: + "@types/react": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/910fd696e5a0994b0e06b9cb68def8a865f47951a013ec240c77db2a9e1e726105602700ef5e5f01af49f2f18fe0e73164f9a9651021f28538ef8a30d91f3fbb + languageName: node + linkType: hard + "@radix-ui/react-use-layout-effect@npm:1.0.1": version: 1.0.1 resolution: "@radix-ui/react-use-layout-effect@npm:1.0.1" @@ -6184,7 +6371,7 @@ __metadata: "@ndelangen/get-tarball": "npm:^3.0.7" "@polka/compression": "npm:^1.0.0-next.28" "@popperjs/core": "npm:^2.6.0" - "@radix-ui/react-dialog": "npm:^1.0.5" + "@radix-ui/react-dialog": "npm:^1.1.2" "@radix-ui/react-scroll-area": "npm:1.2.0-rc.7" "@radix-ui/react-slot": "npm:^1.0.2" "@storybook/csf": "npm:0.1.12" @@ -24437,6 +24624,22 @@ __metadata: languageName: node linkType: hard +"react-remove-scroll-bar@npm:^2.3.6": + version: 2.3.6 + resolution: "react-remove-scroll-bar@npm:2.3.6" + dependencies: + react-style-singleton: "npm:^2.2.1" + tslib: "npm:^2.0.0" + peerDependencies: + "@types/react": ^16.8.0 || ^17.0.0 || ^18.0.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/4e32ee04bf655a8bd3b4aacf6ffc596ae9eb1b9ba27eef83f7002632ee75371f61516ae62250634a9eae4b2c8fc6f6982d9b182de260f6c11841841e6e2e7515 + languageName: node + linkType: hard + "react-remove-scroll@npm:2.5.5": version: 2.5.5 resolution: "react-remove-scroll@npm:2.5.5" @@ -24456,6 +24659,25 @@ __metadata: languageName: node linkType: hard +"react-remove-scroll@npm:2.6.0": + version: 2.6.0 + resolution: "react-remove-scroll@npm:2.6.0" + dependencies: + react-remove-scroll-bar: "npm:^2.3.6" + react-style-singleton: "npm:^2.2.1" + tslib: "npm:^2.1.0" + use-callback-ref: "npm:^1.3.0" + use-sidecar: "npm:^1.1.2" + peerDependencies: + "@types/react": ^16.8.0 || ^17.0.0 || ^18.0.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/c5881c537477d986e8d25d2588a9b6f7fe1254e05946fb4f4b55baeead502b0e1875fc3c42bb6f82736772cd96a50266e41d84e3c4cd25e9525bdfe2d838e96d + languageName: node + linkType: hard + "react-resize-detector@npm:^7.1.2": version: 7.1.2 resolution: "react-resize-detector@npm:7.1.2" From f49dbd963e4d2bbe7c3a4835381ae32b59f11aa2 Mon Sep 17 00:00:00 2001 From: Bill Collins Date: Wed, 11 Dec 2024 14:52:22 +0000 Subject: [PATCH 2/8] Update @emotion packages to react19 type compatible versions --- code/core/package.json | 10 +-- code/yarn.lock | 160 ++++++++++++++++++++--------------------- 2 files changed, 85 insertions(+), 85 deletions(-) diff --git a/code/core/package.json b/code/core/package.json index 2432d15c9499..3557cb288bad 100644 --- a/code/core/package.json +++ b/code/core/package.json @@ -295,11 +295,11 @@ "@babel/traverse": "^7.24.1", "@babel/types": "^7.24.0", "@discoveryjs/json-ext": "^0.5.3", - "@emotion/cache": "^11.11.0", - "@emotion/is-prop-valid": "^1.2.2", - "@emotion/react": "^11.11.4", - "@emotion/styled": "^11.11.0", - "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1", + "@emotion/cache": "^11.14.0", + "@emotion/is-prop-valid": "^1.3.1", + "@emotion/react": "^11.14.0", + "@emotion/styled": "^11.14.0", + "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0", "@fal-works/esbuild-plugin-global-externals": "^2.1.2", "@ndelangen/get-tarball": "^3.0.7", "@polka/compression": "^1.0.0-next.28", diff --git a/code/yarn.lock b/code/yarn.lock index b1939b096d96..b4c37c5dcc14 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -2701,42 +2701,42 @@ __metadata: languageName: node linkType: hard -"@emotion/babel-plugin@npm:^11.11.0": - version: 11.11.0 - resolution: "@emotion/babel-plugin@npm:11.11.0" +"@emotion/babel-plugin@npm:^11.13.5": + version: 11.13.5 + resolution: "@emotion/babel-plugin@npm:11.13.5" dependencies: "@babel/helper-module-imports": "npm:^7.16.7" "@babel/runtime": "npm:^7.18.3" - "@emotion/hash": "npm:^0.9.1" - "@emotion/memoize": "npm:^0.8.1" - "@emotion/serialize": "npm:^1.1.2" + "@emotion/hash": "npm:^0.9.2" + "@emotion/memoize": "npm:^0.9.0" + "@emotion/serialize": "npm:^1.3.3" babel-plugin-macros: "npm:^3.1.0" convert-source-map: "npm:^1.5.0" escape-string-regexp: "npm:^4.0.0" find-root: "npm:^1.1.0" source-map: "npm:^0.5.7" stylis: "npm:4.2.0" - checksum: 10c0/89cbb6ec0e52c8ee9c2a4b9889ccd4fc3a75d28091d835bfac6d7c4565d3338621e23af0a85f3bcd133e1cae795c692e1dadada015784d4b0554aa5bb111df43 + checksum: 10c0/8ccbfec7defd0e513cb8a1568fa179eac1e20c35fda18aed767f6c59ea7314363ebf2de3e9d2df66c8ad78928dc3dceeded84e6fa8059087cae5c280090aeeeb languageName: node linkType: hard -"@emotion/cache@npm:^11.11.0": - version: 11.11.0 - resolution: "@emotion/cache@npm:11.11.0" +"@emotion/cache@npm:^11.14.0": + version: 11.14.0 + resolution: "@emotion/cache@npm:11.14.0" dependencies: - "@emotion/memoize": "npm:^0.8.1" - "@emotion/sheet": "npm:^1.2.2" - "@emotion/utils": "npm:^1.2.1" - "@emotion/weak-memoize": "npm:^0.3.1" + "@emotion/memoize": "npm:^0.9.0" + "@emotion/sheet": "npm:^1.4.0" + "@emotion/utils": "npm:^1.4.2" + "@emotion/weak-memoize": "npm:^0.4.0" stylis: "npm:4.2.0" - checksum: 10c0/a23ab5ab2fd08e904698106d58ad3536fed51cc1aa0ef228e95bb640eaf11f560dbd91a395477b0d84e1e3c20150263764b4558517cf6576a89d2d6cc5253688 + checksum: 10c0/3fa3e7a431ab6f8a47c67132a00ac8358f428c1b6c8421d4b20de9df7c18e95eec04a5a6ff5a68908f98d3280044f247b4965ac63df8302d2c94dba718769724 languageName: node linkType: hard -"@emotion/hash@npm:^0.9.1": - version: 0.9.1 - resolution: "@emotion/hash@npm:0.9.1" - checksum: 10c0/cdafe5da63fc1137f3db6e232fdcde9188b2b47ee66c56c29137199642a4086f42382d866911cfb4833cae2cc00271ab45cad3946b024f67b527bb7fac7f4c9d +"@emotion/hash@npm:^0.9.2": + version: 0.9.2 + resolution: "@emotion/hash@npm:0.9.2" + checksum: 10c0/0dc254561a3cc0a06a10bbce7f6a997883fd240c8c1928b93713f803a2e9153a257a488537012efe89dbe1246f2abfe2add62cdb3471a13d67137fcb808e81c2 languageName: node linkType: hard @@ -2749,12 +2749,12 @@ __metadata: languageName: node linkType: hard -"@emotion/is-prop-valid@npm:^1.2.1, @emotion/is-prop-valid@npm:^1.2.2": - version: 1.2.2 - resolution: "@emotion/is-prop-valid@npm:1.2.2" +"@emotion/is-prop-valid@npm:^1.3.0, @emotion/is-prop-valid@npm:^1.3.1": + version: 1.3.1 + resolution: "@emotion/is-prop-valid@npm:1.3.1" dependencies: - "@emotion/memoize": "npm:^0.8.1" - checksum: 10c0/bb1530dcb4e0e5a4fabb219279f2d0bc35796baf66f6241f98b0d03db1985c890a8cafbea268e0edefd5eeda143dbd5c09a54b5fba74cee8c69b98b13194af50 + "@emotion/memoize": "npm:^0.9.0" + checksum: 10c0/123215540c816ff510737ec68dcc499c53ea4deb0bb6c2c27c03ed21046e2e69f6ad07a7a174d271c6cfcbcc9ea44e1763e0cf3875c92192f7689216174803cd languageName: node linkType: hard @@ -2765,101 +2765,101 @@ __metadata: languageName: node linkType: hard -"@emotion/memoize@npm:^0.8.1": - version: 0.8.1 - resolution: "@emotion/memoize@npm:0.8.1" - checksum: 10c0/dffed372fc3b9fa2ba411e76af22b6bb686fb0cb07694fdfaa6dd2baeb0d5e4968c1a7caa472bfcf06a5997d5e7c7d16b90e993f9a6ffae79a2c3dbdc76dfe78 +"@emotion/memoize@npm:^0.9.0": + version: 0.9.0 + resolution: "@emotion/memoize@npm:0.9.0" + checksum: 10c0/13f474a9201c7f88b543e6ea42f55c04fb2fdc05e6c5a3108aced2f7e7aa7eda7794c56bba02985a46d8aaa914fcdde238727a98341a96e2aec750d372dadd15 languageName: node linkType: hard -"@emotion/react@npm:^11.11.4": - version: 11.11.4 - resolution: "@emotion/react@npm:11.11.4" +"@emotion/react@npm:^11.14.0": + version: 11.14.0 + resolution: "@emotion/react@npm:11.14.0" dependencies: "@babel/runtime": "npm:^7.18.3" - "@emotion/babel-plugin": "npm:^11.11.0" - "@emotion/cache": "npm:^11.11.0" - "@emotion/serialize": "npm:^1.1.3" - "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.0.1" - "@emotion/utils": "npm:^1.2.1" - "@emotion/weak-memoize": "npm:^0.3.1" + "@emotion/babel-plugin": "npm:^11.13.5" + "@emotion/cache": "npm:^11.14.0" + "@emotion/serialize": "npm:^1.3.3" + "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.2.0" + "@emotion/utils": "npm:^1.4.2" + "@emotion/weak-memoize": "npm:^0.4.0" hoist-non-react-statics: "npm:^3.3.1" peerDependencies: react: ">=16.8.0" peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/6df892fd9e04b5c8c37aacfd7f461631e04e00e845edc3c5b2955ab8ad681abf5cd49584101f579427e08b82f2f88369c78d37ae2fe9360a8f68fd4e51b8e448 + checksum: 10c0/d0864f571a9f99ec643420ef31fde09e2006d3943a6aba079980e4d5f6e9f9fecbcc54b8f617fe003c00092ff9d5241179149ffff2810cb05cf72b4620cfc031 languageName: node linkType: hard -"@emotion/serialize@npm:^1.1.2, @emotion/serialize@npm:^1.1.3": - version: 1.1.3 - resolution: "@emotion/serialize@npm:1.1.3" +"@emotion/serialize@npm:^1.3.3": + version: 1.3.3 + resolution: "@emotion/serialize@npm:1.3.3" dependencies: - "@emotion/hash": "npm:^0.9.1" - "@emotion/memoize": "npm:^0.8.1" - "@emotion/unitless": "npm:^0.8.1" - "@emotion/utils": "npm:^1.2.1" + "@emotion/hash": "npm:^0.9.2" + "@emotion/memoize": "npm:^0.9.0" + "@emotion/unitless": "npm:^0.10.0" + "@emotion/utils": "npm:^1.4.2" csstype: "npm:^3.0.2" - checksum: 10c0/875241eafaa30e7d3b7cf9b585d8c1f224cbf627a674e87eb1d7662dafa76a8c8d67f14a79dbf7d1eaa017e9f68389962990fbcc699d5ad65035a1a047432a3f + checksum: 10c0/b28cb7de59de382021de2b26c0c94ebbfb16967a1b969a56fdb6408465a8993df243bfbd66430badaa6800e1834724e84895f5a6a9d97d0d224de3d77852acb4 languageName: node linkType: hard -"@emotion/sheet@npm:^1.2.2": - version: 1.2.2 - resolution: "@emotion/sheet@npm:1.2.2" - checksum: 10c0/69827a1bfa43d7b188f1d8cea42163143a36312543fdade5257c459a2b3efd7ce386aac84ba152bc2517a4f7e54384c04800b26adb382bb284ac7e4ad40e584b +"@emotion/sheet@npm:^1.4.0": + version: 1.4.0 + resolution: "@emotion/sheet@npm:1.4.0" + checksum: 10c0/3ca72d1650a07d2fbb7e382761b130b4a887dcd04e6574b2d51ce578791240150d7072a9bcb4161933abbcd1e38b243a6fb4464a7fe991d700c17aa66bb5acc7 languageName: node linkType: hard -"@emotion/styled@npm:^11.11.0": - version: 11.11.0 - resolution: "@emotion/styled@npm:11.11.0" +"@emotion/styled@npm:^11.14.0": + version: 11.14.0 + resolution: "@emotion/styled@npm:11.14.0" dependencies: "@babel/runtime": "npm:^7.18.3" - "@emotion/babel-plugin": "npm:^11.11.0" - "@emotion/is-prop-valid": "npm:^1.2.1" - "@emotion/serialize": "npm:^1.1.2" - "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.0.1" - "@emotion/utils": "npm:^1.2.1" + "@emotion/babel-plugin": "npm:^11.13.5" + "@emotion/is-prop-valid": "npm:^1.3.0" + "@emotion/serialize": "npm:^1.3.3" + "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.2.0" + "@emotion/utils": "npm:^1.4.2" peerDependencies: "@emotion/react": ^11.0.0-rc.0 react: ">=16.8.0" peerDependenciesMeta: "@types/react": optional: true - checksum: 10c0/a168bd7a8a6f254e54a321be4c7b7dd4bf65815e6570ba7c5a435b7d5aeebd76434e04886db7799a955817c8d5bf0103a3dcc3c785fba2bb53922320dda59a10 + checksum: 10c0/20aa5c488e4edecf63659212fc5ba1ccff2d3a66593fc8461de7cd5fe9192a741db357ffcd270a455bd61898d7f37cd5c84b4fd2b7974dade712badf7860ca9c languageName: node linkType: hard -"@emotion/unitless@npm:^0.8.1": - version: 0.8.1 - resolution: "@emotion/unitless@npm:0.8.1" - checksum: 10c0/a1ed508628288f40bfe6dd17d431ed899c067a899fa293a13afe3aed1d70fac0412b8a215fafab0b42829360db687fecd763e5f01a64ddc4a4b58ec3112ff548 +"@emotion/unitless@npm:^0.10.0": + version: 0.10.0 + resolution: "@emotion/unitless@npm:0.10.0" + checksum: 10c0/150943192727b7650eb9a6851a98034ddb58a8b6958b37546080f794696141c3760966ac695ab9af97efe10178690987aee4791f9f0ad1ff76783cdca83c1d49 languageName: node linkType: hard -"@emotion/use-insertion-effect-with-fallbacks@npm:^1.0.1": - version: 1.0.1 - resolution: "@emotion/use-insertion-effect-with-fallbacks@npm:1.0.1" +"@emotion/use-insertion-effect-with-fallbacks@npm:^1.2.0": + version: 1.2.0 + resolution: "@emotion/use-insertion-effect-with-fallbacks@npm:1.2.0" peerDependencies: react: ">=16.8.0" - checksum: 10c0/a15b2167940e3a908160687b73fc4fcd81e59ab45136b6967f02c7c419d9a149acd22a416b325c389642d4f1c3d33cf4196cad6b618128b55b7c74f6807a240b + checksum: 10c0/074dbc92b96bdc09209871070076e3b0351b6b47efefa849a7d9c37ab142130767609ca1831da0055988974e3b895c1de7606e4c421fecaa27c3e56a2afd3b08 languageName: node linkType: hard -"@emotion/utils@npm:^1.2.1": - version: 1.2.1 - resolution: "@emotion/utils@npm:1.2.1" - checksum: 10c0/db43ca803361740c14dfb1cca1464d10d27f4c8b40d3e8864e6932ccf375d1450778ff4e4eadee03fb97f2aeb18de9fae98294905596a12ff7d4cd1910414d8d +"@emotion/utils@npm:^1.4.2": + version: 1.4.2 + resolution: "@emotion/utils@npm:1.4.2" + checksum: 10c0/7d0010bf60a2a8c1a033b6431469de4c80e47aeb8fd856a17c1d1f76bbc3a03161a34aeaa78803566e29681ca551e7bf9994b68e9c5f5c796159923e44f78d9a languageName: node linkType: hard -"@emotion/weak-memoize@npm:^0.3.1": - version: 0.3.1 - resolution: "@emotion/weak-memoize@npm:0.3.1" - checksum: 10c0/ed514b3cb94bbacece4ac2450d98898066c0a0698bdeda256e312405ca53634cb83c75889b25cd8bbbe185c80f4c05a1f0a0091e1875460ba6be61d0334f0b8a +"@emotion/weak-memoize@npm:^0.4.0": + version: 0.4.0 + resolution: "@emotion/weak-memoize@npm:0.4.0" + checksum: 10c0/64376af11f1266042d03b3305c30b7502e6084868e33327e944b539091a472f089db307af69240f7188f8bc6b319276fd7b141a36613f1160d73d12a60f6ca1a languageName: node linkType: hard @@ -6362,11 +6362,11 @@ __metadata: "@babel/traverse": "npm:^7.24.1" "@babel/types": "npm:^7.24.0" "@discoveryjs/json-ext": "npm:^0.5.3" - "@emotion/cache": "npm:^11.11.0" - "@emotion/is-prop-valid": "npm:^1.2.2" - "@emotion/react": "npm:^11.11.4" - "@emotion/styled": "npm:^11.11.0" - "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.0.1" + "@emotion/cache": "npm:^11.14.0" + "@emotion/is-prop-valid": "npm:^1.3.1" + "@emotion/react": "npm:^11.14.0" + "@emotion/styled": "npm:^11.14.0" + "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.2.0" "@fal-works/esbuild-plugin-global-externals": "npm:^2.1.2" "@ndelangen/get-tarball": "npm:^3.0.7" "@polka/compression": "npm:^1.0.0-next.28" From 844ef0e292d05c4f80f5d0ce703f130a5be18eec Mon Sep 17 00:00:00 2001 From: Bill Collins Date: Wed, 11 Dec 2024 14:54:54 +0000 Subject: [PATCH 3/8] Update @storybook/theme types to remove reference to global JSX namespace --- code/renderers/react/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/renderers/react/src/types.ts b/code/renderers/react/src/types.ts index be05715415dd..7b3eeb648afe 100644 --- a/code/renderers/react/src/types.ts +++ b/code/renderers/react/src/types.ts @@ -1,4 +1,4 @@ -import type { ComponentType } from 'react'; +import type { ComponentType, JSX } from 'react'; import type { Canvas, WebRenderer } from 'storybook/internal/types'; From 9738e9a066d24d50223b72e2a4dd3f55925e1fcd Mon Sep 17 00:00:00 2001 From: Bill Collins Date: Sat, 14 Dec 2024 09:19:11 +0000 Subject: [PATCH 4/8] Fix mdx.tsx build error --- code/lib/blocks/src/blocks/mdx.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/code/lib/blocks/src/blocks/mdx.tsx b/code/lib/blocks/src/blocks/mdx.tsx index 09d8cff33465..eaefd53369e4 100644 --- a/code/lib/blocks/src/blocks/mdx.tsx +++ b/code/lib/blocks/src/blocks/mdx.tsx @@ -156,14 +156,17 @@ const OcticonHeaders = SUPPORTED_MDX_HEADERS.reduce( {} ); -const OcticonAnchor = styled.a(() => ({ - float: 'left', - lineHeight: 'inherit', - paddingRight: '10px', - marginLeft: '-24px', - // Allow the theme's text color to override the default link color. - color: 'inherit', -})); +const OcticonAnchor = styled.a( + () => + ({ + float: 'left', + lineHeight: 'inherit', + paddingRight: '10px', + marginLeft: '-24px', + // Allow the theme's text color to override the default link color. + color: 'inherit', + }) as const +); interface HeaderWithOcticonAnchorProps { as: string; From bc8d69e08bcbad02d27d18d9a42dc415d46a26a3 Mon Sep 17 00:00:00 2001 From: Bill Collins Date: Sat, 14 Dec 2024 09:25:56 +0000 Subject: [PATCH 5/8] Update markdown-to-jsx to a compatible version --- code/core/package.json | 2 +- code/lib/blocks/package.json | 2 +- code/yarn.lock | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/code/core/package.json b/code/core/package.json index 3557cb288bad..95bd47b3cdb3 100644 --- a/code/core/package.json +++ b/code/core/package.json @@ -368,7 +368,7 @@ "js-yaml": "^4.1.0", "lazy-universal-dotenv": "^4.0.0", "leven": "^4.0.0", - "markdown-to-jsx": "^7.4.5", + "markdown-to-jsx": "7.7.2", "memfs": "^4.11.1", "memoizerific": "^1.11.3", "nanoid": "^4.0.2", diff --git a/code/lib/blocks/package.json b/code/lib/blocks/package.json index c38aa59f379c..a69026eb6375 100644 --- a/code/lib/blocks/package.json +++ b/code/lib/blocks/package.json @@ -54,7 +54,7 @@ "@types/color-convert": "^2.0.0", "color-convert": "^2.0.1", "es-toolkit": "^1.22.0", - "markdown-to-jsx": "^7.4.5", + "markdown-to-jsx": "7.7.2", "memoizerific": "^1.11.3", "polished": "^4.2.2", "react-colorful": "^5.1.2", diff --git a/code/yarn.lock b/code/yarn.lock index b4c37c5dcc14..592ef13b5b4f 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6113,7 +6113,7 @@ __metadata: "@types/color-convert": "npm:^2.0.0" color-convert: "npm:^2.0.1" es-toolkit: "npm:^1.22.0" - markdown-to-jsx: "npm:^7.4.5" + markdown-to-jsx: "npm:7.7.2" memoizerific: "npm:^1.11.3" polished: "npm:^4.2.2" react-colorful: "npm:^5.1.2" @@ -6440,7 +6440,7 @@ __metadata: jsdoc-type-pratt-parser: "npm:^4.0.0" lazy-universal-dotenv: "npm:^4.0.0" leven: "npm:^4.0.0" - markdown-to-jsx: "npm:^7.4.5" + markdown-to-jsx: "npm:7.7.2" memfs: "npm:^4.11.1" memoizerific: "npm:^1.11.3" nanoid: "npm:^4.0.2" @@ -20234,12 +20234,12 @@ __metadata: languageName: node linkType: hard -"markdown-to-jsx@npm:^7.4.5": - version: 7.4.5 - resolution: "markdown-to-jsx@npm:7.4.5" +"markdown-to-jsx@npm:7.7.2": + version: 7.7.2 + resolution: "markdown-to-jsx@npm:7.7.2" peerDependencies: react: ">= 0.14.0" - checksum: 10c0/1c917be129a2d7091715cca7230c7adfa457ed3069fb243d6df4f22721749ee1a5a6d7be5d88d8ccbb422cc8c7f12fb87112e24c70da9ea45d9a3b9b62ffbb76 + checksum: 10c0/97a7da24fef875d5ce4feda5da6a924514c3c27fd4c1cbabe5de77d698846d2604e82bace5036b6baf10a462b31a77de6992636f89e67ad30d4a66e1374e968d languageName: node linkType: hard From e821e70fcd0348b1b6f84ea2f9b83b402fbb8d07 Mon Sep 17 00:00:00 2001 From: Bill Collins Date: Wed, 18 Dec 2024 08:55:51 +0000 Subject: [PATCH 6/8] Relax markdown-to-jsx specifier --- code/core/package.json | 2 +- code/lib/blocks/package.json | 2 +- code/yarn.lock | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/core/package.json b/code/core/package.json index 95bd47b3cdb3..e7050499e11b 100644 --- a/code/core/package.json +++ b/code/core/package.json @@ -368,7 +368,7 @@ "js-yaml": "^4.1.0", "lazy-universal-dotenv": "^4.0.0", "leven": "^4.0.0", - "markdown-to-jsx": "7.7.2", + "markdown-to-jsx": "^7.7.2", "memfs": "^4.11.1", "memoizerific": "^1.11.3", "nanoid": "^4.0.2", diff --git a/code/lib/blocks/package.json b/code/lib/blocks/package.json index a69026eb6375..28e3f10b3824 100644 --- a/code/lib/blocks/package.json +++ b/code/lib/blocks/package.json @@ -54,7 +54,7 @@ "@types/color-convert": "^2.0.0", "color-convert": "^2.0.1", "es-toolkit": "^1.22.0", - "markdown-to-jsx": "7.7.2", + "markdown-to-jsx": "^7.7.2", "memoizerific": "^1.11.3", "polished": "^4.2.2", "react-colorful": "^5.1.2", diff --git a/code/yarn.lock b/code/yarn.lock index 592ef13b5b4f..7aa0a0df1df1 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6113,7 +6113,7 @@ __metadata: "@types/color-convert": "npm:^2.0.0" color-convert: "npm:^2.0.1" es-toolkit: "npm:^1.22.0" - markdown-to-jsx: "npm:7.7.2" + markdown-to-jsx: "npm:^7.7.2" memoizerific: "npm:^1.11.3" polished: "npm:^4.2.2" react-colorful: "npm:^5.1.2" @@ -6440,7 +6440,7 @@ __metadata: jsdoc-type-pratt-parser: "npm:^4.0.0" lazy-universal-dotenv: "npm:^4.0.0" leven: "npm:^4.0.0" - markdown-to-jsx: "npm:7.7.2" + markdown-to-jsx: "npm:^7.7.2" memfs: "npm:^4.11.1" memoizerific: "npm:^1.11.3" nanoid: "npm:^4.0.2" @@ -20234,7 +20234,7 @@ __metadata: languageName: node linkType: hard -"markdown-to-jsx@npm:7.7.2": +"markdown-to-jsx@npm:^7.7.2": version: 7.7.2 resolution: "markdown-to-jsx@npm:7.7.2" peerDependencies: From dad7a7a0ff93e16ed5f50b476b9443c398d5de3a Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Thu, 2 Jan 2025 11:03:48 +0100 Subject: [PATCH 7/8] fix type issues --- code/addons/a11y/src/components/VisionSimulator.tsx | 4 ++-- code/addons/interactions/src/components/Interaction.tsx | 4 ++-- .../addons/onboarding/src/components/List/List.styled.tsx | 4 ++-- code/addons/test/src/components/Interaction.tsx | 4 ++-- code/addons/test/src/components/TestProviderRender.tsx | 3 ++- code/addons/viewport/src/legacy/ToolLegacy.tsx | 4 ++-- code/addons/viewport/src/utils.tsx | 4 ++-- code/core/src/components/components/bar/button.tsx | 4 ++-- .../manager/components/notifications/NotificationItem.tsx | 4 ++-- code/lib/blocks/src/components/ArgsTable/SectionRow.tsx | 8 ++++---- 10 files changed, 22 insertions(+), 21 deletions(-) diff --git a/code/addons/a11y/src/components/VisionSimulator.tsx b/code/addons/a11y/src/components/VisionSimulator.tsx index 2acc66b21c71..fe8d78592289 100644 --- a/code/addons/a11y/src/components/VisionSimulator.tsx +++ b/code/addons/a11y/src/components/VisionSimulator.tsx @@ -42,13 +42,13 @@ const getFilter = (filterName: string) => { return `url('#${filterName}')`; }; -const Hidden = styled.div(() => ({ +const Hidden = styled.div({ '&, & svg': { position: 'absolute', width: 0, height: 0, }, -})); +}); const ColorIcon = styled.span<{ filter: string }>( { diff --git a/code/addons/interactions/src/components/Interaction.tsx b/code/addons/interactions/src/components/Interaction.tsx index 4ceef384d02a..ae6164a56f2e 100644 --- a/code/addons/interactions/src/components/Interaction.tsx +++ b/code/addons/interactions/src/components/Interaction.tsx @@ -14,12 +14,12 @@ import { MatcherResult } from './MatcherResult'; import { MethodCall } from './MethodCall'; import { StatusIcon } from './StatusIcon'; -const MethodCallWrapper = styled.div(() => ({ +const MethodCallWrapper = styled.div({ fontFamily: typography.fonts.mono, fontSize: typography.size.s1, overflowWrap: 'break-word', inlineSize: 'calc( 100% - 40px )', -})); +}); const RowContainer = styled('div', { shouldForwardProp: (prop) => !['call', 'pausedAt'].includes(prop.toString()), diff --git a/code/addons/onboarding/src/components/List/List.styled.tsx b/code/addons/onboarding/src/components/List/List.styled.tsx index 64300369dd2a..b54fab802501 100644 --- a/code/addons/onboarding/src/components/List/List.styled.tsx +++ b/code/addons/onboarding/src/components/List/List.styled.tsx @@ -1,9 +1,9 @@ import { styled } from 'storybook/internal/theming'; -export const ListWrapper = styled.ul(() => ({ +export const ListWrapper = styled.ul({ display: 'flex', flexDirection: 'column', rowGap: 16, padding: 0, margin: 0, -})); +}); diff --git a/code/addons/test/src/components/Interaction.tsx b/code/addons/test/src/components/Interaction.tsx index 75797c65c5a3..fd48646e1b10 100644 --- a/code/addons/test/src/components/Interaction.tsx +++ b/code/addons/test/src/components/Interaction.tsx @@ -14,12 +14,12 @@ import { MatcherResult } from './MatcherResult'; import { MethodCall } from './MethodCall'; import { StatusIcon } from './StatusIcon'; -const MethodCallWrapper = styled.div(() => ({ +const MethodCallWrapper = styled.div({ fontFamily: typography.fonts.mono, fontSize: typography.size.s1, overflowWrap: 'break-word', inlineSize: 'calc( 100% - 40px )', -})); +}); const RowContainer = styled('div', { shouldForwardProp: (prop) => !['call', 'pausedAt'].includes(prop.toString()), diff --git a/code/addons/test/src/components/TestProviderRender.tsx b/code/addons/test/src/components/TestProviderRender.tsx index ab8e61fadf0d..dd00c6058d2b 100644 --- a/code/addons/test/src/components/TestProviderRender.tsx +++ b/code/addons/test/src/components/TestProviderRender.tsx @@ -355,7 +355,8 @@ export const TestProviderRender: FC< icon={ state.crashed ? ( - ) : status === 'unknown' ? ( + ) : // @ts-expect-error @ghengeveld should check whether this is a bug or not + status === 'unknown' ? ( ) : ( diff --git a/code/addons/viewport/src/legacy/ToolLegacy.tsx b/code/addons/viewport/src/legacy/ToolLegacy.tsx index 7035bd79789d..5f8988364414 100644 --- a/code/addons/viewport/src/legacy/ToolLegacy.tsx +++ b/code/addons/viewport/src/legacy/ToolLegacy.tsx @@ -74,10 +74,10 @@ const flip = ({ width, height, ...styles }: ViewportStyles) => ({ width: height, }); -const ActiveViewportSize = styled.div(() => ({ +const ActiveViewportSize = styled.div({ display: 'inline-flex', alignItems: 'center', -})); +}); const ActiveViewportLabel = styled.div(({ theme }) => ({ display: 'inline-block', diff --git a/code/addons/viewport/src/utils.tsx b/code/addons/viewport/src/utils.tsx index 619ddc178d3e..261ba22140d1 100644 --- a/code/addons/viewport/src/utils.tsx +++ b/code/addons/viewport/src/utils.tsx @@ -7,10 +7,10 @@ import { BrowserIcon, MobileIcon, TabletIcon } from '@storybook/icons'; import type { Viewport, ViewportMap } from './types'; -export const ActiveViewportSize = styled.div(() => ({ +export const ActiveViewportSize = styled.div({ display: 'inline-flex', alignItems: 'center', -})); +}); export const ActiveViewportLabel = styled.div(({ theme }) => ({ display: 'inline-block', diff --git a/code/core/src/components/components/bar/button.tsx b/code/core/src/components/components/bar/button.tsx index dc1727d10b57..20663149e526 100644 --- a/code/core/src/components/components/bar/button.tsx +++ b/code/core/src/components/components/bar/button.tsx @@ -140,11 +140,11 @@ const IconPlaceholder = styled.div(({ theme }) => ({ animation: `${theme.animation.glow} 1.5s ease-in-out infinite`, })); -const IconButtonSkeletonWrapper = styled.div(() => ({ +const IconButtonSkeletonWrapper = styled.div({ marginTop: 6, padding: 7, height: 28, -})); +}); /** @deprecated This component will be removed in Storybook 9.0 */ export const IconButtonSkeleton = () => ( diff --git a/code/core/src/manager/components/notifications/NotificationItem.tsx b/code/core/src/manager/components/notifications/NotificationItem.tsx index 159fa0da137f..6e23ebd5b359 100644 --- a/code/core/src/manager/components/notifications/NotificationItem.tsx +++ b/code/core/src/manager/components/notifications/NotificationItem.tsx @@ -93,7 +93,7 @@ const NotificationWithInteractiveStates = styled(Notification)({ const NotificationButton = NotificationWithInteractiveStates.withComponent('div'); const NotificationLink = NotificationWithInteractiveStates.withComponent(Link); -const NotificationIconWrapper = styled.div(() => ({ +const NotificationIconWrapper = styled.div({ display: 'flex', marginRight: 10, alignItems: 'center', @@ -102,7 +102,7 @@ const NotificationIconWrapper = styled.div(() => ({ width: 16, height: 16, }, -})); +}); const NotificationTextWrapper = styled.div(({ theme }) => ({ width: '100%', diff --git a/code/lib/blocks/src/components/ArgsTable/SectionRow.tsx b/code/lib/blocks/src/components/ArgsTable/SectionRow.tsx index ad3abf0f8f32..a97c362a1df8 100644 --- a/code/lib/blocks/src/components/ArgsTable/SectionRow.tsx +++ b/code/lib/blocks/src/components/ArgsTable/SectionRow.tsx @@ -74,9 +74,9 @@ const Subsection = styled.td(({ theme }) => ({ background: theme.background.app, })); -const StyledTd = styled.td(() => ({ +const StyledTd = styled.td({ position: 'relative', -})); +}); const StyledTr = styled.tr(({ theme }) => ({ '&:hover > td': { @@ -86,7 +86,7 @@ const StyledTr = styled.tr(({ theme }) => ({ }, })); -const ClickIntercept = styled.button(() => ({ +const ClickIntercept = styled.button({ // reset button style background: 'none', border: 'none', @@ -103,7 +103,7 @@ const ClickIntercept = styled.button(() => ({ width: '100%', color: 'transparent', cursor: 'row-resize !important', -})); +}); export const SectionRow: FC = ({ level = 'section', From 7f7032eab4702d7183c510aa6a4293adaefb1456 Mon Sep 17 00:00:00 2001 From: Bill Collins Date: Tue, 7 Jan 2025 18:18:27 +0000 Subject: [PATCH 8/8] Suppress dialog title error message --- code/vitest-setup.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/code/vitest-setup.ts b/code/vitest-setup.ts index 5eba16740d1d..efb6552518e9 100644 --- a/code/vitest-setup.ts +++ b/code/vitest-setup.ts @@ -18,6 +18,7 @@ const ignoreList = [ /React will try to recreate this component tree from scratch using the error boundary you provided/ ), (error: any) => error.message.includes('Lit is in dev mode. Not recommended for production!'), + (error: any) => error.message.includes('error: `DialogContent` requires a `DialogTitle`'), ]; const throwMessage = (type: any, message: any) => {