@forge/bridge 5.4.1 → 5.5.0-next.1
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 +12 -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/package.json +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @forge/bridge
|
|
2
2
|
|
|
3
|
+
## 5.5.0-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 185f844: Fix package exports
|
|
8
|
+
|
|
9
|
+
## 5.5.0-next.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 8e77d28: Add contextOverrides property to Realtime channel options
|
|
14
|
+
|
|
3
15
|
## 5.4.1
|
|
4
16
|
|
|
5
17
|
### 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bridge",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0-next.1",
|
|
4
4
|
"description": "Forge bridge API for custom UI apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -23,6 +23,16 @@
|
|
|
23
23
|
"isomorphic-fetch": "^3.0.0",
|
|
24
24
|
"jest-date-mock": "^1.0.10"
|
|
25
25
|
},
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./out/index.d.ts",
|
|
29
|
+
"default": "./out/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./realtime": {
|
|
32
|
+
"types": "./out/realtime/index.d.ts",
|
|
33
|
+
"default": "./out/realtime/index.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
26
36
|
"publishConfig": {
|
|
27
37
|
"registry": "https://packages.atlassian.com/api/npm/npm-public/"
|
|
28
38
|
}
|