@forge/confluence-bridge 3.1.0-next.2 → 3.1.1-experimental-04cc2b9

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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # @forge/confluence-bridge
2
2
 
3
+ ## 3.1.1-experimental-04cc2b9
4
+
5
+ ### Major Changes
6
+
7
+ - d9ef926: Adds support for TypeScript 5
8
+
9
+ ## 3.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 0b7cde8: replace window with globalThis to ensure the bridge packages can work in both browser and worker environment
14
+
15
+ ## 3.1.1-next.0
16
+
17
+ ### Patch Changes
18
+
19
+ - 0b7cde8: replace window with globalThis to ensure the bridge packages can work in both browser and worker environment
20
+
21
+ ## 3.1.0
22
+
23
+ ### Minor Changes
24
+
25
+ - 6617110: Added updateBylineProperties bridge method
26
+
27
+ ### Patch Changes
28
+
29
+ - 4454464: Add setMacroViewportHeight function to confluence-bridge
30
+ - aa6fe6a: Remove bad import
31
+
3
32
  ## 3.1.0-next.2
4
33
 
5
34
  ### Patch Changes
package/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2025 Atlassian
1
+ Copyright (c) 2026 Atlassian
2
2
  Permission is hereby granted to use this software in accordance with the terms
3
3
  and conditions outlined in the Atlassian Developer Terms, which can be found
4
4
  at the following URL:
package/out/bridge.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const getCallBridge: () => Window['__bridge']['callBridge'];
1
+ export declare const getCallBridge: () => Window["__bridge"]["callBridge"];
2
2
  //# sourceMappingURL=bridge.d.ts.map
package/out/bridge.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getCallBridge = void 0;
4
4
  const getCallBridge = () => {
5
- return window.__bridge.callBridge;
5
+ return globalThis.__bridge.callBridge;
6
6
  };
7
7
  exports.getCallBridge = getCallBridge;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getEditorContent = void 0;
3
+ exports.getEditorContent = getEditorContent;
4
4
  const errors_1 = require("../errors");
5
5
  const bridge_1 = require("../bridge");
6
6
  async function getEditorContent() {
@@ -16,4 +16,3 @@ async function getEditorContent() {
16
16
  throw new errors_1.BridgeAPIError('Unable to get editor content: ' + err.message);
17
17
  }
18
18
  }
19
- exports.getEditorContent = getEditorContent;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMacroContent = void 0;
3
+ exports.getMacroContent = getMacroContent;
4
4
  const errors_1 = require("../errors");
5
5
  const bridge_1 = require("../bridge");
6
6
  async function getMacroContent() {
@@ -16,4 +16,3 @@ async function getMacroContent() {
16
16
  throw new errors_1.BridgeAPIError('Unable to get macro content: ' + err.message);
17
17
  }
18
18
  }
19
- exports.getMacroContent = getMacroContent;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setMacroViewportHeight = exports.INVALID_HEIGHT_ERROR_MESSAGE = void 0;
3
+ exports.INVALID_HEIGHT_ERROR_MESSAGE = void 0;
4
+ exports.setMacroViewportHeight = setMacroViewportHeight;
4
5
  const errors_1 = require("../errors");
5
6
  const bridge_1 = require("../bridge");
6
7
  exports.INVALID_HEIGHT_ERROR_MESSAGE = 'Height argument must be a positive integer and greater than 0';
@@ -18,4 +19,3 @@ async function setMacroViewportHeight(height) {
18
19
  throw new errors_1.BridgeAPIError('Unable to set macro viewport height: ' + err.message);
19
20
  }
20
21
  }
21
- exports.setMacroViewportHeight = setMacroViewportHeight;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateBylineProperties = void 0;
3
+ exports.updateBylineProperties = updateBylineProperties;
4
4
  const errors_1 = require("../errors");
5
5
  const bridge_1 = require("../bridge");
6
6
  async function updateBylineProperties(payload) {
@@ -12,4 +12,3 @@ async function updateBylineProperties(payload) {
12
12
  throw new errors_1.BridgeAPIError('Unable to update byline properties: ' + err.message);
13
13
  }
14
14
  }
15
- exports.updateBylineProperties = updateBylineProperties;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateMacro = void 0;
3
+ exports.updateMacro = updateMacro;
4
4
  const errors_1 = require("../errors");
5
5
  const bridge_1 = require("../bridge");
6
6
  async function updateMacro(macroContent) {
@@ -13,4 +13,3 @@ async function updateMacro(macroContent) {
13
13
  throw new errors_1.BridgeAPIError('Unable to update macro: ' + err.message);
14
14
  }
15
15
  }
16
- exports.updateMacro = updateMacro;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/confluence-bridge",
3
- "version": "3.1.0-next.2",
3
+ "version": "3.1.1-experimental-04cc2b9",
4
4
  "description": "Forge Confluence custom bridge API",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -13,5 +13,16 @@
13
13
  },
14
14
  "publishConfig": {
15
15
  "registry": "https://packages.atlassian.com/api/npm/npm-public/"
16
+ },
17
+ "peerDependencies": {
18
+ "typescript": ">=5.0.0"
19
+ },
20
+ "peerDependenciesMeta": {
21
+ "typescript": {
22
+ "optional": true
23
+ }
24
+ },
25
+ "devDependencies": {
26
+ "typescript": "5.9.2"
16
27
  }
17
28
  }