@stoker-platform/types 0.5.18 → 0.5.19

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.18",
3
+ "version": "0.5.19",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -565,7 +565,10 @@ export type SelectFilter = {
565
565
  title?: string | (() => string)
566
566
  roles?: StokerRole[]
567
567
  condition?: (value: boolean | string | number | undefined) => boolean
568
- defaultValue?: string | number | (() => string | number)
568
+ defaultValue?:
569
+ | string
570
+ | number
571
+ | ((parentCollection: CollectionSchema, parentRecord?: StokerRecord) => string | number | undefined)
569
572
  value?: string | number
570
573
  style?: "select" | "radio" | "buttons"
571
574
  }
@@ -682,7 +685,10 @@ export interface CollectionAdmin {
682
685
  | "images"
683
686
  | "map"
684
687
  | "calendar"
685
- | (() => "list" | "cards" | "images" | "map" | "calendar")
688
+ | ((
689
+ parentCollection: CollectionSchema,
690
+ parentRecord?: StokerRecord,
691
+ ) => "list" | "cards" | "images" | "map" | "calendar")
686
692
  defaultRoute?: string | (() => string)
687
693
  defaultSort?:
688
694
  | {