@gpustack/core-ui 1.0.14 → 1.0.16
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-DQdG3MHA.js → editor-wrap-BGZYfHpj.js} +1 -1
- package/dist/{highlight-code-BFmm0x52.js → highlight-code-DaPJLZGP.js} +1 -1
- package/dist/index.es.js +382 -369
- package/dist/markdown.es.js +1 -1
- package/dist/src/lib/components/column-wrapper/{use-wrapper-context.d.ts → use-column-wrapper-context.d.ts} +1 -1
- package/dist/src/lib/components/form/multiple-select.d.ts +4 -0
- package/dist/src/lib/components/index.d.ts +1 -1
- package/dist/src/lib/components/list-input/hint-input.d.ts +1 -0
- package/dist/src/lib/components/list-input/index.d.ts +1 -0
- package/dist/src/lib/components/list-input/list-item.d.ts +1 -0
- package/dist/src/lib/components/sub-drawer/index.d.ts +1 -1
- package/dist/src/lib/context/CoreUIContext.d.ts +1 -0
- package/dist/src/lib/hooks/useIntl.d.ts +1 -1
- package/dist/{useIntl-CtHcH0Kd.js → useIntl-CQ7P5Olk.js} +9 -10
- 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-DaPJLZGP.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";
|
|
@@ -13,5 +13,5 @@ interface WrapperContextProps {
|
|
|
13
13
|
setSScrollContentPaddingBottom?: (padding: number) => void;
|
|
14
14
|
}
|
|
15
15
|
export declare const WrapperContext: import('react').Context<WrapperContextProps>;
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const useColumnWrapperContext: () => WrapperContextProps;
|
|
17
17
|
export {};
|
|
@@ -3,5 +3,9 @@ import { default as React } from 'react';
|
|
|
3
3
|
import { SealFormItemProps } from './types';
|
|
4
4
|
declare const SealSelect: React.FC<SelectProps & SealFormItemProps & {
|
|
5
5
|
showTags?: boolean;
|
|
6
|
+
styles?: {
|
|
7
|
+
wrapper?: React.CSSProperties;
|
|
8
|
+
select?: React.CSSProperties;
|
|
9
|
+
};
|
|
6
10
|
}>;
|
|
7
11
|
export default SealSelect;
|
|
@@ -18,7 +18,7 @@ export { default as HeadlessCollapse } from './collapse-container/headless-colla
|
|
|
18
18
|
export { default as CollapsePanel } from './collapse-panel';
|
|
19
19
|
export { default as ColumnSettings } from './column-settings';
|
|
20
20
|
export { default as ColumnWrapper } from './column-wrapper';
|
|
21
|
-
export { useWrapperContext } from './column-wrapper/use-wrapper-context';
|
|
21
|
+
export { useColumnWrapperContext, useColumnWrapperContext as useWrapperContext } from './column-wrapper/use-column-wrapper-context';
|
|
22
22
|
export { default as CommandViewer } from './command-viewer';
|
|
23
23
|
export { default as ContentWrapper } from './content-wrapper';
|
|
24
24
|
export { default as CopyButton } from './copy-button';
|
|
@@ -11,7 +11,7 @@ export type SubDrawerProps = {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
13
13
|
maskClosable?: boolean;
|
|
14
|
-
getContainer
|
|
14
|
+
getContainer: () => HTMLElement | null | undefined;
|
|
15
15
|
styles?: {
|
|
16
16
|
mask?: React.CSSProperties;
|
|
17
17
|
overlay?: React.CSSProperties;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-gEudmnaM.js";
|
|
2
2
|
import "axios";
|
|
3
|
-
import { createContext as t, useContext as n } from "react";
|
|
3
|
+
import { createContext as t, useContext as n, useMemo as r } from "react";
|
|
4
4
|
//#region src/lib/context/CoreUIContext.ts
|
|
5
|
-
var
|
|
5
|
+
var i = t({
|
|
6
6
|
config: {
|
|
7
7
|
apiBaseUrl: "",
|
|
8
8
|
iconUrl: "",
|
|
@@ -25,7 +25,7 @@ var r = t({
|
|
|
25
25
|
},
|
|
26
26
|
tokens: {},
|
|
27
27
|
services: { request: async (e, t) => Promise.resolve({}) }
|
|
28
|
-
}),
|
|
28
|
+
}), a = () => n(i), o = /* @__PURE__ */ e(((e, t) => {
|
|
29
29
|
(function() {
|
|
30
30
|
var e = {}.hasOwnProperty;
|
|
31
31
|
function n() {
|
|
@@ -51,13 +51,12 @@ var r = t({
|
|
|
51
51
|
return n;
|
|
52
52
|
}) : window.classNames = n;
|
|
53
53
|
})();
|
|
54
|
-
})),
|
|
55
|
-
let { hooks: e } =
|
|
56
|
-
return {
|
|
54
|
+
})), s = () => {
|
|
55
|
+
let { hooks: e } = a(), t = e.useIntl();
|
|
56
|
+
return r(() => ({
|
|
57
57
|
...t,
|
|
58
|
-
locale: t
|
|
59
|
-
|
|
60
|
-
};
|
|
58
|
+
locale: t.locale || "en-US"
|
|
59
|
+
}), [t]);
|
|
61
60
|
};
|
|
62
61
|
//#endregion
|
|
63
|
-
export {
|
|
62
|
+
export { i, o as n, a as r, s as t };
|
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-CQ7P5Olk.js";
|
|
2
|
+
import { t } from "./editor-wrap-BGZYfHpj.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";
|