@schedule-x/calendar-controls
Advanced tools
Comparing version 1.20.0 to 1.21.0
@@ -110,3 +110,3 @@ import { Signal } from "@preact/signals"; | ||
declare const addDays: (to: string, nDays: number) => string; | ||
type ViewConfig = { | ||
type ViewConfig<FrameworkComponent = PreactViewComponent> = { | ||
/** | ||
@@ -135,3 +135,3 @@ * a unique identifier for the view | ||
* */ | ||
Component: PreactViewComponent | unknown; // the view component you want to render | ||
Component: FrameworkComponent; | ||
/** | ||
@@ -147,5 +147,5 @@ * function that is called when the user clicks the backward/forward button | ||
* */ | ||
backwardForwardUnits: number; // number of units to add when the user clicks the backward/forward button | ||
backwardForwardUnits: number; | ||
}; | ||
type View = ViewConfig & { | ||
type View<FrameworkComponent = PreactViewComponent> = ViewConfig<FrameworkComponent> & { | ||
render(onElement: HTMLElement, $app: CalendarAppSingleton): void; | ||
@@ -152,0 +152,0 @@ destroy(): void; |
@@ -110,3 +110,3 @@ import { Signal } from "@preact/signals"; | ||
declare const addDays: (to: string, nDays: number) => string; | ||
type ViewConfig = { | ||
type ViewConfig<FrameworkComponent = PreactViewComponent> = { | ||
/** | ||
@@ -135,3 +135,3 @@ * a unique identifier for the view | ||
* */ | ||
Component: PreactViewComponent | unknown; // the view component you want to render | ||
Component: FrameworkComponent; | ||
/** | ||
@@ -147,5 +147,5 @@ * function that is called when the user clicks the backward/forward button | ||
* */ | ||
backwardForwardUnits: number; // number of units to add when the user clicks the backward/forward button | ||
backwardForwardUnits: number; | ||
}; | ||
type View = ViewConfig & { | ||
type View<FrameworkComponent = PreactViewComponent> = ViewConfig<FrameworkComponent> & { | ||
render(onElement: HTMLElement, $app: CalendarAppSingleton): void; | ||
@@ -152,0 +152,0 @@ destroy(): void; |
@@ -110,3 +110,3 @@ import { Signal } from "@preact/signals"; | ||
declare const addDays: (to: string, nDays: number) => string; | ||
type ViewConfig = { | ||
type ViewConfig<FrameworkComponent = PreactViewComponent> = { | ||
/** | ||
@@ -135,3 +135,3 @@ * a unique identifier for the view | ||
* */ | ||
Component: PreactViewComponent | unknown; // the view component you want to render | ||
Component: FrameworkComponent; | ||
/** | ||
@@ -147,5 +147,5 @@ * function that is called when the user clicks the backward/forward button | ||
* */ | ||
backwardForwardUnits: number; // number of units to add when the user clicks the backward/forward button | ||
backwardForwardUnits: number; | ||
}; | ||
type View = ViewConfig & { | ||
type View<FrameworkComponent = PreactViewComponent> = ViewConfig<FrameworkComponent> & { | ||
render(onElement: HTMLElement, $app: CalendarAppSingleton): void; | ||
@@ -152,0 +152,0 @@ destroy(): void; |
{ | ||
"name": "@schedule-x/calendar-controls", | ||
"version": "1.20.0", | ||
"version": "1.21.0", | ||
"description": "Plugin for extra controls for the Schedule-X calendar", | ||
@@ -30,3 +30,3 @@ "author": { | ||
"homepage": "https://schedule-x.dev", | ||
"gitHead": "23ed562414c68178c29556906428c516e9330880" | ||
"gitHead": "cc7aefcef347279aed6c7ed128cf6aceee1c85b2" | ||
} |
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
38999
1