@sinm/kai 1.16.1 → 1.16.2
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 +31 -0
- package/dist-cli/kai-cli.js +1129 -573
- package/dist-electron/main/plugin-host.js +10 -2
- package/dist-electron/renderer/assets/{ContextDraftStrip-DyidtNKX.js → ContextDraftStrip-CWXg4hmU.js} +3 -3
- package/dist-electron/renderer/assets/{desktop-overlay-reason-DOOOru05.js → desktop-overlay-reason-cfmtdoP4.js} +34 -18
- package/dist-electron/renderer/assets/{index-Ds9SVVR0.js → index-BBL4bwnW.js} +2 -2
- package/dist-electron/renderer/assets/{index-rkJjipr_.js → index-CObwhkO8.js} +6744 -6411
- package/dist-electron/renderer/assets/{index-DMpSWjb2.css → index-DSggA-B_.css} +2479 -2112
- package/dist-electron/renderer/assets/{index-BFNKFjuv.js → index-PLhxSKC5.js} +33 -4
- package/dist-electron/renderer/assets/{localUrlCodec-BgpHB7et.js → localUrlCodec-Bg7FpeI8.js} +10 -2
- package/dist-electron/renderer/assets/{office-preview-Bi474exi.js → office-preview-CyqocXBw.js} +3 -3
- package/dist-electron/renderer/assets/{overlay-BO-1tkat.js → overlay-D8OF8lDc.js} +10 -10
- package/dist-electron/renderer/assets/{overlay-C9ghz5je.css → overlay-HLCSQ-UD.css} +29 -23
- package/dist-electron/renderer/assets/{parser-Dpx0j1yO.js → parser-qf1_X8VO.js} +1 -1
- package/dist-electron/renderer/assets/{spreadsheet-AxcoOBpQ.js → spreadsheet-kLECX3ut.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 +1 -1
|
@@ -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-cfmtdoP4.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-CObwhkO8.js";
|
|
3
|
+
import { K as KAI_LOCAL_URL_PREFIX, a as KAI_URL_SCHEME, O as OFFICE_PREVIEW_FORMATS } from "./localUrlCodec-Bg7FpeI8.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);
|
package/dist-electron/renderer/assets/{localUrlCodec-BgpHB7et.js → localUrlCodec-Bg7FpeI8.js}
RENAMED
|
@@ -34,6 +34,9 @@ const IPC_TASK_NOTIFICATION_NAVIGATE = "TASK_NOTIFICATION:NAVIGATE";
|
|
|
34
34
|
const IPC_TASK_NOTIFICATION_RENDERER_READY = "TASK_NOTIFICATION:RENDERER_READY";
|
|
35
35
|
const IPC_TASK_NOTIFICATION_ACTIVE_SESSION = "TASK_NOTIFICATION:ACTIVE_SESSION";
|
|
36
36
|
const IPC_TASK_NOTIFICATION_TRACE = "TASK_NOTIFICATION:TRACE";
|
|
37
|
+
const IPC_TASK_UNREAD_REQUEST = "TASK_UNREAD:REQUEST";
|
|
38
|
+
const IPC_TASK_UNREAD_CLEAR = "TASK_UNREAD:CLEAR";
|
|
39
|
+
const IPC_TASK_UNREAD_CHANGED = "TASK_UNREAD:CHANGED";
|
|
37
40
|
const IPC_PLUGIN_HOST_START = "PLUGIN_HOST:START";
|
|
38
41
|
const IPC_PLUGIN_HOST_STATUS = "PLUGIN_HOST:STATUS";
|
|
39
42
|
const IPC_PLUGIN_HOST_EVENT = "PLUGIN_HOST:EVENT";
|
|
@@ -352,6 +355,7 @@ const IPC_CHANNEL_CLEAR_DELIVERY_RECOVERY = "CHANNEL:CLEAR_DELIVERY_RECOVERY";
|
|
|
352
355
|
const IPC_CHANNEL_ABANDON_ARCHIVED_ROUTE = "CHANNEL:ABANDON_ARCHIVED_ROUTE";
|
|
353
356
|
const IPC_TELEMETRY_TRACK = "TELEMETRY_TRACK";
|
|
354
357
|
const IPC_TELEMETRY_FEEDBACK = "TELEMETRY_FEEDBACK";
|
|
358
|
+
const IPC_TELEMETRY_FEEDBACK_THREAD = "TELEMETRY_FEEDBACK_THREAD";
|
|
355
359
|
const IPC_TELEMETRY_SET_ENABLED = "TELEMETRY_SET_ENABLED";
|
|
356
360
|
const IPC_TELEMETRY_IS_ENABLED = "TELEMETRY_IS_ENABLED";
|
|
357
361
|
const IPC_PTY_CREATE = "PTY:CREATE";
|
|
@@ -433,8 +437,8 @@ const IPC_ENDPOINTS = {
|
|
|
433
437
|
getMessageBlockSubtrees: { channel: IPC_GET_MESSAGE_BLOCK_SUBTREES_V2, hosts: ALL_HOSTS },
|
|
434
438
|
getSurfaceView: { channel: IPC_GET_SURFACE_VIEW, hosts: ALL_HOSTS },
|
|
435
439
|
exportMessageBlocks: { channel: IPC_EXPORT_MESSAGE_BLOCKS, hosts: ALL_HOSTS },
|
|
436
|
-
//
|
|
437
|
-
exportSessionEventLog: { channel: IPC_EXPORT_SESSION_EVENT_LOG, hosts:
|
|
440
|
+
// 同一入口两种出口:桌面选目录拿文件夹,远端由下载路由下发一个 zip(`GET /api/session-event-log/export/...`)。
|
|
441
|
+
exportSessionEventLog: { channel: IPC_EXPORT_SESSION_EVENT_LOG, hosts: ALL_HOSTS },
|
|
438
442
|
getMessage: { channel: IPC_GET_MESSAGE, hosts: ALL_HOSTS },
|
|
439
443
|
getLatestGoal: { channel: IPC_GOAL_GET_LATEST, hosts: ALL_HOSTS },
|
|
440
444
|
listDirectSessions: { channel: IPC_LIST_DIRECT_SESSIONS, hosts: ALL_HOSTS },
|
|
@@ -623,6 +627,9 @@ const IPC_ENDPOINTS = {
|
|
|
623
627
|
hosts: ALL_HOSTS
|
|
624
628
|
},
|
|
625
629
|
taskNotificationTrace: { channel: IPC_TASK_NOTIFICATION_TRACE, hosts: ALL_HOSTS },
|
|
630
|
+
requestRunUnread: { channel: IPC_TASK_UNREAD_REQUEST, hosts: ALL_HOSTS },
|
|
631
|
+
clearRunUnread: { channel: IPC_TASK_UNREAD_CLEAR, hosts: ALL_HOSTS },
|
|
632
|
+
onRunUnreadChanged: { channel: IPC_TASK_UNREAD_CHANGED, hosts: ALL_HOSTS },
|
|
626
633
|
remoteAccessStart: { channel: IPC_REMOTE_ACCESS_START, hosts: IPC_ONLY },
|
|
627
634
|
remoteAccessStop: { channel: IPC_REMOTE_ACCESS_STOP, hosts: IPC_ONLY },
|
|
628
635
|
remoteAccessRotate: { channel: IPC_REMOTE_ACCESS_ROTATE, hosts: IPC_ONLY },
|
|
@@ -710,6 +717,7 @@ const IPC_ENDPOINTS = {
|
|
|
710
717
|
pendingDiscard: { channel: IPC_MIGRATION_PENDING_DISCARD, hosts: ALL_HOSTS },
|
|
711
718
|
telemetryTrack: { channel: IPC_TELEMETRY_TRACK, hosts: ALL_HOSTS },
|
|
712
719
|
telemetryFeedback: { channel: IPC_TELEMETRY_FEEDBACK, hosts: ALL_HOSTS },
|
|
720
|
+
telemetryFeedbackThread: { channel: IPC_TELEMETRY_FEEDBACK_THREAD, hosts: ALL_HOSTS },
|
|
713
721
|
telemetrySetEnabled: { channel: IPC_TELEMETRY_SET_ENABLED, hosts: ALL_HOSTS },
|
|
714
722
|
telemetryIsEnabled: { channel: IPC_TELEMETRY_IS_ENABLED, hosts: ALL_HOSTS },
|
|
715
723
|
ptyCreate: { channel: IPC_PTY_CREATE, hosts: ALL_HOSTS },
|
package/dist-electron/renderer/assets/{office-preview-Bi474exi.js → office-preview-CyqocXBw.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DQKbw6RS.js","./preload-helper-DVzrZ_Op.js","./index-B5MYHOIO.js","./index-DJvBCnCx.js","./index-BOyfEjY-.js","./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DQKbw6RS.js","./preload-helper-DVzrZ_Op.js","./index-B5MYHOIO.js","./index-DJvBCnCx.js","./index-BOyfEjY-.js","./index-BBL4bwnW.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { _ as __vitePreload } from "./preload-helper-DVzrZ_Op.js";
|
|
3
|
-
import { O as OFFICE_PREVIEW_FORMATS, e as encodePathPreservingSlashes } from "./localUrlCodec-
|
|
3
|
+
import { O as OFFICE_PREVIEW_FORMATS, e as encodePathPreservingSlashes } from "./localUrlCodec-Bg7FpeI8.js";
|
|
4
4
|
const SHEET_PICK_CONTRACT = {
|
|
5
5
|
sheetName: "kaiSheetName",
|
|
6
6
|
range: "kaiSheetRange",
|
|
@@ -76,7 +76,7 @@ const loadRenderer = async (format) => {
|
|
|
76
76
|
return format === "ppt" ? renderFileViewerBinaryPresentation : renderFileViewerPresentation;
|
|
77
77
|
}
|
|
78
78
|
return (await __vitePreload(async () => {
|
|
79
|
-
const { renderFileViewerSpreadsheet } = await import("./index-
|
|
79
|
+
const { renderFileViewerSpreadsheet } = await import("./index-BBL4bwnW.js");
|
|
80
80
|
return { renderFileViewerSpreadsheet };
|
|
81
81
|
}, true ? __vite__mapDeps([5,1,2]) : void 0, import.meta.url)).renderFileViewerSpreadsheet;
|
|
82
82
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { i as instance, a as installOverlayTransport, c as clientExports, j as jsxRuntimeExports, r as reactExports, d as describePluginPageOpenError, b as describePluginViewFailure, e as describeDesktopOverlayReason, P as PluginViewHost } from "./desktop-overlay-reason-
|
|
1
|
+
import { i as instance, a as installOverlayTransport, c as clientExports, j as jsxRuntimeExports, r as reactExports, d as describePluginPageOpenError, b as describePluginViewFailure, e as describeDesktopOverlayReason, P as PluginViewHost } from "./desktop-overlay-reason-cfmtdoP4.js";
|
|
2
2
|
import "./_commonjsHelpers-DWwsNxpa.js";
|
|
3
|
-
import "./localUrlCodec-
|
|
4
|
-
const shell = "
|
|
5
|
-
const titleBar = "
|
|
6
|
-
const grip = "
|
|
7
|
-
const closeButton = "
|
|
8
|
-
const content = "
|
|
9
|
-
const footer = "
|
|
10
|
-
const failure = "
|
|
11
|
-
const retry = "
|
|
3
|
+
import "./localUrlCodec-Bg7FpeI8.js";
|
|
4
|
+
const shell = "_shell_1ojpz_9";
|
|
5
|
+
const titleBar = "_titleBar_1ojpz_25";
|
|
6
|
+
const grip = "_grip_1ojpz_51";
|
|
7
|
+
const closeButton = "_closeButton_1ojpz_69";
|
|
8
|
+
const content = "_content_1ojpz_91";
|
|
9
|
+
const footer = "_footer_1ojpz_102";
|
|
10
|
+
const failure = "_failure_1ojpz_136";
|
|
11
|
+
const retry = "_retry_1ojpz_147";
|
|
12
12
|
const styles = {
|
|
13
13
|
shell,
|
|
14
14
|
titleBar,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* 而 ✕ 与手柄要「默认不出现,指上来才出现」。
|
|
7
7
|
* 四周那圈透明边带不拖也不吃点击——外壳按指针位置开鼠标穿透,让点击落到下面的应用。
|
|
8
8
|
*/
|
|
9
|
-
.
|
|
9
|
+
._shell_1ojpz_9 {
|
|
10
10
|
position: relative;
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
@@ -20,13 +20,19 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/* 顶条:手写拖动的手柄。分给整只外壳的话,那圈边带就同时是拖动与穿透,两者只能留一个。
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
**不占布局**:浮在画面上方,否则它会在宠物头顶留一条空白带,整只窗口看着像个普通应用窗
|
|
24
|
+
(宠物没有标题栏,这是它像宠物的一部分)。高度仍是 28:10px 能拖但按不准。 */
|
|
25
|
+
._titleBar_1ojpz_25 {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
right: 0;
|
|
29
|
+
left: 0;
|
|
30
|
+
z-index: 2;
|
|
31
|
+
height: 28px;
|
|
26
32
|
display: flex;
|
|
27
33
|
align-items: center;
|
|
28
34
|
justify-content: flex-end;
|
|
29
|
-
padding
|
|
35
|
+
padding: 0 6px 0 8px;
|
|
30
36
|
|
|
31
37
|
/* 默认整条隐形,但**照样接收指针事件**:`pointer-events: none` 会让 hover 永不触发,
|
|
32
38
|
✕ 就再也叫不出来。隐形不等于不存在,这正是悬停揭示的代价。 */
|
|
@@ -36,19 +42,19 @@
|
|
|
36
42
|
}
|
|
37
43
|
|
|
38
44
|
/* 指上来、或键盘焦点落进 ✕ 时显形:摸不到的东西等于不存在。 */
|
|
39
|
-
.
|
|
40
|
-
.
|
|
45
|
+
._titleBar_1ojpz_25:focus-within,
|
|
46
|
+
._titleBar_1ojpz_25[data-chrome='true'] {
|
|
41
47
|
opacity: 1;
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
/* 拖动提示:三个点,跟着顶条一起出现,克制到不值得多摆三个元素。 */
|
|
45
|
-
.
|
|
51
|
+
._grip_1ojpz_51 {
|
|
46
52
|
margin-right: auto;
|
|
47
53
|
opacity: 0.38;
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
/* 一个点 + 两层阴影 = 三个点:拖动手柄不该为三个圆点多摆三个元素。 */
|
|
51
|
-
.
|
|
57
|
+
._grip_1ojpz_51::before {
|
|
52
58
|
content: '';
|
|
53
59
|
display: block;
|
|
54
60
|
width: 3px;
|
|
@@ -60,7 +66,7 @@
|
|
|
60
66
|
14px 0 0 rgb(255 255 255 / 92%);
|
|
61
67
|
}
|
|
62
68
|
|
|
63
|
-
.
|
|
69
|
+
._closeButton_1ojpz_69 {
|
|
64
70
|
width: 16px;
|
|
65
71
|
height: 16px;
|
|
66
72
|
line-height: 14px;
|
|
@@ -75,14 +81,14 @@
|
|
|
75
81
|
cursor: pointer;
|
|
76
82
|
}
|
|
77
83
|
|
|
78
|
-
.
|
|
79
|
-
.
|
|
84
|
+
._closeButton_1ojpz_69:hover,
|
|
85
|
+
._closeButton_1ojpz_69:focus-visible {
|
|
80
86
|
opacity: 1;
|
|
81
87
|
background: rgb(200 60 60 / 85%);
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
/* 画面本体:点击属于插件(宠物要能摸),所以既不是拖动区,也不在穿透区里。 */
|
|
85
|
-
.
|
|
91
|
+
._content_1ojpz_91 {
|
|
86
92
|
position: relative;
|
|
87
93
|
flex: 1 1 auto;
|
|
88
94
|
min-height: 0;
|
|
@@ -92,23 +98,23 @@
|
|
|
92
98
|
|
|
93
99
|
/* 搬窗时画面让位:指针一旦跑到画面上,事件就进了插件的 iframe、不再冒泡到外壳——
|
|
94
100
|
手快一点就是「拖着拖着窗口掉了」。拖动期间整只窗口都归外壳,顺手也断掉了搬窗途中去摸猫。 */
|
|
95
|
-
.
|
|
96
|
-
.
|
|
101
|
+
._shell_1ojpz_9[data-dragging='true'] ._content_1ojpz_91,
|
|
102
|
+
._shell_1ojpz_9[data-dragging='true'] ._footer_1ojpz_102 {
|
|
97
103
|
pointer-events: none;
|
|
98
104
|
}
|
|
99
105
|
|
|
100
106
|
/* 手闭着:与画面自己的 grabbing 同一个意思。 */
|
|
101
|
-
.
|
|
102
|
-
.
|
|
107
|
+
._shell_1ojpz_9[data-dragging='true'],
|
|
108
|
+
._shell_1ojpz_9[data-dragging='true'] ._titleBar_1ojpz_25 {
|
|
103
109
|
cursor: grabbing;
|
|
104
110
|
}
|
|
105
111
|
|
|
106
|
-
.
|
|
112
|
+
._contentEmpty_1ojpz_112 {
|
|
107
113
|
border-radius: 10px;
|
|
108
114
|
background: transparent;
|
|
109
115
|
}
|
|
110
116
|
|
|
111
|
-
.
|
|
117
|
+
._frame_1ojpz_117 {
|
|
112
118
|
display: block;
|
|
113
119
|
width: 100%;
|
|
114
120
|
height: 100%;
|
|
@@ -116,7 +122,7 @@
|
|
|
116
122
|
background: transparent;
|
|
117
123
|
}
|
|
118
124
|
|
|
119
|
-
.
|
|
125
|
+
._footer_1ojpz_102 {
|
|
120
126
|
flex: 0 0 auto;
|
|
121
127
|
display: flex;
|
|
122
128
|
align-items: center;
|
|
@@ -127,7 +133,7 @@
|
|
|
127
133
|
color: rgb(255 255 255 / 86%);
|
|
128
134
|
}
|
|
129
135
|
|
|
130
|
-
.
|
|
136
|
+
._failure_1ojpz_136 {
|
|
131
137
|
max-width: 100%;
|
|
132
138
|
padding: 1px 6px;
|
|
133
139
|
border-radius: 8px;
|
|
@@ -138,7 +144,7 @@
|
|
|
138
144
|
color: rgb(255 217 217);
|
|
139
145
|
}
|
|
140
146
|
|
|
141
|
-
.
|
|
147
|
+
._retry_1ojpz_147 {
|
|
142
148
|
padding: 1px 6px;
|
|
143
149
|
border: 1px solid rgb(255 255 255 / 35%);
|
|
144
150
|
border-radius: 8px;
|
|
@@ -148,6 +154,6 @@
|
|
|
148
154
|
cursor: pointer;
|
|
149
155
|
}
|
|
150
156
|
|
|
151
|
-
.
|
|
157
|
+
._retry_1ojpz_147:hover {
|
|
152
158
|
background: rgb(255 255 255 / 15%);
|
|
153
159
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UTIF-CVZ0V0ma.js","./_commonjsHelpers-DWwsNxpa.js","./_commonjs-dynamic-modules-TGKdzP3c.js","./index-C0ieAyi1.js","./office-preview-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UTIF-CVZ0V0ma.js","./_commonjsHelpers-DWwsNxpa.js","./_commonjs-dynamic-modules-TGKdzP3c.js","./index-C0ieAyi1.js","./office-preview-CyqocXBw.js","./preload-helper-DVzrZ_Op.js","./localUrlCodec-Bg7FpeI8.js","./office-preview-D1GRjX_y.css","./parser-qf1_X8VO.js","./jszip.min-CkAgz-ea.js","./index-B5MYHOIO.js","./assets-tzxXyukA.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 resolveFileViewerSpreadsheetWorkerUrl, r as resolveFileViewerRuntimeAssetBaseUrl } from "./assets-tzxXyukA.js";
|
|
4
4
|
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-B5MYHOIO.js";
|
|
@@ -2617,7 +2617,7 @@ const resolveEVirtTableStyleText = (documentRef) => {
|
|
|
2617
2617
|
const loadEVirtTable = async (documentRef) => {
|
|
2618
2618
|
const documents = collectEVirtTableStyleDocuments(documentRef);
|
|
2619
2619
|
const stylesBeforeImport = new Set(collectStyleElements(documents));
|
|
2620
|
-
const module = await __vitePreload(() => import("./office-preview-
|
|
2620
|
+
const module = await __vitePreload(() => import("./office-preview-CyqocXBw.js").then((n) => n.i), true ? __vite__mapDeps([4,5,6,7]) : void 0, import.meta.url);
|
|
2621
2621
|
const injectedStyles = collectStyleElements(documents).filter((style) => !stylesBeforeImport.has(style) && isEVirtTableStyleText(style.textContent || ""));
|
|
2622
2622
|
const injectedStyle = injectedStyles[injectedStyles.length - 1];
|
|
2623
2623
|
if (injectedStyle) {
|
|
@@ -2696,7 +2696,7 @@ class MainThreadSpreadsheetWorker {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
async loadParser() {
|
|
2698
2698
|
if (!this.parserPromise) {
|
|
2699
|
-
this.parserPromise = __vitePreload(() => import("./parser-
|
|
2699
|
+
this.parserPromise = __vitePreload(() => import("./parser-qf1_X8VO.js"), true ? __vite__mapDeps([8,9,1,2,10,5,11,12,13]) : void 0, import.meta.url);
|
|
2700
2700
|
}
|
|
2701
2701
|
const parser = await this.parserPromise;
|
|
2702
2702
|
if (!this.context) {
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>KAi</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-CObwhkO8.js"></script>
|
|
8
8
|
<link rel="modulepreload" crossorigin href="./assets/_commonjsHelpers-DWwsNxpa.js">
|
|
9
|
-
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="./assets/desktop-overlay-reason-
|
|
9
|
+
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-Bg7FpeI8.js">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="./assets/desktop-overlay-reason-cfmtdoP4.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-DVzrZ_Op.js">
|
|
12
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
12
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DSggA-B_.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<div id="root"></div>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
/>
|
|
10
10
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
11
11
|
<title>KAi Office Preview</title>
|
|
12
|
-
<script type="module" crossorigin src="./assets/office-preview-
|
|
12
|
+
<script type="module" crossorigin src="./assets/office-preview-CyqocXBw.js"></script>
|
|
13
13
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-DVzrZ_Op.js">
|
|
14
|
-
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-
|
|
14
|
+
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-Bg7FpeI8.js">
|
|
15
15
|
<link rel="stylesheet" crossorigin href="./assets/office-preview-D1GRjX_y.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
cursor: default;
|
|
32
32
|
}
|
|
33
33
|
</style>
|
|
34
|
-
<script type="module" crossorigin src="./assets/overlay-
|
|
34
|
+
<script type="module" crossorigin src="./assets/overlay-D8OF8lDc.js"></script>
|
|
35
35
|
<link rel="modulepreload" crossorigin href="./assets/_commonjsHelpers-DWwsNxpa.js">
|
|
36
|
-
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-
|
|
37
|
-
<link rel="modulepreload" crossorigin href="./assets/desktop-overlay-reason-
|
|
38
|
-
<link rel="stylesheet" crossorigin href="./assets/overlay-
|
|
36
|
+
<link rel="modulepreload" crossorigin href="./assets/localUrlCodec-Bg7FpeI8.js">
|
|
37
|
+
<link rel="modulepreload" crossorigin href="./assets/desktop-overlay-reason-cfmtdoP4.js">
|
|
38
|
+
<link rel="stylesheet" crossorigin href="./assets/overlay-HLCSQ-UD.css">
|
|
39
39
|
</head>
|
|
40
40
|
<body>
|
|
41
41
|
<div id="overlay-root"></div>
|