@canva/intents 2.1.3-beta.0 → 2.2.1-beta.0

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.2.1-beta.0 - 2026-02-24
4
+
5
+ ### Added
6
+
7
+ - Added new html_standalone publish format for single html files
8
+
3
9
  ## 2.1.3-beta.0 - 2026-02-03
4
10
 
5
11
  ### Added
package/beta.d.ts CHANGED
@@ -555,21 +555,7 @@ declare namespace data {
555
555
  DataTableMetadata,
556
556
  GetDataTableError,
557
557
  UpdateDataRefResponse,
558
- DataSourceRef,
559
- DataTableLimit,
560
- DataType,
561
- DataTable,
562
- ColumnConfig,
563
- DataTableRow,
564
- DataTableCell,
565
- DateDataTableCell,
566
- StringDataTableCell,
567
- NumberDataTableCell,
568
- NumberCellMetadata,
569
- BooleanDataTableCell,
570
- MediaCollectionDataTableCell,
571
- DataTableImageUpload,
572
- DataTableVideoUpload
558
+ DataSourceRef
573
559
  }
574
560
  }
575
561
  export { data }
@@ -1148,6 +1134,8 @@ declare interface EmailPreviewStub extends BasePreview {
1148
1134
  * @beta
1149
1135
  * Email file requirements for a media slot, currently only supports HTML bundle format.
1150
1136
  *
1137
+ * Note: Email output types use html_standalone previews in the preview UI.
1138
+ * The actual email file is only generated for the final output in OutputMedia.
1151
1139
  *
1152
1140
  * @example Email bundle requirements
1153
1141
  * ```ts
@@ -1157,7 +1145,7 @@ declare interface EmailPreviewStub extends BasePreview {
1157
1145
  * ```
1158
1146
  */
1159
1147
  declare interface EmailRequirement extends BaseFileRequirement {
1160
- format: 'html_bundle';
1148
+ format: 'html_bundle' | 'html_standalone';
1161
1149
  }
1162
1150
 
1163
1151
  /**
@@ -2214,10 +2202,10 @@ declare type PublishErrorSettingsUiContext = {
2214
2202
  * @public
2215
2203
  * Supported file formats for publishing.
2216
2204
  */
2217
- declare type PublishFileFormat = 'png' | 'jpg' | 'mp4' | 'pdf_standard' | 'html_bundle';
2205
+ declare type PublishFileFormat = 'png' | 'jpg' | 'mp4' | 'pdf_standard' | 'html_bundle' | 'html_standalone';
2218
2206
 
2219
2207
  /**
2220
- * @beta
2208
+ * @public
2221
2209
  * Initial payload provided from cache.
2222
2210
  */
2223
2211
  declare type PublishPreviewUiInvocationContext = {
@@ -2306,7 +2294,7 @@ declare type PublishSettingsSettingsUiContext = {
2306
2294
  };
2307
2295
 
2308
2296
  /**
2309
- * @beta
2297
+ * @public
2310
2298
  * Initial payload provided from cache.
2311
2299
  */
2312
2300
  declare type PublishSettingsUiInvocationContext = {
@@ -2360,7 +2348,7 @@ declare type RemoteRequestFailedError_2 = {
2360
2348
  };
2361
2349
 
2362
2350
  /**
2363
- * @beta
2351
+ * @public
2364
2352
  * Initial payload provided when the preview UI is rendered.
2365
2353
  * Contains the preview data and settings needed to initialize the preview interface.
2366
2354
  */
@@ -2374,7 +2362,7 @@ declare type RenderPreviewUiInvocationContext = PublishPreviewUiInvocationContex
2374
2362
  */
2375
2363
  declare type RenderPreviewUiRequest = {
2376
2364
  /**
2377
- * @beta
2365
+ * @public
2378
2366
  * The initial preview data and context provided when the preview UI is rendered.
2379
2367
  *
2380
2368
  * Contains the initial preview media, output type information, and any existing
@@ -2489,7 +2477,7 @@ declare type RenderSelectionUiRequest = {
2489
2477
  };
2490
2478
 
2491
2479
  /**
2492
- * @beta
2480
+ * @public
2493
2481
  * Initial payload provided when the publish settings UI is rendered.
2494
2482
  * Contains the current settings state needed to initialize the settings interface.
2495
2483
  */
@@ -2504,7 +2492,7 @@ declare type RenderSettingsUiInvocationContext = PublishSettingsUiInvocationCont
2504
2492
  */
2505
2493
  declare type RenderSettingsUiRequest = {
2506
2494
  /**
2507
- * @beta
2495
+ * @public
2508
2496
  * The initial settings and context provided when the settings UI is rendered.
2509
2497
  *
2510
2498
  * Contains any previously saved publish settings and information about the current output type being configured.
package/content/beta.d.ts CHANGED
@@ -500,6 +500,8 @@ declare interface EmailPreviewStub extends BasePreview {
500
500
  * @beta
501
501
  * Email file requirements for a media slot, currently only supports HTML bundle format.
502
502
  *
503
+ * Note: Email output types use html_standalone previews in the preview UI.
504
+ * The actual email file is only generated for the final output in OutputMedia.
503
505
  *
504
506
  * @example Email bundle requirements
505
507
  * ```ts
@@ -509,7 +511,7 @@ declare interface EmailPreviewStub extends BasePreview {
509
511
  * ```
510
512
  */
511
513
  export declare interface EmailRequirement extends BaseFileRequirement {
512
- format: 'html_bundle';
514
+ format: 'html_bundle' | 'html_standalone';
513
515
  }
514
516
 
515
517
  /**
@@ -1080,10 +1082,10 @@ export declare type PublishErrorSettingsUiContext = {
1080
1082
  * @public
1081
1083
  * Supported file formats for publishing.
1082
1084
  */
1083
- export declare type PublishFileFormat = 'png' | 'jpg' | 'mp4' | 'pdf_standard' | 'html_bundle';
1085
+ export declare type PublishFileFormat = 'png' | 'jpg' | 'mp4' | 'pdf_standard' | 'html_bundle' | 'html_standalone';
1084
1086
 
1085
1087
  /**
1086
- * @beta
1088
+ * @public
1087
1089
  * Initial payload provided from cache.
1088
1090
  */
1089
1091
  export declare type PublishPreviewUiInvocationContext = {
@@ -1172,7 +1174,7 @@ export declare type PublishSettingsSettingsUiContext = {
1172
1174
  };
1173
1175
 
1174
1176
  /**
1175
- * @beta
1177
+ * @public
1176
1178
  * Initial payload provided from cache.
1177
1179
  */
1178
1180
  export declare type PublishSettingsUiInvocationContext = {
@@ -1211,7 +1213,7 @@ export declare type RemoteRequestFailedError = {
1211
1213
  };
1212
1214
 
1213
1215
  /**
1214
- * @beta
1216
+ * @public
1215
1217
  * Initial payload provided when the preview UI is rendered.
1216
1218
  * Contains the preview data and settings needed to initialize the preview interface.
1217
1219
  */
@@ -1225,7 +1227,7 @@ export declare type RenderPreviewUiInvocationContext = PublishPreviewUiInvocatio
1225
1227
  */
1226
1228
  export declare type RenderPreviewUiRequest = {
1227
1229
  /**
1228
- * @beta
1230
+ * @public
1229
1231
  * The initial preview data and context provided when the preview UI is rendered.
1230
1232
  *
1231
1233
  * Contains the initial preview media, output type information, and any existing
@@ -1294,7 +1296,7 @@ export declare type RenderPreviewUiRequest = {
1294
1296
  };
1295
1297
 
1296
1298
  /**
1297
- * @beta
1299
+ * @public
1298
1300
  * Initial payload provided when the publish settings UI is rendered.
1299
1301
  * Contains the current settings state needed to initialize the settings interface.
1300
1302
  */
@@ -1309,7 +1311,7 @@ export declare type RenderSettingsUiInvocationContext = PublishSettingsUiInvocat
1309
1311
  */
1310
1312
  export declare type RenderSettingsUiRequest = {
1311
1313
  /**
1312
- * @beta
1314
+ * @public
1313
1315
  * The initial settings and context provided when the settings UI is rendered.
1314
1316
  *
1315
1317
  * Contains any previously saved publish settings and information about the current output type being configured.
package/data/beta.d.ts CHANGED
@@ -117,7 +117,7 @@ declare type AppErrorInvocationContext = {
117
117
  * };
118
118
  * ```
119
119
  */
120
- export declare type BooleanDataTableCell = {
120
+ declare type BooleanDataTableCell = {
121
121
  /**
122
122
  * Indicates this cell contains a boolean value.
123
123
  */
@@ -134,7 +134,7 @@ export declare type BooleanDataTableCell = {
134
134
  * @public
135
135
  * Configuration for a table column.
136
136
  */
137
- export declare type ColumnConfig = {
137
+ declare type ColumnConfig = {
138
138
  /**
139
139
  * Name for the column, displayed as header text.
140
140
  *
@@ -330,7 +330,7 @@ export declare type DataSourceRef = {
330
330
  * };
331
331
  * ```
332
332
  */
333
- export declare type DataTable = {
333
+ declare type DataTable = {
334
334
  /**
335
335
  * Column definitions with names and data types.
336
336
  *
@@ -349,7 +349,7 @@ export declare type DataTable = {
349
349
  * @public
350
350
  * Generic type for table cells that resolves to a specific cell type.
351
351
  */
352
- export declare type DataTableCell<T extends DataType = DataType> = {
352
+ declare type DataTableCell<T extends DataType = DataType> = {
353
353
  date: DateDataTableCell;
354
354
  string: StringDataTableCell;
355
355
  number: NumberDataTableCell;
@@ -361,7 +361,7 @@ export declare type DataTableCell<T extends DataType = DataType> = {
361
361
  * @public
362
362
  * Options for uploading an image asset to the user's private media library.
363
363
  */
364
- export declare type DataTableImageUpload = Omit<ImageUploadOptions, 'type' | 'parentRef'> & {
364
+ declare type DataTableImageUpload = Omit<ImageUploadOptions, 'type' | 'parentRef'> & {
365
365
  /**
366
366
  * Indicates this value contains options for image uploading.
367
367
  */
@@ -372,7 +372,7 @@ export declare type DataTableImageUpload = Omit<ImageUploadOptions, 'type' | 'pa
372
372
  * @public
373
373
  * Maximum dimensions for imported data tables.
374
374
  */
375
- export declare type DataTableLimit = {
375
+ declare type DataTableLimit = {
376
376
  /**
377
377
  * The maximum number of rows allowed.
378
378
  *
@@ -430,7 +430,7 @@ export declare type DataTableMetadata = {
430
430
  * };
431
431
  * ```
432
432
  */
433
- export declare type DataTableRow = {
433
+ declare type DataTableRow = {
434
434
  /**
435
435
  * Array of cells containing the data values.
436
436
  *
@@ -443,7 +443,7 @@ export declare type DataTableRow = {
443
443
  * @public
444
444
  * Options for uploading a video asset to the user's private media library.
445
445
  */
446
- export declare type DataTableVideoUpload = Omit<VideoUploadOptions, 'type' | 'parentRef'> & {
446
+ declare type DataTableVideoUpload = Omit<VideoUploadOptions, 'type' | 'parentRef'> & {
447
447
  /**
448
448
  * Indicates this value contains options for video uploading.
449
449
  */
@@ -454,7 +454,7 @@ export declare type DataTableVideoUpload = Omit<VideoUploadOptions, 'type' | 'pa
454
454
  * @public
455
455
  * Data types supported for table cells.
456
456
  */
457
- export declare type DataType = 'string' | 'number' | 'date' | 'boolean' | 'media';
457
+ declare type DataType = 'string' | 'number' | 'date' | 'boolean' | 'media';
458
458
 
459
459
  /**
460
460
  * @public
@@ -475,7 +475,7 @@ export declare type DataType = 'string' | 'number' | 'date' | 'boolean' | 'media
475
475
  * };
476
476
  * ```
477
477
  */
478
- export declare type DateDataTableCell = {
478
+ declare type DateDataTableCell = {
479
479
  /**
480
480
  * Indicates this cell contains a date value.
481
481
  */
@@ -782,7 +782,7 @@ export declare type InvocationContext = DataSelectionInvocationContext | Outdate
782
782
  * };
783
783
  * ```
784
784
  */
785
- export declare type MediaCollectionDataTableCell = {
785
+ declare type MediaCollectionDataTableCell = {
786
786
  /**
787
787
  * Indicates this cell contains a media collection.
788
788
  */
@@ -836,7 +836,7 @@ declare type Never<T> = {
836
836
  * };
837
837
  * ```
838
838
  */
839
- export declare type NumberCellMetadata = {
839
+ declare type NumberCellMetadata = {
840
840
  /**
841
841
  * Formatting pattern using Office Open XML Format.
842
842
  *
@@ -871,7 +871,7 @@ export declare type NumberCellMetadata = {
871
871
  * };
872
872
  * ```
873
873
  */
874
- export declare type NumberDataTableCell = {
874
+ declare type NumberDataTableCell = {
875
875
  /**
876
876
  * Indicates this cell contains a number value.
877
877
  */
@@ -1051,7 +1051,7 @@ export declare type RenderSelectionUiRequest = {
1051
1051
  * };
1052
1052
  * ```
1053
1053
  */
1054
- export declare type StringDataTableCell = {
1054
+ declare type StringDataTableCell = {
1055
1055
  /**
1056
1056
  * Indicates this cell contains a string value.
1057
1057
  */
@@ -9,6 +9,5 @@ Object.defineProperty(exports, "prepareUrlExpander", {
9
9
  }
10
10
  });
11
11
  const _version = require("../version");
12
- const { canva_sdk } = window;
13
12
  const prepareUrlExpander = canva_sdk.intents.v1.asset.prepareUrlExpander;
14
13
  window.__canva__?.sdkRegistration?.registerPackageVersion('intents/asset', _version.LATEST_VERSION_BETA, 'beta');
@@ -8,5 +8,4 @@ Object.defineProperty(exports, "prepareContentPublisher", {
8
8
  return prepareContentPublisher;
9
9
  }
10
10
  });
11
- const { canva_sdk } = window;
12
11
  const prepareContentPublisher = canva_sdk.intents.v1.content.prepareContentPublisher;
@@ -8,5 +8,4 @@ Object.defineProperty(exports, "prepareDataConnector", {
8
8
  return prepareDataConnector;
9
9
  }
10
10
  });
11
- const { canva_sdk } = window;
12
11
  const prepareDataConnector = canva_sdk.intents.v1.data.prepareDataConnector;
@@ -8,5 +8,4 @@ Object.defineProperty(exports, "prepareDesignEditor", {
8
8
  return prepareDesignEditor;
9
9
  }
10
10
  });
11
- const { canva_sdk } = window;
12
11
  const prepareDesignEditor = canva_sdk.intents.v1.design.prepareDesignEditor;
@@ -19,6 +19,6 @@ _export(exports, {
19
19
  return LATEST_VERSION_BETA;
20
20
  }
21
21
  });
22
- const LATEST_VERSION = '2.1.2';
23
- const LATEST_VERSION_BETA = '2.1.3-beta.0';
22
+ const LATEST_VERSION = '2.2.0';
23
+ const LATEST_VERSION_BETA = '2.2.1-beta.0';
24
24
  const LATEST_VERSION_ALPHA = 'NONE';
@@ -1,4 +1,3 @@
1
1
  import { LATEST_VERSION_BETA } from '../version';
2
- const { canva_sdk } = window;
3
2
  export const prepareUrlExpander = canva_sdk.intents.v1.asset.prepareUrlExpander;
4
3
  window.__canva__?.sdkRegistration?.registerPackageVersion('intents/asset', LATEST_VERSION_BETA, 'beta');
@@ -1,2 +1 @@
1
- const { canva_sdk } = window;
2
1
  export const prepareContentPublisher = canva_sdk.intents.v1.content.prepareContentPublisher;
@@ -1,2 +1 @@
1
- const { canva_sdk } = window;
2
1
  export const prepareDataConnector = canva_sdk.intents.v1.data.prepareDataConnector;
@@ -1,2 +1 @@
1
- const { canva_sdk } = window;
2
1
  export const prepareDesignEditor = canva_sdk.intents.v1.design.prepareDesignEditor;
@@ -1,3 +1,3 @@
1
- export const LATEST_VERSION = '2.1.2';
2
- export const LATEST_VERSION_BETA = '2.1.3-beta.0';
1
+ export const LATEST_VERSION = '2.2.0';
2
+ export const LATEST_VERSION_BETA = '2.2.1-beta.0';
3
3
  export const LATEST_VERSION_ALPHA = 'NONE';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canva/intents",
3
- "version": "2.1.3-beta.0",
3
+ "version": "2.2.1-beta.0",
4
4
  "description": "The Canva Apps SDK Intents library",
5
5
  "author": "Canva Pty Ltd.",
6
6
  "license": "SEE LICENSE IN LICENSE.md FILE",