@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.136 → 0.0.1-alpha.137

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.
@@ -2,7 +2,7 @@ import o, { useRef, useContext, useDebugValue, createElement, useState, useLayou
2
2
  import { Input, Tree, Modal, Alert, theme, Select, Tag, Breadcrumb, Spin, Menu, Tooltip, Space, Button, Flex, Typography, Card, Row, Col, Tabs, Form, Popover, notification, Dropdown, Table, Slider, InputNumber, Switch, Result, Progress, Checkbox } from 'antd';
3
3
  import { LoadingOutlined, ExclamationCircleFilled, CloseCircleFilled, CheckCircleFilled, PlusOutlined, ClearOutlined, MinusOutlined, CaretDownOutlined, CaretRightOutlined, InfoCircleOutlined, EyeOutlined, EyeInvisibleOutlined, SearchOutlined, MoreOutlined, CheckOutlined, CloseOutlined, BugOutlined, EllipsisOutlined } from '@ant-design/icons';
4
4
  import { useQuery, useQueries, useQueryClient } from '@tanstack/react-query';
5
- import { Link, useLocation, useParams, useNavigate, useSearchParams } from 'react-router-dom';
5
+ import { Link, useNavigate, useLocation, useParams, useSearchParams } from 'react-router-dom';
6
6
 
7
7
  function getDefaultExportFromCjs$1 (x) {
8
8
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -9514,6 +9514,7 @@ const prepareDataForManageableSidebar = ({
9514
9514
  if (!foundData) {
9515
9515
  return void 0;
9516
9516
  }
9517
+ const preparedCurrentTags = currentTags && currentTags.length > 0 ? currentTags.map((el) => prepareTemplate({ template: el, replaceValues })) : void 0;
9517
9518
  const result = {
9518
9519
  menuItems: mapLinksFromRaw({
9519
9520
  rawLinks: foundData.menuItems,
@@ -9524,7 +9525,7 @@ const prepareDataForManageableSidebar = ({
9524
9525
  const openedKeys = result?.menuItems ? findMatchingItems({
9525
9526
  items: result?.menuItems,
9526
9527
  pathname,
9527
- tags: { keysAndTags: foundData.keysAndTags, currentTags }
9528
+ tags: { keysAndTags: foundData.keysAndTags, currentTags: preparedCurrentTags }
9528
9529
  }) : [];
9529
9530
  const stringedOpenedKeys = openedKeys.map((el) => typeof el === "string" ? el : String(el));
9530
9531
  return { ...result, selectedKeys: stringedOpenedKeys };
@@ -34050,6 +34051,7 @@ const AntdLink = ({
34050
34051
  }) => {
34051
34052
  const { data: multiQueryData, isLoading: isMultiqueryLoading } = useMultiQuery();
34052
34053
  const partsOfUrl = usePartsOfUrl();
34054
+ const navigate = useNavigate();
34053
34055
  const { id, text, href, ...linkProps } = data;
34054
34056
  const replaceValues = partsOfUrl.partsOfUrl.reduce((acc, value, index) => {
34055
34057
  acc[index.toString()] = value;
@@ -34060,10 +34062,21 @@ const AntdLink = ({
34060
34062
  if (isMultiqueryLoading) {
34061
34063
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading multiquery" });
34062
34064
  }
34063
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Link, { href: hrefPrepared, ...linkProps, children: [
34064
- textPrepared,
34065
- children
34066
- ] });
34065
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
34066
+ Typography.Link,
34067
+ {
34068
+ href: hrefPrepared,
34069
+ onClick: (e) => {
34070
+ e.preventDefault();
34071
+ navigate(hrefPrepared);
34072
+ },
34073
+ ...linkProps,
34074
+ children: [
34075
+ textPrepared,
34076
+ children
34077
+ ]
34078
+ }
34079
+ );
34067
34080
  };
34068
34081
 
34069
34082
  const AntdCard = ({