lucid-extension-sdk 0.0.385 → 0.0.386
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
CHANGED
|
@@ -758,6 +758,8 @@ export type AddCardIntegrationQuery = {
|
|
|
758
758
|
'fvsc'?: [string, string][] | undefined;
|
|
759
759
|
/** Default search callback for searching for legal field values in an enum */
|
|
760
760
|
'dsc'?: string | undefined;
|
|
761
|
+
/** Custom field display settings */
|
|
762
|
+
'cfds'?: SerializedCustomFieldDisplaySettings;
|
|
761
763
|
};
|
|
762
764
|
/** If we can only search for user by their name (and not email) in the card integration. */
|
|
763
765
|
'subn'?: boolean | undefined;
|
|
@@ -1186,6 +1188,10 @@ export type RawCreateUserImageResult = {
|
|
|
1186
1188
|
'u': string;
|
|
1187
1189
|
};
|
|
1188
1190
|
export type CreateUserImageResult = Promise<RawCreateUserImageResult>;
|
|
1191
|
+
export type SerializedCustomFieldDisplaySettings = {
|
|
1192
|
+
/** Default to multiline text */
|
|
1193
|
+
'd'?: boolean | undefined;
|
|
1194
|
+
};
|
|
1189
1195
|
export type DataActionQuery = {
|
|
1190
1196
|
/** Flow Name */
|
|
1191
1197
|
'fn': string;
|
|
@@ -4,7 +4,7 @@ import { TextStyle } from '../../document/text/textstyle';
|
|
|
4
4
|
import { EditorClient } from '../../editorclient';
|
|
5
5
|
import { isString } from '../checks';
|
|
6
6
|
import { SerializedFieldType } from '../data/serializedfield/serializedfields';
|
|
7
|
-
import { DependenciesForItems, ExtensionCardFieldDefinition, ImportResult } from '../sharedcardintegration/cardintegrationdefinitions';
|
|
7
|
+
import { CustomFieldDisplaySettings, DependenciesForItems, ExtensionCardFieldDefinition, ImportResult } from '../sharedcardintegration/cardintegrationdefinitions';
|
|
8
8
|
import { CardIntegrationConfig } from './cardintegrationconfig';
|
|
9
9
|
import { DependencyMappingPhrasesType } from './dependencymappingphrases';
|
|
10
10
|
import { LucidCardIntegrationCustomImportModal } from './lucidcardintegrationcustomimportmodal';
|
|
@@ -78,6 +78,8 @@ export declare abstract class LucidCardIntegration {
|
|
|
78
78
|
* Useful for when you don't know the field name ahead of time (e.g. a dynamically generated field name).
|
|
79
79
|
*/
|
|
80
80
|
defaultSearchCallback?: string;
|
|
81
|
+
/** Optional properties to configure how fields are displayed */
|
|
82
|
+
customFieldDisplaySettings?: CustomFieldDisplaySettings;
|
|
81
83
|
};
|
|
82
84
|
iconConfiguration?: {
|
|
83
85
|
/**
|
|
@@ -287,6 +287,11 @@ class LucidCardIntegrationRegistry {
|
|
|
287
287
|
};
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
+
if (cardIntegration.fieldConfiguration.customFieldDisplaySettings) {
|
|
291
|
+
serialized['fc']['cfds'] = {
|
|
292
|
+
'd': cardIntegration.fieldConfiguration.customFieldDisplaySettings.defaultToMultilineText,
|
|
293
|
+
};
|
|
294
|
+
}
|
|
290
295
|
this.registerDependencyMapping(client, cardIntegration, serialized);
|
|
291
296
|
client.sendCommand("aci" /* CommandName.AddCardIntegration */, serialized);
|
|
292
297
|
}
|
|
@@ -147,3 +147,15 @@ export interface ImportResult {
|
|
|
147
147
|
* to a list of primary keys for items that the original item has a relationship with.
|
|
148
148
|
*/
|
|
149
149
|
export type DependenciesForItems = Map<DataItemProxy, string[]>;
|
|
150
|
+
export interface CustomFieldDisplaySettings {
|
|
151
|
+
/**
|
|
152
|
+
* When set to `true`, all text fields will be displayed as multiline text fields by default. This is currently the
|
|
153
|
+
* only way to get support for multiline text inputs.
|
|
154
|
+
*
|
|
155
|
+
* This setting will impact both the "edit card details" panel, and the "add card" panel (if you define one).
|
|
156
|
+
*
|
|
157
|
+
* If you would like certain fields to be shown as single line text, you can add the
|
|
158
|
+
* `FieldConstraintType.SINGLE_LINE_ONLY` constraint to the necessary fields.
|
|
159
|
+
* */
|
|
160
|
+
defaultToMultilineText: boolean;
|
|
161
|
+
}
|