From 907eacaa6cc3882c9f83d543df8d804829b909d8 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 8 Oct 2021 14:41:28 +1100 Subject: [PATCH] Export more types from root --- packages/react-chat/src/hooks/useMessenger.ts | 2 +- packages/status-communities/src/index.ts | 21 +++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/packages/react-chat/src/hooks/useMessenger.ts b/packages/react-chat/src/hooks/useMessenger.ts index 5a0dd2f..c8dc47a 100644 --- a/packages/react-chat/src/hooks/useMessenger.ts +++ b/packages/react-chat/src/hooks/useMessenger.ts @@ -2,7 +2,7 @@ import { getBootstrapNodes, StoreCodec } from "js-waku"; import { useCallback, useEffect, useState } from "react"; import { Identity, Messenger } from "status-communities/dist/cjs"; -import { ApplicationMetadataMessage } from "status-communities/dist/cjs/application_metadata_message"; +import { ApplicationMetadataMessage } from "status-communities/dist/cjs"; import { uintToImgUrl } from "../helpers/uintToImgUrl"; import { ChatMessage } from "../models/ChatMessage"; diff --git a/packages/status-communities/src/index.ts b/packages/status-communities/src/index.ts index 5256c07..4a3027b 100644 --- a/packages/status-communities/src/index.ts +++ b/packages/status-communities/src/index.ts @@ -1,6 +1,15 @@ -import { Identity } from "./identity"; -import { Messenger } from "./messenger"; -import { ApplicationMetadataMessage } from "./wire/application_metadata_message"; -import { ChatMessage } from "./wire/chat_message"; - -export { Messenger, Identity, ApplicationMetadataMessage, ChatMessage }; +export { Identity } from "./identity"; +export { Messenger } from "./messenger"; +export { Community } from "./community"; +export { Chat } from "./chat"; +export * as utils from "./utils"; +export { ApplicationMetadataMessage } from "./wire/application_metadata_message"; +export { + ChatMessage, + ContentType, + Content, + StickerContent, + ImageContent, + AudioContent, + TextContent, +} from "./wire/chat_message";