@gpustack/core-ui 1.0.7 → 1.0.8
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-DBTG5A-7.js → editor-wrap-DschAPhW.js} +2 -2
- package/dist/{epubjs-C7q2NtLD.js → epubjs-BxcPGxCG.js} +11 -8
- package/dist/{excel-reader-B0E9DWVT.js → excel-reader-jQgyThK1.js} +2 -2
- package/dist/excel.es.js +1 -1
- package/dist/file-readers.es.js +2 -2
- package/dist/{highlight-code-C6xOjDyX.js → highlight-code-CxGYFG-K.js} +11 -52
- package/dist/index.css +1 -1
- package/dist/index.es.js +7809 -2630
- package/dist/{jszip-aevhPAHa.js → jszip-CNVWBM0E.js} +1 -1
- package/dist/{lodash-k2j6dYGv.js → lodash-DVkZQU_K.js} +3 -2
- package/dist/{mammoth-vi3pqzr_.js → mammoth-Cz4NVm9J.js} +1100 -1052
- package/dist/markdown.es.js +3438 -3380
- package/dist/{pdfjs-dist-zGGfit5L.js → pdfjs-dist-CO-ekNVq.js} +16 -11
- package/dist/{rolldown-runtime-BETGA6I9.js → rolldown-runtime-gEudmnaM.js} +1 -1
- package/dist/src/lib/components/icon-font/icons.d.ts +13 -13
- package/dist/src/lib/components/index.d.ts +1 -0
- package/dist/src/lib/components/page-container/index.d.ts +15 -0
- package/dist/{useIntl-Ch0EABFx.js → useIntl-6aAPK8Pf.js} +1 -1
- package/dist/{utils-CAmt8TVf.js → utils-8vGWRIPF.js} +4 -4
- package/dist/utils.es.js +3 -3
- package/dist/{word-reader-B8l8Mmvn.js → word-reader-CIrD60Ns.js} +5 -5
- package/dist/{xlsx-BxM-6u7U.js → xlsx-CPuMg8xj.js} +1 -1
- package/dist/yaml-editor.es.js +2 -2
- package/package.json +3 -1
- package/dist/lib-CYhlAgFY.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as e } from "./rolldown-runtime-
|
|
2
|
-
import { r as t } from "./useIntl-
|
|
1
|
+
import { o as e } from "./rolldown-runtime-gEudmnaM.js";
|
|
2
|
+
import { r as t } from "./useIntl-6aAPK8Pf.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, o as t, r as n, t as r } from "./rolldown-runtime-
|
|
1
|
+
import { i as e, o as t, r as n, t as r } from "./rolldown-runtime-gEudmnaM.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/type@2.7.3/node_modules/type/value/is.js
|
|
3
3
|
var i = /* @__PURE__ */ r(((e, t) => {
|
|
4
4
|
var n = void 0;
|
|
@@ -4404,8 +4404,8 @@ var Re = class {
|
|
|
4404
4404
|
render(e) {
|
|
4405
4405
|
var t = new Y(), n = t.promise;
|
|
4406
4406
|
return this.output, this.load(e).then(function(e) {
|
|
4407
|
-
var t = (typeof navigator < "u" && navigator.userAgent || "").indexOf("Trident") >= 0;
|
|
4408
|
-
return this.output =
|
|
4407
|
+
var t = (typeof navigator < "u" && navigator.userAgent || "").indexOf("Trident") >= 0, n = new (typeof XMLSerializer > "u" || t ? ee.DOMParser : XMLSerializer)();
|
|
4408
|
+
return this.output = n.serializeToString(e), this.output;
|
|
4409
4409
|
}.bind(this)).then(function() {
|
|
4410
4410
|
return this.hooks.serialize.trigger(this.output, this);
|
|
4411
4411
|
}.bind(this)).then(function() {
|
|
@@ -4886,7 +4886,9 @@ var Ue = class {
|
|
|
4886
4886
|
return n && n.childNodes.length ? n.childNodes[0].nodeValue : "";
|
|
4887
4887
|
}
|
|
4888
4888
|
load(e) {
|
|
4889
|
-
|
|
4889
|
+
this.metadata = e.metadata;
|
|
4890
|
+
let t = e.readingOrder || e.spine;
|
|
4891
|
+
return this.spine = t.map((e, t) => (e.index = t, e.linear = e.linear || "yes", e)), e.resources.forEach((e, t) => {
|
|
4890
4892
|
this.manifest[t] = e, e.rel && e.rel[0] === "cover" && (this.coverPath = e.href);
|
|
4891
4893
|
}), this.spineNodeIndex = 0, this.toc = e.toc.map((e, t) => (e.label = e.title, e)), {
|
|
4892
4894
|
metadata: this.metadata,
|
|
@@ -12344,9 +12346,10 @@ while (r === s[++a] && r === s[++a] && r === s[++a] && r === s[++a] && r === s[+
|
|
|
12344
12346
|
return n();
|
|
12345
12347
|
};
|
|
12346
12348
|
}
|
|
12347
|
-
|
|
12349
|
+
var c = this._driverSet === null ? l.resolve() : this._driverSet.catch(function() {
|
|
12348
12350
|
return l.resolve();
|
|
12349
|
-
})
|
|
12351
|
+
});
|
|
12352
|
+
return this._driverSet = c.then(function() {
|
|
12350
12353
|
var e = i[0];
|
|
12351
12354
|
return r._dbInfo = null, r._ready = null, r.getDriver(e).then(function(e) {
|
|
12352
12355
|
r._driver = e._driver, a(), r._wrapLibraryMethodsWithReady(), r._initDriver = s(i);
|
|
@@ -12635,8 +12638,8 @@ var Ut = class {
|
|
|
12635
12638
|
return this.archive = new Bt(), this.archive.open(e, t);
|
|
12636
12639
|
}
|
|
12637
12640
|
store(e) {
|
|
12638
|
-
let t = this.settings.replacements && this.settings.replacements !== "none", n = this.url;
|
|
12639
|
-
return this.storage = new Ht(e,
|
|
12641
|
+
let t = this.settings.replacements && this.settings.replacements !== "none", n = this.url, r = this.settings.requestMethod || Le.bind(this);
|
|
12642
|
+
return this.storage = new Ht(e, r, this.resolve.bind(this)), this.request = this.storage.request.bind(this.storage), this.opened.then(() => {
|
|
12640
12643
|
this.archived && (this.storage.requester = this.archive.request.bind(this.archive));
|
|
12641
12644
|
let e = (e, t) => {
|
|
12642
12645
|
t.output = this.resources.substitute(e, t.url);
|
|
@@ -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-CPuMg8xj.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-CPuMg8xj.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-jQgyThK1.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-jQgyThK1.js";
|
|
2
|
+
import { a as t, i as n, n as r, r as i, t as a } from "./word-reader-CIrD60Ns.js";
|
|
3
3
|
export { t as readEpubContent, e as readExcelContent, r as readHtmlContent, n as readPDFContent, i as readPptxContent, a as readWordContent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as e, t } from "./rolldown-runtime-
|
|
2
|
-
import { n, r, t as i } from "./useIntl-
|
|
3
|
-
import { t as a } from "./lodash-
|
|
1
|
+
import { o as e, t } from "./rolldown-runtime-gEudmnaM.js";
|
|
2
|
+
import { n, r, t as i } from "./useIntl-6aAPK8Pf.js";
|
|
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";
|
|
6
6
|
import { CheckCircleFilled as m, CloseOutlined as h, CopyOutlined as g } from "@ant-design/icons";
|
|
@@ -657,7 +657,9 @@ var O = { wrapper: "index-module__wrapper___AP3Au" }, k = ({ children: e, maxHei
|
|
|
657
657
|
t.position = this.position++, this.matchIndexes[this.matchAt] = t, this.regexes.push([t, e]), this.matchAt += b(e) + 1;
|
|
658
658
|
}
|
|
659
659
|
compile() {
|
|
660
|
-
this.regexes.length === 0 && (this.exec = () => null)
|
|
660
|
+
this.regexes.length === 0 && (this.exec = () => null);
|
|
661
|
+
let e = this.regexes.map((e) => e[1]);
|
|
662
|
+
this.matcherRe = t(C(e, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
661
663
|
}
|
|
662
664
|
exec(e) {
|
|
663
665
|
this.matcherRe.lastIndex = this.lastIndex;
|
|
@@ -6353,51 +6355,7 @@ var O = { wrapper: "index-module__wrapper___AP3Au" }, k = ({ children: e, maxHei
|
|
|
6353
6355
|
"__ENCODING__"
|
|
6354
6356
|
],
|
|
6355
6357
|
"variable.language": ["self", "super"],
|
|
6356
|
-
keyword:
|
|
6357
|
-
"alias",
|
|
6358
|
-
"and",
|
|
6359
|
-
"begin",
|
|
6360
|
-
"BEGIN",
|
|
6361
|
-
"break",
|
|
6362
|
-
"case",
|
|
6363
|
-
"class",
|
|
6364
|
-
"defined",
|
|
6365
|
-
"do",
|
|
6366
|
-
"else",
|
|
6367
|
-
"elsif",
|
|
6368
|
-
"end",
|
|
6369
|
-
"END",
|
|
6370
|
-
"ensure",
|
|
6371
|
-
"for",
|
|
6372
|
-
"if",
|
|
6373
|
-
"in",
|
|
6374
|
-
"module",
|
|
6375
|
-
"next",
|
|
6376
|
-
"not",
|
|
6377
|
-
"or",
|
|
6378
|
-
"redo",
|
|
6379
|
-
"require",
|
|
6380
|
-
"rescue",
|
|
6381
|
-
"retry",
|
|
6382
|
-
"return",
|
|
6383
|
-
"then",
|
|
6384
|
-
"undef",
|
|
6385
|
-
"unless",
|
|
6386
|
-
"until",
|
|
6387
|
-
"when",
|
|
6388
|
-
"while",
|
|
6389
|
-
"yield",
|
|
6390
|
-
...[
|
|
6391
|
-
"include",
|
|
6392
|
-
"extend",
|
|
6393
|
-
"prepend",
|
|
6394
|
-
"public",
|
|
6395
|
-
"private",
|
|
6396
|
-
"protected",
|
|
6397
|
-
"raise",
|
|
6398
|
-
"throw"
|
|
6399
|
-
]
|
|
6400
|
-
],
|
|
6358
|
+
keyword: /* @__PURE__ */ "alias.and.begin.BEGIN.break.case.class.defined.do.else.elsif.end.END.ensure.for.if.in.module.next.not.or.redo.require.rescue.retry.return.then.undef.unless.until.when.while.yield.include.extend.prepend.public.private.protected.raise.throw".split("."),
|
|
6401
6359
|
built_in: [
|
|
6402
6360
|
"proc",
|
|
6403
6361
|
"lambda",
|
|
@@ -10417,7 +10375,7 @@ var O = { wrapper: "index-module__wrapper___AP3Au" }, k = ({ children: e, maxHei
|
|
|
10417
10375
|
return {
|
|
10418
10376
|
name: "LaTeX",
|
|
10419
10377
|
aliases: ["tex"],
|
|
10420
|
-
contains: [
|
|
10378
|
+
contains: [
|
|
10421
10379
|
...["verb", "lstinline"].map((e) => p(e, { contains: [h()] })),
|
|
10422
10380
|
p("mint", f(u, { contains: [h()] })),
|
|
10423
10381
|
p("mintinline", f(u, { contains: [_(), h()] })),
|
|
@@ -10433,8 +10391,9 @@ var O = { wrapper: "index-module__wrapper___AP3Au" }, k = ({ children: e, maxHei
|
|
|
10433
10391
|
"L"
|
|
10434
10392
|
].map((t) => m(t + "Verbatim" + e, f(d, g(t + "Verbatim" + e))))
|
|
10435
10393
|
])),
|
|
10436
|
-
m("minted", f(d, f(u, g("minted"))))
|
|
10437
|
-
|
|
10394
|
+
m("minted", f(d, f(u, g("minted")))),
|
|
10395
|
+
...a
|
|
10396
|
+
]
|
|
10438
10397
|
};
|
|
10439
10398
|
}
|
|
10440
10399
|
t.exports = n;
|