@odigos/ui-kit 0.0.286 → 0.0.288
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/.cursor/rules/frontend-workflow.mdc +27 -0
- package/.cursor/rules/ui-feedback-tables-forms.mdc +40 -0
- package/.cursor/rules/ui-implementation.mdc +21 -0
- package/.cursor/rules/ui-pages-and-drawers.mdc +34 -0
- package/.cursor/rules/ui-visual-language.mdc +27 -0
- package/CHANGELOG.md +22 -0
- package/docs/api-context.md +1 -1
- package/lib/chunks/helpers-BCSEuuKh.js +9 -0
- package/lib/chunks/index-Cy84opXf.js +351 -0
- package/lib/chunks/source-instrument-form-context-D6pVu22G.js +5 -0
- package/lib/chunks/ui-components-D8rTJS7r.js +1943 -0
- package/lib/components/_cards/data-card/index.d.ts +6 -1
- package/lib/components/_cards/text-card/index.d.ts +3 -0
- package/lib/components/button/index.d.ts +3 -1
- package/lib/components/drawer/header/index.d.ts +2 -0
- package/lib/components/drop-data/index.d.ts +4 -10
- package/lib/components/hover-actions/index.d.ts +1 -1
- package/lib/components/index.d.ts +4 -0
- package/lib/components/info-row/index.d.ts +11 -0
- package/lib/components/input/index.d.ts +2 -0
- package/lib/components/popup/index.d.ts +17 -0
- package/lib/components/select-window-hours/index.d.ts +17 -0
- package/lib/components/table/index.d.ts +10 -0
- package/lib/components/table/styled.d.ts +11 -0
- package/lib/components/table/table-rows/index.d.ts +6 -1
- package/lib/components/table/types.d.ts +11 -2
- package/lib/components/trace-view/index.d.ts +4 -0
- package/lib/components/trace-view/styled.d.ts +43 -0
- package/lib/components/trace-view/types.d.ts +46 -0
- package/lib/components.js +1 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/instrumentation-rules/index.d.ts +2 -1
- package/lib/constants/strings/index.d.ts +20 -0
- package/lib/constants/url-templatization/index.d.ts +90 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/edit-source-drawer/overview/instructions-card.d.ts +21 -0
- package/lib/containers/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +1 -7
- package/lib/containers/_drawers/index.d.ts +3 -0
- package/lib/containers/_drawers/url-templatization-custom-template-drawer/destination-step.d.ts +16 -0
- package/lib/containers/_drawers/url-templatization-custom-template-drawer/index.d.ts +18 -0
- package/lib/containers/_drawers/url-templatization-default-rule-drawer/index.d.ts +14 -0
- package/lib/containers/_drawers/url-templatization-template-view-drawer/index.d.ts +9 -0
- package/lib/containers/central-connections/helpers.d.ts +8 -0
- package/lib/containers/central-connections/index.d.ts +1 -0
- package/lib/containers/index.d.ts +2 -0
- package/lib/containers/insights/consts.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-trace-compare/helpers.d.ts +15 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-trace-compare/index.d.ts +7 -0
- package/lib/containers/insights/findings/drawer/anomaly/index.d.ts +16 -0
- package/lib/containers/insights/findings/drawer/anomaly/why-this-fired/index.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/helpers.d.ts +9 -0
- package/lib/containers/insights/findings/drawer/index.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/violation/index.d.ts +7 -0
- package/lib/containers/insights/findings/drawer/violation/violation-trace-view/index.d.ts +8 -0
- package/lib/containers/insights/findings/helpers.d.ts +57 -0
- package/lib/containers/insights/findings/index.d.ts +2 -0
- package/lib/containers/insights/findings/resolve-findings/index.d.ts +11 -0
- package/lib/containers/insights/index.d.ts +6 -0
- package/lib/containers/insights/insights-context.d.ts +44 -0
- package/lib/containers/insights/overview/contained-table-and-heading/index.d.ts +19 -0
- package/lib/containers/insights/overview/index.d.ts +6 -0
- package/lib/containers/insights/settings-and-configurations/constants.d.ts +16 -0
- package/lib/containers/insights/settings-and-configurations/content-panel/index.d.ts +11 -0
- package/lib/containers/insights/settings-and-configurations/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/menu-config.d.ts +24 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/constants.d.ts +40 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/create-override-panel.d.ts +14 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/mappers.d.ts +12 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/mock.d.ts +4 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/policies-menu.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/policy-editor.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/policy-list-item.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-levels.d.ts +15 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/constants.d.ts +16 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/default-catalog.d.ts +3 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/helpers.d.ts +30 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/index.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/signal-weights-panel.d.ts +13 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/signal-weights.d.ts +17 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/types.d.ts +29 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/constants.d.ts +40 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/create-panel.d.ts +13 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/edit-panel.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/facet-section.d.ts +15 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrail-list-item.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrails-menu.d.ts +9 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/mappers.d.ts +25 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/types.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/constants.d.ts +82 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/create-override-panel.d.ts +21 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/mappers.d.ts +38 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/policies-menu.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/policy-editor.d.ts +9 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/policy-list-item.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/types.d.ts +31 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/constants.d.ts +52 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/formatters.d.ts +5 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/layout.d.ts +18 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/mappers.d.ts +27 -0
- package/lib/containers/insights/settings-and-configurations/panels/system/constants.d.ts +33 -0
- package/lib/containers/insights/settings-and-configurations/panels/system/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/settings-menu/category-header.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/settings-menu/index.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/helpers.d.ts +16 -0
- package/lib/containers/insights/transactions/drawer/baselines/index.d.ts +5 -0
- package/lib/containers/insights/transactions/drawer/index.d.ts +2 -0
- package/lib/containers/insights/transactions/drawer/observations/helpers.d.ts +11 -0
- package/lib/containers/insights/transactions/drawer/observations/index.d.ts +5 -0
- package/lib/containers/insights/transactions/helpers.d.ts +35 -0
- package/lib/containers/insights/transactions/index.d.ts +2 -0
- package/lib/containers/url-templatization/converters.d.ts +43 -0
- package/lib/containers/url-templatization/custom-templates-list.d.ts +16 -0
- package/lib/containers/url-templatization/default-rules-list.d.ts +10 -0
- package/lib/containers/url-templatization/helpers.d.ts +17 -0
- package/lib/containers/url-templatization/index.d.ts +5 -0
- package/lib/containers/url-templatization/scope-summary.d.ts +8 -0
- package/lib/containers/url-templatization/template-path.d.ts +8 -0
- package/lib/containers.js +1909 -286
- package/lib/contexts/odigos-api/capabilities.d.ts +4 -0
- package/lib/contexts/odigos-api/hooks/use-insights-api.d.ts +162 -0
- package/lib/contexts/odigos-api/hooks/use-sources-api.d.ts +10 -1
- package/lib/contexts/odigos-api/index.d.ts +2 -1
- package/lib/contexts/odigos-api/internal/notify.d.ts +4 -3
- package/lib/contexts/odigos-api/types.d.ts +229 -1
- package/lib/contexts/odigos-api/use-odigos-api.d.ts +2 -0
- package/lib/contexts/odigos-context.d.ts +3 -3
- package/lib/contexts.js +1 -1
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions/parse-raw-otlp/index.d.ts +43 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useAnchoredPopup.d.ts +44 -0
- package/lib/hooks/useCopy.d.ts +2 -3
- package/lib/hooks/useOnClickOutside.d.ts +1 -0
- package/lib/hooks/useTimeAgo.d.ts +4 -0
- package/lib/hooks.js +1 -1
- package/lib/icons/common/clock-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +4 -0
- package/lib/icons/common/insights-findings-icon/index.d.ts +2 -0
- package/lib/icons/common/insights-transactions-icon/index.d.ts +2 -0
- package/lib/icons/common/threat-detection-icon/index.d.ts +2 -0
- package/lib/icons/overview/index.d.ts +2 -0
- package/lib/icons/overview/insights-icon/index.d.ts +2 -0
- package/lib/icons/overview/url-templatization-icon/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/actions/index.d.ts +8 -5
- package/lib/snippets/blast-radius/animated-edge.d.ts +10 -0
- package/lib/snippets/blast-radius/blast-radius-node.d.ts +6 -0
- package/lib/snippets/blast-radius/helpers.d.ts +29 -0
- package/lib/snippets/blast-radius/index.d.ts +7 -0
- package/lib/snippets/blast-radius/types.d.ts +19 -0
- package/lib/snippets/code-modal/index.d.ts +9 -0
- package/lib/snippets/index.d.ts +2 -0
- package/lib/snippets/trace-modal/index.d.ts +8 -0
- package/lib/snippets/upgrade-modal/index.d.ts +1 -1
- package/lib/snippets/wide-drawer/index.d.ts +6 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme/palettes/index.d.ts +7 -1
- package/lib/theme.js +1 -1
- package/lib/types/actions/index.d.ts +12 -0
- package/lib/types/common/index.d.ts +9 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/types/insights/index.d.ts +598 -0
- package/lib/types/instrumentation-rules/index.d.ts +1 -0
- package/lib/types/workload/index.d.ts +61 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/helpers-C5bkjRbO.js +0 -9
- package/lib/chunks/index-DBZ1mLhG.js +0 -298
- package/lib/chunks/source-instrument-form-context-CnRKQq6W.js +0 -5
- package/lib/chunks/ui-components-Ci-Vq1Dl.js +0 -1620
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { type
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { type PopupProps } from '../../components/popup';
|
|
3
3
|
import { type DropDataProps } from '../../components/drop-data';
|
|
4
|
+
import { type ButtonProps } from '../../components/button';
|
|
4
5
|
export declare enum ActionType {
|
|
5
6
|
Button = "button",
|
|
6
|
-
|
|
7
|
+
DropDataButton = "drop-data-button",
|
|
8
|
+
PopupButton = "popup-button"
|
|
7
9
|
}
|
|
8
10
|
interface Action {
|
|
9
11
|
id: string;
|
|
10
12
|
type: ActionType;
|
|
11
|
-
buttonProps?: ButtonProps & {
|
|
12
|
-
onClick?: (id: string) => void;
|
|
13
|
+
buttonProps?: Omit<ButtonProps, 'onClick'> & {
|
|
14
|
+
onClick?: ((e: React.MouseEvent<HTMLButtonElement>) => unknown) | ((id: string) => void);
|
|
13
15
|
};
|
|
14
16
|
dropDataProps?: Pick<DropDataProps, 'items' | 'alignX' | 'alignY'>;
|
|
17
|
+
popupProps?: PopupProps;
|
|
15
18
|
}
|
|
16
19
|
export interface ActionsProps {
|
|
17
20
|
onAnyClick?: () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BlastRadiusEdgeTypes, type BlastRadiusEdgeData } from './types';
|
|
3
|
+
import { type Edge, type EdgeProps } from '@xyflow/react';
|
|
4
|
+
export type BlastRadiusAnimatedEdgeType = Edge<BlastRadiusEdgeData, BlastRadiusEdgeTypes.Animated>;
|
|
5
|
+
/**
|
|
6
|
+
* Packet-stream animation (service-map style). Duration scales with path length.
|
|
7
|
+
* Attacker edges use red track/packets; others keep silver.
|
|
8
|
+
*/
|
|
9
|
+
declare const BlastRadiusAnimatedEdgeComponent: React.FC<EdgeProps<BlastRadiusAnimatedEdgeType>>;
|
|
10
|
+
export { BlastRadiusAnimatedEdgeComponent as BlastRadiusAnimatedEdge };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type BlastRadiusServiceNode } from './types';
|
|
3
|
+
import { type NodeProps } from '@xyflow/react';
|
|
4
|
+
type BlastRadiusNodeProps = NodeProps<BlastRadiusServiceNode>;
|
|
5
|
+
export declare const BlastRadiusNode: FC<BlastRadiusNodeProps>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Edge } from '@xyflow/react';
|
|
2
|
+
import type { DefaultTheme } from 'styled-components';
|
|
3
|
+
import { type BlastRadiusEdgeData, type BlastRadiusServiceNode } from './types';
|
|
4
|
+
import type { InsightsBlastRadiusNode, InsightsBlastRadiusSubgraph } from '../../types';
|
|
5
|
+
export declare const NODE_WIDTH = 120;
|
|
6
|
+
export declare const NODE_HEIGHT = 58;
|
|
7
|
+
/** Stable React Flow id — namespace may be empty for virtual hubs like `user`. */
|
|
8
|
+
export declare const getBlastRadiusNodeId: (namespace: string | undefined | null, service: string) => string;
|
|
9
|
+
export declare const getBlastRadiusNodeIdFromNode: (node: Pick<InsightsBlastRadiusNode, "namespace" | "service">) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Attacker is the synthetic ingress hub named `user` (empty namespace), not
|
|
12
|
+
* inferred from traffic degrees.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ATTACKER_SERVICE_NAME = "user";
|
|
15
|
+
export declare const findAttackerNodeId: (rootId: string, nodes: Array<{
|
|
16
|
+
id: string;
|
|
17
|
+
service: string;
|
|
18
|
+
}>) => string | null;
|
|
19
|
+
export declare const buildBlastRadiusNodes: (subgraph: InsightsBlastRadiusSubgraph, attackerId: string | null) => BlastRadiusServiceNode[];
|
|
20
|
+
export declare const buildBlastRadiusEdges: (subgraph: InsightsBlastRadiusSubgraph, theme: DefaultTheme, nodeIds: Set<string>, attackerId: string | null) => Edge<BlastRadiusEdgeData>[];
|
|
21
|
+
/**
|
|
22
|
+
* Center-out layout: root in the middle, callers fan left, callees fan right.
|
|
23
|
+
* Keeps the graph wide/short to match the blast-radius frame (unlike service-map's vertical fan).
|
|
24
|
+
* The attacker is pulled out of the L/R fans and parked next to its connected targets.
|
|
25
|
+
*/
|
|
26
|
+
export declare const getBlastRadiusLayout: (nodes: BlastRadiusServiceNode[], edges: Edge[]) => {
|
|
27
|
+
nodes: BlastRadiusServiceNode[];
|
|
28
|
+
edges: Edge[];
|
|
29
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import '@xyflow/react/dist/style.css';
|
|
3
|
+
import type { InsightsBlastRadiusSubgraph } from '../../types';
|
|
4
|
+
export interface BlastRadiusProps {
|
|
5
|
+
blastRadius?: InsightsBlastRadiusSubgraph;
|
|
6
|
+
}
|
|
7
|
+
export declare const BlastRadius: FC<BlastRadiusProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Node } from '@xyflow/react';
|
|
2
|
+
export declare enum BlastRadiusNodeTypes {
|
|
3
|
+
Service = "blast-radius-service"
|
|
4
|
+
}
|
|
5
|
+
export declare enum BlastRadiusEdgeTypes {
|
|
6
|
+
Animated = "blast-radius-animated"
|
|
7
|
+
}
|
|
8
|
+
export type BlastRadiusNodeData = {
|
|
9
|
+
service: string;
|
|
10
|
+
namespace: string;
|
|
11
|
+
isVirtual: boolean;
|
|
12
|
+
isRoot: boolean;
|
|
13
|
+
isAttacker: boolean;
|
|
14
|
+
isUser: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type BlastRadiusEdgeData = {
|
|
17
|
+
isAttacker: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type BlastRadiusServiceNode = Node<BlastRadiusNodeData, BlastRadiusNodeTypes.Service>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type CodeProps } from '../../components';
|
|
3
|
+
export interface CodeModalProps extends Omit<CodeProps, 'language' | 'code'> {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
language?: string | null;
|
|
7
|
+
code?: string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const CodeModal: FC<CodeModalProps>;
|
package/lib/snippets/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './actions';
|
|
2
2
|
export * from './animated-collapse';
|
|
3
|
+
export * from './blast-radius';
|
|
3
4
|
export * from './cancel-modal';
|
|
5
|
+
export * from './code-modal';
|
|
4
6
|
export * from './colored-span';
|
|
5
7
|
export * from './connector-created-modal';
|
|
6
8
|
export * from './delete-modal';
|
|
@@ -33,6 +33,12 @@ export interface WideDrawerProps {
|
|
|
33
33
|
filters?: ReactNode;
|
|
34
34
|
errorMessage?: string;
|
|
35
35
|
isFormDirty?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Opt out of the implicit "pristine forms cannot be saved" gate while still reporting
|
|
38
|
+
* dirtiness (which drives the discard-changes prompt on close). Needed when the entity is
|
|
39
|
+
* fully specified without the user editing any field.
|
|
40
|
+
*/
|
|
41
|
+
allowSaveWhenPristine?: boolean;
|
|
36
42
|
hideDirtyNote?: boolean;
|
|
37
43
|
forcedNote?: NoteProps;
|
|
38
44
|
isFetching?: boolean;
|
package/lib/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as ActionType,a as Actions,R as RichTitle}from"./chunks/ui-components-
|
|
1
|
+
export{A as ActionType,a as Actions,R as RichTitle}from"./chunks/ui-components-D8rTJS7r.js";export{A as AnimatedCollapse,B as BlastRadius,C as CancelModal,a as CodeModal,b as ConnectorCreatedModal,D as DURATION_OPTIONS,c as DeleteModal,d as DurationErrorsSection,e as DynamicActionFields,f as DynamicField,g as DynamicFields,E as EnableDisableSegment,I as InstrumentationPreviewSection,N as NOISY_PERCENTAGE_OPTIONS,O as OdigosLogoTextByTier,h as OperationSection,P as PERCENTAGE_OPTIONS,i as PercentageSection,j as PresetWithCustomInput,R as RuleInfoSection,k as RuleTypeSection,S as SamplingPreviewSection,l as SignalsCheckboxList,m as SourceScopeSection,U as UpgradeModal,W as WIDE_DRAWER_WIDTH,n as WideDrawer,Y as YamlSectionCard}from"./chunks/index-Cy84opXf.js";export{C as ColoredSpan,a as ColoredSpanVariant}from"./chunks/helpers-BCSEuuKh.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"zustand/middleware";import"react-error-boundary";import"virtua";import"@xyflow/react/dist/style.css";import"@xyflow/react";
|
package/lib/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{eM as DrawerType,bi as ProgressKeys,gt as getDrawerTypeForAdd,cE as getDrawerTypeForEdit,iD as useDarkMode,bf as useDataStreamStore,cz as useDrawerStore,go as useFilterStore,ba as useNotificationStore,bg as useProgressStore,gu as useSelectedStore,bh as useSetupStore}from"./chunks/ui-components-D8rTJS7r.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"zustand/middleware";import"react-error-boundary";import"virtua";
|
|
@@ -44,6 +44,10 @@ export declare const baseTheme: {
|
|
|
44
44
|
'900': string;
|
|
45
45
|
'1000': string;
|
|
46
46
|
};
|
|
47
|
+
mint: {
|
|
48
|
+
'500': string;
|
|
49
|
+
'1000': string;
|
|
50
|
+
};
|
|
47
51
|
grey: {
|
|
48
52
|
'25': string;
|
|
49
53
|
'50': string;
|
|
@@ -103,6 +107,7 @@ export declare const baseTheme: {
|
|
|
103
107
|
'300': string;
|
|
104
108
|
'400': string;
|
|
105
109
|
'500': string;
|
|
110
|
+
'550': string;
|
|
106
111
|
'600': string;
|
|
107
112
|
'700': string;
|
|
108
113
|
'800': string;
|
|
@@ -115,9 +120,10 @@ export declare const baseTheme: {
|
|
|
115
120
|
pink: {
|
|
116
121
|
'500': string;
|
|
117
122
|
'600': string;
|
|
123
|
+
'1000': string;
|
|
118
124
|
};
|
|
119
125
|
orange: {
|
|
120
|
-
'
|
|
126
|
+
'500': string;
|
|
121
127
|
};
|
|
122
128
|
};
|
|
123
129
|
zIndex: {
|
package/lib/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{iQ as Provider,iR as animations,iS as opacity,iT as palettes}from"./chunks/ui-components-D8rTJS7r.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"zustand/middleware";import"react-error-boundary";import"virtua";
|
|
@@ -31,6 +31,7 @@ export declare enum ActionKeyTypes {
|
|
|
31
31
|
Renames = "renames",
|
|
32
32
|
PiiCategories = "piiCategories",
|
|
33
33
|
UrlTemplatizationRulesGroups = "urlTemplatizationRulesGroups",
|
|
34
|
+
UrlTemplatizationDefaultGroups = "urlTemplatizationDefaultGroups",
|
|
34
35
|
ExtractAttribute = "extractAttribute",
|
|
35
36
|
TemplatizeLiterals = "templatizeLiterals",
|
|
36
37
|
Scopes = "scopes"
|
|
@@ -105,6 +106,7 @@ export interface ActionFields {
|
|
|
105
106
|
} | null;
|
|
106
107
|
[ActionKeyTypes.PiiCategories]?: string[] | null;
|
|
107
108
|
[ActionKeyTypes.UrlTemplatizationRulesGroups]?: UrlTemplatizationRulesGroup[] | null;
|
|
109
|
+
[ActionKeyTypes.UrlTemplatizationDefaultGroups]?: UrlTemplatizationDefaultGroup[] | null;
|
|
108
110
|
[ActionKeyTypes.ExtractAttribute]?: ExtractAttribute | null;
|
|
109
111
|
[ActionKeyTypes.TemplatizeLiterals]?: boolean | null;
|
|
110
112
|
[ActionKeyTypes.Scopes]?: SourcesScopes | null;
|
|
@@ -224,7 +226,17 @@ export interface Extraction {
|
|
|
224
226
|
export interface ExtractAttribute {
|
|
225
227
|
extractions: Extraction[];
|
|
226
228
|
}
|
|
229
|
+
export interface UrlTemplatizationDefaultSkipPolicy {
|
|
230
|
+
skipForNonSuccessCodes?: boolean | null;
|
|
231
|
+
skipHttpStatusCodes?: number[] | null;
|
|
232
|
+
}
|
|
233
|
+
export interface UrlTemplatizationDefaultGroup {
|
|
234
|
+
scopes?: SourcesScopes | null;
|
|
235
|
+
disabled?: boolean | null;
|
|
236
|
+
skipPolicy?: UrlTemplatizationDefaultSkipPolicy | null;
|
|
237
|
+
}
|
|
227
238
|
export interface UrlTemplatizationRulesGroup {
|
|
239
|
+
scopes?: SourcesScopes | null;
|
|
228
240
|
filterK8sNamespace?: string;
|
|
229
241
|
/** @deprecated Use workloadFilters instead. Kept for backward compatibility with existing CRs. */
|
|
230
242
|
filterK8sWorkloadKind?: WorkloadKind;
|
|
@@ -45,16 +45,21 @@ export declare enum PlatformType {
|
|
|
45
45
|
Connector = "connector",
|
|
46
46
|
AwsEcs = "aws.ecs"
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* A version threshold. Strings are required for values JS numbers cannot
|
|
50
|
+
* represent (`1.20 === 1.2`); `trimVersion` accepts both.
|
|
51
|
+
*/
|
|
52
|
+
export type VersionThreshold = number | string;
|
|
48
53
|
/**
|
|
49
54
|
* The minimum Odigos version required to use a given feature.
|
|
50
55
|
*
|
|
51
|
-
* A single
|
|
56
|
+
* A single number/string applies the same threshold to every platform
|
|
52
57
|
* (backwards-compatible with the historical k8s-only behavior), while a
|
|
53
58
|
* partial map lets a feature declare a different minimum per platform type
|
|
54
59
|
* (e.g. a feature that shipped earlier on `k8s` than on `vm`). Platforms
|
|
55
60
|
* omitted from the map are treated as having no requirement (always supported).
|
|
56
61
|
*/
|
|
57
|
-
export type MinSupportedVersion =
|
|
62
|
+
export type MinSupportedVersion = VersionThreshold | Partial<Record<PlatformType, VersionThreshold>>;
|
|
58
63
|
export declare enum InstallationMethod {
|
|
59
64
|
Cli = "odigos-cli",
|
|
60
65
|
Helm = "helm",
|
|
@@ -88,6 +93,8 @@ export interface FetchedConfig {
|
|
|
88
93
|
installationStatus: InstallationStatus;
|
|
89
94
|
platformType?: PlatformType;
|
|
90
95
|
odigosVersion?: string;
|
|
96
|
+
/** True when the Insights feature is enabled on the cluster. */
|
|
97
|
+
insightsEnabled?: boolean;
|
|
91
98
|
}
|
|
92
99
|
export declare enum ProgrammingLanguages {
|
|
93
100
|
Go = "go",
|