@prorobotech/openapi-k8s-toolkit 1.4.0-alpha.32 → 1.4.0-alpha.33
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-DwtlhYg9.mjs → index-C8Shx6eo.mjs} +2 -2
- package/dist/{index-DwtlhYg9.mjs.map → index-C8Shx6eo.mjs.map} +1 -1
- package/dist/{index-66OGJ33J.mjs → index-DstjN_y0.mjs} +20 -5
- package/dist/{index-66OGJ33J.mjs.map → index-DstjN_y0.mjs.map} +1 -1
- package/dist/openapi-k8s-toolkit.es.js +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +18 -3
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/BlackholeFormProvider.d.ts +1 -0
- package/dist/types/localTypes/bff/form.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { af as BackToDefaultIcon, aM as BlackholeForm, aL as BlackholeFormProvider, aH as ClusterListTable, ac as ConfirmModal, aq as ContentCard, aw as CursorDefaultDiv, au as CursorPointerTag, av as CursorPointerTagMinContent, at as CustomSelect, D as DeleteIcon, l as DeleteModal, n as DeleteModalMany, ae as DownIcon, aZ as DynamicComponents, aY as DynamicRenderer, a_ as DynamicRendererWithProviders, ap as EarthIcon, h as EditIcon, aG as EnrichedTable, E as EnrichedTableProvider, ay as ErrorBoundary, az as ErrorBoundaryWithDataReset, aX as Events, ar as FlexGrow, ak as LockedIcon, ao as LookingGlassIcon, aC as ManageableBreadcrumbs, aA as ManageableBreadcrumbsProvider, aF as ManageableSidebar, aD as ManageableSidebarProvider, aO as MarketPlace, aP as MarketplaceCard, aj as MinusIcon, aS as NodeTerminal, i as PaddingContainer, am as PauseCircleIcon, ai as PlusIcon, aT as PodLogs, aU as PodLogsMonaco, aR as PodTerminal, aQ as ProjectInfoCard, ax as ResourceLink, an as ResumeCircleIcon, aW as Search, aa as Spacer, ag as SuccessIcon, ab as TreeWithSearch, as as UncontrolledSelect, al as UnlockedIcon, ad as UpIcon, aV as VMVNC, aK as YamlEditorSingleton, M as checkIfApiInstanceNamespaceScoped, N as checkIfBuiltInInstanceNamespaceScoped, I as checkPermission, bu as convertBytes, bC as convertCompute, bz as convertCores, bx as convertStorage, bd as createContextFactory, q as createNewEntry, bf as deepMerge, t as deleteEntry, ah as feedbackIcons, K as filterIfApiInstanceNamespaceScoped, L as filterIfBuiltInInstanceNamespaceScoped, b1 as filterSelectOptions, b3 as floorToDecimal, bv as formatBytesAuto, bA as formatCoresAuto, bE as formatDateAuto, b8 as getAllPathsFromObj, w as getApiResourceSingle, B as getApiResourceTypes, C as getApiResourceTypesByApiGroup, v as getApiResources, y as getBuiltinResourceSingle, F as getBuiltinResourceTypes, x as getBuiltinResources, bb as getBuiltinTreeData, o as getClusterList, G as getCrdData, A as getCrdResourceSingle, z as getCrdResources, H as getDirectUnknownResource, aI as getEnrichedColumns, aJ as getEnrichedColumnsWithControls, bc as getGroupsByCategory, O as getKinds, bo as getLinkToApiForm, bn as getLinkToBuiltinForm, k as getLinkToForm, bt as getNamespaceLink, aN as getObjectFormItemsDraft, b9 as getPrefixSubarrays, bs as getResourceLink, bg as getSortedKinds, bh as getSortedKindsAll, b2 as getStringByName, J as getSwagger, bj as getUppercase, ba as groupsToTreeData, bi as hslFromString, br as includesArray, b0 as isFlatObject, bq as isMultilineFromYaml, bp as isMultilineString, bF as isValidRFC3339, bk as kindByGvr, bm as namespacedByGvr, b7 as normalizeValuesForQuotasToNumber, bD as parseCoresWithUnit, b4 as parseQuotaValue, b5 as parseQuotaValueCpu, b6 as parseQuotaValueMemoryAndStorage, by as parseValueWithUnit, bl as pluralByKind, aB as prepareDataForManageableBreadcrumbs, aE as prepareDataForManageableSidebar, a$ as prepareTemplate, be as prepareUrlsToFetchForDynamicRenderer, bw as toBytes, bB as toCores, r as updateEntry, T as useApiResourceSingle, Z as useApiResourceTypesByGroup, S as useApiResources, Y as useApisResourceTypes, V as useBuiltinResourceSingle, $ as useBuiltinResourceTypes, U as useBuiltinResources, Q as useClusterList, a0 as useCrdData, X as useCrdResourceSingle, W as useCrdResources, e as useDirectUnknownResource, a2 as useInfiniteSentinel, f as useK8sSmartResource, a3 as useK8sVerbs, a7 as useKinds, a8 as useKindsRaw, a1 as useListWatch, a4 as useManyK8sSmartResource, d as usePermissions, a9 as usePluginManifest, a6 as useResourceScope, a5 as useSmartResourceParams } from './index-
|
|
1
|
+
export { af as BackToDefaultIcon, aM as BlackholeForm, aL as BlackholeFormProvider, aH as ClusterListTable, ac as ConfirmModal, aq as ContentCard, aw as CursorDefaultDiv, au as CursorPointerTag, av as CursorPointerTagMinContent, at as CustomSelect, D as DeleteIcon, l as DeleteModal, n as DeleteModalMany, ae as DownIcon, aZ as DynamicComponents, aY as DynamicRenderer, a_ as DynamicRendererWithProviders, ap as EarthIcon, h as EditIcon, aG as EnrichedTable, E as EnrichedTableProvider, ay as ErrorBoundary, az as ErrorBoundaryWithDataReset, aX as Events, ar as FlexGrow, ak as LockedIcon, ao as LookingGlassIcon, aC as ManageableBreadcrumbs, aA as ManageableBreadcrumbsProvider, aF as ManageableSidebar, aD as ManageableSidebarProvider, aO as MarketPlace, aP as MarketplaceCard, aj as MinusIcon, aS as NodeTerminal, i as PaddingContainer, am as PauseCircleIcon, ai as PlusIcon, aT as PodLogs, aU as PodLogsMonaco, aR as PodTerminal, aQ as ProjectInfoCard, ax as ResourceLink, an as ResumeCircleIcon, aW as Search, aa as Spacer, ag as SuccessIcon, ab as TreeWithSearch, as as UncontrolledSelect, al as UnlockedIcon, ad as UpIcon, aV as VMVNC, aK as YamlEditorSingleton, M as checkIfApiInstanceNamespaceScoped, N as checkIfBuiltInInstanceNamespaceScoped, I as checkPermission, bu as convertBytes, bC as convertCompute, bz as convertCores, bx as convertStorage, bd as createContextFactory, q as createNewEntry, bf as deepMerge, t as deleteEntry, ah as feedbackIcons, K as filterIfApiInstanceNamespaceScoped, L as filterIfBuiltInInstanceNamespaceScoped, b1 as filterSelectOptions, b3 as floorToDecimal, bv as formatBytesAuto, bA as formatCoresAuto, bE as formatDateAuto, b8 as getAllPathsFromObj, w as getApiResourceSingle, B as getApiResourceTypes, C as getApiResourceTypesByApiGroup, v as getApiResources, y as getBuiltinResourceSingle, F as getBuiltinResourceTypes, x as getBuiltinResources, bb as getBuiltinTreeData, o as getClusterList, G as getCrdData, A as getCrdResourceSingle, z as getCrdResources, H as getDirectUnknownResource, aI as getEnrichedColumns, aJ as getEnrichedColumnsWithControls, bc as getGroupsByCategory, O as getKinds, bo as getLinkToApiForm, bn as getLinkToBuiltinForm, k as getLinkToForm, bt as getNamespaceLink, aN as getObjectFormItemsDraft, b9 as getPrefixSubarrays, bs as getResourceLink, bg as getSortedKinds, bh as getSortedKindsAll, b2 as getStringByName, J as getSwagger, bj as getUppercase, ba as groupsToTreeData, bi as hslFromString, br as includesArray, b0 as isFlatObject, bq as isMultilineFromYaml, bp as isMultilineString, bF as isValidRFC3339, bk as kindByGvr, bm as namespacedByGvr, b7 as normalizeValuesForQuotasToNumber, bD as parseCoresWithUnit, b4 as parseQuotaValue, b5 as parseQuotaValueCpu, b6 as parseQuotaValueMemoryAndStorage, by as parseValueWithUnit, bl as pluralByKind, aB as prepareDataForManageableBreadcrumbs, aE as prepareDataForManageableSidebar, a$ as prepareTemplate, be as prepareUrlsToFetchForDynamicRenderer, bw as toBytes, bB as toCores, r as updateEntry, T as useApiResourceSingle, Z as useApiResourceTypesByGroup, S as useApiResources, Y as useApisResourceTypes, V as useBuiltinResourceSingle, $ as useBuiltinResourceTypes, U as useBuiltinResources, Q as useClusterList, a0 as useCrdData, X as useCrdResourceSingle, W as useCrdResources, e as useDirectUnknownResource, a2 as useInfiniteSentinel, f as useK8sSmartResource, a3 as useK8sVerbs, a7 as useKinds, a8 as useKindsRaw, a1 as useListWatch, a4 as useManyK8sSmartResource, d as usePermissions, a9 as usePluginManifest, a6 as useResourceScope, a5 as useSmartResourceParams } from './index-DstjN_y0.mjs';
|
|
2
2
|
//# sourceMappingURL=openapi-k8s-toolkit.es.js.map
|
|
@@ -87035,6 +87035,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
87035
87035
|
const BlackholeFormProvider = ({
|
|
87036
87036
|
theme,
|
|
87037
87037
|
cluster,
|
|
87038
|
+
partsOfUrl,
|
|
87038
87039
|
urlParams,
|
|
87039
87040
|
urlParamsForPermissions,
|
|
87040
87041
|
data,
|
|
@@ -87051,6 +87052,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
87051
87052
|
const [isNamespaced, setIsNamespaced] = React$1.useState(false);
|
|
87052
87053
|
const [isError, setIsError] = React$1.useState(false);
|
|
87053
87054
|
const hasAppliedBackendModeRef = React$1.useRef(false);
|
|
87055
|
+
const requestIdRef = React$1.useRef(0);
|
|
87054
87056
|
const { data: overridesData, isLoading: overridesLoading } = useK8sSmartResource({
|
|
87055
87057
|
cluster,
|
|
87056
87058
|
apiGroup: forcingCustomization.baseApiGroup,
|
|
@@ -87112,18 +87114,25 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
87112
87114
|
React$1.useEffect(() => {
|
|
87113
87115
|
if (!cluster) {
|
|
87114
87116
|
setIsLoading(false);
|
|
87115
|
-
return;
|
|
87117
|
+
return void 0;
|
|
87116
87118
|
}
|
|
87117
|
-
if (!isResolutionReady) return;
|
|
87118
|
-
if (customizationId && (!resolvedCustomizationId || !resolvedCustomizationIdPrefill)) return;
|
|
87119
|
+
if (!isResolutionReady) return void 0;
|
|
87120
|
+
if (customizationId && (!resolvedCustomizationId || !resolvedCustomizationIdPrefill)) return void 0;
|
|
87121
|
+
requestIdRef.current += 1;
|
|
87122
|
+
const requestId = requestIdRef.current;
|
|
87123
|
+
let isActive = true;
|
|
87124
|
+
hasAppliedBackendModeRef.current = false;
|
|
87125
|
+
setIsNamespaced(false);
|
|
87119
87126
|
setIsLoading(true);
|
|
87120
87127
|
const payload = {
|
|
87121
87128
|
data,
|
|
87122
87129
|
cluster,
|
|
87130
|
+
partsOfUrl,
|
|
87123
87131
|
customizationId: resolvedCustomizationId,
|
|
87124
87132
|
customizationIdPrefill: resolvedCustomizationIdPrefill
|
|
87125
87133
|
};
|
|
87126
87134
|
axios.post(`/api/clusters/${cluster}/openapi-bff/forms/formPrepare/prepareFormProps`, payload).then(({ data: data2 }) => {
|
|
87135
|
+
if (!isActive || requestId !== requestIdRef.current) return;
|
|
87127
87136
|
if (data2.isNamespaced) {
|
|
87128
87137
|
setIsNamespaced(true);
|
|
87129
87138
|
}
|
|
@@ -87150,12 +87159,18 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
|
|
|
87150
87159
|
setIsError(void 0);
|
|
87151
87160
|
}
|
|
87152
87161
|
}).catch((e) => {
|
|
87162
|
+
if (!isActive || requestId !== requestIdRef.current) return;
|
|
87153
87163
|
setIsError(e.message);
|
|
87154
87164
|
}).finally(() => {
|
|
87165
|
+
if (!isActive || requestId !== requestIdRef.current) return;
|
|
87155
87166
|
setIsLoading(false);
|
|
87156
87167
|
});
|
|
87168
|
+
return () => {
|
|
87169
|
+
isActive = false;
|
|
87170
|
+
};
|
|
87157
87171
|
}, [
|
|
87158
87172
|
cluster,
|
|
87173
|
+
partsOfUrl,
|
|
87159
87174
|
data,
|
|
87160
87175
|
customizationId,
|
|
87161
87176
|
resolvedCustomizationId,
|