@coolms/ui-react 0.1.0-alpha.27 → 0.1.0-alpha.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to `@coolms/ui-react` are listed here. Versions follow [semantic versioning](https://semver.org/).
4
4
 
5
+ ## 0.1.0-alpha.28 (2026-11-23)
6
+
7
+ Declarations that resolve under node16 and nodenext.
8
+
9
+ - The published declarations resolve under `moduleResolution` `node16` and `nodenext`: the declaration build uses NodeNext, so every relative import in the `.d.ts` files carries its `.js` extension. Before, an ESM project with nodenext resolution got every export as `any` (#53).
10
+ - `check:types-resolution`, in `verify`: the built package read by an ESM project with nodenext resolution and its declarations checked; any error, or an export that comes through as `any`, fails it.
11
+
5
12
  ## 0.1.0-alpha.27 (2026-11-23)
6
13
 
7
14
  Design tokens v0.19.0: two icon names drawn for the workspace, and the empty pane's icon.
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import type { Offer } from '../server/capability';
2
+ import type { Offer } from '../server/capability.js';
3
3
  export interface ListRow {
4
4
  readonly id: string;
5
5
  readonly primary: ReactNode;
@@ -1,7 +1,7 @@
1
1
  import { type ReactNode } from 'react';
2
- import { type MenuItem } from './Collections';
3
- import { type IconName } from './Icon';
4
- import { type FilterOption } from './Workspace';
2
+ import { type MenuItem } from './Collections.js';
3
+ import { type IconName } from './Icon.js';
4
+ import { type FilterOption } from './Workspace.js';
5
5
  /** The screen's floating primary action: one action, or a menu of declared entries. */
6
6
  export type ScreenPrimary = {
7
7
  readonly label: string;
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import { type IconName } from './Icon';
2
+ import { type IconName } from './Icon.js';
3
3
  export interface SignInFeature {
4
4
  readonly icon: IconName;
5
5
  readonly label: string;
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import { type IconName } from './Icon';
2
+ import { type IconName } from './Icon.js';
3
3
  export interface BadgeProps {
4
4
  readonly count: number;
5
5
  /** What the number counts, for a screen reader ("12 unread"). */
package/dist/index.d.ts CHANGED
@@ -1,22 +1,22 @@
1
- export { Button, type ButtonProps } from './components/Button';
2
- export { TextField, TextArea, Select, Toggle, writtenOut, type TextFieldProps, type TextFieldType, type TextAreaProps, type SelectProps, type SelectOption, type ToggleProps } from './components/Fields';
3
- export { Modal, ConfirmDialog, MODAL_CLOSE_MS, type ModalProps, type ConfirmDialogProps } from './components/Dialogs';
4
- export { Toast, ToastRegion, Loading, EmptyState, ErrorBanner, type ToastProps, type LoadingProps, type EmptyStateProps, type ErrorBannerProps } from './components/Status';
5
- export { State, STATE_DELAY_MS, type StateKind, type StatePlacement, type StateProps } from './components/State';
6
- export { FileViewer, type FileViewerAction, type FileViewerConflict, type FileViewerEditing, type FileViewerProps, type FileViewerSiblings, type FileViewerState } from './components/FileViewer';
7
- export { FilePicker, FilePickerDenied, type FilePickerBudget, type FilePickerChoice, type FilePickerEntry, type FilePickerLabels, type FilePickerPage, type FilePickerProps, type FilePickerSpace } from './components/FilePicker';
8
- export { PageHeader, TabStrip, Avatar, initialsOf, tintOf, type PageHeaderProps, type Tab, type TabStripProps, type AvatarProps, type AvatarPresence, type AvatarConnection } from './components/Structure';
9
- export { Icon, ICON_NAMES, BOOTSTRAP_ICONS, NamedIcon, iconForName, type IconName, type IconProps } from './components/Icon';
10
- export { AppShell, Badge, SearchField, FilterChips, SplitPanes, fitPanes, MailRow, ChatBubble, Composer, MAIL_ROW_LABELS, type MailRowLabels, type AppShellProps, type RailItem, type BadgeProps, type SearchFieldProps, type FilterChipsProps, type FilterOption, type SplitPanesProps, type PaneSize, type Pane, type MailRowProps, type ChatBubbleProps, type ComposerProps } from './components/Workspace';
11
- export { IncomingCall, CallPanel, CallBar, CALL_LABELS, type CallLabels, type IncomingCallProps, type CallPanelProps, type CallBarProps } from './components/Call';
12
- export { SignInLayout, SignInForm, SIGN_IN_LABELS, type SignInLabels, type SignInLayoutProps, type SignInFormProps, type SignInFeature } from './components/SignIn';
13
- export { List, ContextMenu, type ListRow, type ListProps, type MenuItem, type ContextMenuProps } from './components/Collections';
14
- export { PaneToolbar, type PaneToolbarAction, type PaneToolbarProps } from './components/PaneToolbar';
15
- export { Notification, type NotificationAction, type NotificationProps } from './components/Notification';
16
- export { offerFor, isCapability, type Capability, type Offer, type OfferOptions } from './server/capability';
17
- export { readRefusal, refusalText, type Refusal } from './server/refusal';
18
- export { useReread, rereadAll, type Reread } from './server/reread';
19
- export { readConflict, type Conflict } from './server/conflict';
20
- export { needsClientUpdate, versionBelow, CLIENT_UPDATE_REQUIRED } from './server/client-update';
21
- export { ScreenShell, type ScreenShellProps, type ScreenPrimary } from './components/ScreenShell';
22
- export { PULL_AT, usePull, usePullState, type PullState } from './components/pull';
1
+ export { Button, type ButtonProps } from './components/Button.js';
2
+ export { TextField, TextArea, Select, Toggle, writtenOut, type TextFieldProps, type TextFieldType, type TextAreaProps, type SelectProps, type SelectOption, type ToggleProps } from './components/Fields.js';
3
+ export { Modal, ConfirmDialog, MODAL_CLOSE_MS, type ModalProps, type ConfirmDialogProps } from './components/Dialogs.js';
4
+ export { Toast, ToastRegion, Loading, EmptyState, ErrorBanner, type ToastProps, type LoadingProps, type EmptyStateProps, type ErrorBannerProps } from './components/Status.js';
5
+ export { State, STATE_DELAY_MS, type StateKind, type StatePlacement, type StateProps } from './components/State.js';
6
+ export { FileViewer, type FileViewerAction, type FileViewerConflict, type FileViewerEditing, type FileViewerProps, type FileViewerSiblings, type FileViewerState } from './components/FileViewer.js';
7
+ export { FilePicker, FilePickerDenied, type FilePickerBudget, type FilePickerChoice, type FilePickerEntry, type FilePickerLabels, type FilePickerPage, type FilePickerProps, type FilePickerSpace } from './components/FilePicker.js';
8
+ export { PageHeader, TabStrip, Avatar, initialsOf, tintOf, type PageHeaderProps, type Tab, type TabStripProps, type AvatarProps, type AvatarPresence, type AvatarConnection } from './components/Structure.js';
9
+ export { Icon, ICON_NAMES, BOOTSTRAP_ICONS, NamedIcon, iconForName, type IconName, type IconProps } from './components/Icon.js';
10
+ export { AppShell, Badge, SearchField, FilterChips, SplitPanes, fitPanes, MailRow, ChatBubble, Composer, MAIL_ROW_LABELS, type MailRowLabels, type AppShellProps, type RailItem, type BadgeProps, type SearchFieldProps, type FilterChipsProps, type FilterOption, type SplitPanesProps, type PaneSize, type Pane, type MailRowProps, type ChatBubbleProps, type ComposerProps } from './components/Workspace.js';
11
+ export { IncomingCall, CallPanel, CallBar, CALL_LABELS, type CallLabels, type IncomingCallProps, type CallPanelProps, type CallBarProps } from './components/Call.js';
12
+ export { SignInLayout, SignInForm, SIGN_IN_LABELS, type SignInLabels, type SignInLayoutProps, type SignInFormProps, type SignInFeature } from './components/SignIn.js';
13
+ export { List, ContextMenu, type ListRow, type ListProps, type MenuItem, type ContextMenuProps } from './components/Collections.js';
14
+ export { PaneToolbar, type PaneToolbarAction, type PaneToolbarProps } from './components/PaneToolbar.js';
15
+ export { Notification, type NotificationAction, type NotificationProps } from './components/Notification.js';
16
+ export { offerFor, isCapability, type Capability, type Offer, type OfferOptions } from './server/capability.js';
17
+ export { readRefusal, refusalText, type Refusal } from './server/refusal.js';
18
+ export { useReread, rereadAll, type Reread } from './server/reread.js';
19
+ export { readConflict, type Conflict } from './server/conflict.js';
20
+ export { needsClientUpdate, versionBelow, CLIENT_UPDATE_REQUIRED } from './server/client-update.js';
21
+ export { ScreenShell, type ScreenShellProps, type ScreenPrimary } from './components/ScreenShell.js';
22
+ export { PULL_AT, usePull, usePullState, type PullState } from './components/pull.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolms/ui-react",
3
- "version": "0.1.0-alpha.27",
3
+ "version": "0.1.0-alpha.28",
4
4
  "description": "The CoolMS UI kit for React: the components of the CoolMS UI contract, styled by the CoolMS design tokens",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,9 +42,10 @@
42
42
  "demo": "vite --config demo/vite.config.ts",
43
43
  "demo:build": "vite build --config demo/vite.config.ts",
44
44
  "check:layout": "node tools/check-layout.mjs",
45
- "verify": "npm run tokens:check && npm run check && npm run typecheck && npm test && npm run build && npm run check:built && npm run demo:build && npm run check:layout",
45
+ "verify": "npm run tokens:check && npm run check && npm run typecheck && npm test && npm run build && npm run check:built && npm run check:types-resolution && npm run demo:build && npm run check:layout",
46
46
  "build": "vite build --config vite.lib.config.ts && tsc -p tsconfig.build.json",
47
47
  "check:built": "node tools/check-built.mjs",
48
+ "check:types-resolution": "node tools/check-types-resolution.mjs",
48
49
  "prepack": "npm run build"
49
50
  },
50
51
  "peerDependencies": {