@schedule-x/calendar
Advanced tools
Comparing version 1.48.0 to 1.49.0
@@ -51,3 +51,6 @@ import { Signal, ReadonlySignal } from "@preact/signals"; | ||
} | ||
type TranslateFn = (key: string) => string; | ||
type TranslationVariables = { | ||
[key: string]: string | number; | ||
}; | ||
type TranslateFn = (key: string, variables?: TranslationVariables) => string; | ||
/** | ||
@@ -315,2 +318,3 @@ * This interface serves as a bridge between the AppSingleton for the date picker and calendar | ||
gridHeight: number; | ||
nDays: number; | ||
}; | ||
@@ -360,3 +364,3 @@ type MonthGridOptions = { | ||
} | ||
interface ReducedCalendarConfigInternal extends Omit<CalendarConfigInternal, "events" | "dayBoundaries" | "isHybridDay" | "plugins" | "views" | "_customComponentFns" | "calendars"> { | ||
interface ReducedCalendarConfigInternal extends Omit<CalendarConfigInternal, "events" | "dayBoundaries" | "isHybridDay" | "plugins" | "views" | "_customComponentFns" | "calendars" | "weekOptions"> { | ||
} | ||
@@ -374,2 +378,3 @@ interface CalendarConfigExternal extends Partial<ReducedCalendarConfigInternal> { | ||
calendars?: Record<string, CalendarType>; | ||
weekOptions?: Partial<WeekOptions>; | ||
} | ||
@@ -376,0 +381,0 @@ interface CalendarState { |
@@ -51,3 +51,6 @@ import { Signal, ReadonlySignal } from "@preact/signals"; | ||
} | ||
type TranslateFn = (key: string) => string; | ||
type TranslationVariables = { | ||
[key: string]: string | number; | ||
}; | ||
type TranslateFn = (key: string, variables?: TranslationVariables) => string; | ||
/** | ||
@@ -315,2 +318,3 @@ * This interface serves as a bridge between the AppSingleton for the date picker and calendar | ||
gridHeight: number; | ||
nDays: number; | ||
}; | ||
@@ -360,3 +364,3 @@ type MonthGridOptions = { | ||
} | ||
interface ReducedCalendarConfigInternal extends Omit<CalendarConfigInternal, "events" | "dayBoundaries" | "isHybridDay" | "plugins" | "views" | "_customComponentFns" | "calendars"> { | ||
interface ReducedCalendarConfigInternal extends Omit<CalendarConfigInternal, "events" | "dayBoundaries" | "isHybridDay" | "plugins" | "views" | "_customComponentFns" | "calendars" | "weekOptions"> { | ||
} | ||
@@ -374,2 +378,3 @@ interface CalendarConfigExternal extends Partial<ReducedCalendarConfigInternal> { | ||
calendars?: Record<string, CalendarType>; | ||
weekOptions?: Partial<WeekOptions>; | ||
} | ||
@@ -376,0 +381,0 @@ interface CalendarState { |
@@ -51,3 +51,6 @@ import { Signal, ReadonlySignal } from "@preact/signals"; | ||
} | ||
type TranslateFn = (key: string) => string; | ||
type TranslationVariables = { | ||
[key: string]: string | number; | ||
}; | ||
type TranslateFn = (key: string, variables?: TranslationVariables) => string; | ||
/** | ||
@@ -315,2 +318,3 @@ * This interface serves as a bridge between the AppSingleton for the date picker and calendar | ||
gridHeight: number; | ||
nDays: number; | ||
}; | ||
@@ -360,3 +364,3 @@ type MonthGridOptions = { | ||
} | ||
interface ReducedCalendarConfigInternal extends Omit<CalendarConfigInternal, "events" | "dayBoundaries" | "isHybridDay" | "plugins" | "views" | "_customComponentFns" | "calendars"> { | ||
interface ReducedCalendarConfigInternal extends Omit<CalendarConfigInternal, "events" | "dayBoundaries" | "isHybridDay" | "plugins" | "views" | "_customComponentFns" | "calendars" | "weekOptions"> { | ||
} | ||
@@ -374,2 +378,3 @@ interface CalendarConfigExternal extends Partial<ReducedCalendarConfigInternal> { | ||
calendars?: Record<string, CalendarType>; | ||
weekOptions?: Partial<WeekOptions>; | ||
} | ||
@@ -376,0 +381,0 @@ interface CalendarState { |
{ | ||
"name": "@schedule-x/calendar", | ||
"version": "1.48.0", | ||
"version": "1.49.0", | ||
"description": "Schedule-X calendar component", | ||
@@ -40,3 +40,3 @@ "author": { | ||
"homepage": "https://schedule-x.dev", | ||
"gitHead": "770bce0c213cded949c70cac797f3c8badb2725f" | ||
"gitHead": "10378f271ef2a416b7f625b34308846eda6254db" | ||
} |
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
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
746694
17721