lucid-extension-sdk 0.0.379 → 0.0.381

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.
@@ -202,6 +202,7 @@ export declare const isSerializedLucidCardFieldSettings: (subject: unknown) => s
202
202
  }> | undefined;
203
203
  }> | undefined;
204
204
  }>;
205
+ export declare function copyLucidCardFieldDisplaySettings(settings: LucidCardFieldDisplaySettings): LucidCardFieldDisplaySettings;
205
206
  /** @ignore */
206
207
  export declare function serializeLucidCardFieldDisplaySettings(settings: LucidCardFieldDisplaySettings): SerializedLucidCardFieldDisplaySettings;
207
208
  /** @ignore */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LucidCardFields = exports.StatusValues = exports.deserializeLucidCardFieldDisplaySettings = exports.serializeLucidCardFieldDisplaySettings = exports.isSerializedLucidCardFieldSettings = exports.isOnClickHandlerKey = exports.OnClickHandlerKeys = exports.isFieldDisplayType = exports.FieldDisplayType = void 0;
3
+ exports.LucidCardFields = exports.StatusValues = exports.deserializeLucidCardFieldDisplaySettings = exports.serializeLucidCardFieldDisplaySettings = exports.copyLucidCardFieldDisplaySettings = exports.isSerializedLucidCardFieldSettings = exports.isOnClickHandlerKey = exports.OnClickHandlerKeys = exports.isFieldDisplayType = exports.FieldDisplayType = void 0;
4
4
  const checks_1 = require("../checks");
5
5
  const badgeposition_1 = require("../properties/datagraphic/badgeposition");
6
6
  const validators_1 = require("../validators/validators");
@@ -102,6 +102,10 @@ const isStencilConfig = (0, validators_1.objectValidator)({
102
102
  exports.isSerializedLucidCardFieldSettings = (0, validators_1.objectValidator)({
103
103
  'StencilConfig': (0, validators_1.option)(isStencilConfig),
104
104
  });
105
+ function copyLucidCardFieldDisplaySettings(settings) {
106
+ return deserializeLucidCardFieldDisplaySettings(serializeLucidCardFieldDisplaySettings(settings));
107
+ }
108
+ exports.copyLucidCardFieldDisplaySettings = copyLucidCardFieldDisplaySettings;
105
109
  /** @ignore */
106
110
  function serializeLucidCardFieldDisplaySettings(settings) {
107
111
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
@@ -97,8 +97,10 @@ 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 you have a composite key, ensure that you serialize it to a string before using it as a key in this map.
102
104
  */
103
105
  fieldConstraintsPerItem?: Map<string, Map<string, FieldConstraintDefinition[]>>;
104
106
  } | ItemsPatchInexhaustive | ItemsPatchExhaustive;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.379",
3
+ "version": "0.0.381",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",