@stoker-platform/types 0.5.10 → 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.10",
3
+ "version": "0.5.12",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -563,6 +563,7 @@ export type SelectFilter = {
563
563
  title?: string | (() => string)
564
564
  roles?: StokerRole[]
565
565
  condition?: (value: boolean | string | number | undefined) => boolean
566
+ defaultValue?: string | number | (() => string | number)
566
567
  value?: string | number
567
568
  style?: "select" | "radio" | "buttons"
568
569
  }
@@ -715,7 +716,12 @@ export interface CollectionAdmin {
715
716
  formLists?: FormList[] | (() => FormList[] | Promise<FormList[]>)
716
717
  hideCreate?: boolean | ((relationList?: StokerCollection) => boolean | Promise<boolean>)
717
718
  disableUpdate?: boolean | ((operation: "create" | "update", record: StokerRecord) => boolean | Promise<boolean>)
718
- 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>
719
725
  onChange?: (
720
726
  operation: "create" | "update",
721
727
  record: StokerRecord,