kirby-types 1.4.0 → 1.4.1

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.0",
4
+ "version": "1.4.1",
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>",
@@ -20,7 +20,7 @@
20
20
 
21
21
  import type {
22
22
  ComponentOptions,
23
- ComponentPublicInstance,
23
+ DefineComponent,
24
24
  PluginFunction,
25
25
  PluginObject,
26
26
  VNode,
@@ -242,11 +242,11 @@ export type PanelApp = InstanceType<VueConstructor> & {
242
242
  * - Component that extends another component by name
243
243
  */
244
244
  export type PanelComponentExtension =
245
- | ComponentPublicInstance
245
+ | DefineComponent
246
246
  | ComponentOptions<any>
247
247
  | {
248
248
  /** Extend another component by name (e.g., `"k-text-field"`) */
249
- extends?: string | ComponentPublicInstance;
249
+ extends?: string | DefineComponent;
250
250
  /** Named mixins (e.g., `"dialog"`, `"drawer"`, `"section"`) or component objects */
251
251
  mixins?: (string | ComponentOptions<any>)[];
252
252
  /** Template string */
@@ -668,11 +668,11 @@ export interface PanelPlugins {
668
668
  resolveComponentRender: (component: any) => any;
669
669
 
670
670
  // ---------------------------------------------------------------------------
671
- // Plugin Data (ordered as in panel/public/js/plugins.js)
671
+ // Plugin Data
672
672
  // ---------------------------------------------------------------------------
673
673
 
674
674
  /** Registered Vue components */
675
- components: Record<string, ComponentPublicInstance>;
675
+ components: Record<string, DefineComponent>;
676
676
 
677
677
  /** Callbacks to run after Panel creation */
678
678
  created: (() => void)[];
@@ -681,7 +681,7 @@ export interface PanelPlugins {
681
681
  icons: Record<string, string>;
682
682
 
683
683
  /** Custom login component (set dynamically by plugins) */
684
- login: ComponentPublicInstance | null;
684
+ login: DefineComponent | null;
685
685
 
686
686
  /** Registered Panel routes */
687
687
  routes: Record<string, any>[];
@@ -699,7 +699,7 @@ export interface PanelPlugins {
699
699
  use: any[];
700
700
 
701
701
  /** Registered view buttons */
702
- viewButtons: Record<string, ComponentPublicInstance | Record<string, any>>;
702
+ viewButtons: Record<string, DefineComponent | Record<string, any>>;
703
703
 
704
704
  /** Registered Panel views */
705
705
  views: Record<string, Record<string, any>>;