lucid-extension-sdk 0.0.387 → 0.0.388

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.
@@ -17,7 +17,7 @@ export declare class PatchChange {
17
17
  private errors;
18
18
  constructor(patchId: string, syncId: string, collections: PatchChangeCollection[], creationPermission?: "DataSource" | "Collection" | "Item" | "None" | undefined);
19
19
  setError(primaryKey: string, fieldName: string, error: string): void;
20
- setTooltipError(primaryKey: string, error: string): void;
20
+ setTooltipError(primaryKey: string, error: string, fieldName?: string | undefined): void;
21
21
  getErrors(): Record<string, Record<string, string>>;
22
22
  }
23
23
  /** Placeholder field name for tool tip errors */
@@ -20,8 +20,8 @@ class PatchChange {
20
20
  }
21
21
  this.errors[primaryKey][fieldName] = error;
22
22
  }
23
- setTooltipError(primaryKey, error) {
24
- this.setError(primaryKey, exports.PatchErrorTooltipField, error);
23
+ setTooltipError(primaryKey, error, fieldName) {
24
+ this.setError(primaryKey, fieldName !== null && fieldName !== void 0 ? fieldName : exports.PatchErrorTooltipField, error);
25
25
  }
26
26
  getErrors() {
27
27
  return this.errors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.387",
3
+ "version": "0.0.388",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",