@odigos/ui-kit 0.0.224 → 0.0.225

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/DEVELOPMENT.md +27 -0
  3. package/Makefile +7 -0
  4. package/lib/chunks/index-BMJ_MZzY.js +149 -0
  5. package/lib/chunks/{index-Au62BabI.js → index-Dlnglk_e.js} +1 -1
  6. package/lib/chunks/ui-components-BqdkaDt2.js +2543 -0
  7. package/lib/components/_v2/autocomplete/index.d.ts +13 -3
  8. package/lib/components/_v2/drawer/header/index.d.ts +2 -0
  9. package/lib/components/_v2/drop-data/index.d.ts +1 -0
  10. package/lib/components/_v2/index.d.ts +1 -0
  11. package/lib/components/_v2/time-input/index.d.ts +24 -0
  12. package/lib/components/v2.js +1 -1
  13. package/lib/components.js +1 -1
  14. package/lib/constants/sampling/index.d.ts +9 -4
  15. package/lib/constants/sources/index.d.ts +1 -0
  16. package/lib/constants.js +1 -1
  17. package/lib/containers/_v2/_drawers/index.d.ts +1 -5
  18. package/lib/containers/_v2/_drawers/sampling-rule-drawer/index.d.ts +50 -0
  19. package/lib/containers/_v2/_forms/index.d.ts +1 -5
  20. package/lib/containers/_v2/_forms/sampling-rule-form/index.d.ts +2 -0
  21. package/lib/containers/_v2/sampling-rules/converters.d.ts +9 -0
  22. package/lib/containers/_v2/sampling-rules/helpers.d.ts +2 -2
  23. package/lib/containers/_v2/sampling-rules/rules-table/index.d.ts +1 -1
  24. package/lib/containers/_v2/sampling-rules/toolbar/index.d.ts +1 -1
  25. package/lib/containers/_v2/sampling-rules/types.d.ts +1 -42
  26. package/lib/containers/source-drawer/profiling/index.d.ts +1 -1
  27. package/lib/containers/v2.js +51 -188
  28. package/lib/containers.js +47 -47
  29. package/lib/contexts/index.d.ts +1 -0
  30. package/lib/contexts/sampling-rules-form-context.d.ts +90 -0
  31. package/lib/contexts.js +1 -1
  32. package/lib/functions.js +1 -1
  33. package/lib/hooks/useScrollTo.d.ts +1 -0
  34. package/lib/hooks.js +1 -1
  35. package/lib/snippets/_v2/colored-span/index.d.ts +1 -0
  36. package/lib/snippets/_v2/dynamic-field/index.d.ts +3 -1
  37. package/lib/snippets/_v2/index.d.ts +1 -0
  38. package/lib/snippets/_v2/sampling-rule-form-sections/duration-errors.d.ts +13 -0
  39. package/lib/snippets/_v2/sampling-rule-form-sections/index.d.ts +7 -0
  40. package/lib/snippets/_v2/sampling-rule-form-sections/operation.d.ts +12 -0
  41. package/lib/snippets/_v2/sampling-rule-form-sections/percentage.d.ts +12 -0
  42. package/lib/snippets/_v2/sampling-rule-form-sections/preset-with-custom-input.d.ts +29 -0
  43. package/lib/snippets/_v2/sampling-rule-form-sections/rule-info.d.ts +12 -0
  44. package/lib/snippets/_v2/sampling-rule-form-sections/sampling-preview.d.ts +12 -0
  45. package/lib/{containers/_v2/_forms/create-sampling-rule-form/sections → snippets/_v2/sampling-rule-form-sections}/source-scope.d.ts +8 -4
  46. package/lib/snippets/_v2/sampling-rule-form-sections/styled.d.ts +2 -0
  47. package/lib/snippets/v2.js +1 -53
  48. package/lib/snippets.js +1 -1
  49. package/lib/store.js +1 -1
  50. package/lib/theme.js +1 -1
  51. package/lib/types/common/index.d.ts +2 -1
  52. package/lib/types/enum/index.d.ts +1 -0
  53. package/lib/types/sampling.d.ts +77 -0
  54. package/lib/types/sources/index.d.ts +18 -6
  55. package/lib/types.js +1 -1
  56. package/lib/visuals.js +1 -1
  57. package/package.json +1 -1
  58. package/lib/chunks/ui-components-CI2PiWkX.js +0 -2516
  59. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/index.d.ts +0 -20
  60. package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/index.d.ts +0 -9
  61. package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/index.d.ts +0 -9
  62. package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/index.d.ts +0 -8
  63. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/index.d.ts +0 -21
  64. package/lib/containers/_v2/_forms/create-sampling-rule-form/context.d.ts +0 -34
  65. package/lib/containers/_v2/_forms/create-sampling-rule-form/converters.d.ts +0 -5
  66. package/lib/containers/_v2/_forms/create-sampling-rule-form/form-helpers.d.ts +0 -5
  67. package/lib/containers/_v2/_forms/create-sampling-rule-form/index.d.ts +0 -3
  68. package/lib/containers/_v2/_forms/create-sampling-rule-form/sections/duration-errors.d.ts +0 -9
  69. package/lib/containers/_v2/_forms/create-sampling-rule-form/sections/operation.d.ts +0 -9
  70. package/lib/containers/_v2/_forms/create-sampling-rule-form/sections/percentage.d.ts +0 -9
  71. package/lib/containers/_v2/_forms/create-sampling-rule-form/sections/rule-info.d.ts +0 -9
  72. package/lib/containers/_v2/_forms/create-sampling-rule-form/sections/sampling-preview.d.ts +0 -9
  73. package/lib/containers/_v2/_forms/create-sampling-rule-form/styled.d.ts +0 -5
  74. package/lib/containers/_v2/_forms/create-sampling-rule-form/types.d.ts +0 -54
  75. package/lib/containers/_v2/_forms/edit-auto-rule-form/context.d.ts +0 -21
  76. package/lib/containers/_v2/_forms/edit-auto-rule-form/index.d.ts +0 -3
  77. package/lib/containers/_v2/_forms/edit-cost-reduction-auto-rule-form/context.d.ts +0 -21
  78. package/lib/containers/_v2/_forms/edit-cost-reduction-auto-rule-form/index.d.ts +0 -3
  79. package/lib/containers/_v2/_forms/edit-highly-relevant-auto-rule-form/context.d.ts +0 -14
  80. package/lib/containers/_v2/_forms/edit-highly-relevant-auto-rule-form/index.d.ts +0 -3
  81. package/lib/containers/_v2/_forms/view-sampling-rule-form/context.d.ts +0 -37
  82. package/lib/containers/_v2/_forms/view-sampling-rule-form/index.d.ts +0 -3
  83. package/lib/containers/_v2/_forms/view-sampling-rule-form/reverse-converters.d.ts +0 -3
  84. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/duration-errors.d.ts +0 -6
  85. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/operation-details.d.ts +0 -6
  86. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/percentage.d.ts +0 -6
  87. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/rule-info.d.ts +0 -6
  88. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/sampling-preview.d.ts +0 -6
  89. package/lib/containers/_v2/_forms/view-sampling-rule-form/sections/source-scopes.d.ts +0 -6
  90. /package/lib/containers/_v2/{_forms/view-sampling-rule-form/footer.d.ts → _drawers/sampling-rule-drawer/view-footer.d.ts} +0 -0
@@ -1,20 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { SamplingRuleCategory } from '../../sampling-rules/types';
3
- import type { SamplingRuleFormState, DuplicateValidationResult } from '../../_forms/create-sampling-rule-form/types';
4
- export interface CreateSamplingRuleDrawerProps {
5
- isOpen: boolean;
6
- category: SamplingRuleCategory;
7
- onClose: () => void;
8
- onSubmit: (state: SamplingRuleFormState) => void;
9
- sourceOptions?: {
10
- id: string;
11
- label: string;
12
- }[];
13
- namespaceOptions?: {
14
- id: string;
15
- label: string;
16
- }[];
17
- validateForm?: (formState: SamplingRuleFormState) => DuplicateValidationResult | null;
18
- onNavigateToDuplicate?: (ruleId: string) => void;
19
- }
20
- export declare const CreateSamplingRuleDrawer: FC<CreateSamplingRuleDrawerProps>;
@@ -1,9 +0,0 @@
1
- import { type FC } from 'react';
2
- export interface EditAutoRuleDrawerProps {
3
- isOpen: boolean;
4
- enabled: boolean;
5
- keepPercentage: number;
6
- onClose: () => void;
7
- onSave: (enabled: boolean, keepPercentage: number) => void;
8
- }
9
- export declare const EditAutoRuleDrawer: FC<EditAutoRuleDrawerProps>;
@@ -1,9 +0,0 @@
1
- import { type FC } from 'react';
2
- export interface EditCostReductionAutoRuleDrawerProps {
3
- isOpen: boolean;
4
- enabled: boolean;
5
- dropPercentage: number;
6
- onClose: () => void;
7
- onSave: (enabled: boolean, dropPercentage: number) => void;
8
- }
9
- export declare const EditCostReductionAutoRuleDrawer: FC<EditCostReductionAutoRuleDrawerProps>;
@@ -1,8 +0,0 @@
1
- import { type FC } from 'react';
2
- export interface EditHighlyRelevantAutoRuleDrawerProps {
3
- isOpen: boolean;
4
- enabled: boolean;
5
- onClose: () => void;
6
- onSave: (enabled: boolean) => void;
7
- }
8
- export declare const EditHighlyRelevantAutoRuleDrawer: FC<EditHighlyRelevantAutoRuleDrawerProps>;
@@ -1,21 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { ViewRuleData } from '../../sampling-rules/types';
3
- import type { SamplingRuleFormState, DuplicateValidationResult } from '../../_forms/create-sampling-rule-form/types';
4
- export interface ViewSamplingRuleDrawerProps {
5
- data: ViewRuleData | null;
6
- defaultEditMode?: boolean;
7
- onClose: () => void;
8
- onDelete: (ruleId: string, samplingId: string) => void;
9
- onSaveEdit: (formState: SamplingRuleFormState, ruleId: string, samplingId: string) => void;
10
- sourceOptions?: {
11
- id: string;
12
- label: string;
13
- }[];
14
- namespaceOptions?: {
15
- id: string;
16
- label: string;
17
- }[];
18
- validateForm?: (formState: SamplingRuleFormState) => DuplicateValidationResult | null;
19
- onNavigateToDuplicate?: (ruleId: string) => void;
20
- }
21
- export declare const ViewSamplingRuleDrawer: FC<ViewSamplingRuleDrawerProps>;
@@ -1,34 +0,0 @@
1
- import React, { type FC } from 'react';
2
- import type { SamplingRuleCategory } from '../../sampling-rules/types';
3
- import type { SamplingRuleFormState, DuplicateValidationResult } from './types';
4
- interface CreateSamplingRuleFormContextType {
5
- category: SamplingRuleCategory;
6
- formData: SamplingRuleFormState;
7
- handleChange: (updates: Partial<SamplingRuleFormState>) => void;
8
- resetForm: () => void;
9
- duplicateWarning: DuplicateValidationResult | null;
10
- setDuplicateWarning: (warning: DuplicateValidationResult | null) => void;
11
- sourceOptions: {
12
- id: string;
13
- label: string;
14
- }[];
15
- namespaceOptions: {
16
- id: string;
17
- label: string;
18
- }[];
19
- }
20
- export interface CreateSamplingRuleFormContextProviderProps {
21
- category: SamplingRuleCategory;
22
- sourceOptions?: {
23
- id: string;
24
- label: string;
25
- }[];
26
- namespaceOptions?: {
27
- id: string;
28
- label: string;
29
- }[];
30
- children: React.ReactNode;
31
- }
32
- export declare const CreateSamplingRuleFormContextProvider: FC<CreateSamplingRuleFormContextProviderProps>;
33
- export declare const useCreateSamplingRuleFormContext: () => CreateSamplingRuleFormContextType;
34
- export {};
@@ -1,5 +0,0 @@
1
- import type { NoisyOperationRuleInput, HighlyRelevantOperationRuleInput, CostReductionRuleInput } from '@/types';
2
- import type { SamplingRuleFormState } from './types';
3
- export declare function formStateToNoisyInput(state: SamplingRuleFormState): NoisyOperationRuleInput;
4
- export declare function formStateToHighlyRelevantInput(state: SamplingRuleFormState): HighlyRelevantOperationRuleInput;
5
- export declare function formStateToCostReductionInput(state: SamplingRuleFormState): CostReductionRuleInput;
@@ -1,5 +0,0 @@
1
- import type { NoisyOperationRule, HighlyRelevantOperationRule, CostReductionRule } from '@/types';
2
- import type { SamplingRuleFormState } from './types';
3
- export declare function formStateToPartialNoisy(state: SamplingRuleFormState): NoisyOperationRule;
4
- export declare function formStateToPartialHighlyRelevant(state: SamplingRuleFormState): HighlyRelevantOperationRule;
5
- export declare function formStateToPartialCostReduction(state: SamplingRuleFormState): CostReductionRule;
@@ -1,3 +0,0 @@
1
- import { type FC } from 'react';
2
- export * from './context';
3
- export declare const CreateSamplingRuleForm: FC;
@@ -1,9 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { SamplingRuleFormState } from '../types';
3
- import type { HighlyRelevantBadgeType } from '../../../sampling-rules/types';
4
- export interface FormDurationErrorsProps {
5
- ruleType: HighlyRelevantBadgeType;
6
- formState: SamplingRuleFormState;
7
- onChange: (updates: Partial<SamplingRuleFormState>) => void;
8
- }
9
- export declare const FormDurationErrors: FC<FormDurationErrorsProps>;
@@ -1,9 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { SamplingRuleCategory } from '../../../sampling-rules/types';
3
- import type { SamplingRuleFormState } from '../types';
4
- export interface FormOperationProps {
5
- category: SamplingRuleCategory;
6
- formState: SamplingRuleFormState;
7
- onChange: (updates: Partial<SamplingRuleFormState>) => void;
8
- }
9
- export declare const FormOperation: FC<FormOperationProps>;
@@ -1,9 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { SamplingRuleCategory } from '../../../sampling-rules/types';
3
- import type { SamplingRuleFormState } from '../types';
4
- export interface FormPercentageProps {
5
- category: SamplingRuleCategory;
6
- formState: SamplingRuleFormState;
7
- onChange: (updates: Partial<SamplingRuleFormState>) => void;
8
- }
9
- export declare const FormPercentage: FC<FormPercentageProps>;
@@ -1,9 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { SamplingRuleFormState } from '../types';
3
- import type { SamplingRuleCategory } from '../../../sampling-rules/types';
4
- export interface FormRuleInfoProps {
5
- category: SamplingRuleCategory;
6
- formState: SamplingRuleFormState;
7
- onChange: (updates: Partial<SamplingRuleFormState>) => void;
8
- }
9
- export declare const FormRuleInfo: FC<FormRuleInfoProps>;
@@ -1,9 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { SamplingRuleFormState } from '../types';
3
- import type { SamplingRuleCategory } from '../../../sampling-rules/types';
4
- export interface FormSamplingPreviewProps {
5
- category: SamplingRuleCategory;
6
- formState: SamplingRuleFormState;
7
- onChange?: (updates: Partial<SamplingRuleFormState>) => void;
8
- }
9
- export declare const FormSamplingPreview: FC<FormSamplingPreviewProps>;
@@ -1,5 +0,0 @@
1
- export declare const CellsRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
- export declare const Cell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
- export declare const PreviewSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
- export declare const SummaryBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
- export declare const PresetsRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,54 +0,0 @@
1
- import type { SamplingRuleCategory, HighlyRelevantBadgeType } from '../../sampling-rules/types';
2
- export type ScopeType = 'all' | 'source' | 'namespace' | 'language';
3
- export type OperationType = 'all' | 'httpServer' | 'httpClient' | 'kafkaConsumer' | 'kafkaProducer';
4
- export type PercentageMode = 'all' | 'sample';
5
- export type RouteType = 'route' | 'routePrefix';
6
- export type DurationPreset = '5000' | '1000' | '500' | '100' | '50' | 'custom';
7
- export type PercentagePreset = '50' | '25' | '10' | '1' | '0.5' | '0.1' | 'custom';
8
- export interface SourceScopeEntry {
9
- scopeType: ScopeType;
10
- workloadName: string;
11
- workloadKind: string;
12
- workloadNamespace: string;
13
- workloadLanguage: string;
14
- }
15
- export interface SamplingRuleFormState {
16
- name: string;
17
- notes: string;
18
- disabled: boolean;
19
- ruleType: HighlyRelevantBadgeType;
20
- sourceScopes: SourceScopeEntry[];
21
- operationType: OperationType;
22
- routeType: RouteType;
23
- route: string;
24
- serverAddress: string;
25
- method: string;
26
- kafkaTopic: string;
27
- durationPreset: DurationPreset;
28
- customDurationMs: string;
29
- keepErrors: boolean;
30
- percentageMode: PercentageMode;
31
- percentagePreset: PercentagePreset;
32
- customPercentage: string;
33
- }
34
- export declare function getDefaultFormState(category?: SamplingRuleCategory): SamplingRuleFormState;
35
- export interface DuplicateValidationResult {
36
- message: string;
37
- ruleId: string;
38
- }
39
- export interface CreateSamplingRuleDrawerProps {
40
- isOpen: boolean;
41
- category: SamplingRuleCategory;
42
- onClose: () => void;
43
- onSubmit: (state: SamplingRuleFormState) => void;
44
- sourceOptions?: {
45
- id: string;
46
- label: string;
47
- }[];
48
- namespaceOptions?: {
49
- id: string;
50
- label: string;
51
- }[];
52
- validateForm?: (formState: SamplingRuleFormState) => DuplicateValidationResult | null;
53
- onNavigateToDuplicate?: (ruleId: string) => void;
54
- }
@@ -1,21 +0,0 @@
1
- import React, { type FC } from 'react';
2
- import type { ColoredSpanPart } from '@/snippets/_v2/colored-span';
3
- type PercentagePreset = '50' | '25' | '10' | '1' | 'custom';
4
- interface EditAutoRuleFormContextType {
5
- localEnabled: boolean;
6
- setLocalEnabled: (value: boolean) => void;
7
- percentagePreset: PercentagePreset;
8
- setPercentagePreset: (value: PercentagePreset) => void;
9
- customPercentage: string;
10
- setCustomPercentage: (value: string) => void;
11
- resolvedPercentage: number;
12
- summary: ColoredSpanPart[];
13
- }
14
- export interface EditAutoRuleFormContextProviderProps {
15
- enabled: boolean;
16
- keepPercentage: number;
17
- children: React.ReactNode;
18
- }
19
- export declare const EditAutoRuleFormContextProvider: FC<EditAutoRuleFormContextProviderProps>;
20
- export declare const useEditAutoRuleFormContext: () => EditAutoRuleFormContextType;
21
- export {};
@@ -1,3 +0,0 @@
1
- import { type FC } from 'react';
2
- export * from './context';
3
- export declare const EditAutoRuleForm: FC;
@@ -1,21 +0,0 @@
1
- import React, { type FC } from 'react';
2
- import type { ColoredSpanPart } from '@/snippets/_v2/colored-span';
3
- type PercentagePreset = '50' | '25' | '10' | '1' | 'custom';
4
- interface EditCostReductionAutoRuleFormContextType {
5
- localEnabled: boolean;
6
- setLocalEnabled: (value: boolean) => void;
7
- percentagePreset: PercentagePreset;
8
- setPercentagePreset: (value: PercentagePreset) => void;
9
- customPercentage: string;
10
- setCustomPercentage: (value: string) => void;
11
- resolvedPercentage: number;
12
- summary: ColoredSpanPart[];
13
- }
14
- export interface EditCostReductionAutoRuleFormContextProviderProps {
15
- enabled: boolean;
16
- dropPercentage: number;
17
- children: React.ReactNode;
18
- }
19
- export declare const EditCostReductionAutoRuleFormContextProvider: FC<EditCostReductionAutoRuleFormContextProviderProps>;
20
- export declare const useEditCostReductionAutoRuleFormContext: () => EditCostReductionAutoRuleFormContextType;
21
- export {};
@@ -1,3 +0,0 @@
1
- import { type FC } from 'react';
2
- export * from './context';
3
- export declare const EditCostReductionAutoRuleForm: FC;
@@ -1,14 +0,0 @@
1
- import React, { type FC } from 'react';
2
- import type { ColoredSpanPart } from '@/snippets/_v2/colored-span';
3
- interface EditHighlyRelevantAutoRuleFormContextType {
4
- localEnabled: boolean;
5
- setLocalEnabled: (value: boolean) => void;
6
- summary: ColoredSpanPart[];
7
- }
8
- export interface EditHighlyRelevantAutoRuleFormContextProviderProps {
9
- enabled: boolean;
10
- children: React.ReactNode;
11
- }
12
- export declare const EditHighlyRelevantAutoRuleFormContextProvider: FC<EditHighlyRelevantAutoRuleFormContextProviderProps>;
13
- export declare const useEditHighlyRelevantAutoRuleFormContext: () => EditHighlyRelevantAutoRuleFormContextType;
14
- export {};
@@ -1,3 +0,0 @@
1
- import { type FC } from 'react';
2
- export * from './context';
3
- export declare const EditHighlyRelevantAutoRuleForm: FC;
@@ -1,37 +0,0 @@
1
- import React, { type FC } from 'react';
2
- import type { ViewRuleData } from '../../sampling-rules/types';
3
- import type { SamplingRuleFormState, DuplicateValidationResult } from '../create-sampling-rule-form/types';
4
- interface ViewSamplingRuleFormContextType {
5
- data: ViewRuleData | null;
6
- isEditing: boolean;
7
- formData: SamplingRuleFormState;
8
- handleChange: (updates: Partial<SamplingRuleFormState>) => void;
9
- handleEdit: () => void;
10
- handleCancelEdit: () => void;
11
- duplicateWarning: DuplicateValidationResult | null;
12
- setDuplicateWarning: (warning: DuplicateValidationResult | null) => void;
13
- sourceOptions: {
14
- id: string;
15
- label: string;
16
- }[];
17
- namespaceOptions: {
18
- id: string;
19
- label: string;
20
- }[];
21
- }
22
- export interface ViewSamplingRuleFormContextProviderProps {
23
- data: ViewRuleData | null;
24
- defaultEditMode?: boolean;
25
- sourceOptions?: {
26
- id: string;
27
- label: string;
28
- }[];
29
- namespaceOptions?: {
30
- id: string;
31
- label: string;
32
- }[];
33
- children: React.ReactNode;
34
- }
35
- export declare const ViewSamplingRuleFormContextProvider: FC<ViewSamplingRuleFormContextProviderProps>;
36
- export declare const useViewSamplingRuleFormContext: () => ViewSamplingRuleFormContextType;
37
- export {};
@@ -1,3 +0,0 @@
1
- import { type FC } from 'react';
2
- export * from './context';
3
- export declare const ViewSamplingRuleForm: FC;
@@ -1,3 +0,0 @@
1
- import type { ViewRuleData } from '../../sampling-rules/types';
2
- import type { SamplingRuleFormState } from '../create-sampling-rule-form/types';
3
- export declare function viewRuleDataToFormState(data: ViewRuleData): SamplingRuleFormState;
@@ -1,6 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { HighlyRelevantOperationRule } from '@/types';
3
- export interface DurationErrorsProps {
4
- rule: HighlyRelevantOperationRule;
5
- }
6
- export declare const DurationErrors: FC<DurationErrorsProps>;
@@ -1,6 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { ViewRuleData } from '../../../sampling-rules/types';
3
- export interface OperationDetailsProps {
4
- data: ViewRuleData;
5
- }
6
- export declare const OperationDetails: FC<OperationDetailsProps>;
@@ -1,6 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { ViewRuleData } from '../../../sampling-rules/types';
3
- export interface PercentageProps {
4
- data: ViewRuleData;
5
- }
6
- export declare const Percentage: FC<PercentageProps>;
@@ -1,6 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { ViewRuleData } from '../../../sampling-rules/types';
3
- export interface RuleInfoProps {
4
- data: ViewRuleData;
5
- }
6
- export declare const RuleInfo: FC<RuleInfoProps>;
@@ -1,6 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { ColoredSpanPart } from '@/snippets/_v2/colored-span';
3
- export interface SamplingPreviewProps {
4
- summary: ColoredSpanPart[];
5
- }
6
- export declare const SamplingPreview: FC<SamplingPreviewProps>;
@@ -1,6 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { SourcesScope } from '@/types';
3
- export interface SourceScopesProps {
4
- scopes: SourcesScope[];
5
- }
6
- export declare const SourceScopes: FC<SourceScopesProps>;