@forge/confluence-bridge 3.0.3-next.0 → 3.1.0-next.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @forge/confluence-bridge
2
2
 
3
+ ## 3.1.0-next.1
4
+
5
+ ### Minor Changes
6
+
7
+ - 6617110: Added updateBylineProperties bridge method
8
+
3
9
  ## 3.0.3-next.0
4
10
 
5
11
  ### Patch Changes
package/out/bridge.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ import './globals.d.ts';
1
2
  export declare const getCallBridge: () => Window['__bridge']['callBridge'];
2
3
  //# sourceMappingURL=bridge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,QAAO,MAAM,CAAC,UAAU,CAAC,CAAC,YAAY,CAE/D,CAAC"}
1
+ {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAExB,eAAO,MAAM,aAAa,QAAO,MAAM,CAAC,UAAU,CAAC,CAAC,YAAY,CAE/D,CAAC"}
package/out/bridge.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getCallBridge = void 0;
4
+ require("./globals.d.ts");
4
5
  const getCallBridge = () => {
5
6
  return window.__bridge.callBridge;
6
7
  };
@@ -2,4 +2,5 @@ export { getEditorContent } from './getEditorContent';
2
2
  export { updateMacro } from './updateMacro';
3
3
  export { getMacroContent } from './getMacroContent';
4
4
  export { setMacroViewportHeight } from './setMacroViewportHeight';
5
+ export { updateBylineProperties } from './updateBylineProperties';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setMacroViewportHeight = exports.getMacroContent = exports.updateMacro = exports.getEditorContent = void 0;
3
+ exports.updateBylineProperties = exports.setMacroViewportHeight = exports.getMacroContent = exports.updateMacro = exports.getEditorContent = void 0;
4
4
  var getEditorContent_1 = require("./getEditorContent");
5
5
  Object.defineProperty(exports, "getEditorContent", { enumerable: true, get: function () { return getEditorContent_1.getEditorContent; } });
6
6
  var updateMacro_1 = require("./updateMacro");
@@ -9,3 +9,5 @@ var getMacroContent_1 = require("./getMacroContent");
9
9
  Object.defineProperty(exports, "getMacroContent", { enumerable: true, get: function () { return getMacroContent_1.getMacroContent; } });
10
10
  var setMacroViewportHeight_1 = require("./setMacroViewportHeight");
11
11
  Object.defineProperty(exports, "setMacroViewportHeight", { enumerable: true, get: function () { return setMacroViewportHeight_1.setMacroViewportHeight; } });
12
+ var updateBylineProperties_1 = require("./updateBylineProperties");
13
+ Object.defineProperty(exports, "updateBylineProperties", { enumerable: true, get: function () { return updateBylineProperties_1.updateBylineProperties; } });
@@ -1,4 +1,12 @@
1
1
  export interface ContentData {
2
2
  data: string;
3
3
  }
4
+ export interface BylineProperties {
5
+ propertyKey: string;
6
+ valueUpdate: {
7
+ title?: string;
8
+ icon?: string;
9
+ tooltip?: string;
10
+ };
11
+ }
4
12
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/content/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/content/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH"}
@@ -0,0 +1,3 @@
1
+ import { BylineProperties } from './types';
2
+ export declare function updateBylineProperties(payload: BylineProperties): Promise<void>;
3
+ //# sourceMappingURL=updateBylineProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateBylineProperties.d.ts","sourceRoot":"","sources":["../../src/content/updateBylineProperties.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAO3C,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQrF"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateBylineProperties = void 0;
4
+ const errors_1 = require("../errors");
5
+ const bridge_1 = require("../bridge");
6
+ async function updateBylineProperties(payload) {
7
+ const callBridge = (0, bridge_1.getCallBridge)();
8
+ try {
9
+ await callBridge('emit', { event: 'FORGE_CONTENT_PROPERTY_UPDATED', payload });
10
+ }
11
+ catch (err) {
12
+ throw new errors_1.BridgeAPIError('Unable to update byline properties: ' + err.message);
13
+ }
14
+ }
15
+ exports.updateBylineProperties = updateBylineProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/confluence-bridge",
3
- "version": "3.0.3-next.0",
3
+ "version": "3.1.0-next.1",
4
4
  "description": "Forge Confluence custom bridge API",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",