@gpustack/core-ui 1.0.9 → 1.0.11
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/dist/{editor-wrap-DschAPhW.js → editor-wrap-DQdG3MHA.js} +1 -1
- package/dist/{excel-reader-jQgyThK1.js → excel-reader-CiDeab7_.js} +2 -2
- package/dist/excel.es.js +1 -1
- package/dist/file-readers.es.js +2 -2
- package/dist/{highlight-code-CxGYFG-K.js → highlight-code-BFmm0x52.js} +4 -4
- package/dist/index.css +1 -1
- package/dist/index.es.js +2673 -7706
- package/dist/{mammoth-Cz4NVm9J.js → mammoth-B7q05pQr.js} +1 -1
- package/dist/markdown.es.js +1 -1
- package/dist/src/lib/components/access/index.d.ts +7 -0
- package/dist/src/lib/components/index.d.ts +2 -0
- package/dist/src/lib/components/scroller-modal/gs-drawer.d.ts +2 -2
- package/dist/src/lib/components/sub-drawer/index.d.ts +25 -0
- package/dist/src/lib/context/CoreUIContext.d.ts +9 -0
- package/dist/src/lib/hooks/index.d.ts +1 -0
- package/dist/src/lib/hooks/useAccess.d.ts +2 -0
- package/dist/{useIntl-6aAPK8Pf.js → useIntl-CtHcH0Kd.js} +3 -3
- package/dist/{utils-8vGWRIPF.js → utils-CIKJeIzI.js} +2 -2
- package/dist/utils.es.js +3 -3
- package/dist/{word-reader-CIrD60Ns.js → word-reader-Chcn6YoS.js} +4 -4
- package/dist/{xlsx-CPuMg8xj.js → xlsx-DmWbdnhm.js} +1 -1
- package/dist/yaml-editor.es.js +2 -2
- package/package.json +1 -1
- /package/dist/{epubjs-BxcPGxCG.js → epubjs-DdxSv04h.js} +0 -0
- /package/dist/{jszip-CNVWBM0E.js → jszip-D1TpRGO6.js} +0 -0
- /package/dist/{pdfjs-dist-CO-ekNVq.js → pdfjs-dist-IXrW0F6n.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-gEudmnaM.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as t } from "./useIntl-CtHcH0Kd.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
import i from "styled-components";
|
|
@@ -5,7 +5,7 @@ function t(e) {
|
|
|
5
5
|
let r = new FileReader();
|
|
6
6
|
r.onload = async function(e) {
|
|
7
7
|
try {
|
|
8
|
-
let { default: n } = await import("./xlsx-
|
|
8
|
+
let { default: n } = await import("./xlsx-DmWbdnhm.js").then((e) => e.t), r = e.target.result, i = n.read(r, { type: "string" }), a = i.SheetNames[0];
|
|
9
9
|
if (!a) {
|
|
10
10
|
t("[]");
|
|
11
11
|
return;
|
|
@@ -24,7 +24,7 @@ function t(e) {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
function n({ sheets: t, fileName: n = "data.xlsx" }) {
|
|
27
|
-
import("./xlsx-
|
|
27
|
+
import("./xlsx-DmWbdnhm.js").then((e) => e.t).then(({ default: r }) => {
|
|
28
28
|
let i = r.utils.book_new();
|
|
29
29
|
t.forEach((e) => {
|
|
30
30
|
let { sheetName: t, jsonData: n, fields: a, fieldLabels: o, formatMap: s } = e, c = n.map((e) => {
|
package/dist/excel.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./excel-reader-
|
|
1
|
+
import { t as e } from "./excel-reader-CiDeab7_.js";
|
|
2
2
|
export { e as exportJsonToExcel };
|
package/dist/file-readers.es.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e } from "./excel-reader-
|
|
2
|
-
import { a as t, i as n, n as r, r as i, t as a } from "./word-reader-
|
|
1
|
+
import { n as e } from "./excel-reader-CiDeab7_.js";
|
|
2
|
+
import { a as t, i as n, n as r, r as i, t as a } from "./word-reader-Chcn6YoS.js";
|
|
3
3
|
export { t as readEpubContent, e as readExcelContent, r as readHtmlContent, n as readPDFContent, i as readPptxContent, a as readWordContent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-gEudmnaM.js";
|
|
2
|
-
import { n, r, t as i } from "./useIntl-
|
|
2
|
+
import { n, r, t as i } from "./useIntl-CtHcH0Kd.js";
|
|
3
3
|
import { t as a } from "./lodash-DVkZQU_K.js";
|
|
4
4
|
import o, { useCallback as s, useEffect as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
5
5
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -9,9 +9,9 @@ import x from "styled-components";
|
|
|
9
9
|
import { useMemoizedFn as S } from "ahooks";
|
|
10
10
|
import { useOverlayScrollbars as C } from "overlayscrollbars-react";
|
|
11
11
|
//#region src/lib/hooks/use-overlay-scroller.ts
|
|
12
|
-
var w = /* @__PURE__ */ e(
|
|
12
|
+
var w = /* @__PURE__ */ e(n(), 1), T = /* @__PURE__ */ e(a(), 1), E = 5e3;
|
|
13
13
|
function D(e) {
|
|
14
|
-
let { config: t } =
|
|
14
|
+
let { config: t } = r(), { theme: n } = t, { options: i, events: a, defer: s = !0 } = e || {}, { scrollbars: l, overflow: u, oppositeTheme: d } = i || {}, f = o.useRef(null), p = o.useRef(null), m = o.useRef(!1), h = o.useRef(null), g = o.useRef(!1), _ = o.useRef(null), [v, y] = C({
|
|
15
15
|
options: {
|
|
16
16
|
update: { debounce: 0 },
|
|
17
17
|
overflow: {
|
|
@@ -23,7 +23,7 @@ function D(e) {
|
|
|
23
23
|
autoHideDelay: 600,
|
|
24
24
|
clickScroll: "instant",
|
|
25
25
|
...l,
|
|
26
|
-
theme: l?.theme || (
|
|
26
|
+
theme: l?.theme || (n === "light" || !n ? "os-theme-dark" : "os-theme-light")
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
events: { ...a },
|