@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.
@@ -1,5 +1,5 @@
1
- import { o as e } from "./rolldown-runtime-BETGA6I9.js";
2
- import { r as t } from "./useIntl-Ch0EABFx.js";
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-BETGA6I9.js";
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 = new (typeof XMLSerializer > "u" || t ? ee.DOMParser : XMLSerializer)().serializeToString(e), 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
- return this.metadata = e.metadata, this.spine = (e.readingOrder || e.spine).map((e, t) => (e.index = t, e.linear = e.linear || "yes", e)), e.resources.forEach((e, t) => {
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
- return this._driverSet = (this._driverSet === null ? l.resolve() : this._driverSet.catch(function() {
12349
+ var c = this._driverSet === null ? l.resolve() : this._driverSet.catch(function() {
12348
12350
  return l.resolve();
12349
- })).then(function() {
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, this.settings.requestMethod || Le.bind(this), this.resolve.bind(this)), this.request = this.storage.request.bind(this.storage), this.opened.then(() => {
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-BxM-6u7U.js").then((e) => e.t), r = e.target.result, i = n.read(r, { type: "string" }), a = i.SheetNames[0];
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-BxM-6u7U.js").then((e) => e.t).then(({ default: r }) => {
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-B0E9DWVT.js";
1
+ import { t as e } from "./excel-reader-jQgyThK1.js";
2
2
  export { e as exportJsonToExcel };
@@ -1,3 +1,3 @@
1
- import { n as e } from "./excel-reader-B0E9DWVT.js";
2
- import { a as t, i as n, n as r, r as i, t as a } from "./word-reader-B8l8Mmvn.js";
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-BETGA6I9.js";
2
- import { n, r, t as i } from "./useIntl-Ch0EABFx.js";
3
- import { t as a } from "./lodash-k2j6dYGv.js";
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), this.matcherRe = t(C(this.regexes.map((e) => e[1]), { joinWith: "|" }), !0), this.lastIndex = 0;
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
- ], ...a]
10394
+ m("minted", f(d, f(u, g("minted")))),
10395
+ ...a
10396
+ ]
10438
10397
  };
10439
10398
  }
10440
10399
  t.exports = n;