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

cronofy-elements

Package Overview
Dependencies
Maintainers
3
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cronofy-elements - npm Package Compare versions

Comparing version 1.34.7 to 1.34.8

build/CronofyElements.v1.34.8.js

2

package.json
{
"name": "cronofy-elements",
"version": "1.34.7",
"version": "1.34.8",
"description": "Fast track scheduling with Cronofy's embeddable UI Elements",

@@ -5,0 +5,0 @@ "main": "build/npm/CronofyElements.js",

@@ -277,2 +277,4 @@ import React, { useState, useEffect, useRef } from "react";

if (croppedQuery.query_periods.length < 1) return;
handleGetAvailability({

@@ -279,0 +281,0 @@ query: croppedQuery,

@@ -87,2 +87,18 @@ import React, { useState, useContext, useEffect } from "react";

useEffect(() => {
if (status.mode === "no_confirm" && Object.keys(selectedSlots).length > 0) {
const target = selectedSlots[slotData.slot.start];
if (target && target.position.y !== slotData.position.y) {
if (slotData.position.y === 0 && !slotData.topSlot) {
updateSlotData();
return;
} else {
setSelectedSlots({
[slotData.slot.start]: slotData,
});
}
}
}
}, [slotData]);
useEffect(() => {
const timeStart = moment(slotData.slot.start, "YYYY-MM-DDTHH:mm:00Z").tz(status.tzid);

@@ -89,0 +105,0 @@ const timeDisplayStart = i18n.f(timeStart, "LT").replace(" ", "");

@@ -139,3 +139,3 @@ import React, { useContext, useState, useEffect } from "react";

useEffect(() => {
if (status.mode !== "multi_select") {
if (status.mode !== "multi_select" && status.mode !== "no_confirm") {
setSelectedSlots({});

@@ -146,3 +146,3 @@ }

useEffect(() => {
if (status.mode !== "free_select") {
if (status.mode !== "free_select" && status.mode !== "no_confirm") {
setSelectedSlots({});

@@ -149,0 +149,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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