@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
|
@@ -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;
|
package/out/view/view.d.ts
CHANGED
package/out/view/view.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/view/view.ts"],"names":[],"mappings":"
|
|
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
|
};
|