@canva/platform 2.2.1-beta.0 → 2.2.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 +34 -2
- package/index.d.ts +704 -1
- package/lib/cjs/sdk/platform/index.js +4 -2
- package/lib/cjs/sdk/platform/version.js +1 -1
- package/lib/esm/sdk/platform/index.js +3 -1
- package/lib/esm/sdk/platform/version.js +1 -1
- package/package.json +11 -11
- package/test/index.d.ts +11 -1
- package/beta.d.ts +0 -704
- package/lib/cjs/sdk/platform/beta.js +0 -20
- package/lib/cjs/sdk/platform/test/beta.js +0 -18
- package/lib/esm/sdk/platform/beta.js +0 -3
- package/lib/esm/sdk/platform/test/beta.js +0 -1
- package/test/beta.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canva/platform",
|
|
3
|
-
"version": "2.2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "The Canva Apps SDK app platform library",
|
|
5
5
|
"author": "Canva Pty Ltd.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md FILE",
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"@canva/error": "^2.0.0"
|
|
9
9
|
},
|
|
10
|
-
"main": "./lib/cjs/sdk/platform/
|
|
11
|
-
"module": "./lib/esm/sdk/platform/
|
|
10
|
+
"main": "./lib/cjs/sdk/platform/index.js",
|
|
11
|
+
"module": "./lib/esm/sdk/platform/index.js",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"types": "./
|
|
15
|
-
"require": "./lib/cjs/sdk/platform/
|
|
16
|
-
"import": "./lib/esm/sdk/platform/
|
|
14
|
+
"types": "./index.d.ts",
|
|
15
|
+
"require": "./lib/cjs/sdk/platform/index.js",
|
|
16
|
+
"import": "./lib/esm/sdk/platform/index.js"
|
|
17
17
|
},
|
|
18
18
|
"./test": {
|
|
19
|
-
"types": "./test/
|
|
20
|
-
"require": "./lib/cjs/sdk/platform/test/
|
|
21
|
-
"import": "./lib/esm/sdk/platform/test/
|
|
19
|
+
"types": "./test/index.d.ts",
|
|
20
|
+
"require": "./lib/cjs/sdk/platform/test/index.js",
|
|
21
|
+
"import": "./lib/esm/sdk/platform/test/index.js"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"typings": "./
|
|
25
|
-
}
|
|
24
|
+
"typings": "./index.d.ts"
|
|
25
|
+
}
|
package/test/index.d.ts
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* Initializes a test environment for the `@canva/platform` package, enabling unit tests to mock Canva's APIs.
|
|
4
|
+
* @remarks
|
|
5
|
+
* This method should only be called once in a test environment, such as in a Jest setup file.
|
|
6
|
+
* @see
|
|
7
|
+
* https://www.canva.dev/docs/apps/testing/
|
|
8
|
+
*/
|
|
9
|
+
export declare function initTestEnvironment(): void;
|
|
10
|
+
|
|
11
|
+
export { }
|