@gpustack/core-ui 1.0.33 → 1.0.35
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/charts.d.ts +7 -0
- package/dist/charts.es.js +859 -0
- package/dist/{useIntl-ClqxSZNY.js → classnames-fDEzIsab.js} +4 -35
- package/dist/{editor-wrap-BYfIcvle.js → editor-wrap-CwTlkQeF.js} +1 -1
- package/dist/{excel-reader-Bgm6Gd2H.js → excel-reader-fp4wfcR5.js} +2 -2
- package/dist/excel.es.js +1 -1
- package/dist/file-readers.es.js +3 -3
- package/dist/{highlight-code-DrKwSNa-.js → highlight-code-D8pDWkNV.js} +79 -75
- package/dist/index.css +1 -1
- package/dist/index.es.js +10415 -19095
- package/dist/lib/components/form/wrapper/index.d.ts +5 -5
- package/dist/lib/components/index.d.ts +0 -9
- package/dist/lib/components/table/components/layout.d.ts +5 -5
- package/dist/lib-pzRljAkJ.js +2 -0
- package/dist/{mammoth-3bu5V8Au.js → mammoth-CCaoEfUd.js} +1 -1
- package/dist/markdown.es.js +8 -8
- package/dist/query-string-D_RrDOJF.js +325 -0
- package/dist/resize-panel-D5BF2EHO.js +529 -0
- package/dist/terminal.d.ts +5 -0
- package/dist/terminal.es.js +7333 -0
- package/dist/useCoreUIContext-_TAsecw_.js +29 -0
- package/dist/useIntl-CBh5liUu.js +12 -0
- package/dist/{utils-KsqXE63M.js → utils-CHekcXoK.js} +121 -440
- package/dist/utils.es.js +4 -4
- package/dist/{word-reader-CSmNlWcx.js → word-reader-Dy0F38kq.js} +4 -4
- package/dist/yaml-editor.es.js +19 -19
- package/package.json +9 -1
- package/dist/lib-EFH8CfCi.js +0 -2
- /package/dist/{epubjs-DKV8rhQU.js → epubjs-CCPXKy-j.js} +0 -0
- /package/dist/{jszip-1lXK4oQn.js → jszip-D49X9-jp.js} +0 -0
- /package/dist/{lodash-i3XVVuwG.js → lodash-CFrt21kh.js} +0 -0
- /package/dist/{pdfjs-dist-DwiA-2_8.js → pdfjs-dist-D4wgLSOe.js} +0 -0
- /package/dist/{xlsx-DLkyLHwb.js → xlsx-C7SIkCvo.js} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createContext as e, useContext as t } from "react";
|
|
2
|
+
import "axios";
|
|
3
|
+
//#region src/lib/context/CoreUIContext.ts
|
|
4
|
+
var n = e({
|
|
5
|
+
config: {
|
|
6
|
+
apiBaseUrl: "",
|
|
7
|
+
iconUrl: "",
|
|
8
|
+
theme: "light"
|
|
9
|
+
},
|
|
10
|
+
i18n: { formatMessage: (e, t) => e.id },
|
|
11
|
+
locale: {
|
|
12
|
+
getAllLocales: () => [],
|
|
13
|
+
setLocale: () => {}
|
|
14
|
+
},
|
|
15
|
+
hooks: {
|
|
16
|
+
useIntl: () => ({
|
|
17
|
+
locale: "en-US",
|
|
18
|
+
formatMessage: (e, t) => e.id
|
|
19
|
+
}),
|
|
20
|
+
useCurrentUser: () => void 0,
|
|
21
|
+
useTableFetch: (() => {
|
|
22
|
+
throw Error("useTableFetch was not provided by the host CoreUIProvider");
|
|
23
|
+
})
|
|
24
|
+
},
|
|
25
|
+
tokens: {},
|
|
26
|
+
services: { request: async (e, t) => Promise.resolve({}) }
|
|
27
|
+
}), r = () => t(n);
|
|
28
|
+
//#endregion
|
|
29
|
+
export { n, r as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as e } from "./useCoreUIContext-_TAsecw_.js";
|
|
2
|
+
import { useMemo as t } from "react";
|
|
3
|
+
//#region src/lib/hooks/useIntl.ts
|
|
4
|
+
var n = () => {
|
|
5
|
+
let { hooks: n } = e(), r = n.useIntl();
|
|
6
|
+
return t(() => ({
|
|
7
|
+
...r,
|
|
8
|
+
locale: r.locale || "en-US"
|
|
9
|
+
}), [r]);
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as t };
|