@canva/intents 2.4.1-beta.0 → 2.5.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +41 -18
  2. package/asset/index.d.ts +1 -1
  3. package/content/index.d.ts +1738 -1
  4. package/data/index.d.ts +1229 -1
  5. package/design/index.d.ts +41 -1
  6. package/index.d.ts +3138 -1
  7. package/lib/cjs/sdk/intents/asset/index.js +1 -15
  8. package/lib/cjs/sdk/intents/fake/{create_beta.js → create.js} +6 -9
  9. package/lib/cjs/sdk/intents/index.js +4 -2
  10. package/lib/cjs/sdk/intents/test/index.js +14 -13
  11. package/lib/cjs/sdk/intents/version.js +1 -1
  12. package/lib/esm/sdk/intents/asset/index.js +1 -1
  13. package/lib/esm/sdk/intents/fake/{create_beta.js → create.js} +4 -7
  14. package/lib/esm/sdk/intents/index.js +3 -1
  15. package/lib/esm/sdk/intents/test/index.js +9 -1
  16. package/lib/esm/sdk/intents/version.js +1 -1
  17. package/package.json +23 -23
  18. package/test/index.d.ts +11 -1
  19. package/asset/beta.d.ts +0 -190
  20. package/beta.d.ts +0 -3084
  21. package/content/beta.d.ts +0 -1687
  22. package/data/beta.d.ts +0 -1229
  23. package/design/beta.d.ts +0 -41
  24. package/lib/cjs/sdk/intents/asset/beta.js +0 -13
  25. package/lib/cjs/sdk/intents/beta.js +0 -20
  26. package/lib/cjs/sdk/intents/content/beta.js +0 -20
  27. package/lib/cjs/sdk/intents/data/beta.js +0 -20
  28. package/lib/cjs/sdk/intents/design/beta.js +0 -20
  29. package/lib/cjs/sdk/intents/test/beta.js +0 -19
  30. package/lib/esm/sdk/intents/asset/beta.js +0 -3
  31. package/lib/esm/sdk/intents/beta.js +0 -3
  32. package/lib/esm/sdk/intents/content/beta.js +0 -3
  33. package/lib/esm/sdk/intents/data/beta.js +0 -3
  34. package/lib/esm/sdk/intents/design/beta.js +0 -3
  35. package/lib/esm/sdk/intents/test/beta.js +0 -9
  36. package/test/beta.d.ts +0 -11
package/CHANGELOG.md CHANGED
@@ -1,40 +1,63 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 2.4.1-beta.0 - 2026-03-30
3
+ ## 2.5.0 - 2026-04-09
4
+
5
+ ### Changed
6
+
7
+ - Increased the `publishRef` size limit from 5KB to 32KB, allowing apps to store more complex publishing settings.
8
+
9
+ ### Added
10
+
11
+ - Add selection metadata in MediaSelection
12
+ - Enable apps to support transparent PNG exports in publish flow by adding optional allowTransparentBackground capability to ImageRequirement
13
+
14
+ ## 2.4.0 - 2026-03-23
4
15
 
5
16
  ### Added
6
17
 
7
- - Added `Selection`, `ImageSelection`, `VideoSelection`, `DocumentSelection`, and `EmailSelection` types representing metadata about user-selected media in a media slot
8
- - Added optional `selection` field to `MediaSlot`, populated by Canva when returning output types in Settings UI contexts
18
+ - Launch the new Email media type to public, enabling publishing and selection of email pages.
9
19
 
10
- ## 2.2.1-beta.1 - 2026-02-27
20
+ ## 2.3.1 - 2026-03-12
11
21
 
12
22
  ### Fixed
13
23
 
14
- - Beta PreviewMedia and Preview types now correctly use full EmailPreview variants throughout RenderPreviewUiRequest, PublishPreviewUiInvocationContext, and ContentPublisherIntent.
24
+ - Re-export data types from the intents/data public API that were accidentally removed during a refactor
25
+ - Rename `Selection` type to `MediaSelection` for clarity
15
26
 
16
- ## 2.2.1-beta.0 - 2026-02-24
27
+ ## 2.3.0 - 2026-03-06
17
28
 
18
29
  ### Added
19
30
 
20
- - Added new html_standalone publish format for single html files
31
+ - Promoted `Selection`, `ImageSelection`, `VideoSelection`, `DocumentSelection`, `EmailSelection` types and `MediaSlot.selection` field from beta to public
21
32
 
22
- ## 2.1.3-beta.0 - 2026-02-03
33
+ ## 2.2.0 - 2026-02-06
23
34
 
24
35
  ### Added
25
36
 
26
- - Added a CHANGELOG.md to track changes
27
- - **Breaking:** Added enhanced error handling between `publishContent` and the `SettingsUi`
28
- - Added a new `PublishErrorClearedSettingsUiContext` for when the UI clears an error
29
- - Include design title in content metadata for the content publisher intent
30
- - Added `html_bundle` support in content publisher for email media slots
31
- - Added `InvoctationContext` to provide initial state for content publisher intent
32
- - Promoted the email requirements in content publisher from alpha to beta
37
+ - Added invocation context to provide initial state when rendering UIs
38
+
39
+ ## 2.1.2 - 2026-02-03
33
40
 
34
41
  ### Fixed
35
42
 
36
- - Fixed the `initTestEnvironment` API not mocking some intents
43
+ - Fix missing id and status fields in Content Publisher email preview type
44
+
45
+ ## 2.1.1 - 2026-01-30
37
46
 
38
- ## 2.0.2-beta.3 - 2025-11-11
47
+ ### Changed
48
+
49
+ - Update NPM readme
50
+
51
+ ## 2.1.0 - 2026-01-30
52
+
53
+ ### Added
54
+
55
+ - Added a CHANGELOG.md to track changes.
56
+ - Added a test harness method `initTestEnvionment` which can be imported from `@canva/intents/test`
57
+ - Promoted the Content Publisher Intent API from beta to general availability
58
+
59
+ ## 2.0.0 - 2025-06-12
60
+
61
+ ### Added
39
62
 
40
- - Initial changelog for the Preview Intents SDK.
63
+ - Added the new `@canva/intents` package at version `2.0.0` with the brand new [Data Connector](https://www.canva.dev/docs/apps/data-connector/) intent.
package/asset/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./beta";
1
+ export { }