@canva/design 1.8.0 → 1.9.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 (2) hide show
  1. package/index.d.ts +10 -1
  2. package/package.json +11 -6
package/index.d.ts CHANGED
@@ -1153,7 +1153,7 @@ export declare interface SelectionEvent<Scope extends SelectionScope> {
1153
1153
  * @public
1154
1154
  * The type of content that apps can detect selection changes on.
1155
1155
  */
1156
- export declare type SelectionScope = "plaintext" | "image";
1156
+ export declare type SelectionScope = "plaintext" | "image" | "video";
1157
1157
 
1158
1158
  /**
1159
1159
  * @public
@@ -1181,6 +1181,15 @@ export declare type SelectionValue<Scope extends SelectionScope> = {
1181
1181
  */
1182
1182
  ref: ImageRef;
1183
1183
  };
1184
+ /**
1185
+ * The selected content when {@link SelectionScope} is `"video"`.
1186
+ */
1187
+ ["video"]: {
1188
+ /**
1189
+ * A unique identifier that points to an video asset in Canva's backend.
1190
+ */
1191
+ ref: VideoRef;
1192
+ };
1184
1193
  }[Scope];
1185
1194
 
1186
1195
  /**
package/package.json CHANGED
@@ -1,19 +1,24 @@
1
1
  {
2
2
  "name": "@canva/design",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "The Canva Apps SDK design library",
5
5
  "author": "Canva Pty Ltd.",
6
6
  "license": "SEE LICENSE IN LICENSE.md FILE",
7
7
  "peerDependencies": {
8
8
  "@canva/error": "^1.0.0"
9
9
  },
10
- "packageManager": "yarn@1.13.0",
11
- "main": "lib/cjs/sdk/design/index.js",
12
- "module": "lib/esm/sdk/design/index.js",
10
+ "main": "./lib/cjs/sdk/design/index.js",
11
+ "module": "./lib/esm/sdk/design/index.js",
13
12
  "exports": {
14
13
  ".": {
15
- "require": "./lib/cjs/sdk/design/index.js",
16
- "import": "./lib/esm/sdk/design/index.js"
14
+ "require": {
15
+ "types": "./index.d.ts",
16
+ "default": "./lib/cjs/sdk/design/index.js"
17
+ },
18
+ "import": {
19
+ "types": "./index.d.ts",
20
+ "default": "./lib/esm/sdk/design/index.js"
21
+ }
17
22
  }
18
23
  },
19
24
  "typings": "./index.d.ts"