@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 { a as e, n as t, r as n, t as r } from "./rolldown-runtime-gEudmnaM.js";
|
|
2
|
-
import { t as i } from "./jszip-
|
|
2
|
+
import { t as i } from "./jszip-D1TpRGO6.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/underscore@1.13.8/node_modules/underscore/modules/_setup.js
|
|
4
4
|
var a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T = t((() => {
|
|
5
5
|
a = "1.13.8", o = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || Function("return this")() || {}, s = Array.prototype, c = Object.prototype, l = typeof Symbol < "u" ? Symbol.prototype : null, u = s.push, d = s.slice, f = c.toString, p = c.hasOwnProperty, m = typeof ArrayBuffer < "u", h = typeof DataView < "u", g = Array.isArray, _ = Object.keys, v = Object.create, y = m && ArrayBuffer.isView, b = isNaN, x = isFinite, S = !{ toString: null }.propertyIsEnumerable("toString"), C = [
|
package/dist/markdown.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e, r as t, t as n } from "./rolldown-runtime-gEudmnaM.js";
|
|
2
2
|
import { t as r } from "./lodash-DVkZQU_K.js";
|
|
3
|
-
import { t as i } from "./highlight-code-
|
|
3
|
+
import { t as i } from "./highlight-code-BFmm0x52.js";
|
|
4
4
|
import a, { Fragment as o, useCallback as s, useEffect as c, useMemo as l } from "react";
|
|
5
5
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
import { EyeOutlined as p } from "@ant-design/icons";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { CoreUIProvider } from '../context/CoreUIProvider';
|
|
2
|
+
export { default as Access, type AccessProps } from './access';
|
|
2
3
|
export { default as AlertInfo } from './alert-info';
|
|
3
4
|
export { default as AlertBlockInfo } from './alert-info/block';
|
|
4
5
|
export { default as AudioAnimation } from './audio-animation';
|
|
@@ -102,6 +103,7 @@ export { default as InfoColumn } from './simple-table/info-column';
|
|
|
102
103
|
export { default as SmallCloseButton } from './small-close-button';
|
|
103
104
|
export { default as SpeechContent } from './speech-content';
|
|
104
105
|
export { default as StatusTag } from './status-tag';
|
|
106
|
+
export { default as SubDrawer, type SubDrawerProps } from './sub-drawer';
|
|
105
107
|
export { default as Table } from './table';
|
|
106
108
|
export { default as CellContent } from './table/components/cell-content';
|
|
107
109
|
export { default as RowChildren } from './table/components/row-children';
|
|
@@ -5,5 +5,5 @@ import { DrawerProps } from 'antd';
|
|
|
5
5
|
* @param props
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
8
|
+
declare const GSDrawer: (props: DrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default GSDrawer;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type SubDrawerProps = {
|
|
3
|
+
title: React.ReactNode;
|
|
4
|
+
open: boolean;
|
|
5
|
+
onCancel?: () => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
onSubmit?: () => void;
|
|
8
|
+
footer?: React.ReactNode;
|
|
9
|
+
subTitle?: React.ReactNode;
|
|
10
|
+
width?: number | string;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
maskClosable?: boolean;
|
|
14
|
+
getContainer?: () => HTMLElement | null | undefined;
|
|
15
|
+
styles?: {
|
|
16
|
+
mask?: React.CSSProperties;
|
|
17
|
+
overlay?: React.CSSProperties;
|
|
18
|
+
header?: React.CSSProperties;
|
|
19
|
+
title?: React.CSSProperties;
|
|
20
|
+
subTitle?: React.CSSProperties;
|
|
21
|
+
container?: React.CSSProperties;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
declare const SubDrawer: React.FC<SubDrawerProps>;
|
|
25
|
+
export default SubDrawer;
|
|
@@ -78,6 +78,14 @@ export interface CoreUISlots {
|
|
|
78
78
|
isDarkTheme?: boolean;
|
|
79
79
|
}>;
|
|
80
80
|
}
|
|
81
|
+
export interface CoreUIAccess {
|
|
82
|
+
Access: React.ComponentType<{
|
|
83
|
+
accessible: boolean;
|
|
84
|
+
fallback?: React.ReactNode;
|
|
85
|
+
children: React.ReactNode;
|
|
86
|
+
}>;
|
|
87
|
+
useAccess: () => Record<string, any>;
|
|
88
|
+
}
|
|
81
89
|
export interface CoreUIContextProps {
|
|
82
90
|
config: CoreUIConfig;
|
|
83
91
|
tokens?: Record<string, string>;
|
|
@@ -92,6 +100,7 @@ export interface CoreUIContextProps {
|
|
|
92
100
|
writeState: (key: string, value: any) => void;
|
|
93
101
|
};
|
|
94
102
|
slots?: CoreUISlots;
|
|
103
|
+
access?: CoreUIAccess;
|
|
95
104
|
}
|
|
96
105
|
declare const CoreUIContext: import('react').Context<CoreUIContextProps>;
|
|
97
106
|
export default CoreUIContext;
|
|
@@ -19,6 +19,7 @@ export { useTableMultiSort, default as useTableSort } from './use-table-sort';
|
|
|
19
19
|
export { default as useUpdateChunkedList } from './use-update-chunk-list';
|
|
20
20
|
export { default as useWatchList } from './use-watch-list';
|
|
21
21
|
export { default as useWindowResize } from './use-window-resize';
|
|
22
|
+
export { default as useAccess } from './useAccess';
|
|
22
23
|
export { default as useCoreUIContext } from './useCoreUIContext';
|
|
23
24
|
export { default as useCoreUISlots } from './useCoreUISlots';
|
|
24
25
|
export { default as useCurrentUser } from './useCurrentUser';
|
|
@@ -25,7 +25,7 @@ var r = t({
|
|
|
25
25
|
},
|
|
26
26
|
tokens: {},
|
|
27
27
|
services: { request: async (e, t) => Promise.resolve({}) }
|
|
28
|
-
}), i = /* @__PURE__ */ e(((e, t) => {
|
|
28
|
+
}), i = () => n(r), a = /* @__PURE__ */ e(((e, t) => {
|
|
29
29
|
(function() {
|
|
30
30
|
var e = {}.hasOwnProperty;
|
|
31
31
|
function n() {
|
|
@@ -51,8 +51,8 @@ var r = t({
|
|
|
51
51
|
return n;
|
|
52
52
|
}) : window.classNames = n;
|
|
53
53
|
})();
|
|
54
|
-
})),
|
|
55
|
-
let { hooks: e } =
|
|
54
|
+
})), o = () => {
|
|
55
|
+
let { hooks: e } = i(), t = e?.useIntl?.(), n = (e, n) => t && t.formatMessage ? t.formatMessage(e, n) : e.id;
|
|
56
56
|
return {
|
|
57
57
|
...t,
|
|
58
58
|
locale: t?.locale || "en-US",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, o as t, r as n } from "./rolldown-runtime-gEudmnaM.js";
|
|
2
|
-
import { n as r, t as i } from "./excel-reader-
|
|
3
|
-
import { a, i as o, n as s, r as c, t as l } from "./word-reader-
|
|
2
|
+
import { n as r, t as i } from "./excel-reader-CiDeab7_.js";
|
|
3
|
+
import { a, i as o, n as s, r as c, t as l } from "./word-reader-Chcn6YoS.js";
|
|
4
4
|
import { t as u } from "./lodash-DVkZQU_K.js";
|
|
5
5
|
import { saveAs as d } from "file-saver";
|
|
6
6
|
import { message as ee } from "antd";
|
package/dist/utils.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./excel-reader-
|
|
2
|
-
import { a as n, i as r, n as i, r as a, t as o } from "./word-reader-
|
|
3
|
-
import { C as s, D as c, E as l, O as u, S as d, T as f, _ as p, a as m, b as h, c as g, d as _, f as v, g as y, h as b, i as x, j as S, k as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M, v as N, w as P, x as F } from "./utils-
|
|
1
|
+
import { n as e, t } from "./excel-reader-CiDeab7_.js";
|
|
2
|
+
import { a as n, i as r, n as i, r as a, t as o } from "./word-reader-Chcn6YoS.js";
|
|
3
|
+
import { C as s, D as c, E as l, O as u, S as d, T as f, _ as p, a as m, b as h, c as g, d as _, f as v, g as y, h as b, i as x, j as S, k as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M, v as N, w as P, x as F } from "./utils-CIKJeIzI.js";
|
|
4
4
|
export { j as base64ToFile, E as convertFileSize, k as convertFileSizeByUnit, F as convertFileToBase64, x as cosineSimilarity, P as createFormData, S as downloadFile, f as errorHandler, t as exportJsonToExcel, l as fetchChunkedData, c as fetchChunkedDataPostFormData, m as formatLargeNumber, D as formatNumber, A as formatTime, g as genColors, w as generateRandomNumber, M as handleBatchRequest, _ as isHTMLDocumentString, v as isNotEmptyValue, O as isNotEmptyValueAllowNull, T as isOnline, d as loadAudioData, b as loadLanguageConfig, y as parseParamsString, h as pcmToWav, p as platformCall, s as readAudioFile, N as readBlob, n as readEpubContent, e as readExcelContent, i as readHtmlContent, u as readLargeStreamData, r as readPDFContent, a as readPptxContent, C as readStreamData, o as readWordContent };
|