@sinm/kai 1.16.1 → 1.16.3
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/README.md +97 -198
- package/RELEASE_NOTES.md +56 -0
- package/dist-cli/kai-cli.js +17024 -8532
- package/dist-electron/main/plugin-host.js +18 -2
- package/dist-electron/renderer/assets/{ContextDraftStrip-DyidtNKX.js → ContextDraftStrip-D9Q7rgd9.js} +3 -3
- package/dist-electron/renderer/assets/{desktop-overlay-reason-DOOOru05.js → desktop-overlay-reason-BgrDF4DO.js} +52 -22
- package/dist-electron/renderer/assets/{index-rkJjipr_.js → index-BJPUCrdN.js} +7462 -7019
- package/dist-electron/renderer/assets/{index-Ds9SVVR0.js → index-DzZJWNOh.js} +2 -2
- package/dist-electron/renderer/assets/{index-BFNKFjuv.js → index-JieQdgYY.js} +33 -4
- package/dist-electron/renderer/assets/{index-DMpSWjb2.css → index-KuVblOas.css} +2674 -2182
- package/dist-electron/renderer/assets/{localUrlCodec-BgpHB7et.js → localUrlCodec-BuWQTdsR.js} +18 -2
- package/dist-electron/renderer/assets/{office-preview-Bi474exi.js → office-preview-BMWEQqup.js} +3 -3
- package/dist-electron/renderer/assets/{overlay-C9ghz5je.css → overlay-HLCSQ-UD.css} +29 -23
- package/dist-electron/renderer/assets/{overlay-BO-1tkat.js → overlay-KytgsaAW.js} +10 -10
- package/dist-electron/renderer/assets/{parser-Dpx0j1yO.js → parser-DtygcKZW.js} +1 -1
- package/dist-electron/renderer/assets/{spreadsheet-AxcoOBpQ.js → spreadsheet-ByVa4YNq.js} +3 -3
- package/dist-electron/renderer/index.html +4 -4
- package/dist-electron/renderer/office-preview.html +2 -2
- package/dist-electron/renderer/overlay.html +4 -4
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./spreadsheet-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./spreadsheet-ByVa4YNq.js","./preload-helper-DVzrZ_Op.js","./assets-tzxXyukA.js","./index-B5MYHOIO.js","./zoom-jYhmkcQX.js","./options-SsS0Y_ki.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { _ as __vitePreload } from "./preload-helper-DVzrZ_Op.js";
|
|
3
3
|
import { D as DEFAULT_RENDERER_DEFINITIONS } from "./index-B5MYHOIO.js";
|
|
4
4
|
const spreadsheetDefinition = DEFAULT_RENDERER_DEFINITIONS.find((definition) => definition.id === "spreadsheet-openxml");
|
|
@@ -9,7 +9,7 @@ if (!spreadsheetDefinition || !dbfDefinition) {
|
|
|
9
9
|
const spreadsheetRendererDefinition = spreadsheetDefinition;
|
|
10
10
|
const dbfRendererDefinition = dbfDefinition;
|
|
11
11
|
const renderFileViewerSpreadsheet = (buffer, target, type, context) => __vitePreload(async () => {
|
|
12
|
-
const { default: renderSpreadsheet } = await import("./spreadsheet-
|
|
12
|
+
const { default: renderSpreadsheet } = await import("./spreadsheet-ByVa4YNq.js").then((n) => n.s);
|
|
13
13
|
return { default: renderSpreadsheet };
|
|
14
14
|
}, true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0, import.meta.url).then(({ default: renderSpreadsheet }) => renderSpreadsheet(buffer, target, type, context));
|
|
15
15
|
({
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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
|
|
3
|
-
import { K as KAI_LOCAL_URL_PREFIX, a as KAI_URL_SCHEME, O as OFFICE_PREVIEW_FORMATS } from "./localUrlCodec-
|
|
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-BgrDF4DO.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 useShallow, K as usePluginPreviewerStore, N as useFileTreeStore, O as useRightDockLayout, Q as useRightDockWidthBounds, U as useResizablePanelWidth, V as useRightDockActiveView, W as useRightDockEntry, Y as useRightDockHost, Z as useTextSelectionQuote, _ as useClosableLayer, $ as pushClosableLayer, a0 as isPreviewableImage, a1 as isPreviewableAudio, a2 as isPreviewableVideo, a3 as Copy, a4 as copyToClipboard, a5 as Link, a6 as Globe, a7 as FolderOpen, a8 as PictureInPicture2, a9 as PanelRight, aa as RightDockActions, ab as QuoteSelectionButton, ac as CircleAlert, ad as FileTypeIcon, ae as DiffViewer, af as atomOneDark, ag as githubGist, ah as MarkdownMessage, ai as ContextMenu, aj as Eye, C as CodeXml, ak as Crosshair, al as ToolbarMoreMenu, am as TranslationDialog, an as ImageViewer, ao as RightPanelShell, ap as RIGHT_DOCK_WIDTH_STORAGE_VERSION, aq as closeTopmostClosableLayer, ar as saveLocalFileAsWithToast, as as Search, at as ChevronUp, au as ChevronDown, av as trackMessageActionClick, aw as buildCodeSelectionDraft, ax as formatFileQuoteText, ay as appendQuoteDraft, az as ClosableLayerProvider, aA as ChevronRight, aB as Folder, aC as tryOpenWithSystemApp } from "./index-BJPUCrdN.js";
|
|
3
|
+
import { K as KAI_LOCAL_URL_PREFIX, a as KAI_URL_SCHEME, O as OFFICE_PREVIEW_FORMATS } from "./localUrlCodec-BuWQTdsR.js";
|
|
4
4
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
5
5
|
import "./preload-helper-DVzrZ_Op.js";
|
|
6
6
|
const PICKABLE_OFFICE_PREVIEW_FORMATS = [
|
|
@@ -2427,7 +2427,36 @@ function FilePreviewDrawer() {
|
|
|
2427
2427
|
setMode,
|
|
2428
2428
|
refresh,
|
|
2429
2429
|
openSearch
|
|
2430
|
-
} = useFilePreviewStore(
|
|
2430
|
+
} = useFilePreviewStore(
|
|
2431
|
+
useShallow((s) => ({
|
|
2432
|
+
filePath: s.filePath,
|
|
2433
|
+
fileOpenOptions: s.fileOpenOptions,
|
|
2434
|
+
virtualTitle: s.virtualTitle,
|
|
2435
|
+
url: s.url,
|
|
2436
|
+
urlTitle: s.urlTitle,
|
|
2437
|
+
content: s.content,
|
|
2438
|
+
artifactDiffPatch: s.artifactDiffPatch,
|
|
2439
|
+
isText: s.isText,
|
|
2440
|
+
mimeType: s.mimeType,
|
|
2441
|
+
size: s.size,
|
|
2442
|
+
loading: s.loading,
|
|
2443
|
+
error: s.error,
|
|
2444
|
+
mode: s.mode,
|
|
2445
|
+
refreshVersion: s.refreshVersion,
|
|
2446
|
+
isOpen: s.isOpen,
|
|
2447
|
+
isClosing: s.isClosing,
|
|
2448
|
+
tooLarge: s.tooLarge,
|
|
2449
|
+
browseDir: s.browseDir,
|
|
2450
|
+
isSearchOpen: s.isSearchOpen,
|
|
2451
|
+
searchQuery: s.searchQuery,
|
|
2452
|
+
searchCaseSensitive: s.searchCaseSensitive,
|
|
2453
|
+
searchMatches: s.searchMatches,
|
|
2454
|
+
searchCurrentIndex: s.searchCurrentIndex,
|
|
2455
|
+
setMode: s.setMode,
|
|
2456
|
+
refresh: s.refresh,
|
|
2457
|
+
openSearch: s.openSearch
|
|
2458
|
+
}))
|
|
2459
|
+
);
|
|
2431
2460
|
const tabsBySession = useFilePreviewStore((s) => s.tabsBySession);
|
|
2432
2461
|
const activeTabId = useFilePreviewStore((s) => s.activeTabId);
|
|
2433
2462
|
const previewSessionId = useFilePreviewStore((s) => s.previewSessionId);
|