@caylex/shared

v0.1.4

Published

Shared UI primitives used by Caylex embeddable widgets (chat, permissions).

Readme

@caylex/shared

Shared UI primitives used by Caylex embeddable widgets (@caylex/chat-widget, @caylex/permissions-widget).

This package is consumed as a runtime dependency by the widget packages and is not normally installed directly. It is published so that the two widget packages can dedupe on a single shared bundle.

Installation

npm install @caylex/shared

Peer dependencies:

npm install react react-dom antd @ant-design/icons @emotion/react @emotion/styled react-markdown remark-gfm

What's inside

  • MessageBubble — chat message renderer with markdown + copy-to-clipboard
  • InputComposer — chat input box with send button
  • ServerImage, CircleImage, CircleStyled — avatar/icon containers
  • CopyIconButton — single-click copy-to-clipboard button
  • Icon — minimal static icon component (4 icons)
  • toolCallCards — visual cards for MCP tool calls (generic, checklist, sub-assistant)
  • hexLuminance — color-luminance helper for picking light vs dark text

License

Proprietary © Caylex