@odigos/ui-kit 0.0.212 → 0.0.214
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 +21 -0
- package/lib/chunks/index-CIjqAfew.js +3 -0
- package/lib/chunks/ui-components-Cu9XlyM0.js +2391 -0
- package/lib/components/_v2/badge/index.d.ts +2 -0
- package/lib/components/_v2/cards/section-card/index.d.ts +1 -0
- package/lib/components/_v2/checkbox/index.d.ts +5 -1
- package/lib/components/_v2/field-message/index.d.ts +1 -0
- package/lib/components/_v2/field-title/index.d.ts +2 -0
- package/lib/components/_v2/input/index.d.ts +4 -3
- package/lib/components/_v2/input-list/index.d.ts +5 -3
- package/lib/components/_v2/input-table/index.d.ts +5 -3
- package/lib/components/_v2/textarea/index.d.ts +4 -3
- package/lib/components/_v2/toggle/index.d.ts +5 -1
- package/lib/components/styled.d.ts +3 -6
- package/lib/components/tooltip/index.d.ts +1 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +1 -1
- package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +1 -4
- package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/index.d.ts +2 -1
- package/lib/containers/_v2/_drawers/add-source-drawer/types.d.ts +3 -0
- package/lib/containers/_v2/_drawers/add-source-drawer/workloads-column/index.d.ts +2 -1
- package/lib/containers/_v2/_forms/add-action-form/context.d.ts +18 -0
- package/lib/containers/_v2/_forms/add-action-form/index.d.ts +2 -6
- package/lib/containers/_v2/_forms/add-rule-form/context.d.ts +18 -0
- package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +2 -6
- package/lib/containers/_v2/_forms/add-source-form/context.d.ts +21 -0
- package/lib/containers/_v2/_forms/add-source-form/index.d.ts +1 -0
- package/lib/containers/_v2/_forms/index.d.ts +1 -0
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +2 -0
- package/lib/containers/service-map/index.d.ts +1 -0
- package/lib/containers/v2.js +40 -40
- package/lib/containers.js +116 -116
- package/lib/contexts.js +1 -1
- package/lib/functions/deep-values/index.d.ts +2 -0
- package/lib/functions/get-virtual-service-icon/index.d.ts +2 -0
- package/lib/functions/index.d.ts +2 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/useGenericForm.d.ts +2 -0
- package/lib/hooks.js +1 -1
- package/lib/icons/programming-languages/aws-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/index.d.ts +1 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +1 -0
- package/lib/snippets/_v2/yaml-section-card/index.d.ts +1 -0
- package/lib/snippets/react-flow/flow.d.ts +1 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +307 -3
- package/lib/types/service-map/index.d.ts +5 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +10 -10
- package/lib/chunks/index-CTFaJvLO.js +0 -3
- package/lib/chunks/ui-components-DQ5eBxQh.js +0 -2387
- package/lib/containers/_v2/_drawers/add-action-drawer/helpers.d.ts +0 -7
- package/lib/containers/_v2/_drawers/add-rule-drawer/helpers.d.ts +0 -7
package/lib/contexts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dG as OdigosProvider,dH as StorybookProvider,aE as checkVersionSupport,u as useOdigos,dI as useStorybook}from"./chunks/ui-components-Cu9XlyM0.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/functions/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './capitalize-first-letter';
|
|
|
2
2
|
export * from './clean-object-empty-strings-values';
|
|
3
3
|
export * from './compare-condition';
|
|
4
4
|
export * from './deep-clone';
|
|
5
|
+
export * from './deep-values';
|
|
5
6
|
export * from './filter-actions';
|
|
6
7
|
export * from './filter-destinations';
|
|
7
8
|
export * from './filter-destinations-by-stream';
|
|
@@ -34,6 +35,7 @@ export * from './get-status-from-pod-status';
|
|
|
34
35
|
export * from './get-status-icon';
|
|
35
36
|
export * from './get-status-type-from-odigos-health';
|
|
36
37
|
export * from './get-value-for-range';
|
|
38
|
+
export * from './get-virtual-service-icon';
|
|
37
39
|
export * from './get-workload-id';
|
|
38
40
|
export * from './get-yaml-fields-for-destination';
|
|
39
41
|
export * from './has-unhealthy-instances';
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{cg as capitalizeFirstLetter,
|
|
1
|
+
export{cg as capitalizeFirstLetter,dd as cleanObjectEmptyStringsValues,G as compareCondition,d as deepClone,by as filterActions,bY as filterDestinations,bW as filterDestinationsByStream,bX as filterSources,bV as filterSourcesByStream,de as flattenObjectKeys,bQ as formatBytes,cQ as formatDuration,aD as generateId,bj as getActionIcon,bs as getConditionsBooleans,cK as getContainersIcons,cN as getContainersInstrumentedCount,df as getDeepValue,ak as getDestinationIcon,dg as getDetectedLanguageIcons,bF as getEntityIcon,bf as getEntityId,bA as getEntityLabel,dh as getIdFromSseTarget,bR as getInstrumentationRuleIcon,di as getMainContainerLanguage,ck as getMetricForEntity,dj as getMonitorIcon,dk as getPlatformIcon,dl as getPlatformLabel,a6 as getProgrammingLanguageIcon,cS as getRecursiveValues,bS as getSourceLanguageIcons,dm as getSseTargetFromId,dn as getStatusColor,aM as getStatusFromPodStatus,bw as getStatusIcon,cy as getStatusTypeFromOdigosHealth,dp as getValueForRange,ct as getVirtualServiceIcon,cq as getWorkloadId,cf as getYamlFieldsForDestination,cz as hasUnhealthyInstances,n as isEmpty,dq as isLegalK8sLabel,aw as isOverTime,cE as isStringABoolean,dr as isTimeElapsed,ds as isValidVersion,bv as mapConditions,cd as mapDestinationFieldsForDisplay,U as mapExportedSignals,P as mapSupportedSignals,dt as numbersOnly,cF as parseBooleanFromString,du as parseJsonStringToPrettyString,dv as removeEmptyValuesFromObject,J as safeJsonParse,dw as safeJsonStringify,dx as setDeepValue,bL as sleep,c3 as splitCamelString,dy as stringifyNonStringValues,bm as trimVersion}from"./chunks/ui-components-Cu9XlyM0.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
|
@@ -4,8 +4,10 @@ export interface GenericFormResult<Form extends AnyObj> {
|
|
|
4
4
|
handleFormChange: (key?: keyof Form | string, val?: any, obj?: Form) => void;
|
|
5
5
|
formErrors: Partial<Record<keyof Form, string>>;
|
|
6
6
|
handleErrorChange: (key?: keyof Form | string, val?: string, obj?: Partial<Record<keyof Form, string>>) => void;
|
|
7
|
+
getFormDiff: (initial: Form, current: Form) => Partial<Form>;
|
|
7
8
|
areFormValuesEqual: (initial: Form, current: Form) => boolean;
|
|
8
9
|
isFormDirty: boolean;
|
|
9
10
|
resetFormData: (overrideForm?: Form) => void;
|
|
11
|
+
getNestedValue: (target: 'formData' | 'formErrors', path: keyof Form) => any;
|
|
10
12
|
}
|
|
11
13
|
export declare const useGenericForm: <Form extends AnyObj>(initialFormData: Form | undefined) => GenericFormResult<Form>;
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{be as useActionFormData,
|
|
1
|
+
export{be as useActionFormData,dJ as useBodyScroll,bZ as useClickNode,cr as useClickNotification,bU as useContainerSize,at as useCopy,c7 as useDataStreamFormData,ce as useDestinationFormData,x as useGenericForm,cn as useInstrumentationRuleFormData,au as useKeyDown,c2 as useOnClickOutside,b_ as usePopup,c6 as useSessionStorage,cG as useSourceFormData,cL as useSourceSelectionFormData,av as useTimeAgo}from"./chunks/ui-components-Cu9XlyM0.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|