@canva/design 2.7.6-beta.0 → 2.7.6-beta.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.
@@ -15,6 +15,9 @@ _export(exports, {
15
15
  get editContent () {
16
16
  return editContent;
17
17
  },
18
+ get getDesignTemplateMetadata () {
19
+ return getDesignTemplateMetadata;
20
+ },
18
21
  get openDesign () {
19
22
  return openDesign;
20
23
  },
@@ -44,4 +47,5 @@ function editContent(options, callback) {
44
47
  return canva_sdk.design.v2.designInteraction.editContent(options, (session)=>callback(session));
45
48
  }
46
49
  const openDesign = canva_sdk.design.v2.designInteraction.openDesign;
50
+ const getDesignTemplateMetadata = canva_sdk.design.v2.designInteraction.getDesignTemplateMetadata;
47
51
  window.__canva__?.sdkRegistration?.registerPackageVersion('design', _version.LATEST_VERSION_BETA, 'beta');
@@ -54,6 +54,20 @@ class FakeDesignInteractionClient {
54
54
  durationInSeconds: 30
55
55
  };
56
56
  }
57
+ async getDesignTemplateMetadata() {
58
+ await this.delay();
59
+ return {
60
+ templates: [
61
+ {
62
+ keywords: [
63
+ 'word1',
64
+ 'word2'
65
+ ],
66
+ domain: 'brand'
67
+ }
68
+ ]
69
+ };
70
+ }
57
71
  async addNativeElement(element) {
58
72
  await this.delay();
59
73
  }
@@ -20,5 +20,5 @@ _export(exports, {
20
20
  }
21
21
  });
22
22
  const LATEST_VERSION = '2.7.5';
23
- const LATEST_VERSION_BETA = '2.7.5-beta-1';
23
+ const LATEST_VERSION_BETA = '2.7.6-beta.1';
24
24
  const LATEST_VERSION_ALPHA = 'NONE';
@@ -6,5 +6,6 @@ export function editContent(options, callback) {
6
6
  return canva_sdk.design.v2.designInteraction.editContent(options, (session)=>callback(session));
7
7
  }
8
8
  export const openDesign = canva_sdk.design.v2.designInteraction.openDesign;
9
+ export const getDesignTemplateMetadata = canva_sdk.design.v2.designInteraction.getDesignTemplateMetadata;
9
10
  export * from './public';
10
11
  window.__canva__?.sdkRegistration?.registerPackageVersion('design', LATEST_VERSION_BETA, 'beta');
@@ -33,6 +33,20 @@ export class FakeDesignInteractionClient {
33
33
  durationInSeconds: 30
34
34
  };
35
35
  }
36
+ async getDesignTemplateMetadata() {
37
+ await this.delay();
38
+ return {
39
+ templates: [
40
+ {
41
+ keywords: [
42
+ 'word1',
43
+ 'word2'
44
+ ],
45
+ domain: 'brand'
46
+ }
47
+ ]
48
+ };
49
+ }
36
50
  async addNativeElement(element) {
37
51
  await this.delay();
38
52
  }
@@ -1,3 +1,3 @@
1
1
  export const LATEST_VERSION = '2.7.5';
2
- export const LATEST_VERSION_BETA = '2.7.5-beta-1';
2
+ export const LATEST_VERSION_BETA = '2.7.6-beta.1';
3
3
  export const LATEST_VERSION_ALPHA = 'NONE';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canva/design",
3
- "version": "2.7.6-beta.0",
3
+ "version": "2.7.6-beta.1",
4
4
  "description": "The Canva Apps SDK design library",
5
5
  "author": "Canva Pty Ltd.",
6
6
  "license": "SEE LICENSE IN LICENSE.md FILE",
@@ -22,4 +22,4 @@
22
22
  }
23
23
  },
24
24
  "typings": "./beta.d.ts"
25
- }
25
+ }
package/test/beta.d.ts CHANGED
@@ -8,4 +8,4 @@
8
8
  */
9
9
  export declare function initTestEnvironment(): void;
10
10
 
11
- export {};
11
+ export { }