@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.20 → 0.0.1-alpha.21

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.
Files changed (38) hide show
  1. package/dist/types/api/getClusterList.d.ts +1 -1
  2. package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/CustomCollapse.d.ts +1 -1
  3. package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/DebugNameViewer.d.ts +1 -1
  4. package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/PersistedCheckbox.d.ts +1 -1
  5. package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/FormBooleanInput.d.ts +1 -1
  6. package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/FormEnumStringInput.d.ts +1 -1
  7. package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +2 -2
  8. package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +1 -1
  9. package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +1 -1
  10. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/FormRangeInput.d.ts +2 -2
  11. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/RangeInput.d.ts +1 -1
  12. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/utils.d.ts +1 -1
  13. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +1 -1
  14. package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +1 -1
  15. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +3 -3
  16. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/guards.d.ts +1 -1
  17. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +2 -2
  18. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/BlackholeFormDataProvider.d.ts +3 -3
  19. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/guards.d.ts +1 -1
  20. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/helpers.d.ts +1 -1
  21. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/utils.d.ts +2 -2
  22. package/dist/types/components/molecules/EnrichedTable/EnrichedTable.d.ts +1 -1
  23. package/dist/types/components/molecules/EnrichedTable/utils.d.ts +1 -1
  24. package/dist/types/components/molecules/EnrichedTableProvider/EnrichedTableProvider.d.ts +2 -2
  25. package/dist/types/components/molecules/EnrichedTableProvider/utils.d.ts +2 -2
  26. package/dist/types/components/organisms/DynamicComponents/DynamicComponents.d.ts +1 -1
  27. package/dist/types/components/organisms/DynamicRenderer/DynamicRenderer.d.ts +1 -1
  28. package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.d.ts +1 -1
  29. package/dist/types/hooks/useApiResource.d.ts +1 -1
  30. package/dist/types/hooks/useBuiltinResourceTypes.d.ts +1 -1
  31. package/dist/types/hooks/useCrdResource.d.ts +1 -1
  32. package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +1 -1
  33. package/dist/types/utils/getStringByName/getStringByName.d.ts +1 -1
  34. package/dist/types/utils/parseColumnsOverrides/guards.d.ts +1 -1
  35. package/dist/types/utils/parseColumnsOverrides/parseColumnsOverrides.d.ts +2 -2
  36. package/dist/types/utils/prepareTableMappings/prepareTableMappings.d.ts +1 -1
  37. package/dist/types/utils/removeEmptyFormValues/removeEmptyFormValues.d.ts +1 -1
  38. package/package.json +2 -2
@@ -1,3 +1,3 @@
1
1
  import { AxiosResponse } from 'axios';
2
- import { TClusterList } from 'localTypes/clusterList';
2
+ import { TClusterList } from '../localTypes/clusterList';
3
3
  export declare const getClusterList: () => Promise<AxiosResponse<TClusterList>>;
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode, PropsWithChildren } from 'react';
2
- import { TFormName, TExpandedControls } from 'localTypes/form';
2
+ import { TFormName, TExpandedControls } from '../../../../../localTypes/form';
3
3
  type TCustomCollapseProps = PropsWithChildren<{
4
4
  title: string | ReactNode;
5
5
  formName: TFormName;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TFormName } from 'localTypes/form';
2
+ import { TFormName } from '../../../../../localTypes/form';
3
3
  type TDebugNameViewerProps = {
4
4
  name: TFormName;
5
5
  arrKey?: number;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TFormName, TPersistedControls } from 'localTypes/form';
2
+ import { TFormName, TPersistedControls } from '../../../../../localTypes/form';
3
3
  type TPersistedCheckboxProps = {
4
4
  formName: TFormName;
5
5
  persistedControls: TPersistedControls;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TFormName } from 'localTypes/form';
2
+ import { TFormName } from '../../../../../localTypes/form';
3
3
  type TFormBooleanInputProps = {
4
4
  name: TFormName;
5
5
  arrKey?: number;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TFormName, TPersistedControls } from 'localTypes/form';
2
+ import { TFormName, TPersistedControls } from '../../../../../localTypes/form';
3
3
  type TFormEnumStringInputProps = {
4
4
  name: TFormName;
5
5
  arrKey?: number;
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
- import { TFormName, TPersistedControls, TUrlParams } from 'localTypes/form';
3
- import { TListInputCustomProps } from 'localTypes/formExtensions';
2
+ import { TFormName, TPersistedControls, TUrlParams } from '../../../../../localTypes/form';
3
+ import { TListInputCustomProps } from '../../../../../localTypes/formExtensions';
4
4
  type TFormListInputProps = {
5
5
  name: TFormName;
6
6
  arrKey?: number;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TFormName, TNamespaceData } from 'localTypes/form';
2
+ import { TFormName, TNamespaceData } from '../../../../../localTypes/form';
3
3
  type TFormNamespaceInputProps = {
4
4
  name: TFormName;
5
5
  isHidden?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TFormName, TPersistedControls } from 'localTypes/form';
2
+ import { TFormName, TPersistedControls } from '../../../../../localTypes/form';
3
3
  type TFormNumberItemProps = {
4
4
  isNumber?: boolean;
5
5
  name: TFormName;
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
- import { TFormName, TPersistedControls, TUrlParams } from 'localTypes/form';
3
- import { TRangeInputCustomProps } from 'localTypes/formExtensions';
2
+ import { TFormName, TPersistedControls, TUrlParams } from '../../../../../localTypes/form';
3
+ import { TRangeInputCustomProps } from '../../../../../localTypes/formExtensions';
4
4
  type TFormRangeInputProps = {
5
5
  name: TFormName;
6
6
  arrKey?: number;
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { SliderBaseProps } from 'antd/es/slider';
3
- import { TFormName, TPersistedControls } from 'localTypes/form';
3
+ import { TFormName, TPersistedControls } from '../../../../../../../localTypes/form';
4
4
  export type TRangeInputProps = {
5
5
  name: TFormName;
6
6
  arrKey?: number;
@@ -1,4 +1,4 @@
1
- import { TRangeInputCustomValuesBlock } from 'localTypes/formExtensions';
1
+ import { TRangeInputCustomValuesBlock } from '../../../../../localTypes/formExtensions';
2
2
  export declare const prepareMinAndMaxValues: ({ minMaxAndStep, minValueObj, minSubstractFirstValueObj, minSubstractSecondValueObj, minAddFirstValueObj, minAddSecondValueObj, maxValueObj, maxSubstractFirstValueObj, maxSubstractSecondValueObj, maxAddFirstValueObj, maxAddSecondValueObj, logic, }: {
3
3
  minMaxAndStep: TRangeInputCustomValuesBlock;
4
4
  minValueObj: unknown;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TFormName, TPersistedControls } from 'localTypes/form';
2
+ import { TFormName, TPersistedControls } from '../../../../../localTypes/form';
3
3
  type TFormStringInputProps = {
4
4
  name: TFormName;
5
5
  arrKey?: number;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TJSON } from 'localTypes/JSON';
2
+ import { TJSON } from '../../../../../localTypes/JSON';
3
3
  type TYamlEditorSingletonProps = {
4
4
  theme: 'light' | 'dark';
5
5
  cluster: string;
@@ -1,8 +1,8 @@
1
1
  import { FC } from 'react';
2
2
  import { OpenAPIV2 } from 'openapi-types';
3
- import { TJSON } from 'localTypes/JSON';
4
- import { TUrlParams } from 'localTypes/form';
5
- import { TFormsPrefillsData } from 'localTypes/formExtensions';
3
+ import { TJSON } from '../../../../../localTypes/JSON';
4
+ import { TUrlParams } from '../../../../../localTypes/form';
5
+ import { TFormsPrefillsData } from '../../../../../localTypes/formExtensions';
6
6
  type TBlackholeFormCreateProps = {
7
7
  cluster: string;
8
8
  theme: 'light' | 'dark';
@@ -1,2 +1,2 @@
1
- import { TFormPrefill } from 'localTypes/formExtensions';
1
+ import { TFormPrefill } from '../../../../../localTypes/formExtensions';
2
2
  export declare const isFormPrefill: (root: unknown) => root is TFormPrefill;
@@ -1,6 +1,6 @@
1
1
  import { OpenAPIV2 } from 'openapi-types';
2
- import { TListInputCustomProps, TRangeInputCustomProps } from 'localTypes/formExtensions';
3
- import { TFormName, TExpandedControls, TNamespaceData, TPersistedControls, TUrlParams } from 'localTypes/form';
2
+ import { TListInputCustomProps, TRangeInputCustomProps } from '../../../../../localTypes/formExtensions';
3
+ import { TFormName, TExpandedControls, TNamespaceData, TPersistedControls, TUrlParams } from '../../../../../localTypes/form';
4
4
  export declare const getStringFormItemFromSwagger: ({ name, arrKey, arrName, persistName, required, forceNonRequired, isHidden, description, namespaceData, isAdditionalProperties, removeField, persistedControls, }: {
5
5
  name: TFormName;
6
6
  arrKey?: number | undefined;
@@ -1,8 +1,8 @@
1
1
  import { FC } from 'react';
2
- import { TJSON } from 'localTypes/JSON';
2
+ import { TJSON } from '../../../../../localTypes/JSON';
3
3
  import { OpenAPIV2 } from 'openapi-types';
4
- import { TUrlParams } from 'localTypes/form';
5
- import { TFormsPrefillsData, TFormsOverridesData } from 'localTypes/formExtensions';
4
+ import { TUrlParams } from '../../../../../localTypes/form';
5
+ import { TFormsPrefillsData, TFormsOverridesData } from '../../../../../localTypes/formExtensions';
6
6
  export type TBlackholeFormDataProviderProps = {
7
7
  theme: 'light' | 'dark';
8
8
  cluster: string;
@@ -1,2 +1,2 @@
1
- import { TFormOverride } from 'localTypes/formExtensions';
1
+ import { TFormOverride } from '../../../../../localTypes/formExtensions';
2
2
  export declare const isFormOverride: (root: unknown) => root is TFormOverride;
@@ -1,5 +1,5 @@
1
1
  import { OpenAPIV2 } from 'openapi-types';
2
- import { TJSON } from 'localTypes/JSON';
2
+ import { TJSON } from '../../../../../localTypes/JSON';
3
3
  export declare const getPathsWithAdditionalProperties: ({ properties, currentPath, result, }: {
4
4
  properties: OpenAPIV2.SchemaObject['properties'];
5
5
  currentPath?: (string | number)[] | undefined;
@@ -1,6 +1,6 @@
1
- import { TJSON } from 'localTypes/JSON';
1
+ import { TJSON } from '../../../../../localTypes/JSON';
2
2
  import { OpenAPIV2 } from 'openapi-types';
3
- import { TFormOverride } from 'localTypes/formExtensions';
3
+ import { TFormOverride } from '../../../../../localTypes/formExtensions';
4
4
  export declare const getSwaggerPathAndIsNamespaceScoped: ({ swagger, data, }: {
5
5
  swagger: OpenAPIV2.Document;
6
6
  data: {
@@ -1,6 +1,6 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import { TableProps, TablePaginationConfig } from 'antd';
3
- import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues } from 'localTypes/richTable';
3
+ import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues } from '../../../localTypes/richTable';
4
4
  export type TEnrichedTableProps = {
5
5
  theme: 'light' | 'dark';
6
6
  baseprefix?: string;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { NavigateFunction } from 'react-router-dom';
3
3
  import { TableProps } from 'antd';
4
- import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues } from 'localTypes/richTable';
4
+ import { TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsUndefinedValues } from '../../../localTypes/richTable';
5
5
  export declare const getEnrichedColumns: ({ columns, additionalPrinterColumnsUndefinedValues, additionalPrinterColumnsTrimLengths, additionalPrinterColumnsColWidths, }: {
6
6
  columns: TableProps['columns'];
7
7
  additionalPrinterColumnsUndefinedValues?: TAdditionalPrinterColumnsUndefinedValues | undefined;
@@ -1,7 +1,7 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import { TablePaginationConfig } from 'antd';
3
- import { TAdditionalPrinterColumns, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsColWidths } from 'localTypes/richTable';
4
- import { TJSON } from 'localTypes/JSON';
3
+ import { TAdditionalPrinterColumns, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsColWidths } from '../../../localTypes/richTable';
4
+ import { TJSON } from '../../../localTypes/JSON';
5
5
  export type TEnrichedTableProviderProps = {
6
6
  theme: 'light' | 'dark';
7
7
  baseprefix?: string;
@@ -1,6 +1,6 @@
1
1
  import { TableProps } from 'antd';
2
- import { TJSON } from 'localTypes/JSON';
3
- import { TAdditionalPrinterColumns } from 'localTypes/richTable';
2
+ import { TJSON } from '../../../localTypes/JSON';
3
+ import { TAdditionalPrinterColumns } from '../../../localTypes/richTable';
4
4
  export declare const prepareDataForEnrichedColumns: ({ dataItems, resourceSchema, dataForControls, additionalPrinterColumns, }: {
5
5
  dataItems: TJSON[];
6
6
  resourceSchema?: TJSON | undefined;
@@ -1,3 +1,3 @@
1
- import { TRendererComponents } from 'localTypes/dynamicRender';
1
+ import { TRendererComponents } from '../../../localTypes/dynamicRender';
2
2
  import { TDynamicComponentsAppTypeMap } from './types';
3
3
  export declare const DynamicComponents: TRendererComponents<TDynamicComponentsAppTypeMap>;
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { TItemTypeMap, TRenderableItem, TRendererComponents } from 'localTypes/dynamicRender';
2
+ import { TItemTypeMap, TRenderableItem, TRendererComponents } from '../../../localTypes/dynamicRender';
3
3
  export type TDynamicRendererProps<T extends TItemTypeMap> = {
4
4
  items: readonly TRenderableItem<T>[];
5
5
  components: TRendererComponents<T>;
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { TItemTypeMap } from 'localTypes/dynamicRender';
2
+ import { TItemTypeMap } from '../../../localTypes/dynamicRender';
3
3
  import { TDynamicRendererProps } from '../DynamicRenderer';
4
4
  export declare const DynamicRendererWithProviders: <T extends TItemTypeMap>(props: TDynamicRendererProps<T> & {
5
5
  urlsToFetch: string[];
@@ -1,4 +1,4 @@
1
- import { TApiResources } from 'localTypes/k8s';
1
+ import { TApiResources } from '../localTypes/k8s';
2
2
  export declare const useApiResources: ({ clusterName, namespace, apiGroup, apiVersion, typeName, limit, refetchInterval, }: {
3
3
  clusterName: string;
4
4
  namespace?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { TBuiltinResourceTypeList } from 'localTypes/k8s';
1
+ import { TBuiltinResourceTypeList } from '../localTypes/k8s';
2
2
  export declare const useBuiltinResourceTypes: ({ clusterName }: {
3
3
  clusterName: string;
4
4
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResourceTypeList, Error>;
@@ -1,4 +1,4 @@
1
- import { TJSON } from 'localTypes/JSON';
1
+ import { TJSON } from '../localTypes/JSON';
2
2
  export declare const useCrdResources: <T = TJSON[]>({ clusterName, namespace, apiGroup, apiVersion, crdName, refetchInterval, }: {
3
3
  clusterName: string;
4
4
  namespace?: string | undefined;
@@ -1,5 +1,5 @@
1
1
  import { OpenAPIV2 } from 'openapi-types';
2
- import { TApiGroupList, TBuiltinResourceTypeList } from 'localTypes/k8s';
2
+ import { TApiGroupList, TBuiltinResourceTypeList } from '../../localTypes/k8s';
3
3
  export declare const getGroupsByCategory: ({ swagger, apiGroupListData, builtinResourceTypesData, namespace, noncrds, }: {
4
4
  swagger: OpenAPIV2.Document | undefined;
5
5
  namespace?: string | undefined;
@@ -1,2 +1,2 @@
1
- import { TFormName } from 'localTypes/form';
1
+ import { TFormName } from '../../localTypes/form';
2
2
  export declare const getStringByName: (name: TFormName) => string;
@@ -1,4 +1,4 @@
1
- import { TAdditionalPrinterColumns, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsColWidths } from 'localTypes/richTable';
1
+ import { TAdditionalPrinterColumns, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsColWidths } from '../../localTypes/richTable';
2
2
  export declare const isWithAdditionalPrinterColumns: (x: any) => x is {
3
3
  spec: {
4
4
  additionalPrinterColumns: TAdditionalPrinterColumns;
@@ -1,5 +1,5 @@
1
- import { TCrdResources } from 'localTypes/k8s';
2
- import { TAdditionalPrinterColumns, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsTrimLengths } from 'localTypes/richTable';
1
+ import { TCrdResources } from '../../localTypes/k8s';
2
+ import { TAdditionalPrinterColumns, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsColWidths, TAdditionalPrinterColumnsTrimLengths } from '../../localTypes/richTable';
3
3
  export declare const parseCustomOverrides: ({ columnsOverridesData, overrideType, }: {
4
4
  columnsOverridesData?: {
5
5
  kind: string;
@@ -1,4 +1,4 @@
1
- import { TTableMappingData } from 'localTypes/richTable';
1
+ import { TTableMappingData } from '../../localTypes/richTable';
2
2
  export declare const prepareTableMappings: ({ data, clusterName, projectName, instanceName, namespace, syntheticProject, entryType, apiGroup, apiVersion, typeName, entryName, apiExtensionVersion, crdName, pathname, }: {
3
3
  data: Partial<TTableMappingData>[];
4
4
  clusterName?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { TFormName } from 'localTypes/form';
1
+ import { TFormName } from '../../localTypes/form';
2
2
  export declare const removeEmptyFormValues: (object: any, persistedKeys: TFormName[], currentPath?: (string | number)[]) => any;
3
3
  export declare const renameBrokenFieldBack: (object: any) => any;
4
4
  export declare const renameBrokenFieldBackToFormAgain: (object: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "0.0.1-alpha.20",
3
+ "version": "0.0.1-alpha.21",
4
4
  "description": "ProRobotech OpenAPI k8s tools",
5
5
  "main": "dist/openapi-k8s-toolkit.cjs.js",
6
6
  "module": "dist/openapi-k8s-toolkit.es.js",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "scripts": {
16
16
  "dev": "cross-env BASEPREFIX=/toolkit vite --open --port 3002 --strictPort",
17
- "build": "vite build && tsc && tsc-alias",
17
+ "build": "vite build && tsc && tsc-alias -p tsconfig.json",
18
18
  "serve": "vite preview --port 3002 --strictPort",
19
19
  "preview": "vite preview --port 3002 --strictPort",
20
20
  "tsc": "tsc --project tsconfig.json",