npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@microsoft/omnichannel-chat-components

v1.2.0-main.5ebd4eb

Published

Microsoft Omnichannel Chat Components

Readme

Microsoft Omnichannel Chat Components

npm version npm downloads npm Release

@microsoft/omnichannel-chat-components provides the stateless React controls for a Dynamics 365 customer chat experience.

Use this package when your application owns the chat state and needs the Microsoft user interface controls.

Use @microsoft/omnichannel-chat-widget for an integrated widget that connects these controls to the Chat SDK.

Install

This release builds and tests with React 18. Install React and ReactDOM in the application.

For a production application, pin the exact stable package version:

npm install --save-exact @microsoft/[email protected] react@18 react-dom@18

You can also use Yarn:

yarn add --exact @microsoft/[email protected] react@18 react-dom@18

The package installs Fluent UI version 8 and its other runtime dependencies.

Basic use

Initialize the broadcast service one time before you render controls that publish events.

import * as React from "react";
import { createRoot } from "react-dom/client";
import {
    BroadcastServiceInitialize,
    ChatButton
} from "@microsoft/omnichannel-chat-components";

BroadcastServiceInitialize("customer-chat");

function App(): React.ReactElement {
    return (
        <ChatButton
            controlProps={{
                ariaLabel: "Start a chat",
                titleText: "Chat with us",
                subtitleText: "We are online",
                onClick: () => {
                    console.log("Start the chat");
                }
            }}
        />
    );
}

createRoot(document.getElementById("root")!).render(<App />);

The controls do not start or manage a chat session. Connect their callbacks and broadcast events to your application state.

Exported API

The package exports these control groups:

| Group | Exports | | --- | --- | | Chat shell | Header, Footer, ChatButton, NotificationPane | | Status and forms | ConfirmationPane, InputValidationPane, LoadingPane, OutOfOfficeHoursPane | | Surveys and proactive chat | PreChatSurveyPane, PostChatSurveyPane, ProactiveChatPane, ReconnectChatPane | | Calling | CallingContainer, CurrentCall, IncomingCall, Timer | | Services and utilities | BroadcastService, BroadcastServiceInitialize, ElementType, encodeComponentString, decodeComponentString | | Assets | The package exports the default chat, calling, notification, transcript, and status icons. |

Read the component guide for control properties and style examples.

The root component table links each control to its TypeScript interface.

Run Storybook locally to examine the available states:

yarn install --frozen-lockfile
yarn storybook

Package formats

The npm package contains these outputs:

| Consumer | Entry | | --- | --- | | ECMAScript modules | lib/esm/index.js | | CommonJS | lib/cjs/index.js | | TypeScript declarations | lib/types/index.d.ts |

Use the package root import. The exports map selects the correct JavaScript entry.

Accessibility

The controls use semantic HTML, ARIA attributes, focus management, and screen-reader announcements.

The repository includes unit, visual, axe, and Microsoft Accessibility Insights coverage. Automated scans do not replace manual assistive-technology tests.

Development

The repository uses the Node.js version in .nvmrc and Yarn 1.

Run these commands from chat-components:

yarn install --frozen-lockfile
yarn build
yarn test:unit
yarn test:cjs
yarn build-storybook
yarn test:visual --forceExit

Releases

Official Chat Components tags use c-v<version>. Starting with c-v1.2.0, each tag publishes the same tarball to npm and GitHub.

1.2.0 was released on 2026-08-18. Official support ends on 2027-08-18. See the root support table.

Support and security

This project uses the MIT License.