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

@channel.io/app-sdk-wam-ui

v0.2.1

Published

UI components for Channel.io WAM — desk-consistent design patterns

Downloads

184

Readme

@channel.io/app-sdk-wam-ui

UI components for Channel.io WAM (Web App Module) development.

Build desk-consistent WAM interfaces without reinventing common patterns.

Installation

npm install @channel.io/app-sdk-wam-ui
# peer dependencies
npm install react @channel.io/bezier-react styled-components

Quick Start

import { WamThemeProvider, FormSection, FormRow, ToggleRow } from "@channel.io/app-sdk-wam-ui";
import { TextField } from "@channel.io/bezier-react";

function App() {
  return (
    <WamThemeProvider>
      <FormSection title="Notification Settings" description="Configure when to send alerts.">
        <FormRow label="Name">
          <TextField value={name} onChange={(e) => setName(e.target.value)} size="m" />
        </FormRow>
        <ToggleRow
          label="Enable"
          description="Turn this notification on or off."
          checked={enabled}
          onChange={setEnabled}
        />
      </FormSection>
    </WamThemeProvider>
  );
}

Components

Infrastructure

Components that solve common WAM boilerplate across all apps.

WamThemeProvider

Wraps your WAM with BezierAppProvider + ToastProvider, auto-detecting the theme from Channel.io desk.

<WamThemeProvider>
  <MyWidget />
</WamThemeProvider>

// Or override the theme
<WamThemeProvider theme="dark">
  <MyWidget />
</WamThemeProvider>

HeightSynchronizer

Automatically syncs iframe height with content using ResizeObserver + window.ChannelIOWam.setSize().

<HeightSynchronizer>
  <MyContent />
</HeightSynchronizer>

// Exclude specific routes from height sync
<HeightSynchronizer excludePaths={['/connect']} pathname={location.pathname}>
  <MyContent />
</HeightSynchronizer>

// Limit max height
<HeightSynchronizer maxHeight={600}>
  <MyContent />
</HeightSynchronizer>

ConfirmDialog

Desk-style confirmation dialog. Works standalone or with @ebay/nice-modal-react.

// Standalone
<ConfirmDialog
  show={isOpen}
  onHide={() => setIsOpen(false)}
  title="Delete this item?"
  description="This action cannot be undone."
  destructive
  confirmText="Delete"
  onConfirm={handleDelete}
/>;

// With NiceModal
import NiceModal, { useModal } from "@ebay/nice-modal-react";
import { ConfirmDialog } from "@channel.io/app-sdk-wam-ui";

const MyConfirm = NiceModal.create((props) => {
  const { visible, remove } = useModal();
  return <ConfirmDialog {...props} show={visible} onHide={remove} />;
});

LoadingPage / ErrorPage

Full-page loading spinner and error fallback.

if (loading) return <LoadingPage message="Loading data..." />;
if (error) return <ErrorPage error={error} onRetry={refetch} />;

Design

Desk-consistent UI patterns extracted from Channel.io desk pages. Ideal for new WAM apps and third-party developers.

FormSection

Groups form fields under a title with optional description.

<FormSection title="General" description="Basic settings for your integration.">
  {/* FormRow, ToggleRow, InputRow, etc. */}
</FormSection>

FormRow

Responsive label + field layout. Horizontal grid on wide viewports, vertical stack on narrow.

<FormRow label="API Key" description="Your secret API key.">
  <TextField value={apiKey} onChange={...} size="m" />
</FormRow>

InputRow / SelectRow / ToggleRow

Pre-composed FormRow variants for common field types.

<InputRow label="Webhook URL" value={url} onChange={setUrl} placeholder="https://..." />
<SelectRow label="Frequency" options={[...]} value={freq} onChange={setFreq} />
<ToggleRow label="Active" description="Enable this webhook." checked={active} onChange={setActive} />

EmptyState

Empty state display with icon, title, description, and optional action.

import { InboxIcon } from "@channel.io/bezier-icons";

<EmptyState
  icon={InboxIcon}
  title="No messages yet"
  description="Messages will appear here."
  action={{ text: "Refresh", onClick: refetch }}
/>;

Peer Dependencies

| Package | Version | | -------------------------- | -------- | | react | >=17.0.0 | | @channel.io/bezier-react | >=3.0.0 | | styled-components | >=6.0.0 |

Optional: @ebay/nice-modal-react >=1.0.0 (for ConfirmDialog NiceModal integration)

License

MIT