@prorobotech/openapi-k8s-toolkit 1.4.0-alpha.17 → 1.4.0-alpha.18
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-B50_esSW.mjs → index-BW_pcmSW.mjs} +25 -2
- package/dist/index-BW_pcmSW.mjs.map +1 -0
- package/dist/{index-CTYM2Lu_.mjs → index-DVkzeOTz.mjs} +2 -2
- package/dist/{index-CTYM2Lu_.mjs.map → index-DVkzeOTz.mjs.map} +1 -1
- package/dist/openapi-k8s-toolkit.es.js +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +23 -0
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/MappedParsedText/MappedParsedText.d.ts +5 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/MappedParsedText/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/types/MappedParsedText.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/types/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/index-B50_esSW.mjs.map +0 -1
|
@@ -35271,6 +35271,28 @@ const ParsedText = ({ data }) => {
|
|
|
35271
35271
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: data.style, children: formattedText });
|
|
35272
35272
|
};
|
|
35273
35273
|
|
|
35274
|
+
const MappedParsedText = ({ data }) => {
|
|
35275
|
+
const { value, valueMap, style } = data;
|
|
35276
|
+
const { data: multiQueryData, isLoading, isError, errors } = useMultiQuery();
|
|
35277
|
+
const partsOfUrl = usePartsOfUrl();
|
|
35278
|
+
if (isLoading) {
|
|
35279
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." });
|
|
35280
|
+
}
|
|
35281
|
+
if (isError) {
|
|
35282
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
35283
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { children: "Errors:" }),
|
|
35284
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: errors.map((e, i) => e && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: typeof e === "string" ? e : e.message }, i)) })
|
|
35285
|
+
] });
|
|
35286
|
+
}
|
|
35287
|
+
const replaceValues = partsOfUrl.partsOfUrl.reduce((acc, item, index) => {
|
|
35288
|
+
acc[index.toString()] = item;
|
|
35289
|
+
return acc;
|
|
35290
|
+
}, {});
|
|
35291
|
+
const parsedValue = parseAll({ text: value, replaceValues, multiQueryData });
|
|
35292
|
+
const renderedValue = Object.prototype.hasOwnProperty.call(valueMap, parsedValue) ? valueMap[parsedValue] : parsedValue;
|
|
35293
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style, children: renderedValue });
|
|
35294
|
+
};
|
|
35295
|
+
|
|
35274
35296
|
const ProjectInfoCard$1 = ({
|
|
35275
35297
|
data,
|
|
35276
35298
|
children
|
|
@@ -78596,7 +78618,7 @@ const TolerationsModal = ({
|
|
|
78596
78618
|
};
|
|
78597
78619
|
|
|
78598
78620
|
const LazyEnrichedTableModal = lazy(
|
|
78599
|
-
() => import('./index-
|
|
78621
|
+
() => import('./index-DVkzeOTz.mjs').then((mod) => ({ default: mod.EnrichedTableModal }))
|
|
78600
78622
|
);
|
|
78601
78623
|
const renderActiveType = (activeType, extraProps) => {
|
|
78602
78624
|
if (!activeType) return null;
|
|
@@ -81262,6 +81284,7 @@ const DynamicComponents = {
|
|
|
81262
81284
|
partsOfUrl: PartsOfUrl,
|
|
81263
81285
|
multiQuery: MultiQuery,
|
|
81264
81286
|
parsedText: ParsedText,
|
|
81287
|
+
MappedParsedText,
|
|
81265
81288
|
ProjectInfoCard: ProjectInfoCard$1,
|
|
81266
81289
|
MarketplaceCard: MarketplaceCard$1,
|
|
81267
81290
|
ContentCard,
|
|
@@ -90876,4 +90899,4 @@ const usePluginManifest = ({
|
|
|
90876
90899
|
};
|
|
90877
90900
|
|
|
90878
90901
|
export { useInfiniteSentinel as $, getBuiltinResourceTypes as A, getCrdData as B, getDirectUnknownResource as C, DeleteIcon as D, EnrichedTableProvider as E, checkPermission as F, getSwagger as G, filterIfApiInstanceNamespaceScoped as H, filterIfBuiltInInstanceNamespaceScoped as I, checkIfApiInstanceNamespaceScoped as J, checkIfBuiltInInstanceNamespaceScoped as K, getKinds as L, useClusterList as M, useApiResources as N, useApiResourceSingle as O, PaddingContainer as P, useBuiltinResources as Q, ReadOnlyModal as R, useBuiltinResourceSingle as S, useCrdResources as T, useCrdResourceSingle as U, useApisResourceTypes as V, useApiResourceTypesByGroup as W, useBuiltinResourceTypes as X, useCrdData as Y, useListWatch as Z, _$1 as _, useTheme as a, parseQuotaValueCpu as a$, useK8sVerbs as a0, useManyK8sSmartResource as a1, useSmartResourceParams as a2, useResourceScope as a3, useKinds as a4, usePluginManifest as a5, Spacer$1 as a6, TreeWithSearch as a7, ConfirmModal as a8, UpIcon as a9, EnrichedTable as aA, ClusterListTable as aB, getEnrichedColumns as aC, getEnrichedColumnsWithControls as aD, YamlEditorSingleton$1 as aE, BlackholeFormProvider as aF, BlackholeForm as aG, getObjectFormItemsDraft as aH, MarketPlace as aI, MarketplaceCard as aJ, ProjectInfoCard as aK, PodTerminal as aL, NodeTerminal as aM, PodLogs as aN, PodLogsMonaco as aO, VMVNC as aP, Search as aQ, Events as aR, DynamicRenderer as aS, DynamicComponents as aT, DynamicRendererWithProviders as aU, prepareTemplate as aV, isFlatObject as aW, filterSelectOptions as aX, getStringByName as aY, floorToDecimal as aZ, parseQuotaValue as a_, DownIcon as aa, BackToDefaultIcon as ab, SuccessIcon as ac, feedbackIcons as ad, PlusIcon as ae, MinusIcon as af, LockedIcon as ag, UnlockedIcon as ah, PauseCircleIcon as ai, ResumeCircleIcon as aj, LookingGlassIcon as ak, EarthIcon as al, ContentCard$1 as am, FlexGrow as an, UncontrolledSelect as ao, CustomSelect$4 as ap, CursorPointerTag as aq, CursorPointerTagMinContent as ar, CursorDefaultDiv as as, ResourceLink as at, ManageableBreadcrumbsProvider as au, prepareDataForManageableBreadcrumbs as av, ManageableBreadcrumbs as aw, ManageableSidebarProvider as ax, prepareDataForManageableSidebar as ay, ManageableSidebar as az, usePartsOfUrl as b, parseQuotaValueMemoryAndStorage as b0, normalizeValuesForQuotasToNumber as b1, getAllPathsFromObj as b2, getPrefixSubarrays as b3, groupsToTreeData as b4, getBuiltinTreeData as b5, getGroupsByCategory as b6, createContextFactory as b7, prepareUrlsToFetchForDynamicRenderer as b8, deepMerge as b9, getSortedKinds as ba, getSortedKindsAll as bb, hslFromString as bc, getUppercase as bd, kindByGvr as be, pluralByKind as bf, namespacedByGvr as bg, getLinkToBuiltinForm as bh, getLinkToApiForm as bi, isMultilineString as bj, isMultilineFromYaml as bk, includesArray as bl, getResourceLink as bm, getNamespaceLink as bn, convertBytes as bo, formatBytesAuto as bp, toBytes as bq, convertStorage as br, parseValueWithUnit as bs, convertCores as bt, formatCoresAuto as bu, toCores as bv, convertCompute as bw, parseCoresWithUnit as bx, formatDateAuto as by, isValidRFC3339 as bz, usePermissions as c, useDirectUnknownResource as d, useK8sSmartResource as e, jsxRuntimeExports as f, EditIcon as g, getLinkToForm as h, DeleteModal as i, jp as j, DeleteModalMany as k, getClusterList as l, createNewEntry as m, updateEntry as n, deleteEntry as o, parseAll as p, getApiResources as q, getApiResourceSingle as r, serializeLabelsWithNoEncoding$1 as s, getBuiltinResources as t, useMultiQuery as u, getBuiltinResourceSingle as v, getCrdResources as w, getCrdResourceSingle as x, getApiResourceTypes as y, getApiResourceTypesByApiGroup as z };
|
|
90879
|
-
//# sourceMappingURL=index-
|
|
90902
|
+
//# sourceMappingURL=index-BW_pcmSW.mjs.map
|