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

@schedule-x/current-time

Package Overview
Dependencies
Maintainers
0
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schedule-x/current-time - npm Package Compare versions

Comparing version 1.63.1 to 1.64.0-alpha.0

18

dist/core.cjs.d.ts

@@ -68,4 +68,4 @@ import { Signal, ReadonlySignal } from "@preact/signals";

interface Config {
locale: string;
firstDayOfWeek: WeekDay;
locale: Signal<string>;
firstDayOfWeek: Signal<WeekDay>;
}

@@ -329,14 +329,14 @@ declare enum Placement {

defaultView: ViewName;
views: View[];
dayBoundaries: DayBoundariesInternal;
weekOptions: WeekOptions;
monthGridOptions: MonthGridOptions;
views: Signal<View[]>;
dayBoundaries: Signal<DayBoundariesInternal>;
weekOptions: Signal<WeekOptions>;
calendars: Signal<Record<string, CalendarType>>;
isDark: Signal<boolean>;
minDate: Signal<string | undefined>;
maxDate: Signal<string | undefined>;
monthGridOptions: Signal<MonthGridOptions>;
plugins: Plugins;
isDark: boolean;
isResponsive: boolean;
callbacks: CalendarCallbacks;
_customComponentFns: CustomComponentFns;
minDate?: string;
maxDate?: string;
// Getters

@@ -343,0 +343,0 @@ isHybridDay: boolean;

@@ -69,3 +69,3 @@ 'use strict';

const timePointsFromString = (timeString) => {
if (!timeStringRegex.test(timeString))
if (!timeStringRegex.test(timeString) && timeString !== '24:00')
throw new InvalidTimeStringError(timeString);

@@ -178,3 +178,3 @@ const [hoursInt, minutesInt] = timeString

currentTimeIndicator.classList.add('sx__current-time-indicator');
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries, this.$app.config.timePointsPerDay) + '%';
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries.value, this.$app.config.timePointsPerDay) + '%';
currentTimeIndicator.style.top = top;

@@ -181,0 +181,0 @@ todayElement.appendChild(currentTimeIndicator);

@@ -68,4 +68,4 @@ import { Signal, ReadonlySignal } from "@preact/signals";

interface Config {
locale: string;
firstDayOfWeek: WeekDay;
locale: Signal<string>;
firstDayOfWeek: Signal<WeekDay>;
}

@@ -329,14 +329,14 @@ declare enum Placement {

defaultView: ViewName;
views: View[];
dayBoundaries: DayBoundariesInternal;
weekOptions: WeekOptions;
monthGridOptions: MonthGridOptions;
views: Signal<View[]>;
dayBoundaries: Signal<DayBoundariesInternal>;
weekOptions: Signal<WeekOptions>;
calendars: Signal<Record<string, CalendarType>>;
isDark: Signal<boolean>;
minDate: Signal<string | undefined>;
maxDate: Signal<string | undefined>;
monthGridOptions: Signal<MonthGridOptions>;
plugins: Plugins;
isDark: boolean;
isResponsive: boolean;
callbacks: CalendarCallbacks;
_customComponentFns: CustomComponentFns;
minDate?: string;
maxDate?: string;
// Getters

@@ -343,0 +343,0 @@ isHybridDay: boolean;

@@ -67,3 +67,3 @@ import 'preact/jsx-runtime';

const timePointsFromString = (timeString) => {
if (!timeStringRegex.test(timeString))
if (!timeStringRegex.test(timeString) && timeString !== '24:00')
throw new InvalidTimeStringError(timeString);

@@ -176,3 +176,3 @@ const [hoursInt, minutesInt] = timeString

currentTimeIndicator.classList.add('sx__current-time-indicator');
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries, this.$app.config.timePointsPerDay) + '%';
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries.value, this.$app.config.timePointsPerDay) + '%';
currentTimeIndicator.style.top = top;

@@ -179,0 +179,0 @@ todayElement.appendChild(currentTimeIndicator);

@@ -68,4 +68,4 @@ import { Signal, ReadonlySignal } from "@preact/signals";

interface Config {
locale: string;
firstDayOfWeek: WeekDay;
locale: Signal<string>;
firstDayOfWeek: Signal<WeekDay>;
}

@@ -329,14 +329,14 @@ declare enum Placement {

defaultView: ViewName;
views: View[];
dayBoundaries: DayBoundariesInternal;
weekOptions: WeekOptions;
monthGridOptions: MonthGridOptions;
views: Signal<View[]>;
dayBoundaries: Signal<DayBoundariesInternal>;
weekOptions: Signal<WeekOptions>;
calendars: Signal<Record<string, CalendarType>>;
isDark: Signal<boolean>;
minDate: Signal<string | undefined>;
maxDate: Signal<string | undefined>;
monthGridOptions: Signal<MonthGridOptions>;
plugins: Plugins;
isDark: boolean;
isResponsive: boolean;
callbacks: CalendarCallbacks;
_customComponentFns: CustomComponentFns;
minDate?: string;
maxDate?: string;
// Getters

@@ -343,0 +343,0 @@ isHybridDay: boolean;

@@ -71,3 +71,3 @@ (function (global, factory) {

const timePointsFromString = (timeString) => {
if (!timeStringRegex.test(timeString))
if (!timeStringRegex.test(timeString) && timeString !== '24:00')
throw new InvalidTimeStringError(timeString);

@@ -180,3 +180,3 @@ const [hoursInt, minutesInt] = timeString

currentTimeIndicator.classList.add('sx__current-time-indicator');
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries, this.$app.config.timePointsPerDay) + '%';
const top = getYCoordinateInTimeGrid(nowDateTimeString, this.$app.config.dayBoundaries.value, this.$app.config.timePointsPerDay) + '%';
currentTimeIndicator.style.top = top;

@@ -183,0 +183,0 @@ todayElement.appendChild(currentTimeIndicator);

{
"name": "@schedule-x/current-time",
"umdName": "SXCurrentTime",
"version": "1.63.1",
"version": "1.64.0-alpha.0",
"description": "Schedule-X plugin for displaying an indicator for the current time",

@@ -37,3 +37,3 @@ "author": {

"homepage": "https://schedule-x.dev",
"gitHead": "559d32882f6fe764328d542216bb3c2c8813acca"
"gitHead": "f0cfd68222837d0f5c97f0c88386ae8b017d0195"
}
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