@novasamatech/product-sdk 0.6.3 → 0.6.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/dist/chat.d.ts +5 -1
- package/dist/chat.js +1 -1
- package/package.json +2 -2
package/dist/chat.d.ts
CHANGED
|
@@ -21,5 +21,9 @@ export declare const createProductChatManager: (transport?: Transport) => {
|
|
|
21
21
|
}>;
|
|
22
22
|
subscribeChatList(callback: (rooms: ChatRoom[]) => void): import("@novasamatech/host-api").Subscription;
|
|
23
23
|
subscribeAction(callback: (action: ReceivedChatAction) => void): import("@novasamatech/host-api").Subscription;
|
|
24
|
-
onCustomMessageRenderingRequest(callback: (
|
|
24
|
+
onCustomMessageRenderingRequest(callback: (params: {
|
|
25
|
+
messageId: string;
|
|
26
|
+
messageType: string;
|
|
27
|
+
payload: Uint8Array;
|
|
28
|
+
}, render: (node: CodecType<typeof CustomRendererNode>) => void) => VoidFunction): VoidFunction;
|
|
25
29
|
};
|
package/dist/chat.js
CHANGED
|
@@ -78,7 +78,7 @@ export const createProductChatManager = (transport = sandboxTransport) => {
|
|
|
78
78
|
onCustomMessageRenderingRequest(callback) {
|
|
79
79
|
return transport.handleSubscription('product_chat_custom_message_render_subscribe', (params, send, interrupt) => {
|
|
80
80
|
if (params.tag === 'v1') {
|
|
81
|
-
return callback(params.value
|
|
81
|
+
return callback(params.value, node => send(enumValue('v1', node)));
|
|
82
82
|
}
|
|
83
83
|
// unsupported version
|
|
84
84
|
interrupt();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novasamatech/product-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.4",
|
|
5
5
|
"description": "Polkadot product SDK: integrate and run your product inside Polkadot browser.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@polkadot-api/substrate-bindings": "^0.17.0",
|
|
31
31
|
"@polkadot-api/json-rpc-provider": "^0.0.4",
|
|
32
32
|
"@polkadot-api/json-rpc-provider-proxy": "^0.2.7",
|
|
33
|
-
"@novasamatech/host-api": "0.6.
|
|
33
|
+
"@novasamatech/host-api": "0.6.4"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|