@deepseek-ai/dsh-client-ui-sidebar-documentpreview 0.1.7-alpha.1 → 0.1.7-alpha.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.i18n.yaml +2 -2
- package/README.md +4 -2
- package/README.zh.md +4 -2
- package/lib/client.excel.js +15 -1
- package/lib/client.js +21 -4
- package/lib/types/client/excel/excel.d.ts +1 -0
- package/lib/types/client/excel/xlsx-archive.d.ts +2 -0
- package/package.json +23 -23
package/lib/client.js
CHANGED
|
@@ -1544,16 +1544,27 @@ window.__ModuleLoader__.load({
|
|
|
1544
1544
|
const copyLabel = t("code.copy");
|
|
1545
1545
|
const copiedLabel = t("code.copied");
|
|
1546
1546
|
const footnotes = t("footnotes");
|
|
1547
|
+
const codeLabel = t("codeBlock.title");
|
|
1548
|
+
const wrapLabel = t("codeBlock.wrap");
|
|
1549
|
+
const unwrapLabel = t("codeBlock.unwrap");
|
|
1547
1550
|
const labels = (0, react.useMemo)(() => ({
|
|
1548
1551
|
code: {
|
|
1549
1552
|
copyLabel,
|
|
1550
|
-
copiedLabel
|
|
1553
|
+
copiedLabel,
|
|
1554
|
+
toolbarLabels: {
|
|
1555
|
+
codeLabel,
|
|
1556
|
+
wrapLabel,
|
|
1557
|
+
unwrapLabel
|
|
1558
|
+
}
|
|
1551
1559
|
},
|
|
1552
1560
|
footnotes
|
|
1553
1561
|
}), [
|
|
1554
1562
|
copyLabel,
|
|
1555
1563
|
copiedLabel,
|
|
1556
|
-
footnotes
|
|
1564
|
+
footnotes,
|
|
1565
|
+
codeLabel,
|
|
1566
|
+
wrapLabel,
|
|
1567
|
+
unwrapLabel
|
|
1557
1568
|
]);
|
|
1558
1569
|
if (content.kind !== "text") return null;
|
|
1559
1570
|
return (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -4990,7 +5001,7 @@ document.open();document.write(html);document.close();
|
|
|
4990
5001
|
}
|
|
4991
5002
|
//#endregion
|
|
4992
5003
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-sidebar-documentpreview/src/client/code/CodeBody.module.css.mjs
|
|
4993
|
-
const css$2 = ".Java6a_renderer{white-space:normal;flex-direction:column;flex:auto;width:100%;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.Java6a_renderer .Java6a_code{--dsl-code-block-border-radius:0px;--dsl-code-block-line-white-space:pre;--dsl-code-block-background:transparent;flex-direction:column;flex:auto;min-width:0;height:100%;min-height:0;margin:0;display:flex;position:static}.Java6a_renderer .Java6a_code>[data-code-block-content]{flex:auto;min-width:0;min-height:0;display:block;position:relative;overflow:auto}.Java6a_renderer .Java6a_code>[data-code-block-content]::-webkit-scrollbar-track{margin:2px}.Java6a_renderer .Java6a_code pre{box-sizing:border-box;white-space:pre;word-break:normal;overflow-wrap:normal;min-width:100%;overflow:visible}.Java6a_renderer[data-wrap=true] .Java6a_code{--dsl-code-block-line-white-space:pre-wrap}.Java6a_renderer[data-wrap=true] .Java6a_code pre{white-space:pre-wrap;overflow-wrap:anywhere}";
|
|
5004
|
+
const css$2 = ".Java6a_renderer{white-space:normal;flex-direction:column;flex:auto;width:100%;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.Java6a_renderer .Java6a_code{--dsl-code-block-border-radius:0px;--dsl-code-block-line-white-space:pre;--dsl-code-block-background:transparent;flex-direction:column;flex:auto;min-width:0;height:100%;min-height:0;margin:0;display:flex;position:static}.Java6a_renderer .Java6a_code>[data-code-block-content]{flex:auto;min-width:0;min-height:0;display:block;position:relative;overflow:auto}.Java6a_renderer .Java6a_code>[data-code-block-content]::-webkit-scrollbar-track{margin:2px}.Java6a_renderer .Java6a_code pre{box-sizing:border-box;white-space:pre;word-break:normal;overflow-wrap:normal;min-width:100%;padding:16px;overflow:visible}.Java6a_renderer[data-wrap=true] .Java6a_code{--dsl-code-block-line-white-space:pre-wrap}.Java6a_renderer[data-wrap=true] .Java6a_code pre{white-space:pre-wrap;overflow-wrap:anywhere}";
|
|
4994
5005
|
const tagId$2 = "@deepseek-ai/dsh-client-ui-sidebar-documentpreview/CodeBody.module.css";
|
|
4995
5006
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
4996
5007
|
const tag = document.createElement("style");
|
|
@@ -5021,9 +5032,15 @@ document.open();document.write(html);document.close();
|
|
|
5021
5032
|
code: content.text,
|
|
5022
5033
|
lang: language,
|
|
5023
5034
|
streaming: !content.eof,
|
|
5035
|
+
wrap,
|
|
5024
5036
|
lineNumbers: true,
|
|
5025
5037
|
copyLabel: t("copy"),
|
|
5026
|
-
copiedLabel: t("copied")
|
|
5038
|
+
copiedLabel: t("copied"),
|
|
5039
|
+
toolbarLabels: {
|
|
5040
|
+
codeLabel: t("codeBlock.title"),
|
|
5041
|
+
wrapLabel: t("codeBlock.wrap"),
|
|
5042
|
+
unwrapLabel: t("codeBlock.unwrap")
|
|
5043
|
+
}
|
|
5027
5044
|
})
|
|
5028
5045
|
});
|
|
5029
5046
|
}
|
|
@@ -3,6 +3,7 @@ import { type ReactNode } from 'react';
|
|
|
3
3
|
import type { LoadedExcelBodyProps } from './LazyExcelBody.tsx';
|
|
4
4
|
/**
|
|
5
5
|
* Display stored spreadsheet values and formats without editing or recalculation.
|
|
6
|
+
* Keep the mounted workbook sized to its preview pane.
|
|
6
7
|
* @param props - Complete workbook bytes, limits, and locale.
|
|
7
8
|
* @returns An isolated spreadsheet surface with cancellable loading.
|
|
8
9
|
*/
|
|
@@ -4,9 +4,11 @@ export declare class XlsxPreviewArchive {
|
|
|
4
4
|
/** Detected workbook content that the preview does not display. */
|
|
5
5
|
readonly unsupportedFeatures: Set<"charts" | "images" | "shapes" | "conditionalFormatting">;
|
|
6
6
|
private readonly files;
|
|
7
|
+
private readonly parts;
|
|
7
8
|
/**
|
|
8
9
|
* Read an archive without modifying the borrowed source buffer.
|
|
9
10
|
* @param bytes - Complete XLSX source bytes.
|
|
11
|
+
* @throws When ZIP entries have ASCII case-equivalent names.
|
|
10
12
|
*/
|
|
11
13
|
constructor(bytes: Uint8Array<ArrayBuffer>);
|
|
12
14
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-sidebar-documentpreview",
|
|
3
3
|
"description": "Extensible Sidebar previews for Office documents, spreadsheets, Markdown, code, images, PDF, HTML, and plain text",
|
|
4
|
-
"version": "0.1.7-alpha.
|
|
4
|
+
"version": "0.1.7-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@deepseek-ai/cordis": "
|
|
45
|
+
"@deepseek-ai/cordis": "~4.0.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@fortune-sheet/core": "1.0.4",
|
|
@@ -61,26 +61,26 @@
|
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0",
|
|
63
63
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
|
|
64
|
-
"@deepseek-ai/cordis": "
|
|
65
|
-
"@deepseek-ai/dsh-api-
|
|
66
|
-
"@deepseek-ai/dsh-api-
|
|
67
|
-
"@deepseek-ai/dsh-
|
|
68
|
-
"@deepseek-ai/dsh-
|
|
69
|
-
"@deepseek-ai/dsh-client-locale": "
|
|
70
|
-
"@deepseek-ai/dsh-client-resources": "
|
|
71
|
-
"@deepseek-ai/dsh-client-store": "
|
|
72
|
-
"@deepseek-ai/dsh-client-test-runtime": "
|
|
73
|
-
"@deepseek-ai/dsh-client-ui-
|
|
74
|
-
"@deepseek-ai/dsh-client-ui-
|
|
75
|
-
"@deepseek-ai/dsh-client-ui-
|
|
76
|
-
"@deepseek-ai/dsh-client-ui-session": "
|
|
77
|
-
"@deepseek-ai/dsh-client-ui-settings": "
|
|
78
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "
|
|
79
|
-
"@deepseek-ai/dsh-client-ui-slots": "
|
|
80
|
-
"@deepseek-ai/dsh-office-to-pdf": "
|
|
81
|
-
"@deepseek-ai/dsh-host-webserver": "
|
|
82
|
-
"@deepseek-ai/dsh-session": "
|
|
83
|
-
"@deepseek-ai/dsh-util-workspace-path": "
|
|
64
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
65
|
+
"@deepseek-ai/dsh-api-gateway": "0.1.7-alpha.2",
|
|
66
|
+
"@deepseek-ai/dsh-api-remotes": "0.1.7-alpha.2",
|
|
67
|
+
"@deepseek-ai/dsh-api-workspace-files": "0.1.7-alpha.2",
|
|
68
|
+
"@deepseek-ai/dsh-client-connection": "0.1.7-alpha.2",
|
|
69
|
+
"@deepseek-ai/dsh-client-locale": "0.1.7-alpha.2",
|
|
70
|
+
"@deepseek-ai/dsh-client-resources": "0.1.7-alpha.2",
|
|
71
|
+
"@deepseek-ai/dsh-client-store": "0.1.7-alpha.2",
|
|
72
|
+
"@deepseek-ai/dsh-client-test-runtime": "0.1.7-alpha.2",
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.7-alpha.2",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-alpha.2",
|
|
75
|
+
"@deepseek-ai/dsh-client-ui-dockkit": "0.1.7-alpha.2",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-session": "0.1.7-alpha.2",
|
|
77
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.7-alpha.2",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.1.7-alpha.2",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.7-alpha.2",
|
|
80
|
+
"@deepseek-ai/dsh-office-to-pdf": "0.1.7-alpha.2",
|
|
81
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.7-alpha.2",
|
|
82
|
+
"@deepseek-ai/dsh-session": "0.1.7-alpha.2",
|
|
83
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.1.7-alpha.2"
|
|
84
84
|
},
|
|
85
85
|
"files": [
|
|
86
86
|
"lib/index.js",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"lib/types/**/*.d.ts"
|
|
90
90
|
],
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@deepseek-ai/schemastery": "
|
|
92
|
+
"@deepseek-ai/schemastery": "~3.18.4"
|
|
93
93
|
},
|
|
94
94
|
"scripts": {
|
|
95
95
|
"bundle": "tsdown",
|