@odigos/ui-kit 0.0.286-dev.520 → 0.0.287
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 +7 -0
- package/lib/chunks/helpers-CtkwQ3Wc.js +9 -0
- package/lib/chunks/{index-9H2LDuOq.js → index-BlYPxLja.js} +23 -23
- package/lib/chunks/source-instrument-form-context-Bg6JzU76.js +5 -0
- package/lib/chunks/ui-components-CjgsN17j.js +1943 -0
- package/lib/components/button/index.d.ts +3 -1
- package/lib/components/drop-data/index.d.ts +4 -10
- package/lib/components/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.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 +14 -0
- package/lib/constants/url-templatization/index.d.ts +90 -0
- package/lib/constants.js +1 -1
- 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 +1 -0
- package/lib/containers/insights/findings/drawer/anomaly/index.d.ts +1 -0
- package/lib/containers/insights/findings/drawer/helpers.d.ts +0 -2
- package/lib/containers/insights/findings/drawer/violation/index.d.ts +1 -0
- package/lib/containers/insights/findings/helpers.d.ts +13 -3
- package/lib/containers/insights/findings/resolve-findings/index.d.ts +11 -0
- package/lib/containers/insights/overview/contained-table-and-heading/index.d.ts +1 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/create-panel.d.ts +2 -6
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/facet-section.d.ts +1 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/mappers.d.ts +5 -0
- package/lib/containers/insights/transactions/helpers.d.ts +0 -1
- 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 +888 -432
- package/lib/contexts/odigos-api/hooks/use-insights-api.d.ts +4 -1
- package/lib/contexts/odigos-api/index.d.ts +1 -1
- package/lib/contexts/odigos-api/types.d.ts +5 -0
- package/lib/contexts/odigos-context.d.ts +3 -3
- package/lib/contexts.js +1 -1
- 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/useOnClickOutside.d.ts +1 -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 +1 -0
- package/lib/icons/overview/index.d.ts +1 -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/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.js +1 -1
- package/lib/types/actions/index.d.ts +12 -0
- package/lib/types/common/index.d.ts +7 -2
- package/lib/types/instrumentation-rules/index.d.ts +1 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/helpers-B0SJ6hqm.js +0 -9
- package/lib/chunks/source-instrument-form-context-BF70uJ_R.js +0 -5
- package/lib/chunks/ui-components-DqG0z5U0.js +0 -1878
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { type ButtonHTMLAttributes, type MouseEvent } from 'react';
|
|
1
|
+
import React, { type ButtonHTMLAttributes, type MouseEvent, type CSSProperties } from 'react';
|
|
2
2
|
import type { SVG, SVGProps } from '../../types';
|
|
3
3
|
export declare enum ButtonVariants {
|
|
4
4
|
Primary = "primary",
|
|
@@ -19,11 +19,13 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
|
|
|
19
19
|
rightIcon?: SVG;
|
|
20
20
|
variant?: ButtonVariants;
|
|
21
21
|
size?: ButtonSize;
|
|
22
|
+
isSelected?: boolean;
|
|
22
23
|
iconSize?: SVGProps['size'];
|
|
23
24
|
loading?: boolean;
|
|
24
25
|
fullWidth?: boolean;
|
|
25
26
|
withShadow?: boolean;
|
|
26
27
|
textColor?: string;
|
|
28
|
+
textAlign?: CSSProperties['textAlign'];
|
|
27
29
|
onClick?: (e: MouseEvent<HTMLButtonElement>) => unknown | ((e: MouseEvent<HTMLButtonElement>) => Promise<unknown>);
|
|
28
30
|
}
|
|
29
31
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { type FC, type CSSProperties, type ReactNode, type MouseEvent } from 'react';
|
|
2
2
|
import type { SVG } from '../../types';
|
|
3
3
|
import { type ButtonProps } from '../button';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Right = "right"
|
|
7
|
-
}
|
|
8
|
-
export declare enum DropDataAlignY {
|
|
9
|
-
Top = "top",
|
|
10
|
-
Bottom = "bottom"
|
|
11
|
-
}
|
|
4
|
+
import { PopupAlignX, PopupAlignY } from '../../hooks';
|
|
5
|
+
export { PopupAlignX as DropDataAlignX, PopupAlignY as DropDataAlignY };
|
|
12
6
|
export interface DropDataOption<T = string> {
|
|
13
7
|
id: T;
|
|
14
8
|
label: string;
|
|
@@ -22,8 +16,8 @@ export interface DropDataProps {
|
|
|
22
16
|
defaultOpen?: boolean;
|
|
23
17
|
open?: boolean;
|
|
24
18
|
onOpenChange?: (open: boolean) => void;
|
|
25
|
-
alignX?:
|
|
26
|
-
alignY?:
|
|
19
|
+
alignX?: PopupAlignX;
|
|
20
|
+
alignY?: PopupAlignY;
|
|
27
21
|
items: (DropDataOption | null)[];
|
|
28
22
|
selectedIds: DropDataOption['id'][];
|
|
29
23
|
setSelectedIds: (ids: DropDataOption['id'][]) => void;
|
|
@@ -30,11 +30,13 @@ export * from './modal';
|
|
|
30
30
|
export * from './navbar';
|
|
31
31
|
export * from './no-data';
|
|
32
32
|
export * from './note';
|
|
33
|
+
export * from './popup';
|
|
33
34
|
export * from './radio';
|
|
34
35
|
export * from './radio-card';
|
|
35
36
|
export * from './scroll-y';
|
|
36
37
|
export * from './search';
|
|
37
38
|
export * from './segment';
|
|
39
|
+
export * from './select-window-hours';
|
|
38
40
|
export * from './skeleton-loader';
|
|
39
41
|
export * from './stepper';
|
|
40
42
|
export * from './table';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
import { type ButtonProps } from '../button';
|
|
3
|
+
import { PopupAlignX, PopupAlignY } from '../../hooks';
|
|
4
|
+
export { PopupAlignX, PopupAlignY };
|
|
5
|
+
export interface PopupProps {
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
onOpenChange?: (open: boolean) => void;
|
|
9
|
+
alignX?: PopupAlignX;
|
|
10
|
+
alignY?: PopupAlignY;
|
|
11
|
+
buttonProps?: Omit<ButtonProps, 'onClick'>;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
children?: ReactNode | ((props: {
|
|
14
|
+
close: () => void;
|
|
15
|
+
}) => ReactNode);
|
|
16
|
+
}
|
|
17
|
+
export declare const Popup: FC<PopupProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type ButtonProps } from '../button';
|
|
3
|
+
declare const OPTIONS: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const TIME_WINDOW_DEFAULT_VALUE: number;
|
|
8
|
+
export declare const getWindowHoursButtonProps: (selectedHours?: number) => Omit<ButtonProps, "onClick">;
|
|
9
|
+
export interface SelectWindowHoursProps {
|
|
10
|
+
options?: typeof OPTIONS;
|
|
11
|
+
maxAllowedValue?: number;
|
|
12
|
+
defaultValue?: number;
|
|
13
|
+
onApply: (hours: number) => void;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const SelectWindowHours: FC<SelectWindowHoursProps>;
|
|
17
|
+
export {};
|
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a3 as Autocomplete,
|
|
1
|
+
export{a3 as Autocomplete,bL as Badge,B as Button,i as ButtonSize,iU as ButtonTab,iV as ButtonTabList,j as ButtonVariants,b6 as CenterThis,w as Checkbox,iW as CheckboxList,a5 as CheckboxSize,cy as CliCommand,C as Code,cg as Condition,ci as Conditions,iX as DEFAULT_TIME_UNITS,m as DataCard,aa as Divider,D as Drawer,aE as DropData,eL as DropDataAlignX,eK as DropDataAlignY,x as DropDown,iY as ErrorBoundary,k as FieldMessage,d as FieldTitle,F as FlexColumn,h as FlexRow,gj as GaugeChart,gk as GaugeChartVariant,iZ as Header,i_ as HoverActions,i$ as INFO_ROW_HEIGHT_PX,I as IconButton,l as IconButtonSize,cD as IconGroup,cv as InfoRow,H as Input,ab as InputCardTable,G as InputList,z as InputTable,cV as Island,b7 as Loader,M as Modal,j0 as ModalBody,j1 as Navbar,N as NoData,K as Note,j2 as Overlay,bI as Padding,fZ as PageContent,j3 as Popup,eL as PopupAlignX,eK as PopupAlignY,ay as Radio,ce as RadioCard,j4 as RadioGroup,bQ as RadioSize,b5 as ScrollY,b8 as Search,a0 as SectionCard,j5 as SectionCardSize,a2 as Segment,ac as SegmentSize,cS as SegmentVariant,g6 as SelectWindowHours,bJ as SkeletonLoader,gI as StatusCard,gn as Stepper,g5 as TIME_WINDOW_DEFAULT_VALUE,cT as Table,j6 as TableContainer,j7 as TableTitleWrap,cU as TableVariant,j8 as TableWrap,Q as Tag,cx as TagVariants,y as TextArea,f_ as TextCard,v as TimeInput,q as Toggle,j9 as ToggleCodeComponent,r as ToggleLabelAlign,ja as ToggleList,s as ToggleSize,ek as ToggleVariant,T as Tooltip,g9 as TraceView,bR as TruncatableTypography,e as Typography,f as TypographyColor,g as TypographySize,cb as TypographyVariants,gm as UpgradeRequiredWrapper,jb as VerticalScroll,W as WarningModal,g7 as getWindowHoursButtonProps,jc as resolveTypographyColor}from"./chunks/ui-components-CjgsN17j.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";
|
package/lib/constants/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type GetInstrumentationRuleTypesResult, type InstrumentationRuleOption, PlatformType } from '../../types';
|
|
1
|
+
import { type GetInstrumentationRuleTypesResult, InstrumentationRuleType, type InstrumentationRuleOption, PlatformType } from '../../types';
|
|
2
2
|
export * from './supported-languages';
|
|
3
3
|
/**
|
|
4
4
|
* Whether the rule source-scope editor can be offered for the running agent.
|
|
@@ -18,5 +18,6 @@ export * from './supported-languages';
|
|
|
18
18
|
* version-drift convention in central-ui's adapter (`if (!(v > 0)) return`).
|
|
19
19
|
*/
|
|
20
20
|
export declare const isRuleSourceScopeSupported: (platformType: PlatformType, currentVersion: string) => boolean;
|
|
21
|
+
export declare const ruleTypeRequiresConfiguration: (type: InstrumentationRuleType) => boolean;
|
|
21
22
|
export declare const INSTRUMENTATION_RULE_OPTIONS: InstrumentationRuleOption[];
|
|
22
23
|
export declare const mapRuleTypesToOptions: (result?: GetInstrumentationRuleTypesResult | null) => InstrumentationRuleOption[];
|
|
@@ -31,6 +31,19 @@ export declare const DISPLAY_TITLES: {
|
|
|
31
31
|
CONNECTION: string;
|
|
32
32
|
CONNECTIONS: string;
|
|
33
33
|
NO_CONNECTIONS: string;
|
|
34
|
+
DELETE_CONNECTION: string;
|
|
35
|
+
ODIGOS_VERSION: string;
|
|
36
|
+
CONNECTED_SINCE: string;
|
|
37
|
+
LAST_ACTIVITY: string;
|
|
38
|
+
MANAGE_CONFIGURATIONS: string;
|
|
39
|
+
EDIT_CONFIGURATION: string;
|
|
40
|
+
UPGRADE_REQUIRED: string;
|
|
41
|
+
UPGRADE_TO_USE_FEATURE: (version: string | number) => string;
|
|
42
|
+
CURRENT_VERSION: (version: string) => string;
|
|
43
|
+
CONNECTION_LIVE: string;
|
|
44
|
+
CONNECTION_LOST: string;
|
|
45
|
+
SEARCH_BY_CLUSTER_NAME: string;
|
|
46
|
+
SELECTED_CLUSTERS: string;
|
|
34
47
|
CLOUD_CONNECTOR: string;
|
|
35
48
|
CREATE_CLOUD_CONNECTOR: string;
|
|
36
49
|
CLOUD_CONNECTOR_SELECT_PROVIDER_TITLE: string;
|
|
@@ -119,6 +132,7 @@ export declare const DISPLAY_TITLES: {
|
|
|
119
132
|
SOURCE: string;
|
|
120
133
|
SOURCES: string;
|
|
121
134
|
ADD_SOURCE: string;
|
|
135
|
+
ADD_SOURCES: string;
|
|
122
136
|
SOURCE_DETAILS: string;
|
|
123
137
|
SELECT_SOURCES: string;
|
|
124
138
|
SELECTED_SOURCES: string;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare const URL_TEMPLATIZATION_PAGE_TITLE = "URL templatization";
|
|
2
|
+
export declare const URL_TEMPLATIZATION_PAGE_DESCRIPTION = "Replace dynamic URL path segments with named placeholders to reduce cardinality in span names and http.route.";
|
|
3
|
+
export declare const URL_TEMPLATIZATION_SECTION_DEFAULT = "Default templatization";
|
|
4
|
+
export declare const URL_TEMPLATIZATION_DEFAULT_SECTION_SUBTITLE = "Custom and default URL templatization scopes across URL templatization actions.";
|
|
5
|
+
export declare const URL_TEMPLATIZATION_DEFAULT_EMPTY_TITLE = "Default templatization is not enabled";
|
|
6
|
+
export declare const URL_TEMPLATIZATION_DEFAULT_EMPTY_SUBTITLE = "Automatically detect and normalize dynamic URL segments when no custom template matches.";
|
|
7
|
+
export declare const URL_TEMPLATIZATION_BTN_ENABLE_DEFAULT = "Enable for entire cluster";
|
|
8
|
+
export declare const URL_TEMPLATIZATION_SECTION_CUSTOM = "Custom URL templates";
|
|
9
|
+
export declare const URL_TEMPLATIZATION_CUSTOM_SECTION_SUBTITLE = "Define exact URL patterns and control where each template group applies.";
|
|
10
|
+
export declare const URL_TEMPLATIZATION_VIEW_BY = "View by:";
|
|
11
|
+
export declare const URL_TEMPLATIZATION_VIEW_GROUPS = "Groups";
|
|
12
|
+
export declare const URL_TEMPLATIZATION_VIEW_TREE = "Tree";
|
|
13
|
+
export declare const URL_TEMPLATIZATION_VIEW_LIST = "List";
|
|
14
|
+
export declare const URL_TEMPLATIZATION_BTN_CREATE_TEMPLATE_GROUP = "Create template group";
|
|
15
|
+
export declare const URL_TEMPLATIZATION_BTN_EDIT_GROUP = "Edit group";
|
|
16
|
+
export declare const URL_TEMPLATIZATION_BTN_ADD_TEMPLATE = "Add template";
|
|
17
|
+
export declare const URL_TEMPLATIZATION_CUSTOM_EMPTY_TITLE = "No custom URL templates";
|
|
18
|
+
export declare const URL_TEMPLATIZATION_CUSTOM_EMPTY_SUBTITLE = "Define exact route patterns for your application. Custom templates are matched before default templatization.";
|
|
19
|
+
export declare const URL_TEMPLATIZATION_BTN_CREATE = "Create custom template";
|
|
20
|
+
export declare const URL_TEMPLATIZATION_BTN_DOCS = "Docs";
|
|
21
|
+
export declare const URL_TEMPLATIZATION_DOCS_URL = "https://docs.odigos.io/pipeline/actions/attributes/urltemplatization";
|
|
22
|
+
export declare const URL_TEMPLATIZATION_DEFAULT_CONFIGURED_PLACEHOLDER = "Default templatization is enabled \u2014 editor coming next.";
|
|
23
|
+
export declare const URL_TEMPLATIZATION_DRAWER_WIDTH = "746px";
|
|
24
|
+
export declare const URL_TEMPLATIZATION_DEFAULT_RULE_DRAWER_TITLE = "Add default templatization rule";
|
|
25
|
+
export declare const URL_TEMPLATIZATION_EDIT_DEFAULT_RULE_DRAWER_TITLE = "Edit default templatization rule";
|
|
26
|
+
export declare const URL_TEMPLATIZATION_DEFAULT_RULE_DRAWER_SUBTITLE = "UI template rules";
|
|
27
|
+
export declare const URL_TEMPLATIZATION_SECTION_SOURCE_SCOPE = "Source Scope";
|
|
28
|
+
export declare const URL_TEMPLATIZATION_DESC_SOURCE_SCOPE = "Choose where this rule applies.";
|
|
29
|
+
export declare const URL_TEMPLATIZATION_NOTE_ENTIRE_CLUSTER = "This rule will apply to all sources in the cluster.";
|
|
30
|
+
export declare const URL_TEMPLATIZATION_SECTION_DEFAULT_TEMPLATIZATION = "Default templatization";
|
|
31
|
+
export declare const URL_TEMPLATIZATION_DESC_DEFAULT_TEMPLATIZATION = "Automatically normalize dynamic URL segments when no custom template matches.";
|
|
32
|
+
export declare const URL_TEMPLATIZATION_TOGGLE_ENABLE_NORMALIZATION = "Enable automatic URL normalization for this scope";
|
|
33
|
+
export declare const URL_TEMPLATIZATION_SECTION_SKIP_POLICY = "Skip policy";
|
|
34
|
+
export declare const URL_TEMPLATIZATION_BADGE_ADVANCED = "Advanced";
|
|
35
|
+
export declare const URL_TEMPLATIZATION_DESC_SKIP_POLICY = "Prevent selected error responses from being normalized by the default heuristic. Custom templates still match first.";
|
|
36
|
+
export declare const URL_TEMPLATIZATION_TOGGLE_SKIP_NON_2XX = "Skip for non-2xx responses";
|
|
37
|
+
export declare const URL_TEMPLATIZATION_TOGGLE_SKIP_STATUS_CODES = "Skip selected HTTP status codes";
|
|
38
|
+
export declare const URL_TEMPLATIZATION_PLACEHOLDER_STATUS_CODES = "Example: 404, 401";
|
|
39
|
+
export declare const URL_TEMPLATIZATION_HELPER_STATUS_CODES = "Use comma-separated HTTP status codes between 100 and 599.";
|
|
40
|
+
export declare const URL_TEMPLATIZATION_FOOTER_IMMEDIATE_EFFECT = "This rule will take effect in the cluster immediately after it is added.";
|
|
41
|
+
export declare const URL_TEMPLATIZATION_FOOTER_SAVE_EFFECT = "This rule will take effect in the cluster immediately after it is saved.";
|
|
42
|
+
export declare const URL_TEMPLATIZATION_BTN_ADD_RULE = "Add rule";
|
|
43
|
+
export declare const URL_TEMPLATIZATION_BTN_SAVE = "Save";
|
|
44
|
+
export declare const URL_TEMPLATIZATION_BTN_CANCEL = "Cancel";
|
|
45
|
+
export declare const URL_TEMPLATIZATION_ERROR_INVALID_STATUS_CODES = "Enter valid HTTP status codes between 100 and 599, separated by commas.";
|
|
46
|
+
export declare const URL_TEMPLATIZATION_CUSTOM_DRAWER_TITLE = "Create custom template";
|
|
47
|
+
export declare const URL_TEMPLATIZATION_CUSTOM_DRAWER_SUBTITLE = "UI template rules";
|
|
48
|
+
export declare const URL_TEMPLATIZATION_CHOOSE_DESTINATION = "Choose where to add the template";
|
|
49
|
+
export declare const URL_TEMPLATIZATION_DESTINATION_TEMPLATE_GROUP = "Template group";
|
|
50
|
+
export declare const URL_TEMPLATIZATION_DESTINATION_ENTIRE_CLUSTER = "Entire Cluster";
|
|
51
|
+
export declare const URL_TEMPLATIZATION_DESTINATION_GROUP_HINT = "Add the template to an existing group or create a new group with its own scope.";
|
|
52
|
+
export declare const URL_TEMPLATIZATION_DESTINATION_CLUSTER_HINT = "This template will apply to all sources in the cluster.";
|
|
53
|
+
export declare const URL_TEMPLATIZATION_ADD_EXISTING_GROUP = "Add to existing template group";
|
|
54
|
+
export declare const URL_TEMPLATIZATION_ADD_NEW_GROUP = "Add to New template group";
|
|
55
|
+
export declare const URL_TEMPLATIZATION_NEW_GROUP_DEFAULT_HINT = "Template group will be added to the default action";
|
|
56
|
+
export declare const URL_TEMPLATIZATION_ADVANCED_CONFIGURATION = "Advanced Configuration";
|
|
57
|
+
export declare const URL_TEMPLATIZATION_SEARCH_GROUPS_PLACEHOLDER = "Search template group by type action name or scope (languages, namespaces, sources)";
|
|
58
|
+
export declare const URL_TEMPLATIZATION_SELECTED_GROUP = "Selected Template group:";
|
|
59
|
+
export declare const URL_TEMPLATIZATION_ACTION_FIELD_LABEL = "URL templatization action";
|
|
60
|
+
export declare const URL_TEMPLATIZATION_NEW_ACTION_NAME_LABEL = "New action name";
|
|
61
|
+
export declare const URL_TEMPLATIZATION_NEW_ACTION_PLACEHOLDER = "New action group";
|
|
62
|
+
export declare const URL_TEMPLATIZATION_NEW_ACTION_HINT = "Defaults to 'UI template rules'. Actions can help keep templating rules organized, but they are optional - advanced users can create a separate action when useful.";
|
|
63
|
+
export declare const URL_TEMPLATIZATION_BTN_CREATE_GROUP = "Create new template group";
|
|
64
|
+
export declare const URL_TEMPLATIZATION_BTN_NEXT = "Next";
|
|
65
|
+
export declare const URL_TEMPLATIZATION_BTN_BACK = "Back";
|
|
66
|
+
export declare const URL_TEMPLATIZATION_ACTION_NAME_LABEL = "Action name";
|
|
67
|
+
export declare const URL_TEMPLATIZATION_DEFAULT_ACTION_NAME = "URL Templatization";
|
|
68
|
+
export declare const URL_TEMPLATIZATION_BADGE_UI = "UI";
|
|
69
|
+
export declare const URL_TEMPLATIZATION_SECTION_TEMPLATES = "Templates";
|
|
70
|
+
export declare const URL_TEMPLATIZATION_PLACEHOLDER_TEMPLATE = "e.g. /api/users/{id}";
|
|
71
|
+
export declare const URL_TEMPLATIZATION_SCOPE_LANGUAGE = "Language:";
|
|
72
|
+
export declare const URL_TEMPLATIZATION_SCOPE_NAMESPACE = "Namespace:";
|
|
73
|
+
export declare const URL_TEMPLATIZATION_SCOPE_SOURCE = "Deployment/";
|
|
74
|
+
export declare const URL_TEMPLATIZATION_SCOPE_AND = "AND";
|
|
75
|
+
export declare const URL_TEMPLATIZATION_SCOPE_ENTIRE_CLUSTER = "Entire cluster";
|
|
76
|
+
export declare const URL_TEMPLATIZATION_VIEW_DRAWER_TITLE = "URL template";
|
|
77
|
+
export declare const URL_TEMPLATIZATION_DETAIL_TEMPLATE = "Template";
|
|
78
|
+
export declare const URL_TEMPLATIZATION_DETAIL_ORIGIN = "Origin";
|
|
79
|
+
export declare const URL_TEMPLATIZATION_DETAIL_DISPLAY_NAME = "Display name";
|
|
80
|
+
export declare const URL_TEMPLATIZATION_DETAIL_RESOURCE_NAME = "Resource name";
|
|
81
|
+
export declare const URL_TEMPLATIZATION_TRY_A_URL = "Try a URL";
|
|
82
|
+
export declare const URL_TEMPLATIZATION_TRY_A_URL_PLACEHOLDER = "/users/12/orders/345685335358";
|
|
83
|
+
export declare const URL_TEMPLATIZATION_BTN_TEST_URL = "Test URL";
|
|
84
|
+
export declare const URL_TEMPLATIZATION_BTN_CLOSE = "Close";
|
|
85
|
+
export declare const URL_TEMPLATIZATION_RESULT = "Result";
|
|
86
|
+
export declare const URL_TEMPLATIZATION_MATCH_FOUND = "Match found";
|
|
87
|
+
export declare const URL_TEMPLATIZATION_MATCH_FOUND_HINT = "This URL matches the template.";
|
|
88
|
+
export declare const URL_TEMPLATIZATION_NO_MATCH = "No match";
|
|
89
|
+
export declare const URL_TEMPLATIZATION_NO_MATCH_HINT = "This URL doesn't match the template.";
|
|
90
|
+
export declare const URL_TEMPLATIZATION_NO_MATCH_HELP = "Check the URL structure and parameter positions, then try again.";
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d6 as ACCEPT_RECOMMENDATION_DESCRIPTION,bJ as ACTION_CATEGORIES,bv as ACTION_OPTIONS,gP as ACTION_TYPE_TO_CATEGORY,gQ as ALL_LANGUAGES_WILDCARD,gR as ALL_SOURCES,d1 as APPLY_VIA_GITOPS_DESCRIPTION,d3 as APPLY_VIA_UI_DESCRIPTION,d7 as BTN_ACCEPT,dm as BTN_CANCEL,du as BTN_CONTINUE_EDITING,fE as BTN_CREATE_FIRST_RULE,cW as BTN_CREATE_RULE,dq as BTN_DELETE_RULE,d8 as BTN_DISMISS,dg as BTN_DOCS,ad as BTN_EDIT_AUTO_RULE,dp as BTN_EDIT_RULE,dh as BTN_RESTORE,dE as BTN_SAVE,dn as BTN_SAVE_RULE,n as BUTTON_TEXTS,dr as CATEGORY_DESCRIPTIONS,b0 as CATEGORY_LABELS,dt as CATEGORY_TITLES,gS as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,gT as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,gU as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,cb as DEFAULT_CLUSTER_ID,ca as DEFAULT_CLUSTER_NAME,fy as DEFAULT_DATA_STREAM_NAME,as as DESC_DURATION,gV as DESC_ERRORS,av as DESC_OPERATION,gW as DESC_PERCENTAGE_HIGHLY_RELEVANT,c0 as DESC_PERCENTAGE_NOISY,b1 as DESC_RULE_TYPE,a1 as DESC_SOURCE_SCOPE,c7 as DESTINATION_CATEGORIES,fk as DISPLAY_LANGUAGES,o as DISPLAY_TITLES,bR as DOCS_BASE_URL,bA as DestinationCategoryTypes,dA as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,dB as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,dy as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,dz as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,dC as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,dD as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,ds as EDIT_TITLES,dk as EMPTY_SUBTITLE,dl as EMPTY_TITLE,aJ as EMPTY_VALUE,bn as ERROR_APPLY_RECOMMENDATION,bO as EXTRACTION_FORMAT_COPY,bM as EXTRACT_ATTRIBUTE_FORM,fC as FILTER_TYPE_ALL,bb as FORM_ALERTS,d4 as GITOPS_OVERRIDE_WARNING,d9 as INSTALLATION_METHOD_DESCRIPTION,bE as INSTRUMENTATION_RULE_OPTIONS,d0 as LABEL_APPLY_VIA_GITOPS,d2 as LABEL_APPLY_VIA_UI,de as LABEL_BENEFITS,df as LABEL_CONSIDERATIONS,at as LABEL_CUSTOM_DURATION,c4 as LABEL_CUSTOM_PERCENTAGE,c3 as LABEL_DISABLED,cV as LABEL_DISABLED_RULE,aT as LABEL_DROP_ALL,bZ as LABEL_DROP_AT_MOST,c2 as LABEL_ENABLED,d5 as LABEL_ENABLE_RECOMMENDATION,aB as LABEL_HTTP_ROUTE,aD as LABEL_HTTP_ROUTE_PREFIX,aG as LABEL_KAFKA_TOPIC,aU as LABEL_KEEP_ALL,aQ as LABEL_KEEP_AT_LEAST,aR as LABEL_KEEP_AT_MOST,aP as LABEL_KEEP_PERCENTAGE,ar as LABEL_KEEP_TRACES_DURATION,ap as LABEL_KEEP_TRACES_ERRORS,aF as LABEL_METHOD,aY as LABEL_NOTE,ae as LABEL_NO_PREVIEW,aI as LABEL_OPERATION_TYPE,gX as LABEL_RULE_DISABLED,gY as LABEL_RULE_ENABLED,aW as LABEL_RULE_NAME,aX as LABEL_RULE_TYPE,aS as LABEL_SAMPLE,ax as LABEL_SERVER_ADDRESS,aA as LABEL_TEMPLATED_PATH,aC as LABEL_TEMPLATED_PATH_PREFIX,db as LABEL_VIA_GITOPS,da as LABEL_VIA_UI,cJ as LANGUAGE_OPTIONS,b4 as MONITORS_OPTIONS,L as NOTE_ENTIRE_CLUSTER,Z as NOTE_SOURCE_SCOPE_LOGIC,dc as NOT_APPLICABLE_SUMMARY,gZ as OPENTELEMETRY_EBPF_DISTRO_OPTION,aL as OPERATION_ALL,aK as OPERATION_HTTP_CLIENT,aH as OPERATION_HTTP_SERVER,aM as OPERATION_KAFKA_CONSUMER,aN as OPERATION_KAFKA_PRODUCER,cI as OTEL_DISTRO_NAME_OPTIONS,aO as PERCENTAGE_SECTION_DESCRIPTIONS,a_ as PLACEHOLDER_NOTE,az as PLACEHOLDER_ROUTE,aZ as PLACEHOLDER_RULE_NAME,a4 as PLACEHOLDER_SEARCH_SOURCE,aw as PLACEHOLDER_SERVER_ADDRESS,ct as PROCESS_ATTRIBUTE_NAMES,di as RECOMMENDATIONS_DRAWER_SUBTITLE,dj as RECOMMENDATIONS_DRAWER_TITLE,c as REGEX_TESTER_DRAWER,c1 as SAMPLING_AUTO_RULE_TITLE,fK as SAMPLING_BTN_CREATE_RULE,fI as SAMPLING_BTN_DOCS,fJ as SAMPLING_BTN_REFRESH,b$ as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dv as SAMPLING_DEFAULT_CONFIRM_DESCRIPTION,dx as SAMPLING_DEFAULT_CONFIRM_PREVIEW_LABEL,dw as SAMPLING_DEFAULT_CONFIRM_TITLE,fN as SAMPLING_DELETE_MODAL_APPROVE,fO as SAMPLING_DELETE_MODAL_CANCEL,fP as SAMPLING_DELETE_MODAL_DESCRIPTION,fQ as SAMPLING_DELETE_MODAL_TITLE,dF as SAMPLING_DRAWER_WIDTH,fH as SAMPLING_DUPLICATE_RULE_WARNING,bY as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,et as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,eu as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,ev as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,ew as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,ex as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,ey as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,ez as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,eA as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,eB as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,eC as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,eE as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,eD as SAMPLING_ONBOARDING_ADVANCED_TITLE,eV as SAMPLING_ONBOARDING_AMBIENT_LABEL,d$ as SAMPLING_ONBOARDING_BTN_GO_TO,dM as SAMPLING_ONBOARDING_BTN_NEXT,es as SAMPLING_ONBOARDING_BTN_READ_MORE,ea as SAMPLING_ONBOARDING_BTN_SKIP,eb as SAMPLING_ONBOARDING_BTN_START,eF as SAMPLING_ONBOARDING_COMMON_BANNER,eU as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,eI as SAMPLING_ONBOARDING_DROP_DESCRIPTION,eH as SAMPLING_ONBOARDING_DROP_SUBTITLE,eG as SAMPLING_ONBOARDING_DROP_TITLE,eL as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,eK as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,eO as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,eN as SAMPLING_ONBOARDING_KEEP_SUBTITLE,eM as SAMPLING_ONBOARDING_KEEP_TITLE,eP as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,eQ as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,eR as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,eS as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,eT as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,dT as SAMPLING_ONBOARDING_NOISY_BANNER,dP as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,dS as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,dQ as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,dR as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,dO as SAMPLING_ONBOARDING_NOISY_SUBTITLE,dN as SAMPLING_ONBOARDING_NOISY_TITLE,eJ as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,dL as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,ep as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,eq as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,er as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,em as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,ek as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,el as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,en as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,eo as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,eh as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,ef as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,eg as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,ei as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,ej as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,ee as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,ed as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,ec as SAMPLING_ONBOARDING_STRATEGY_TITLE,dY as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,dZ as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,d_ as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,dX as SAMPLING_ONBOARDING_SUCCESS_INTRO,dW as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,dV as SAMPLING_ONBOARDING_SUCCESS_TITLE,e9 as SAMPLING_ONBOARDING_WELCOME_BANNER,e2 as SAMPLING_ONBOARDING_WELCOME_INTRO,e3 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,e4 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,e5 as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,e6 as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,e7 as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,e8 as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,e1 as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,e0 as SAMPLING_ONBOARDING_WELCOME_TITLE,fL as SAMPLING_PAGE_DESCRIPTION,fM as SAMPLING_PAGE_TITLE,a7 as SCOPE_AND_LABEL,a6 as SCOPE_GROUP_ANY_OF_HINT,Y as SCOPE_GROUP_LANGUAGES_TITLE,X as SCOPE_GROUP_NAMESPACES_TITLE,O as SCOPE_GROUP_SOURCES_TITLE,g_ as SECTION_APPLIED,g$ as SECTION_DISMISSED,aq as SECTION_DURATION,ao as SECTION_ERRORS,b_ as SECTION_KEEP_PERCENTAGE,h0 as SECTION_NOT_APPLICABLE,au as SECTION_OPERATION,h1 as SECTION_RECOMMENDED,b2 as SECTION_SAMPLING_PREVIEW,a8 as SECTION_SOURCE_SCOPE,dd as SECTION_TITLES,fj as STORAGE_KEYS,bo as SUCCESS_APPLIED,bp as SUCCESS_DISMISSED,bq as SUCCESS_RESTORED,fD as TITLE_NO_RESULTS,fF as TITLE_NO_RULES,h2 as TOKEN_ABOUT_TO_EXPIRE,a$ as TOOLTIP_NOTE,U as UNKNOWN_SOURCE_LABEL,aV as UNNAMED_RULE,co as canAgentReportPodStartTime,fG as getNoResultsSubTitle,cQ as getSourceConditionsForPanel,c5 as getSupportedActionOptions,bW as getSupportedLanguageIcon,bX as getSupportedLanguageLabel,h3 as isActionSupportedOnPlatform,h4 as isActionSupportedOnVersion,bT as isRuleSourceScopeSupported,bk as mapActionTypesToOptions,bs as mapRuleTypesToOptions,bU as normalizeSupportedLanguagesForDisplay,cP as shouldShowSourceConditionsPanel,h5 as supportsAllLanguages,bV as toScopeSupportedLanguages}from"./chunks/ui-components-DqG0z5U0.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";
|
|
1
|
+
export{d7 as ACCEPT_RECOMMENDATION_DESCRIPTION,bK as ACTION_CATEGORIES,bw as ACTION_OPTIONS,id as ACTION_TYPE_TO_CATEGORY,ie as ALL_LANGUAGES_WILDCARD,ig as ALL_SOURCES,d2 as APPLY_VIA_GITOPS_DESCRIPTION,d4 as APPLY_VIA_UI_DESCRIPTION,d8 as BTN_ACCEPT,dn as BTN_CANCEL,dv as BTN_CONTINUE_EDITING,gK as BTN_CREATE_FIRST_RULE,cX as BTN_CREATE_RULE,dr as BTN_DELETE_RULE,d9 as BTN_DISMISS,dh as BTN_DOCS,ad as BTN_EDIT_AUTO_RULE,dq as BTN_EDIT_RULE,di as BTN_RESTORE,dF as BTN_SAVE,dp as BTN_SAVE_RULE,n as BUTTON_TEXTS,ds as CATEGORY_DESCRIPTIONS,b0 as CATEGORY_LABELS,du as CATEGORY_TITLES,ih as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,ii as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,ij as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,bk as DEFAULT_CLUSTER_ID,cc as DEFAULT_CLUSTER_NAME,gF as DEFAULT_DATA_STREAM_NAME,as as DESC_DURATION,ik as DESC_ERRORS,av as DESC_OPERATION,il as DESC_PERCENTAGE_HIGHLY_RELEVANT,c1 as DESC_PERCENTAGE_NOISY,b1 as DESC_RULE_TYPE,a1 as DESC_SOURCE_SCOPE,c8 as DESTINATION_CATEGORIES,gr as DISPLAY_LANGUAGES,o as DISPLAY_TITLES,bS as DOCS_BASE_URL,bB as DestinationCategoryTypes,dB as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,dC as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,dz as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,dA as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,dD as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,dE as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,dt as EDIT_TITLES,dl as EMPTY_SUBTITLE,dm as EMPTY_TITLE,aJ as EMPTY_VALUE,bo as ERROR_APPLY_RECOMMENDATION,bP as EXTRACTION_FORMAT_COPY,bN as EXTRACT_ATTRIBUTE_FORM,gN as FILTER_TYPE_ALL,bb as FORM_ALERTS,d5 as GITOPS_OVERRIDE_WARNING,da as INSTALLATION_METHOD_DESCRIPTION,bF as INSTRUMENTATION_RULE_OPTIONS,d1 as LABEL_APPLY_VIA_GITOPS,d3 as LABEL_APPLY_VIA_UI,df as LABEL_BENEFITS,dg as LABEL_CONSIDERATIONS,at as LABEL_CUSTOM_DURATION,c5 as LABEL_CUSTOM_PERCENTAGE,c4 as LABEL_DISABLED,cW as LABEL_DISABLED_RULE,aT as LABEL_DROP_ALL,b_ as LABEL_DROP_AT_MOST,c3 as LABEL_ENABLED,d6 as LABEL_ENABLE_RECOMMENDATION,aB as LABEL_HTTP_ROUTE,aD as LABEL_HTTP_ROUTE_PREFIX,aG as LABEL_KAFKA_TOPIC,aU as LABEL_KEEP_ALL,aQ as LABEL_KEEP_AT_LEAST,aR as LABEL_KEEP_AT_MOST,aP as LABEL_KEEP_PERCENTAGE,ar as LABEL_KEEP_TRACES_DURATION,ap as LABEL_KEEP_TRACES_ERRORS,aF as LABEL_METHOD,aY as LABEL_NOTE,ae as LABEL_NO_PREVIEW,aI as LABEL_OPERATION_TYPE,im as LABEL_RULE_DISABLED,io as LABEL_RULE_ENABLED,aW as LABEL_RULE_NAME,aX as LABEL_RULE_TYPE,aS as LABEL_SAMPLE,ax as LABEL_SERVER_ADDRESS,aA as LABEL_TEMPLATED_PATH,aC as LABEL_TEMPLATED_PATH_PREFIX,dc as LABEL_VIA_GITOPS,db as LABEL_VIA_UI,cK as LANGUAGE_OPTIONS,b4 as MONITORS_OPTIONS,L as NOTE_ENTIRE_CLUSTER,Z as NOTE_SOURCE_SCOPE_LOGIC,dd as NOT_APPLICABLE_SUMMARY,ip as OPENTELEMETRY_EBPF_DISTRO_OPTION,aL as OPERATION_ALL,aK as OPERATION_HTTP_CLIENT,aH as OPERATION_HTTP_SERVER,aM as OPERATION_KAFKA_CONSUMER,aN as OPERATION_KAFKA_PRODUCER,cJ as OTEL_DISTRO_NAME_OPTIONS,aO as PERCENTAGE_SECTION_DESCRIPTIONS,a_ as PLACEHOLDER_NOTE,az as PLACEHOLDER_ROUTE,aZ as PLACEHOLDER_RULE_NAME,a4 as PLACEHOLDER_SEARCH_SOURCE,aw as PLACEHOLDER_SERVER_ADDRESS,cu as PROCESS_ATTRIBUTE_NAMES,dj as RECOMMENDATIONS_DRAWER_SUBTITLE,dk as RECOMMENDATIONS_DRAWER_TITLE,c as REGEX_TESTER_DRAWER,c2 as SAMPLING_AUTO_RULE_TITLE,gR as SAMPLING_BTN_CREATE_RULE,gP as SAMPLING_BTN_DOCS,gQ as SAMPLING_BTN_REFRESH,c0 as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dw as SAMPLING_DEFAULT_CONFIRM_DESCRIPTION,dy as SAMPLING_DEFAULT_CONFIRM_PREVIEW_LABEL,dx as SAMPLING_DEFAULT_CONFIRM_TITLE,gU as SAMPLING_DELETE_MODAL_APPROVE,gV as SAMPLING_DELETE_MODAL_CANCEL,gW as SAMPLING_DELETE_MODAL_DESCRIPTION,gX as SAMPLING_DELETE_MODAL_TITLE,dG as SAMPLING_DRAWER_WIDTH,gO as SAMPLING_DUPLICATE_RULE_WARNING,bZ as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,fv as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,fw as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,fx as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,fy as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,fz as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,fA as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,fB as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,fC as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,fD as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,fE as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,fG as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,fF as SAMPLING_ONBOARDING_ADVANCED_TITLE,fX as SAMPLING_ONBOARDING_AMBIENT_LABEL,f1 as SAMPLING_ONBOARDING_BTN_GO_TO,eO as SAMPLING_ONBOARDING_BTN_NEXT,fu as SAMPLING_ONBOARDING_BTN_READ_MORE,fc as SAMPLING_ONBOARDING_BTN_SKIP,fd as SAMPLING_ONBOARDING_BTN_START,fH as SAMPLING_ONBOARDING_COMMON_BANNER,fW as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,fK as SAMPLING_ONBOARDING_DROP_DESCRIPTION,fJ as SAMPLING_ONBOARDING_DROP_SUBTITLE,fI as SAMPLING_ONBOARDING_DROP_TITLE,fN as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,fM as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,fQ as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,fP as SAMPLING_ONBOARDING_KEEP_SUBTITLE,fO as SAMPLING_ONBOARDING_KEEP_TITLE,fR as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,fS as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,fT as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,fU as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,fV as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,eV as SAMPLING_ONBOARDING_NOISY_BANNER,eR as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,eU as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,eS as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,eT as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,eQ as SAMPLING_ONBOARDING_NOISY_SUBTITLE,eP as SAMPLING_ONBOARDING_NOISY_TITLE,fL as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,eN as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,fr as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,fs as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,ft as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,fo as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,fm as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,fn as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,fp as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,fq as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,fj as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,fh as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,fi as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,fk as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,fl as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,fg as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,ff as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,fe as SAMPLING_ONBOARDING_STRATEGY_TITLE,e_ as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,e$ as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,f0 as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,eZ as SAMPLING_ONBOARDING_SUCCESS_INTRO,eY as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,eX as SAMPLING_ONBOARDING_SUCCESS_TITLE,fb as SAMPLING_ONBOARDING_WELCOME_BANNER,f4 as SAMPLING_ONBOARDING_WELCOME_INTRO,f5 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,f6 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,f7 as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,f8 as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,f9 as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,fa as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,f3 as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,f2 as SAMPLING_ONBOARDING_WELCOME_TITLE,gS as SAMPLING_PAGE_DESCRIPTION,gT as SAMPLING_PAGE_TITLE,a7 as SCOPE_AND_LABEL,a6 as SCOPE_GROUP_ANY_OF_HINT,Y as SCOPE_GROUP_LANGUAGES_TITLE,X as SCOPE_GROUP_NAMESPACES_TITLE,O as SCOPE_GROUP_SOURCES_TITLE,iq as SECTION_APPLIED,ir as SECTION_DISMISSED,aq as SECTION_DURATION,ao as SECTION_ERRORS,b$ as SECTION_KEEP_PERCENTAGE,is as SECTION_NOT_APPLICABLE,au as SECTION_OPERATION,it as SECTION_RECOMMENDED,b2 as SECTION_SAMPLING_PREVIEW,a8 as SECTION_SOURCE_SCOPE,de as SECTION_TITLES,gq as STORAGE_KEYS,bp as SUCCESS_APPLIED,bq as SUCCESS_DISMISSED,br as SUCCESS_RESTORED,gJ as TITLE_NO_RESULTS,gL as TITLE_NO_RULES,iu as TOKEN_ABOUT_TO_EXPIRE,a$ as TOOLTIP_NOTE,U as UNKNOWN_SOURCE_LABEL,aV as UNNAMED_RULE,dY as URL_TEMPLATIZATION_ACTION_FIELD_LABEL,e8 as URL_TEMPLATIZATION_ACTION_NAME_LABEL,dS as URL_TEMPLATIZATION_ADD_EXISTING_GROUP,dV as URL_TEMPLATIZATION_ADD_NEW_GROUP,dX as URL_TEMPLATIZATION_ADVANCED_CONFIGURATION,em as URL_TEMPLATIZATION_BADGE_ADVANCED,e9 as URL_TEMPLATIZATION_BADGE_UI,ed as URL_TEMPLATIZATION_BTN_ADD_RULE,h7 as URL_TEMPLATIZATION_BTN_ADD_TEMPLATE,e3 as URL_TEMPLATIZATION_BTN_BACK,e1 as URL_TEMPLATIZATION_BTN_CANCEL,et as URL_TEMPLATIZATION_BTN_CLOSE,ha as URL_TEMPLATIZATION_BTN_CREATE,iv as URL_TEMPLATIZATION_BTN_CREATE_GROUP,h5 as URL_TEMPLATIZATION_BTN_CREATE_TEMPLATE_GROUP,h9 as URL_TEMPLATIZATION_BTN_DOCS,h6 as URL_TEMPLATIZATION_BTN_EDIT_GROUP,hf as URL_TEMPLATIZATION_BTN_ENABLE_DEFAULT,e2 as URL_TEMPLATIZATION_BTN_NEXT,e4 as URL_TEMPLATIZATION_BTN_SAVE,eB as URL_TEMPLATIZATION_BTN_TEST_URL,dN as URL_TEMPLATIZATION_CHOOSE_DESTINATION,e0 as URL_TEMPLATIZATION_CUSTOM_DRAWER_SUBTITLE,e6 as URL_TEMPLATIZATION_CUSTOM_DRAWER_TITLE,hg as URL_TEMPLATIZATION_CUSTOM_EMPTY_SUBTITLE,hh as URL_TEMPLATIZATION_CUSTOM_EMPTY_TITLE,h0 as URL_TEMPLATIZATION_CUSTOM_SECTION_SUBTITLE,dM as URL_TEMPLATIZATION_DEFAULT_ACTION_NAME,iw as URL_TEMPLATIZATION_DEFAULT_CONFIGURED_PLACEHOLDER,hd as URL_TEMPLATIZATION_DEFAULT_EMPTY_SUBTITLE,he as URL_TEMPLATIZATION_DEFAULT_EMPTY_TITLE,ef as URL_TEMPLATIZATION_DEFAULT_RULE_DRAWER_SUBTITLE,eh as URL_TEMPLATIZATION_DEFAULT_RULE_DRAWER_TITLE,g_ as URL_TEMPLATIZATION_DEFAULT_SECTION_SUBTITLE,ei as URL_TEMPLATIZATION_DESC_DEFAULT_TEMPLATIZATION,en as URL_TEMPLATIZATION_DESC_SKIP_POLICY,ix as URL_TEMPLATIZATION_DESC_SOURCE_SCOPE,dR as URL_TEMPLATIZATION_DESTINATION_CLUSTER_HINT,dP as URL_TEMPLATIZATION_DESTINATION_ENTIRE_CLUSTER,dQ as URL_TEMPLATIZATION_DESTINATION_GROUP_HINT,dO as URL_TEMPLATIZATION_DESTINATION_TEMPLATE_GROUP,ex as URL_TEMPLATIZATION_DETAIL_DISPLAY_NAME,ew as URL_TEMPLATIZATION_DETAIL_ORIGIN,ey as URL_TEMPLATIZATION_DETAIL_RESOURCE_NAME,ev as URL_TEMPLATIZATION_DETAIL_TEMPLATE,h8 as URL_TEMPLATIZATION_DOCS_URL,e7 as URL_TEMPLATIZATION_DRAWER_WIDTH,eg as URL_TEMPLATIZATION_EDIT_DEFAULT_RULE_DRAWER_TITLE,ec as URL_TEMPLATIZATION_ERROR_INVALID_STATUS_CODES,e5 as URL_TEMPLATIZATION_FOOTER_IMMEDIATE_EFFECT,ee as URL_TEMPLATIZATION_FOOTER_SAVE_EFFECT,er as URL_TEMPLATIZATION_HELPER_STATUS_CODES,eD as URL_TEMPLATIZATION_MATCH_FOUND,eF as URL_TEMPLATIZATION_MATCH_FOUND_HINT,d$ as URL_TEMPLATIZATION_NEW_ACTION_HINT,dZ as URL_TEMPLATIZATION_NEW_ACTION_NAME_LABEL,d_ as URL_TEMPLATIZATION_NEW_ACTION_PLACEHOLDER,dW as URL_TEMPLATIZATION_NEW_GROUP_DEFAULT_HINT,iy as URL_TEMPLATIZATION_NOTE_ENTIRE_CLUSTER,eE as URL_TEMPLATIZATION_NO_MATCH,eH as URL_TEMPLATIZATION_NO_MATCH_HELP,eG as URL_TEMPLATIZATION_NO_MATCH_HINT,hb as URL_TEMPLATIZATION_PAGE_DESCRIPTION,hc as URL_TEMPLATIZATION_PAGE_TITLE,es as URL_TEMPLATIZATION_PLACEHOLDER_STATUS_CODES,ea as URL_TEMPLATIZATION_PLACEHOLDER_TEMPLATE,eC as URL_TEMPLATIZATION_RESULT,dL as URL_TEMPLATIZATION_SCOPE_AND,dH as URL_TEMPLATIZATION_SCOPE_ENTIRE_CLUSTER,dI as URL_TEMPLATIZATION_SCOPE_LANGUAGE,dJ as URL_TEMPLATIZATION_SCOPE_NAMESPACE,dK as URL_TEMPLATIZATION_SCOPE_SOURCE,dT as URL_TEMPLATIZATION_SEARCH_GROUPS_PLACEHOLDER,g$ as URL_TEMPLATIZATION_SECTION_CUSTOM,gZ as URL_TEMPLATIZATION_SECTION_DEFAULT,ej as URL_TEMPLATIZATION_SECTION_DEFAULT_TEMPLATIZATION,eo as URL_TEMPLATIZATION_SECTION_SKIP_POLICY,iz as URL_TEMPLATIZATION_SECTION_SOURCE_SCOPE,eb as URL_TEMPLATIZATION_SECTION_TEMPLATES,dU as URL_TEMPLATIZATION_SELECTED_GROUP,el as URL_TEMPLATIZATION_TOGGLE_ENABLE_NORMALIZATION,ep as URL_TEMPLATIZATION_TOGGLE_SKIP_NON_2XX,eq as URL_TEMPLATIZATION_TOGGLE_SKIP_STATUS_CODES,ez as URL_TEMPLATIZATION_TRY_A_URL,eA as URL_TEMPLATIZATION_TRY_A_URL_PLACEHOLDER,h1 as URL_TEMPLATIZATION_VIEW_BY,eu as URL_TEMPLATIZATION_VIEW_DRAWER_TITLE,h2 as URL_TEMPLATIZATION_VIEW_GROUPS,h4 as URL_TEMPLATIZATION_VIEW_LIST,h3 as URL_TEMPLATIZATION_VIEW_TREE,cp as canAgentReportPodStartTime,gM as getNoResultsSubTitle,cR as getSourceConditionsForPanel,c6 as getSupportedActionOptions,bX as getSupportedLanguageIcon,bY as getSupportedLanguageLabel,iA as isActionSupportedOnPlatform,iB as isActionSupportedOnVersion,bU as isRuleSourceScopeSupported,bl as mapActionTypesToOptions,bt as mapRuleTypesToOptions,bV as normalizeSupportedLanguagesForDisplay,ca as ruleTypeRequiresConfiguration,cQ as shouldShowSourceConditionsPanel,iC as supportsAllLanguages,bW as toScopeSupportedLanguages}from"./chunks/ui-components-CjgsN17j.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";
|
|
@@ -11,4 +11,7 @@ export * from './edit-source-drawer';
|
|
|
11
11
|
export * from './regex-tester-drawer';
|
|
12
12
|
export * from './recommendations-drawer';
|
|
13
13
|
export * from './sampling-rule-drawer';
|
|
14
|
+
export * from './url-templatization-custom-template-drawer';
|
|
15
|
+
export * from './url-templatization-default-rule-drawer';
|
|
16
|
+
export * from './url-templatization-template-view-drawer';
|
|
14
17
|
export * from './system-drawer';
|
package/lib/containers/_drawers/url-templatization-custom-template-drawer/destination-step.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type CustomTemplateActionOption, type CustomTemplateGroupOption, type UrlTemplatizationCustomTemplateFormState } from '../../url-templatization/converters';
|
|
3
|
+
interface DestinationStepProps {
|
|
4
|
+
formState: UrlTemplatizationCustomTemplateFormState;
|
|
5
|
+
existingGroups: CustomTemplateGroupOption[];
|
|
6
|
+
templatizationActions: CustomTemplateActionOption[];
|
|
7
|
+
defaultActionId?: string | null;
|
|
8
|
+
defaultActionName?: string;
|
|
9
|
+
groupSearch: string;
|
|
10
|
+
advancedOpen: boolean;
|
|
11
|
+
onGroupSearchChange: (value: string) => void;
|
|
12
|
+
onAdvancedOpenChange: (open: boolean) => void;
|
|
13
|
+
onChange: (patch: Partial<UrlTemplatizationCustomTemplateFormState>) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const DestinationStep: FC<DestinationStepProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { AutocompleteOption } from '../../../components/autocomplete';
|
|
3
|
+
import { type CustomTemplateActionOption, type CustomTemplateGroupOption, type UrlTemplatizationCustomTemplateFormState } from '../../url-templatization/converters';
|
|
4
|
+
export type CustomTemplateDrawerPrefill = Partial<Pick<UrlTemplatizationCustomTemplateFormState, 'destination' | 'groupMode' | 'existingGroupIndex' | 'targetActionId' | 'createNewAction'>> & {
|
|
5
|
+
step?: 1 | 2;
|
|
6
|
+
};
|
|
7
|
+
export interface UrlTemplatizationCustomTemplateDrawerProps {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
submitting?: boolean;
|
|
10
|
+
prefill?: CustomTemplateDrawerPrefill;
|
|
11
|
+
templatizationActions?: CustomTemplateActionOption[];
|
|
12
|
+
existingGroups?: CustomTemplateGroupOption[];
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
onSubmit: (state: UrlTemplatizationCustomTemplateFormState) => void | Promise<void>;
|
|
15
|
+
sourceOptions?: AutocompleteOption[];
|
|
16
|
+
namespaceOptions?: AutocompleteOption[];
|
|
17
|
+
}
|
|
18
|
+
export declare const UrlTemplatizationCustomTemplateDrawer: FC<UrlTemplatizationCustomTemplateDrawerProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { AutocompleteOption } from '../../../components/autocomplete';
|
|
3
|
+
import type { UrlTemplatizationDefaultRuleFormState } from '../../url-templatization/converters';
|
|
4
|
+
export interface UrlTemplatizationDefaultRuleDrawerProps {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
submitting?: boolean;
|
|
7
|
+
mode?: 'create' | 'edit';
|
|
8
|
+
initialFormState?: UrlTemplatizationDefaultRuleFormState;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onSubmit: (state: UrlTemplatizationDefaultRuleFormState) => void | Promise<void>;
|
|
11
|
+
sourceOptions?: AutocompleteOption[];
|
|
12
|
+
namespaceOptions?: AutocompleteOption[];
|
|
13
|
+
}
|
|
14
|
+
export declare const UrlTemplatizationDefaultRuleDrawer: FC<UrlTemplatizationDefaultRuleDrawerProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export interface UrlTemplatizationTemplateViewDrawerProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
template: string;
|
|
5
|
+
actionName?: string | null;
|
|
6
|
+
actionId?: string | null;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const UrlTemplatizationTemplateViewDrawer: FC<UrlTemplatizationTemplateViewDrawerProps>;
|
|
@@ -2,6 +2,7 @@ import { type Connection, type MinSupportedVersion, PlatformType } from '../../t
|
|
|
2
2
|
import { type IslandProps, type TableProps, type TableRowCell } from '../../components';
|
|
3
3
|
export declare enum DrawerId {
|
|
4
4
|
BulkConfig = "bulk-config",
|
|
5
|
+
BulkSource = "bulk-source",
|
|
5
6
|
Delete = "delete"
|
|
6
7
|
}
|
|
7
8
|
export declare enum CreateNewType {
|
|
@@ -30,13 +31,20 @@ export declare const isConnectionAlive: (cells: TableRowCell[]) => boolean;
|
|
|
30
31
|
export declare const getSupportedConnections: (connections: Connection[], minVersion: MinSupportedVersion) => Connection[];
|
|
31
32
|
export interface BuildIslandActionsOptions {
|
|
32
33
|
onCancel: () => void;
|
|
34
|
+
onAddSource?: () => void;
|
|
35
|
+
addSourceDisabled?: boolean;
|
|
36
|
+
addSourceTooltip?: string;
|
|
33
37
|
onManageConfigurations?: () => void;
|
|
38
|
+
manageConfigDisabled?: boolean;
|
|
39
|
+
manageConfigTooltip?: string;
|
|
34
40
|
}
|
|
35
41
|
export declare const buildIslandActions: (opts: BuildIslandActionsOptions) => IslandProps["actions"];
|
|
36
42
|
export interface BuildRowActionsOptions {
|
|
37
43
|
connections: Connection[];
|
|
38
44
|
configMinSupportedVersion: MinSupportedVersion;
|
|
45
|
+
snapshotMinSupportedVersion: MinSupportedVersion;
|
|
39
46
|
onDelete: (connectionId: string) => void;
|
|
47
|
+
onAddSource?: (connectionId: string) => void;
|
|
40
48
|
onEditConfiguration?: (connectionId: string) => void;
|
|
41
49
|
}
|
|
42
50
|
export declare const buildRowActions: (opts: BuildRowActionsOptions) => TableProps["getRowActions"];
|
|
@@ -11,5 +11,6 @@ export interface CentralConnectionsProps {
|
|
|
11
11
|
cloudConnectorProviders?: CloudConnectorProvider[];
|
|
12
12
|
onCreateCloudConnector?: (input: CloudConnectorCreateInput) => Promise<CloudConnectorCreateResult>;
|
|
13
13
|
configMinSupportedVersion?: MinSupportedVersion;
|
|
14
|
+
snapshotMinSupportedVersion?: MinSupportedVersion;
|
|
14
15
|
}
|
|
15
16
|
export declare const CentralConnections: FC<CentralConnectionsProps>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type ActionsProps } from '../../../../snippets/actions';
|
|
2
1
|
import { TypographySize } from '../../../../components';
|
|
3
2
|
export declare const getSmallRichTitle: (title: string, subTitle: string) => {
|
|
4
3
|
title: string;
|
|
@@ -8,4 +7,3 @@ export declare const getSmallRichTitle: (title: string, subTitle: string) => {
|
|
|
8
7
|
subTitleSize: TypographySize;
|
|
9
8
|
textGap: number;
|
|
10
9
|
};
|
|
11
|
-
export declare const getFindingActions: () => ActionsProps["actions"];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { type InsightsApi } from '../../../contexts';
|
|
1
2
|
import { type FormatDurationAgo } from '../../../hooks';
|
|
2
3
|
import { type DefaultTheme } from 'styled-components';
|
|
3
4
|
import { type OpenInsightsDrawer } from '../insights-context';
|
|
4
|
-
import { type InsightsFinding, InsightsSeverity, InsightsViolationStatus, InsightsAnomalyStatus } from '../../../types';
|
|
5
5
|
import { type TableColumn, type TableRow, type HoverAction, type BadgeProps } from '../../../components';
|
|
6
|
+
import { type InsightsFinding, InsightsSeverity, InsightsViolationStatus, InsightsAnomalyStatus } from '../../../types';
|
|
6
7
|
export declare enum FindingsColumnKeys {
|
|
7
8
|
Title = "title",
|
|
8
9
|
TransactionId = "transactionId",
|
|
@@ -29,6 +30,15 @@ export type FindingsServiceGroup = {
|
|
|
29
30
|
/** Stable drawer/table id — anomalies: transactionId+signature; violations: scopeKey+ruleKey+offending. */
|
|
30
31
|
export declare const getFindingId: (finding: InsightsFinding) => string;
|
|
31
32
|
export declare const findFindingById: (findings: InsightsFinding[] | undefined, id: string) => InsightsFinding | undefined;
|
|
33
|
+
export declare const isSameFinding: (a: InsightsFinding, b: InsightsFinding) => boolean;
|
|
34
|
+
export declare enum FindingsResolutionAction {
|
|
35
|
+
Dismiss = "dismiss",
|
|
36
|
+
Allow = "allow"
|
|
37
|
+
}
|
|
38
|
+
export declare const isFindingAlreadyResolved: (finding: InsightsFinding, action: FindingsResolutionAction) => boolean;
|
|
39
|
+
export declare const areAllFindingsAlreadyResolved: (findings: InsightsFinding[], action: FindingsResolutionAction) => boolean;
|
|
40
|
+
/** Dismiss/allow a mixed findings selection: anomalies use resolve, violations use guardrail actions. */
|
|
41
|
+
export declare const applyFindingsResolution: (insightsApi: InsightsApi, findings: InsightsFinding[], action: FindingsResolutionAction) => Promise<void>;
|
|
32
42
|
export declare const getFindingsRowActions: (row: TableRow, openDrawer: OpenInsightsDrawer) => HoverAction[];
|
|
33
43
|
export declare const FINDINGS_TABLE_COLUMNS: TableColumn[];
|
|
34
44
|
export declare const FINDINGS_GROUP_BY_SERVICE_COLUMNS: TableColumn[];
|
|
@@ -43,5 +53,5 @@ export declare const getCountsForFindings: (findings?: InsightsFinding[]) => {
|
|
|
43
53
|
};
|
|
44
54
|
export declare const getBadgePropsForSeverity: (theme: DefaultTheme, severity: InsightsSeverity) => BadgeProps;
|
|
45
55
|
export declare const getBadgePropsForStatus: (theme: DefaultTheme, status: InsightsViolationStatus | InsightsAnomalyStatus) => BadgeProps;
|
|
46
|
-
export declare const getTableRowsForFindings: (theme: DefaultTheme, formatDurationAgo: FormatDurationAgo, findings?: InsightsFinding[], limit?: number) => TableRow[];
|
|
47
|
-
export declare const getTableRowsForFindingsGroupedByService: (theme: DefaultTheme, formatDurationAgo: FormatDurationAgo, openDrawer: OpenInsightsDrawer, groups: FindingsServiceGroup[]) => TableRow[];
|
|
56
|
+
export declare const getTableRowsForFindings: (theme: DefaultTheme, formatDurationAgo: FormatDurationAgo, findings?: InsightsFinding[], limit?: number, selectedFindings?: InsightsFinding[], toggleSelection?: (finding: InsightsFinding, selected: boolean) => void) => TableRow[];
|
|
57
|
+
export declare const getTableRowsForFindingsGroupedByService: (theme: DefaultTheme, formatDurationAgo: FormatDurationAgo, openDrawer: OpenInsightsDrawer, groups: FindingsServiceGroup[], selectedFindings?: InsightsFinding[], toggleSelection?: (finding: InsightsFinding, selected: boolean) => void) => TableRow[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { InsightsFinding } from '../../../../types';
|
|
3
|
+
import { ButtonProps } from '../../../../components';
|
|
4
|
+
import { FindingsResolutionAction } from '../helpers';
|
|
5
|
+
export interface ResolveFindingsProps {
|
|
6
|
+
actionType: FindingsResolutionAction;
|
|
7
|
+
selectedFindings: InsightsFinding[];
|
|
8
|
+
onDone?: () => void;
|
|
9
|
+
buttonProps?: Omit<ButtonProps, 'onClick' | 'loading' | 'disabled'>;
|
|
10
|
+
}
|
|
11
|
+
export declare const ResolveFindings: FC<ResolveFindingsProps>;
|
|
@@ -10,6 +10,7 @@ interface ContainedTableAndHeadingProps {
|
|
|
10
10
|
/** Remount the table when this changes (e.g. all vs group-by-service) so virtualized rows don't leak across modes. */
|
|
11
11
|
tableKey?: string | number;
|
|
12
12
|
tableMaxHeight?: CSSProperties['maxHeight'];
|
|
13
|
+
tableWithCheckboxes?: boolean;
|
|
13
14
|
isLoading?: boolean;
|
|
14
15
|
actions?: ActionsProps['actions'];
|
|
15
16
|
children?: ReactNode;
|
package/lib/containers/insights/settings-and-configurations/panels/guardrails/create-panel.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type InsightsGuardrailInput, type InsightsServiceProfile, type InsightsServiceStat } from '../../../../../types';
|
|
3
3
|
export interface CreatePanelProps {
|
|
4
4
|
services: InsightsServiceStat[];
|
|
5
5
|
profile: InsightsServiceProfile | null;
|
|
@@ -8,10 +8,6 @@ export interface CreatePanelProps {
|
|
|
8
8
|
service: string;
|
|
9
9
|
onNamespaceChange: (namespace: string) => void;
|
|
10
10
|
onServiceChange: (service: string) => void;
|
|
11
|
-
onSubmit: (
|
|
12
|
-
scopeKey: string;
|
|
13
|
-
mode: InsightsRuleMode;
|
|
14
|
-
items: string;
|
|
15
|
-
}) => void | Promise<void>;
|
|
11
|
+
onSubmit: (input: InsightsGuardrailInput) => void | Promise<void>;
|
|
16
12
|
}
|
|
17
13
|
export declare const CreatePanel: FC<CreatePanelProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { SourcesScopes, UrlTemplatizationDefaultGroup, UrlTemplatizationRulesGroup } from '../../types';
|
|
2
|
+
export interface UrlTemplatizationDefaultRuleFormState {
|
|
3
|
+
scopes: SourcesScopes;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
skipForNonSuccessCodes: boolean;
|
|
6
|
+
skipSelectedHttpStatusCodes: boolean;
|
|
7
|
+
skipHttpStatusCodesInput: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function getDefaultRuleFormState(): UrlTemplatizationDefaultRuleFormState;
|
|
10
|
+
export declare function parseHttpStatusCodes(input: string): number[] | null;
|
|
11
|
+
export declare function defaultGroupToFormState(group: UrlTemplatizationDefaultGroup): UrlTemplatizationDefaultRuleFormState;
|
|
12
|
+
export declare function formStateToDefaultGroup(state: UrlTemplatizationDefaultRuleFormState): UrlTemplatizationDefaultGroup;
|
|
13
|
+
export type CustomTemplateDestination = 'template-group' | 'entire-cluster';
|
|
14
|
+
export type CustomTemplateGroupMode = 'existing' | 'new';
|
|
15
|
+
export interface CustomTemplateGroupOption {
|
|
16
|
+
actionId: string;
|
|
17
|
+
actionName: string;
|
|
18
|
+
groupIndex: number;
|
|
19
|
+
group: UrlTemplatizationRulesGroup;
|
|
20
|
+
}
|
|
21
|
+
export interface CustomTemplateActionOption {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
export interface UrlTemplatizationCustomTemplateFormState {
|
|
26
|
+
destination: CustomTemplateDestination;
|
|
27
|
+
groupMode: CustomTemplateGroupMode;
|
|
28
|
+
existingGroupIndex: number | null;
|
|
29
|
+
targetActionId: string | null;
|
|
30
|
+
createNewAction: boolean;
|
|
31
|
+
newActionName: string;
|
|
32
|
+
scopes: SourcesScopes;
|
|
33
|
+
templates: string[];
|
|
34
|
+
}
|
|
35
|
+
export declare function getCustomTemplateFormState(options?: {
|
|
36
|
+
hasExistingGroups?: boolean;
|
|
37
|
+
defaultActionId?: string | null;
|
|
38
|
+
}): UrlTemplatizationCustomTemplateFormState;
|
|
39
|
+
export declare function rulesGroupToScopes(group: UrlTemplatizationRulesGroup): SourcesScopes;
|
|
40
|
+
export declare function formStateToRulesGroup(state: UrlTemplatizationCustomTemplateFormState): UrlTemplatizationRulesGroup;
|
|
41
|
+
export declare function appendTemplatesToGroup(group: UrlTemplatizationRulesGroup, templates: string[]): UrlTemplatizationRulesGroup;
|
|
42
|
+
export declare function groupMatchesQuery(group: UrlTemplatizationRulesGroup, query: string, actionName?: string): boolean;
|
|
43
|
+
export declare function hasNonEmptyTemplate(templates: string[]): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type CustomTemplateGroupOption } from './converters';
|
|
3
|
+
export interface CustomTemplatesListAction {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
groups: CustomTemplateGroupOption[];
|
|
7
|
+
}
|
|
8
|
+
interface CustomTemplatesListProps {
|
|
9
|
+
actions: CustomTemplatesListAction[];
|
|
10
|
+
onCreateGroup?: (actionId: string) => void;
|
|
11
|
+
onAddTemplate?: (option: CustomTemplateGroupOption) => void;
|
|
12
|
+
onEditGroup?: (option: CustomTemplateGroupOption) => void;
|
|
13
|
+
onViewTemplate?: (option: CustomTemplateGroupOption, template: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const CustomTemplatesList: FC<CustomTemplatesListProps>;
|
|
16
|
+
export {};
|