@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.132 → 0.0.1-alpha.134
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/openapi-k8s-toolkit.es.js +48 -4
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +48 -4
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +1 -0
- package/package.json +1 -1
|
@@ -35575,7 +35575,7 @@ const Labels = ({ data, children }) => {
|
|
|
35575
35575
|
});
|
|
35576
35576
|
};
|
|
35577
35577
|
const EmptySelect = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
|
|
35578
|
-
!readOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "flex-end", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
35578
|
+
!readOnly && !verticalViewList && /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "flex-end", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
35579
35579
|
Button,
|
|
35580
35580
|
{
|
|
35581
35581
|
type: "text",
|
|
@@ -35603,6 +35603,23 @@ const Labels = ({ data, children }) => {
|
|
|
35603
35603
|
isCursorPointer: true
|
|
35604
35604
|
}
|
|
35605
35605
|
),
|
|
35606
|
+
!readOnly && verticalViewList && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
35607
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 8, $samespace: true }),
|
|
35608
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "flex-start", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
35609
|
+
Button,
|
|
35610
|
+
{
|
|
35611
|
+
type: "text",
|
|
35612
|
+
size: "small",
|
|
35613
|
+
onClick: (e) => {
|
|
35614
|
+
e.stopPropagation();
|
|
35615
|
+
setOpen(true);
|
|
35616
|
+
},
|
|
35617
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, {}),
|
|
35618
|
+
iconPosition: "end",
|
|
35619
|
+
children: "Edit"
|
|
35620
|
+
}
|
|
35621
|
+
) })
|
|
35622
|
+
] }),
|
|
35606
35623
|
children,
|
|
35607
35624
|
contextHolder,
|
|
35608
35625
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -35633,7 +35650,7 @@ const Labels = ({ data, children }) => {
|
|
|
35633
35650
|
}
|
|
35634
35651
|
const labels = Object.entries(labelsRaw).map(([key, value]) => `${key}=${value}`);
|
|
35635
35652
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
|
|
35636
|
-
!readOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "flex-end", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
35653
|
+
!readOnly && !verticalViewList && /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "flex-end", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
35637
35654
|
Button,
|
|
35638
35655
|
{
|
|
35639
35656
|
type: "text",
|
|
@@ -35717,6 +35734,23 @@ const Labels = ({ data, children }) => {
|
|
|
35717
35734
|
}
|
|
35718
35735
|
}
|
|
35719
35736
|
),
|
|
35737
|
+
!readOnly && verticalViewList && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
35738
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 8, $samespace: true }),
|
|
35739
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "flex-start", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
35740
|
+
Button,
|
|
35741
|
+
{
|
|
35742
|
+
type: "text",
|
|
35743
|
+
size: "small",
|
|
35744
|
+
onClick: (e) => {
|
|
35745
|
+
e.stopPropagation();
|
|
35746
|
+
setOpen(true);
|
|
35747
|
+
},
|
|
35748
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, {}),
|
|
35749
|
+
iconPosition: "end",
|
|
35750
|
+
children: "Edit"
|
|
35751
|
+
}
|
|
35752
|
+
) })
|
|
35753
|
+
] }),
|
|
35720
35754
|
children,
|
|
35721
35755
|
contextHolder,
|
|
35722
35756
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -38471,6 +38505,7 @@ const EnrichedTableProvider = ({
|
|
|
38471
38505
|
dataItems,
|
|
38472
38506
|
resourceSchema,
|
|
38473
38507
|
isNamespaced,
|
|
38508
|
+
isNamespacedLoading,
|
|
38474
38509
|
dataForControls,
|
|
38475
38510
|
dataForControlsInternal,
|
|
38476
38511
|
customizationId,
|
|
@@ -38502,6 +38537,7 @@ const EnrichedTableProvider = ({
|
|
|
38502
38537
|
});
|
|
38503
38538
|
useEffect(() => {
|
|
38504
38539
|
setIsError(void 0);
|
|
38540
|
+
setIsLoading(true);
|
|
38505
38541
|
const payload = {
|
|
38506
38542
|
customizationId,
|
|
38507
38543
|
tableMappingsReplaceValues,
|
|
@@ -38524,6 +38560,9 @@ const EnrichedTableProvider = ({
|
|
|
38524
38560
|
isNamespaced,
|
|
38525
38561
|
namespace
|
|
38526
38562
|
]);
|
|
38563
|
+
if (isNamespacedLoading) {
|
|
38564
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
38565
|
+
}
|
|
38527
38566
|
if (!preparedProps && isLoading) {
|
|
38528
38567
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
38529
38568
|
}
|
|
@@ -50442,8 +50481,10 @@ const MonacoEditor = ({
|
|
|
50442
50481
|
const [isPaused, setIsPaused] = useState(false);
|
|
50443
50482
|
const socketRef = useRef(null);
|
|
50444
50483
|
const editorRef = useRef(null);
|
|
50484
|
+
const [editorReady, setEditorReady] = useState(false);
|
|
50445
50485
|
const handleEditorDidMount = (editor) => {
|
|
50446
50486
|
editorRef.current = editor;
|
|
50487
|
+
setEditorReady(true);
|
|
50447
50488
|
};
|
|
50448
50489
|
const appendContent = (newContent) => {
|
|
50449
50490
|
if (editorRef.current) {
|
|
@@ -50457,6 +50498,9 @@ const MonacoEditor = ({
|
|
|
50457
50498
|
}
|
|
50458
50499
|
};
|
|
50459
50500
|
useEffect(() => {
|
|
50501
|
+
if (!editorReady) {
|
|
50502
|
+
return void 0;
|
|
50503
|
+
}
|
|
50460
50504
|
const socket = new WebSocket(endpoint);
|
|
50461
50505
|
socketRef.current = socket;
|
|
50462
50506
|
socket.onopen = () => {
|
|
@@ -50492,7 +50536,7 @@ const MonacoEditor = ({
|
|
|
50492
50536
|
socket.close();
|
|
50493
50537
|
}
|
|
50494
50538
|
};
|
|
50495
|
-
}, [endpoint, namespace, podName, container, previous]);
|
|
50539
|
+
}, [endpoint, namespace, podName, container, previous, editorReady]);
|
|
50496
50540
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
50497
50541
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$2.VisibilityContainer, { $isVisible: isTerminalVisible, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "start", align: "center", gap: 16, children: [
|
|
50498
50542
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -50527,7 +50571,7 @@ const MonacoEditor = ({
|
|
|
50527
50571
|
defaultLanguage: "plaintext",
|
|
50528
50572
|
language: "plaintext",
|
|
50529
50573
|
width: "100%",
|
|
50530
|
-
height: `calc(100vh - ${substractHeight}px`,
|
|
50574
|
+
height: `calc(100vh - ${substractHeight}px)`,
|
|
50531
50575
|
theme: theme === "dark" ? "vs-dark" : theme === void 0 ? "vs-dark" : "vs",
|
|
50532
50576
|
options: {
|
|
50533
50577
|
theme: theme === "dark" ? "vs-dark" : theme === void 0 ? "vs-dark" : "vs",
|