@prorobotech/openapi-k8s-toolkit 1.4.0-alpha.31 → 1.4.0-alpha.32
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/{index-BG5BS_uS.mjs → index-66OGJ33J.mjs} +26 -7
- package/dist/index-66OGJ33J.mjs.map +1 -0
- package/dist/{index-llbLR_OJ.mjs → index-DwtlhYg9.mjs} +2 -2
- package/dist/{index-llbLR_OJ.mjs.map → index-DwtlhYg9.mjs.map} +1 -1
- package/dist/openapi-k8s-toolkit.es.js +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +24 -4
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/api/bff/search/getKindsRaw.d.ts +4 -0
- package/dist/types/hooks/useKindsRaw.d.ts +8 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-BG5BS_uS.mjs.map +0 -1
|
@@ -35044,10 +35044,8 @@ const useAutoPerRequestError = (data) => {
|
|
|
35044
35044
|
|
|
35045
35045
|
const PerRequestError = ({ error }) => {
|
|
35046
35046
|
if (!error) return null;
|
|
35047
|
-
|
|
35048
|
-
|
|
35049
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: typeof error === "string" ? error : error.message }) })
|
|
35050
|
-
] });
|
|
35047
|
+
const message = typeof error === "string" ? error : error.message;
|
|
35048
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", message, showIcon: true });
|
|
35051
35049
|
};
|
|
35052
35050
|
|
|
35053
35051
|
const isExternalHref = (href) => {
|
|
@@ -78780,7 +78778,7 @@ const TolerationsModal = ({
|
|
|
78780
78778
|
};
|
|
78781
78779
|
|
|
78782
78780
|
const LazyEnrichedTableModal = lazy(
|
|
78783
|
-
() => import('./index-
|
|
78781
|
+
() => import('./index-DwtlhYg9.mjs').then((mod) => ({ default: mod.EnrichedTableModal }))
|
|
78784
78782
|
);
|
|
78785
78783
|
const renderActiveType = (activeType, extraProps) => {
|
|
78786
78784
|
if (!activeType) return null;
|
|
@@ -91742,6 +91740,27 @@ const useResourceScope = ({ plural, cluster, apiGroup, apiVersion, enabler }) =>
|
|
|
91742
91740
|
});
|
|
91743
91741
|
};
|
|
91744
91742
|
|
|
91743
|
+
const getKindsRaw = async ({ cluster }) => {
|
|
91744
|
+
return axios.get(`/api/clusters/${cluster}/openapi-bff/search/kinds/getKindsRaw`);
|
|
91745
|
+
};
|
|
91746
|
+
|
|
91747
|
+
const useKindsRaw = ({
|
|
91748
|
+
cluster,
|
|
91749
|
+
refetchInterval,
|
|
91750
|
+
isEnabled
|
|
91751
|
+
}) => {
|
|
91752
|
+
return useQuery({
|
|
91753
|
+
queryKey: ["useKindsRaw", cluster],
|
|
91754
|
+
queryFn: () => getKindsRaw({ cluster }),
|
|
91755
|
+
select: (data) => ({
|
|
91756
|
+
kindIndex: data.data,
|
|
91757
|
+
kindsWithVersion: getSortedKindsAll(data.data)
|
|
91758
|
+
}),
|
|
91759
|
+
refetchInterval: refetchInterval !== void 0 ? refetchInterval : 6e4,
|
|
91760
|
+
enabled: isEnabled
|
|
91761
|
+
});
|
|
91762
|
+
};
|
|
91763
|
+
|
|
91745
91764
|
const getPlugins = async ({ cluster }) => {
|
|
91746
91765
|
return axios.get(`/api/clusters/${cluster}/openapi-bff/plugins/getPlugins`);
|
|
91747
91766
|
};
|
|
@@ -91765,5 +91784,5 @@ const usePluginManifest = ({
|
|
|
91765
91784
|
});
|
|
91766
91785
|
};
|
|
91767
91786
|
|
|
91768
|
-
export { useBuiltinResourceTypes as $, getCrdResourceSingle as A, getApiResourceTypes as B, getApiResourceTypesByApiGroup as C, DeleteIcon as D, EnrichedTableProvider as E, getBuiltinResourceTypes as F, getCrdData as G, getDirectUnknownResource as H, checkPermission as I, getSwagger as J, filterIfApiInstanceNamespaceScoped as K, filterIfBuiltInInstanceNamespaceScoped as L, checkIfApiInstanceNamespaceScoped as M, checkIfBuiltInInstanceNamespaceScoped as N, getKinds as O, PerRequestError as P, useClusterList as Q, ReadOnlyModal as R, useApiResources as S, useApiResourceSingle as T, useBuiltinResources as U, useBuiltinResourceSingle as V, useCrdResources as W, useCrdResourceSingle as X, useApisResourceTypes as Y, useApiResourceTypesByGroup as Z, _$1 as _, useTheme as a,
|
|
91769
|
-
//# sourceMappingURL=index-
|
|
91787
|
+
export { useBuiltinResourceTypes as $, getCrdResourceSingle as A, getApiResourceTypes as B, getApiResourceTypesByApiGroup as C, DeleteIcon as D, EnrichedTableProvider as E, getBuiltinResourceTypes as F, getCrdData as G, getDirectUnknownResource as H, checkPermission as I, getSwagger as J, filterIfApiInstanceNamespaceScoped as K, filterIfBuiltInInstanceNamespaceScoped as L, checkIfApiInstanceNamespaceScoped as M, checkIfBuiltInInstanceNamespaceScoped as N, getKinds as O, PerRequestError as P, useClusterList as Q, ReadOnlyModal as R, useApiResources as S, useApiResourceSingle as T, useBuiltinResources as U, useBuiltinResourceSingle as V, useCrdResources as W, useCrdResourceSingle as X, useApisResourceTypes as Y, useApiResourceTypesByGroup as Z, _$1 as _, useTheme as a, prepareTemplate as a$, useCrdData as a0, useListWatch as a1, useInfiniteSentinel as a2, useK8sVerbs as a3, useManyK8sSmartResource as a4, useSmartResourceParams as a5, useResourceScope as a6, useKinds as a7, useKindsRaw as a8, usePluginManifest as a9, ManageableBreadcrumbsProvider as aA, prepareDataForManageableBreadcrumbs as aB, ManageableBreadcrumbs as aC, ManageableSidebarProvider as aD, prepareDataForManageableSidebar as aE, ManageableSidebar as aF, EnrichedTable as aG, ClusterListTable as aH, getEnrichedColumns as aI, getEnrichedColumnsWithControls as aJ, YamlEditorSingleton$1 as aK, BlackholeFormProvider as aL, BlackholeForm as aM, getObjectFormItemsDraft as aN, MarketPlace as aO, MarketplaceCard as aP, ProjectInfoCard as aQ, PodTerminal as aR, NodeTerminal as aS, PodLogs as aT, PodLogsMonaco as aU, VMVNC as aV, Search as aW, Events as aX, DynamicRenderer as aY, DynamicComponents as aZ, DynamicRendererWithProviders as a_, Spacer$1 as aa, TreeWithSearch as ab, ConfirmModal as ac, UpIcon as ad, DownIcon as ae, BackToDefaultIcon as af, SuccessIcon as ag, feedbackIcons as ah, PlusIcon as ai, MinusIcon as aj, LockedIcon as ak, UnlockedIcon as al, PauseCircleIcon as am, ResumeCircleIcon as an, LookingGlassIcon as ao, EarthIcon as ap, ContentCard$1 as aq, FlexGrow as ar, UncontrolledSelect as as, CustomSelect$4 as at, CursorPointerTag as au, CursorPointerTagMinContent as av, CursorDefaultDiv as aw, ResourceLink as ax, ErrorBoundary as ay, ErrorBoundaryWithDataReset as az, usePartsOfUrl as b, isFlatObject as b0, filterSelectOptions as b1, getStringByName as b2, floorToDecimal as b3, parseQuotaValue as b4, parseQuotaValueCpu as b5, parseQuotaValueMemoryAndStorage as b6, normalizeValuesForQuotasToNumber as b7, getAllPathsFromObj as b8, getPrefixSubarrays as b9, formatCoresAuto as bA, toCores as bB, convertCompute as bC, parseCoresWithUnit as bD, formatDateAuto as bE, isValidRFC3339 as bF, groupsToTreeData as ba, getBuiltinTreeData as bb, getGroupsByCategory as bc, createContextFactory as bd, prepareUrlsToFetchForDynamicRenderer as be, deepMerge as bf, getSortedKinds as bg, getSortedKindsAll as bh, hslFromString as bi, getUppercase as bj, kindByGvr as bk, pluralByKind as bl, namespacedByGvr as bm, getLinkToBuiltinForm as bn, getLinkToApiForm as bo, isMultilineString as bp, isMultilineFromYaml as bq, includesArray as br, getResourceLink as bs, getNamespaceLink as bt, convertBytes as bu, formatBytesAuto as bv, toBytes as bw, convertStorage as bx, parseValueWithUnit as by, convertCores as bz, useAutoPerRequestError as c, usePermissions as d, useDirectUnknownResource as e, useK8sSmartResource as f, jsxRuntimeExports as g, EditIcon as h, PaddingContainer as i, jp as j, getLinkToForm as k, DeleteModal as l, mergePerRequestErrors as m, DeleteModalMany as n, getClusterList as o, parseAll as p, createNewEntry as q, updateEntry as r, serializeLabelsWithNoEncoding$1 as s, deleteEntry as t, useMultiQuery as u, getApiResources as v, getApiResourceSingle as w, getBuiltinResources as x, getBuiltinResourceSingle as y, getCrdResources as z };
|
|
91788
|
+
//# sourceMappingURL=index-66OGJ33J.mjs.map
|