The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Upgrade Mantine to `v8.3.5` (#65050)
Nemanja Glumac3177f079e816
diff --git a/frontend/src/metabase/ui/components/inputs/Checkbox/Checkbox.module.css b/frontend/src/metabase/ui/components/inputs/Checkbox/Checkbox.module.cssindex a9ebbee572c..6f1a16f9d94 100644--- a/frontend/src/metabase/ui/components/inputs/Checkbox/Checkbox.module.css+++ b/frontend/src/metabase/ui/components/inputs/Checkbox/Checkbox.module.css@@ -19,6 +19,8 @@z-index: 0;}+ /* Mantine compatibility: supports old and new data-indeterminate. See: https://github.com/mantinedev/mantine/pull/8385 */+ &:has(.input[data-indeterminate]),&:has(.input[data-indeterminate="true"]) {.icon {color: var(--mb-color-text-secondary);@@ -60,6 +62,8 @@border: 1px solid var(--mb-color-border);background-color: var(--mb-color-background);+ /* Mantine compatibility: supports old and new data-indeterminate. See: https://github.com/mantinedev/mantine/pull/8385 */+ &[data-indeterminate],&[data-indeterminate="true"] {border-color: var(--mb-color-border);background-color: var(--mb-color-background);diff --git a/frontend/src/metabase/ui/components/typography/Text/Text.config.tsx b/frontend/src/metabase/ui/components/typography/Text/Text.config.tsxindex 5c7edd9f7ae..8ab68d2177b 100644--- a/frontend/src/metabase/ui/components/typography/Text/Text.config.tsx+++ b/frontend/src/metabase/ui/components/typography/Text/Text.config.tsx@@ -7,9 +7,6 @@ export const textOverrides: MantineThemeOverride["components"] = {defaultProps: {color: "var(--mb-color-text-primary)",size: "md",- // TODO: Mantine V7 renders p tags instead of divs for text. This causes some dom validation issues as we get <div> elements as- // children of <p> elements- //@ts-expect-error validation dom issuescomponent: "div",},classNames: {diff --git a/package.json b/package.jsonindex e3aa8f8eca2..fe724152029 100644--- a/package.json+++ b/package.json@@ -29,9 +29,9 @@"@juggle/resize-observer": "^3.4.0","@lezer/highlight": "^1.2.1","@lezer/lr": "^1.4.2",- "@mantine/core": "8.2.4",- "@mantine/dates": "8.2.4",- "@mantine/hooks": "8.2.4",+ "@mantine/core": "8.3.5",+ "@mantine/dates": "8.3.5",+ "@mantine/hooks": "8.3.5","@react-oauth/google": "^0.11.1","@reduxjs/toolkit": "^2.5.0","@snowplow/browser-tracker": "^3.1.6",diff --git a/patches/@mantine+hooks+8.0.2.patch b/patches/@mantine+hooks+8.0.2.patchdeleted file mode 100644index 6e5a06b5181..00000000000--- a/patches/@mantine+hooks+8.0.2.patch+++ /dev/null@@ -1,26 +0,0 @@-diff --git a/node_modules/@mantine/hooks/esm/use-media-query/use-media-query.mjs b/node_modules/@mantine/hooks/esm/use-media-query/use-media-query.mjs-index c175ddb..6460b82 100644---- a/node_modules/@mantine/hooks/esm/use-media-query/use-media-query.mjs-+++ b/node_modules/@mantine/hooks/esm/use-media-query/use-media-query.mjs-@@ -22,12 +22,17 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {- const [matches, setMatches] = useState(- getInitialValueInEffect ? initialValue : getInitialValue(query)- );-- const queryRef = useRef(null);- useEffect(() => {- if ("matchMedia" in window) {-- queryRef.current = window.matchMedia(query);-- setMatches(queryRef.current.matches);-- return attachMediaListener(queryRef.current, (event) => setMatches(event.matches));-+ try {-+ const mediaQuery = window.matchMedia(query);-+ setMatches(mediaQuery.matches);-+ return attachMediaListener(mediaQuery, (event) => setMatches(event.matches));-+ } catch (e) {-+ // Safari iframe compatibility issue-+ console.warn('MediaQuery not available in iframe:', e);-+ return void 0;-+ }- }- return void 0;- }, [query]);diff --git a/yarn.lock b/yarn.lockindex 90d6329f54e..610862e452b 100644--- a/yarn.lock+++ b/yarn.lock@@ -2239,6 +2239,13 @@dependencies:"@floating-ui/utils" "^0.2.8"+"@floating-ui/core@^1.7.3":+ version "1.7.3"+ resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.7.3.tgz#462d722f001e23e46d86fd2bd0d21b7693ccb8b7"+ integrity sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==+ dependencies:+ "@floating-ui/utils" "^0.2.10"+"@floating-ui/dom@^1.0.0":version "1.6.12"resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.6.12.tgz#6333dcb5a8ead3b2bf82f33d6bc410e95f54e556"@@ -2247,22 +2254,35 @@"@floating-ui/core" "^1.6.0""@floating-ui/utils" "^0.2.8"-"@floating-ui/react-dom@^2.1.2":- version "2.1.2"- resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-2.1.2.tgz#a1349bbf6a0e5cb5ded55d023766f20a4d439a31"- integrity sha512-06okr5cgPzMNBy+Ycse2A6udMi4bqwW/zgBF/rwjcNqWkyr82Mcg8b0vjX8OJpZFy/FKjJmw6wV7t44kK6kW7A==+"@floating-ui/dom@^1.7.4":+ version "1.7.4"+ resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.7.4.tgz#ee667549998745c9c3e3e84683b909c31d6c9a77"+ integrity sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA==dependencies:- "@floating-ui/dom" "^1.0.0"+ "@floating-ui/core" "^1.7.3"+ "@floating-ui/utils" "^0.2.10"-"@floating-ui/react@^0.26.28":- version "0.26.28"- resolved "https://registry.yarnpkg.com/@floating-ui/react/-/react-0.26.28.tgz#93f44ebaeb02409312e9df9507e83aab4a8c0dc7"- integrity sha512-yORQuuAtVpiRjpMhdc0wJj06b9JFjrYF4qp96j++v2NBpbi6SEGF7donUJ3TMieerQ6qVkAv1tgr7L4r5roTqw==+"@floating-ui/react-dom@^2.1.6":+ version "2.1.6"+ resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-2.1.6.tgz#189f681043c1400561f62972f461b93f01bf2231"+ integrity sha512-4JX6rEatQEvlmgU80wZyq9RT96HZJa88q8hp0pBd+LrczeDI4o6uA2M+uvxngVHo4Ihr8uibXxH6+70zhAFrVw==dependencies:- "@floating-ui/react-dom" "^2.1.2"- "@floating-ui/utils" "^0.2.8"+ "@floating-ui/dom" "^1.7.4"++"@floating-ui/react@^0.27.16":+ version "0.27.16"+ resolved "https://registry.yarnpkg.com/@floating-ui/react/-/react-0.27.16.tgz#6e485b5270b7a3296fdc4d0faf2ac9abf955a2f7"+ integrity sha512-9O8N4SeG2z++TSM8QA/KTeKFBVCNEz/AGS7gWPJf6KFRzmRWixFRnCnkPHRDwSVZW6QPDO6uT0P2SpWNKCc9/g==+ dependencies:+ "@floating-ui/react-dom" "^2.1.6"+ "@floating-ui/utils" "^0.2.10"tabbable "^6.0.0"+"@floating-ui/utils@^0.2.10":+ version "0.2.10"+ resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.10.tgz#a2a1e3812d14525f725d011a73eceb41fef5bc1c"+ integrity sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==+"@floating-ui/utils@^0.2.8":version "0.2.8"resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.8.tgz#21a907684723bbbaa5f0974cf7730bd797eb8e62"@@ -3127,29 +3147,29 @@fs-extra "^9.1.0"tempy "^1.0.0"-"@mantine/[email protected]":- version "8.2.4"- resolved "https://registry.yarnpkg.com/@mantine/core/-/core-8.2.4.tgz#2e28effa7680b2311c676a5f8daac86d00c2366c"- integrity sha512-bZBxt6CFNLleARe5Ni2oYOcuRdi8ZEaxoZBmdc3sQu24tiX61xTKtjOfHaPffNMpqNQoIbgOi955rk3t1KSLig==+"@mantine/[email protected]":+ version "8.3.5"+ resolved "https://registry.yarnpkg.com/@mantine/core/-/core-8.3.5.tgz#5782397a42fa76f46d7aab72761aa44bc02a2db5"+ integrity sha512-PdVNLMgOS2vFhOujRi6/VC9ic8w3UDyKX7ftwDeJ7yQT8CiepUxfbWWYpVpnq23bdWh/7fIT2Pn1EY8r8GOk7g==dependencies:- "@floating-ui/react" "^0.26.28"+ "@floating-ui/react" "^0.27.16"clsx "^2.1.1"- react-number-format "^5.4.3"- react-remove-scroll "^2.6.2"+ react-number-format "^5.4.4"+ react-remove-scroll "^2.7.1"react-textarea-autosize "8.5.9"- type-fest "^4.27.0"+ type-fest "^4.41.0"-"@mantine/[email protected]":- version "8.2.4"- resolved "https://registry.yarnpkg.com/@mantine/dates/-/dates-8.2.4.tgz#652a6648b121670ee93132fd46c5fb612e6f4ec4"- integrity sha512-i4t1vKGQhqbT8B+/hK2iF0taYRrWKwNEFXoQrwIrau5OE8MZaIBiMVZaO6qYSW0KAvW1ZIt6SF7UpiZTqnytqQ==+"@mantine/[email protected]":+ version "8.3.5"+ resolved "https://registry.yarnpkg.com/@mantine/dates/-/dates-8.3.5.tgz#7760fd1f277f2d4ab7bcc04cc5da2f555117dd18"+ integrity sha512-LkIdC4eWPNQFv1BU1c52U3Z3RuA3yU1asvTgMEIQ/MdJsGK8GePwpgMH/jKQ8ba/AW9NfksdvtOJ6uIqPwjCkg==dependencies:clsx "^2.1.1"-"@mantine/[email protected]":- version "8.2.4"- resolved "https://registry.yarnpkg.com/@mantine/hooks/-/hooks-8.2.4.tgz#2dba93edb0a26d037dfcac4017860057a82e2643"- integrity sha512-ZXQ0uk6UtJa6Gl+ZWMBh4wC7UqCAoWWvau1TOoe05sBrkyGcXSVrTfoCVzjEQaB/h8VEOUWLGtJokkiMQKcMzA==+"@mantine/[email protected]":+ version "8.3.5"+ resolved "https://registry.yarnpkg.com/@mantine/hooks/-/hooks-8.3.5.tgz#d9d80e9a0a1c995160d859ac58e49364b7801a10"+ integrity sha512-0Wf08eWLKi3WkKlxnV1W5vfuN6wcvAV2VbhQlOy0R9nrWorGTtonQF6qqBE3PnJFYF1/ZE+HkYZQ/Dr7DmYSMQ=="@marijn/find-cluster-break@^1.0.0":version "1.0.2"@@ -18198,10 +18218,10 @@ react-markdown@^8.0.7:unist-util-visit "^4.0.0"vfile "^5.0.0"-react-number-format@^5.4.3:- version "5.4.3"- resolved "https://registry.yarnpkg.com/react-number-format/-/react-number-format-5.4.3.tgz#e634df907da7742faf597afab3f25f9a59689d60"- integrity sha512-VCY5hFg/soBighAoGcdE+GagkJq0230qN6jcS5sp8wQX1qy1fYN/RX7/BXkrs0oyzzwqR8/+eSUrqXbGeywdUQ==+react-number-format@^5.4.4:+ version "5.4.4"+ resolved "https://registry.yarnpkg.com/react-number-format/-/react-number-format-5.4.4.tgz#d31f0e260609431500c8d3f81bbd3ae1fb7cacad"+ integrity sha512-wOmoNZoOpvMminhifQYiYSTCLUDOiUbBunrMrMjA+dV52sY+vck1S4UhR6PkgnoCquvvMSeJjErXZ4qSaWCliA==react-reconciler@^0.26.2:version "0.26.2"@@ -18245,10 +18265,10 @@ react-remove-scroll-bar@^2.3.7:react-style-singleton "^2.2.2"tslib "^2.0.0"-react-remove-scroll@^2.6.2:- version "2.6.3"- resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.6.3.tgz#df02cde56d5f2731e058531f8ffd7f9adec91ac2"- integrity sha512-pnAi91oOk8g8ABQKGF5/M9qxmmOPxaAnopyTHYfqYEwJhyFrbbBtHuSgtKEoH0jpcxx5o3hXqH1mNd9/Oi+8iQ==+react-remove-scroll@^2.7.1:+ version "2.7.1"+ resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.7.1.tgz#d2101d414f6d81d7d3bf033f3c1cb4785789f753"+ integrity sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==dependencies:react-remove-scroll-bar "^2.3.7"react-style-singleton "^2.2.3"@@ -21116,7 +21136,7 @@ type-fest@^3.0.0:resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-3.2.0.tgz#2c8b49e775d9e314a73ea6fcee0b2e8549d5f886"integrity sha512-Il3wdLRzWvbAEtocgxGQA9YOoRVeVUGOMBtel5LdEpNeEAol6GJTLw8GbX6Z8EIMfvfhoOXs2bwOijtAZdK5og==-type-fest@^4.18.2:+type-fest@^4.18.2, type-fest@^4.41.0:version "4.41.0"resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.41.0.tgz#6ae1c8e5731273c2bf1f58ad39cbae2c91a46c58"integrity sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==@@ -21126,11 +21146,6 @@ type-fest@^4.26.1:resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.40.0.tgz#62bc09caccb99a75e1ad6b9b4653e8805e5e1eee"integrity sha512-ABHZ2/tS2JkvH1PEjxFDTUWC8dB5OsIGZP4IFLhR293GqT5Y5qB1WwL2kMPYhQW9DVgVD8Hd7I8gjwPIf5GFkw==-type-fest@^4.27.0:- version "4.30.0"- resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.30.0.tgz#cf411e7630578ad9e9884951dfaeef6588f970fe"- integrity sha512-G6zXWS1dLj6eagy6sVhOMQiLtJdxQBHIA9Z6HFUNLOlr6MFOgzV8wvmidtPONfPtEUv0uZsy77XJNzTAfwPDaA==-type-is@~1.6.18:version "1.6.18"resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131"