lucid-extension-sdk 0.0.429 → 0.0.431

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.
@@ -144,6 +144,7 @@ export declare const isSerializedLucidIconDataDictionary: (subject: unknown) =>
144
144
  icon: typeof isString;
145
145
  ariaLabel: typeof isString;
146
146
  tooltipLabel: (x: unknown) => x is string | undefined;
147
+ roundedIcon: (x: unknown) => x is boolean | undefined;
147
148
  }>;
148
149
  }>;
149
150
  export declare function isSerializedFieldType(value: any): value is SerializedFieldType;
@@ -49,6 +49,7 @@ exports.isSerializedLucidIconDataDictionary = (0, validators_1.objectValidator)(
49
49
  'icon': checks_1.isString,
50
50
  'ariaLabel': checks_1.isString,
51
51
  'tooltipLabel': (0, validators_1.option)(checks_1.isString),
52
+ 'roundedIcon': (0, validators_1.option)(checks_1.isBoolean),
52
53
  }),
53
54
  });
54
55
  function isSerializedFieldType(value) {
@@ -50,6 +50,10 @@ export interface ExtensionCardFieldDefinition extends FieldDefinition {
50
50
  * option for options.
51
51
  */
52
52
  search?: string | undefined;
53
+ /**
54
+ * If specified, an truncated label will be shown for responsiveness
55
+ */
56
+ truncatedLabel?: string | undefined;
53
57
  }
54
58
  export type ExtensionCardUserData = ExtensionCardFieldOption & {
55
59
  email: string | undefined;
@@ -92,6 +96,7 @@ export type SerializedExtensionCardFieldDefinition = SerializedFieldDefinition &
92
96
  'op'?: SerializedCardFieldOption[] | string | undefined;
93
97
  's'?: string | undefined;
94
98
  'u'?: string[] | undefined;
99
+ 't'?: string | undefined;
95
100
  };
96
101
  /** @ignore */
97
102
  export declare function serializeCardFieldDefinition(field: ExtensionCardFieldDefinition): SerializedExtensionCardFieldDefinition;
@@ -128,6 +133,7 @@ export declare const isSerializedExtensionCardFieldDefinition: (subject: unknown
128
133
  }>[] | undefined;
129
134
  s: (x: unknown) => x is string | undefined;
130
135
  u: (x: unknown) => x is string[] | undefined;
136
+ t: (x: unknown) => x is string | undefined;
131
137
  }>;
132
138
  /** @ignore */
133
139
  export declare function deserializeCardFieldDefinition(field: SerializedExtensionCardFieldDefinition): ExtensionCardFieldDefinition;
@@ -140,6 +146,7 @@ export interface SearchResultPerCollection {
140
146
  };
141
147
  data: CollectionDefinition;
142
148
  fields: ExtensionCardFieldDefinition[];
149
+ fieldNameTakesRemainingWidth?: string | undefined;
143
150
  }
144
151
  /**
145
152
  * Result of searching for data in the import modal
@@ -277,6 +284,7 @@ export declare const isSerializedExtensionCardFieldLabelIcons: (p1: unknown) =>
277
284
  icon: typeof isString;
278
285
  ariaLabel: typeof isString;
279
286
  tooltipLabel: (x: unknown) => x is string | undefined;
287
+ roundedIcon: (x: unknown) => x is boolean | undefined;
280
288
  }>;
281
289
  }>;
282
290
  }>[];
@@ -33,7 +33,7 @@ exports.serializeCardFieldOption = serializeCardFieldOption;
33
33
  /** @ignore */
34
34
  function serializeCardFieldDefinition(field) {
35
35
  var _a;
36
- return Object.assign(Object.assign({}, (0, schemadefinition_1.serializeFieldDefinition)(field)), { 'l': field.label, 'def': field.default, 'd': field.description, 'op': (0, checks_1.isString)(field.options) ? field.options : (_a = field.options) === null || _a === void 0 ? void 0 : _a.map(serializeCardFieldOption), 's': field.search, 'u': field.unsetFieldsWhenChanged });
36
+ return Object.assign(Object.assign({}, (0, schemadefinition_1.serializeFieldDefinition)(field)), { 'l': field.label, 'def': field.default, 'd': field.description, 'op': (0, checks_1.isString)(field.options) ? field.options : (_a = field.options) === null || _a === void 0 ? void 0 : _a.map(serializeCardFieldOption), 's': field.search, 'u': field.unsetFieldsWhenChanged, 't': field.truncatedLabel });
37
37
  }
38
38
  exports.serializeCardFieldDefinition = serializeCardFieldDefinition;
39
39
  /** @ignore */
@@ -63,11 +63,12 @@ exports.isSerializedExtensionCardFieldDefinition = (0, validators_1.objectValida
63
63
  'op': (0, validators_1.option)((0, validators_1.either)(checks_1.isString, (0, validators_1.arrayValidator)(exports.isSerializedFieldOption))),
64
64
  's': (0, validators_1.option)(checks_1.isString),
65
65
  'u': (0, validators_1.option)((0, checks_1.isTypedArray)(checks_1.isString)),
66
+ 't': (0, validators_1.option)(checks_1.isString),
66
67
  });
67
68
  /** @ignore */
68
69
  function deserializeCardFieldDefinition(field) {
69
70
  var _a;
70
- return Object.assign(Object.assign({}, (0, schemadefinition_1.parseFieldDefinition)(field)), { label: field['l'], description: field['d'], default: field['def'], options: (0, checks_1.isString)(field['op']) ? field['op'] : (_a = field['op']) === null || _a === void 0 ? void 0 : _a.map(deserializeFieldOption), search: field['s'], unsetFieldsWhenChanged: field['u'] });
71
+ return Object.assign(Object.assign({}, (0, schemadefinition_1.parseFieldDefinition)(field)), { label: field['l'], description: field['d'], default: field['def'], options: (0, checks_1.isString)(field['op']) ? field['op'] : (_a = field['op']) === null || _a === void 0 ? void 0 : _a.map(deserializeFieldOption), search: field['s'], unsetFieldsWhenChanged: field['u'], truncatedLabel: field['t'] });
71
72
  }
72
73
  exports.deserializeCardFieldDefinition = deserializeCardFieldDefinition;
73
74
  /** @ignore */
@@ -1,19 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DocumentElementType = void 0;
4
+ // NOTE: Please prefer using DocumentElementType.scala over this where possible
5
+ // NOTE: This must be kept in sync with DocumentElementType.scala
6
+ // NOTE: Please prefer to not rename any more keys here
4
7
  /**
5
8
  * An enumeration of document element types. A Document element represents a collection of data that is stored on a document.
6
9
  */
7
10
  var DocumentElementType;
8
11
  (function (DocumentElementType) {
9
12
  DocumentElementType["AssetReference"] = "AssetReference";
13
+ // Renamed DataTransformation here but not in DocumentElementType.scala due to scalats
10
14
  DocumentElementType["DataTransformation"] = "DerivedStructure";
11
15
  DocumentElementType["Path"] = "Path";
12
16
  DocumentElementType["Tag"] = "Tag";
17
+ // Renamed CommentThreadMetadata here but not in DocumentElementType.scala due to scalats
13
18
  DocumentElementType["CommentThreadMetadata"] = "ThreadMetadata";
14
19
  DocumentElementType["FontStylePreset"] = "FontStylePreset";
20
+ // Renamed IntraDocumentMutex here but not in DocumentElementType.scala due to scalats
15
21
  DocumentElementType["IntraDocumentMutex"] = "Mutex";
16
22
  DocumentElementType["Rule"] = "Rule";
23
+ // Renamed DocumentFormula here but not in DocumentElementType.scala due to scalats
24
+ // Is document level stored custom formula, currently used in footer
17
25
  DocumentElementType["DocumentFormula"] = "Formula";
18
26
  DocumentElementType["TaskCardFieldsConfig"] = "TaskCardFieldsConfig";
19
27
  DocumentElementType["CachedExtensionMetadata"] = "CachedExtensionMetadata";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.429",
3
+ "version": "0.0.431",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",