@arpproject/recrate 0.1.31 → 0.1.32-test2

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/dist/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export interface JSONObject {
2
2
  [key: string]: any;
3
3
  }
4
+ export type RoCrateApprovalDecision = 'accept' | 'reject' | 'manual-edit';
4
5
  export interface EntityTemplatesParams {
5
6
  type?: Array<any> | string;
6
7
  queryString?: string;
@@ -11,6 +12,7 @@ export interface Lookup {
11
12
  }
12
13
  export type DescriboCrateBuilderProps = {
13
14
  crate?: JSONObject;
15
+ roCrateApproval?: JSONObject | JSONObject[];
14
16
  profile?: JSONObject;
15
17
  entityId?: string;
16
18
  lookup?: Lookup;
@@ -30,6 +32,14 @@ export type DescriboCrateBuilderProps = {
30
32
  crate: JSONObject;
31
33
  entityId?: string;
32
34
  }) => void;
35
+ onSaveRoCrateApproval?: (saveData: {
36
+ roCrateApproval: JSONObject | JSONObject[];
37
+ entityId: string;
38
+ propertyName: string;
39
+ decision: RoCrateApprovalDecision;
40
+ approvalRecords: JSONObject[];
41
+ value?: any;
42
+ }) => void;
33
43
  onSaveCrateAsTemplate?: (name: string, crate: JSONObject) => void;
34
44
  onSaveEntityAsTemplate?: (name: string, entity: JSONObject) => void;
35
45
  onNavigation?: (entity: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arpproject/recrate",
3
- "version": "0.1.31",
3
+ "version": "0.1.32-test2",
4
4
  "type": "module",
5
5
  "main": "./dist/recrate.es.js",
6
6
  "module": "./dist/recrate.es.js",