@odigos/ui-kit 0.0.289 → 0.0.291
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 +14 -0
- package/lib/chunks/{helpers-Ds7r-EIJ.js → helpers-eTR126Dv.js} +1 -1
- package/lib/chunks/{index-DiYN36pr.js → index-CWNa5Q-H.js} +14 -14
- package/lib/chunks/source-instrument-form-context-opFCr-VF.js +5 -0
- package/lib/chunks/ui-components-Bvz84w4Q.js +1981 -0
- package/lib/components/_cards/text-card/index.d.ts +1 -0
- package/lib/components/badge/index.d.ts +1 -1
- package/lib/components/input/index.d.ts +2 -0
- package/lib/components/input-list/index.d.ts +1 -0
- package/lib/components/island/index.d.ts +10 -1
- package/lib/components/radio-card/index.d.ts +4 -0
- package/lib/components.js +1 -1
- package/lib/constants/common.d.ts +2 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/insights/common.d.ts +15 -0
- package/lib/constants/insights/detection.d.ts +19 -0
- package/lib/{containers/insights/settings-and-configurations/panels/guardrails/constants.d.ts → constants/insights/guardrails.d.ts} +22 -13
- package/lib/constants/insights/index.d.ts +5 -0
- package/lib/{containers/insights/settings-and-configurations/panels/learning/constants.d.ts → constants/insights/learning.d.ts} +4 -27
- package/lib/{containers/insights/settings-and-configurations/panels/system/constants.d.ts → constants/insights/system.d.ts} +2 -6
- package/lib/constants/strings/index.d.ts +2 -0
- package/lib/constants/url-templatization/index.d.ts +176 -31
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/methods.d.ts +7 -1
- package/lib/containers/_drawers/index.d.ts +1 -0
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/default-catalog.d.ts +1 -1
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/helpers.d.ts +2 -2
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/index.d.ts +3 -3
- package/lib/containers/_drawers/url-templatization-custom-template-drawer/destination-step.d.ts +7 -4
- package/lib/containers/_drawers/url-templatization-custom-template-drawer/index.d.ts +5 -1
- package/lib/containers/_drawers/url-templatization-custom-template-drawer/templates-step-summary.d.ts +10 -0
- package/lib/containers/_drawers/url-templatization-default-rule-drawer/index.d.ts +2 -0
- package/lib/containers/_drawers/url-templatization-template-view-drawer/index.d.ts +5 -0
- package/lib/containers/_forms/index.d.ts +1 -0
- package/lib/containers/_forms/insights/detection-policy-form/index.d.ts +12 -0
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/mappers.d.ts +1 -1
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/signal-weights-panel.d.ts +1 -1
- package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/signal-weights.d.ts +2 -2
- package/lib/containers/_forms/insights/guardrail-form/extra-section.d.ts +15 -0
- package/lib/containers/{insights/settings-and-configurations/panels/guardrails → _forms/insights/guardrail-form}/facet-section.d.ts +1 -1
- package/lib/containers/_forms/insights/guardrail-form/index.d.ts +23 -0
- package/lib/containers/{insights/settings-and-configurations/panels/guardrails → _forms/insights/guardrail-form}/mappers.d.ts +3 -1
- package/lib/containers/_forms/insights/guardrail-form/types.d.ts +17 -0
- package/lib/containers/_forms/insights/index.d.ts +4 -0
- package/lib/containers/_forms/insights/learning-policy-form/index.d.ts +12 -0
- package/lib/containers/{insights/settings-and-configurations/panels/learning → _forms/insights/learning-policy-form}/mappers.d.ts +3 -3
- package/lib/containers/_forms/insights/learning-policy-form/options.d.ts +11 -0
- package/lib/containers/{insights/settings-and-configurations/panels/learning → _forms/insights/learning-policy-form}/types.d.ts +1 -1
- package/lib/containers/_forms/insights/system-settings-form/index.d.ts +9 -0
- package/lib/containers/_forms/insights/system-settings-form/mappers.d.ts +11 -0
- package/lib/containers/_forms/insights/system-settings-form/types.d.ts +11 -0
- package/lib/containers/insights/findings/helpers.d.ts +2 -2
- package/lib/containers/insights/settings-and-configurations/panels/detection/helpers.d.ts +28 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/helpers.d.ts +30 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/helpers.d.ts +46 -0
- package/lib/containers/insights/settings-and-configurations/panels/panel.d.ts +44 -0
- package/lib/containers/insights/transactions/drawer/baselines/helpers.d.ts +4 -0
- package/lib/containers/url-templatization/advanced-config-section.d.ts +12 -0
- package/lib/containers/url-templatization/automatic-templatization-enable-card.d.ts +6 -0
- package/lib/containers/url-templatization/converters.d.ts +15 -0
- package/lib/containers/url-templatization/custom-templates-empty-card.d.ts +5 -0
- package/lib/containers/url-templatization/custom-templates-list.d.ts +0 -1
- package/lib/containers/url-templatization/default-normalization-card.d.ts +11 -0
- package/lib/containers/url-templatization/default-rules-list.d.ts +8 -5
- package/lib/containers/url-templatization/disabled-scopes-table.d.ts +8 -0
- package/lib/containers/url-templatization/helpers.d.ts +30 -1
- package/lib/containers/url-templatization/managed-action-badge.d.ts +11 -0
- package/lib/containers/url-templatization/onboarding-empty.d.ts +7 -0
- package/lib/containers/url-templatization/skip-policies-table.d.ts +8 -0
- package/lib/containers/url-templatization/template-path.d.ts +2 -0
- package/lib/containers.js +2105 -2126
- package/lib/contexts/index.d.ts +1 -0
- package/lib/contexts/insights/detection-override-form-context.d.ts +44 -0
- package/lib/contexts/insights/detection-policy-form-context.d.ts +29 -0
- package/lib/contexts/insights/guardrail-form-context.d.ts +67 -0
- package/lib/contexts/insights/index.d.ts +6 -0
- package/lib/contexts/insights/learning-override-form-context.d.ts +45 -0
- package/lib/contexts/insights/learning-policy-form-context.d.ts +34 -0
- package/lib/contexts/insights/system-settings-form-context.d.ts +28 -0
- package/lib/contexts/odigos-api/hooks/use-insights-api.d.ts +6 -1
- package/lib/contexts/odigos-api/types.d.ts +2 -1
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/sampling-rule-form-sections/source-scope.d.ts +16 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/cloud-connectors/index.d.ts +1 -0
- package/lib/types/insights/index.d.ts +41 -2
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/source-instrument-form-context-CBP9xXNN.js +0 -5
- package/lib/chunks/ui-components-Dvmqmy3G.js +0 -1952
- package/lib/containers/insights/settings-and-configurations/content-panel/index.d.ts +0 -11
- package/lib/containers/insights/settings-and-configurations/panels/detection/constants.d.ts +0 -40
- package/lib/containers/insights/settings-and-configurations/panels/detection/create-override-panel.d.ts +0 -14
- package/lib/containers/insights/settings-and-configurations/panels/detection/mock.d.ts +0 -4
- package/lib/containers/insights/settings-and-configurations/panels/detection/policies-menu.d.ts +0 -10
- package/lib/containers/insights/settings-and-configurations/panels/detection/policy-editor.d.ts +0 -8
- package/lib/containers/insights/settings-and-configurations/panels/detection/policy-list-item.d.ts +0 -8
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/create-panel.d.ts +0 -13
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/edit-panel.d.ts +0 -10
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrail-list-item.d.ts +0 -8
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrails-menu.d.ts +0 -9
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/types.d.ts +0 -10
- package/lib/containers/insights/settings-and-configurations/panels/learning/create-override-panel.d.ts +0 -21
- package/lib/containers/insights/settings-and-configurations/panels/learning/policies-menu.d.ts +0 -10
- package/lib/containers/insights/settings-and-configurations/panels/learning/policy-editor.d.ts +0 -9
- package/lib/containers/insights/settings-and-configurations/panels/learning/policy-list-item.d.ts +0 -8
- /package/lib/containers/{insights/settings-and-configurations/panels/detection → _drawers}/risk-model-drawer/constants.d.ts +0 -0
- /package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/risk-levels.d.ts +0 -0
- /package/lib/containers/{insights/settings-and-configurations/panels/detection → _forms/insights/detection-policy-form}/types.d.ts +0 -0
|
@@ -14,3 +14,7 @@ export declare enum BaselinesColumnKeys {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const getTableColumnsForBaselines: () => TableColumn[];
|
|
16
16
|
export declare const getTableRowsForBaselines: (theme: DefaultTheme, baselines?: InsightsBaselineClass[]) => TableRow[];
|
|
17
|
+
export declare const HELP_PROMOTED = "Locked: this class is promoted - its baseline is frozen and no longer changes.";
|
|
18
|
+
export declare const HELP_EMPTY = "No data yet: this class has not grown a baseline structure. Stability does not apply until it learns something.";
|
|
19
|
+
export declare const HELP_LEARNING = "Learning: progress toward the resolved stability targets. A full bar is not promotion - Locked is only when phase is promoted.";
|
|
20
|
+
export declare const HELP_READY = "Ready to promote: the learning policy gate is already satisfied, but the engine has not graduated the class yet.";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
export interface AdvancedConfigSectionProps {
|
|
3
|
+
label: string;
|
|
4
|
+
/** Shown next to the label when the section is collapsed. */
|
|
5
|
+
summary?: string;
|
|
6
|
+
/** Shown under the label when the section is collapsed. */
|
|
7
|
+
description?: string;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
defaultOpen?: boolean;
|
|
10
|
+
'data-id'?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const AdvancedConfigSection: FC<AdvancedConfigSectionProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export interface AutomaticTemplatizationEnableCardProps {
|
|
3
|
+
onEnableDefault?: () => unknown | Promise<unknown>;
|
|
4
|
+
onDismiss?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const AutomaticTemplatizationEnableCard: FC<AutomaticTemplatizationEnableCardProps>;
|
|
@@ -31,13 +31,28 @@ export interface UrlTemplatizationCustomTemplateFormState {
|
|
|
31
31
|
newActionName: string;
|
|
32
32
|
scopes: SourcesScopes;
|
|
33
33
|
templates: string[];
|
|
34
|
+
/** When true, save replaces the existing group's full template list (edit-group mode). */
|
|
35
|
+
replaceExistingGroupTemplates: boolean;
|
|
34
36
|
}
|
|
35
37
|
export declare function getCustomTemplateFormState(options?: {
|
|
36
38
|
hasExistingGroups?: boolean;
|
|
37
39
|
defaultActionId?: string | null;
|
|
38
40
|
}): UrlTemplatizationCustomTemplateFormState;
|
|
39
41
|
export declare function rulesGroupToScopes(group: UrlTemplatizationRulesGroup): SourcesScopes;
|
|
42
|
+
export declare function areScopesEqual(a: SourcesScopes | null | undefined, b: SourcesScopes | null | undefined): boolean;
|
|
43
|
+
export declare function findGroupsMatchingScopes(existingGroups: CustomTemplateGroupOption[], scopes: SourcesScopes, options?: {
|
|
44
|
+
uiManagedOnly?: boolean;
|
|
45
|
+
}): Array<{
|
|
46
|
+
option: CustomTemplateGroupOption;
|
|
47
|
+
index: number;
|
|
48
|
+
}>;
|
|
49
|
+
/** Entire-cluster group under the default UI action, if one already exists. */
|
|
50
|
+
export declare function findDefaultEntireClusterGroupIndex(existingGroups: CustomTemplateGroupOption[], options?: {
|
|
51
|
+
defaultActionId?: string | null;
|
|
52
|
+
defaultActionName?: string;
|
|
53
|
+
}): number;
|
|
40
54
|
export declare function formStateToRulesGroup(state: UrlTemplatizationCustomTemplateFormState): UrlTemplatizationRulesGroup;
|
|
41
55
|
export declare function appendTemplatesToGroup(group: UrlTemplatizationRulesGroup, templates: string[]): UrlTemplatizationRulesGroup;
|
|
42
56
|
export declare function groupMatchesQuery(group: UrlTemplatizationRulesGroup, query: string, actionName?: string): boolean;
|
|
43
57
|
export declare function hasNonEmptyTemplate(templates: string[]): boolean;
|
|
58
|
+
export declare function canSaveCustomTemplateFormState(state: UrlTemplatizationCustomTemplateFormState): boolean;
|
|
@@ -8,7 +8,6 @@ export interface CustomTemplatesListAction {
|
|
|
8
8
|
interface CustomTemplatesListProps {
|
|
9
9
|
actions: CustomTemplatesListAction[];
|
|
10
10
|
onCreateGroup?: (actionId: string) => void;
|
|
11
|
-
onAddTemplate?: (option: CustomTemplateGroupOption) => void;
|
|
12
11
|
onEditGroup?: (option: CustomTemplateGroupOption) => void;
|
|
13
12
|
onViewTemplate?: (option: CustomTemplateGroupOption, template: string) => void;
|
|
14
13
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type DisabledDefaultRuleOption, type SkipPolicyRuleOption } from './helpers';
|
|
3
|
+
export interface DefaultNormalizationCardProps {
|
|
4
|
+
disabledRules?: DisabledDefaultRuleOption[];
|
|
5
|
+
skipPolicyRules?: SkipPolicyRuleOption[];
|
|
6
|
+
onDisableForScope?: () => void;
|
|
7
|
+
onAddSkipPolicy?: () => void;
|
|
8
|
+
onDeleteDisabledRule?: (rule: DisabledDefaultRuleOption) => void;
|
|
9
|
+
onDeleteSkipPolicyRule?: (rule: SkipPolicyRuleOption) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const DefaultNormalizationCard: FC<DefaultNormalizationCardProps>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type DefaultTemplatizationStatus, type DisabledDefaultRuleOption, type SkipPolicyRuleOption } from './helpers';
|
|
3
3
|
interface DefaultRulesListProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
disabledRules?: DisabledDefaultRuleOption[];
|
|
5
|
+
skipPolicyRules?: SkipPolicyRuleOption[];
|
|
6
|
+
status: DefaultTemplatizationStatus;
|
|
7
|
+
onDeleteDisabledRule?: (rule: DisabledDefaultRuleOption) => void;
|
|
8
|
+
onAddDisabledRule?: () => void;
|
|
9
|
+
onDeleteSkipPolicyRule?: (rule: SkipPolicyRuleOption) => void;
|
|
10
|
+
onAddSkipPolicyRule?: () => void;
|
|
8
11
|
}
|
|
9
12
|
export declare const DefaultRulesList: FC<DefaultRulesListProps>;
|
|
10
13
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type DisabledDefaultRuleOption } from './helpers';
|
|
3
|
+
export interface DisabledScopesTableProps {
|
|
4
|
+
rules: DisabledDefaultRuleOption[];
|
|
5
|
+
onDelete?: (rule: DisabledDefaultRuleOption) => void;
|
|
6
|
+
onAdd?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const DisabledScopesTable: FC<DisabledScopesTableProps>;
|
|
@@ -1,8 +1,35 @@
|
|
|
1
|
-
import { type Action } from '../../types';
|
|
1
|
+
import { type Action, type UrlTemplatizationDefaultGroup } from '../../types';
|
|
2
2
|
export declare const findUrlTemplatizationActions: (actions: Action[]) => Action[];
|
|
3
3
|
export declare const findUrlTemplatizationAction: (actions: Action[]) => Action | null;
|
|
4
|
+
/** True for the canonical action created and edited through the URL templatization UI. */
|
|
5
|
+
export declare function isUrlTemplatizationUiManagedAction(actionName: string | null | undefined): boolean;
|
|
4
6
|
export declare const hasDefaultTemplatizationRules: (action: Action | null) => boolean;
|
|
5
7
|
export declare const isDefaultTemplatizationEnabled: (action: Action | null) => boolean;
|
|
8
|
+
export type DefaultTemplatizationStatus = 'unset' | 'enabled-globally' | 'disabled';
|
|
9
|
+
export interface DisabledDefaultRuleOption {
|
|
10
|
+
actionId: string;
|
|
11
|
+
actionName: string;
|
|
12
|
+
groupIndex: number;
|
|
13
|
+
group: UrlTemplatizationDefaultGroup;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Aggregate default-templatization status across URL templatization actions:
|
|
17
|
+
* - disabled: entire-cluster rule with disabled: true
|
|
18
|
+
* - enabled-globally: at least one enabled action has a default group that is not disabled
|
|
19
|
+
* - unset: no relevant (enabled) actions, or no default groups / all default groups disabled
|
|
20
|
+
*/
|
|
21
|
+
export declare function getDefaultTemplatizationStatus(actions: Action[]): DefaultTemplatizationStatus;
|
|
22
|
+
export declare function getDisabledDefaultRuleOptions(actions: Action[]): DisabledDefaultRuleOption[];
|
|
23
|
+
export type SkipPolicyRuleOption = DisabledDefaultRuleOption;
|
|
24
|
+
export declare function hasEffectiveSkipPolicy(group: UrlTemplatizationDefaultGroup): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Skip policy is disabled globally unless a non-disabled action has any default
|
|
27
|
+
* group with an effective (non-nil / configured) skipPolicy.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getSkipPolicyRuleOptions(actions: Action[]): SkipPolicyRuleOption[];
|
|
30
|
+
export type SkipPolicyStatus = 'disabled-globally' | 'configured';
|
|
31
|
+
export declare function getSkipPolicyStatus(actions: Action[]): SkipPolicyStatus;
|
|
32
|
+
export declare function getDefaultGroupStatus(group: UrlTemplatizationDefaultGroup): DefaultTemplatizationStatus | 'enabled';
|
|
6
33
|
export declare const hasCustomUrlTemplates: (action: Action | null) => boolean;
|
|
7
34
|
export declare const hasAnyCustomUrlTemplates: (actions: Action[]) => boolean;
|
|
8
35
|
export declare function normalizeUrlPath(input: string): string;
|
|
@@ -13,5 +40,7 @@ export interface TemplateMatchCapture {
|
|
|
13
40
|
export interface TemplateMatchResult {
|
|
14
41
|
matched: boolean;
|
|
15
42
|
captures: TemplateMatchCapture[];
|
|
43
|
+
templatedPath: string;
|
|
44
|
+
mismatchReason?: string;
|
|
16
45
|
}
|
|
17
46
|
export declare function matchTemplate(template: string, urlInput: string): TemplateMatchResult;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type DefaultTheme } from 'styled-components';
|
|
3
|
+
import { type BadgeProps } from '../../components';
|
|
4
|
+
export declare function getManagedActionBadgeProps(actionName: string | null | undefined, theme: DefaultTheme, uiManagedOverride?: boolean): BadgeProps;
|
|
5
|
+
interface ManagedActionBadgeProps {
|
|
6
|
+
actionName?: string | null;
|
|
7
|
+
/** New actions created in the UI are UI-owned even before save. */
|
|
8
|
+
uiManaged?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const ManagedActionBadge: FC<ManagedActionBadgeProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export interface UrlTemplatizationOnboardingEmptyProps {
|
|
3
|
+
docsUrl?: string;
|
|
4
|
+
onEnableDefault: () => unknown | Promise<unknown>;
|
|
5
|
+
onCreateCustomRule: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const UrlTemplatizationOnboardingEmpty: FC<UrlTemplatizationOnboardingEmptyProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type SkipPolicyRuleOption } from './helpers';
|
|
3
|
+
export interface SkipPoliciesTableProps {
|
|
4
|
+
rules: SkipPolicyRuleOption[];
|
|
5
|
+
onDelete?: (rule: SkipPolicyRuleOption) => void;
|
|
6
|
+
onAdd?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SkipPoliciesTable: FC<SkipPoliciesTableProps>;
|