@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.118 → 0.0.1-alpha.119

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.
@@ -49780,7 +49780,7 @@ const SelectTagSpan = st$1.span`
49780
49780
  `;
49781
49781
  const FormContainer = st$1.div`
49782
49782
  display: grid;
49783
- grid-template-columns: 300px 100px 1fr;
49783
+ grid-template-columns: 300px 100px 1fr 100px;
49784
49784
  gap: 16px;
49785
49785
  `;
49786
49786
  const HideableContainer = st$1.div`
@@ -49793,7 +49793,7 @@ const Styled = {
49793
49793
  HideableContainer
49794
49794
  };
49795
49795
 
49796
- const Search = ({ cluster }) => {
49796
+ const Search = ({ cluster, updateCurrentSearch }) => {
49797
49797
  const [form] = Form.useForm();
49798
49798
  const [searchParams, setSearchParams] = useSearchParams();
49799
49799
  const location = useLocation();
@@ -49879,12 +49879,22 @@ const Search = ({ cluster }) => {
49879
49879
  }
49880
49880
  }
49881
49881
  }, [watchedTypedSelector]);
49882
- const options = kindWithVersion?.map(({ kind, notUnique, group, version }) => ({
49883
- label: notUnique ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
49882
+ const options = kindWithVersion?.map(({ kind, group, version }) => ({
49883
+ // kindWithVersion?.map(({ kind, notUnique, group, version }) => ({
49884
+ // label: notUnique ? (
49885
+ // <div>
49886
+ // {kind}
49887
+ // <br />
49888
+ // {version.groupVersion}
49889
+ // </div>
49890
+ // ) : (
49891
+ // kind
49892
+ // ),
49893
+ label: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
49884
49894
  kind,
49885
49895
  /* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
49886
49896
  version.groupVersion
49887
- ] }) : kind,
49897
+ ] }),
49888
49898
  value: `${group}~${version.version}~${version.resource}`
49889
49899
  })) || [];
49890
49900
  const tagRender = ({ label, closable, onClose }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -49957,7 +49967,8 @@ const Search = ({ cluster }) => {
49957
49967
  }
49958
49968
  )
49959
49969
  }
49960
- ) })
49970
+ ) }),
49971
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { label: "Search", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: () => updateCurrentSearch(watchedKinds), children: "Search" }) })
49961
49972
  ] }) }),
49962
49973
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
49963
49974
  "Current: ",
@@ -50243,7 +50254,8 @@ const useApiResources = ({
50243
50254
  apiVersion,
50244
50255
  typeName,
50245
50256
  limit,
50246
- refetchInterval
50257
+ refetchInterval,
50258
+ isEnabled
50247
50259
  }) => {
50248
50260
  return useQuery({
50249
50261
  queryKey: ["useApiResources", clusterName, namespace, apiGroup, apiVersion, typeName, limit],
@@ -50262,7 +50274,8 @@ const useApiResources = ({
50262
50274
  }
50263
50275
  return data;
50264
50276
  },
50265
- refetchInterval: refetchInterval !== void 0 ? refetchInterval : 5e3
50277
+ refetchInterval: refetchInterval !== void 0 ? refetchInterval : 5e3,
50278
+ enabled: isEnabled
50266
50279
  });
50267
50280
  };
50268
50281
  const useApiResourceSingle = ({
@@ -50293,7 +50306,8 @@ const useBuiltinResources = ({
50293
50306
  namespace,
50294
50307
  typeName,
50295
50308
  limit,
50296
- refetchInterval
50309
+ refetchInterval,
50310
+ isEnabled
50297
50311
  }) => {
50298
50312
  return useQuery({
50299
50313
  queryKey: ["useBuiltinResourceType", clusterName, namespace, typeName, limit],
@@ -50305,7 +50319,8 @@ const useBuiltinResources = ({
50305
50319
  }
50306
50320
  return data;
50307
50321
  },
50308
- refetchInterval: refetchInterval !== void 0 ? refetchInterval : 5e3
50322
+ refetchInterval: refetchInterval !== void 0 ? refetchInterval : 5e3,
50323
+ enabled: isEnabled
50309
50324
  });
50310
50325
  };
50311
50326
  const useBuiltinResourceSingle = ({
@@ -50328,7 +50343,8 @@ const useCrdResources = ({
50328
50343
  apiGroup,
50329
50344
  apiVersion,
50330
50345
  crdName,
50331
- refetchInterval
50346
+ refetchInterval,
50347
+ isEnabled
50332
50348
  }) => {
50333
50349
  return useQuery({
50334
50350
  queryKey: ["useCrdResources", clusterName, namespace, apiGroup, apiVersion, crdName],
@@ -50346,7 +50362,8 @@ const useCrdResources = ({
50346
50362
  }
50347
50363
  return data;
50348
50364
  },
50349
- refetchInterval: refetchInterval !== void 0 ? refetchInterval : 5e3
50365
+ refetchInterval: refetchInterval !== void 0 ? refetchInterval : 5e3,
50366
+ enabled: isEnabled
50350
50367
  });
50351
50368
  };
50352
50369
  const useCrdResourceSingle = ({