@forge/bridge 4.0.1-next.0 → 4.1.0
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,21 @@
|
|
|
1
1
|
# @forge/bridge
|
|
2
2
|
|
|
3
|
+
## 4.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 02b6246: added changeWindowTitle in the `view` module
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 04ef35e: Upgrade target to ES2018
|
|
12
|
+
|
|
13
|
+
## 4.1.0-next.1
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 02b6246: added changeWindowTitle in the `view` module
|
|
18
|
+
|
|
3
19
|
## 4.0.1-next.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changeWindowTitle.d.ts","sourceRoot":"","sources":["../../src/view/changeWindowTitle.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,UAAiB,MAAM,kBAMpD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.changeWindowTitle = void 0;
|
|
4
|
+
const bridge_1 = require("../bridge");
|
|
5
|
+
const errors_1 = require("../errors");
|
|
6
|
+
const callBridge = (0, bridge_1.getCallBridge)();
|
|
7
|
+
const changeWindowTitle = async (title) => {
|
|
8
|
+
try {
|
|
9
|
+
await callBridge('changeWindowTitle', title);
|
|
10
|
+
}
|
|
11
|
+
catch (e) {
|
|
12
|
+
throw new errors_1.BridgeAPIError("the window title wasn't changed due to error.");
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
exports.changeWindowTitle = changeWindowTitle;
|
package/out/view/view.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ export declare const view: {
|
|
|
10
10
|
frame: {
|
|
11
11
|
onPropsUpdate: <TFrameProps extends Record<string, unknown>>(handler: (props: TFrameProps) => void) => Promise<() => Promise<void>>;
|
|
12
12
|
};
|
|
13
|
+
changeWindowTitle: (title: string) => Promise<void>;
|
|
13
14
|
};
|
|
14
15
|
//# sourceMappingURL=view.d.ts.map
|
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
|
@@ -6,6 +6,7 @@ const close_1 = require("./close");
|
|
|
6
6
|
const refresh_1 = require("./refresh");
|
|
7
7
|
const createHistory_1 = require("./createHistory");
|
|
8
8
|
const getContext_1 = require("./getContext");
|
|
9
|
+
const changeWindowTitle_1 = require("./changeWindowTitle");
|
|
9
10
|
const theme_1 = require("./theme");
|
|
10
11
|
const frame_1 = require("./frame");
|
|
11
12
|
exports.view = {
|
|
@@ -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
|
-
frame: frame_1.frame
|
|
19
|
+
frame: frame_1.frame,
|
|
20
|
+
changeWindowTitle: changeWindowTitle_1.changeWindowTitle
|
|
19
21
|
};
|