Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-stately/toast

Package Overview
Dependencies
Maintainers
2
Versions
417
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-stately/toast - npm Package Compare versions

Comparing version 3.0.0-alpha.0 to 3.0.0-alpha.1

4

dist/main.js
var $1uBRd$swchelperslib_define_propertyjs = require("@swc/helpers/lib/_define_property.js");
var $1uBRd$react = require("react");
var $1uBRd$usesyncexternalstoreshim = require("use-sync-external-store/shim");
var $1uBRd$usesyncexternalstoreshimindexjs = require("use-sync-external-store/shim/index.js");

@@ -56,3 +56,3 @@ function $parcel$export(e, n, v, s) {

]);
let visibleToasts = (0, $1uBRd$usesyncexternalstoreshim.useSyncExternalStore)(subscribe, getSnapshot);
let visibleToasts = (0, $1uBRd$usesyncexternalstoreshimindexjs.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
return {

@@ -59,0 +59,0 @@ visibleToasts: visibleToasts,

import $jopoU$swchelperssrc_define_propertymjs from "@swc/helpers/src/_define_property.mjs";
import {useMemo as $jopoU$useMemo, useCallback as $jopoU$useCallback} from "react";
import {useSyncExternalStore as $jopoU$useSyncExternalStore} from "use-sync-external-store/shim";
import {useSyncExternalStore as $jopoU$useSyncExternalStore} from "use-sync-external-store/shim/index.js";

@@ -46,3 +46,3 @@ /*

]);
let visibleToasts = (0, $jopoU$useSyncExternalStore)(subscribe, getSnapshot);
let visibleToasts = (0, $jopoU$useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
return {

@@ -49,0 +49,0 @@ visibleToasts: visibleToasts,

{
"name": "@react-stately/toast",
"version": "3.0.0-alpha.0",
"version": "3.0.0-alpha.1",
"description": "Spectrum UI components in React",

@@ -37,3 +37,3 @@ "license": "Apache-2.0",

},
"gitHead": "a0efee84aa178cb1a202951dfd6d8de02b292307"
"gitHead": "cb1fc23c8f9efce828f774858aaf3a06a19b49a2"
}

@@ -15,3 +15,3 @@ /*

// Shim to support React 17 and below.
import {useSyncExternalStore} from 'use-sync-external-store/shim';
import {useSyncExternalStore} from 'use-sync-external-store/shim/index.js';

@@ -83,3 +83,3 @@ export interface ToastStateProps {

let getSnapshot = useCallback(() => queue.visibleToasts, [queue]);
let visibleToasts = useSyncExternalStore(subscribe, getSnapshot);
let visibleToasts = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);

@@ -86,0 +86,0 @@ return {

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc