lucid-extension-sdk 0.0.300 → 0.0.301

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
@@ -715,6 +715,10 @@ export type AddCardIntegrationQuery = {
715
715
  'gdc': string;
716
716
  /** If specified, import modal settings */
717
717
  'im'?: {
718
+ /** Import Modal Heading */
719
+ 'imh'?: string;
720
+ /** Use Isolated Search Bar */
721
+ 'uisbui'?: boolean;
718
722
  /** Get search fields action */
719
723
  'gsf': string;
720
724
  /** Search action */
@@ -87,6 +87,12 @@ class LucidCardIntegrationRegistry {
87
87
  'i': LucidCardIntegrationRegistry.nextHookName(),
88
88
  'os': importModal.onSetup ? LucidCardIntegrationRegistry.nextHookName() : undefined,
89
89
  };
90
+ if (importModal.importModalHeading) {
91
+ serialized['im']['imh'] = importModal.importModalHeading;
92
+ }
93
+ if (importModal.useIsolatedSearchBarUI) {
94
+ serialized['im']['uisbui'] = importModal.useIsolatedSearchBarUI;
95
+ }
90
96
  client.registerAction(serialized['im']['gsf'], async ({ 's': searchSoFar }) => {
91
97
  const result = await importModal.getSearchFields(new Map(searchSoFar));
92
98
  return (0, cardintegrationdefinitions_1.serializeCardFieldArrayDefinition)(result);
@@ -33,6 +33,11 @@ import { ExtensionCardFieldDefinition } from './cardintegrationdefinitions';
33
33
  *
34
34
  */
35
35
  export interface LucidCardIntegrationStandardImportModal {
36
+ /**
37
+ * Heading used in the import modal.
38
+ */
39
+ importModalHeading?: string;
40
+ useIsolatedSearchBarUI?: boolean;
36
41
  getSearchFields: (searchSoFar: Map<string, SerializedFieldType>) => Promise<ExtensionCardFieldDefinition[]>;
37
42
  search: (fields: Map<string, SerializedFieldType>) => Promise<SearchResult>;
38
43
  import: (primaryKeys: string[], searchFields: Map<string, SerializedFieldType>) => Promise<ImportResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.300",
3
+ "version": "0.0.301",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",