Skip to content

Commit d66388d

Browse files
emilkowalskihuozhidiegotraidynng3mirorauhala
authored
sonner v2.0 (#558)
* refactor: remove unstyled prop (#557) * fix: allow toats to grow properly (#559) * chore: rename data-theme to data-sonner-theme (#560) * fix: toast removal in strict mode (#563) * refactor: maintain default styles when custom (#564) * fix: check for promise properly (#565) * chore: horizontal swiping improvements (#566) * medium font weight * chore: improve rich colors (#567) * chore: improve base colors (#568) * improve colors * improve base colors * chore: remove lift interaction, decrease default gap (#569) * v2.0.0-beta.1 * chore: update toast lifetime (#570) * build: use bunchee (#561) * fix: failing tests (#572) * Fix tests * fix tests * fix: unstyled prop not being applied to all elements (#573) * Improve unstyled prop * Cleanup * fix: inability to remove a toast that has just been created (#574) * Prevent batching * Cleanup * hero cleanup * fix: close button background is transparent (#575) * chore: bring back lift on hover (#576) * v2.0.0-beta.2 * chore: remove deprecated props (#577) * feat: drag damping (#578) * dampen darg * Adjust swipe threshold * typo * Enhance Promise to support ExternalToast propertiesfeat: Promise enhancement to allow ExternalToast props (#547) * fix: make promises work with new Error (#579) * wip * Add test for error classin promises * chore: Hide the close button when toastType is loading (#516) #514 #476 * fix close button aria labels (#490) Co-authored-by: Emil Kowalski <36730035+emilkowalski@users.noreply.github.com> * fix: error promise test (#580) * v2.0.0-beta.3 --------- Co-authored-by: Jiachi Liu <inbox@huozhi.im> Co-authored-by: Diego Traid <35971053+diegotraid@users.noreply.github.com> Co-authored-by: 알노리 <67145096+ynng3@users.noreply.github.com> Co-authored-by: Miro Rauhala <4082806+mirorauhala@users.noreply.github.com>
1 parent 2c345fa commit d66388d

File tree

13 files changed

+1165
-981
lines changed

13 files changed

+1165
-981
lines changed

package.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
{
22
"name": "sonner",
3-
"version": "1.7.4",
3+
"version": "2.0.0-beta.3",
44
"description": "An opinionated toast component for React.",
55
"exports": {
66
".": {
7-
"types": "./dist/index.d.ts",
8-
"import": "./dist/index.mjs",
9-
"require": "./dist/index.js"
7+
"import": {
8+
"types": "./dist/index.d.mts",
9+
"default": "./dist/index.mjs"
10+
},
11+
"require": {
12+
"types": "./dist/index.d.ts",
13+
"default": "./dist/index.js"
14+
},
15+
"default": "./dist/index.js"
1016
},
1117
"./dist/styles.css": "./dist/styles.css"
1218
},
@@ -16,8 +22,9 @@
1622
"dist"
1723
],
1824
"scripts": {
19-
"build": "tsup src/index.tsx && cp src/styles.css dist/styles.css",
20-
"dev": "tsup src/index.tsx --watch",
25+
"dev": "bunchee --watch",
26+
"build": "bunchee && cp src/styles.css dist/styles.css",
27+
"type-check": "tsc --noEmit",
2128
"dev:website": "turbo run dev --filter=website...",
2229
"dev:test": "turbo run dev --filter=test...",
2330
"format": "prettier --write .",
@@ -44,10 +51,10 @@
4451
"@playwright/test": "^1.49.1",
4552
"@types/node": "^18.11.13",
4653
"@types/react": "^18.0.26",
54+
"bunchee": "^6.3.3",
4755
"prettier": "^2.8.4",
4856
"react": "^18.2.0",
4957
"react-dom": "^18.2.0",
50-
"tsup": "^6.4.0",
5158
"turbo": "1.6",
5259
"typescript": "^4.8.4"
5360
},

0 commit comments

Comments
 (0)