@stoker-platform/types 0.5.11 → 0.5.12

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.11",
3
+ "version": "0.5.12",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -716,7 +716,12 @@ export interface CollectionAdmin {
716
716
  formLists?: FormList[] | (() => FormList[] | Promise<FormList[]>)
717
717
  hideCreate?: boolean | ((relationList?: StokerCollection) => boolean | Promise<boolean>)
718
718
  disableUpdate?: boolean | ((operation: "create" | "update", record: StokerRecord) => boolean | Promise<boolean>)
719
- onFormOpen?: (operation: "create" | "update", record: StokerRecord) => void | Promise<void>
719
+ onFormOpen?: (
720
+ operation: "create" | "update",
721
+ record: StokerRecord,
722
+ parentCollection?: StokerCollection,
723
+ parentRecord?: StokerRecord,
724
+ ) => void | Promise<void>
720
725
  onChange?: (
721
726
  operation: "create" | "update",
722
727
  record: StokerRecord,