@gpustack/core-ui 1.0.8 → 1.0.10

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
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-CNVWBM0E.js";
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 = [
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ type ModalOverlayViewProps = {
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 ModalOverlayView: React.FC<ModalOverlayViewProps>;
25
+ export default ModalOverlayView;
@@ -5,5 +5,5 @@ import { DrawerProps } from 'antd';
5
5
  * @param props
6
6
  * @returns
7
7
  */
8
- declare const ScrollerModal: (props: DrawerProps) => import("react/jsx-runtime").JSX.Element;
9
- export default ScrollerModal;
8
+ declare const GSDrawer: (props: DrawerProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default GSDrawer;
@@ -73,6 +73,11 @@ export interface CoreHooks {
73
73
  getStorageUserSettings: () => any;
74
74
  };
75
75
  }
76
+ export interface CoreUISlots {
77
+ ExtraContent?: React.ComponentType<{
78
+ isDarkTheme?: boolean;
79
+ }>;
80
+ }
76
81
  export interface CoreUIContextProps {
77
82
  config: CoreUIConfig;
78
83
  tokens?: Record<string, string>;
@@ -86,6 +91,7 @@ export interface CoreUIContextProps {
86
91
  writeColumnSettings: (key: string, value: any) => void;
87
92
  writeState: (key: string, value: any) => void;
88
93
  };
94
+ slots?: CoreUISlots;
89
95
  }
90
96
  declare const CoreUIContext: import('react').Context<CoreUIContextProps>;
91
97
  export default CoreUIContext;
@@ -20,6 +20,7 @@ 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
22
  export { default as useCoreUIContext } from './useCoreUIContext';
23
- export { default as useIntl } from './useIntl';
23
+ export { default as useCoreUISlots } from './useCoreUISlots';
24
24
  export { default as useCurrentUser } from './useCurrentUser';
25
+ export { default as useIntl } from './useIntl';
25
26
  export { default as useTableFetch } from './useTableFetch';
@@ -0,0 +1,3 @@
1
+ import { CoreUISlots } from '../context/CoreUIContext';
2
+ declare const useCoreUISlots: () => CoreUISlots;
3
+ export default useCoreUISlots;
@@ -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-jQgyThK1.js";
3
- import { a, i as o, n as s, r as c, t as l } from "./word-reader-CIrD60Ns.js";
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-jQgyThK1.js";
2
- import { a as n, i as r, n as i, r as a, t as o } from "./word-reader-CIrD60Ns.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-8vGWRIPF.js";
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 };