@prorobotech/openapi-k8s-toolkit 1.1.0-alpha.11 → 1.1.0-alpha.12

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.
@@ -15,3 +15,7 @@ export declare const patchEntryWithReplaceOp: <T>({ endpoint, pathToValue, body,
15
15
  pathToValue: string;
16
16
  body: unknown;
17
17
  }) => Promise<AxiosResponse<T, any, {}>>;
18
+ export declare const patchEntryWithDeleteOp: <T>({ endpoint, pathToValue, }: {
19
+ endpoint: string;
20
+ pathToValue: string;
21
+ }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,3 +1,2 @@
1
1
  export { BlackholeFormProvider, BlackholeForm, getObjectFormItemsDraft } from './organisms';
2
2
  export type { TBlackholeFormProviderProps, TBlackholeFormProps } from './organisms';
3
- export { YamlEditorSingleton } from './molecules';
@@ -1,5 +1,4 @@
1
1
  export { YamlEditor } from './YamlEditor';
2
- export { YamlEditorSingleton } from './YamlEditorSingleton';
3
2
  export { FormListInput } from './FormListInput';
4
3
  export { FormRangeInput } from './FormRangeInput';
5
4
  export { FormNamespaceInput } from './FormNamespaceInput';
@@ -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;
@@ -4,7 +4,8 @@ export { ManageableSidebarProvider, prepareDataForManageableSidebar, ManageableS
4
4
  export type { TManageableSidebarProviderProps, TManageableSidebarProps } from './ManageableSidebar';
5
5
  export { EnrichedTableProvider, EnrichedTable, getEnrichedColumns, getEnrichedColumnsWithControls, } from './EnrichedTable';
6
6
  export type { TEnrichedTableProviderProps, TEnrichedTableProps } from './EnrichedTable';
7
- export { BlackholeFormProvider, BlackholeForm, getObjectFormItemsDraft, YamlEditorSingleton } from './BlackholeForm';
7
+ export { YamlEditorSingleton } from './YamlEditorSingleton';
8
+ export { BlackholeFormProvider, BlackholeForm, getObjectFormItemsDraft } from './BlackholeForm';
8
9
  export type { TBlackholeFormProviderProps, TBlackholeFormProps } from './BlackholeForm';
9
10
  export { MarketPlace, MarketplaceCard } from './MarketPlace';
10
11
  export type { TMarketPlaceProps, TMarketplaceCardProps } from './MarketPlace';
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { TDynamicComponentsAppTypeMap } from '../../types';
3
+ export declare const Toggler: FC<{
4
+ data: TDynamicComponentsAppTypeMap['Toggler'];
5
+ children?: any;
6
+ }>;
@@ -0,0 +1 @@
1
+ export { Toggler } from './Toggler';
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { TDynamicComponentsAppTypeMap } from '../../types';
3
+ export declare const TogglerSegmented: FC<{
4
+ data: TDynamicComponentsAppTypeMap['TogglerSegmented'];
5
+ children?: any;
6
+ }>;
@@ -0,0 +1 @@
1
+ export { TogglerSegmented } from './TogglerSegmented';
@@ -35,3 +35,5 @@ export { SecretBase64Plain } from './SecretBase64Plain';
35
35
  export { ResourceBadge } from './ResourceBadge';
36
36
  export { Events } from './Events';
37
37
  export { OwnerRefs } from './OwnerRefs';
38
+ export { Toggler } from './Toggler';
39
+ export { TogglerSegmented } from './TogglerSegmented';
@@ -354,4 +354,43 @@ export type TDynamicComponentsAppTypeMap = {
354
354
  baseNavigationPluralName: string;
355
355
  baseNavigationSpecificName: string;
356
356
  };
357
+ Toggler: {
358
+ id: number | string;
359
+ reqIndex: string;
360
+ jsonPathToValue: string;
361
+ criteria: {
362
+ type: 'forSuccess' | 'forError';
363
+ operator: 'exists' | 'equals';
364
+ valueToCompare?: string;
365
+ };
366
+ notificationSuccessMessage?: string;
367
+ notificationErrorMessage?: string;
368
+ notificationSuccessMessageDescription?: string;
369
+ notificationErrorMessageDescription?: string;
370
+ containerStyle?: CSSProperties;
371
+ endpoint: string;
372
+ pathToValue: string;
373
+ valueToSubmit: {
374
+ onValue: any;
375
+ offValue?: any;
376
+ toRemoveWhenOff?: boolean;
377
+ };
378
+ };
379
+ TogglerSegmented: {
380
+ id: number | string;
381
+ reqIndex: string;
382
+ jsonPathToValue: string;
383
+ notificationSuccessMessage?: string;
384
+ notificationErrorMessage?: string;
385
+ notificationSuccessMessageDescription?: string;
386
+ notificationErrorMessageDescription?: string;
387
+ containerStyle?: CSSProperties;
388
+ endpoint: string;
389
+ pathToValue: string;
390
+ possibleValues: any[];
391
+ valuesMap?: {
392
+ value: any;
393
+ renderedValue: string | number;
394
+ }[];
395
+ };
357
396
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "1.1.0-alpha.11",
3
+ "version": "1.1.0-alpha.12",
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",