@react-stately/toast
Advanced tools
Comparing version 3.0.0-beta.0 to 3.0.0-beta.1
@@ -1,2 +0,1 @@ | ||
var $1uBRd$swchelperslib_define_propertyjs = require("@swc/helpers/lib/_define_property.js"); | ||
var $1uBRd$react = require("react"); | ||
@@ -8,5 +7,2 @@ var $1uBRd$usesyncexternalstoreshimindexjs = require("use-sync-external-store/shim/index.js"); | ||
} | ||
function $parcel$interopDefault(a) { | ||
return a && a.__esModule ? a.default : a; | ||
} | ||
@@ -38,3 +34,2 @@ $parcel$export(module.exports, "useToastState", () => $c995945a643dde76$export$c7b26b20d3ced9c5); | ||
function $c995945a643dde76$export$c7b26b20d3ced9c5(props = {}) { | ||
@@ -129,5 +124,5 @@ let { maxVisibleToasts: maxVisibleToasts = 1 , hasExitAnimation: hasExitAnimation = false } = props; | ||
constructor(options){ | ||
(0, ($parcel$interopDefault($1uBRd$swchelperslib_define_propertyjs)))(this, "queue", []); | ||
(0, ($parcel$interopDefault($1uBRd$swchelperslib_define_propertyjs)))(this, "subscriptions", new Set()); | ||
/** The currently visible toasts. */ (0, ($parcel$interopDefault($1uBRd$swchelperslib_define_propertyjs)))(this, "visibleToasts", []); | ||
this.queue = []; | ||
this.subscriptions = new Set(); | ||
/** The currently visible toasts. */ this.visibleToasts = []; | ||
var _options_maxVisibleToasts; | ||
@@ -134,0 +129,0 @@ this.maxVisibleToasts = (_options_maxVisibleToasts = options === null || options === void 0 ? void 0 : options.maxVisibleToasts) !== null && _options_maxVisibleToasts !== void 0 ? _options_maxVisibleToasts : 1; |
@@ -1,2 +0,1 @@ | ||
import $jopoU$swchelperssrc_define_propertymjs from "@swc/helpers/src/_define_property.mjs"; | ||
import {useMemo as $jopoU$useMemo, useCallback as $jopoU$useCallback} from "react"; | ||
@@ -27,3 +26,2 @@ import {useSyncExternalStore as $jopoU$useSyncExternalStore} from "use-sync-external-store/shim/index.js"; | ||
function $77b352cf12efcf73$export$c7b26b20d3ced9c5(props = {}) { | ||
@@ -118,5 +116,5 @@ let { maxVisibleToasts: maxVisibleToasts = 1 , hasExitAnimation: hasExitAnimation = false } = props; | ||
constructor(options){ | ||
(0, $jopoU$swchelperssrc_define_propertymjs)(this, "queue", []); | ||
(0, $jopoU$swchelperssrc_define_propertymjs)(this, "subscriptions", new Set()); | ||
/** The currently visible toasts. */ (0, $jopoU$swchelperssrc_define_propertymjs)(this, "visibleToasts", []); | ||
this.queue = []; | ||
this.subscriptions = new Set(); | ||
/** The currently visible toasts. */ this.visibleToasts = []; | ||
var _options_maxVisibleToasts; | ||
@@ -123,0 +121,0 @@ this.maxVisibleToasts = (_options_maxVisibleToasts = options === null || options === void 0 ? void 0 : options.maxVisibleToasts) !== null && _options_maxVisibleToasts !== void 0 ? _options_maxVisibleToasts : 1; |
{ | ||
"name": "@react-stately/toast", | ||
"version": "3.0.0-beta.0", | ||
"version": "3.0.0-beta.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,3 +25,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@swc/helpers": "^0.4.14", | ||
"@swc/helpers": "^0.5.0", | ||
"use-sync-external-store": "^1.2.0" | ||
@@ -38,3 +38,3 @@ }, | ||
}, | ||
"gitHead": "9d1ba9bd8ebcd63bf3495ade16d349bcb71795ce" | ||
"gitHead": "504e40e0a50c1b20ed0fb3ba9561a263b6d5565e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
70524
758
+ Added@swc/helpers@0.5.15(transitive)
- Removed@swc/helpers@0.4.37(transitive)
Updated@swc/helpers@^0.5.0