@stoker-platform/types 0.5.17 → 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 +1 -1
- package/src/types/schema.ts +16 -1
package/package.json
CHANGED
package/src/types/schema.ts
CHANGED
|
@@ -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?:
|
|
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
|
}
|
|
@@ -676,6 +679,16 @@ export interface CollectionAdmin {
|
|
|
676
679
|
active?: unknown[]
|
|
677
680
|
archived?: unknown[]
|
|
678
681
|
}
|
|
682
|
+
defaultView?:
|
|
683
|
+
| "list"
|
|
684
|
+
| "cards"
|
|
685
|
+
| "images"
|
|
686
|
+
| "map"
|
|
687
|
+
| "calendar"
|
|
688
|
+
| ((
|
|
689
|
+
parentCollection: CollectionSchema,
|
|
690
|
+
parentRecord?: StokerRecord,
|
|
691
|
+
) => "list" | "cards" | "images" | "map" | "calendar")
|
|
679
692
|
defaultRoute?: string | (() => string)
|
|
680
693
|
defaultSort?:
|
|
681
694
|
| {
|
|
@@ -742,6 +755,7 @@ export interface CollectionAdminCache {
|
|
|
742
755
|
}
|
|
743
756
|
icon?: React.FC
|
|
744
757
|
duplicate?: boolean
|
|
758
|
+
convert?: Convert[]
|
|
745
759
|
live?: boolean
|
|
746
760
|
statusField?: {
|
|
747
761
|
field: string
|
|
@@ -769,6 +783,7 @@ export interface CollectionAdminCache {
|
|
|
769
783
|
formButtons?: FormButton[]
|
|
770
784
|
formUpload?: boolean
|
|
771
785
|
formImages?: boolean
|
|
786
|
+
formLists?: FormList[]
|
|
772
787
|
hideCreate?: boolean
|
|
773
788
|
}
|
|
774
789
|
|