@forge/bridge 5.11.0-next.5 → 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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @forge/bridge
2
2
 
3
+ ## 5.11.0-next.6
4
+
5
+ ### Minor Changes
6
+
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
+
3
14
  ## 5.11.0-next.5
4
15
 
5
16
  ### Patch Changes
@@ -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
  }
@@ -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;CAC/B;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;gBACjB,IAAI,CAAC,EAAE,YAAY;IASzB,IAAI;CAkBX"}
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"}
@@ -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.5",
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.3",
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"