Skip to content

Commit

Permalink
Chat-headless-react: add new declarations to index.ts (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbramblett authored Aug 18, 2023
1 parent 436421f commit d28b970
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions packages/chat-headless-react/etc/chat-headless-react.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ import { State } from '@yext/chat-headless';
// @public
export const ChatHeadlessContext: Context<ChatHeadless>;

// Warning: (ae-internal-missing-underscore) The name "ChatHeadlessInstanceProvider" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function ChatHeadlessInstanceProvider(props: ChatHeadlessInstanceProviderProps): JSX.Element;

// Warning: (ae-internal-missing-underscore) The name "ChatHeadlessInstanceProviderProps" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export type ChatHeadlessInstanceProviderProps = PropsWithChildren<{
deferRender?: boolean;
headless: ChatHeadless;
}>;

// @public
export function ChatHeadlessProvider(props: ChatHeadlessProviderProps): JSX.Element;

Expand Down
2 changes: 1 addition & 1 deletion packages/chat-headless-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/chat-headless-react",
"version": "0.5.9",
"version": "0.5.10",
"description": "the official React UI Bindings layer for Chat Headless",
"main": "./dist/commonjs/src/index.js",
"module": "./dist/esm/src/index.js",
Expand Down
2 changes: 2 additions & 0 deletions packages/chat-headless-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ export { ChatHeadlessContext } from "./ChatHeadlessContext";
export {
ChatHeadlessProvider,
ChatHeadlessProviderProps,
ChatHeadlessInstanceProvider,
ChatHeadlessInstanceProviderProps,
} from "./ChatHeadlessProvider";
export { useChatActions } from "./useChatActions";
export { useChatState, StateSelector } from "./useChatState";

0 comments on commit d28b970

Please sign in to comment.