@novasamatech/host-container 0.6.2-0 → 0.6.3

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.
@@ -282,9 +282,9 @@ export function createContainer(provider) {
282
282
  });
283
283
  });
284
284
  },
285
- renderChatCustomMessage(messageType, payload, callback) {
285
+ renderChatCustomMessage({ messageId, messageType, payload }, callback) {
286
286
  init();
287
- return transport.subscribe('product_chat_custom_message_render_subscribe', enumValue('v1', { messageType, payload }), value => {
287
+ return transport.subscribe('product_chat_custom_message_render_subscribe', enumValue('v1', { messageId, messageType, payload }), value => {
288
288
  if (value.tag === 'v1') {
289
289
  callback(value.value);
290
290
  }
package/dist/types.d.ts CHANGED
@@ -73,7 +73,11 @@ export type Container = {
73
73
  handleChatListSubscribe: InferHandler<'v1', HostApiProtocol['host_chat_list_subscribe']>;
74
74
  handleChatPostMessage: InferHandler<'v1', HostApiProtocol['host_chat_post_message']>;
75
75
  handleChatActionSubscribe: InferHandler<'v1', HostApiProtocol['host_chat_action_subscribe']>;
76
- renderChatCustomMessage(messageType: string, payload: Uint8Array, callback: (node: CodecType<typeof CustomRendererNode>) => void): Subscription;
76
+ renderChatCustomMessage(params: {
77
+ messageId: string;
78
+ messageType: string;
79
+ payload: Uint8Array;
80
+ }, callback: (node: CodecType<typeof CustomRendererNode>) => void): Subscription;
77
81
  handleStatementStoreSubscribe: InferHandler<'v1', HostApiProtocol['remote_statement_store_subscribe']>;
78
82
  handleStatementStoreCreateProof: InferHandler<'v1', HostApiProtocol['remote_statement_store_create_proof']>;
79
83
  handleStatementStoreSubmit: InferHandler<'v1', HostApiProtocol['remote_statement_store_submit']>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@novasamatech/host-container",
3
3
  "type": "module",
4
- "version": "0.6.2-0",
4
+ "version": "0.6.3",
5
5
  "description": "Host container for hosting and managing products within the Polkadot ecosystem.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@polkadot-api/utils": "^0.2.0",
30
30
  "@polkadot-api/json-rpc-provider": "^0.0.4",
31
- "@novasamatech/host-api": "0.6.2-0",
31
+ "@novasamatech/host-api": "0.6.3",
32
32
  "nanoid": "5.1.6"
33
33
  },
34
34
  "devDependencies": {