@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.133 → 0.0.1-alpha.135
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 +24 -10
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +24 -10
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +5 -2
- package/dist/types/localTypes/bff/table.d.ts +6 -1
- package/package.json +1 -1
|
@@ -34489,6 +34489,7 @@ const EnrichedTable$1 = ({
|
|
|
34489
34489
|
labelsSelectorFull,
|
|
34490
34490
|
fieldSelector,
|
|
34491
34491
|
namespace,
|
|
34492
|
+
k8sResource,
|
|
34492
34493
|
dataForControls,
|
|
34493
34494
|
baseprefix,
|
|
34494
34495
|
...props
|
|
@@ -34504,6 +34505,12 @@ const EnrichedTable$1 = ({
|
|
|
34504
34505
|
replaceValues
|
|
34505
34506
|
});
|
|
34506
34507
|
const namespacePrepared = namespace ? parseAll({ text: namespace, replaceValues, multiQueryData }) : void 0;
|
|
34508
|
+
const k8sResourcePrePrepared = k8sResource ? {
|
|
34509
|
+
apiGroup: k8sResource.apiGroup ? parseAll({ text: k8sResource.apiGroup, replaceValues, multiQueryData }) : void 0,
|
|
34510
|
+
apiVersion: parseAll({ text: k8sResource.apiVersion, replaceValues, multiQueryData }),
|
|
34511
|
+
resource: parseAll({ text: k8sResource.resource, replaceValues, multiQueryData })
|
|
34512
|
+
} : void 0;
|
|
34513
|
+
const k8sResourcePrepared = k8sResourcePrePrepared?.apiGroup === "-" ? { apiVersion: k8sResourcePrePrepared.apiVersion, resource: k8sResourcePrePrepared.resource } : k8sResourcePrePrepared;
|
|
34507
34514
|
const dataForControlsPrepared = dataForControls ? {
|
|
34508
34515
|
cluster: clusterName,
|
|
34509
34516
|
syntheticProject: dataForControls.syntheticProject ? parseAll({ text: dataForControls.syntheticProject, replaceValues, multiQueryData }) : void 0,
|
|
@@ -34608,6 +34615,7 @@ const EnrichedTable$1 = ({
|
|
|
34608
34615
|
setSelectedRowsData(selectedRowsData2);
|
|
34609
34616
|
}
|
|
34610
34617
|
} : void 0,
|
|
34618
|
+
k8sResource: k8sResourcePrepared,
|
|
34611
34619
|
dataForControlsInternal: { onDeleteHandle },
|
|
34612
34620
|
dataForControls: dataForControlsPrepared,
|
|
34613
34621
|
withoutControls: !dataForControlsPrepared,
|
|
@@ -38504,8 +38512,9 @@ const EnrichedTableProvider = ({
|
|
|
38504
38512
|
baseprefix,
|
|
38505
38513
|
dataItems,
|
|
38506
38514
|
resourceSchema,
|
|
38507
|
-
|
|
38508
|
-
|
|
38515
|
+
k8sResource,
|
|
38516
|
+
// isNamespaced,
|
|
38517
|
+
// isNamespacedLoading,
|
|
38509
38518
|
dataForControls,
|
|
38510
38519
|
dataForControlsInternal,
|
|
38511
38520
|
customizationId,
|
|
@@ -38542,7 +38551,9 @@ const EnrichedTableProvider = ({
|
|
|
38542
38551
|
customizationId,
|
|
38543
38552
|
tableMappingsReplaceValues,
|
|
38544
38553
|
forceDefaultAdditionalPrinterColumns,
|
|
38545
|
-
|
|
38554
|
+
namespace,
|
|
38555
|
+
k8sResource
|
|
38556
|
+
// namespaceScopedWithoutNamespace: isNamespaced && !namespace,
|
|
38546
38557
|
};
|
|
38547
38558
|
axios.post(`/api/clusters/${cluster}/openapi-bff/tables/tablePrepare/prepareTableProps`, payload).then(({ data }) => {
|
|
38548
38559
|
setPreparedProps(data);
|
|
@@ -38557,12 +38568,10 @@ const EnrichedTableProvider = ({
|
|
|
38557
38568
|
customizationId,
|
|
38558
38569
|
tableMappingsReplaceValues,
|
|
38559
38570
|
forceDefaultAdditionalPrinterColumns,
|
|
38560
|
-
|
|
38561
|
-
|
|
38571
|
+
namespace,
|
|
38572
|
+
k8sResource
|
|
38573
|
+
// isNamespaced,
|
|
38562
38574
|
]);
|
|
38563
|
-
if (isNamespacedLoading) {
|
|
38564
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
38565
|
-
}
|
|
38566
38575
|
if (!preparedProps && isLoading) {
|
|
38567
38576
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
38568
38577
|
}
|
|
@@ -50481,8 +50490,10 @@ const MonacoEditor = ({
|
|
|
50481
50490
|
const [isPaused, setIsPaused] = useState(false);
|
|
50482
50491
|
const socketRef = useRef(null);
|
|
50483
50492
|
const editorRef = useRef(null);
|
|
50493
|
+
const [editorReady, setEditorReady] = useState(false);
|
|
50484
50494
|
const handleEditorDidMount = (editor) => {
|
|
50485
50495
|
editorRef.current = editor;
|
|
50496
|
+
setEditorReady(true);
|
|
50486
50497
|
};
|
|
50487
50498
|
const appendContent = (newContent) => {
|
|
50488
50499
|
if (editorRef.current) {
|
|
@@ -50496,6 +50507,9 @@ const MonacoEditor = ({
|
|
|
50496
50507
|
}
|
|
50497
50508
|
};
|
|
50498
50509
|
useEffect(() => {
|
|
50510
|
+
if (!editorReady) {
|
|
50511
|
+
return void 0;
|
|
50512
|
+
}
|
|
50499
50513
|
const socket = new WebSocket(endpoint);
|
|
50500
50514
|
socketRef.current = socket;
|
|
50501
50515
|
socket.onopen = () => {
|
|
@@ -50531,7 +50545,7 @@ const MonacoEditor = ({
|
|
|
50531
50545
|
socket.close();
|
|
50532
50546
|
}
|
|
50533
50547
|
};
|
|
50534
|
-
}, [endpoint, namespace, podName, container, previous]);
|
|
50548
|
+
}, [endpoint, namespace, podName, container, previous, editorReady]);
|
|
50535
50549
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
50536
50550
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$2.VisibilityContainer, { $isVisible: isTerminalVisible, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "start", align: "center", gap: 16, children: [
|
|
50537
50551
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -50566,7 +50580,7 @@ const MonacoEditor = ({
|
|
|
50566
50580
|
defaultLanguage: "plaintext",
|
|
50567
50581
|
language: "plaintext",
|
|
50568
50582
|
width: "100%",
|
|
50569
|
-
height: `calc(100vh - ${substractHeight}px`,
|
|
50583
|
+
height: `calc(100vh - ${substractHeight}px)`,
|
|
50570
50584
|
theme: theme === "dark" ? "vs-dark" : theme === void 0 ? "vs-dark" : "vs",
|
|
50571
50585
|
options: {
|
|
50572
50586
|
theme: theme === "dark" ? "vs-dark" : theme === void 0 ? "vs-dark" : "vs",
|