@prorobotech/openapi-k8s-toolkit 1.3.0-alpha.22 → 1.3.0-alpha.23
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-CI2xaYiN.mjs → index-Cr6rlEiJ.mjs} +56 -39
- package/dist/{index-CI2xaYiN.mjs.map → index-Cr6rlEiJ.mjs.map} +1 -1
- package/dist/{index-BbLUwG3Z.mjs → index-DceGWewg.mjs} +2 -2
- package/dist/{index-BbLUwG3Z.mjs.map → index-DceGWewg.mjs.map} +1 -1
- package/dist/openapi-k8s-toolkit.es.js +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +54 -37
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/organisms/DynamicComponents/types/SecretBase64Plain.d.ts +2 -0
- package/package.json +1 -1
|
@@ -45148,6 +45148,10 @@ const handleLabelsToSearchParamsLinkClick = ({
|
|
|
45148
45148
|
};
|
|
45149
45149
|
|
|
45150
45150
|
const LabelsToSearchParams = ({ data, children }) => {
|
|
45151
|
+
const renderWithSearchIcon = (content) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { align: "flex-start", gap: 8, children: [
|
|
45152
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchOutlined, { style: { marginTop: 4 } }),
|
|
45153
|
+
content
|
|
45154
|
+
] });
|
|
45151
45155
|
const {
|
|
45152
45156
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
45153
45157
|
id,
|
|
@@ -45193,15 +45197,19 @@ const LabelsToSearchParams = ({ data, children }) => {
|
|
|
45193
45197
|
hrefPrepared: linkPrefixPrepared,
|
|
45194
45198
|
navigate
|
|
45195
45199
|
});
|
|
45196
|
-
return
|
|
45197
|
-
|
|
45198
|
-
|
|
45199
|
-
|
|
45200
|
+
return renderWithSearchIcon(
|
|
45201
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Link, { href: linkPrefixPrepared, onClick: handleDefaultFallbackLinkClick, ...linkProps, children: [
|
|
45202
|
+
fallbackText,
|
|
45203
|
+
children
|
|
45204
|
+
] })
|
|
45205
|
+
);
|
|
45200
45206
|
}
|
|
45201
|
-
return
|
|
45202
|
-
|
|
45203
|
-
|
|
45204
|
-
|
|
45207
|
+
return renderWithSearchIcon(
|
|
45208
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Text, { children: [
|
|
45209
|
+
errorText,
|
|
45210
|
+
children
|
|
45211
|
+
] })
|
|
45212
|
+
);
|
|
45205
45213
|
};
|
|
45206
45214
|
if (!labelsRaw) {
|
|
45207
45215
|
if (errorArrayOfObjects) {
|
|
@@ -45221,13 +45229,12 @@ const LabelsToSearchParams = ({ data, children }) => {
|
|
|
45221
45229
|
navigate
|
|
45222
45230
|
});
|
|
45223
45231
|
if (renderLabelsAsRows) {
|
|
45224
|
-
return
|
|
45225
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchOutlined, { style: { marginTop: 4 } }),
|
|
45232
|
+
return renderWithSearchIcon(
|
|
45226
45233
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { vertical: true, children: [
|
|
45227
45234
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Link, { href: hrefPrepared, onClick: handleLinkClick, ...linkProps, children: labelsRows.map((row, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { display: "block" }, children: index < labelsRows.length - 1 ? `${row},` : row }, `${row}-${index}`)) }),
|
|
45228
45235
|
children
|
|
45229
45236
|
] })
|
|
45230
|
-
|
|
45237
|
+
);
|
|
45231
45238
|
}
|
|
45232
45239
|
if (maxTextLength && !textLink) {
|
|
45233
45240
|
const truncatedLabels = maxTextLength ? truncate$1(labels, maxTextLength) : labels;
|
|
@@ -45235,10 +45242,12 @@ const LabelsToSearchParams = ({ data, children }) => {
|
|
|
45235
45242
|
Popover,
|
|
45236
45243
|
{
|
|
45237
45244
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { vertical: true, gap: 8, children: Object.entries(labelsRaw).map(([key, value]) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: `${key}=${value}` }, key)) }),
|
|
45238
|
-
children:
|
|
45239
|
-
|
|
45240
|
-
|
|
45241
|
-
|
|
45245
|
+
children: renderWithSearchIcon(
|
|
45246
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Link, { href: hrefPrepared, onClick: handleLinkClick, ...linkProps, children: [
|
|
45247
|
+
truncatedLabels,
|
|
45248
|
+
children
|
|
45249
|
+
] })
|
|
45250
|
+
)
|
|
45242
45251
|
}
|
|
45243
45252
|
);
|
|
45244
45253
|
}
|
|
@@ -45248,17 +45257,21 @@ const LabelsToSearchParams = ({ data, children }) => {
|
|
|
45248
45257
|
Popover,
|
|
45249
45258
|
{
|
|
45250
45259
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { vertical: true, gap: 8, children: Object.entries(labelsRaw).map(([key, value]) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: `${key}=${value}` }, key)) }),
|
|
45251
|
-
children:
|
|
45252
|
-
|
|
45253
|
-
|
|
45254
|
-
|
|
45260
|
+
children: renderWithSearchIcon(
|
|
45261
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Link, { href: hrefPrepared, onClick: handleLinkClick, ...linkProps, children: [
|
|
45262
|
+
truncatedTextLink,
|
|
45263
|
+
children
|
|
45264
|
+
] })
|
|
45265
|
+
)
|
|
45255
45266
|
}
|
|
45256
45267
|
);
|
|
45257
45268
|
}
|
|
45258
|
-
return
|
|
45259
|
-
|
|
45260
|
-
|
|
45261
|
-
|
|
45269
|
+
return renderWithSearchIcon(
|
|
45270
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Link, { href: hrefPrepared, onClick: handleLinkClick, ...linkProps, children: [
|
|
45271
|
+
textLink || labels,
|
|
45272
|
+
children
|
|
45273
|
+
] })
|
|
45274
|
+
);
|
|
45262
45275
|
};
|
|
45263
45276
|
|
|
45264
45277
|
const flattenOnce$1 = (arr) => arr.reduce((acc, row) => [...acc, ...row], []);
|
|
@@ -46885,6 +46898,8 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
46885
46898
|
plainTextValue,
|
|
46886
46899
|
multiline,
|
|
46887
46900
|
multilineRows,
|
|
46901
|
+
shownByDefault,
|
|
46902
|
+
hideEye,
|
|
46888
46903
|
textStyle,
|
|
46889
46904
|
emptyText,
|
|
46890
46905
|
containerStyle,
|
|
@@ -46894,7 +46909,8 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
46894
46909
|
notificationText,
|
|
46895
46910
|
notificationWidth
|
|
46896
46911
|
} = data;
|
|
46897
|
-
const
|
|
46912
|
+
const hiddenDefault = !shownByDefault;
|
|
46913
|
+
const [hidden, setHidden] = useState(hiddenDefault);
|
|
46898
46914
|
const [hiddenByKey, setHiddenByKey] = useState({});
|
|
46899
46915
|
const [notificationApi, contextHolder] = notification.useNotification();
|
|
46900
46916
|
const { data: multiQueryData, isLoading, isError, errors } = useMultiQuery();
|
|
@@ -46960,22 +46976,23 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
46960
46976
|
isHidden,
|
|
46961
46977
|
onToggle
|
|
46962
46978
|
}) => {
|
|
46963
|
-
const
|
|
46979
|
+
const effectiveHidden = hideEye ? false : isHidden;
|
|
46980
|
+
const shownValue = useNiceLooking ? value2 : effectiveHidden ? "" : value2;
|
|
46964
46981
|
const resolvedMultilineRows = resolveMultilineRows(value2, multilineRows);
|
|
46965
46982
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 8, ...flexProps, children: [
|
|
46966
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.NoSelect, { style: inputContainerStyle, children: useNiceLooking ? /* @__PURE__ */ jsxRuntimeExports.jsx(te, { theme, hidden:
|
|
46983
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.NoSelect, { style: inputContainerStyle, children: useNiceLooking ? /* @__PURE__ */ jsxRuntimeExports.jsx(te, { theme, hidden: effectiveHidden, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46967
46984
|
Styled$r.DisabledInput,
|
|
46968
46985
|
{
|
|
46969
|
-
$hidden:
|
|
46970
|
-
onClick: (e) => handleInputClick(e,
|
|
46986
|
+
$hidden: effectiveHidden,
|
|
46987
|
+
onClick: (e) => handleInputClick(e, effectiveHidden, value2),
|
|
46971
46988
|
value: shownValue,
|
|
46972
46989
|
readOnly: true
|
|
46973
46990
|
}
|
|
46974
46991
|
) }) : multiline ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46975
46992
|
Styled$r.DisabledTextArea,
|
|
46976
46993
|
{
|
|
46977
|
-
$hidden:
|
|
46978
|
-
onClick: (e) => handleInputClick(e,
|
|
46994
|
+
$hidden: effectiveHidden,
|
|
46995
|
+
onClick: (e) => handleInputClick(e, effectiveHidden, value2),
|
|
46979
46996
|
value: shownValue,
|
|
46980
46997
|
rows: resolvedMultilineRows,
|
|
46981
46998
|
readOnly: true
|
|
@@ -46983,13 +47000,13 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
46983
47000
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46984
47001
|
Styled$r.DisabledInput,
|
|
46985
47002
|
{
|
|
46986
|
-
$hidden:
|
|
46987
|
-
onClick: (e) => handleInputClick(e,
|
|
47003
|
+
$hidden: effectiveHidden,
|
|
47004
|
+
onClick: (e) => handleInputClick(e, effectiveHidden, value2),
|
|
46988
47005
|
value: shownValue,
|
|
46989
47006
|
readOnly: true
|
|
46990
47007
|
}
|
|
46991
47008
|
) }),
|
|
46992
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "text", onClick: onToggle, children: isHidden ? /* @__PURE__ */ jsxRuntimeExports.jsx(EyeOutlined, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(EyeInvisibleOutlined, {}) })
|
|
47009
|
+
!hideEye && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "text", onClick: onToggle, children: isHidden ? /* @__PURE__ */ jsxRuntimeExports.jsx(EyeOutlined, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(EyeInvisibleOutlined, {}) })
|
|
46993
47010
|
] });
|
|
46994
47011
|
};
|
|
46995
47012
|
if (reqIndex && jsonPathToSecrets) {
|
|
@@ -47019,7 +47036,7 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47019
47036
|
});
|
|
47020
47037
|
const shouldDecodeObject = type !== "plain";
|
|
47021
47038
|
const secretValue = decodeIfBase64(parsedValue, shouldDecodeObject);
|
|
47022
|
-
const hiddenForKey = hiddenByKey[key] ??
|
|
47039
|
+
const hiddenForKey = hiddenByKey[key] ?? hiddenDefault;
|
|
47023
47040
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
47024
47041
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { strong: true, style: textStyle, children: key }),
|
|
47025
47042
|
renderSecretField({
|
|
@@ -47027,7 +47044,7 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47027
47044
|
isHidden: hiddenForKey,
|
|
47028
47045
|
onToggle: () => setHiddenByKey((prevState) => ({
|
|
47029
47046
|
...prevState,
|
|
47030
|
-
[key]: !(prevState[key] ??
|
|
47047
|
+
[key]: !(prevState[key] ?? hiddenDefault)
|
|
47031
47048
|
}))
|
|
47032
47049
|
})
|
|
47033
47050
|
] }, key);
|
|
@@ -78347,7 +78364,7 @@ const TolerationsModal = ({
|
|
|
78347
78364
|
};
|
|
78348
78365
|
|
|
78349
78366
|
const LazyEnrichedTableModal = lazy(
|
|
78350
|
-
() => import('./index-
|
|
78367
|
+
() => import('./index-DceGWewg.mjs').then((mod) => ({ default: mod.EnrichedTableModal }))
|
|
78351
78368
|
);
|
|
78352
78369
|
const renderActiveType = (activeType, extraProps) => {
|
|
78353
78370
|
if (!activeType) return null;
|
|
@@ -85634,8 +85651,8 @@ const MarketplaceCard = ({
|
|
|
85634
85651
|
namespace,
|
|
85635
85652
|
apiGroup,
|
|
85636
85653
|
apiVersion: apiVersion || "",
|
|
85637
|
-
plural:
|
|
85638
|
-
isEnabled: Boolean(apiVersion && addedMode && type !== "direct")
|
|
85654
|
+
plural: plural || "",
|
|
85655
|
+
isEnabled: Boolean(apiVersion && plural && addedMode && type !== "direct")
|
|
85639
85656
|
});
|
|
85640
85657
|
const isAddedMode = Boolean(addedMode);
|
|
85641
85658
|
const isDirectType = type === "direct";
|
|
@@ -89758,4 +89775,4 @@ const usePluginManifest = ({
|
|
|
89758
89775
|
};
|
|
89759
89776
|
|
|
89760
89777
|
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, parseQuotaValueMemoryAndStorage 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, getEnrichedColumns as aB, getEnrichedColumnsWithControls as aC, YamlEditorSingleton$1 as aD, BlackholeFormProvider as aE, BlackholeForm as aF, getObjectFormItemsDraft as aG, MarketPlace as aH, MarketplaceCard as aI, ProjectInfoCard as aJ, PodTerminal as aK, NodeTerminal as aL, PodLogs as aM, PodLogsMonaco as aN, VMVNC as aO, Search as aP, Events as aQ, DynamicRenderer as aR, DynamicComponents as aS, DynamicRendererWithProviders as aT, prepareTemplate as aU, isFlatObject as aV, filterSelectOptions as aW, getStringByName as aX, floorToDecimal as aY, parseQuotaValue as aZ, parseQuotaValueCpu 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, normalizeValuesForQuotasToNumber as b0, getAllPathsFromObj as b1, getPrefixSubarrays as b2, groupsToTreeData as b3, getBuiltinTreeData as b4, getGroupsByCategory as b5, createContextFactory as b6, prepareUrlsToFetchForDynamicRenderer as b7, deepMerge as b8, getSortedKinds as b9, getSortedKindsAll as ba, hslFromString as bb, getUppercase as bc, kindByGvr as bd, pluralByKind as be, namespacedByGvr as bf, getLinkToBuiltinForm as bg, getLinkToApiForm as bh, isMultilineString as bi, isMultilineFromYaml as bj, includesArray as bk, getResourceLink as bl, getNamespaceLink as bm, convertBytes as bn, formatBytesAuto as bo, toBytes as bp, convertStorage as bq, parseValueWithUnit as br, convertCores as bs, formatCoresAuto as bt, toCores as bu, convertCompute as bv, parseCoresWithUnit as bw, formatDateAuto as bx, isValidRFC3339 as by, 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 };
|
|
89761
|
-
//# sourceMappingURL=index-
|
|
89778
|
+
//# sourceMappingURL=index-Cr6rlEiJ.mjs.map
|