@canva/intents 2.1.1 → 2.1.2
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/CHANGELOG.md +6 -0
- package/content/index.d.ts +10 -3
- package/index.d.ts +10 -3
- package/lib/cjs/sdk/intents/version.js +1 -1
- package/lib/esm/sdk/intents/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/content/index.d.ts
CHANGED
|
@@ -413,6 +413,13 @@ export declare interface DocumentRequirement extends BaseFileRequirement {
|
|
|
413
413
|
*/
|
|
414
414
|
export declare type DocumentSize = 'a4' | 'a3' | 'letter' | 'legal';
|
|
415
415
|
|
|
416
|
+
/**
|
|
417
|
+
* Email preview stub used before beta preview type is fully supported.
|
|
418
|
+
*/
|
|
419
|
+
declare interface EmailPreviewStub extends BasePreview {
|
|
420
|
+
kind: 'email';
|
|
421
|
+
}
|
|
422
|
+
|
|
416
423
|
/**
|
|
417
424
|
* @public
|
|
418
425
|
*
|
|
@@ -812,9 +819,7 @@ export declare const prepareContentPublisher: (implementation: ContentPublisherI
|
|
|
812
819
|
*
|
|
813
820
|
* Check the `kind` and `status` properties to determine the type and state.
|
|
814
821
|
*/
|
|
815
|
-
export declare type Preview = ImagePreview | VideoPreview | DocumentPreview |
|
|
816
|
-
kind: 'email';
|
|
817
|
-
};
|
|
822
|
+
export declare type Preview = ImagePreview | VideoPreview | DocumentPreview | EmailPreviewStub;
|
|
818
823
|
|
|
819
824
|
/**
|
|
820
825
|
* @public
|
|
@@ -1081,6 +1086,7 @@ export declare type RemoteRequestFailedError = {
|
|
|
1081
1086
|
* Provides callbacks for managing preview media and responding to preview updates.
|
|
1082
1087
|
*/
|
|
1083
1088
|
export declare type RenderPreviewUiRequest = {
|
|
1089
|
+
|
|
1084
1090
|
/**
|
|
1085
1091
|
* Callback to upgrade video thumbnail previews to full video media.
|
|
1086
1092
|
*
|
|
@@ -1150,6 +1156,7 @@ export declare type RenderPreviewUiRequest = {
|
|
|
1150
1156
|
* a custom publish settings interface where users configure platform-specific options.
|
|
1151
1157
|
*/
|
|
1152
1158
|
export declare type RenderSettingsUiRequest = {
|
|
1159
|
+
|
|
1153
1160
|
/**
|
|
1154
1161
|
* Callback to save and validate the user's publish settings.
|
|
1155
1162
|
*
|
package/index.d.ts
CHANGED
|
@@ -1053,6 +1053,13 @@ declare interface DocumentRequirement extends BaseFileRequirement {
|
|
|
1053
1053
|
*/
|
|
1054
1054
|
declare type DocumentSize = 'a4' | 'a3' | 'letter' | 'legal';
|
|
1055
1055
|
|
|
1056
|
+
/**
|
|
1057
|
+
* Email preview stub used before beta preview type is fully supported.
|
|
1058
|
+
*/
|
|
1059
|
+
declare interface EmailPreviewStub extends BasePreview {
|
|
1060
|
+
kind: 'email';
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1056
1063
|
/**
|
|
1057
1064
|
* @public
|
|
1058
1065
|
*
|
|
@@ -1938,9 +1945,7 @@ declare const prepareDesignEditor: (implementation: DesignEditorIntent) => void;
|
|
|
1938
1945
|
*
|
|
1939
1946
|
* Check the `kind` and `status` properties to determine the type and state.
|
|
1940
1947
|
*/
|
|
1941
|
-
declare type Preview = ImagePreview | VideoPreview | DocumentPreview |
|
|
1942
|
-
kind: 'email';
|
|
1943
|
-
};
|
|
1948
|
+
declare type Preview = ImagePreview | VideoPreview | DocumentPreview | EmailPreviewStub;
|
|
1944
1949
|
|
|
1945
1950
|
/**
|
|
1946
1951
|
* @public
|
|
@@ -2222,6 +2227,7 @@ declare type RemoteRequestFailedError_2 = {
|
|
|
2222
2227
|
* Provides callbacks for managing preview media and responding to preview updates.
|
|
2223
2228
|
*/
|
|
2224
2229
|
declare type RenderPreviewUiRequest = {
|
|
2230
|
+
|
|
2225
2231
|
/**
|
|
2226
2232
|
* Callback to upgrade video thumbnail previews to full video media.
|
|
2227
2233
|
*
|
|
@@ -2337,6 +2343,7 @@ declare type RenderSelectionUiRequest = {
|
|
|
2337
2343
|
* a custom publish settings interface where users configure platform-specific options.
|
|
2338
2344
|
*/
|
|
2339
2345
|
declare type RenderSettingsUiRequest = {
|
|
2346
|
+
|
|
2340
2347
|
/**
|
|
2341
2348
|
* Callback to save and validate the user's publish settings.
|
|
2342
2349
|
*
|