@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.
- package/CHANGELOG.md +15 -0
- package/beta.d.ts +3263 -3522
- package/lib/cjs/sdk/design/beta.js +4 -0
- package/lib/cjs/sdk/design/fake/fake_design_interaction_client.js +14 -0
- package/lib/cjs/sdk/design/version.js +1 -1
- package/lib/esm/sdk/design/beta.js +1 -0
- package/lib/esm/sdk/design/fake/fake_design_interaction_client.js +14 -0
- package/lib/esm/sdk/design/version.js +1 -1
- package/package.json +2 -2
- package/test/beta.d.ts +1 -1
|
@@ -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
|
}
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canva/design",
|
|
3
|
-
"version": "2.7.6-beta.
|
|
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