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

cc-digital-interactions

v3.0.6-beta.1

Published

This package provides a React component for Webex Engage conversations and a helper to initialize API/auth configuration.

Readme

cc-digital-interactions — Consumer Guide

This package provides a React component for Webex Engage conversations and a helper to initialize API/auth configuration.

  • Default export: Engage (React component)
  • Named export: initializeApp(dataCenter, jwtToken)

Use:

import Engage, { initializeApp } from "cc-digital-interactions";

Install

Install the package and its peer dependencies.

npm install cc-digital-interactions react react-dom @momentum-ui/web-components
# or
yarn add cc-digital-interactions react react-dom @momentum-ui/web-components
# or
pnpm add cc-digital-interactions react react-dom @momentum-ui/web-components

Then register Momentum UI Web Components once in your app (usually at the root):

// e.g., src/main.tsx or src/index.tsx
import "@momentum-ui/web-components";

Quick Start (React)

import React, { useEffect } from "react";
import ReactDOM from "react-dom/client";
import Engage, { initializeApp } from "cc-digital-interactions";

function ConversationsView() {
  useEffect(() => {
    // 1) Initialize API endpoints + fetch access token using a short-lived JWT
    //    Call this once (e.g., on app start or when JWT rotates)
    initializeApp("qa", "<JWT_FROM_YOUR_BACKEND>");
  }, []);

  return (
    <Engage
      conversationId="<CONVERSATION_ID>"
      interactionId="<INTERACTION_ID_OR_EMPTY>"
      readonly={false}
      theme="LIGHT" // LIGHT | DARK
      isVisualRebrand={true} // optional UI style
      dataCenter="qa" // must match initializeApp's dataCenter
    />
  );
}

ReactDOM.createRoot(document.getElementById("root")!).render(
  <ConversationsView />,
);

API

  • initializeApp(dataCenter: string, jwtToken: string): Promise<void>

    • Sets the REST base URL and retrieves/stores an access token using your short-lived jwtToken.
    • Call before rendering Engage and whenever your JWT rotates.
  • Engage component props:

    • conversationId: string — Target conversation ID (or use interactionId).
    • interactionId: string — Optional interaction ID if available.
    • readonly: boolean — When true, disables authoring actions.
    • theme?: "LIGHT" | "DARK" — Visual theme; defaults to LIGHT.
    • isVisualRebrand?: boolean — Enables the newer visual look and feel.
    • dataCenter?: string — Selects the SignalR endpoint region; should match the value passed to initializeApp.

Supported dataCenter values

Use one of the following keys for both initializeApp(dataCenter, ...) and the Engage prop dataCenter:

  • intgus1
  • qa
  • prodanz1
  • prodca1
  • prodeu1
  • prodeu2
  • prodsg1
  • produs1

These map internally to REST and SignalR endpoints (see source config in src/app/apiConfig.ts).

Auth Model

  • Your backend issues a short-lived JWT per agent/session.
  • Call initializeApp(dataCenter, jwtToken) with that JWT to exchange for an access token used by the SDK.
  • Tokens and agent info are stored in session storage; the SDK refreshes as needed.

Notes & Troubleshooting

  • Make sure @momentum-ui/web-components is imported once at app startup; otherwise some UI elements may not render.
  • Always call initializeApp before first rendering Engage, and again if your JWT rotates or expires.
  • Provide either a valid conversationId or interactionId.
  • Ensure dataCenter is consistent between initializeApp and the Engage component to establish SignalR connections correctly.

TypeScript

This package ships with type definitions. Props for Engage are derived from the component’s TypeScript source in src/app/App.tsx.


For advanced usage (events, storage, or lower-level APIs), refer to the source modules within src/ in this repository.