@odigos/ui-kit 0.0.189 → 0.0.191
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/CHANGELOG.md +23 -0
- package/lib/chunks/index-BgT3kLZa.js +3 -0
- package/lib/chunks/ui-components-CCA7B7ry.js +2364 -0
- package/lib/chunks/vendor-C-kwkNJP.js +1 -0
- package/lib/components/_v2/drop-data/index.d.ts +5 -1
- package/lib/components/_v2/drop-down/index.d.ts +9 -0
- package/lib/components/_v2/field-message/index.d.ts +6 -0
- package/lib/components/_v2/field-title/index.d.ts +9 -0
- package/lib/components/_v2/index.d.ts +6 -0
- package/lib/components/_v2/input/index.d.ts +3 -1
- package/lib/components/_v2/input-list/index.d.ts +15 -0
- package/lib/components/_v2/input-table/dynamic-field/index.d.ts +13 -0
- package/lib/components/_v2/input-table/index.d.ts +16 -0
- package/lib/components/_v2/input-table/types.d.ts +15 -0
- package/lib/components/_v2/island/index.d.ts +2 -1
- package/lib/components/_v2/segment/index.d.ts +2 -0
- package/lib/components/_v2/textarea/index.d.ts +11 -0
- package/lib/components/_v2/toggle/index.d.ts +2 -1
- package/lib/components/styled.d.ts +7 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/strings/index.d.ts +1 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-rule-drawer/helpers.d.ts +7 -0
- package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +10 -0
- package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/index.d.ts +3 -4
- package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/namespaces-column/index.d.ts +3 -2
- package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/workloads-column/index.d.ts +3 -2
- package/lib/containers/_v2/_drawers/edit-config-drawer/index.d.ts +12 -0
- package/lib/containers/_v2/_drawers/index.d.ts +4 -0
- package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/index.d.ts +2 -3
- package/lib/containers/_v2/_drawers/system-drawer/tokens/index.d.ts +7 -0
- package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/tokens/token-expires-at.d.ts +2 -0
- package/lib/containers/_v2/_drawers/system-drawer/tokens/token-value.d.ts +14 -0
- package/lib/containers/_v2/_forms/add-rule-form/custom-fields/code-attributes/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-rule-form/custom-fields/custom-instrumentation/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-rule-form/custom-fields/headers-collection/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-rule-form/custom-fields/index.d.ts +7 -0
- package/lib/containers/_v2/_forms/add-rule-form/custom-fields/payload-collection/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +7 -0
- package/lib/containers/_v2/_forms/index.d.ts +1 -0
- package/lib/containers/_v2/central-connections/helpers.d.ts +44 -0
- package/lib/containers/_v2/central-connections/index.d.ts +5 -4
- package/lib/containers/_v2/index.d.ts +2 -1
- package/lib/containers/_v2/pipeline-collectors/index.d.ts +1 -0
- package/lib/containers/multi-source-control/index.d.ts +1 -1
- package/lib/containers/source-drawer/describe/index.d.ts +1 -1
- package/lib/containers/toggle-dark-mode/index.d.ts +1 -3
- package/lib/containers/v2.js +42 -73
- package/lib/containers.js +114 -114
- package/lib/contexts/index.d.ts +1 -0
- package/lib/contexts/storybook-context.d.ts +8 -0
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/useActionFormData.d.ts +1 -1
- package/lib/hooks/useGenericForm.d.ts +5 -4
- package/lib/hooks.js +1 -1
- package/lib/icons.js +1 -1
- package/lib/snippets/_v2/index.d.ts +2 -0
- package/lib/snippets/_v2/rich-title/index.d.ts +1 -0
- package/lib/snippets/_v2/signals-checkbox-list/index.d.ts +11 -0
- package/lib/snippets/_v2/wide-drawer/column/index.d.ts +11 -0
- package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +13 -0
- package/lib/snippets/_v2/wide-drawer/index.d.ts +35 -0
- package/lib/snippets.js +1 -1
- package/lib/store/useSetupStore.d.ts +0 -4
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +4 -0
- package/lib/types/instrumentation-rules/index.d.ts +4 -1
- package/lib/types/tokens/index.d.ts +7 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +10 -10
- package/lib/chunks/ui-components-BiOIOsCC.js +0 -2296
- package/lib/chunks/vendor-1oZp1FpB.js +0 -1
- package/lib/containers/_v2/central-connections/config-drawer/index.d.ts +0 -18
- package/lib/containers/_v2/central-connections/source-drawer/styled.d.ts +0 -17
- package/lib/containers/_v2/system-drawer/tokens/index.d.ts +0 -7
- package/lib/containers/_v2/system-drawer/tokens/token-actions.d.ts +0 -12
- package/lib/containers/_v2/system-drawer/tokens/token-input.d.ts +0 -8
- /package/lib/containers/_v2/{central-connections/source-drawer → _drawers/add-source-drawer}/types.d.ts +0 -0
- /package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/describe/index.d.ts +0 -0
- /package/lib/containers/_v2/{system-drawer → _drawers/system-drawer}/diagnose/index.d.ts +0 -0
package/lib/contexts/index.d.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
interface ContextProps extends PropsWithChildren {
|
|
3
|
+
formType?: string;
|
|
4
|
+
}
|
|
5
|
+
type ContextValues = Omit<ContextProps, 'children'>;
|
|
6
|
+
export declare const StorybookProvider: ({ children, formType }: ContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const useStorybook: () => ContextValues;
|
|
8
|
+
export {};
|
package/lib/contexts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dq as OdigosProvider,dr as StorybookProvider,a9 as checkVersionSupport,a6 as useOdigos,ds as useStorybook}from"./chunks/ui-components-CCA7B7ry.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C-kwkNJP.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{bZ as capitalizeFirstLetter,cY as cleanObjectEmptyStringsValues,bU as compareCondition,v as deepClone,b8 as filterActions,bA as filterDestinations,by as filterDestinationsByStream,bz as filterSources,bx as filterSourcesByStream,cZ as flattenObjectKeys,bp as formatBytes,cz as formatDuration,a8 as generateId,aU as getActionIcon,b2 as getConditionsBooleans,bt as getContainersIcons,cv as getContainersInstrumentedCount,bs as getDestinationIcon,bf as getEntityIcon,aQ as getEntityId,ba as getEntityLabel,c_ as getIdFromSseTarget,br as getInstrumentationRuleIcon,c$ as getMainContainerLanguage,c3 as getMetricForEntity,d0 as getMonitorIcon,d1 as getPlatformIcon,d2 as getPlatformLabel,n as getProgrammingLanguageIcon,cB as getRecursiveValues,d3 as getSseTargetFromId,d4 as getStatusColor,ag as getStatusFromPodStatus,b6 as getStatusIcon,ch as getStatusTypeFromOdigosHealth,d5 as getValueForRange,ca as getWorkloadId,bY as getYamlFieldsForDestination,ci as hasUnhealthyInstances,ay as isEmpty,d6 as isLegalK8sLabel,a0 as isOverTime,cn as isStringABoolean,d7 as isTimeElapsed,d8 as isValidVersion,b5 as mapConditions,bT as mapDestinationFieldsForDisplay,bo as mapExportedSignals,b_ as mapSupportedSignals,d9 as numbersOnly,co as parseBooleanFromString,da as parseJsonStringToPrettyString,db as removeEmptyValuesFromObject,bV as safeJsonParse,dc as safeJsonStringify,bk as sleep,bH as splitCamelString,dd as stringifyNonStringValues,de as trimVersion}from"./chunks/ui-components-CCA7B7ry.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C-kwkNJP.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
|
@@ -8,5 +8,5 @@ export declare const useActionFormData: () => {
|
|
|
8
8
|
withAlert?: boolean;
|
|
9
9
|
alertTitle?: string;
|
|
10
10
|
}) => boolean;
|
|
11
|
-
loadFormWithDrawerItem: ({ type, signals, fields }: Action) => void;
|
|
11
|
+
loadFormWithDrawerItem: ({ type, signals, name, notes, disabled, fields }: Action) => void;
|
|
12
12
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { AnyObj } from '@/types';
|
|
2
|
-
export
|
|
2
|
+
export interface GenericFormResult<Form extends AnyObj> {
|
|
3
3
|
formData: Form;
|
|
4
|
+
handleFormChange: (key?: keyof Form | string, val?: any, obj?: Form) => void;
|
|
4
5
|
formErrors: Partial<Record<keyof Form, string>>;
|
|
6
|
+
handleErrorChange: (key?: keyof Form | string, val?: string, obj?: Partial<Record<keyof Form, string>>) => void;
|
|
5
7
|
areFormValuesEqual: (initial: Form, current: Form) => boolean;
|
|
6
8
|
isFormDirty: boolean;
|
|
7
|
-
handleFormChange: (key?: keyof Form | string, val?: any, obj?: Form) => void;
|
|
8
|
-
handleErrorChange: (key?: keyof Form | string, val?: string, obj?: Partial<Record<keyof Form, string>>) => void;
|
|
9
9
|
resetFormData: (overrideForm?: Form) => void;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
|
+
export declare const useGenericForm: <Form extends AnyObj>(initialFormData: Form | undefined) => GenericFormResult<Form>;
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{aP as useActionFormData,dn as useBodyScroll,bB as useClickNode,cb as useClickNotification,bw as useContainerSize,Y as useCopy,bM as useDataStreamFormData,bX as useDestinationFormData,x as useGenericForm,dp as useInfiniteScroll,c6 as useInstrumentationRuleFormData,Z as useKeyDown,bG as useOnClickOutside,bC as usePopup,bL as useSessionStorage,cp as useSourceFormData,ct as useSourceSelectionFormData,$ as useTimeAgo}from"./chunks/ui-components-CCA7B7ry.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C-kwkNJP.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|