@forge/bridge 5.8.0-next.2 → 5.8.0-next.4
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,19 @@
|
|
|
1
1
|
# @forge/bridge
|
|
2
2
|
|
|
3
|
+
## 5.8.0-next.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [78efec7]
|
|
8
|
+
- @forge/manifest@11.0.0-next.3
|
|
9
|
+
|
|
10
|
+
## 5.8.0-next.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [260eb24]
|
|
15
|
+
- @forge/manifest@11.0.0-next.2
|
|
16
|
+
|
|
3
17
|
## 5.8.0-next.2
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -17,10 +17,10 @@ interface Subscription {
|
|
|
17
17
|
unsubscribe: () => Promise<void>;
|
|
18
18
|
}
|
|
19
19
|
export declare const realtime: {
|
|
20
|
-
publish: (channel: string, payload:
|
|
21
|
-
subscribe: (channel: string, callback: (payload?:
|
|
22
|
-
publishGlobal: (channel: string, payload:
|
|
23
|
-
subscribeGlobal: (channel: string, callback: (payload?:
|
|
20
|
+
publish: <T extends Record<string, unknown>>(channel: string, payload: string | T, options?: PublishOptions) => Promise<PublishResult>;
|
|
21
|
+
subscribe: (channel: string, callback: <T_1 extends Record<string, unknown>>(payload: string | T_1, error?: Error) => any, options?: SubscriptionOptions) => Promise<Subscription>;
|
|
22
|
+
publishGlobal: <T_2 extends Record<string, unknown>>(channel: string, payload: string | T_2, options?: PublishOptions) => Promise<PublishResult>;
|
|
23
|
+
subscribeGlobal: (channel: string, callback: <T_3 extends Record<string, unknown>>(payload: string | T_3, error?: Error) => any, options?: SubscriptionOptions) => Promise<Subscription>;
|
|
24
24
|
};
|
|
25
25
|
export {};
|
|
26
26
|
//# sourceMappingURL=realtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AA6CD,eAAO,MAAM,QAAQ;0DAxCV,MAAM,iCAEL,cAAc,KACvB,QAAQ,aAAa,CAAC;yBAKd,MAAM,iFAC4D,KAAK,KAAK,GAAG,YAC9E,mBAAmB,KAC5B,QAAQ,YAAY,CAAC;kEASb,MAAM,mCAEL,cAAc,KACvB,QAAQ,aAAa,CAAC;+BAKd,MAAM,iFAC4D,KAAK,KAAK,GAAG,YAC9E,mBAAmB,KAC5B,QAAQ,YAAY,CAAC;CAcvB,CAAC"}
|
package/out/realtime/realtime.js
CHANGED
|
@@ -7,7 +7,11 @@ const publish = (channel, payload, options) => {
|
|
|
7
7
|
return callBridge('publishRealtimeChannel', { channelName: channel, eventPayload: payload, options });
|
|
8
8
|
};
|
|
9
9
|
const subscribe = (channel, callback, options) => {
|
|
10
|
-
return callBridge('subscribeRealtimeChannel', {
|
|
10
|
+
return callBridge('subscribeRealtimeChannel', {
|
|
11
|
+
channelName: channel,
|
|
12
|
+
onEvent: callback,
|
|
13
|
+
options
|
|
14
|
+
});
|
|
11
15
|
};
|
|
12
16
|
const publishGlobal = (channel, payload, options) => {
|
|
13
17
|
return callBridge('publishRealtimeChannel', { channelName: channel, eventPayload: payload, options, isGlobal: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bridge",
|
|
3
|
-
"version": "5.8.0-next.
|
|
3
|
+
"version": "5.8.0-next.4",
|
|
4
4
|
"description": "Forge bridge API for custom UI apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@forge/resolver": "1.7.1",
|
|
19
19
|
"@statsig/js-client": "3.18.2",
|
|
20
20
|
"@types/history": "^4.7.11",
|
|
21
|
-
"@forge/manifest": "11.0.0-next.
|
|
21
|
+
"@forge/manifest": "11.0.0-next.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"history": "5.3.0",
|