@forge/bridge 4.6.0-next.0 → 5.0.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/bridge
2
2
 
3
+ ## 5.0.0-next.1
4
+
5
+ ### Major Changes
6
+
7
+ - 3a96c90: Add emitReadyEvent to signal macro readiness
8
+
3
9
  ## 4.6.0-next.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,2 @@
1
+ export declare const emitReadyEvent: () => Promise<void>;
2
+ //# sourceMappingURL=emitReadyEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emitReadyEvent.d.ts","sourceRoot":"","sources":["../../src/view/emitReadyEvent.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc,QAAa,QAAQ,IAAI,CAMnD,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emitReadyEvent = void 0;
4
+ const events_1 = require("../events/events");
5
+ const view_1 = require("./view");
6
+ const EXTENSION_READY = 'EXTENSION_READY';
7
+ const emitReadyEvent = async () => {
8
+ const context = await view_1.view.getContext();
9
+ await events_1.events.emit(EXTENSION_READY, {
10
+ localId: context.localId
11
+ });
12
+ };
13
+ exports.emitReadyEvent = emitReadyEvent;
@@ -8,5 +8,6 @@ export declare const view: {
8
8
  enable: () => Promise<void>;
9
9
  };
10
10
  changeWindowTitle: (title: string) => Promise<void>;
11
+ emitReadyEvent: () => Promise<void>;
11
12
  };
12
13
  //# sourceMappingURL=view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/view/view.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI;;;;;;;;;;CAQhB,CAAC"}
1
+ {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/view/view.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,IAAI;;;;;;;;;;;CAShB,CAAC"}
package/out/view/view.js CHANGED
@@ -8,6 +8,7 @@ const createHistory_1 = require("./createHistory");
8
8
  const getContext_1 = require("./getContext");
9
9
  const changeWindowTitle_1 = require("./changeWindowTitle");
10
10
  const theme_1 = require("./theme");
11
+ const emitReadyEvent_1 = require("./emitReadyEvent");
11
12
  exports.view = {
12
13
  submit: submit_1.submit,
13
14
  close: close_1.close,
@@ -15,5 +16,6 @@ exports.view = {
15
16
  createHistory: createHistory_1.createHistory,
16
17
  getContext: getContext_1.getContext,
17
18
  theme: theme_1.theme,
18
- changeWindowTitle: changeWindowTitle_1.changeWindowTitle
19
+ changeWindowTitle: changeWindowTitle_1.changeWindowTitle,
20
+ emitReadyEvent: emitReadyEvent_1.emitReadyEvent
19
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bridge",
3
- "version": "4.6.0-next.0",
3
+ "version": "5.0.0-next.1",
4
4
  "description": "Forge bridge API for custom UI apps",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",