@arpproject/recrate 0.1.51 → 0.1.53

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
@@ -18,7 +18,16 @@ export interface Lookup {
18
18
  * result limit. Most host applications should search at least `@id` and
19
19
  * `name`.
20
20
  */
21
- entityTemplates(params: EntityTemplatesParams): Promise<void>;
21
+ entityTemplates?(params: EntityTemplatesParams): Promise<void>;
22
+ /** List reusable global entities, including when the search string is empty. */
23
+ globalEntities?(params: EntityTemplatesParams): Promise<{
24
+ documents: JSONObject[];
25
+ }>;
26
+ /** Record the association after a global entity has been added or linked. */
27
+ onGlobalEntityAdded?(params: {
28
+ recordId: string;
29
+ entityId: string;
30
+ }): Promise<void>;
22
31
  }
23
32
  export interface RoCrateApprovalSaveData {
24
33
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arpproject/recrate",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "type": "module",
5
5
  "main": "./dist/recrate.es.js",
6
6
  "module": "./dist/recrate.es.js",