Single-click original preview in the composer rail and chat history; remove control inside the thumbnail, revealed on hover/focus (always on touch); hidden-scrollbar rail overflow paged by edge arrows with wheel panning and end-reveal on add; image-intake rejections and prompt failures announce as a transient top-center toast instead of inline strips. The attachment atoms move to a new zero-cordis package @deepseek-ai/dsh-client-ui-attachment (rail, message gallery, lightbox), seeded as a platform module; the toast is a ui-primitives atom. Strings arrive as label props bridged from the conversation dictionary.
19 lines
739 B
TypeScript
19 lines
739 B
TypeScript
/**
|
|
* Shared browser platform modules. Seeding, bundling externals, and Vite
|
|
* aliases consume this list so their module identities cannot drift.
|
|
* @module @deepseek-ai/dsh-client-web/src/platform
|
|
*/
|
|
|
|
/** The module specifiers the shell shares into the frozen module table. */
|
|
export const PLATFORM_MODULES = [
|
|
'react', 'react/jsx-runtime', 'react-dom', 'react-dom/client', '@deepseek-ai/cordis',
|
|
'@deepseek-ai/dsh-client-ui-slots',
|
|
'@deepseek-ai/dsh-client-web-react',
|
|
'@deepseek-ai/dsh-client-ui-primitives',
|
|
'@deepseek-ai/dsh-client-ui-attachment',
|
|
'@deepseek-ai/dsh-client-schema-form',
|
|
] as const
|
|
|
|
/** One platform module specifier (a seed-table key). */
|
|
export type PlatformModule = (typeof PLATFORM_MODULES)[number]
|