kirby-types 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kirby-types",
3
3
  "type": "module",
4
- "version": "1.4.1",
4
+ "version": "1.4.2",
5
5
  "packageManager": "pnpm@10.27.0",
6
6
  "description": "TypeScript types for Kirby Panel plugins and headless CMS usage",
7
7
  "author": "Johann Schopplich <hello@johannschopplich.com>",
@@ -242,11 +242,25 @@ export type PanelApp = InstanceType<VueConstructor> & {
242
242
  * - Component that extends another component by name
243
243
  */
244
244
  export type PanelComponentExtension =
245
- | DefineComponent
245
+ | DefineComponent<any, any, any, any, any, any, any, any, any, any, any>
246
246
  | ComponentOptions<any>
247
247
  | {
248
248
  /** Extend another component by name (e.g., `"k-text-field"`) */
249
- extends?: string | DefineComponent;
249
+ extends?:
250
+ | string
251
+ | DefineComponent<
252
+ any,
253
+ any,
254
+ any,
255
+ any,
256
+ any,
257
+ any,
258
+ any,
259
+ any,
260
+ any,
261
+ any,
262
+ any
263
+ >;
250
264
  /** Named mixins (e.g., `"dialog"`, `"drawer"`, `"section"`) or component objects */
251
265
  mixins?: (string | ComponentOptions<any>)[];
252
266
  /** Template string */
@@ -672,7 +686,10 @@ export interface PanelPlugins {
672
686
  // ---------------------------------------------------------------------------
673
687
 
674
688
  /** Registered Vue components */
675
- components: Record<string, DefineComponent>;
689
+ components: Record<
690
+ string,
691
+ DefineComponent<any, any, any, any, any, any, any, any, any, any, any>
692
+ >;
676
693
 
677
694
  /** Callbacks to run after Panel creation */
678
695
  created: (() => void)[];
@@ -681,7 +698,19 @@ export interface PanelPlugins {
681
698
  icons: Record<string, string>;
682
699
 
683
700
  /** Custom login component (set dynamically by plugins) */
684
- login: DefineComponent | null;
701
+ login: DefineComponent<
702
+ any,
703
+ any,
704
+ any,
705
+ any,
706
+ any,
707
+ any,
708
+ any,
709
+ any,
710
+ any,
711
+ any,
712
+ any
713
+ > | null;
685
714
 
686
715
  /** Registered Panel routes */
687
716
  routes: Record<string, any>[];
@@ -699,7 +728,11 @@ export interface PanelPlugins {
699
728
  use: any[];
700
729
 
701
730
  /** Registered view buttons */
702
- viewButtons: Record<string, DefineComponent | Record<string, any>>;
731
+ viewButtons: Record<
732
+ string,
733
+ | DefineComponent<any, any, any, any, any, any, any, any, any, any, any>
734
+ | Record<string, any>
735
+ >;
703
736
 
704
737
  /** Registered Panel views */
705
738
  views: Record<string, Record<string, any>>;