Socket
Socket
Sign inDemoInstall

@bottom-sheet/react-hooks

Package Overview
Dependencies
14
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.11 to 1.0.12

24

dist/cjs/index.js

@@ -16,3 +16,3 @@ var $dYZEH$bottomsheetstatemachine = require("@bottom-sheet/state-machine");

function $882b6d93070905b3$var$createStore({ initialHeight: initialHeight = (0, $dYZEH$bottomsheetstatemachine.defaultInitialHeight) , snapPoints: snapPoints = (0, $dYZEH$bottomsheetstatemachine.defaultSnapPoints) } = {}) {
function $882b6d93070905b3$var$createStore({ initialHeight: initialHeight = (0, $dYZEH$bottomsheetstatemachine.defaultInitialHeight) , snapPoints: snapPoints = (0, $dYZEH$bottomsheetstatemachine.defaultSnapPoints) , unstable__requestAnimationFrame: unstable__requestAnimationFrame = false } = {}) {
console.debug("createStore");

@@ -40,14 +40,18 @@ const service = (0, $dYZEH$xstate.interpret)((0, $dYZEH$bottomsheetstatemachine.BottomSheetMachine).withConfig({

if (state.changed) {
cancelAnimationFrame(rAF);
rAF = requestAnimationFrame(()=>{
console.group("onStoreChange");
console.log({
value: state.value,
context: state.context
if (unstable__requestAnimationFrame) {
cancelAnimationFrame(rAF);
rAF = requestAnimationFrame(()=>{
console.group("onStoreChange");
console.log({
value: state.value,
context: state.context
});
transient = snapshot = state;
onStoreChange();
console.groupEnd();
});
} else {
transient = snapshot = state;
onStoreChange();
console.groupEnd();
});
console.groupEnd();
}
}

@@ -54,0 +58,0 @@ console.groupEnd();

@@ -6,2 +6,3 @@ import { BottomSheetEvent } from "@bottom-sheet/state-machine";

snapPoints?: GetSnapPoints;
unstable__requestAnimationFrame?: boolean;
}

@@ -8,0 +9,0 @@ export const useBottomSheetMachine: (props?: BottomSheetMachineProps) => {

@@ -11,3 +11,3 @@ import {defaultInitialHeight as $26Zo0$defaultInitialHeight, defaultSnapPoints as $26Zo0$defaultSnapPoints, BottomSheetMachine as $26Zo0$BottomSheetMachine, assignInitialHeight as $26Zo0$assignInitialHeight, assignSnapPoints as $26Zo0$assignSnapPoints} from "@bottom-sheet/state-machine";

function $149c1bd638913645$var$createStore({ initialHeight: initialHeight = (0, $26Zo0$defaultInitialHeight) , snapPoints: snapPoints = (0, $26Zo0$defaultSnapPoints) } = {}) {
function $149c1bd638913645$var$createStore({ initialHeight: initialHeight = (0, $26Zo0$defaultInitialHeight) , snapPoints: snapPoints = (0, $26Zo0$defaultSnapPoints) , unstable__requestAnimationFrame: unstable__requestAnimationFrame = false } = {}) {
console.debug("createStore");

@@ -35,14 +35,18 @@ const service = (0, $26Zo0$interpret)((0, $26Zo0$BottomSheetMachine).withConfig({

if (state.changed) {
cancelAnimationFrame(rAF);
rAF = requestAnimationFrame(()=>{
console.group("onStoreChange");
console.log({
value: state.value,
context: state.context
if (unstable__requestAnimationFrame) {
cancelAnimationFrame(rAF);
rAF = requestAnimationFrame(()=>{
console.group("onStoreChange");
console.log({
value: state.value,
context: state.context
});
transient = snapshot = state;
onStoreChange();
console.groupEnd();
});
} else {
transient = snapshot = state;
onStoreChange();
console.groupEnd();
});
console.groupEnd();
}
}

@@ -49,0 +53,0 @@ console.groupEnd();

{
"name": "@bottom-sheet/react-hooks",
"version": "1.0.11",
"version": "1.0.12",
"description": "The hooks that power `@bottom-sheet/react-spring`",

@@ -5,0 +5,0 @@ "keywords": [

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc