@forge/bridge 5.11.0-next.4-experimental-3c69930 → 5.11.0-next.6
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 +9 -10
- package/out/modal/modal.d.ts +4 -0
- package/out/modal/modal.d.ts.map +1 -1
- package/out/modal/modal.js +5 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
# @forge/bridge
|
|
2
2
|
|
|
3
|
-
## 5.11.0-next.
|
|
3
|
+
## 5.11.0-next.6
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
7
|
+
- 5a8ee7a: Add title and icon props to forge/bridge modal
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [9418d29]
|
|
12
|
+
- @forge/manifest@12.0.0-next.4
|
|
13
|
+
|
|
14
|
+
## 5.11.0-next.5
|
|
9
15
|
|
|
10
16
|
### Patch Changes
|
|
11
17
|
|
|
12
18
|
- 28b4837: Updating types for configurable egress and remotes to match final state of API
|
|
13
|
-
- Updated dependencies [6b7a4ef]
|
|
14
|
-
- Updated dependencies [dfa2aa6]
|
|
15
|
-
- Updated dependencies [e21f32f]
|
|
16
|
-
- Updated dependencies [545ecc1]
|
|
17
|
-
- Updated dependencies [eadb4a6]
|
|
18
|
-
- Updated dependencies [8db2311]
|
|
19
|
-
- @forge/manifest@12.0.0-next.3-experimental-3c69930
|
|
20
19
|
|
|
21
20
|
## 5.11.0-next.4
|
|
22
21
|
|
package/out/modal/modal.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export interface ModalOptions {
|
|
|
5
5
|
context?: any;
|
|
6
6
|
closeOnEscape?: boolean;
|
|
7
7
|
closeOnOverlayClick?: boolean;
|
|
8
|
+
title?: string;
|
|
9
|
+
icon?: string;
|
|
8
10
|
}
|
|
9
11
|
export declare class Modal {
|
|
10
12
|
resource: string | null;
|
|
@@ -13,6 +15,8 @@ export declare class Modal {
|
|
|
13
15
|
context: any;
|
|
14
16
|
closeOnEscape: boolean;
|
|
15
17
|
closeOnOverlayClick: boolean;
|
|
18
|
+
title: string;
|
|
19
|
+
icon: string;
|
|
16
20
|
constructor(opts?: ModalOptions);
|
|
17
21
|
open(): Promise<void>;
|
|
18
22
|
}
|
package/out/modal/modal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAKD,qBAAa,KAAK;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;gBACD,IAAI,CAAC,EAAE,YAAY;IAWzB,IAAI;CAoBX"}
|
package/out/modal/modal.js
CHANGED
|
@@ -14,6 +14,8 @@ class Modal {
|
|
|
14
14
|
this.context = (opts === null || opts === void 0 ? void 0 : opts.context) || {};
|
|
15
15
|
this.closeOnEscape = (_a = opts === null || opts === void 0 ? void 0 : opts.closeOnEscape) !== null && _a !== void 0 ? _a : true;
|
|
16
16
|
this.closeOnOverlayClick = (_b = opts === null || opts === void 0 ? void 0 : opts.closeOnOverlayClick) !== null && _b !== void 0 ? _b : true;
|
|
17
|
+
this.title = (opts === null || opts === void 0 ? void 0 : opts.title) || '';
|
|
18
|
+
this.icon = (opts === null || opts === void 0 ? void 0 : opts.icon) || '';
|
|
17
19
|
}
|
|
18
20
|
async open() {
|
|
19
21
|
try {
|
|
@@ -23,7 +25,9 @@ class Modal {
|
|
|
23
25
|
size: this.size,
|
|
24
26
|
context: this.context,
|
|
25
27
|
closeOnEscape: this.closeOnEscape,
|
|
26
|
-
closeOnOverlayClick: this.closeOnOverlayClick
|
|
28
|
+
closeOnOverlayClick: this.closeOnOverlayClick,
|
|
29
|
+
title: this.title,
|
|
30
|
+
icon: this.icon
|
|
27
31
|
});
|
|
28
32
|
if (success === false) {
|
|
29
33
|
throw new errors_1.BridgeAPIError('Unable to open modal.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bridge",
|
|
3
|
-
"version": "5.11.0-next.
|
|
3
|
+
"version": "5.11.0-next.6",
|
|
4
4
|
"description": "Forge bridge API for custom UI apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@forge/resolver": "1.7.1",
|
|
21
21
|
"@statsig/js-client": "3.18.2",
|
|
22
22
|
"@types/history": "^4.7.11",
|
|
23
|
-
"@forge/manifest": "12.0.0-next.
|
|
23
|
+
"@forge/manifest": "12.0.0-next.4",
|
|
24
24
|
"@types/iframe-resizer": "^3.5.8",
|
|
25
25
|
"iframe-resizer": "^4.4.5",
|
|
26
26
|
"uuid": "^9.0.1"
|