@canva/design 2.7.6-beta.1 → 2.8.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 +146 -7
- package/index.d.ts +5049 -1
- package/lib/cjs/sdk/design/fake/create.js +27 -0
- package/lib/cjs/sdk/design/fake/fake_design_interaction_client.js +15 -5
- package/lib/cjs/sdk/design/index.js +4 -2
- package/lib/cjs/sdk/design/public.js +8 -0
- package/lib/cjs/sdk/design/test/index.js +12 -14
- package/lib/cjs/sdk/design/version.js +1 -1
- package/lib/esm/sdk/design/fake/create.js +17 -0
- package/lib/esm/sdk/design/fake/fake_design_interaction_client.js +15 -5
- package/lib/esm/sdk/design/index.js +3 -1
- package/lib/esm/sdk/design/public.js +2 -0
- package/lib/esm/sdk/design/test/index.js +6 -1
- package/lib/esm/sdk/design/version.js +1 -1
- package/package.json +11 -11
- package/test/index.d.ts +11 -1
- package/beta.d.ts +0 -5306
- package/lib/cjs/sdk/design/beta.js +0 -51
- package/lib/cjs/sdk/design/fake/create_beta.js +0 -83
- package/lib/cjs/sdk/design/test/beta.js +0 -16
- package/lib/esm/sdk/design/beta.js +0 -11
- package/lib/esm/sdk/design/fake/create_beta.js +0 -73
- package/lib/esm/sdk/design/test/beta.js +0 -6
- package/test/beta.d.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,154 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
-
## 2.
|
|
3
|
+
## 2.8.0 - 2026-02-02
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
6
|
|
|
7
|
-
- Beta versions of `addElementAtPoint`, `initAppElement`, and `addPage` now support `trim` and `imageBox` on video elements.
|
|
8
|
-
- New API `publish.launch` to launch the content publisher
|
|
9
|
-
- New API `bulkCreate.launch` to open the Bulk Create experience with the Data Connector intent open.
|
|
10
7
|
- Added a CHANGELOG.md to track changes.
|
|
11
|
-
-
|
|
8
|
+
- This introduces 2 new APIs, bulkCreate and publish, each with a corresponding launch function that allows the app to launch these experiences directly using the app's set up Data Connector and Content Publisher intents.
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
### Fixed
|
|
14
11
|
|
|
15
|
-
-
|
|
12
|
+
- Improve `mailto` URI validation to more accurately detect valid email addresses.
|
|
13
|
+
|
|
14
|
+
### Other
|
|
15
|
+
|
|
16
|
+
- Updated types for `requestExport` into separate named objects
|
|
17
|
+
|
|
18
|
+
## 2.7.5 - 2025-12-09
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- Added support for custom dimensions in the `addPage` API call.
|
|
23
|
+
- Added the ability to configure the zipped behaviour of certain types when exporting with `requestExport`.
|
|
24
|
+
|
|
25
|
+
## 2.7.4 - 2025-11-28
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- Added `design.getDesignMetadata` method, which allows apps to get information about the design. See the [documentation](https://www.canva.dev/docs/apps/api/latest/design-get-design-metadata/).
|
|
30
|
+
|
|
31
|
+
## 2.7.3 - 2025-10-13
|
|
32
|
+
|
|
33
|
+
### Deprecated
|
|
34
|
+
|
|
35
|
+
- Deprecated `CurrentPageResult` in favour of `CurrentPageSession`.
|
|
36
|
+
|
|
37
|
+
### Removed
|
|
38
|
+
|
|
39
|
+
- We no longer provide `index` parameter in the `forEach` callbacks.
|
|
40
|
+
|
|
41
|
+
## 2.7.2 - 2025-08-05
|
|
42
|
+
|
|
43
|
+
### Deprecated
|
|
44
|
+
|
|
45
|
+
- Deprecate `design.getDefaultPageDimensions`, use `design.getDesignMetadata` instead. See the [documentation](https://www.canva.dev/docs/apps/api/latest/design-get-design-metadata/).
|
|
46
|
+
|
|
47
|
+
## 2.7.0 - 2025-07-15
|
|
48
|
+
|
|
49
|
+
### Added
|
|
50
|
+
|
|
51
|
+
- Added the `getDesignMetadata` method, which allows apps to get information about the design. See the [documentation](https://www.canva.dev/docs/apps/api/latest/design-get-design-metadata/).
|
|
52
|
+
|
|
53
|
+
### Deprecated
|
|
54
|
+
|
|
55
|
+
- Deprecated `design.getDefaultPageDimensions`, use `design.getDesignMetadata` instead. See the [documentation](https://www.canva.dev/docs/apps/api/latest/design-get-design-metadata/).
|
|
56
|
+
|
|
57
|
+
## 2.6.1 - 2025-06-24
|
|
58
|
+
|
|
59
|
+
### Added
|
|
60
|
+
|
|
61
|
+
- `openDesign`: Added new async helper methods `group` and `ungroup`. See the documentation on [PageHelpers](https://www.canva.dev/docs/apps/api/latest/design-types-page-helpers/).
|
|
62
|
+
|
|
63
|
+
### Changed
|
|
64
|
+
|
|
65
|
+
- `openDesign`: [Design Editing API](https://www.canva.dev/docs/apps/api/latest/design-open-design/) is out of preview and Generally Available.
|
|
66
|
+
- **Breaking:** `openDesign` function signature changes:
|
|
67
|
+
- `save` is superseded by `sync`. Unlike `save`, `sync` can be called multiple times as needed.
|
|
68
|
+
- Renamed page type: `fixed` → `absolute`.
|
|
69
|
+
- New page type: `unsupported`, which represents pages that are not `absolute`.
|
|
70
|
+
- Renamed `elementBuilder` to `elementStateBuilder`.
|
|
71
|
+
- Removed `cloneElement`.
|
|
72
|
+
- `media` and `color` fills are superseded by `mediaContainer` and `colorContainer`.
|
|
73
|
+
- For shape path fills, `isMediaEditable` introduced to indicate editability.
|
|
74
|
+
|
|
75
|
+
## 2.4.0 - 2025-02-17
|
|
76
|
+
|
|
77
|
+
### Added
|
|
78
|
+
|
|
79
|
+
- Latest version of the App Element API is out of preview and Generally Available. This version enables atomic and predictable operations that are no longer tied current selection. To learn more, see [App Elements](https://www.canva.dev/docs/apps/creating-app-elements/).
|
|
80
|
+
|
|
81
|
+
## 2.3.0 - 2024-12-15
|
|
82
|
+
|
|
83
|
+
### Added
|
|
84
|
+
|
|
85
|
+
- [Content Query API](https://www.canva.dev/docs/apps/querying/) is out of preview and Generally Available.
|
|
86
|
+
- Introduced a test harness to allow for [unit testing](https://www.canva.dev/docs/apps/testing/) of the package.
|
|
87
|
+
|
|
88
|
+
## 2.2.1 - 2024-10-21
|
|
89
|
+
|
|
90
|
+
### Added
|
|
91
|
+
|
|
92
|
+
- Updated App Element API to enable atomic and predictable operations that are no longer tied current selection. To learn more, see App Elements [documentation](https://www.canva.dev/docs/apps/app-elements/).
|
|
93
|
+
|
|
94
|
+
## 2.1.0 - 2024-09-23
|
|
95
|
+
|
|
96
|
+
### Deprecated
|
|
97
|
+
|
|
98
|
+
- Deprecated `NativeElementType` type.
|
|
99
|
+
|
|
100
|
+
## 2.0.0 - 2024-09-20
|
|
101
|
+
|
|
102
|
+
### Changed
|
|
103
|
+
|
|
104
|
+
- **Breaking:** See [Apps SDK Migration Guide](https://www.canva.dev/docs/apps/upgrades-and-migrations/v2-migration-guide/) for full list of changes.
|
|
105
|
+
|
|
106
|
+
## 1.10.0 - 2024-08-22
|
|
107
|
+
|
|
108
|
+
### Added
|
|
109
|
+
|
|
110
|
+
- Added `altText` property to image elements.
|
|
111
|
+
- Added [design.overlay.registerOnCanOpen](https://www.canva.dev/docs/apps/api/design-overlay-register-on-can-open/) which was previously in beta.
|
|
112
|
+
|
|
113
|
+
## 1.9.0 - 2024-05-29
|
|
114
|
+
|
|
115
|
+
### Added
|
|
116
|
+
|
|
117
|
+
- Added the ability to read/write video via the [Selection API](https://www.canva.dev/docs/apps/selection/).
|
|
118
|
+
|
|
119
|
+
## 1.8.0 - 2024-05-06
|
|
120
|
+
|
|
121
|
+
### Added
|
|
122
|
+
|
|
123
|
+
- NativeVideoElement is now supported in app elements. See the [documentation](https://www.canva.dev/docs/apps/creating-app-elements/).
|
|
124
|
+
|
|
125
|
+
## 1.7.0 - 2024-04-10
|
|
126
|
+
|
|
127
|
+
### Added
|
|
128
|
+
|
|
129
|
+
- Added [design.getDesignToken](https://www.canva.dev/docs/apps/using-design-ids) which was previously in beta. See the [documentation](https://www.canva.dev/docs/apps/using-design-ids).
|
|
130
|
+
|
|
131
|
+
## 1.6.0 - 2024-02-25
|
|
132
|
+
|
|
133
|
+
## 1.5.0 - 2024-02-12
|
|
134
|
+
|
|
135
|
+
### Changed
|
|
136
|
+
|
|
137
|
+
- Updated `fontWeight` of `startDrag` to allow more values.
|
|
138
|
+
- Exported some additional types, such as `FontWeight` and `TextAttributes`.
|
|
139
|
+
|
|
140
|
+
## 1.4.0 - 2023-12-13
|
|
141
|
+
|
|
142
|
+
### Removed
|
|
143
|
+
|
|
144
|
+
- Removed video elements from `AppElementRendererOutput`.
|
|
145
|
+
|
|
146
|
+
### Fixed
|
|
147
|
+
|
|
148
|
+
- Excluded `undefined` in `Array` type, and removed `bigint`, `Set`, and `Map` types from `AppElementData` to align with existing internal validation.
|
|
149
|
+
|
|
150
|
+
## 1.3.0 - 2023-12-12
|
|
151
|
+
|
|
152
|
+
### Added
|
|
153
|
+
|
|
154
|
+
- Initial NPM release of `@canva/design` package.
|