@sinm/kai 1.15.11 → 1.16.1

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.
@@ -1,12 +1,12 @@
1
- import { r as reactExports, j as jsxRuntimeExports, g as getTransport, f as resolveConnectionTarget, u as urlHostLabel, h as isBuiltinPreviewableExtension, n as normalizePreviewerExtension, d as describePluginPageOpenError, b as describePluginViewFailure, P as PluginViewHost, k as resolveLocalUrl, t as toLocalPathSegment, l as localHttpUrlToKaiUrl, m as buildDownloadUrl, o as buildOfficePreviewUrl } from "./desktop-overlay-reason-Cu5SZIyT.js";
2
- import { c as createLucideIcon, S as SyntaxHighlighter, d as styles, u as useTranslation, e as subscribeComposerAvailability, f as getComposerBlockedReason, s as subscribePreviewSelectionDrafts, g as getPreviewSelectionDrafts, t as toast, M as MAX_PREVIEW_SELECTION_DRAFTS, h as buildPreviewSelectionDraft, i as appendPreviewSelectionDraft, j as genId, k as ID_TYPE, l as usePopoverMenu, b as clsx, A as AppTooltip, m as reactDomExports, n as TriangleAlert, X, o as telemetry, L as LoaderCircle, p as useLayerAbove, D as Download, q as useEnclosingLayer, v as subscribeClosableLayers, R as RefreshCw, P as Pencil, w as isAbsoluteLocalPath, x as usePluginDisplayName, y as pluginDisplayFallbackName, z as ExternalLink, B as useTheme, F as useSessionStore, G as useActiveView, H as useFilePreviewStore, J as usePluginPreviewerStore, K as useFileTreeStore, N as useRightDockLayout, O as useRightDockWidthBounds, Q as useResizablePanelWidth, U as useRightDockActiveView, V as useRightDockEntry, W as useRightDockHost, Y as useTextSelectionQuote, Z as useClosableLayer, _ as pushClosableLayer, $ as isPreviewableImage, a0 as isPreviewableAudio, a1 as isPreviewableVideo, a2 as Copy, a3 as copyToClipboard, a4 as Link, a5 as Globe, a6 as FolderOpen, a7 as PictureInPicture2, a8 as PanelRight, a9 as RightDockActions, aa as QuoteSelectionButton, ab as CircleAlert, ac as FileTypeIcon, ad as DiffViewer, ae as atomOneDark, af as githubGist, ag as MarkdownMessage, ah as ContextMenu, ai as Eye, C as CodeXml, aj as Crosshair, ak as ToolbarMoreMenu, al as TranslationDialog, am as ImageViewer, an as RightPanelShell, ao as RIGHT_DOCK_WIDTH_STORAGE_VERSION, ap as closeTopmostClosableLayer, aq as saveLocalFileAsWithToast, ar as Search, as as ChevronUp, at as ChevronDown, au as trackMessageActionClick, av as buildCodeSelectionDraft, aw as formatFileQuoteText, ax as appendQuoteDraft, ay as ClosableLayerProvider, az as ChevronRight, aA as Folder, aB as tryOpenWithSystemApp } from "./index-DjGE39la.js";
3
- import { K as KAI_LOCAL_URL_PREFIX, a as KAI_URL_SCHEME, O as OFFICE_PREVIEW_FORMATS } from "./localUrlCodec-DzEsXobc.js";
1
+ import { r as reactExports, j as jsxRuntimeExports, g as getTransport, f as resolveConnectionTarget, u as urlHostLabel, h as isBuiltinPreviewableExtension, n as normalizePreviewerExtension, d as describePluginPageOpenError, b as describePluginViewFailure, P as PluginViewHost, k as resolveLocalUrl, t as toLocalPathSegment, l as localHttpUrlToKaiUrl, m as buildDownloadUrl, o as buildOfficePreviewUrl } from "./desktop-overlay-reason-DOOOru05.js";
2
+ import { c as createLucideIcon, S as SyntaxHighlighter, d as styles, u as useTranslation, e as subscribeComposerAvailability, f as getComposerBlockedReason, s as subscribePreviewSelectionDrafts, g as getPreviewSelectionDrafts, t as toast, M as MAX_PREVIEW_SELECTION_DRAFTS, h as buildPreviewSelectionDraft, i as appendPreviewSelectionDraft, j as genId, k as ID_TYPE, l as usePopoverMenu, b as clsx, A as AppTooltip, m as reactDomExports, n as TriangleAlert, X, o as telemetry, L as LoaderCircle, p as useLayerAbove, D as Download, q as useEnclosingLayer, v as subscribeClosableLayers, R as RefreshCw, P as Pencil, w as isAbsoluteLocalPath, x as usePluginDisplayName, y as pluginDisplayFallbackName, z as ExternalLink, B as useTheme, F as useSessionStore, G as useActiveView, H as useFilePreviewStore, J as usePluginPreviewerStore, K as useFileTreeStore, N as useRightDockLayout, O as useRightDockWidthBounds, Q as useResizablePanelWidth, U as useRightDockActiveView, V as useRightDockEntry, W as useRightDockHost, Y as useTextSelectionQuote, Z as useClosableLayer, _ as pushClosableLayer, $ as isPreviewableImage, a0 as isPreviewableAudio, a1 as isPreviewableVideo, a2 as Copy, a3 as copyToClipboard, a4 as Link, a5 as Globe, a6 as FolderOpen, a7 as PictureInPicture2, a8 as PanelRight, a9 as RightDockActions, aa as QuoteSelectionButton, ab as CircleAlert, ac as FileTypeIcon, ad as DiffViewer, ae as atomOneDark, af as githubGist, ag as MarkdownMessage, ah as ContextMenu, ai as Eye, C as CodeXml, aj as Crosshair, ak as ToolbarMoreMenu, al as TranslationDialog, am as ImageViewer, an as RightPanelShell, ao as RIGHT_DOCK_WIDTH_STORAGE_VERSION, ap as closeTopmostClosableLayer, aq as saveLocalFileAsWithToast, ar as Search, as as ChevronUp, at as ChevronDown, au as trackMessageActionClick, av as buildCodeSelectionDraft, aw as formatFileQuoteText, ax as appendQuoteDraft, ay as ClosableLayerProvider, az as ChevronRight, aA as Folder, aB as tryOpenWithSystemApp } from "./index-rkJjipr_.js";
3
+ import { K as KAI_LOCAL_URL_PREFIX, a as KAI_URL_SCHEME, O as OFFICE_PREVIEW_FORMATS } from "./localUrlCodec-BgpHB7et.js";
4
4
  import "./_commonjsHelpers-DWwsNxpa.js";
5
5
  import "./preload-helper-DVzrZ_Op.js";
6
6
  const PICKABLE_OFFICE_PREVIEW_FORMATS = [
7
7
  "docx",
8
8
  "pptx",
9
- // `office-preview-pdf-region.ts` 文件头)。它仍在这份清单里——清单回答的是「这个格式能不能指」,
9
+ // `office-preview-pdf-region.ts` 文件头)。它仍在这份清单里——清单回答的是「这个格式能不能指」,不回答「用哪种手势」。
10
10
  "pdf",
11
11
  // 表格:手势又不同(选区驱动,见 `office-preview-xlsx.ts` 文件头)。同样只回答「能不能指」。
12
12
  // legacy `xls` 与 `csv` / `tsv` 共用同一个渲染器与同一条契约位,所以一起认领。
@@ -3773,7 +3773,7 @@ function FilePreviewDrawer() {
3773
3773
  minWidth: MIN_DRAWER_WIDTH,
3774
3774
  maxWidth: MAX_DRAWER_WIDTH,
3775
3775
  maxViewportRatio: DRAWER_MAX_VIEWPORT_RATIO,
3776
- // 同一个键换个承载面(并排 ⇄ 覆盖)来读:口径版本也得跟上,否则覆盖档读不出版本化记忆、
3776
+ // 同一个键换个承载面(并排 ⇄ 覆盖)来读:口径版本也得跟上,否则覆盖档读不出版本化记忆、退回静态缺省——切档时面板会跳宽。
3777
3777
  storageVersion: RIGHT_DOCK_WIDTH_STORAGE_VERSION
3778
3778
  },
3779
3779
  children: panelBody