@forge/bridge 2.5.4 → 2.5.5-next.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,11 @@
1
1
  # @forge/bridge
2
2
 
3
+ ## 2.5.5-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - ac344e9: Refactor theming API from a standalone `enableTheming` method to be part of `view`. The new API for enabling theming is `view.theme.enable()`.
8
+
3
9
  ## 2.5.4
4
10
 
5
11
  ### Patch Changes
package/out/index.d.ts CHANGED
@@ -5,5 +5,4 @@ export * from './modal';
5
5
  export * from './fetch';
6
6
  export * from './flag';
7
7
  export * from './events';
8
- export * from './enableTheming';
9
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
package/out/index.js CHANGED
@@ -8,4 +8,3 @@ tslib_1.__exportStar(require("./modal"), exports);
8
8
  tslib_1.__exportStar(require("./fetch"), exports);
9
9
  tslib_1.__exportStar(require("./flag"), exports);
10
10
  tslib_1.__exportStar(require("./events"), exports);
11
- tslib_1.__exportStar(require("./enableTheming"), exports);
@@ -0,0 +1,4 @@
1
+ export declare const theme: {
2
+ enable: () => Promise<void>;
3
+ };
4
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/view/theme.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;kBACJ,QAAQ,IAAI,CAAC;CAC1B,CAAC"}
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.enableTheming = void 0;
3
+ exports.theme = void 0;
4
4
  const bridge_1 = require("../bridge");
5
5
  const callBridge = (0, bridge_1.getCallBridge)();
6
- const enableTheming = () => callBridge('enableTheming');
7
- exports.enableTheming = enableTheming;
6
+ exports.theme = {
7
+ enable: () => callBridge('enableTheming')
8
+ };
@@ -4,5 +4,8 @@ export declare const view: {
4
4
  refresh: (payload?: any) => Promise<void>;
5
5
  createHistory: () => Promise<import("history").History<unknown>>;
6
6
  getContext: () => Promise<import("../types").FullContext>;
7
+ theme: {
8
+ enable: () => Promise<void>;
9
+ };
7
10
  };
8
11
  //# sourceMappingURL=view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/view/view.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAC"}
1
+ {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/view/view.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI;;;;;;;;;CAOhB,CAAC"}
package/out/view/view.js CHANGED
@@ -6,10 +6,12 @@ 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 theme_1 = require("./theme");
9
10
  exports.view = {
10
11
  submit: submit_1.submit,
11
12
  close: close_1.close,
12
13
  refresh: refresh_1.refresh,
13
14
  createHistory: createHistory_1.createHistory,
14
- getContext: getContext_1.getContext
15
+ getContext: getContext_1.getContext,
16
+ theme: theme_1.theme
15
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bridge",
3
- "version": "2.5.4",
3
+ "version": "2.5.5-next.0",
4
4
  "description": "Forge bridge API for custom UI apps",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -1,2 +0,0 @@
1
- export declare const enableTheming: () => Promise<void>;
2
- //# sourceMappingURL=enableTheming.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enableTheming.d.ts","sourceRoot":"","sources":["../../src/enableTheming/enableTheming.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,QAAO,QAAQ,IAAI,CAAgC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './enableTheming';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enableTheming/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./enableTheming"), exports);