lucid-extension-sdk 0.0.93 → 0.0.94
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/package.json +1 -1
- package/sdk/commandtypes.d.ts +26 -26
- package/sdk/core/cardintegration/cardintegrationconfig.d.ts +2 -2
- package/sdk/core/cardintegration/cardintegrationdefinitions.d.ts +6 -6
- package/sdk/core/data/serializedfield/serializedfielddefinition.d.ts +3 -3
- package/sdk/core/unfurl/unfurldetails.d.ts +4 -4
- package/sdk/data/schemadefinition.d.ts +2 -2
package/package.json
CHANGED
package/sdk/commandtypes.d.ts
CHANGED
|
@@ -496,7 +496,7 @@ export declare type AddCardIntegrationQuery = {
|
|
|
496
496
|
'gif': string;
|
|
497
497
|
/** Create card action */
|
|
498
498
|
'cc': string;
|
|
499
|
-
};
|
|
499
|
+
} | undefined;
|
|
500
500
|
};
|
|
501
501
|
export declare type AddCardIntegrationResult = undefined;
|
|
502
502
|
export declare type AddLineTextAreaQuery = {
|
|
@@ -515,15 +515,15 @@ export declare type AddMenuItemQuery = {
|
|
|
515
515
|
/** Label to display on the menu item */
|
|
516
516
|
'l': string;
|
|
517
517
|
/** Named action to run when the menu item is clicked */
|
|
518
|
-
'a'?: string;
|
|
518
|
+
'a'?: string | undefined;
|
|
519
519
|
/** Named action that returns whether the menu item should be visible */
|
|
520
|
-
'v'?: string;
|
|
520
|
+
'v'?: string | undefined;
|
|
521
521
|
/** Named action that returns whether the menu item should be disabled */
|
|
522
|
-
'd'?: string;
|
|
522
|
+
'd'?: string | undefined;
|
|
523
523
|
/** Which menu to put the item in */
|
|
524
524
|
't': MenuType;
|
|
525
525
|
/** If specified, where to place the menu item; defaults to MenuLocation.Extension */
|
|
526
|
-
'loc'?: MenuLocation;
|
|
526
|
+
'loc'?: MenuLocation | undefined;
|
|
527
527
|
/** If specified, this menu item should launch a file picker */
|
|
528
528
|
'f'?: {
|
|
529
529
|
/** Action to call when files are selected */
|
|
@@ -534,7 +534,7 @@ export declare type AddMenuItemQuery = {
|
|
|
534
534
|
's'?: boolean;
|
|
535
535
|
/** Return content in a binary ArrayBuffer instead of as text */
|
|
536
536
|
'b'?: boolean;
|
|
537
|
-
};
|
|
537
|
+
} | undefined;
|
|
538
538
|
};
|
|
539
539
|
export declare type AddMenuItemResult = undefined;
|
|
540
540
|
export declare type AddShapeDataQuery = {
|
|
@@ -550,11 +550,11 @@ export declare type AddShapeDataQuery = {
|
|
|
550
550
|
export declare type AddShapeDataResult = undefined;
|
|
551
551
|
export declare type AlertQuery = {
|
|
552
552
|
/** Title; defaults to extension title */
|
|
553
|
-
't'?: string;
|
|
553
|
+
't'?: string | undefined;
|
|
554
554
|
/** Body text */
|
|
555
555
|
'b': string;
|
|
556
556
|
/** Button text; defaults to i18n'ed "OK" */
|
|
557
|
-
'bt'?: string;
|
|
557
|
+
'bt'?: string | undefined;
|
|
558
558
|
};
|
|
559
559
|
/** True if they click OK, false otherwise */
|
|
560
560
|
export declare type AlertResult = Promise<boolean>;
|
|
@@ -562,7 +562,7 @@ export declare type AwaitImportQuery = {
|
|
|
562
562
|
/** Data Connector Name */
|
|
563
563
|
'n': string;
|
|
564
564
|
/** Sync data source ID Nonce */
|
|
565
|
-
's'?: string;
|
|
565
|
+
's'?: string | undefined;
|
|
566
566
|
/** Sync collection ID */
|
|
567
567
|
'c': string;
|
|
568
568
|
/** Keys to await */
|
|
@@ -581,7 +581,7 @@ export declare type BootstrapQuery = {
|
|
|
581
581
|
/**
|
|
582
582
|
* Marks a document as requiring the editor extension.
|
|
583
583
|
*/
|
|
584
|
-
'm'?: boolean;
|
|
584
|
+
'm'?: boolean | undefined;
|
|
585
585
|
};
|
|
586
586
|
export declare type BootstrapResult = Promise<void>;
|
|
587
587
|
export declare type CanEditPackageSettingsQuery = undefined;
|
|
@@ -590,13 +590,13 @@ export declare type CancelDragBlockToCanvasQuery = void;
|
|
|
590
590
|
export declare type CancelDragBlockToCanvasResult = undefined;
|
|
591
591
|
export declare type ConfirmQuery = {
|
|
592
592
|
/** Title; defaults to extension title */
|
|
593
|
-
't'?: string;
|
|
593
|
+
't'?: string | undefined;
|
|
594
594
|
/** Body text */
|
|
595
595
|
'b': string;
|
|
596
596
|
/** OK button text; defaults to i18n'ed "OK" */
|
|
597
|
-
'o'?: string;
|
|
597
|
+
'o'?: string | undefined;
|
|
598
598
|
/** Cancel button text; defaults to i18n'ed "Cancel" */
|
|
599
|
-
'c'?: string;
|
|
599
|
+
'c'?: string | undefined;
|
|
600
600
|
};
|
|
601
601
|
/** True if they click OK, false otherwise */
|
|
602
602
|
export declare type ConfirmResult = Promise<boolean>;
|
|
@@ -605,7 +605,7 @@ export declare type CreateBlockQuery = {
|
|
|
605
605
|
* By default, we add the block to the current page & currently active group. If specified, the
|
|
606
606
|
* block will instead be created as a direct child of the given page.
|
|
607
607
|
*/
|
|
608
|
-
'p'?: string;
|
|
608
|
+
'p'?: string | undefined;
|
|
609
609
|
/** Class name of the block to create */
|
|
610
610
|
'c': string;
|
|
611
611
|
/** If specified, the stencil for a custom shape. Only valid if the class name is 'CustomBlock' */
|
|
@@ -643,7 +643,7 @@ export declare type CreateLineQuery = {
|
|
|
643
643
|
* By default, we add the line to the current page & currently active group. If specified, the
|
|
644
644
|
* line will instead be created as a direct child of the given page.
|
|
645
645
|
*/
|
|
646
|
-
'p'?: string;
|
|
646
|
+
'p'?: string | undefined;
|
|
647
647
|
};
|
|
648
648
|
export declare type CreateLineResult = string;
|
|
649
649
|
export declare type CreatePageQuery = void;
|
|
@@ -667,7 +667,7 @@ export declare type DataActionQuery = {
|
|
|
667
667
|
/** Flow Data */
|
|
668
668
|
'fd'?: unknown;
|
|
669
669
|
/** Sync data source ID Nonce */
|
|
670
|
-
's'?: string;
|
|
670
|
+
's'?: string | undefined;
|
|
671
671
|
/** Data Connector Name */
|
|
672
672
|
'n': string;
|
|
673
673
|
};
|
|
@@ -774,7 +774,7 @@ export declare type GetItemPageIdQuery = string;
|
|
|
774
774
|
export declare type GetItemPageIdResult = string;
|
|
775
775
|
export declare type GetReferenceKeyQuery = {
|
|
776
776
|
/** ID of the LucidElement to read a reference key from, or undefined to read from the LucidDocument */
|
|
777
|
-
'id'?: string;
|
|
777
|
+
'id'?: string | undefined;
|
|
778
778
|
/** Reference key to get */
|
|
779
779
|
'k': number | string;
|
|
780
780
|
};
|
|
@@ -799,7 +799,7 @@ export declare type GetRelativeLinePositionQuery = {
|
|
|
799
799
|
export declare type GetRelativeLinePositionResult = Point;
|
|
800
800
|
export declare type GetSelectionQuery = {
|
|
801
801
|
/** If set, additionally return all items inside selected groups */
|
|
802
|
-
'd'?: boolean;
|
|
802
|
+
'd'?: boolean | undefined;
|
|
803
803
|
};
|
|
804
804
|
export declare type GetSelectionResult = string[];
|
|
805
805
|
export declare type GetShapeDataQuery = {
|
|
@@ -919,7 +919,7 @@ export declare type RegisterPanelQuery = {
|
|
|
919
919
|
/** Where to display the panel */
|
|
920
920
|
'l': PanelLocation;
|
|
921
921
|
/** Named action that returns whether the button to open the panel should be visible */
|
|
922
|
-
'v'?: string;
|
|
922
|
+
'v'?: string | undefined;
|
|
923
923
|
/** Content to display in the panel; full HTML page preferred */
|
|
924
924
|
'c': string;
|
|
925
925
|
/** Icon URL, preferably a base64-encoded URL */
|
|
@@ -941,7 +941,7 @@ export declare type SendOAuthRequestQuery = SendXHRQuery & {
|
|
|
941
941
|
/** OAuth provider name as specified in the package manifest */
|
|
942
942
|
'p': string;
|
|
943
943
|
/** Post Result To */
|
|
944
|
-
'prt'?: string;
|
|
944
|
+
'prt'?: string | undefined;
|
|
945
945
|
};
|
|
946
946
|
export declare type SendPermanentTokenRequestQuery = SendXHRQuery & {
|
|
947
947
|
/** Permanent token provider name as specified in the package manifest */
|
|
@@ -960,7 +960,7 @@ export declare type SendXHRResponseFormat = 'utf8' | 'binary';
|
|
|
960
960
|
export declare type SendXHRQuery = {
|
|
961
961
|
'url': string;
|
|
962
962
|
/** HTTP method, e.g. 'GET', 'FETCH', etc. Defaults to GET */
|
|
963
|
-
'm'?: string;
|
|
963
|
+
'm'?: string | undefined;
|
|
964
964
|
/**
|
|
965
965
|
* The data to send with the request.
|
|
966
966
|
*
|
|
@@ -969,20 +969,20 @@ export declare type SendXHRQuery = {
|
|
|
969
969
|
* For non-GET requests, this is sent as the body of the request. If this is specified, and
|
|
970
970
|
* no 'Content-Type' header is specified, a 'text/plain; charset=utf-8' content type is sent.
|
|
971
971
|
*/
|
|
972
|
-
'd'?: string;
|
|
972
|
+
'd'?: string | undefined;
|
|
973
973
|
/** Headers to send with the request */
|
|
974
974
|
'h'?: {
|
|
975
975
|
[key: string]: string | string[];
|
|
976
|
-
};
|
|
976
|
+
} | undefined;
|
|
977
977
|
/** Timeout in milliseconds, if specified */
|
|
978
|
-
'ms'?: number;
|
|
978
|
+
'ms'?: number | undefined;
|
|
979
979
|
/**
|
|
980
980
|
* The desired format for the returned response body. Defaults to 'utf8'.
|
|
981
981
|
*
|
|
982
982
|
* - If 'utf8', the response body will be returned as a string.
|
|
983
983
|
* - If 'binary', the response body will be returned as a Uint8Array.
|
|
984
984
|
*/
|
|
985
|
-
'f'?: SendXHRResponseFormat;
|
|
985
|
+
'f'?: SendXHRResponseFormat | undefined;
|
|
986
986
|
};
|
|
987
987
|
export declare type RawSendXHRResponse = {
|
|
988
988
|
/** URL of the response after any redirects */
|
|
@@ -1017,7 +1017,7 @@ export declare type SetReferenceKeyQuery = {
|
|
|
1017
1017
|
/** ID of the reference key to set */
|
|
1018
1018
|
'k': string | number;
|
|
1019
1019
|
/** New reference key settings, or undefined to remove the reference key */
|
|
1020
|
-
'v'?: SerializedReferenceKeyType;
|
|
1020
|
+
'v'?: SerializedReferenceKeyType | undefined;
|
|
1021
1021
|
};
|
|
1022
1022
|
export declare type SetReferenceKeyResult = undefined;
|
|
1023
1023
|
export declare type SetShapeDataQuery = {
|
|
@@ -35,12 +35,12 @@ export declare type SerializedCardIntegrationConfig = {
|
|
|
35
35
|
'cc': {
|
|
36
36
|
'f': string[];
|
|
37
37
|
'fd'?: [string, SerializedLucidCardFieldDisplaySettings][];
|
|
38
|
-
'id'?: string;
|
|
38
|
+
'id'?: string | undefined;
|
|
39
39
|
};
|
|
40
40
|
'cdpc': {
|
|
41
41
|
'f': {
|
|
42
42
|
'n': string;
|
|
43
|
-
'l'?: boolean;
|
|
43
|
+
'l'?: boolean | undefined;
|
|
44
44
|
}[];
|
|
45
45
|
};
|
|
46
46
|
};
|
|
@@ -14,20 +14,20 @@ export interface ExtensionCardFieldDefinition extends FieldDefinition {
|
|
|
14
14
|
/** If defined, the default value for this field */
|
|
15
15
|
default?: SerializedFieldType;
|
|
16
16
|
/** Additional information we can provide to users, e.g. as a hover tooltip */
|
|
17
|
-
description?: string;
|
|
17
|
+
description?: string | undefined;
|
|
18
18
|
/**
|
|
19
19
|
* If specified, the list of options available to choose from, or the name
|
|
20
20
|
* of a registered action that returns the list of options (either directly
|
|
21
21
|
* or as a Promise).
|
|
22
22
|
*/
|
|
23
|
-
options?: ExtensionCardFieldOption[] | string;
|
|
23
|
+
options?: ExtensionCardFieldOption[] | string | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* If specified, an action that takes the search text and input so far, and
|
|
26
26
|
* returns the list of options that should be displayed. This is useful when
|
|
27
27
|
* there are too many possible options to reasonably use the "options"
|
|
28
28
|
* option for options.
|
|
29
29
|
*/
|
|
30
|
-
search?: string;
|
|
30
|
+
search?: string | undefined;
|
|
31
31
|
}
|
|
32
32
|
/** @ignore */
|
|
33
33
|
export declare type SerializedCardFieldOption = {
|
|
@@ -40,9 +40,9 @@ export declare function serializeCardFieldOption(option: ExtensionCardFieldOptio
|
|
|
40
40
|
export declare type SerializedExtensionCardFieldDefinition = SerializedFieldDefinition & {
|
|
41
41
|
'l': string;
|
|
42
42
|
'def'?: SerializedFieldType;
|
|
43
|
-
'd'?: string;
|
|
44
|
-
'op'?: SerializedCardFieldOption[] | string;
|
|
45
|
-
's'?: string;
|
|
43
|
+
'd'?: string | undefined;
|
|
44
|
+
'op'?: SerializedCardFieldOption[] | string | undefined;
|
|
45
|
+
's'?: string | undefined;
|
|
46
46
|
};
|
|
47
47
|
/** @ignore */
|
|
48
48
|
export declare function serializeCardFieldDefinition(field: ExtensionCardFieldDefinition): SerializedExtensionCardFieldDefinition;
|
|
@@ -4,9 +4,9 @@ import { SemanticKind } from '../fieldtypedefinition/semantickind';
|
|
|
4
4
|
export declare type SerializedFieldDefinition = {
|
|
5
5
|
'Name': string;
|
|
6
6
|
'Type': SerializedFieldTypeDefinition;
|
|
7
|
-
'Constraints'?: SerializedFieldConstraint[];
|
|
8
|
-
'SyncSchema'?: string;
|
|
9
|
-
'Mapping'?: readonly SemanticKind[];
|
|
7
|
+
'Constraints'?: SerializedFieldConstraint[] | undefined;
|
|
8
|
+
'SyncSchema'?: string | undefined;
|
|
9
|
+
'Mapping'?: readonly SemanticKind[] | undefined;
|
|
10
10
|
};
|
|
11
11
|
export declare enum FieldConstraintType {
|
|
12
12
|
REQUIRED = "required",
|
|
@@ -37,10 +37,10 @@ export interface UnfurlDetails {
|
|
|
37
37
|
export interface SerializedUnfurlDetails {
|
|
38
38
|
'ProviderName': string;
|
|
39
39
|
'ProviderFaviconUrl': string;
|
|
40
|
-
'UnfurlTitle'?: string;
|
|
41
|
-
'Iframe'?: SerializedUnfurlIframe;
|
|
42
|
-
'Thumbnails'?: SerializedUnfurlThumbnail[];
|
|
43
|
-
'PreviewImageUrl'?: string;
|
|
40
|
+
'UnfurlTitle'?: string | undefined;
|
|
41
|
+
'Iframe'?: SerializedUnfurlIframe | undefined;
|
|
42
|
+
'Thumbnails'?: SerializedUnfurlThumbnail[] | undefined;
|
|
43
|
+
'PreviewImageUrl'?: string | undefined;
|
|
44
44
|
}
|
|
45
45
|
/** @ignore */
|
|
46
46
|
export declare const isValidUnfurlDetails: (subject: unknown) => subject is import("../guards").DestructureGuardedTypeObj<{
|
|
@@ -46,8 +46,8 @@ export declare const isFieldConstraintDefinition: (x: unknown) => x is {
|
|
|
46
46
|
export interface FieldDefinition {
|
|
47
47
|
name: string;
|
|
48
48
|
type: FieldTypeDefinition;
|
|
49
|
-
constraints?: FieldConstraintDefinition[];
|
|
50
|
-
mapping?: readonly SemanticKind[];
|
|
49
|
+
constraints?: FieldConstraintDefinition[] | undefined;
|
|
50
|
+
mapping?: readonly SemanticKind[] | undefined;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Definition of a schema for creating a [Collection](#classes_data_collectionproxy-CollectionProxy)
|