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

@schedule-x/calendar

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schedule-x/calendar - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

25

dist/core.cjs.d.ts

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

};
interface PluginBase {
name: string;
interface PluginBase<Name extends string> {
name: Name;
/**

@@ -270,3 +270,3 @@ * Allow implementers to dynamically add any properties to the global app object as they see fit.

}
interface DragAndDropPlugin extends PluginBase {
interface DragAndDropPlugin extends PluginBase<string> {
createTimeGridDragHandler(dependencies: DragHandlerDependencies, dayBoundariesDateTime: DayBoundariesDateTime): TimeGridDragHandler;

@@ -279,3 +279,3 @@ createDateGridDragHandler(dependencies: DragHandlerDependencies): DateGridDragHandler;

};
interface EventModalPlugin extends PluginBase {
interface EventModalPlugin extends PluginBase<string> {
calendarEvent: Signal<CalendarEventInternal | null>;

@@ -323,3 +323,3 @@ calendarEventDOMRect: Signal<DOMRect | null>;

}
interface EventRecurrencePlugin extends PluginBase {
interface EventRecurrencePlugin extends PluginBase<string> {
updateRecurrenceDND(eventId: EventId, oldEventStart: string, newEventStart: string): void;

@@ -329,3 +329,3 @@ updateRecurrenceOnResize(eventId: EventId, oldEventEnd: string, newEventEnd: string): void;

}
interface ResizePlugin extends PluginBase {
interface ResizePlugin extends PluginBase<string> {
createTimeGridEventResizer(calendarEvent: CalendarEventInternal, updateCopy: (newCopy: CalendarEventInternal | undefined) => void, mouseDownEvent: MouseEvent, dayBoundariesDateTime: {

@@ -360,6 +360,6 @@ start: string;

eventModal?: EventModalPlugin;
scrollController?: PluginBase;
scrollController?: PluginBase<string>;
eventRecurrence?: EventRecurrencePlugin;
resize?: ResizePlugin;
[key: string]: PluginBase | undefined;
[key: string]: PluginBase<string> | undefined;
};

@@ -393,3 +393,2 @@ type CustomComponentFn = (wrapperElement: HTMLElement, props: Record<string, unknown>) => void;

dayBoundaries?: DayBoundariesExternal;
plugins?: PluginBase[];
views: [

@@ -400,2 +399,3 @@ View,

selectedDate?: string;
plugins?: PluginBase<string>[];
calendars?: Record<string, CalendarType>;

@@ -450,3 +450,8 @@ weekOptions?: Partial<WeekOptions>;

declare const toJSDate: (dateTimeSpecification: string) => Date;
declare const createCalendar: (config: CalendarConfigExternal) => CalendarApp;
type CalendarAppWithPlugins<Plugins extends PluginBase<string>[]> = {
[Name in Plugins[number]["name"]]: Extract<Plugins[number], {
name: Name;
}>;
};
declare const createCalendar: <Plugins extends PluginBase<string>[]>(config: CalendarConfigExternal, plugins?: Plugins) => CalendarApp & CalendarAppWithPlugins<Plugins>;
declare const viewWeek: View;

@@ -453,0 +458,0 @@ declare const createViewWeek: () => View;

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

};
interface PluginBase {
name: string;
interface PluginBase<Name extends string> {
name: Name;
/**

@@ -270,3 +270,3 @@ * Allow implementers to dynamically add any properties to the global app object as they see fit.

}
interface DragAndDropPlugin extends PluginBase {
interface DragAndDropPlugin extends PluginBase<string> {
createTimeGridDragHandler(dependencies: DragHandlerDependencies, dayBoundariesDateTime: DayBoundariesDateTime): TimeGridDragHandler;

@@ -279,3 +279,3 @@ createDateGridDragHandler(dependencies: DragHandlerDependencies): DateGridDragHandler;

};
interface EventModalPlugin extends PluginBase {
interface EventModalPlugin extends PluginBase<string> {
calendarEvent: Signal<CalendarEventInternal | null>;

@@ -323,3 +323,3 @@ calendarEventDOMRect: Signal<DOMRect | null>;

}
interface EventRecurrencePlugin extends PluginBase {
interface EventRecurrencePlugin extends PluginBase<string> {
updateRecurrenceDND(eventId: EventId, oldEventStart: string, newEventStart: string): void;

@@ -329,3 +329,3 @@ updateRecurrenceOnResize(eventId: EventId, oldEventEnd: string, newEventEnd: string): void;

}
interface ResizePlugin extends PluginBase {
interface ResizePlugin extends PluginBase<string> {
createTimeGridEventResizer(calendarEvent: CalendarEventInternal, updateCopy: (newCopy: CalendarEventInternal | undefined) => void, mouseDownEvent: MouseEvent, dayBoundariesDateTime: {

@@ -360,6 +360,6 @@ start: string;

eventModal?: EventModalPlugin;
scrollController?: PluginBase;
scrollController?: PluginBase<string>;
eventRecurrence?: EventRecurrencePlugin;
resize?: ResizePlugin;
[key: string]: PluginBase | undefined;
[key: string]: PluginBase<string> | undefined;
};

@@ -393,3 +393,2 @@ type CustomComponentFn = (wrapperElement: HTMLElement, props: Record<string, unknown>) => void;

dayBoundaries?: DayBoundariesExternal;
plugins?: PluginBase[];
views: [

@@ -400,2 +399,3 @@ View,

selectedDate?: string;
plugins?: PluginBase<string>[];
calendars?: Record<string, CalendarType>;

@@ -450,3 +450,8 @@ weekOptions?: Partial<WeekOptions>;

declare const toJSDate: (dateTimeSpecification: string) => Date;
declare const createCalendar: (config: CalendarConfigExternal) => CalendarApp;
type CalendarAppWithPlugins<Plugins extends PluginBase<string>[]> = {
[Name in Plugins[number]["name"]]: Extract<Plugins[number], {
name: Name;
}>;
};
declare const createCalendar: <Plugins extends PluginBase<string>[]>(config: CalendarConfigExternal, plugins?: Plugins) => CalendarApp & CalendarAppWithPlugins<Plugins>;
declare const viewWeek: View;

@@ -453,0 +458,0 @@ declare const createViewWeek: () => View;

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

};
interface PluginBase {
name: string;
interface PluginBase<Name extends string> {
name: Name;
/**

@@ -270,3 +270,3 @@ * Allow implementers to dynamically add any properties to the global app object as they see fit.

}
interface DragAndDropPlugin extends PluginBase {
interface DragAndDropPlugin extends PluginBase<string> {
createTimeGridDragHandler(dependencies: DragHandlerDependencies, dayBoundariesDateTime: DayBoundariesDateTime): TimeGridDragHandler;

@@ -279,3 +279,3 @@ createDateGridDragHandler(dependencies: DragHandlerDependencies): DateGridDragHandler;

};
interface EventModalPlugin extends PluginBase {
interface EventModalPlugin extends PluginBase<string> {
calendarEvent: Signal<CalendarEventInternal | null>;

@@ -323,3 +323,3 @@ calendarEventDOMRect: Signal<DOMRect | null>;

}
interface EventRecurrencePlugin extends PluginBase {
interface EventRecurrencePlugin extends PluginBase<string> {
updateRecurrenceDND(eventId: EventId, oldEventStart: string, newEventStart: string): void;

@@ -329,3 +329,3 @@ updateRecurrenceOnResize(eventId: EventId, oldEventEnd: string, newEventEnd: string): void;

}
interface ResizePlugin extends PluginBase {
interface ResizePlugin extends PluginBase<string> {
createTimeGridEventResizer(calendarEvent: CalendarEventInternal, updateCopy: (newCopy: CalendarEventInternal | undefined) => void, mouseDownEvent: MouseEvent, dayBoundariesDateTime: {

@@ -360,6 +360,6 @@ start: string;

eventModal?: EventModalPlugin;
scrollController?: PluginBase;
scrollController?: PluginBase<string>;
eventRecurrence?: EventRecurrencePlugin;
resize?: ResizePlugin;
[key: string]: PluginBase | undefined;
[key: string]: PluginBase<string> | undefined;
};

@@ -393,3 +393,2 @@ type CustomComponentFn = (wrapperElement: HTMLElement, props: Record<string, unknown>) => void;

dayBoundaries?: DayBoundariesExternal;
plugins?: PluginBase[];
views: [

@@ -400,2 +399,3 @@ View,

selectedDate?: string;
plugins?: PluginBase<string>[];
calendars?: Record<string, CalendarType>;

@@ -450,3 +450,8 @@ weekOptions?: Partial<WeekOptions>;

declare const toJSDate: (dateTimeSpecification: string) => Date;
declare const createCalendar: (config: CalendarConfigExternal) => CalendarApp;
type CalendarAppWithPlugins<Plugins extends PluginBase<string>[]> = {
[Name in Plugins[number]["name"]]: Extract<Plugins[number], {
name: Name;
}>;
};
declare const createCalendar: <Plugins extends PluginBase<string>[]>(config: CalendarConfigExternal, plugins?: Plugins) => CalendarApp & CalendarAppWithPlugins<Plugins>;
declare const viewWeek: View;

@@ -453,0 +458,0 @@ declare const createViewWeek: () => View;

4

package.json
{
"name": "@schedule-x/calendar",
"umdName": "SXCalendar",
"version": "2.1.0",
"version": "2.2.0",
"description": "Schedule-X calendar component",

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

"homepage": "https://schedule-x.dev",
"gitHead": "8c8df9d6329567163cffc9f744cf2efba173c7f9"
"gitHead": "33db04bc41ed4f015efd93f12ecd65f72801038e"
}

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

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