@gpustack/core-ui 1.0.10 → 1.0.12
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/{highlight-code-CxGYFG-K.js → highlight-code-BFmm0x52.js} +4 -4
- package/dist/index.css +1 -1
- package/dist/index.es.js +1844 -1759
- 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/logs-viewer/index.d.ts +1 -0
- package/dist/src/lib/components/{modal-overlay → sub-drawer}/index.d.ts +3 -3
- 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/use-chunk-fetch.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/yaml-editor.es.js +2 -2
- package/package.json +1 -1
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
type
|
|
2
|
+
export type SubDrawerProps = {
|
|
3
3
|
title: React.ReactNode;
|
|
4
4
|
open: boolean;
|
|
5
5
|
onCancel?: () => void;
|
|
@@ -21,5 +21,5 @@ type ModalOverlayViewProps = {
|
|
|
21
21
|
container?: React.CSSProperties;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
declare const
|
|
25
|
-
export default
|
|
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",
|
package/dist/yaml-editor.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./useIntl-
|
|
2
|
-
import { t } from "./editor-wrap-
|
|
1
|
+
import { t as e } from "./useIntl-CtHcH0Kd.js";
|
|
2
|
+
import { t } from "./editor-wrap-DQdG3MHA.js";
|
|
3
3
|
import { forwardRef as n, useEffect as r, useImperativeHandle as i, useRef as a } from "react";
|
|
4
4
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
5
|
import { ImportOutlined as c, LoadingOutlined as l } from "@ant-design/icons";
|