@forge/bridge 4.5.1 → 4.5.2-experimental-d604e09
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 +18 -0
- package/out/types.d.ts +1 -0
- package/out/types.d.ts.map +1 -1
- package/out/view/onClose.d.ts +2 -0
- package/out/view/onClose.d.ts.map +1 -0
- package/out/view/onClose.js +18 -0
- package/out/view/view.d.ts +1 -0
- package/out/view/view.d.ts.map +1 -1
- package/out/view/view.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @forge/bridge
|
|
2
2
|
|
|
3
|
+
## 4.5.2-experimental-d604e09
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 79cf5d5: Add view.onClose bridge method
|
|
8
|
+
|
|
9
|
+
## 4.5.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- d985e8f: Added support for userAccess.enabled flag
|
|
14
|
+
|
|
15
|
+
## 4.5.2-next.0
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- d985e8f: Added support for userAccess.enabled flag
|
|
20
|
+
|
|
3
21
|
## 4.5.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/out/types.d.ts
CHANGED
package/out/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,oBAAY,aAAa,GAAG;KACzB,GAAG,IAAI,MAAM,GAAG,MAAM,GAAG,GAAG;CAC9B,CAAC;AAEF,oBAAY,cAAc,GAAG,MAAM,CAAC,MAAM,EAA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|
+
{"version":3,"file":"onClose.d.ts","sourceRoot":"","sources":["../../src/view/onClose.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,YAAmB,MAAM,QAAQ,IAAI,CAAC,kBASzD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.onClose = void 0;
|
|
4
|
+
const bridge_1 = require("../bridge");
|
|
5
|
+
const errors_1 = require("../errors");
|
|
6
|
+
const callBridge = (0, bridge_1.getCallBridge)();
|
|
7
|
+
const onClose = async (payload) => {
|
|
8
|
+
try {
|
|
9
|
+
const success = await callBridge('onClose', payload);
|
|
10
|
+
if (success === false) {
|
|
11
|
+
throw new errors_1.BridgeAPIError('`onClose` call has failed.');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
catch (e) {
|
|
15
|
+
throw new errors_1.BridgeAPIError("this resource's view is not closable.");
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.onClose = onClose;
|
package/out/view/view.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const view: {
|
|
2
2
|
submit: (payload?: any) => Promise<void>;
|
|
3
3
|
close: (payload?: any) => Promise<void>;
|
|
4
|
+
onClose: (payload: () => Promise<void>) => Promise<void>;
|
|
4
5
|
refresh: (payload?: any) => Promise<void>;
|
|
5
6
|
createHistory: () => Promise<import("history").History>;
|
|
6
7
|
getContext: () => Promise<import("../types").FullContext>;
|
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,9 +8,11 @@ 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 onClose_1 = require("./onClose");
|
|
11
12
|
exports.view = {
|
|
12
13
|
submit: submit_1.submit,
|
|
13
14
|
close: close_1.close,
|
|
15
|
+
onClose: onClose_1.onClose,
|
|
14
16
|
refresh: refresh_1.refresh,
|
|
15
17
|
createHistory: createHistory_1.createHistory,
|
|
16
18
|
getContext: getContext_1.getContext,
|