@forge/bridge

5.10.15.10.2-next.0
~

Modified (4 files)

Index: package/out/view/emitReadyEvent.js
===================================================================
--- package/out/view/emitReadyEvent.js
+++ package/out/view/emitReadyEvent.js
@@ -2,12 +2,24 @@
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.emitReadyEvent = void 0;
 const events_1 = require("../events/events");
 const view_1 = require("./view");
+const bridge_1 = require("../bridge");
+const errors_1 = require("../errors");
+const callBridge = (0, bridge_1.getCallBridge)();
 const EXTENSION_READY = 'EXTENSION_READY';
 const emitReadyEvent = async () => {
     const context = await view_1.view.getContext();
     await events_1.events.emit(EXTENSION_READY, {
         localId: context.localId
     });
+    try {
+        const success = await callBridge('emitReadyEvent');
+        if (success === false) {
+            throw new errors_1.BridgeAPIError('Unable to emit ready event.');
+        }
+    }
+    catch (err) {
+        throw new errors_1.BridgeAPIError('Unable to emit ready event.');
+    }
 };
 exports.emitReadyEvent = emitReadyEvent;
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/bridge",
-  "version": "5.10.1",
+  "version": "5.10.2-next.0",
   "description": "Forge bridge API for custom UI apps",
   "author": "Atlassian",
   "license": "SEE LICENSE IN LICENSE.txt",
   "main": "out/index.js",
@@ -19,9 +19,9 @@
     "@forge/i18n": "0.0.7",
     "@forge/resolver": "1.7.1",
     "@statsig/js-client": "3.18.2",
     "@types/history": "^4.7.11",
-    "@forge/manifest": "11.3.1",
+    "@forge/manifest": "11.3.2-next.0",
     "@types/iframe-resizer": "^3.5.8",
     "iframe-resizer": "^4.4.5",
     "uuid": "^9.0.1"
   },
Index: package/out/view/emitReadyEvent.d.ts.map
===================================================================
--- package/out/view/emitReadyEvent.d.ts.map
+++ package/out/view/emitReadyEvent.d.ts.map
@@ -1,1 +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"}
\ No newline at end of file
+{"version":3,"file":"emitReadyEvent.d.ts","sourceRoot":"","sources":["../../src/view/emitReadyEvent.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc,QAAa,QAAQ,IAAI,CAiBnD,CAAC"}
\ No newline at end of file
Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,15 @@
 # @forge/bridge
 
+## 5.10.2-next.0
+
+### Patch Changes
+
+- 4205052: Send emitReadyEvent calls over the bridge for usage in static macros
+- Updated dependencies [73c9329]
+- Updated dependencies [b96a445]
+  - @forge/[email protected]
+
 ## 5.10.1
 
 ### Patch Changes