@canva/design 2.8.0 → 2.8.1-alpha.1

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,154 +1,19 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 2.8.0 - 2026-02-02
3
+ ## 2.8.1-alpha.1 - 2026-04-22
4
4
 
5
5
  ### Added
6
6
 
7
- - Added a CHANGELOG.md to track changes.
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.
7
+ - openDesign (Early-Preview): Added `helpers.timingFor(elementRef)` for element-bound timing access.
8
+ - Introducing a new preview API method `applyTemplate` to apply a template to the current design.
9
9
 
10
10
  ### Fixed
11
11
 
12
- - Improve `mailto` URI validation to more accurately detect valid email addresses.
12
+ - Fixed `ResetToDefault` import failing at runtime in the built package due to a path restructuring issue in the build.
13
+ - Exported missing `Patch` type — previously referenced in `TimingAccessor.set()` but not importable from the package.
13
14
 
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
15
+ ## 2.8.1-alpha.0 - 2026-04-01
151
16
 
152
17
  ### Added
153
18
 
154
- - Initial NPM release of `@canva/design` package.
19
+ - Initial npm release of the `@canva/design` Early Preview package.