lucid-extension-sdk 0.0.380 → 0.0.382

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.
@@ -97,8 +97,11 @@ export type ItemsPatch = {
97
97
  /** Errors found while patching the items */
98
98
  errors?: Map<string, SerializedLucidDictionary>;
99
99
  /**
100
- *Constraints that can be defined on a per-item basis to conditionally lock fields for a specific item.
101
- *The key for this map is the primary key of an item, and the value is a map from the name a field on that item to the constraints that should be applied to that field.
100
+ * Constraints that can be defined on a per-item basis to conditionally lock fields for a specific item.
101
+ * The key for this map is the primary key of an item, and the value is a map from the name a field on that item to the constraints that should be applied to that field.
102
+ *
103
+ * If defined, the constraints will overwrite any existing per-item constraints for the item/field.
104
+ * If you have a composite key, ensure that you serialize it to a string before using it as a key in this map.
102
105
  */
103
106
  fieldConstraintsPerItem?: Map<string, Map<string, FieldConstraintDefinition[]>>;
104
107
  } | ItemsPatchInexhaustive | ItemsPatchExhaustive;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.380",
3
+ "version": "0.0.382",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",