@forge/bridge 5.17.0-next.1 → 5.17.0-next.10

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,68 @@
1
1
  # @forge/bridge
2
2
 
3
+ ## 5.17.0-next.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ee691bf]
8
+ - @forge/manifest@12.9.0-next.6
9
+
10
+ ## 5.17.0-next.9
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [8197e66]
15
+ - @forge/manifest@12.9.0-next.5
16
+
17
+ ## 5.17.0-next.8
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [4493006]
22
+ - @forge/manifest@12.9.0-next.4
23
+
24
+ ## 5.17.0-next.7
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [723fab8]
29
+ - Updated dependencies [9f3add6]
30
+ - @forge/manifest@12.9.0-next.3
31
+
32
+ ## 5.17.0-next.6
33
+
34
+ ### Minor Changes
35
+
36
+ - fc55c83: Add `getFrameDispatch` method to `view` module. The method fetches the dispatch prop passed to Frame inside the frame resource.
37
+
38
+ ## 5.17.0-next.5
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [b7b1f36]
43
+ - @forge/manifest@12.8.1-next.2
44
+
45
+ ## 5.17.0-next.4
46
+
47
+ ### Minor Changes
48
+
49
+ - f7f06c8: Add resizable to modal named sizes type
50
+
51
+ ## 5.17.0-next.3
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies [5beb8ad]
56
+ - Updated dependencies [f1f11f0]
57
+ - @forge/manifest@12.8.1-next.1
58
+
59
+ ## 5.17.0-next.2
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [ccdcfc3]
64
+ - @forge/manifest@12.8.1-next.0
65
+
3
66
  ## 5.17.0-next.1
4
67
 
5
68
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- declare const NAMED_MODAL_SIZES: readonly ["small", "medium", "large", "xlarge", "max", "fullscreen"];
1
+ declare const NAMED_MODAL_SIZES: readonly ["small", "medium", "large", "xlarge", "max", "fullscreen", "resizable"];
2
2
  declare type NamedModalSize = (typeof NAMED_MODAL_SIZES)[number];
3
3
  declare type CustomModalSize = {
4
4
  width: string;
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,iBAAiB,sEAAuE,CAAC;AAC/F,aAAK,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,aAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,UAAU,GAAG,cAAc,GAAG,eAAe,CAAC;AAE1D,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,UAAU,CAAC;IAClB,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;AAmBD,qBAAa,KAAK;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9C,IAAI,EAAE,UAAU,CAAC;IACjB,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;CA0BX"}
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,iBAAiB,mFAAoF,CAAC;AAC5G,aAAK,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,aAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,UAAU,GAAG,cAAc,GAAG,eAAe,CAAC;AAE1D,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,UAAU,CAAC;IAClB,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;AAmBD,qBAAa,KAAK;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;IAC9C,IAAI,EAAE,UAAU,CAAC;IACjB,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;CA0BX"}
@@ -4,7 +4,7 @@ exports.Modal = void 0;
4
4
  const bridge_1 = require("../bridge");
5
5
  const errors_1 = require("../errors");
6
6
  const callBridge = (0, bridge_1.getCallBridge)();
7
- const NAMED_MODAL_SIZES = ['small', 'medium', 'large', 'xlarge', 'max', 'fullscreen'];
7
+ const NAMED_MODAL_SIZES = ['small', 'medium', 'large', 'xlarge', 'max', 'fullscreen', 'resizable'];
8
8
  // eslint-disable-next-line @typescript-eslint/no-empty-function
9
9
  const noop = () => { };
10
10
  function isNamedModalSize(size) {
@@ -0,0 +1,4 @@
1
+ declare type DispatchFunction = (...args: any[]) => any;
2
+ export declare const getFrameDispatch: <T extends DispatchFunction>() => Promise<T | undefined>;
3
+ export {};
4
+ //# sourceMappingURL=getFrameDispatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFrameDispatch.d.ts","sourceRoot":"","sources":["../../src/view/getFrameDispatch.ts"],"names":[],"mappings":"AAEA,aAAK,gBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAIhD,eAAO,MAAM,gBAAgB,0DAE5B,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFrameDispatch = void 0;
4
+ const bridge_1 = require("../bridge");
5
+ const callBridge = (0, bridge_1.getCallBridge)();
6
+ const getFrameDispatch = async () => {
7
+ return await callBridge('getFrameDispatch');
8
+ };
9
+ exports.getFrameDispatch = getFrameDispatch;
@@ -6,6 +6,7 @@ export declare const view: {
6
6
  refresh: (payload?: any) => Promise<void>;
7
7
  createHistory: () => Promise<import("history").History>;
8
8
  getContext: () => Promise<import("../types").FullContext>;
9
+ getFrameDispatch: <T extends (...args: any[]) => any>() => Promise<T | undefined>;
9
10
  theme: {
10
11
  enable: () => Promise<void>;
11
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/view/view.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;CAYhB,CAAC"}
1
+ {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/view/view.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAahB,CAAC"}
package/out/view/view.js CHANGED
@@ -12,6 +12,7 @@ const theme_1 = require("./theme");
12
12
  const emitReadyEvent_1 = require("./emitReadyEvent");
13
13
  const adf_renderer_1 = require("./adf-renderer");
14
14
  const onClose_1 = require("./onClose");
15
+ const getFrameDispatch_1 = require("./getFrameDispatch");
15
16
  exports.view = {
16
17
  submit: submit_1.submit,
17
18
  close: close_1.close,
@@ -20,6 +21,7 @@ exports.view = {
20
21
  refresh: refresh_1.refresh,
21
22
  createHistory: createHistory_1.createHistory,
22
23
  getContext: getContext_1.getContext,
24
+ getFrameDispatch: getFrameDispatch_1.getFrameDispatch,
23
25
  theme: theme_1.theme,
24
26
  changeWindowTitle: changeWindowTitle_1.changeWindowTitle,
25
27
  emitReadyEvent: emitReadyEvent_1.emitReadyEvent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bridge",
3
- "version": "5.17.0-next.1",
3
+ "version": "5.17.0-next.10",
4
4
  "description": "Forge bridge API for custom UI apps",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -19,7 +19,7 @@
19
19
  "@forge/i18n": "0.0.7",
20
20
  "@forge/resolver": "1.8.0",
21
21
  "@types/history": "^4.7.11",
22
- "@forge/manifest": "12.8.0",
22
+ "@forge/manifest": "12.9.0-next.6",
23
23
  "@types/iframe-resizer": "^3.5.8",
24
24
  "iframe-resizer": "^4.4.5"
25
25
  },