@canva/design 1.5.0 → 1.6.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 +13 -1
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -494,6 +494,14 @@ export declare type Fill = {
494
494
  asset?: ImageFill | VideoFill;
495
495
  };
496
496
 
497
+ /**
498
+ * @public
499
+ * A reference to a font that can be used in other parts of the SDK.
500
+ */
501
+ export declare type FontRef = string & {
502
+ __fontRef: never;
503
+ };
504
+
497
505
  /**
498
506
  * @public
499
507
  * Font weights supported in the SDK.
@@ -1186,7 +1194,11 @@ export declare type TextAttributes = {
1186
1194
  * (e.g. #ff0099). The default value is #000000.
1187
1195
  */
1188
1196
  color?: string;
1189
-
1197
+ /**
1198
+ * @public
1199
+ * A reference to the font to use for this text element.
1200
+ */
1201
+ fontRef?: FontRef;
1190
1202
  /**
1191
1203
  * The weight of the font.
1192
1204
  * @defaultValue 'normal'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canva/design",
3
- "version": "1.5.0",
3
+ "version": "1.6.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",
@@ -16,4 +16,4 @@
16
16
  }
17
17
  },
18
18
  "typings": "./index.d.ts"
19
- }
19
+ }