@forge/bridge 5.4.1 → 5.5.0-experimental-6de6b19
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 +28 -0
- package/out/index.d.ts +1 -0
- package/out/index.d.ts.map +1 -1
- package/out/realtime/index.d.ts +2 -1
- package/out/realtime/index.d.ts.map +1 -1
- package/out/realtime/index.js +5 -2
- package/out/realtime/productContext.d.ts +7 -0
- package/out/realtime/productContext.d.ts.map +1 -0
- package/out/realtime/productContext.js +9 -0
- package/out/realtime/realtime.d.ts +10 -2
- package/out/realtime/realtime.d.ts.map +1 -1
- package/out/types.d.ts +8 -2
- package/out/types.d.ts.map +1 -1
- package/package.json +14 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @forge/bridge
|
|
2
2
|
|
|
3
|
+
## 5.5.0-experimental-6de6b19
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 01521ac: add usePermissions hook
|
|
8
|
+
|
|
9
|
+
## 5.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 8e77d28: Add contextOverrides property to Realtime channel options
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 185f844: Fix package exports
|
|
18
|
+
|
|
19
|
+
## 5.5.0-next.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 185f844: Fix package exports
|
|
24
|
+
|
|
25
|
+
## 5.5.0-next.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- 8e77d28: Add contextOverrides property to Realtime channel options
|
|
30
|
+
|
|
3
31
|
## 5.4.1
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/out/index.d.ts
CHANGED
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,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,YAAY,CAAC;AAC3B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,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,YAAY,CAAC;AAC3B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
package/out/realtime/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/realtime/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/realtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACzG,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC"}
|
package/out/realtime/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
exports.Jira = exports.realtime = void 0;
|
|
4
|
+
var realtime_1 = require("./realtime");
|
|
5
|
+
Object.defineProperty(exports, "realtime", { enumerable: true, get: function () { return realtime_1.realtime; } });
|
|
6
|
+
var productContext_1 = require("./productContext");
|
|
7
|
+
Object.defineProperty(exports, "Jira", { enumerable: true, get: function () { return productContext_1.Jira; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productContext.d.ts","sourceRoot":"","sources":["../../src/realtime/productContext.ts"],"names":[],"mappings":"AAEA,oBAAY,IAAI;IACd,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED,oBAAY,cAAc,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Jira = void 0;
|
|
4
|
+
var Jira;
|
|
5
|
+
(function (Jira) {
|
|
6
|
+
Jira["Board"] = "board";
|
|
7
|
+
Jira["Issue"] = "issue";
|
|
8
|
+
Jira["Project"] = "project";
|
|
9
|
+
})(Jira = exports.Jira || (exports.Jira = {}));
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
+
import { ProductContext } from './productContext';
|
|
1
2
|
export interface SubscriptionOptions {
|
|
2
3
|
replaySeconds?: number;
|
|
3
4
|
token?: string;
|
|
5
|
+
contextOverrides?: ProductContext[];
|
|
4
6
|
}
|
|
5
7
|
export interface PublishOptions {
|
|
6
8
|
token?: string;
|
|
9
|
+
contextOverrides?: ProductContext[];
|
|
10
|
+
}
|
|
11
|
+
export interface PublishResult {
|
|
12
|
+
eventId?: string | null;
|
|
13
|
+
eventTimestamp?: string | null;
|
|
14
|
+
errors?: string[];
|
|
7
15
|
}
|
|
8
16
|
interface Subscription {
|
|
9
17
|
unsubscribe: () => Promise<void>;
|
|
10
18
|
}
|
|
11
19
|
export declare const realtime: {
|
|
12
|
-
publish: (channel: string, payload: any, options?: PublishOptions) => Promise<
|
|
20
|
+
publish: (channel: string, payload: any, options?: PublishOptions) => Promise<PublishResult>;
|
|
13
21
|
subscribe: (channel: string, callback: (payload?: any) => any, options?: SubscriptionOptions) => Promise<Subscription>;
|
|
14
|
-
publishGlobal: (channel: string, payload: any, options?: PublishOptions) => Promise<
|
|
22
|
+
publishGlobal: (channel: string, payload: any, options?: PublishOptions) => Promise<PublishResult>;
|
|
15
23
|
subscribeGlobal: (channel: string, callback: (payload?: any) => any, options?: SubscriptionOptions) => Promise<Subscription>;
|
|
16
24
|
};
|
|
17
25
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime.d.ts","sourceRoot":"","sources":["../../src/realtime/realtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"realtime.d.ts","sourceRoot":"","sources":["../../src/realtime/realtime.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,cAAc,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,cAAc,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,UAAU,YAAY;IACpB,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAClC;AAiCD,eAAO,MAAM,QAAQ;uBA7BK,MAAM,WAAW,GAAG,YAAY,cAAc,KAAG,QAAQ,aAAa,CAAC;yBAKtF,MAAM,uBACM,GAAG,KAAK,GAAG,YACtB,mBAAmB,KAC5B,QAAQ,YAAY,CAAC;6BAIQ,MAAM,WAAW,GAAG,YAAY,cAAc,KAAG,QAAQ,aAAa,CAAC;+BAK5F,MAAM,uBACM,GAAG,KAAK,GAAG,YACtB,mBAAmB,KAC5B,QAAQ,YAAY,CAAC;CAcvB,CAAC"}
|
package/out/types.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type ForgeSupportedLocaleCode } from '@forge/i18n';
|
|
2
2
|
import { type ThemeState } from '@atlaskit/tokens';
|
|
3
|
+
import { type Scopes, type External } from '@forge/manifest';
|
|
3
4
|
export declare type InvokePayload = {
|
|
4
5
|
[key in number | string]: any;
|
|
5
6
|
};
|
|
6
|
-
export declare type InvokeResponse = Record<string,
|
|
7
|
+
export declare type InvokeResponse = Record<string, unknown> | void;
|
|
7
8
|
export declare type ProductFetchResponse = {
|
|
8
9
|
body?: string;
|
|
9
10
|
headers: {
|
|
@@ -37,9 +38,10 @@ export interface FullContext {
|
|
|
37
38
|
theme?: Partial<ThemeState> | null;
|
|
38
39
|
surfaceColor?: string | null;
|
|
39
40
|
userAccess?: UserAccessDetails;
|
|
41
|
+
permissions?: RuntimePermissions;
|
|
40
42
|
}
|
|
41
43
|
interface ExtensionData {
|
|
42
|
-
[k: string]:
|
|
44
|
+
[k: string]: unknown;
|
|
43
45
|
}
|
|
44
46
|
declare enum EcosystemLicenseMode {
|
|
45
47
|
USER_ACCESS = "USER_ACCESS"
|
|
@@ -59,5 +61,9 @@ export interface LicenseDetails {
|
|
|
59
61
|
export declare type Subscription = {
|
|
60
62
|
unsubscribe: () => void;
|
|
61
63
|
};
|
|
64
|
+
export interface RuntimePermissions {
|
|
65
|
+
scopes?: Scopes;
|
|
66
|
+
external?: External;
|
|
67
|
+
}
|
|
62
68
|
export {};
|
|
63
69
|
//# sourceMappingURL=types.d.ts.map
|
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;
|
|
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;AACnD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE7D,oBAAY,aAAa,GAAG;KACzB,GAAG,IAAI,MAAM,GAAG,MAAM,GAAG,GAAG;CAC9B,CAAC;AAEF,oBAAY,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;AAE5D,oBAAY,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,YAAY,CAAC,CAAC;AAEhD,oBAAY,oBAAoB;IAC9B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;AAED,aAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,eAAe,GAAG,MAAM,OAAO,oBAAoB,CAAC;AAEhE,MAAM,WAAW,WAAW;IAC1B,SA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AAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bridge",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0-experimental-6de6b19",
|
|
4
4
|
"description": "Forge bridge API for custom UI apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -14,15 +14,26 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@atlaskit/tokens": "^1.58.0",
|
|
17
|
-
"@types/history": "^4.7.11",
|
|
18
17
|
"@forge/i18n": "0.0.7",
|
|
19
|
-
"@forge/
|
|
18
|
+
"@forge/manifest": "10.6.0",
|
|
19
|
+
"@forge/resolver": "1.7.0",
|
|
20
|
+
"@types/history": "^4.7.11"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"history": "5.3.0",
|
|
23
24
|
"isomorphic-fetch": "^3.0.0",
|
|
24
25
|
"jest-date-mock": "^1.0.10"
|
|
25
26
|
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./out/index.d.ts",
|
|
30
|
+
"default": "./out/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./realtime": {
|
|
33
|
+
"types": "./out/realtime/index.d.ts",
|
|
34
|
+
"default": "./out/realtime/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
26
37
|
"publishConfig": {
|
|
27
38
|
"registry": "https://packages.atlassian.com/api/npm/npm-public/"
|
|
28
39
|
}
|