@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.
@@ -19,6 +19,6 @@ _export(exports, {
19
19
  return LATEST_VERSION_BETA;
20
20
  }
21
21
  });
22
- const LATEST_VERSION = '2.2.0';
22
+ const LATEST_VERSION = '2.2.1';
23
23
  const LATEST_VERSION_BETA = '2.2.1-beta.0';
24
24
  const LATEST_VERSION_ALPHA = 'NONE';
@@ -1 +1,3 @@
1
- export * from './beta';
1
+ import { LATEST_VERSION } from './version';
2
+ export * from './public';
3
+ window.__canva__?.sdkRegistration?.registerPackageVersion('platform', LATEST_VERSION, 'ga');
@@ -1,3 +1,3 @@
1
- export const LATEST_VERSION = '2.2.0';
1
+ export const LATEST_VERSION = '2.2.1';
2
2
  export const LATEST_VERSION_BETA = '2.2.1-beta.0';
3
3
  export const LATEST_VERSION_ALPHA = 'NONE';
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@canva/platform",
3
- "version": "2.2.1-beta.0",
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/beta.js",
11
- "module": "./lib/esm/sdk/platform/beta.js",
10
+ "main": "./lib/cjs/sdk/platform/index.js",
11
+ "module": "./lib/esm/sdk/platform/index.js",
12
12
  "exports": {
13
13
  ".": {
14
- "types": "./beta.d.ts",
15
- "require": "./lib/cjs/sdk/platform/beta.js",
16
- "import": "./lib/esm/sdk/platform/beta.js"
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/beta.d.ts",
20
- "require": "./lib/cjs/sdk/platform/test/beta.js",
21
- "import": "./lib/esm/sdk/platform/test/beta.js"
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": "./beta.d.ts"
25
- }
24
+ "typings": "./index.d.ts"
25
+ }
package/test/index.d.ts CHANGED
@@ -1 +1,11 @@
1
- export * from "./beta";
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 { }