Khorsheed/dsh-plugins--packages-ui-content-preview ↗★ 0

@khorsheed/dsh-client-ui-content-preview

Shared client-side content-preview kernel for community file surfaces: the kind-union content pane (markdown / JSON / CSV / image / code, plus the Tier0/Tier1 sandboxed HTML render with its capability bridge), rendered-content search, and the per-file host-open chrome. Consumed at the SOURCE plane — each surface's tsdown client bundle inlines it — never mounted as a plugin row. 作为其他文件浏览插件的底层预览内核,不作为插件单独安装。

패키지
@khorsheed/dsh-client-ui-content-preview
호환성
미검증
Harness peer 범위
^0.1.0-rc.6
버전
0.1.1
라이선스
MIT
최근 업데이트
2026. 9. 28.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

使用

import { ContentPane, buildSrcDoc, attachBridge, structuredPreview, useRenderedSearch } from '@khorsheed/dsh-client-ui-content-preview/src/client/index.ts'

文案由调用方提供:内核不持有任何 locale 命名空间,所有字符串经调用方用自己字典构造的 PreviewTranslator 与 StructuredLabels 注入;PREVIEW_KEYS 常量实体化全部 key,消费方的包级测试断言每个 key 在自己的字典里可解析——缺 key 是测试失败,而不是中文 UI 里蹦英文。