kirby-types 1.4.3 → 1.4.4
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 +1 -1
- package/src/blueprint.d.ts +12 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kirby-types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.4",
|
|
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>",
|
package/src/blueprint.d.ts
CHANGED
|
@@ -570,18 +570,24 @@ export interface KirbyEntriesFieldProps extends KirbyFieldProps {
|
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
572
|
* Stats report item for the stats field.
|
|
573
|
+
*
|
|
574
|
+
* @see https://github.com/getkirby/kirby/blob/main/src/Panel/Ui/Stat.php
|
|
573
575
|
*/
|
|
574
576
|
export interface KirbyStatsReport {
|
|
575
577
|
/** Report label */
|
|
576
578
|
label: string;
|
|
577
|
-
/** Report value */
|
|
578
|
-
value: string
|
|
579
|
+
/** Report value (always string after toString() processing) */
|
|
580
|
+
value: string;
|
|
581
|
+
/** Dialog path to open on click */
|
|
582
|
+
dialog?: string;
|
|
583
|
+
/** Drawer path to open on click */
|
|
584
|
+
drawer?: string;
|
|
585
|
+
/** Icon identifier */
|
|
586
|
+
icon?: string;
|
|
579
587
|
/** Additional info text */
|
|
580
588
|
info?: string;
|
|
581
589
|
/** Link URL */
|
|
582
590
|
link?: string;
|
|
583
|
-
/** Icon identifier */
|
|
584
|
-
icon?: string;
|
|
585
591
|
/** Color theme */
|
|
586
592
|
theme?: string;
|
|
587
593
|
}
|
|
@@ -595,8 +601,8 @@ export interface KirbyStatsReport {
|
|
|
595
601
|
*/
|
|
596
602
|
export interface KirbyStatsFieldProps extends KirbyFieldProps {
|
|
597
603
|
type: "stats";
|
|
598
|
-
/** Array of report objects
|
|
599
|
-
reports: KirbyStatsReport[]
|
|
604
|
+
/** Array of report objects (resolved from query if originally a string) */
|
|
605
|
+
reports: KirbyStatsReport[];
|
|
600
606
|
/** Card size */
|
|
601
607
|
size?: "tiny" | "small" | "medium" | "large";
|
|
602
608
|
}
|