@stoker-platform/types 0.5.34 → 0.5.35
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 +4 -2
package/package.json
CHANGED
package/src/types/schema.ts
CHANGED
|
@@ -701,7 +701,9 @@ export interface CollectionAdmin {
|
|
|
701
701
|
collection: string
|
|
702
702
|
record: string
|
|
703
703
|
}
|
|
704
|
-
| ((
|
|
704
|
+
| ((
|
|
705
|
+
context?: "permissions",
|
|
706
|
+
) => { collection: string; record: string } | Promise<{ collection: string; record: string }>)
|
|
705
707
|
icon?: React.FC | (() => React.FC | Promise<React.FC>)
|
|
706
708
|
duplicate?: boolean | (() => boolean | Promise<boolean>)
|
|
707
709
|
convert?: Convert[] | (() => Convert[] | Promise<Convert[]>)
|
|
@@ -865,7 +867,7 @@ export interface FieldAdmin {
|
|
|
865
867
|
list?: boolean | ((parentCollection?: CollectionSchema, parentRecord?: StokerRecord) => boolean)
|
|
866
868
|
form?: boolean | ((operation?: "create" | "update", record?: StokerRecord) => boolean)
|
|
867
869
|
}
|
|
868
|
-
readOnly?: boolean | ((operation?: "create" | "update", record?: StokerRecord) => boolean
|
|
870
|
+
readOnly?: boolean | ((operation?: "create" | "update", record?: StokerRecord) => boolean)
|
|
869
871
|
description?: FieldDescription
|
|
870
872
|
textarea?: boolean | (() => boolean | Promise<boolean>)
|
|
871
873
|
radio?: boolean | (() => boolean | Promise<boolean>)
|