@prorobotech/openapi-k8s-toolkit 1.5.0-alpha.11 → 1.5.0-alpha.12

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.
@@ -1,2 +1,2 @@
1
- export { ai as BackToDefaultIcon, aR as BlackholeForm, aQ as BlackholeFormProvider, aM as ClusterListTable, af as ConfirmModal, at as ContentCard, az as CursorDefaultDiv, ax as CursorPointerTag, ay as CursorPointerTagMinContent, aw as CustomSelect, D as DeleteIcon, l as DeleteModal, n as DeleteModalMany, ah as DownIcon, b2 as DynamicComponents, b1 as DynamicRenderer, b3 as DynamicRendererWithProviders, as as EarthIcon, h as EditIcon, aL as EnrichedTable, E as EnrichedTableProvider, aD as ErrorBoundary, aE as ErrorBoundaryWithDataReset, b0 as Events, au as FlexGrow, an as LockedIcon, ar as LookingGlassIcon, aH as ManageableBreadcrumbs, aF as ManageableBreadcrumbsProvider, aK as ManageableSidebar, aI as ManageableSidebarProvider, aT as MarketPlace, aU as MarketplaceCard, am as MinusIcon, aX as NodeTerminal, i as PaddingContainer, ap as PauseCircleIcon, al as PlusIcon, aY as PodLogs, aZ as PodLogsMonaco, aW as PodTerminal, aV as ProjectInfoCard, aB as ResourceBadgeAbbr, aA as ResourceLink, aq as ResumeCircleIcon, a$ as Search, ad as Spacer, aj as SuccessIcon, ae as TreeWithSearch, av as UncontrolledSelect, ao as UnlockedIcon, ag as UpIcon, a_ as VMVNC, aP as YamlEditorSingleton, Q as checkIfApiInstanceNamespaceScoped, S as checkIfBuiltInInstanceNamespaceScoped, L as checkPermission, bz as convertBytes, bH as convertCompute, bE as convertCores, bC as convertStorage, bi as createContextFactory, q as createNewEntry, bk as deepMerge, t as deleteEntry, ak as feedbackIcons, N as filterIfApiInstanceNamespaceScoped, O as filterIfBuiltInInstanceNamespaceScoped, b6 as filterSelectOptions, b8 as floorToDecimal, bA as formatBytesAuto, bF as formatCoresAuto, bJ as formatDateAuto, bd as getAllPathsFromObj, z as getApiResourceSingle, G as getApiResourceTypes, H as getApiResourceTypesByApiGroup, y as getApiResources, B as getBuiltinResourceSingle, I as getBuiltinResourceTypes, A as getBuiltinResources, bg as getBuiltinTreeData, o as getClusterList, J as getCrdData, F as getCrdResourceSingle, C as getCrdResources, K as getDirectUnknownResource, aN as getEnrichedColumns, aO as getEnrichedColumnsWithControls, bh as getGroupsByCategory, T as getKinds, bt as getLinkToApiForm, bs as getLinkToBuiltinForm, k as getLinkToForm, by as getNamespaceLink, aS as getObjectFormItemsDraft, be as getPrefixSubarrays, bx as getResourceLink, bl as getSortedKinds, bm as getSortedKindsAll, b7 as getStringByName, M as getSwagger, bo as getUppercase, bf as groupsToTreeData, bn as hslFromString, bw as includesArray, b5 as isFlatObject, bv as isMultilineFromYaml, bu as isMultilineString, bK as isValidRFC3339, bp as kindByGvr, br as namespacedByGvr, bc as normalizeValuesForQuotasToNumber, bI as parseCoresWithUnit, b9 as parseQuotaValue, ba as parseQuotaValueCpu, bb as parseQuotaValueMemoryAndStorage, bD as parseValueWithUnit, x as patchEntryWithDeleteOp, w as patchEntryWithMergePatch, v as patchEntryWithReplaceOp, bq as pluralByKind, aG as prepareDataForManageableBreadcrumbs, aJ as prepareDataForManageableSidebar, b4 as prepareTemplate, bj as prepareUrlsToFetchForDynamicRenderer, aC as resourceBadgeAbbrCss, bB as toBytes, bG as toCores, r as updateEntry, W as useApiResourceSingle, a1 as useApiResourceTypesByGroup, V as useApiResources, a0 as useApisResourceTypes, Y as useBuiltinResourceSingle, a2 as useBuiltinResourceTypes, X as useBuiltinResources, U as useClusterList, a3 as useCrdData, $ as useCrdResourceSingle, Z as useCrdResources, e as useDirectUnknownResource, a5 as useInfiniteSentinel, f as useK8sSmartResource, a6 as useK8sVerbs, aa as useKinds, ab as useKindsRaw, a4 as useListWatch, a7 as useManyK8sSmartResource, d as usePermissions, ac as usePluginManifest, a9 as useResourceScope, a8 as useSmartResourceParams } from './index-C1Lorapd.mjs';
1
+ export { ai as BackToDefaultIcon, aR as BlackholeForm, aQ as BlackholeFormProvider, aM as ClusterListTable, af as ConfirmModal, at as ContentCard, az as CursorDefaultDiv, ax as CursorPointerTag, ay as CursorPointerTagMinContent, aw as CustomSelect, D as DeleteIcon, l as DeleteModal, n as DeleteModalMany, ah as DownIcon, b2 as DynamicComponents, b1 as DynamicRenderer, b3 as DynamicRendererWithProviders, as as EarthIcon, h as EditIcon, aL as EnrichedTable, E as EnrichedTableProvider, aD as ErrorBoundary, aE as ErrorBoundaryWithDataReset, b0 as Events, au as FlexGrow, an as LockedIcon, ar as LookingGlassIcon, aH as ManageableBreadcrumbs, aF as ManageableBreadcrumbsProvider, aK as ManageableSidebar, aI as ManageableSidebarProvider, aT as MarketPlace, aU as MarketplaceCard, am as MinusIcon, aX as NodeTerminal, i as PaddingContainer, ap as PauseCircleIcon, al as PlusIcon, aY as PodLogs, aZ as PodLogsMonaco, aW as PodTerminal, aV as ProjectInfoCard, aB as ResourceBadgeAbbr, aA as ResourceLink, aq as ResumeCircleIcon, a$ as Search, ad as Spacer, aj as SuccessIcon, ae as TreeWithSearch, av as UncontrolledSelect, ao as UnlockedIcon, ag as UpIcon, a_ as VMVNC, aP as YamlEditorSingleton, Q as checkIfApiInstanceNamespaceScoped, S as checkIfBuiltInInstanceNamespaceScoped, L as checkPermission, bz as convertBytes, bH as convertCompute, bE as convertCores, bC as convertStorage, bi as createContextFactory, q as createNewEntry, bk as deepMerge, t as deleteEntry, ak as feedbackIcons, N as filterIfApiInstanceNamespaceScoped, O as filterIfBuiltInInstanceNamespaceScoped, b6 as filterSelectOptions, b8 as floorToDecimal, bA as formatBytesAuto, bF as formatCoresAuto, bJ as formatDateAuto, bd as getAllPathsFromObj, z as getApiResourceSingle, G as getApiResourceTypes, H as getApiResourceTypesByApiGroup, y as getApiResources, B as getBuiltinResourceSingle, I as getBuiltinResourceTypes, A as getBuiltinResources, bg as getBuiltinTreeData, o as getClusterList, J as getCrdData, F as getCrdResourceSingle, C as getCrdResources, K as getDirectUnknownResource, aN as getEnrichedColumns, aO as getEnrichedColumnsWithControls, bh as getGroupsByCategory, T as getKinds, bt as getLinkToApiForm, bs as getLinkToBuiltinForm, k as getLinkToForm, by as getNamespaceLink, aS as getObjectFormItemsDraft, be as getPrefixSubarrays, bx as getResourceLink, bl as getSortedKinds, bm as getSortedKindsAll, b7 as getStringByName, M as getSwagger, bo as getUppercase, bf as groupsToTreeData, bn as hslFromString, bw as includesArray, b5 as isFlatObject, bv as isMultilineFromYaml, bu as isMultilineString, bK as isValidRFC3339, bp as kindByGvr, br as namespacedByGvr, bc as normalizeValuesForQuotasToNumber, bI as parseCoresWithUnit, b9 as parseQuotaValue, ba as parseQuotaValueCpu, bb as parseQuotaValueMemoryAndStorage, bD as parseValueWithUnit, x as patchEntryWithDeleteOp, w as patchEntryWithMergePatch, v as patchEntryWithReplaceOp, bq as pluralByKind, aG as prepareDataForManageableBreadcrumbs, aJ as prepareDataForManageableSidebar, b4 as prepareTemplate, bj as prepareUrlsToFetchForDynamicRenderer, aC as resourceBadgeAbbrCss, bB as toBytes, bG as toCores, r as updateEntry, W as useApiResourceSingle, a1 as useApiResourceTypesByGroup, V as useApiResources, a0 as useApisResourceTypes, Y as useBuiltinResourceSingle, a2 as useBuiltinResourceTypes, X as useBuiltinResources, U as useClusterList, a3 as useCrdData, $ as useCrdResourceSingle, Z as useCrdResources, e as useDirectUnknownResource, a5 as useInfiniteSentinel, f as useK8sSmartResource, a6 as useK8sVerbs, aa as useKinds, ab as useKindsRaw, a4 as useListWatch, a7 as useManyK8sSmartResource, d as usePermissions, ac as usePluginManifest, a9 as useResourceScope, a8 as useSmartResourceParams } from './index-DyxhwqLr.mjs';
2
2
  //# sourceMappingURL=openapi-k8s-toolkit.es.js.map
@@ -82493,9 +82493,14 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
82493
82493
  );
82494
82494
  };
82495
82495
 
82496
- const factoryConfigContext = createContextFactory();
82497
- const FactoryConfigContextProvider = factoryConfigContext.Provider;
82498
- factoryConfigContext.useTypedContext;
82496
+ const FactoryConfigContext = React$1.createContext({});
82497
+ const FactoryConfigContextProvider = ({
82498
+ children,
82499
+ value
82500
+ }) => {
82501
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(FactoryConfigContext.Provider, { value, children });
82502
+ };
82503
+ const useFactoryConfig = () => React$1.useContext(FactoryConfigContext);
82499
82504
 
82500
82505
  const EffectiveAntdResultWrapper = ({
82501
82506
  effectiveReqIndexes,
@@ -82519,6 +82524,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
82519
82524
  dataToApplyToContext,
82520
82525
  theme,
82521
82526
  nodeTerminalDefaultProfile,
82527
+ namespaceLabels,
82522
82528
  disableEventBubbling,
82523
82529
  effectiveReqIndexes,
82524
82530
  effectiveItemsPath
@@ -82552,7 +82558,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
82552
82558
  e.stopPropagation();
82553
82559
  }
82554
82560
  },
82555
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(FactoryConfigContextProvider, { value: { nodeTerminalDefaultProfile }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PartsOfUrlProvider, { value: { partsOfUrl: location.pathname.split("/") }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
82561
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(FactoryConfigContextProvider, { value: { nodeTerminalDefaultProfile, namespaceLabels }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PartsOfUrlProvider, { value: { partsOfUrl: location.pathname.split("/") }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
82556
82562
  MultiQueryProvider,
82557
82563
  {
82558
82564
  items: [...preparedK8sResoucesUrls, ...preparedUrlsToFetch],
@@ -91731,6 +91737,8 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
91731
91737
  };
91732
91738
 
91733
91739
  const NodeTerminal = ({ cluster, nodeName, substractHeight, listPodTemplatesNs }) => {
91740
+ const { namespaceLabels } = useFactoryConfig();
91741
+ const namespaceLabel = namespaceLabels?.label?.toLowerCase() ?? "namespace";
91734
91742
  const [selectedTemplate, setSelectedTemplate] = React$1.useState(null);
91735
91743
  const [selectedContainer, setSelectedContainer] = React$1.useState(null);
91736
91744
  const lifecycleEndpoint = `/api/clusters/${cluster}/openapi-bff-ws/terminal/terminalNode/terminalNode`;
@@ -91775,7 +91783,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
91775
91783
  if (podTemplateNames.length === 0 && !isLoading) {
91776
91784
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$a.EmptyState, { children: [
91777
91785
  /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Typography.Text, { type: "secondary", children: [
91778
- "No PodTemplates found in namespace “",
91786
+ "No PodTemplates found in ",
91787
+ namespaceLabel,
91788
+ " “",
91779
91789
  listPodTemplatesNs,
91780
91790
  "”."
91781
91791
  ] }),