@canva/design 2.8.1-alpha.1 → 2.8.1-beta.0

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/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./alpha";
1
+ export * from "./beta";
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get editContent () {
13
+ return editContent;
14
+ },
15
+ get getDesignMetadata () {
16
+ return getDesignMetadata;
17
+ },
18
+ get getDesignTemplateMetadata () {
19
+ return getDesignTemplateMetadata;
20
+ },
21
+ get openDesign () {
22
+ return openDesign;
23
+ }
24
+ });
25
+ const _version = require("./version");
26
+ _export_star(require("./public"), exports);
27
+ function _export_star(from, to) {
28
+ Object.keys(from).forEach(function(k) {
29
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
30
+ Object.defineProperty(to, k, {
31
+ enumerable: true,
32
+ get: function() {
33
+ return from[k];
34
+ }
35
+ });
36
+ }
37
+ });
38
+ return from;
39
+ }
40
+ const getDesignMetadata = canva_sdk.design.v2.designInteraction.getDesignMetadata;
41
+ function editContent(options, callback) {
42
+ return canva_sdk.design.v2.designInteraction.editContent(options, (session)=>callback(session));
43
+ }
44
+ const openDesign = canva_sdk.design.v2.designInteraction.openDesign;
45
+ const getDesignTemplateMetadata = canva_sdk.design.v2.designInteraction.getDesignTemplateMetadata;
46
+ window.__canva__?.sdkRegistration?.registerPackageVersion('design', _version.LATEST_VERSION_BETA, 'beta');
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- _export_star(require("./alpha"), exports);
5
+ _export_star(require("./beta"), exports);
6
6
  function _export_star(from, to) {
7
7
  Object.keys(from).forEach(function(k) {
8
8
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- _export_star(require("./alpha"), exports);
5
+ _export_star(require("./beta"), exports);
6
6
  function _export_star(from, to) {
7
7
  Object.keys(from).forEach(function(k) {
8
8
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
@@ -20,5 +20,5 @@ _export(exports, {
20
20
  }
21
21
  });
22
22
  const LATEST_VERSION = '2.8.0';
23
- const LATEST_VERSION_BETA = '2.7.6-beta.2';
23
+ const LATEST_VERSION_BETA = '2.8.1-beta.0';
24
24
  const LATEST_VERSION_ALPHA = '2.8.1-alpha.1';
@@ -0,0 +1,9 @@
1
+ import { LATEST_VERSION_BETA } from './version';
2
+ export const getDesignMetadata = canva_sdk.design.v2.designInteraction.getDesignMetadata;
3
+ export function editContent(options, callback) {
4
+ return canva_sdk.design.v2.designInteraction.editContent(options, (session)=>callback(session));
5
+ }
6
+ export const openDesign = canva_sdk.design.v2.designInteraction.openDesign;
7
+ export const getDesignTemplateMetadata = canva_sdk.design.v2.designInteraction.getDesignTemplateMetadata;
8
+ export * from './public';
9
+ window.__canva__?.sdkRegistration?.registerPackageVersion('design', LATEST_VERSION_BETA, 'beta');
@@ -1 +1 @@
1
- export * from './alpha';
1
+ export * from './beta';
@@ -1 +1 @@
1
- export * from './alpha';
1
+ export * from './beta';
@@ -1,3 +1,3 @@
1
1
  export const LATEST_VERSION = '2.8.0';
2
- export const LATEST_VERSION_BETA = '2.7.6-beta.2';
2
+ export const LATEST_VERSION_BETA = '2.8.1-beta.0';
3
3
  export const LATEST_VERSION_ALPHA = '2.8.1-alpha.1';
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@canva/design",
3
- "version": "2.8.1-alpha.1",
3
+ "version": "2.8.1-beta.0",
4
4
  "description": "The Canva Apps SDK design 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/design/alpha.js",
11
- "module": "./lib/esm/sdk/design/alpha.js",
10
+ "main": "./lib/cjs/sdk/design/beta.js",
11
+ "module": "./lib/esm/sdk/design/beta.js",
12
12
  "exports": {
13
13
  ".": {
14
- "types": "./alpha.d.ts",
15
- "require": "./lib/cjs/sdk/design/alpha.js",
16
- "import": "./lib/esm/sdk/design/alpha.js"
14
+ "types": "./beta.d.ts",
15
+ "require": "./lib/cjs/sdk/design/beta.js",
16
+ "import": "./lib/esm/sdk/design/beta.js"
17
17
  },
18
18
  "./test": {
19
- "types": "./test/alpha.d.ts",
20
- "require": "./lib/cjs/sdk/design/test/alpha.js",
21
- "import": "./lib/esm/sdk/design/test/alpha.js"
19
+ "types": "./test/beta.d.ts",
20
+ "require": "./lib/cjs/sdk/design/test/beta.js",
21
+ "import": "./lib/esm/sdk/design/test/beta.js"
22
22
  }
23
23
  },
24
- "typings": "./alpha.d.ts"
24
+ "typings": "./beta.d.ts"
25
25
  }
package/test/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./alpha";
1
+ export * from "./beta";
@@ -1,11 +0,0 @@
1
- "use strict"
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "ResetToDefault", {
6
- enumerable: true,
7
- get: function() {
8
- return ResetToDefault;
9
- }
10
- });
11
- const ResetToDefault = Symbol.for('$$canva_reset_to_default');
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
9
- });
10
- }
11
- _export(exports, {
12
- get ResetToDefault () {
13
- return _alpha.ResetToDefault;
14
- },
15
- get applyTemplate () {
16
- return applyTemplate;
17
- },
18
- get getBrandTemplateMetadata () {
19
- return getBrandTemplateMetadata;
20
- },
21
- get initAppElement () {
22
- return initAppElement;
23
- },
24
- get openDesign () {
25
- return openDesign;
26
- },
27
- get requestAutofillDesign () {
28
- return requestAutofillDesign;
29
- },
30
- get requestBrandTemplates () {
31
- return requestBrandTemplates;
32
- }
33
- });
34
- const _version = require("./version");
35
- const _alpha = require('../../api/design/types/design_interaction/document/alpha');
36
- _export_star(require("./public"), exports);
37
- function _export_star(from, to) {
38
- Object.keys(from).forEach(function(k) {
39
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
40
- Object.defineProperty(to, k, {
41
- enumerable: true,
42
- get: function() {
43
- return from[k];
44
- }
45
- });
46
- }
47
- });
48
- return from;
49
- }
50
- const initAppElement = canva_sdk.design.v2.designInteraction.initAppElement;
51
- const requestAutofillDesign = canva_sdk.design.v2.autofill.requestAutofillDesign;
52
- const requestBrandTemplates = canva_sdk.design.v2.designInteraction.requestBrandTemplates;
53
- const getBrandTemplateMetadata = canva_sdk.design.v2.designInteraction.getBrandTemplateMetadata;
54
- const openDesign = canva_sdk.design.v2.designInteraction.openDesign;
55
- const applyTemplate = canva_sdk.design.v2.designInteraction.applyTemplate;
56
- window.__canva__?.sdkRegistration?.registerPackageVersion('design', _version.LATEST_VERSION_ALPHA, 'alpha');
@@ -1,18 +0,0 @@
1
- "use strict"
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- _export_star(require("./beta"), exports);
6
- function _export_star(from, to) {
7
- Object.keys(from).forEach(function(k) {
8
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
9
- Object.defineProperty(to, k, {
10
- enumerable: true,
11
- get: function() {
12
- return from[k];
13
- }
14
- });
15
- }
16
- });
17
- return from;
18
- }
@@ -1 +0,0 @@
1
- export const ResetToDefault = Symbol.for('$$canva_reset_to_default');
@@ -1,10 +0,0 @@
1
- import { LATEST_VERSION_ALPHA } from './version';
2
- export const initAppElement = canva_sdk.design.v2.designInteraction.initAppElement;
3
- export const requestAutofillDesign = canva_sdk.design.v2.autofill.requestAutofillDesign;
4
- export const requestBrandTemplates = canva_sdk.design.v2.designInteraction.requestBrandTemplates;
5
- export const getBrandTemplateMetadata = canva_sdk.design.v2.designInteraction.getBrandTemplateMetadata;
6
- export const openDesign = canva_sdk.design.v2.designInteraction.openDesign;
7
- export const applyTemplate = canva_sdk.design.v2.designInteraction.applyTemplate;
8
- export { ResetToDefault } from '../../api/design/types/design_interaction/document/alpha';
9
- export * from './public';
10
- window.__canva__?.sdkRegistration?.registerPackageVersion('design', LATEST_VERSION_ALPHA, 'alpha');
@@ -1 +0,0 @@
1
- export * from './beta';
File without changes