Skip to content

An opinionated toast component for React.

sonner v2.0 (#558)

Emil Kowalskid66388d6ab13
diff --git a/package.json b/package.json
index e2a1424..458d2b6 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,18 @@
{
"name": "sonner",
- "version": "1.7.4",
+ "version": "2.0.0-beta.3",
"description": "An opinionated toast component for React.",
"exports": {
".": {
- "types": "./dist/index.d.ts",
- "import": "./dist/index.mjs",
- "require": "./dist/index.js"
+ "import": {
+ "types": "./dist/index.d.mts",
+ "default": "./dist/index.mjs"
+ },
+ "require": {
+ "types": "./dist/index.d.ts",
+ "default": "./dist/index.js"
+ },
+ "default": "./dist/index.js"
},
"./dist/styles.css": "./dist/styles.css"
},
@@ -16,8 +22,9 @@
"dist"
],
"scripts": {
- "build": "tsup src/index.tsx && cp src/styles.css dist/styles.css",
- "dev": "tsup src/index.tsx --watch",
+ "dev": "bunchee --watch",
+ "build": "bunchee && cp src/styles.css dist/styles.css",
+ "type-check": "tsc --noEmit",
"dev:website": "turbo run dev --filter=website...",
"dev:test": "turbo run dev --filter=test...",
"format": "prettier --write .",
@@ -44,10 +51,10 @@
"@playwright/test": "^1.49.1",
"@types/node": "^18.11.13",
"@types/react": "^18.0.26",
+ "bunchee": "^6.3.3",
"prettier": "^2.8.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
- "tsup": "^6.4.0",
"turbo": "1.6",
"typescript": "^4.8.4"
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fe8cfaf..7ec6a3e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -17,6 +17,9 @@ importers:
'@types/react':
specifier: ^18.0.26
version: 18.2.0
+ bunchee:
+ specifier: ^6.3.3
+ version: 6.3.3([email protected])
prettier:
specifier: ^2.8.4
version: 2.8.8
@@ -26,9 +29,6 @@ importers:
react-dom:
specifier: ^18.2.0
version: 18.2.0([email protected])
- tsup:
- specifier: ^6.4.0
- version: 6.7.0([email protected])
turbo:
specifier: '1.6'
version: 1.6.3
@@ -94,7 +94,7 @@ importers:
version: 3.3.3
eslint-config-next:
specifier: ^13.2.3
framer-motion:
specifier: ^9.0.1
@@ -262,6 +262,17 @@ packages:
'@jridgewell/trace-mapping': 0.3.25
dev: false
+ resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==}
+ engines: {node: '>=6.9.0'}
+ requiresBuild: true
+ dependencies:
+ '@babel/helper-validator-identifier': 7.25.9
+ js-tokens: 4.0.0
+ picocolors: 1.1.1
+ dev: true
+ optional: true
+
resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==}
engines: {node: '>=6.9.0'}
@@ -270,7 +281,6 @@ packages:
resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==}
engines: {node: '>=6.9.0'}
- dev: false
resolution: {integrity: sha512-SRJ4jYmXRqV1/Xc+TIVG84WjHBXKlxO9sHQnA2Pf12QQEAp1LOh6kDzNHXcUnbH1QI0FDoPPVOt+vyUDucxpaw==}
@@ -313,219 +323,6 @@ packages:
dev: false
optional: true
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==}
- engines: {node: '>=12'}
- cpu: [arm64]
- os: [android]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==}
- engines: {node: '>=12'}
- cpu: [arm]
- os: [android]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [android]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==}
- engines: {node: '>=12'}
- cpu: [arm64]
- os: [darwin]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [darwin]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==}
- engines: {node: '>=12'}
- cpu: [arm64]
- os: [freebsd]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [freebsd]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==}
- engines: {node: '>=12'}
- cpu: [arm64]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==}
- engines: {node: '>=12'}
- cpu: [arm]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==}
- engines: {node: '>=12'}
- cpu: [ia32]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==}
- engines: {node: '>=12'}
- cpu: [loong64]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==}
- engines: {node: '>=12'}
- cpu: [mips64el]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==}
- engines: {node: '>=12'}
- cpu: [ppc64]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==}
- engines: {node: '>=12'}
- cpu: [riscv64]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==}
- engines: {node: '>=12'}
- cpu: [s390x]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [linux]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [netbsd]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [openbsd]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [sunos]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==}
- engines: {node: '>=12'}
- cpu: [arm64]
- os: [win32]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==}
- engines: {node: '>=12'}
- cpu: [ia32]
- os: [win32]
- requiresBuild: true
- dev: true
- optional: true
-
- /@esbuild/[email protected]:
- resolution: {integrity: sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==}
- engines: {node: '>=12'}
- cpu: [x64]
- os: [win32]
- requiresBuild: true
- dev: true
- optional: true
-
- /@eslint-community/[email protected]([email protected]):
- resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
- dependencies:
- eslint: 8.57.1
- eslint-visitor-keys: 3.4.3
- dev: false
-
- /@eslint-community/[email protected]:
- resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==}
- engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
- dev: false
-
resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -548,10 +345,9 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: false
- /@eslint/[email protected]:
- resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dev: false
+ /@fastify/[email protected]:
+ resolution: {integrity: sha512-J8TOSBq3SoZbDhM9+R/u77hP93gz/rajSA+K2kGyijPpORPWUXHUpTaleoj+92As0S9uPRP7Oi8IqMf0u+ro6A==}
+ dev: true
resolution: {integrity: sha512-Ll+8q3OlMJfJbAKM/+/Y2q6PPYbryqNTXDbryx7SXLIDamkF6iQFbriYHga0dY44PvDhvvBWCx1Xj4U5+G4hOw==}
@@ -577,18 +373,6 @@ packages:
- supports-color
dev: false
- /@humanwhocodes/[email protected]:
- resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==}
- engines: {node: '>=10.10.0'}
- deprecated: Use @eslint/config-array instead
- dependencies:
- '@humanwhocodes/object-schema': 2.0.3
- debug: 4.4.0
- minimatch: 3.1.2
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/@humanwhocodes/[email protected]:
resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
engines: {node: '>=12.22'}
@@ -641,7 +425,6 @@ packages:
/@jridgewell/[email protected]:
resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}
- dev: false
/@jridgewell/[email protected]:
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
@@ -1016,13 +799,371 @@ packages:
resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==}
dev: false
+ resolution: {integrity: sha512-BEFI2EDqzl+vA1rl97IDRZ61AIwGH093d9nz8+dThxJNH8oSoB7MjWvPCX3dkaK1/RCJ/1v/R1XB15FuSs0fQw==}
+ engines: {node: '>=16.0.0 || 14 >= 14.17'}
+ peerDependencies:
+ rollup: ^2.68.0||^3.0.0||^4.0.0
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+ dependencies:
+ '@rollup/pluginutils': 5.1.4([email protected])
+ commondir: 1.0.1
+ estree-walker: 2.0.2
+ fdir: 6.4.3([email protected])
+ is-reference: 1.2.1
+ magic-string: 0.30.17
+ picomatch: 4.0.2
+ rollup: 4.34.6
+ dev: true
+
+ resolution: {integrity: sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+ dependencies:
+ '@rollup/pluginutils': 5.1.4([email protected])
+ rollup: 4.34.6
+ dev: true
+
+ resolution: {integrity: sha512-0FPvAeVUT/zdWoO0jnb/V5BlBsUSNfkIOtFHzMO4H9MOklrmQFY6FduVHKucNb/aTFxvnGhj4MNj/T1oNdDfNg==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ rollup: ^2.78.0||^3.0.0||^4.0.0
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+ dependencies:
+ '@rollup/pluginutils': 5.1.4([email protected])
+ '@types/resolve': 1.20.2
+ deepmerge: 4.3.1
+ is-module: 1.0.0
+ resolve: 1.22.8
+ rollup: 4.34.6
+ dev: true
+
+ resolution: {integrity: sha512-7QaYCf8bqF04dOy7w/eHmJeNExxTYwvKAmlSAH/EaWWUzbT0h5sbF6bktFoX/0F/0qwng5/dWFMyf3gzaM8DsQ==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+ dependencies:
+ '@rollup/pluginutils': 5.1.4([email protected])
+ magic-string: 0.30.17
+ rollup: 4.34.6
+ dev: true
+
+ resolution: {integrity: sha512-gpC4R1G9Ni92ZIRTexqbhX7U+9estZrbhP+9SRb0DW9xpB9g7j34r+J2hqrcW/lRI7dJaU84MxZM0Rt82tqYPQ==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+ dependencies:
+ '@rollup/pluginutils': 5.1.4([email protected])
+ rollup: 4.34.6
+ dev: true
+
+ resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}
+ engines: {node: '>=14.0.0'}
+ peerDependencies:
+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
+ peerDependenciesMeta:
+ rollup:
+ optional: true
+ dependencies:
+ '@types/estree': 1.0.6
+ estree-walker: 2.0.2
+ picomatch: 4.0.2
+ rollup: 4.34.6
+ dev: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-+GcCXtOQoWuC7hhX1P00LqjjIiS/iOouHXhMdiDSnq/1DGTox4SpUvO52Xm+div6+106r+TcvOeo/cxvyEyTgg==}
+ cpu: [arm]
+ os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-E8+2qCIjciYUnCa1AiVF1BkRgqIGW9KzJeesQqVfyRITGQN+dFuoivO0hnro1DjT74wXLRZ7QF8MIbz+luGaJA==}
+ cpu: [arm64]
+ os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-z9Ib+OzqN3DZEjX7PDQMHEhtF+t6Mi2z/ueChQPLS/qUMKY7Ybn5A2ggFoKRNRh1q1T03YTQfBTQCJZiepESAg==}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-PShKVY4u0FDAR7jskyFIYVyHEPCPnIQY8s5OcXkdU8mz3Y7eXDJPdyM/ZWjkYdR2m0izD9HHWA8sGcXn+Qrsyg==}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-YSwyOqlDAdKqs0iKuqvRHLN4SrD2TiswfoLfvYXseKbL47ht1grQpq46MSiQAx6rQEN8o8URtpXARCpqabqxGQ==}
+ cpu: [arm64]
+ os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-HEP4CgPAY1RxXwwL5sPFv6BBM3tVeLnshF03HMhJYCNc6kvSqBgTMmsEjb72RkZBAWIqiPUyF1JpEBv5XT9wKQ==}
+ cpu: [x64]
+ os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-88fSzjC5xeH9S2Vg3rPgXJULkHcLYMkh8faix8DX4h4TIAL65ekwuQMA/g2CXq8W+NJC43V6fUpYZNjaX3+IIg==}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-wM4ztnutBqYFyvNeR7Av+reWI/enK9tDOTKNF+6Kk2Q96k9bwhDDOlnCUNRPvromlVXo04riSliMBs/Z7RteEg==}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-9RyprECbRa9zEjXLtvvshhw4CMrRa3K+0wcp3KME0zmBe1ILmvcVHnypZ/aIDXpRyfhSYSuN4EPdCCj5Du8FIA==}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-qTmklhCTyaJSB05S+iSovfo++EwnIEZxHkzv5dep4qoszUMX5Ca4WM4zAVUMbfdviLgCSQOu5oU8YoGk1s6M9Q==}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-4Qmkaps9yqmpjY5pvpkfOerYgKNUGzQpFxV6rnS7c/JfYbDSU0y6WpbbredB5cCpLFGJEqYX40WUmxMkwhWCjw==}
+ cpu: [loong64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-Zsrtux3PuaxuBTX/zHdLaFmcofWGzaWW1scwLU3ZbW/X+hSsFbz9wDIp6XvnT7pzYRl9MezWqEqKy7ssmDEnuQ==}
+ cpu: [ppc64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-aK+Zp+CRM55iPrlyKiU3/zyhgzWBxLVrw2mwiQSYJRobCURb781+XstzvA8Gkjg/hbdQFuDw44aUOxVQFycrAg==}
+ cpu: [riscv64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-WoKLVrY9ogmaYPXwTH326+ErlCIgMmsoRSx6bO+l68YgJnlOXhygDYSZe/qbUJCSiCiZAQ+tKm88NcWuUXqOzw==}
+ cpu: [s390x]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-Sht4aFvmA4ToHd2vFzwMFaQCiYm2lDFho5rPcvPBT5pCdC+GwHG6CMch4GQfmWTQ1SwRKS0dhDYb54khSrjDWw==}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-zmmpOQh8vXc2QITsnCiODCDGXFC8LMi64+/oPpPx5qz3pqv0s6x46ps4xoycfUiVZps5PFn1gksZzo4RGTKT+A==}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-3/q1qUsO/tLqGBaD4uXsB6coVGB3usxw3qyeVb59aArCgedSF66MPdgRStUd7vbZOsko/CgVaY5fo2vkvPLWiA==}
+ cpu: [arm64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-oLHxuyywc6efdKVTxvc0135zPrRdtYVjtVD5GUm55I3ODxhU/PwkQFD97z16Xzxa1Fz0AEe4W/2hzRtd+IfpOA==}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/[email protected]:
+ resolution: {integrity: sha512-0PVwmgzZ8+TZ9oGBmdZoQVXflbvuwzN/HRclujpl4N/q3i+y0lqLw8n1bXA8ru3sApDjlmONaNAuYr38y1Kr9w==}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
/@rushstack/[email protected]:
resolution: {integrity: sha512-qC/xYId4NMebE6w/V33Fh9gWxLgURiNYgVNObbJl2LZv0GUUItCcCqC5axQSwRaAgaxl2mELq1rMzlswaQ0Zxg==}
dev: false
+ resolution: {integrity: sha512-Dh4VyrhDDb05tdRmqJ/MucOPMTnrB4pRJol18HVyLlqu1HOT5EzonUniNTCdQbUXjgdv5UVJSTE1lYTzrp+myA==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-KpzotL/I0O12RE3tF8NmQErINv0cQe/0mnN/Q50ESFzB5kU6bLgp2HMnnwDTm/XEZZRJCNe0oc9WJ5rKbAJFRQ==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-20yRXZjMJVz1wp1TcscKiGTVXistG+saIaxOmxSNQia1Qun3hSWLL+u6+5kXbfYGr7R2N6kqSwtZbIfJI25r9Q==}
+ engines: {node: '>=10'}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-Gy7cGrNkiMfPxQyLGxdgXPwyWzNzbHuWycJFcoKBihxZKZIW8hkPBttkGivuLC+0qOgsV2/U+S7tlvAju7FtmQ==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-+oYVqJvFw62InZ8PIy1rBACJPC2WTe4vbVb9kM1jJj2D7dKLm9acnnYIVIDsM5Wo7Uab8RvPHXVbs19IBurzuw==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-OmEbVEKQFLQVHwo4EJl9osmlulURy46k232Opfpn/1ji0t2KcNCci3POsnfMuoZjLkGJv8vGNJdPQxX+CP+wSA==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-OZW+Icm8DMPqHbhdxplkuG8qrNnPk5i7xJOZWYi1y5bTjgGFI4nEzrsmmeHKMdQTaWwsFrm3uK1rlyQ48MmXmg==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-sTvc+xrDQXy3HXZFtTEClY35Efvuc3D+busYm0+rb1+Thau4HLRY9WP+sOKeGwH9/16rzfzYEqD7Ds8A9ykrHw==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-j2iQ4y9GWTKtES5eMU0sDsFdYni7IxME7ejFej25Tv3Fq4B+U9tgtYWlJwh1858nIWDXelHiKcSh/UICAyVMdQ==}
+ engines: {node: '>=10'}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-TYtWkUSMkjs0jGPeWdtWbex4B+DlQZmN/ySVLiPI+EltYCLEXsFMkVFq6aWn48dqFHggFK0UYfvDrJUR2c3Qxg==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-WSrnE6JRnH20ZYjOOgSS4aOaPv9gxlkI2KRkN24kagbZnPZMnN8bZZyzw1rrLvwgpuRGv17Uz+hflosbR+SP6w==}
+ engines: {node: '>=10'}
+ requiresBuild: true
+ peerDependencies:
+ '@swc/helpers': '*'
+ peerDependenciesMeta:
+ '@swc/helpers':
+ optional: true
+ dependencies:
+ '@swc/counter': 0.1.3
+ '@swc/helpers': 0.5.15
+ '@swc/types': 0.1.17
+ optionalDependencies:
+ '@swc/core-darwin-arm64': 1.10.14
+ '@swc/core-darwin-x64': 1.10.14
+ '@swc/core-linux-arm-gnueabihf': 1.10.14
+ '@swc/core-linux-arm64-gnu': 1.10.14
+ '@swc/core-linux-arm64-musl': 1.10.14
+ '@swc/core-linux-x64-gnu': 1.10.14
+ '@swc/core-linux-x64-musl': 1.10.14
+ '@swc/core-win32-arm64-msvc': 1.10.14
+ '@swc/core-win32-ia32-msvc': 1.10.14
+ '@swc/core-win32-x64-msvc': 1.10.14
+ dev: true
+
resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}
- dev: false
resolution: {integrity: sha512-sJ902EfIzn1Fa+qYmjdQqh8tPsoxyBz+8yBKC2HKUxyezKJFwPGOn7pv4WY6QuQW//ySQi5lJjA/ZT9sNWWNTg==}
@@ -1030,6 +1171,12 @@ packages:
tslib: 2.6.2
dev: false
+ resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}
+ dependencies:
+ tslib: 2.8.1
+ dev: true
+
resolution: {integrity: sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==}
dependencies:
@@ -1037,6 +1184,12 @@ packages:
tslib: 2.6.2
dev: false
+ resolution: {integrity: sha512-V5gRru+aD8YVyCOMAjMpWR1Ui577DD5KSJsHP8RAxopAH22jFz6GZd/qxqjO6MJHQhcsjvjOFXyDhyLQUnMveQ==}
+ dependencies:
+ '@swc/counter': 0.1.3
+ dev: true
+
resolution: {integrity: sha512-rtvo7KwuIvqK9zb0VZ5IL7fiJAEnG+0EiFZz8FUOs+2mhGqdGmjKIaT1XU7Zq0eFqL0jonLlhbayJI/J2SA/Bw==}
peerDependencies:
@@ -1113,7 +1266,6 @@ packages:
resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==}
- dev: false
resolution: {integrity: sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==}
@@ -1196,6 +1348,10 @@ packages:
'@types/scheduler': 0.23.0
csstype: 3.1.3
+ resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==}
+ dev: true
+
resolution: {integrity: sha512-YIoDCTH3Af6XM5VuwGG/QL/CJqga1Zm3NkU3HZ4ZHK2fRMPYP1VczsTUqtsf43PH/iJNVlPHAo2oWX7BSdB2Hw==}
@@ -1227,26 +1383,6 @@ packages:
- supports-color
dev: false
- resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/scope-manager': 5.62.0
- '@typescript-eslint/types': 5.62.0
- '@typescript-eslint/typescript-estree': 5.62.0([email protected])
- debug: 4.3.5
- eslint: 8.57.1
- typescript: 4.9.5
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/@typescript-eslint/[email protected]:
resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -1293,10 +1429,6 @@ packages:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
dev: false
- resolution: {integrity: sha512-fEzPV3hSkSMltkw152tJKNARhOupqbH96MZWyRjNaYZOMIzbrTeQDG+MTc6Mr2pgzFQzFxAfmhGDNP5QK++2ZA==}
- dev: false
-
resolution: {integrity: sha512-xhSlYgAuJ6Q4WQGkzYTLmXwhYl39sWjoMA3nHxfkvG+WdBT25c563a7QhwwKivEOZtPJXifYHR1m2ihoisbWyA==}
peerDependencies:
@@ -1566,6 +1698,7 @@ packages:
resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==}
engines: {node: '>=8'}
+ dev: false
resolution: {integrity: sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==}
@@ -1735,14 +1868,39 @@ packages:
update-browserslist-db: 1.0.16([email protected])
dev: true
- resolution: {integrity: sha512-7Q/6vkyYAwOmQNRw75x+4yRtZCZJXUDmHHlFdkiV0wgv/reNjtJwpu1jPJ0w2kbEpIM0uoKI3S4/f39dU7AjSA==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ resolution: {integrity: sha512-ZpFm50nbpGfy8Nne7uEDx+dfqOGHz/0Qj3u2v2FVAO3W+2wDNUatEVxDF86RoL2Q60sCybei5clMZMuSuq/vXA==}
+ engines: {node: '>= 18.0.0'}
+ hasBin: true
peerDependencies:
- esbuild: '>=0.17'
+ typescript: ^4.1 || ^5.0
+ peerDependenciesMeta:
+ '@swc/helpers':
+ optional: true
+ typescript:
+ optional: true
dependencies:
- esbuild: 0.17.19
- load-tsconfig: 0.2.5
+ '@rollup/plugin-commonjs': 28.0.2([email protected])
+ '@rollup/plugin-json': 6.1.0([email protected])
+ '@rollup/plugin-node-resolve': 16.0.0([email protected])
+ '@rollup/plugin-replace': 6.0.2([email protected])
+ '@rollup/plugin-wasm': 6.2.2([email protected])
+ '@rollup/pluginutils': 5.1.4([email protected])
+ '@swc/core': 1.10.14(@swc/[email protected])
+ '@swc/helpers': 0.5.15
+ clean-css: 5.3.3
+ fast-glob: 3.3.3
+ magic-string: 0.30.17
+ ora: 8.2.0
+ picomatch: 4.0.2
+ pretty-bytes: 5.6.0
+ rollup: 4.34.6
+ rollup-plugin-dts: 6.1.1([email protected])([email protected])
+ rollup-plugin-swc3: 0.11.2(@swc/[email protected])([email protected])
+ rollup-preserve-directives: 1.1.3([email protected])
+ tslib: 2.8.1
+ typescript: 4.9.5
+ yargs: 17.7.2
dev: true
@@ -1752,11 +1910,6 @@ packages:
streamsearch: 1.1.0
dev: false
- resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
- engines: {node: '>=8'}
- dev: true
-
resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==}
engines: {node: '>= 0.4'}
@@ -1805,7 +1958,6 @@ packages:
resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
- dev: false
resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==}
@@ -1838,6 +1990,25 @@ packages:
fsevents: 2.3.3
dev: true
+ resolution: {integrity: sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg==}
+ engines: {node: '>= 10.0'}
+ dependencies:
+ source-map: 0.6.1
+ dev: true
+
+ resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==}
+ engines: {node: '>=18'}
+ dependencies:
+ restore-cursor: 5.1.0
+ dev: true
+
+ resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}
+ engines: {node: '>=6'}
+ dev: true
+
resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
dev: false
@@ -1850,6 +2021,15 @@ packages:
execa: 0.8.0
dev: false
+ resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}
+ engines: {node: '>=12'}
+ dependencies:
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ wrap-ansi: 7.0.0
+ dev: true
+
resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
engines: {node: '>=6'}
@@ -1893,6 +2073,10 @@ packages:
engines: {node: '>= 12'}
dev: false
+ resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==}
+ dev: true
+
resolution: {integrity: sha512-rj8l8pD4bJ1nx+dAkMhV1xB5RuZEyVysfxJqB1pRchh1KVvwOv9b7CGB8ZfjTImVv2oF+sYMUkMZq6Na5Ftmbg==}
dev: false
@@ -1929,15 +2113,6 @@ packages:
shebang-command: 2.0.0
which: 2.0.2
- resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
- engines: {node: '>= 8'}
- dependencies:
- path-key: 3.1.1
- shebang-command: 2.0.0
- which: 2.0.2
- dev: false
-
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
engines: {node: '>=4'}
@@ -2299,17 +2474,6 @@ packages:
optional: true
dependencies:
ms: 2.1.2
-
- resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==}
- engines: {node: '>=6.0'}
- peerDependencies:
- supports-color: '*'
- peerDependenciesMeta:
- supports-color:
- optional: true
- dependencies:
- ms: 2.1.3
dev: false
@@ -2322,6 +2486,11 @@ packages:
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
dev: false
+ resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}
engines: {node: '>= 0.4'}
@@ -2375,6 +2544,7 @@ packages:
engines: {node: '>=8'}
dependencies:
path-type: 4.0.0
+ dev: false
resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
@@ -2410,6 +2580,10 @@ packages:
resolution: {integrity: sha512-f/ZeWvW/BCXbhGEf1Ujp29EASo/lk1FDnETgNKwJrsVvGZhUWCZyg3xLJjAsxfOmt8KjswHmI5EwCQcPMpOYhQ==}
dev: false
+ resolution: {integrity: sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==}
+ dev: true
+
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
dev: true
@@ -2545,36 +2719,6 @@ packages:
is-symbol: 1.0.4
dev: false
- resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==}
- engines: {node: '>=12'}
- hasBin: true
- requiresBuild: true
- optionalDependencies:
- '@esbuild/android-arm': 0.17.19
- '@esbuild/android-arm64': 0.17.19
- '@esbuild/android-x64': 0.17.19
- '@esbuild/darwin-arm64': 0.17.19
- '@esbuild/darwin-x64': 0.17.19
- '@esbuild/freebsd-arm64': 0.17.19
- '@esbuild/freebsd-x64': 0.17.19
- '@esbuild/linux-arm': 0.17.19
- '@esbuild/linux-arm64': 0.17.19
- '@esbuild/linux-ia32': 0.17.19
- '@esbuild/linux-loong64': 0.17.19
- '@esbuild/linux-mips64el': 0.17.19
- '@esbuild/linux-ppc64': 0.17.19
- '@esbuild/linux-riscv64': 0.17.19
- '@esbuild/linux-s390x': 0.17.19
- '@esbuild/linux-x64': 0.17.19
- '@esbuild/netbsd-x64': 0.17.19
- '@esbuild/openbsd-x64': 0.17.19
- '@esbuild/sunos-x64': 0.17.19
- '@esbuild/win32-arm64': 0.17.19
- '@esbuild/win32-ia32': 0.17.19
- '@esbuild/win32-x64': 0.17.19
- dev: true
-
resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==}
engines: {node: '>=6'}
@@ -2620,31 +2764,6 @@ packages:
- supports-color
dev: false
- resolution: {integrity: sha512-lunIBhsoeqw6/Lfkd6zPt25w1bn0znLA/JCL+au1HoEpSb4/PpsOYsYtgV/q+YPsoKIOzFyU5xnb04iZnXjUvg==}
- peerDependencies:
- eslint: ^7.23.0 || ^8.0.0
- typescript: '>=3.3.1'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@next/eslint-plugin-next': 13.2.4
- '@rushstack/eslint-patch': 1.10.3
- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
- eslint: 8.57.1
- eslint-import-resolver-node: 0.3.9
- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])
- eslint-plugin-jsx-a11y: 6.8.0([email protected])
- eslint-plugin-react: 7.34.2([email protected])
- eslint-plugin-react-hooks: 4.6.2([email protected])
- typescript: 4.9.5
- transitivePeerDependencies:
- - eslint-import-resolver-webpack
- - supports-color
- dev: false
-
resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==}
dependencies:
@@ -2678,29 +2797,6 @@ packages:
- supports-color
dev: false
- resolution: {integrity: sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==}
- engines: {node: ^14.18.0 || >=16.0.0}
- peerDependencies:
- eslint: '*'
- eslint-plugin-import: '*'
- dependencies:
- debug: 4.3.5
- enhanced-resolve: 5.17.0
- eslint: 8.57.1
- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected])([email protected])([email protected])
- fast-glob: 3.3.2
- get-tsconfig: 4.7.5
- is-core-module: 2.13.1
- is-glob: 4.0.3
- transitivePeerDependencies:
- - '@typescript-eslint/parser'
- - eslint-import-resolver-node
- - eslint-import-resolver-webpack
- - supports-color
- dev: false
-
resolution: {integrity: sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==}
engines: {node: '>=4'}
@@ -2731,36 +2827,6 @@ packages:
- supports-color
dev: false
- resolution: {integrity: sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==}
- engines: {node: '>=4'}
- peerDependencies:
- '@typescript-eslint/parser': '*'
- eslint: '*'
- eslint-import-resolver-node: '*'
- eslint-import-resolver-typescript: '*'
- eslint-import-resolver-webpack: '*'
- peerDependenciesMeta:
- '@typescript-eslint/parser':
- optional: true
- eslint:
- optional: true
- eslint-import-resolver-node:
- optional: true
- eslint-import-resolver-typescript:
- optional: true
- eslint-import-resolver-webpack:
- optional: true
- dependencies:
- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
- debug: 3.2.7
- eslint: 8.57.1
- eslint-import-resolver-node: 0.3.9
- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
- transitivePeerDependencies:
- - supports-color
- dev: false
-
resolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==}
engines: {node: '>=4'}
@@ -2796,41 +2862,6 @@ packages:
- supports-color
dev: false
- resolution: {integrity: sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==}
- engines: {node: '>=4'}
- peerDependencies:
- '@typescript-eslint/parser': '*'
- eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8
- peerDependenciesMeta:
- '@typescript-eslint/parser':
- optional: true
- dependencies:
- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])
- array-includes: 3.1.8
- array.prototype.findlastindex: 1.2.5
- array.prototype.flat: 1.3.2
- array.prototype.flatmap: 1.3.2
- debug: 3.2.7
- doctrine: 2.1.0
- eslint: 8.57.1
- eslint-import-resolver-node: 0.3.9
- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])
- hasown: 2.0.2
- is-core-module: 2.13.1
- is-glob: 4.0.3
- minimatch: 3.1.2
- object.fromentries: 2.0.8
- object.groupby: 1.0.3
- object.values: 1.2.0
- semver: 6.3.1
- tsconfig-paths: 3.15.0
- transitivePeerDependencies:
- - eslint-import-resolver-typescript
- - eslint-import-resolver-webpack
- - supports-color
- dev: false
-
resolution: {integrity: sha512-Hdh937BS3KdwwbBaKd5+PLCOmYY6U4f2h9Z2ktwtNKvIdIEu137rjYbcb9ApSbVJfWxANNuiKTD/9tOKjK9qOA==}
engines: {node: '>=4.0'}
@@ -2856,77 +2887,16 @@ packages:
object.fromentries: 2.0.8
dev: false
- resolution: {integrity: sha512-Hdh937BS3KdwwbBaKd5+PLCOmYY6U4f2h9Z2ktwtNKvIdIEu137rjYbcb9ApSbVJfWxANNuiKTD/9tOKjK9qOA==}
- engines: {node: '>=4.0'}
- peerDependencies:
- eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
- dependencies:
- '@babel/runtime': 7.24.6
- aria-query: 5.3.0
- array-includes: 3.1.8
- array.prototype.flatmap: 1.3.2
- ast-types-flow: 0.0.8
- axe-core: 4.7.0
- axobject-query: 3.2.1
- damerau-levenshtein: 1.0.8
- emoji-regex: 9.2.2
- es-iterator-helpers: 1.0.19
- eslint: 8.57.1
- hasown: 2.0.2
- jsx-ast-utils: 3.3.5
- language-tags: 1.0.9
- minimatch: 3.1.2
- object.entries: 1.1.8
- object.fromentries: 2.0.8
- dev: false
-
- resolution: {integrity: sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==}
- engines: {node: '>=10'}
- peerDependencies:
- eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
- dependencies:
- eslint: 8.35.0
- dev: false
-
- resolution: {integrity: sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==}
- engines: {node: '>=10'}
- peerDependencies:
- eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
- dependencies:
- eslint: 8.57.1
- dev: false
-
- resolution: {integrity: sha512-2HCmrU+/JNigDN6tg55cRDKCQWicYAPB38JGSFDQt95jDm8rrvSUo7YPkOIm5l6ts1j1zCvysNcasvfTMQzUOw==}
- engines: {node: '>=4'}
- peerDependencies:
- eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8
- dependencies:
- array-includes: 3.1.8
- array.prototype.findlast: 1.2.5
- array.prototype.flatmap: 1.3.2
- array.prototype.toreversed: 1.1.2
- array.prototype.tosorted: 1.1.4
- doctrine: 2.1.0
- es-iterator-helpers: 1.0.19
- eslint: 8.35.0
- estraverse: 5.3.0
- jsx-ast-utils: 3.3.5
- minimatch: 3.1.2
- object.entries: 1.1.8
- object.fromentries: 2.0.8
- object.hasown: 1.1.4
- object.values: 1.2.0
- prop-types: 15.8.1
- resolve: 2.0.0-next.5
- semver: 6.3.1
- string.prototype.matchall: 4.0.11
+ resolution: {integrity: sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
+ dependencies:
+ eslint: 8.35.0
dev: false
resolution: {integrity: sha512-2HCmrU+/JNigDN6tg55cRDKCQWicYAPB38JGSFDQt95jDm8rrvSUo7YPkOIm5l6ts1j1zCvysNcasvfTMQzUOw==}
engines: {node: '>=4'}
peerDependencies:
@@ -2939,7 +2909,7 @@ packages:
array.prototype.tosorted: 1.1.4
doctrine: 2.1.0
es-iterator-helpers: 1.0.19
- eslint: 8.57.1
+ eslint: 8.35.0
estraverse: 5.3.0
jsx-ast-utils: 3.3.5
minimatch: 3.1.2
@@ -3030,54 +3000,6 @@ packages:
- supports-color
dev: false
- resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.
- hasBin: true
- dependencies:
- '@eslint-community/eslint-utils': 4.4.1([email protected])
- '@eslint-community/regexpp': 4.12.1
- '@eslint/eslintrc': 2.1.4
- '@eslint/js': 8.57.1
- '@humanwhocodes/config-array': 0.13.0
- '@humanwhocodes/module-importer': 1.0.1
- '@nodelib/fs.walk': 1.2.8
- '@ungap/structured-clone': 1.2.1
- ajv: 6.12.6
- chalk: 4.1.2
- cross-spawn: 7.0.6
- debug: 4.4.0
- doctrine: 3.0.0
- escape-string-regexp: 4.0.0
- eslint-scope: 7.2.2
- eslint-visitor-keys: 3.4.3
- espree: 9.6.1
- esquery: 1.6.0
- esutils: 2.0.3
- fast-deep-equal: 3.1.3
- file-entry-cache: 6.0.1
- find-up: 5.0.0
- glob-parent: 6.0.2
- globals: 13.24.0
- graphemer: 1.4.0
- ignore: 5.3.2
- imurmurhash: 0.1.4
- is-glob: 4.0.3
- is-path-inside: 3.0.3
- js-yaml: 4.1.0
- json-stable-stringify-without-jsonify: 1.0.1
- levn: 0.4.1
- lodash.merge: 4.6.2
- minimatch: 3.1.2
- natural-compare: 1.4.0
- optionator: 0.9.4
- strip-ansi: 6.0.1
- text-table: 0.2.0
- transitivePeerDependencies:
- - supports-color
- dev: false
-
resolution: {integrity: sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==}
dev: false
@@ -3104,13 +3026,6 @@ packages:
estraverse: 5.3.0
dev: false
- resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==}
- engines: {node: '>=0.10'}
- dependencies:
- estraverse: 5.3.0
- dev: false
-
resolution: {integrity: sha512-Xddc1RsoFJ4z9nR7W7BFaEPIp4UXoeQ0+077UdWLxbafMQFyU79sQJMk7kxNgRwQ9/aVgaKacCHC2pUACGwmYw==}
dependencies:
@@ -3171,7 +3086,6 @@ packages:
resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
- dev: false
resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
@@ -3202,21 +3116,6 @@ packages:
strip-eof: 1.0.0
dev: false
- resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}
- engines: {node: '>=10'}
- dependencies:
- cross-spawn: 7.0.3
- get-stream: 6.0.1
- human-signals: 2.1.0
- is-stream: 2.0.1
- merge-stream: 2.0.0
- npm-run-path: 4.0.1
- onetime: 5.1.2
- signal-exit: 3.0.7
- strip-final-newline: 2.0.0
- dev: true
-
resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==}
engines: {node: '>=0.10.0'}
@@ -3242,6 +3141,17 @@ packages:
merge2: 1.4.1
micromatch: 4.0.7
+ resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}
+ engines: {node: '>=8.6.0'}
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ '@nodelib/fs.walk': 1.2.8
+ glob-parent: 5.1.2
+ merge2: 1.4.1
+ micromatch: 4.0.8
+ dev: true
+
resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
dev: false
@@ -3255,6 +3165,17 @@ packages:
dependencies:
reusify: 1.0.4
+ resolution: {integrity: sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==}
+ peerDependencies:
+ picomatch: ^3 || ^4
+ peerDependenciesMeta:
+ picomatch:
+ optional: true
+ dependencies:
+ picomatch: 4.0.2
+ dev: true
+
resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==}
engines: {node: ^10.12.0 || >=12.0.0}
@@ -3364,6 +3285,16 @@ packages:
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
dev: false
+ resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
+ engines: {node: 6.* || 8.* || >= 10.*}
+ dev: true
+
+ resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==}
+ engines: {node: '>=18'}
+ dev: true
+
resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==}
engines: {node: '>= 0.4'}
@@ -3380,11 +3311,6 @@ packages:
engines: {node: '>=4'}
dev: false
- resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
- engines: {node: '>=10'}
- dev: true
-
resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==}
engines: {node: '>= 0.4'}
@@ -3398,7 +3324,6 @@ packages:
resolution: {integrity: sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==}
dependencies:
resolve-pkg-maps: 1.0.0
- dev: false
resolution: {integrity: sha512-ONdIrbBCFusq1Oy0sC71F5azx8bVkvtZtMJAsv+a6lz5YAmbNnLD6HAB4gptHZVLPR8S2/kVN6Gab7lryq5+lQ==}
@@ -3494,6 +3419,7 @@ packages:
ignore: 5.3.1
merge2: 1.4.1
slash: 3.0.0
+ dev: false
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
@@ -3509,10 +3435,6 @@ packages:
resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==}
dev: false
- resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==}
- dev: false
-
resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==}
engines: {node: '>=6.0'}
@@ -3707,11 +3629,6 @@ packages:
resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==}
dev: false
- resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
- engines: {node: '>=10.17.0'}
- dev: true
-
resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
engines: {node: '>=0.10.0'}
@@ -3722,10 +3639,6 @@ packages:
resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==}
engines: {node: '>= 4'}
-
- resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
- engines: {node: '>= 4'}
dev: false
@@ -3896,11 +3809,20 @@ packages:
resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==}
dev: false
+ resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==}
+ engines: {node: '>=12'}
+ dev: true
+
resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==}
engines: {node: '>= 0.4'}
dev: false
+ resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==}
+ dev: true
+
resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==}
engines: {node: '>= 0.4'}
@@ -3937,6 +3859,12 @@ packages:
engines: {node: '>=12'}
dev: false
+ resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==}
+ dependencies:
+ '@types/estree': 1.0.6
+ dev: true
+
resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==}
dependencies:
@@ -3980,11 +3908,6 @@ packages:
engines: {node: '>=0.10.0'}
dev: false
- resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
- engines: {node: '>=8'}
- dev: true
-
resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==}
engines: {node: '>= 0.4'}
@@ -4006,6 +3929,16 @@ packages:
which-typed-array: 1.1.15
dev: false
+ resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==}
+ engines: {node: '>=12'}
+ dev: true
+
+ resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==}
+ engines: {node: '>=18'}
+ dev: true
+
resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==}
engines: {node: '>= 0.4'}
@@ -4056,11 +3989,6 @@ packages:
hasBin: true
dev: true
- resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}
- engines: {node: '>=10'}
- dev: true
-
resolution: {integrity: sha512-dwXFwByc/ajSV6m5bcKAPwe4yDDF6D614pxmIi5odytzxRlwqF6nwoiCek80Ixc7Cvma5awClxrzFtxCQvcM8w==}
dev: false
@@ -4194,11 +4122,6 @@ packages:
resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
dev: true
- resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- dev: true
-
resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==}
dev: false
@@ -4222,8 +4145,12 @@ packages:
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
dev: false
- resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==}
+ resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==}
+ engines: {node: '>=18'}
+ dependencies:
+ chalk: 5.3.0
+ is-unicode-supported: 1.3.0
dev: true
@@ -4252,7 +4179,6 @@ packages:
resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0
- dev: false
resolution: {integrity: sha512-WWC0ZuMzCyDHYCasEGs4IPvLyTGftYwh6wIEOULOF0HXcqZlhwRzrK0w2VUlxWA98xnvb/jszw4ZSkJ6ADpM6Q==}
@@ -4478,10 +4404,6 @@ packages:
'@types/mdast': 3.0.15
dev: false
- resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
- dev: true
-
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
@@ -4893,9 +4815,17 @@ packages:
braces: 3.0.3
picomatch: 2.3.1
- resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
- engines: {node: '>=6'}
+ resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}
+ engines: {node: '>=8.6'}
+ dependencies:
+ braces: 3.0.3
+ picomatch: 2.3.1
+ dev: true
+
+ resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}
+ engines: {node: '>=18'}
dev: true
@@ -4927,6 +4857,7 @@ packages:
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
+ dev: false
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
@@ -5178,13 +5109,6 @@ packages:
path-key: 2.0.1
dev: false
- resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
- engines: {node: '>=8'}
- dependencies:
- path-key: 3.1.1
- dev: true
-
resolution: {integrity: sha512-O/j/ROyX0KGLG7O6Ieut/seQ0oiTpHF2tXAcFbpdTLQFiaNtkyTXXocM1fwpaa60dg1qpWj0nHlbNhx6qwuENQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -5270,11 +5194,11 @@ packages:
wrappy: 1.0.2
dev: false
- resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}
- engines: {node: '>=6'}
+ resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}
+ engines: {node: '>=18'}
dependencies:
- mimic-fn: 2.1.0
+ mimic-function: 5.0.1
dev: true
@@ -5289,6 +5213,21 @@ packages:
word-wrap: 1.2.5
dev: false
+ resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==}
+ engines: {node: '>=18'}
+ dependencies:
+ chalk: 5.3.0
+ cli-cursor: 5.0.0
+ cli-spinners: 2.9.2
+ is-interactive: 2.0.0
+ is-unicode-supported: 2.1.0
+ log-symbols: 6.0.0
+ stdin-discarder: 0.2.2
+ string-width: 7.2.0
+ strip-ansi: 7.1.0
+ dev: true
+
resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==}
engines: {node: '>=4'}
@@ -5383,6 +5322,7 @@ packages:
resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
engines: {node: '>=8'}
+ dev: false
resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==}
@@ -5397,12 +5337,16 @@ packages:
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
- dev: false
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
engines: {node: '>=8.6'}
+ resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}
+ engines: {node: '>=12'}
+ dev: true
+
resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
engines: {node: '>=0.10.0'}
@@ -5454,22 +5398,6 @@ packages:
postcss: 8.4.38
dev: true
- resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==}
- engines: {node: '>= 10'}
- peerDependencies:
- postcss: '>=8.0.9'
- ts-node: '>=9.0.0'
- peerDependenciesMeta:
- postcss:
- optional: true
- ts-node:
- optional: true
- dependencies:
- lilconfig: 2.1.0
- yaml: 1.10.2
- dev: true
-
resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}
engines: {node: '>= 14'}
@@ -5556,6 +5484,11 @@ packages:
hasBin: true
dev: true
+ resolution: {integrity: sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==}
+ engines: {node: '>=6'}
+ dev: true
+
resolution: {integrity: sha512-IJ+MSwBWKG+SM3b2SUfdrhC+gu01QkV2KmRQgREThBfSQRoufqRfxfHUxpG1WcaFjP+kojcFyO9Qqtpgt3qLCg==}
peerDependencies:
@@ -5587,6 +5520,7 @@ packages:
resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
engines: {node: '>=6'}
+ dev: false
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
@@ -5780,19 +5714,18 @@ packages:
resolution: {integrity: sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A==}
dev: false
+ resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
engines: {node: '>=4'}
dev: false
- resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==}
- engines: {node: '>=8'}
- dev: true
-
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
- dev: false
resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==}
@@ -5811,6 +5744,14 @@ packages:
supports-preserve-symlinks-flag: 1.0.0
dev: false
+ resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==}
+ engines: {node: '>=18'}
+ dependencies:
+ onetime: 7.0.0
+ signal-exit: 4.1.0
+ dev: true
+
resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
@@ -5827,11 +5768,70 @@ packages:
resolution: {integrity: sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==}
dev: false
- resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==}
- engines: {node: '>=14.18.0', npm: '>=8.0.0'}
+ resolution: {integrity: sha512-aSHRcJ6KG2IHIioYlvAOcEq6U99sVtqDDKVhnwt70rW6tsz3tv5OSjEiWcgzfsHdLyGXZ/3b/7b/+Za3Y6r1XA==}
+ engines: {node: '>=16'}
+ peerDependencies:
+ rollup: ^3.29.4 || ^4
+ typescript: ^4.5 || ^5.0
+ dependencies:
+ magic-string: 0.30.17
+ rollup: 4.34.6
+ typescript: 4.9.5
+ optionalDependencies:
+ '@babel/code-frame': 7.26.2
+ dev: true
+
+ resolution: {integrity: sha512-o1ih9B806fV2wBSNk46T0cYfTF2eiiKmYXRpWw3K4j/Cp3tCAt10UCVsTqvUhGP58pcB3/GZcAVl5e7TCSKN6Q==}
+ engines: {node: '>=12'}
+ peerDependencies:
+ '@swc/core': '>=1.2.165'
+ rollup: ^2.0.0 || ^3.0.0 || ^4.0.0
+ dependencies:
+ '@fastify/deepmerge': 1.3.0
+ '@rollup/pluginutils': 5.1.4([email protected])
+ '@swc/core': 1.10.14(@swc/[email protected])
+ get-tsconfig: 4.7.5
+ rollup: 4.34.6
+ rollup-preserve-directives: 1.1.3([email protected])
+ dev: true
+
+ resolution: {integrity: sha512-oXqxd6ZzkoQej8Qt0k+S/yvO2+S4CEVEVv2g85oL15o0cjAKTKEuo2MzyA8FcsBBXbtytBzBMFAbhvQg4YyPUQ==}
+ peerDependencies:
+ rollup: ^2.0.0 || ^3.0.0 || ^4.0.0
+ dependencies:
+ magic-string: 0.30.17
+ rollup: 4.34.6
+ dev: true
+
+ resolution: {integrity: sha512-wc2cBWqJgkU3Iz5oztRkQbfVkbxoz5EhnCGOrnJvnLnQ7O0WhQUYyv18qQI79O8L7DdHrrlJNeCHd4VGpnaXKQ==}
+ engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
+ dependencies:
+ '@types/estree': 1.0.6
optionalDependencies:
+ '@rollup/rollup-android-arm-eabi': 4.34.6
+ '@rollup/rollup-android-arm64': 4.34.6
+ '@rollup/rollup-darwin-arm64': 4.34.6
+ '@rollup/rollup-darwin-x64': 4.34.6
+ '@rollup/rollup-freebsd-arm64': 4.34.6
+ '@rollup/rollup-freebsd-x64': 4.34.6
+ '@rollup/rollup-linux-arm-gnueabihf': 4.34.6
+ '@rollup/rollup-linux-arm-musleabihf': 4.34.6
+ '@rollup/rollup-linux-arm64-gnu': 4.34.6
+ '@rollup/rollup-linux-arm64-musl': 4.34.6
+ '@rollup/rollup-linux-loongarch64-gnu': 4.34.6
+ '@rollup/rollup-linux-powerpc64le-gnu': 4.34.6
+ '@rollup/rollup-linux-riscv64-gnu': 4.34.6
+ '@rollup/rollup-linux-s390x-gnu': 4.34.6
+ '@rollup/rollup-linux-x64-gnu': 4.34.6
+ '@rollup/rollup-linux-x64-musl': 4.34.6
+ '@rollup/rollup-win32-arm64-msvc': 4.34.6
+ '@rollup/rollup-win32-ia32-msvc': 4.34.6
+ '@rollup/rollup-win32-x64-msvc': 4.34.6
fsevents: 2.3.3
dev: true
@@ -5977,6 +5977,7 @@ packages:
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
+ dev: false
resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
@@ -5986,6 +5987,7 @@ packages:
resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
engines: {node: '>=8'}
+ dev: false
resolution: {integrity: sha512-Pdz01AvCAottHTPQGzndktFNdbRA75BgOfeT1hH+AMnJFv8lynkPi42rfeEhpx1saTEI3YNMWxfqu0sFD1G8pw==}
@@ -6003,18 +6005,16 @@ packages:
engines: {node: '>=0.10.0'}
dev: false
+ resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
+ engines: {node: '>=0.10.0'}
+ dev: true
+
resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==}
engines: {node: '>= 8'}
dev: false
- resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}
- engines: {node: '>= 8'}
- dependencies:
- whatwg-url: 7.1.0
- dev: true
-
resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}
dev: false
@@ -6032,6 +6032,11 @@ packages:
swrev: 4.0.0
dev: false
+ resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==}
+ engines: {node: '>=18'}
+ dev: true
+
resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}
engines: {node: '>=10.0.0'}
@@ -6055,6 +6060,15 @@ packages:
strip-ansi: 7.1.0
dev: true
+ resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}
+ engines: {node: '>=18'}
+ dependencies:
+ emoji-regex: 10.4.0
+ get-east-asian-width: 1.3.0
+ strip-ansi: 7.1.0
+ dev: true
+
resolution: {integrity: sha512-NUdh0aDavY2og7IbBPenWqR9exH+E26Sv8e0/eTe1tltDGZL+GtBkDAnnyBtmekfK6/Dq3MkcGtzXFEd1LQrtg==}
engines: {node: '>= 0.4'}
@@ -6135,11 +6149,6 @@ packages:
engines: {node: '>=0.10.0'}
dev: false
- resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}
- engines: {node: '>=6'}
- dev: true
-
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
@@ -6341,17 +6350,6 @@ packages:
resolution: {integrity: sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==}
dev: false
- resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==}
- dependencies:
- punycode: 2.3.1
- dev: true
-
- resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
- hasBin: true
- dev: true
-
resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}
dev: false
@@ -6386,40 +6384,8 @@ packages:
resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
dev: false
- resolution: {integrity: sha512-L3o8hGkaHnu5TdJns+mCqFsDBo83bJ44rlK7e6VdanIvpea4ArPcU3swWGsLVbXak1PqQx/V+SSmFPujBK+zEQ==}
- engines: {node: '>=14.18'}
- hasBin: true
- peerDependencies:
- '@swc/core': ^1
- postcss: ^8.4.12
- typescript: '>=4.1.0'
- peerDependenciesMeta:
- '@swc/core':
- optional: true
- postcss:
- optional: true
- typescript:
- optional: true
- dependencies:
- bundle-require: 4.2.1([email protected])
- cac: 6.7.14
- chokidar: 3.6.0
- debug: 4.3.5
- esbuild: 0.17.19
- execa: 5.1.1
- globby: 11.1.0
- joycon: 3.1.1
- postcss-load-config: 3.1.4
- resolve-from: 5.0.0
- rollup: 3.29.4
- source-map: 0.8.0-beta.0
- sucrase: 3.35.0
- tree-kill: 1.2.2
- typescript: 4.9.5
- transitivePeerDependencies:
- - supports-color
- - ts-node
+ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
dev: true
@@ -6831,18 +6797,6 @@ packages:
resolution: {integrity: sha512-BSR9wyRsy/KOValMgd5kMyr3JzpdeoR9KVId8u5GVlTTAtNChlsE4yTxeY7zMdNSyOmoKBv8NH2qeRY9Tg+IaA==}
dev: false
- resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==}
- dev: true
-
- resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==}
- dependencies:
- lodash.sortby: 4.7.0
- tr46: 1.0.1
- webidl-conversions: 4.0.2
- dev: true
-
resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==}
dependencies:
@@ -6933,21 +6887,39 @@ packages:
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
dev: false
+ resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
+ engines: {node: '>=10'}
+ dev: true
+
resolution: {integrity: sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==}
dev: false
- resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}
- engines: {node: '>= 6'}
- dev: true
-
resolution: {integrity: sha512-sntgmxj8o7DE7g/Qi60cqpLBA3HG3STcDA0kO+WfB05jEKhZMbY7umNm2rBpQvsmZ16/lPXCJGW2672dgOUkrg==}
engines: {node: '>= 14'}
hasBin: true
dev: true
+ resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}
+ engines: {node: '>=12'}
+ dev: true
+
+ resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==}
+ engines: {node: '>=12'}
+ dependencies:
+ cliui: 8.0.1
+ escalade: 3.1.2
+ get-caller-file: 2.0.5
+ require-directory: 2.1.1
+ string-width: 4.2.3
+ y18n: 5.0.8
+ yargs-parser: 21.1.1
+ dev: true
+
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
diff --git a/src/index.tsx b/src/index.tsx
index 286996e..6c66c89 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import React, { forwardRef, isValidElement } from 'react';
+import React from 'react';
import ReactDOM from 'react-dom';
import { CloseIcon, getAsset, Loader } from './assets';
@@ -22,7 +22,7 @@ import {
const VISIBLE_TOASTS_AMOUNT = 3;
// Viewport padding
-const VIEWPORT_OFFSET = '32px';
+const VIEWPORT_OFFSET = '24px';
// Mobile viewport padding
const MOBILE_VIEWPORT_OFFSET = '16px';
@@ -37,7 +37,7 @@ const TOAST_WIDTH = 356;
const GAP = 14;
// Threshold to dismiss a toast
-const SWIPE_THRESHOLD = 20;
+const SWIPE_THRESHOLD = 45;
// Equal to exit animation duration
const TIME_BEFORE_UNMOUNT = 200;
@@ -84,12 +84,10 @@ const Toast = (props: ToastProps) => {
duration: durationFromToaster,
position,
gap,
- loadingIcon: loadingIconProp,
expandByDefault,
classNames,
icons,
closeButtonAriaLabel = 'Close toast',
- pauseWhenPageIsHidden,
} = props;
const [swipeDirection, setSwipeDirection] = React.useState<'x' | 'y' | null>(null);
const [swipeOutDirection, setSwipeOutDirection] = React.useState<'left' | 'right' | 'up' | 'down' | null>(null);
@@ -226,14 +224,14 @@ const Toast = (props: ToastProps) => {
}, remainingTime.current);
};
- if (expanded || interacting || (pauseWhenPageIsHidden && isDocumentHidden)) {
+ if (expanded || interacting || isDocumentHidden) {
pauseTimer();
} else {
startTimer();
}
return () => clearTimeout(timeoutId);
- }, [expanded, interacting, toast, toastType, pauseWhenPageIsHidden, isDocumentHidden, deleteToast]);
+ }, [expanded, interacting, toast, toastType, isDocumentHidden, deleteToast]);
React.useEffect(() => {
if (toast.delete) {
@@ -253,16 +251,6 @@ const Toast = (props: ToastProps) => {
);
}
- if (loadingIconProp) {
- return (
- <div
- className={cn(classNames?.loader, toast?.classNames?.loader, 'sonner-loader')}
- data-visible={toastType === 'loading'}
- >
- {loadingIconProp}
- </div>
- );
- }
return <Loader className={cn(classNames?.loader, toast?.classNames?.loader)} visible={toastType === 'loading'} />;
}
@@ -341,6 +329,7 @@ const Toast = (props: ToastProps) => {
if (Math.abs(swipeAmount) >= SWIPE_THRESHOLD || velocity > 0.11) {
setOffsetBeforeRemove(offset.current);
+
toast.onDismiss?.(toast);
if (swipeDirection === 'x') {
@@ -353,6 +342,9 @@ const Toast = (props: ToastProps) => {
setSwipeOut(true);
setIsSwiped(false);
return;
+ } else {
+ toastRef.current?.style.setProperty('--swipe-amount-x', `0px`);
+ toastRef.current?.style.setProperty('--swipe-amount-y', `0px`);
}
setSwiping(false);
@@ -376,23 +368,35 @@ const Toast = (props: ToastProps) => {
let swipeAmount = { x: 0, y: 0 };
+ const getDampening = (delta: number) => {
+ const factor = Math.abs(delta) / 20;
+
+ return 1 / (1.5 + factor);
+ };
+
// Only apply swipe in the locked direction
if (swipeDirection === 'y') {
// Handle vertical swipes
if (swipeDirections.includes('top') || swipeDirections.includes('bottom')) {
- if (swipeDirections.includes('top') && yDelta < 0) {
- swipeAmount.y = yDelta;
- } else if (swipeDirections.includes('bottom') && yDelta > 0) {
+ if ((swipeDirections.includes('top') && yDelta < 0) || (swipeDirections.includes('bottom') && yDelta > 0)) {
swipeAmount.y = yDelta;
+ } else {
+ // Smoothly transition to dampened movement
+ const dampenedDelta = yDelta * getDampening(yDelta);
+ // Ensure we don't jump when transitioning to dampened movement
+ swipeAmount.y = Math.abs(dampenedDelta) < Math.abs(yDelta) ? dampenedDelta : yDelta;
}
}
} else if (swipeDirection === 'x') {
// Handle horizontal swipes
if (swipeDirections.includes('left') || swipeDirections.includes('right')) {
- if (swipeDirections.includes('left') && xDelta < 0) {
- swipeAmount.x = xDelta;
- } else if (swipeDirections.includes('right') && xDelta > 0) {
+ if ((swipeDirections.includes('left') && xDelta < 0) || (swipeDirections.includes('right') && xDelta > 0)) {
swipeAmount.x = xDelta;
+ } else {
+ // Smoothly transition to dampened movement
+ const dampenedDelta = xDelta * getDampening(xDelta);
+ // Ensure we don't jump when transitioning to dampened movement
+ swipeAmount.x = Math.abs(dampenedDelta) < Math.abs(xDelta) ? dampenedDelta : xDelta;
}
}
}
@@ -406,7 +410,7 @@ const Toast = (props: ToastProps) => {
toastRef.current?.style.setProperty('--swipe-amount-y', `${swipeAmount.y}px`);
}}
>
- {closeButton && !toast.jsx ? (
+ {closeButton && !toast.jsx && toastType !== 'loading' ? (
<button
aria-label={closeButtonAriaLabel}
data-disabled={disabled}
@@ -425,81 +429,69 @@ const Toast = (props: ToastProps) => {
</button>
) : null}
{/* TODO: This can be cleaner */}
- {toast.jsx || isValidElement(toast.title) ? (
- toast.jsx ? (
- toast.jsx
- ) : typeof toast.title === 'function' ? (
- toast.title()
- ) : (
- toast.title
- )
- ) : (
- <>
- {toastType || toast.icon || toast.promise ? (
- <div data-icon="" className={cn(classNames?.icon, toast?.classNames?.icon)}>
- {toast.promise || (toast.type === 'loading' && !toast.icon) ? toast.icon || getLoadingIcon() : null}
- {toast.type !== 'loading' ? toast.icon || icons?.[toastType] || getAsset(toastType) : null}
- </div>
- ) : null}
-
- <div data-content="" className={cn(classNames?.content, toast?.classNames?.content)}>
- <div data-title="" className={cn(classNames?.title, toast?.classNames?.title)}>
- {typeof toast.title === 'function' ? toast.title() : toast.title}
- </div>
- {toast.description ? (
- <div
- data-description=""
- className={cn(
- descriptionClassName,
- toastDescriptionClassname,
- classNames?.description,
- toast?.classNames?.description,
- )}
- >
- {typeof toast.description === 'function' ? toast.description() : toast.description}
- </div>
- ) : null}
+ {toastType || toast.icon || toast.promise ? (
+ <div data-icon="" className={cn(classNames?.icon, toast?.classNames?.icon)}>
+ {toast.promise || (toast.type === 'loading' && !toast.icon) ? toast.icon || getLoadingIcon() : null}
+ {toast.type !== 'loading' ? toast.icon || icons?.[toastType] || getAsset(toastType) : null}
+ </div>
+ ) : null}
+
+ <div data-content="" className={cn(classNames?.content, toast?.classNames?.content)}>
+ <div data-title="" className={cn(classNames?.title, toast?.classNames?.title)}>
+ {toast.jsx ? toast.jsx : typeof toast.title === 'function' ? toast.title() : toast.title}
+ </div>
+ {toast.description ? (
+ <div
+ data-description=""
+ className={cn(
+ descriptionClassName,
+ toastDescriptionClassname,
+ classNames?.description,
+ toast?.classNames?.description,
+ )}
+ >
+ {typeof toast.description === 'function' ? toast.description() : toast.description}
</div>
- {isValidElement(toast.cancel) ? (
- toast.cancel
- ) : toast.cancel && isAction(toast.cancel) ? (
- <button
- data-button
- data-cancel
- style={toast.cancelButtonStyle || cancelButtonStyle}
- onClick={(event) => {
- // We need to check twice because typescript
- if (!isAction(toast.cancel)) return;
- if (!dismissible) return;
- toast.cancel.onClick?.(event);
- deleteToast();
- }}
- className={cn(classNames?.cancelButton, toast?.classNames?.cancelButton)}
- >
- {toast.cancel.label}
- </button>
- ) : null}
- {isValidElement(toast.action) ? (
- toast.action
- ) : toast.action && isAction(toast.action) ? (
- <button
- data-button
- data-action
- style={toast.actionButtonStyle || actionButtonStyle}
- onClick={(event) => {
- // We need to check twice because typescript
- if (!isAction(toast.action)) return;
- toast.action.onClick?.(event);
- if (event.defaultPrevented) return;
- deleteToast();
- }}
- className={cn(classNames?.actionButton, toast?.classNames?.actionButton)}
- >
- {toast.action.label}
- </button>
- ) : null}
- </>
- )}
+ ) : null}
+ </div>
+ {React.isValidElement(toast.cancel) ? (
+ toast.cancel
+ ) : toast.cancel && isAction(toast.cancel) ? (
+ <button
+ data-button
+ data-cancel
+ style={toast.cancelButtonStyle || cancelButtonStyle}
+ onClick={(event) => {
+ // We need to check twice because typescript
+ if (!isAction(toast.cancel)) return;
+ if (!dismissible) return;
+ toast.cancel.onClick?.(event);
+ deleteToast();
+ }}
+ className={cn(classNames?.cancelButton, toast?.classNames?.cancelButton)}
+ >
+ {toast.cancel.label}
+ </button>
+ ) : null}
+ {React.isValidElement(toast.action) ? (
+ toast.action
+ ) : toast.action && isAction(toast.action) ? (
+ <button
+ data-button
+ data-action
+ style={toast.actionButtonStyle || actionButtonStyle}
+ onClick={(event) => {
+ // We need to check twice because typescript
+ if (!isAction(toast.action)) return;
+ toast.action.onClick?.(event);
+ if (event.defaultPrevented) return;
+ deleteToast();
+ }}
+ className={cn(classNames?.actionButton, toast?.classNames?.actionButton)}
+ >
+ {toast.action.label}
+ </button>
+ ) : null}
</li>
);
};
@@ -590,7 +582,7 @@ function useSonner() {
};
}
-const Toaster = forwardRef<HTMLElement, ToasterProps>(function Toaster(props, ref) {
+const Toaster = React.forwardRef<HTMLElement, ToasterProps>(function Toaster(props, ref) {
const {
invert,
position = 'bottom-right',
@@ -608,10 +600,8 @@ const Toaster = forwardRef<HTMLElement, ToasterProps>(function Toaster(props, re
toastOptions,
dir = getDocumentDirection(),
gap = GAP,
- loadingIcon,
icons,
containerAriaLabel = 'Notifications',
- pauseWhenPageIsHidden,
} = props;
const [toasts, setToasts] = React.useState<ToastT[]>([]);
const possiblePositions = React.useMemo(() => {
@@ -650,31 +640,33 @@ const Toaster = forwardRef<HTMLElement, ToasterProps>(function Toaster(props, re
React.useEffect(() => {
return ToastState.subscribe((toast) => {
if ((toast as ToastToDismiss).dismiss) {
- setToasts((toasts) => toasts.map((t) => (t.id === toast.id ? { ...t, delete: true } : t)));
+ const map = toasts.map((t) => (t.id === toast.id ? { ...t, delete: true } : t));
+ // Prevent batching of other state updates
+ requestAnimationFrame(() => {
+ setToasts(map);
+ });
return;
}
// Prevent batching, temp solution.
- setTimeout(() => {
- ReactDOM.flushSync(() => {
- setToasts((toasts) => {
- const indexOfExistingToast = toasts.findIndex((t) => t.id === toast.id);
-
- // Update the toast if it already exists
- if (indexOfExistingToast !== -1) {
- return [
- ...toasts.slice(0, indexOfExistingToast),
- { ...toasts[indexOfExistingToast], ...toast },
- ...toasts.slice(indexOfExistingToast + 1),
- ];
- }
+ ReactDOM.flushSync(() => {
+ setToasts((toasts) => {
+ const indexOfExistingToast = toasts.findIndex((t) => t.id === toast.id);
+
+ // Update the toast if it already exists
+ if (indexOfExistingToast !== -1) {
+ return [
+ ...toasts.slice(0, indexOfExistingToast),
+ { ...toasts[indexOfExistingToast], ...toast },
+ ...toasts.slice(indexOfExistingToast + 1),
+ ];
+ }
- return [toast, ...toasts];
- });
+ return [toast, ...toasts];
});
});
});
- }, []);
+ }, [toasts]);
React.useEffect(() => {
if (theme !== 'system') {
@@ -785,7 +777,7 @@ const Toaster = forwardRef<HTMLElement, ToasterProps>(function Toaster(props, re
ref={listRef}
className={className}
data-sonner-toaster
- data-theme={actualTheme}
+ data-sonner-theme={actualTheme}
data-y-position={y}
data-lifted={expanded && toasts.length > 1 && !expand}
data-x-position={x}
@@ -858,15 +850,14 @@ const Toaster = forwardRef<HTMLElement, ToasterProps>(function Toaster(props, re
classNames={toastOptions?.classNames}
cancelButtonStyle={toastOptions?.cancelButtonStyle}
actionButtonStyle={toastOptions?.actionButtonStyle}
+ closeButtonAriaLabel={toastOptions?.closeButtonAriaLabel}
removeToast={removeToast}
toasts={toasts.filter((t) => t.position == toast.position)}
heights={heights.filter((h) => h.position == toast.position)}
setHeights={setHeights}
expandByDefault={expand}
gap={gap}
- loadingIcon={loadingIcon}
expanded={expanded}
- pauseWhenPageIsHidden={pauseWhenPageIsHidden}
swipeDirections={props.swipeDirections}
/>
))}
@@ -876,5 +867,6 @@ const Toaster = forwardRef<HTMLElement, ToasterProps>(function Toaster(props, re
</section>
);
});
+
export { toast, Toaster, type ExternalToast, type ToastT, type ToasterProps, useSonner };
export { type ToastClassnames, type ToastToDismiss, type Action } from './types';
diff --git a/src/state.ts b/src/state.ts
index cc5f3bd..49ef523 100644
--- a/src/state.ts
+++ b/src/state.ts
@@ -1,4 +1,12 @@
-import type { ExternalToast, PromiseData, PromiseT, ToastT, ToastToDismiss, ToastTypes } from './types';
+import type {
+ ExternalToast,
+ PromiseData,
+ PromiseIExtendedResult,
+ PromiseT,
+ ToastT,
+ ToastToDismiss,
+ ToastTypes,
+} from './types';
import React from 'react';
@@ -85,7 +93,8 @@ class Observer {
this.subscribers.forEach((subscriber) => subscriber({ id: toast.id, dismiss: true }));
});
}
- this.subscribers.forEach((subscriber) => subscriber({ id, dismiss: true }));
+
+ requestAnimationFrame(() => this.subscribers.forEach((subscriber) => subscriber({ id, dismiss: true })));
return id;
};
@@ -130,7 +139,7 @@ class Observer {
});
}
- const p = promise instanceof Promise ? promise : promise();
+ const p = Promise.resolve(promise instanceof Function ? promise() : promise);
let shouldDismiss = id !== undefined;
let result: ['resolve', ToastData] | ['reject', unknown];
@@ -144,28 +153,51 @@ class Observer {
this.create({ id, type: 'default', message: response });
} else if (isHttpResponse(response) && !response.ok) {
shouldDismiss = false;
- const message =
+ const promiseData =
typeof data.error === 'function' ? await data.error(`HTTP error! status: ${response.status}`) : data.error;
const description =
typeof data.description === 'function'
? await data.description(`HTTP error! status: ${response.status}`)
: data.description;
- this.create({ id, type: 'error', message, description });
+
+ const toastSettings: PromiseIExtendedResult =
+ typeof promiseData === 'object' ? (promiseData as PromiseIExtendedResult) : { message: promiseData };
+
+ this.create({ id, type: 'error', description, ...toastSettings });
+ } else if (response instanceof Error) {
+ shouldDismiss = false;
+
+ const promiseData = typeof data.error === 'function' ? await data.error(response) : data.error;
+ const description =
+ typeof data.description === 'function' ? await data.description(response) : data.description;
+
+ const toastSettings: PromiseIExtendedResult =
+ typeof promiseData === 'object' ? (promiseData as PromiseIExtendedResult) : { message: promiseData };
+
+ this.create({ id, type: 'error', description, ...toastSettings });
} else if (data.success !== undefined) {
shouldDismiss = false;
- const message = typeof data.success === 'function' ? await data.success(response) : data.success;
+ const promiseData = typeof data.success === 'function' ? await data.success(response) : data.success;
const description =
typeof data.description === 'function' ? await data.description(response) : data.description;
- this.create({ id, type: 'success', message, description });
+
+ const toastSettings: PromiseIExtendedResult =
+ typeof promiseData === 'object' ? (promiseData as PromiseIExtendedResult) : { message: promiseData };
+
+ this.create({ id, type: 'success', description, ...toastSettings });
}
})
.catch(async (error) => {
result = ['reject', error];
if (data.error !== undefined) {
shouldDismiss = false;
- const message = typeof data.error === 'function' ? await data.error(error) : data.error;
+ const promiseData = typeof data.error === 'function' ? await data.error(error) : data.error;
const description = typeof data.description === 'function' ? await data.description(error) : data.description;
- this.create({ id, type: 'error', message, description });
+
+ const toastSettings: PromiseIExtendedResult =
+ typeof promiseData === 'object' ? (promiseData as PromiseIExtendedResult) : { message: promiseData };
+
+ this.create({ id, type: 'error', description, ...toastSettings });
}
})
.finally(() => {
diff --git a/src/styles.css b/src/styles.css
index ddca7db..18adb56 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -1,5 +1,5 @@
-:where(html[dir='ltr']),
-:where([data-sonner-toaster][dir='ltr']) {
+html[dir='ltr'],
+[data-sonner-toaster][dir='ltr'] {
--toast-icon-margin-start: -3px;
--toast-icon-margin-end: 4px;
--toast-svg-margin-start: -1px;
@@ -11,8 +11,8 @@
--toast-close-button-transform: translate(-35%, -35%);
}
-:where(html[dir='rtl']),
-:where([data-sonner-toaster][dir='rtl']) {
+html[dir='rtl'],
+[data-sonner-toaster][dir='rtl'] {
--toast-icon-margin-start: 4px;
--toast-icon-margin-end: -3px;
--toast-svg-margin-start: 0px;
@@ -24,7 +24,7 @@
--toast-close-button-transform: translate(35%, -35%);
}
-:where([data-sonner-toaster]) {
+[data-sonner-toaster] {
position: fixed;
width: var(--width);
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial,
@@ -51,46 +51,44 @@
transition: transform 400ms ease;
}
-:where([data-sonner-toaster][data-lifted='true']) {
- transform: translateY(-10px);
+[data-sonner-toaster][data-lifted='true'] {
+ transform: translateY(-8px);
}
@media (hover: none) and (pointer: coarse) {
- :where([data-sonner-toaster][data-lifted='true']) {
+ [data-sonner-toaster][data-lifted='true'] {
transform: none;
}
}
-:where([data-sonner-toaster][data-x-position='right']) {
+[data-sonner-toaster][data-x-position='right'] {
right: var(--offset-right);
}
-:where([data-sonner-toaster][data-x-position='left']) {
+[data-sonner-toaster][data-x-position='left'] {
left: var(--offset-left);
}
-:where([data-sonner-toaster][data-x-position='center']) {
+[data-sonner-toaster][data-x-position='center'] {
left: 50%;
transform: translateX(-50%);
}
-:where([data-sonner-toaster][data-y-position='top']) {
+[data-sonner-toaster][data-y-position='top'] {
top: var(--offset-top);
}
-:where([data-sonner-toaster][data-y-position='bottom']) {
+[data-sonner-toaster][data-y-position='bottom'] {
bottom: var(--offset-bottom);
}
-:where([data-sonner-toast]) {
+[data-sonner-toast] {
--y: translateY(100%);
--lift-amount: calc(var(--lift) * var(--gap));
z-index: var(--z-index);
position: absolute;
opacity: 0;
transform: var(--y);
- filter: blur(0);
- /* https://stackoverflow.com/questions/48124372/pointermove-event-not-working-with-touch-why-not */
touch-action: none;
transition: transform 400ms, opacity 400ms, height 400ms, box-shadow 200ms;
box-sizing: border-box;
@@ -98,7 +96,7 @@
overflow-wrap: anywhere;
}
-:where([data-sonner-toast][data-styled='true']) {
+[data-sonner-toast][data-styled='true'] {
padding: 16px;
background: var(--normal-bg);
border: 1px solid var(--normal-border);
@@ -112,37 +110,41 @@
gap: 6px;
}
-:where([data-sonner-toast]:focus-visible) {
+[data-sonner-toast]:focus-visible {
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(0, 0, 0, 0.2);
}
-:where([data-sonner-toast][data-y-position='top']) {
+[data-sonner-toast][data-y-position='top'] {
top: 0;
--y: translateY(-100%);
--lift: 1;
--lift-amount: calc(1 * var(--gap));
}
-:where([data-sonner-toast][data-y-position='bottom']) {
+[data-sonner-toast][data-y-position='bottom'] {
bottom: 0;
--y: translateY(100%);
--lift: -1;
--lift-amount: calc(var(--lift) * var(--gap));
}
-:where([data-sonner-toast]) :where([data-description]) {
+[data-sonner-toast][data-styled='true'] [data-description] {
font-weight: 400;
line-height: 1.4;
- color: inherit;
+ color: #3f3f3f;
+}
+
+[data-sonner-toaster][data-sonner-theme='dark'] [data-description] {
+ color: hsl(0, 0%, 91%);
}
-:where([data-sonner-toast]) :where([data-title]) {
+[data-sonner-toast][data-styled='true'] [data-title] {
font-weight: 500;
line-height: 1.5;
color: inherit;
}
-:where([data-sonner-toast]) :where([data-icon]) {
+[data-sonner-toast][data-styled='true'] [data-icon] {
display: flex;
height: 16px;
width: 16px;
@@ -154,23 +156,23 @@
margin-right: var(--toast-icon-margin-end);
}
-:where([data-sonner-toast][data-promise='true']) :where([data-icon]) > svg {
+[data-sonner-toast][data-promise='true'] [data-icon] > svg {
opacity: 0;
transform: scale(0.8);
transform-origin: center;
animation: sonner-fade-in 300ms ease forwards;
}
-:where([data-sonner-toast]) :where([data-icon]) > * {
+[data-sonner-toast][data-styled='true'] [data-icon] > * {
flex-shrink: 0;
}
-:where([data-sonner-toast]) :where([data-icon]) svg {
+[data-sonner-toast][data-styled='true'] [data-icon] svg {
margin-left: var(--toast-svg-margin-start);
margin-right: var(--toast-svg-margin-end);
}
-:where([data-sonner-toast]) :where([data-content]) {
+[data-sonner-toast][data-styled='true'] [data-content] {
display: flex;
flex-direction: column;
gap: 2px;
@@ -187,6 +189,7 @@
margin-left: var(--toast-button-margin-start);
margin-right: var(--toast-button-margin-end);
border: none;
+ font-weight: 500;
cursor: pointer;
outline: none;
display: flex;
@@ -195,25 +198,25 @@
transition: opacity 400ms, box-shadow 200ms;
}
-:where([data-sonner-toast]) :where([data-button]):focus-visible {
+[data-sonner-toast][data-styled='true'] [data-button]:focus-visible {
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
}
-:where([data-sonner-toast]) :where([data-button]):first-of-type {
+[data-sonner-toast][data-styled='true'] [data-button]:first-of-type {
margin-left: var(--toast-button-margin-start);
margin-right: var(--toast-button-margin-end);
}
-:where([data-sonner-toast]) :where([data-cancel]) {
+[data-sonner-toast][data-styled='true'] [data-cancel] {
color: var(--normal-text);
background: rgba(0, 0, 0, 0.08);
}
-:where([data-sonner-toast][data-theme='dark']) :where([data-cancel]) {
+[data-sonner-toaster][data-sonner-theme='dark'] [data-sonner-toast][data-styled='true'] [data-cancel] {
background: rgba(255, 255, 255, 0.3);
}
-:where([data-sonner-toast]) :where([data-close-button]) {
+[data-sonner-toast][data-styled='true'] [data-close-button] {
position: absolute;
left: var(--toast-close-button-start);
right: var(--toast-close-button-end);
@@ -225,6 +228,7 @@
align-items: center;
padding: 0;
color: var(--gray12);
+ background: var(--normal-bg);
border: 1px solid var(--gray4);
transform: var(--toast-close-button-transform);
border-radius: 50%;
@@ -233,55 +237,46 @@
transition: opacity 100ms, background 200ms, border-color 200ms;
}
-[data-sonner-toast] [data-close-button] {
- background: var(--gray1);
-}
-
-:where([data-sonner-toast]) :where([data-close-button]):focus-visible {
+[data-sonner-toast][data-styled='true'] [data-close-button]:focus-visible {
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(0, 0, 0, 0.2);
}
-:where([data-sonner-toast]) :where([data-disabled='true']) {
+[data-sonner-toast][data-styled='true'] [data-disabled='true'] {
cursor: not-allowed;
}
-:where([data-sonner-toast]):hover :where([data-close-button]):hover {
+[data-sonner-toast][data-styled='true']:hover [data-close-button]:hover {
background: var(--gray2);
border-color: var(--gray5);
}
-/* Leave a ghost div to avoid setting hover to false when swiping out */
-:where([data-sonner-toast][data-swiping='true'])::before {
+[data-sonner-toast][data-swiping='true']::before {
content: '';
position: absolute;
- left: -50%;
- right: -50%;
+ left: -100%;
+ right: -100%;
height: 100%;
z-index: -1;
}
-:where([data-sonner-toast][data-y-position='top'][data-swiping='true'])::before {
- /* y 50% needed to distribute height additional height evenly */
+[data-sonner-toast][data-y-position='top'][data-swiping='true']::before {
bottom: 50%;
transform: scaleY(3) translateY(50%);
}
-:where([data-sonner-toast][data-y-position='bottom'][data-swiping='true'])::before {
- /* y -50% needed to distribute height additional height evenly */
+[data-sonner-toast][data-y-position='bottom'][data-swiping='true']::before {
top: 50%;
transform: scaleY(3) translateY(-50%);
}
-/* Leave a ghost div to avoid setting hover to false when transitioning out */
-:where([data-sonner-toast][data-swiping='false'][data-removed='true'])::before {
+[data-sonner-toast][data-swiping='false'][data-removed='true']::before {
content: '';
position: absolute;
inset: 0;
transform: scaleY(2);
}
-/* Needed to avoid setting hover to false when inbetween toasts */
-:where([data-sonner-toast])::after {
+[data-sonner-toast]::after {
content: '';
position: absolute;
left: 0;
@@ -290,53 +285,60 @@
width: 100%;
}
-:where([data-sonner-toast][data-mounted='true']) {
+[data-sonner-toast][data-mounted='true'] {
--y: translateY(0);
opacity: 1;
}
-:where([data-sonner-toast][data-expanded='false'][data-front='false']) {
+[data-sonner-toast][data-expanded='false'][data-front='false'] {
--scale: var(--toasts-before) * 0.05 + 1;
--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));
height: var(--front-toast-height);
}
-:where([data-sonner-toast]) > * {
+[data-sonner-toast] > * {
transition: opacity 400ms;
}
-:where([data-sonner-toast][data-expanded='false'][data-front='false'][data-styled='true']) > * {
+[data-sonner-toast][data-x-position='right'] {
+ right: 0;
+}
+
+[data-sonner-toast][data-x-position='left'] {
+ left: 0;
+}
+
+[data-sonner-toast][data-expanded='false'][data-front='false'][data-styled='true'] > * {
opacity: 0;
}
-:where([data-sonner-toast][data-visible='false']) {
+[data-sonner-toast][data-visible='false'] {
opacity: 0;
pointer-events: none;
}
-:where([data-sonner-toast][data-mounted='true'][data-expanded='true']) {
+[data-sonner-toast][data-mounted='true'][data-expanded='true'] {
--y: translateY(calc(var(--lift) * var(--offset)));
height: var(--initial-height);
}
-:where([data-sonner-toast][data-removed='true'][data-front='true'][data-swipe-out='false']) {
+[data-sonner-toast][data-removed='true'][data-front='true'][data-swipe-out='false'] {
--y: translateY(calc(var(--lift) * -100%));
opacity: 0;
}
-:where([data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='true']) {
+[data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='true'] {
--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));
opacity: 0;
}
-:where([data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='false']) {
+[data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='false'] {
--y: translateY(40%);
opacity: 0;
transition: transform 500ms, opacity 200ms;
}
-/* Bump up the height to make sure hover state doesn't get set to false */
-:where([data-sonner-toast][data-removed='true'][data-front='false'])::before {
+[data-sonner-toast][data-removed='true'][data-front='false']::before {
height: calc(var(--initial-height) + 20%);
}
@@ -457,21 +459,21 @@
}
}
-[data-sonner-toaster][data-theme='light'] {
+[data-sonner-toaster][data-sonner-theme='light'] {
--normal-bg: #fff;
--normal-border: var(--gray4);
--normal-text: var(--gray12);
--success-bg: hsl(143, 85%, 96%);
- --success-border: hsl(145, 92%, 91%);
+ --success-border: hsl(145, 92%, 87%);
--success-text: hsl(140, 100%, 27%);
--info-bg: hsl(208, 100%, 97%);
- --info-border: hsl(221, 91%, 91%);
+ --info-border: hsl(221, 91%, 93%);
--info-text: hsl(210, 92%, 45%);
--warning-bg: hsl(49, 100%, 97%);
- --warning-border: hsl(49, 91%, 91%);
+ --warning-border: hsl(49, 91%, 84%);
--warning-text: hsl(31, 92%, 45%);
--error-bg: hsl(359, 100%, 97%);
@@ -479,19 +481,19 @@
--error-text: hsl(360, 100%, 45%);
}
-[data-sonner-toaster][data-theme='light'] [data-sonner-toast][data-invert='true'] {
+[data-sonner-toaster][data-sonner-theme='light'] [data-sonner-toast][data-invert='true'] {
--normal-bg: #000;
--normal-border: hsl(0, 0%, 20%);
--normal-text: var(--gray1);
}
-[data-sonner-toaster][data-theme='dark'] [data-sonner-toast][data-invert='true'] {
+[data-sonner-toaster][data-sonner-theme='dark'] [data-sonner-toast][data-invert='true'] {
--normal-bg: #fff;
--normal-border: var(--gray3);
--normal-text: var(--gray12);
}
-[data-sonner-toaster][data-theme='dark'] {
+[data-sonner-toaster][data-sonner-theme='dark'] {
--normal-bg: #000;
--normal-bg-hover: hsl(0, 0%, 12%);
--normal-border: hsl(0, 0%, 20%);
@@ -503,11 +505,11 @@
--success-text: hsl(150, 86%, 65%);
--info-bg: hsl(215, 100%, 6%);
- --info-border: hsl(223, 100%, 12%);
+ --info-border: hsl(223, 43%, 17%);
--info-text: hsl(216, 87%, 65%);
--warning-bg: hsl(64, 100%, 6%);
- --warning-border: hsl(60, 100%, 12%);
+ --warning-border: hsl(60, 100%, 9%);
--warning-text: hsl(46, 87%, 65%);
--error-bg: hsl(358, 76%, 10%);
@@ -515,13 +517,13 @@
--error-text: hsl(358, 100%, 81%);
}
-[data-sonner-toaster][data-theme='dark'] [data-sonner-toast] [data-close-button] {
+[data-sonner-toaster][data-sonner-theme='dark'] [data-sonner-toast] [data-close-button] {
background: var(--normal-bg);
border-color: var(--normal-border);
color: var(--normal-text);
}
-[data-sonner-toaster][data-theme='dark'] [data-sonner-toast] [data-close-button]:hover {
+[data-sonner-toaster][data-sonner-theme='dark'] [data-sonner-toast] [data-close-button]:hover {
background: var(--normal-bg-hover);
border-color: var(--normal-border-hover);
}
diff --git a/src/types.ts b/src/types.ts
index b1b06fe..ac0563f 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -4,6 +4,14 @@ export type ToastTypes = 'normal' | 'action' | 'success' | 'info' | 'warning' |
export type PromiseT<Data = any> = Promise<Data> | (() => Promise<Data>);
+export interface PromiseIExtendedResult extends ExternalToast {
+ message: React.ReactNode;
+}
+
+export type PromiseTExtendedResult<Data = any> =
+ | PromiseIExtendedResult
+ | ((data: Data) => PromiseIExtendedResult | Promise<PromiseIExtendedResult>);
+
export type PromiseTResult<Data = any> =
| string
| React.ReactNode
@@ -13,8 +21,8 @@ export type PromiseExternalToast = Omit<ExternalToast, 'description'>;
export type PromiseData<ToastData = any> = PromiseExternalToast & {
loading?: string | React.ReactNode;
- success?: PromiseTResult<ToastData>;
- error?: PromiseTResult;
+ success?: PromiseTResult<ToastData> | PromiseTExtendedResult<ToastData>;
+ error?: PromiseTResult | PromiseTExtendedResult;
description?: PromiseTResult;
finally?: () => void | Promise<void>;
};
@@ -101,6 +109,7 @@ interface ToastOptions {
duration?: number;
unstyled?: boolean;
classNames?: ToastClassnames;
+ closeButtonAriaLabel?: string;
}
type Offset =
@@ -131,18 +140,8 @@ export interface ToasterProps {
mobileOffset?: Offset;
dir?: 'rtl' | 'ltr' | 'auto';
swipeDirections?: SwipeDirection[];
- /**
- * @deprecated Please use the `icons` prop instead:
- * ```jsx
- * <Toaster
- * icons={{ loading: <LoadingIcon /> }}
- * />
- * ```
- */
- loadingIcon?: React.ReactNode;
icons?: ToastIcons;
containerAriaLabel?: string;
- pauseWhenPageIsHidden?: boolean;
}
export type SwipeDirection = 'top' | 'right' | 'bottom' | 'left';
@@ -174,7 +173,6 @@ export interface ToastProps {
classNames?: ToastClassnames;
icons?: ToastIcons;
closeButtonAriaLabel?: string;
- pauseWhenPageIsHidden: boolean;
defaultRichColors?: boolean;
}
diff --git a/test/src/app/page.tsx b/test/src/app/page.tsx
index 83db7d4..940f302 100644
--- a/test/src/app/page.tsx
+++ b/test/src/app/page.tsx
@@ -11,6 +11,7 @@ export default function Home({ searchParams }: any) {
const [showDismiss, setShowDismiss] = React.useState(false);
const [theme, setTheme] = React.useState(searchParams.theme || 'light');
const [isFinally, setIsFinally] = React.useState(false);
+ const [showAriaLabels, setShowAriaLabels] = React.useState(false);
return (
<>
@@ -139,11 +140,13 @@ export default function Home({ searchParams }: any) {
className="button"
onClick={() =>
toast('My Toast', {
- onDismiss: () => setShowDismiss(true),
+ onDismiss: () => {
+ setShowDismiss(true);
+ },
})
}
>
- Render Toast With onAutoClose callback
+ Dismiss toast callback
</button>
<button
data-testid="non-dismissible-toast"
@@ -209,16 +212,120 @@ export default function Home({ searchParams }: any) {
>
Render close button
</button>
+ <button
+ data-testid="extended-promise"
+ className="button"
+ onClick={() =>
+ toast.promise(
+ new Promise((resolve) => {
+ setTimeout(() => {
+ resolve({ name: 'Sonner' });
+ }, 2000);
+ }),
+ {
+ loading: 'Loading...',
+ success: (data: any) => ({
+ message: `${data.name} toast has been added`,
+ description: 'Custom description for the Success state',
+ }),
+ error: {
+ message: 'An error occurred',
+ description: undefined,
+ action: {
+ label: 'Retry',
+ onClick: () => {
+ console.log('retrying');
+ },
+ },
+ },
+ description: 'Global description',
+ },
+ )
+ }
+ >
+ Extended Promise Toast
+ </button>
+
+
+ <button
+ data-testid="extended-promise-error"
+ className="button"
+ onClick={() =>
+ toast.promise(
+ new Promise((_, reject) => {
+ setTimeout(() => {
+ reject(new Error('Simulated error'));
+ }, 2000);
+ }),
+ {
+ loading: 'Loading...',
+ success: (data: any) => ({
+ message: `${data.name} toast has been added`,
+ description: 'Custom description for the Success state',
+ }),
+ error: {
+ message: 'An error occurred',
+ description: undefined,
+ action: {
+ label: 'Retry',
+ onClick: (event) => {
+ event.preventDefault();
+ console.log('retrying');
+ },
+ },
+ },
+ description: 'Global description',
+ },
+ )
+ }
+ >
+ Extended Promise Error Toast
+ </button>
+ <button
+ data-testid="error-promise"
+ className="button"
+ onClick={() => {
+ const whatWillHappen = async () => {
+ throw new Error('Not implemented');
+ };
+
+ toast.promise(whatWillHappen, {
+ loading: 'Saving project...',
+ success: (result: any) => {
+ if (result?.ok) {
+ return 'Project saved';
+ } else {
+ return `${result?.error}`;
+ }
+ },
+ error: (e) => `Error Raise: ${e}`,
+ });
+ }}
+ >
+ Error Promise Toast
+ </button>
+ <button
+ className="button"
+ onClick={() => {
+ setShowAriaLabels(true);
+ toast('Toast with custom ARIA labels', { closeButton: true, onAutoClose: () => setShowAriaLabels(false) });
+ }}
+ >
+ With custom ARIA labels
+ </button>
{showAutoClose ? <div data-testid="auto-close-el" /> : null}
{showDismiss ? <div data-testid="dismiss-el" /> : null}
<Toaster
+ offset={32}
position={searchParams.position || 'bottom-right'}
toastOptions={{
actionButtonStyle: { backgroundColor: 'rgb(219, 239, 255)' },
cancelButtonStyle: { backgroundColor: 'rgb(254, 226, 226)' },
+ closeButtonAriaLabel: showAriaLabels ? 'Yeet the notice' : undefined,
}}
theme={theme}
dir={searchParams.dir || 'auto'}
+ containerAriaLabel={showAriaLabels ? 'Notices' : undefined}
icons={{
close:
searchParams.customCloseIcon === '' ? (
diff --git a/test/tests/basic.spec.ts b/test/tests/basic.spec.ts
index 4c9a2ab..87a9655 100644
--- a/test/tests/basic.spec.ts
+++ b/test/tests/basic.spec.ts
@@ -40,6 +40,45 @@ test.describe('Basic functionality', () => {
await expect(toast.promise(rejectedPromise, {}).unwrap()).rejects.toThrow('Promise rejected');
});
+ test('promise toast with extended configuration', async ({ page }) => {
+ await page.getByTestId('extended-promise').click();
+
+ // Check loading state
+ await expect(page.getByText('Loading...')).toHaveCount(1);
+
+ // Check success state with custom message and description
+ await expect(page.getByText('Sonner toast has been added')).toHaveCount(1);
+ await expect(page.getByText('Custom description for the Success state')).toHaveCount(1);
+
+ // Verify global description is not shown (overridden by success description)
+ await expect(page.getByText('Global description')).toHaveCount(0);
+ });
+
+ test('promise toast with extended error configuration', async ({ page }) => {
+ await page.getByTestId('extended-promise-error').click();
+
+ // Check loading state
+ await expect(page.getByText('Loading...')).toHaveCount(1);
+
+ // Check error state
+ await expect(page.getByText('An error occurred')).toHaveCount(1);
+
+ // Verify action button is present
+ const actionButton = page.getByText('Retry');
+ await expect(actionButton).toHaveCount(1);
+
+ // Click retry button and verify it doesn't close the toast (due to preventDefault)
+ await actionButton.click();
+ await expect(page.getByText('An error occurred')).toHaveCount(1);
+ });
+
+ test('promise toast with Error object rejection', async ({ page }) => {
+ await page.getByTestId('error-promise').click();
+
+ // Check error state shows the error message correctly
+ await expect(page.getByText('Error Raise: Error: Not implemented')).toHaveCount(1);
+ });
+
test('render custom jsx in toast', async ({ page }) => {
await page.getByTestId('custom').click();
await expect(page.getByText('jsx')).toHaveCount(1);
@@ -81,18 +120,38 @@ test.describe('Basic functionality', () => {
test('toast is not removed when hovered', async ({ page }) => {
await page.getByTestId('default-button').click();
+
+ // Wait for toast to be visible first
+ await expect(page.locator('[data-sonner-toast]')).toBeVisible();
+
+ // Hover the toast
await page.hover('[data-sonner-toast]');
- const timeout = new Promise((resolve) => setTimeout(resolve, 5000));
- await timeout;
+
+ // Wait a bit to ensure hover is registered
+ await page.waitForTimeout(100);
+
+ // Create a longer timeout to verify toast persists
+ await page.waitForTimeout(5000);
+
+ // Verify toast is still visible
+ await expect(page.locator('[data-sonner-toast]')).toBeVisible();
await expect(page.locator('[data-sonner-toast]')).toHaveCount(1);
});
test('toast is not removed if duration is set to infinity', async ({ page }) => {
await page.getByTestId('infinity-toast').click();
- await page.hover('[data-sonner-toast]');
- const timeout = new Promise((resolve) => setTimeout(resolve, 5000));
- await timeout;
- await expect(page.locator('[data-sonner-toast]')).toHaveCount(1);
+
+ await expect(page.locator('[data-sonner-toast]')).toBeVisible();
+
+ const toast = page.locator('[data-sonner-toast]');
+ await toast.hover({ force: true });
+
+ await page.waitForTimeout(100);
+
+ await page.waitForTimeout(5000);
+
+ await expect(toast).toBeVisible();
+ await expect(toast).toHaveCount(1);
});
test('toast is not removed when event prevented in action', async ({ page }) => {
@@ -133,20 +192,20 @@ test.describe('Basic functionality', () => {
test("toaster's theme should be light", async ({ page }) => {
await page.getByTestId('infinity-toast').click();
- await expect(page.locator('[data-sonner-toaster]')).toHaveAttribute('data-theme', 'light');
+ await expect(page.locator('[data-sonner-toaster]')).toHaveAttribute('data-sonner-theme', 'light');
});
test("toaster's theme should be dark", async ({ page }) => {
await page.goto('/?theme=dark');
await page.getByTestId('infinity-toast').click();
- await expect(page.locator('[data-sonner-toaster]')).toHaveAttribute('data-theme', 'dark');
+ await expect(page.locator('[data-sonner-toaster]')).toHaveAttribute('data-sonner-theme', 'dark');
});
test("toaster's theme should be changed", async ({ page }) => {
await page.getByTestId('infinity-toast').click();
- await expect(page.locator('[data-sonner-toaster]')).toHaveAttribute('data-theme', 'light');
+ await expect(page.locator('[data-sonner-toaster]')).toHaveAttribute('data-sonner-theme', 'light');
await page.getByTestId('theme-button').click();
- await expect(page.locator('[data-sonner-toaster]')).toHaveAttribute('data-theme', 'dark');
+ await expect(page.locator('[data-sonner-toaster]')).toHaveAttribute('data-sonner-theme', 'dark');
});
test('return focus to the previous focused element', async ({ page }) => {
@@ -227,4 +286,11 @@ test.describe('Basic functionality', () => {
await page.getByTestId('react-node-description').click();
await expect(page.getByText('This is my custom ReactNode description')).toHaveCount(1);
});
+
+ test('aria labels are custom', async ({ page }) => {
+ await page.getByRole('button', { name: 'With custom ARIA labels' }).click();
+ await expect(page.getByText('Toast with custom ARIA labels')).toHaveCount(1);
+ await expect(page.getByLabel('Notices')).toHaveCount(1);
+ await expect(page.getByLabel('Yeet the notice', { exact: true })).toHaveCount(1);
+ });
});
diff --git a/tsconfig.json b/tsconfig.json
index 8523112..8ff924f 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,8 +1,10 @@
{
"compilerOptions": {
"jsx": "react",
+ "target": "ES2018",
"moduleResolution": "node",
"esModuleInterop": true,
"lib": ["es2015", "dom"]
- }
+ },
+ "include": ["src"]
}
diff --git a/tsup.config.ts b/tsup.config.ts
deleted file mode 100644
index 670de9c..0000000
--- a/tsup.config.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { defineConfig } from 'tsup';
-
-export default defineConfig({
- minify: true,
- target: 'es2018',
- external: ['react'],
- sourcemap: true,
- dts: true,
- format: ['esm', 'cjs'],
- injectStyle: true,
-});
diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx
index f74f8d9..7c5d21c 100644
--- a/website/src/pages/index.tsx
+++ b/website/src/pages/index.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { StrictMode } from 'react';
import { Toaster } from 'sonner';
import { Installation } from '@/src/components/Installation';
import { Hero } from '@/src/components/Hero';
@@ -20,7 +20,14 @@ export default function Home() {
return (
<div className="wrapper light">
<Head />
- <Toaster theme="light" richColors={richColors} closeButton={closeButton} expand={expand} position={position} />
+ <Toaster
+ theme="light"
+ richColors={richColors}
+ closeButton={closeButton}
+ expand={expand}
+ position={position}
+ duration={Infinity}
+ />
<main className="container">
<Hero />
<div className="content">
diff --git a/website/src/pages/toast.mdx b/website/src/pages/toast.mdx
index 9f96ee4..bd0b703 100644
--- a/website/src/pages/toast.mdx
+++ b/website/src/pages/toast.mdx
@@ -243,3 +243,4 @@ toast(
| unstyled | Removes the default styling, which allows for easier customization. | `false` |
| actionButtonStyle | Styles for the action button | `{}` |
| cancelButtonStyle | Styles for the cancel button | `{}` |
+
diff --git a/website/src/pages/toaster.mdx b/website/src/pages/toaster.mdx
index 38ebd1b..e3835c0 100644
--- a/website/src/pages/toaster.mdx
+++ b/website/src/pages/toaster.mdx
@@ -47,6 +47,15 @@ Changes the directionality of the toast's text.
<Toaster dir="rtl" />
```
+### Custom ARIA label
+
+You can customize the default ARIA label for the notification container and the toast close button.
+
+```jsx
+// example in Finnish
+<Toaster containerAriaLabel="Ilmoitukset" toastOptions={{closeButtonAriaLabel: 'Sulje'}} />
+```
+
## API Reference
| Property | Description | Default |