lucid-extension-sdk 0.0.398 → 0.0.400
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/commandtypes.d.ts +0 -2
- package/core/cardintegration/cardfielddisplaysettings.d.ts +7 -1
- package/core/cardintegration/cardfielddisplaysettings.js +6 -0
- package/core/cardintegration/lucidcardintegrationregistry.js +3 -4
- package/core/sharedcardintegration/cardintegrationdefinitions.d.ts +0 -4
- package/package.json +1 -1
package/commandtypes.d.ts
CHANGED
|
@@ -1194,8 +1194,6 @@ export type CreateUserImageResult = Promise<RawCreateUserImageResult>;
|
|
|
1194
1194
|
export type SerializedCustomFieldDisplaySettings = {
|
|
1195
1195
|
/** Default to multiline text */
|
|
1196
1196
|
'd'?: boolean | undefined;
|
|
1197
|
-
/** allowMultiSelectEnums */
|
|
1198
|
-
'amse'?: boolean | undefined;
|
|
1199
1197
|
/** useRoundIcons */
|
|
1200
1198
|
'uri'?: boolean | undefined;
|
|
1201
1199
|
/** displayMappedDatesAsDateRange */
|
|
@@ -44,8 +44,14 @@ export declare enum FieldDisplayType {
|
|
|
44
44
|
UserProfile = "UserProfile",
|
|
45
45
|
/**
|
|
46
46
|
* Given an enum value, display the string representation of the enum value.
|
|
47
|
+
* Truncates value to be a maximum of 20 chars, appending '...' to the given value.
|
|
47
48
|
*/
|
|
48
|
-
CustomSingleSelectField = "CustomSingleSelectField"
|
|
49
|
+
CustomSingleSelectField = "CustomSingleSelectField",
|
|
50
|
+
/**
|
|
51
|
+
* A simple text badge stylized for short text custom fields.
|
|
52
|
+
* Truncates value to be a maximum of 20 chars, appending '...' to the given value.
|
|
53
|
+
*/
|
|
54
|
+
CustomTextField = "CustomTextField"
|
|
49
55
|
}
|
|
50
56
|
export declare const isFieldDisplayType: (x: unknown) => x is FieldDisplayType;
|
|
51
57
|
/**
|
|
@@ -49,8 +49,14 @@ var FieldDisplayType;
|
|
|
49
49
|
FieldDisplayType["UserProfile"] = "UserProfile";
|
|
50
50
|
/**
|
|
51
51
|
* Given an enum value, display the string representation of the enum value.
|
|
52
|
+
* Truncates value to be a maximum of 20 chars, appending '...' to the given value.
|
|
52
53
|
*/
|
|
53
54
|
FieldDisplayType["CustomSingleSelectField"] = "CustomSingleSelectField";
|
|
55
|
+
/**
|
|
56
|
+
* A simple text badge stylized for short text custom fields.
|
|
57
|
+
* Truncates value to be a maximum of 20 chars, appending '...' to the given value.
|
|
58
|
+
*/
|
|
59
|
+
FieldDisplayType["CustomTextField"] = "CustomTextField";
|
|
54
60
|
})(FieldDisplayType || (exports.FieldDisplayType = FieldDisplayType = {}));
|
|
55
61
|
exports.isFieldDisplayType = (0, validators_1.enumValidator)(FieldDisplayType);
|
|
56
62
|
/**
|
|
@@ -156,7 +156,7 @@ class LucidCardIntegrationRegistry {
|
|
|
156
156
|
* Register a card integration.
|
|
157
157
|
*/
|
|
158
158
|
static addCardIntegration(client, cardIntegration) {
|
|
159
|
-
var _a, _b, _c, _d
|
|
159
|
+
var _a, _b, _c, _d;
|
|
160
160
|
const getFieldsActionName = LucidCardIntegrationRegistry.nextHookName();
|
|
161
161
|
client.registerAction(getFieldsActionName, async (param) => {
|
|
162
162
|
const dataSource = new datasourceproxy_1.DataSourceProxy(param['d'], client);
|
|
@@ -292,9 +292,8 @@ class LucidCardIntegrationRegistry {
|
|
|
292
292
|
if (cardIntegration.fieldConfiguration.customFieldDisplaySettings) {
|
|
293
293
|
serialized['fc']['cfds'] = {
|
|
294
294
|
'd': cardIntegration.fieldConfiguration.customFieldDisplaySettings.defaultToMultilineText,
|
|
295
|
-
'
|
|
296
|
-
'
|
|
297
|
-
'dadr': (_f = (_e = cardIntegration.fieldConfiguration) === null || _e === void 0 ? void 0 : _e.customFieldDisplaySettings) === null || _f === void 0 ? void 0 : _f.displayMappedDatesAsDateRange,
|
|
295
|
+
'uri': (_b = (_a = cardIntegration.fieldConfiguration) === null || _a === void 0 ? void 0 : _a.customFieldDisplaySettings) === null || _b === void 0 ? void 0 : _b.useRoundIcons,
|
|
296
|
+
'dadr': (_d = (_c = cardIntegration.fieldConfiguration) === null || _c === void 0 ? void 0 : _c.customFieldDisplaySettings) === null || _d === void 0 ? void 0 : _d.displayMappedDatesAsDateRange,
|
|
298
297
|
};
|
|
299
298
|
}
|
|
300
299
|
this.registerDependencyMapping(client, cardIntegration, serialized);
|
|
@@ -160,10 +160,6 @@ export interface CustomFieldDisplaySettings {
|
|
|
160
160
|
* `FieldConstraintType.SINGLE_LINE_ONLY` constraint to the necessary fields.
|
|
161
161
|
* */
|
|
162
162
|
defaultToMultilineText?: boolean;
|
|
163
|
-
/** Whether multi-select dropdown fields are allowed.
|
|
164
|
-
* If false, all enum fields are coerced to single-select regardless of their type.
|
|
165
|
-
*/
|
|
166
|
-
allowMultiSelectEnums?: boolean;
|
|
167
163
|
/** Whether to default to using round icons in dropdowns in both the edit details panel and basic edit panel */
|
|
168
164
|
useRoundIcons?: boolean;
|
|
169
165
|
/**
|