@stoker-platform/types 0.5.50 → 0.5.52

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/types",
3
- "version": "0.5.50",
3
+ "version": "0.5.52",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -623,6 +623,7 @@ export interface Metric {
623
623
  prefix?: string
624
624
  suffix?: string
625
625
  textSize?: "text-xl" | "text-2xl" | "text-3xl"
626
+ compact?: boolean
626
627
  formula?: (records: StokerRecord[]) => number | string
627
628
  }
628
629
  export interface Chart {
@@ -720,7 +721,9 @@ export interface CollectionAdmin {
720
721
  record: string
721
722
  }
722
723
  | ((
723
- context?: "permissions" | "search-all",
724
+ context?: "permissions" | "search-all" | "relation-list",
725
+ parentCollection?: CollectionSchema,
726
+ parentRecord?: StokerRecord,
724
727
  ) => { collection: string; record: string } | Promise<{ collection: string; record: string }>)
725
728
  icon?: React.FC | (() => React.FC | Promise<React.FC>)
726
729
  duplicate?: boolean | (() => boolean | Promise<boolean>)