@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/types",
3
- "version": "0.5.34",
3
+ "version": "0.5.35",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -701,7 +701,9 @@ export interface CollectionAdmin {
701
701
  collection: string
702
702
  record: string
703
703
  }
704
- | (() => { collection: string; record: string } | Promise<{ collection: string; record: string }>)
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 | Promise<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>)