@canva/platform 2.1.1-beta.1 → 2.2.0-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/beta.d.ts CHANGED
@@ -476,19 +476,19 @@ export declare interface FeatureSupport {
476
476
  export declare const getPlatformInfo: () => PlatformInfo;
477
477
 
478
478
  /**
479
- * @beta
479
+ * @public
480
480
  * Provides methods for interacting with notifications.
481
481
  */
482
482
  export declare const notification: NotificationClient;
483
483
 
484
484
  /**
485
- * @beta
485
+ * @public
486
486
  *
487
487
  * Provides methods for interacting with notifications.
488
488
  */
489
489
  export declare interface NotificationClient {
490
490
  /**
491
- * @beta
491
+ * @public
492
492
  *
493
493
  * A method that shows a toast notification to the user.
494
494
  *
@@ -682,7 +682,7 @@ export declare const requestOpenExternalUrl: (
682
682
  ) => Promise<OpenExternalUrlResponse>;
683
683
 
684
684
  /**
685
- * @beta
685
+ * @public
686
686
  * The result when a toast notification is successfully added.
687
687
  */
688
688
  export declare type ToastCompleted = {
@@ -693,7 +693,7 @@ export declare type ToastCompleted = {
693
693
  };
694
694
 
695
695
  /**
696
- * @beta
696
+ * @public
697
697
  *
698
698
  * Options for configuring a toast notification.
699
699
  */
@@ -715,7 +715,7 @@ export declare type ToastRequest = {
715
715
  };
716
716
 
717
717
  /**
718
- * @beta
718
+ * @public
719
719
  *
720
720
  * The response from adding a toast notification.
721
721
  */
@@ -2,12 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- Object.defineProperty(exports, "notification", {
6
- enumerable: true,
7
- get: function() {
8
- return notification;
9
- }
10
- });
11
5
  _export_star(require("./public"), exports);
12
6
  function _export_star(from, to) {
13
7
  Object.keys(from).forEach(function(k) {
@@ -23,6 +17,4 @@ function _export_star(from, to) {
23
17
  return from;
24
18
  }
25
19
  var _window___canva___sdkRegistration, _window___canva__;
26
- (_window___canva__ = window.__canva__) === null || _window___canva__ === void 0 ? void 0 : (_window___canva___sdkRegistration = _window___canva__.sdkRegistration) === null || _window___canva___sdkRegistration === void 0 ? void 0 : _window___canva___sdkRegistration.registerPackageVersion('platform', '2.1.1', 'beta');
27
- const { canva_sdk } = window;
28
- const notification = canva_sdk.platform.v2.notification;
20
+ (_window___canva__ = window.__canva__) === null || _window___canva__ === void 0 ? void 0 : (_window___canva___sdkRegistration = _window___canva__.sdkRegistration) === null || _window___canva___sdkRegistration === void 0 ? void 0 : _window___canva___sdkRegistration.registerPackageVersion('platform', '2.2.0', 'beta');
@@ -5,25 +5,29 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- appProcess: function() {
12
+ get appProcess () {
13
13
  return appProcess;
14
14
  },
15
- features: function() {
15
+ get features () {
16
16
  return features;
17
17
  },
18
- getPlatformInfo: function() {
18
+ get getPlatformInfo () {
19
19
  return getPlatformInfo;
20
20
  },
21
- requestOpenExternalUrl: function() {
21
+ get notification () {
22
+ return notification;
23
+ },
24
+ get requestOpenExternalUrl () {
22
25
  return requestOpenExternalUrl;
23
26
  }
24
27
  });
25
28
  const { canva_sdk } = window;
26
29
  const appProcess = canva_sdk.platform.v2.appProcess;
27
30
  const features = canva_sdk.platform.v2.features;
31
+ const notification = canva_sdk.platform.v2.notification;
28
32
  const requestOpenExternalUrl = canva_sdk.platform.v2.platform.requestOpenExternalUrl;
29
33
  const getPlatformInfo = canva_sdk.platform.v2.platform.getPlatformInfo;
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- assertIsTestCanvaSdk: function() {
12
+ get assertIsTestCanvaSdk () {
13
13
  return assertIsTestCanvaSdk;
14
14
  },
15
- bindMethodsToClients: function() {
15
+ get bindMethodsToClients () {
16
16
  return bindMethodsToClients;
17
17
  },
18
- getCanvaSdk: function() {
18
+ get getCanvaSdk () {
19
19
  return getCanvaSdk;
20
20
  },
21
- injectFakeAPIClients: function() {
21
+ get injectFakeAPIClients () {
22
22
  return injectFakeAPIClients;
23
23
  }
24
24
  });
@@ -1,5 +1,3 @@
1
1
  var _window___canva___sdkRegistration, _window___canva__;
2
2
  export * from './public';
3
- (_window___canva__ = window.__canva__) === null || _window___canva__ === void 0 ? void 0 : (_window___canva___sdkRegistration = _window___canva__.sdkRegistration) === null || _window___canva___sdkRegistration === void 0 ? void 0 : _window___canva___sdkRegistration.registerPackageVersion('platform', '2.1.1', 'beta');
4
- const { canva_sdk } = window;
5
- export const notification = canva_sdk.platform.v2.notification;
3
+ (_window___canva__ = window.__canva__) === null || _window___canva__ === void 0 ? void 0 : (_window___canva___sdkRegistration = _window___canva__.sdkRegistration) === null || _window___canva___sdkRegistration === void 0 ? void 0 : _window___canva___sdkRegistration.registerPackageVersion('platform', '2.2.0', 'beta');
@@ -1,5 +1,6 @@
1
1
  const { canva_sdk } = window;
2
2
  export const appProcess = canva_sdk.platform.v2.appProcess;
3
3
  export const features = canva_sdk.platform.v2.features;
4
+ export const notification = canva_sdk.platform.v2.notification;
4
5
  export const requestOpenExternalUrl = canva_sdk.platform.v2.platform.requestOpenExternalUrl;
5
6
  export const getPlatformInfo = canva_sdk.platform.v2.platform.getPlatformInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canva/platform",
3
- "version": "2.1.1-beta.1",
3
+ "version": "2.2.0-beta.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",
@@ -22,4 +22,4 @@
22
22
  }
23
23
  },
24
24
  "typings": "./beta.d.ts"
25
- }
25
+ }