@odigos/ui-kit 0.0.280 → 0.0.282
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 +15 -0
- package/lib/chunks/{helpers-BCQhqBdU.js → helpers-CAVGqyMb.js} +1 -1
- package/lib/chunks/index-Cy3rRes8.js +257 -0
- package/lib/chunks/source-instrument-form-context-DSXDMVmM.js +5 -0
- package/lib/chunks/{ui-components-D1sa0AJ8.js → ui-components-Dcg3x769.js} +228 -223
- package/lib/components/segment/index.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/select-provider/setup-artifacts.d.ts +12 -2
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/create-role-section.d.ts +3 -1
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/methods.d.ts +0 -28
- package/lib/containers/_drawers/edit-action-drawer/helpers.d.ts +3 -2
- package/lib/containers/_drawers/edit-rule-drawer/helpers.d.ts +3 -2
- package/lib/containers.js +227 -245
- package/lib/contexts.js +1 -1
- package/lib/functions/build-catalog-fields-data-card/index.d.ts +42 -2
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions/render-catalog-field-segments/index.d.ts +8 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/useActionFormData.d.ts +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/enable-disable-segment/index.d.ts +7 -0
- package/lib/snippets/index.d.ts +1 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme/palettes/index.d.ts +1 -0
- package/lib/theme.js +1 -1
- package/lib/types/cloud-connectors/index.d.ts +5 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +2 -2
- package/lib/chunks/index-CAqgZyIB.js +0 -257
- package/lib/chunks/source-instrument-form-context-Cng6X7Mt.js +0 -5
- package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/enter-arn-section.d.ts +0 -5
|
@@ -17,6 +17,7 @@ interface Option<T> {
|
|
|
17
17
|
tooltip?: string;
|
|
18
18
|
selectedBgColor?: CSSProperties['backgroundColor'];
|
|
19
19
|
selectedBorderColor?: CSSProperties['borderColor'];
|
|
20
|
+
selectedTextColor?: CSSProperties['color'];
|
|
20
21
|
disabled?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export interface SegmentProps<T = any> {
|
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Z as Autocomplete,
|
|
1
|
+
export{Z as Autocomplete,bC as Badge,B as Button,i as ButtonSize,gs as ButtonTab,gt as ButtonTabList,j as ButtonVariants,b0 as CenterThis,C as Checkbox,gu as CheckboxList,$ as CheckboxSize,cr as CliCommand,b6 as Code,c9 as Condition,cb as Conditions,gv as DEFAULT_TIME_UNITS,z as DataCard,a4 as Divider,D as Drawer,ay as DropData,dc as DropDataAlignX,db as DropDataAlignY,s as DropDown,gw as ErrorBoundary,k as FieldMessage,d as FieldTitle,F as FlexColumn,h as FlexRow,eP as GaugeChart,gx as GaugeChartVariant,gy as Header,gz as HoverActions,b$ as IconButton,c0 as IconButtonSize,cw as IconGroup,x as Input,a5 as InputCardTable,w as InputList,I as InputTable,cN as Island,b2 as Loader,dd as Modal,gA as ModalBody,gB as Navbar,b1 as NoData,N as Note,gC as Overlay,bz as Padding,es as PageContent,as as Radio,c7 as RadioCard,gD as RadioGroup,bH as RadioSize,a$ as ScrollY,b3 as Search,Q as SectionCard,gE as SectionCardSize,Y as Segment,a6 as SegmentSize,cK as SegmentVariant,bA as SkeletonLoader,eO as StatusCard,et as Stepper,cL as Table,gF as TableContainer,gG as TableTitleWrap,cM as TableVariant,gH as TableWrap,H as Tag,cq as TagVariants,u as TextArea,eQ as TextCard,r as TimeInput,o as Toggle,gI as ToggleCodeComponent,p as ToggleLabelAlign,gJ as ToggleList,q as ToggleSize,gK as ToggleVariant,T as Tooltip,bI as TruncatableTypography,e as Typography,f as TypographyColor,g as TypographySize,c3 as TypographyVariants,eR as UpgradeRequiredWrapper,gL as VerticalScroll,W as WarningModal,gM as resolveTypographyColor}from"./chunks/ui-components-Dcg3x769.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.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{bB as ACTION_CATEGORIES,bn as ACTION_OPTIONS,f$ as ACTION_TYPE_TO_CATEGORY,g0 as ALL_LANGUAGES_WILDCARD,g1 as ALL_SOURCES,cS as BTN_CANCEL,cZ as BTN_CONTINUE_EDITING,eU as BTN_CREATE_FIRST_RULE,cP as BTN_CREATE_RULE,cV as BTN_DELETE_RULE,a7 as BTN_EDIT_AUTO_RULE,cU as BTN_EDIT_RULE,d7 as BTN_SAVE,cT as BTN_SAVE_RULE,l as BUTTON_TEXTS,cW as CATEGORY_DESCRIPTIONS,aW as CATEGORY_LABELS,cY as CATEGORY_TITLES,g2 as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,g3 as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,g4 as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,c5 as DEFAULT_CLUSTER_ID,c4 as DEFAULT_CLUSTER_NAME,eL as DEFAULT_DATA_STREAM_NAME,am as DESC_DURATION,g5 as DESC_ERRORS,ap as DESC_OPERATION,g6 as DESC_PERCENTAGE_HIGHLY_RELEVANT,bU as DESC_PERCENTAGE_NOISY,aX as DESC_RULE_TYPE,X as DESC_SOURCE_SCOPE,c1 as DESTINATION_CATEGORIES,ex as DISPLAY_LANGUAGES,m as DISPLAY_TITLES,bJ as DOCS_BASE_URL,bs as DestinationCategoryTypes,d3 as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,d4 as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,d1 as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,d2 as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,d5 as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,d6 as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,cX as EDIT_TITLES,aD as EMPTY_VALUE,bG as EXTRACTION_FORMAT_COPY,bE as EXTRACT_ATTRIBUTE_FORM,eS as FILTER_TYPE_ALL,b8 as FORM_ALERTS,bw as INSTRUMENTATION_RULE_OPTIONS,an as LABEL_CUSTOM_DURATION,bY as LABEL_CUSTOM_PERCENTAGE,bX as LABEL_DISABLED,cO as LABEL_DISABLED_RULE,aN as LABEL_DROP_ALL,bR as LABEL_DROP_AT_MOST,bW as LABEL_ENABLED,av as LABEL_HTTP_ROUTE,ax as LABEL_HTTP_ROUTE_PREFIX,aA as LABEL_KAFKA_TOPIC,aO as LABEL_KEEP_ALL,aK as LABEL_KEEP_AT_LEAST,aL as LABEL_KEEP_AT_MOST,aJ as LABEL_KEEP_PERCENTAGE,al as LABEL_KEEP_TRACES_DURATION,aj as LABEL_KEEP_TRACES_ERRORS,az as LABEL_METHOD,aS as LABEL_NOTE,a8 as LABEL_NO_PREVIEW,aC as LABEL_OPERATION_TYPE,g7 as LABEL_RULE_DISABLED,g8 as LABEL_RULE_ENABLED,aQ as LABEL_RULE_NAME,aR as LABEL_RULE_TYPE,aM as LABEL_SAMPLE,ar as LABEL_SERVER_ADDRESS,au as LABEL_TEMPLATED_PATH,aw as LABEL_TEMPLATED_PATH_PREFIX,cD as LANGUAGE_OPTIONS,a_ as MONITORS_OPTIONS,E as NOTE_ENTIRE_CLUSTER,L as NOTE_SOURCE_SCOPE_LOGIC,g9 as OPENTELEMETRY_EBPF_DISTRO_OPTION,aF as OPERATION_ALL,aE as OPERATION_HTTP_CLIENT,aB as OPERATION_HTTP_SERVER,aG as OPERATION_KAFKA_CONSUMER,aH as OPERATION_KAFKA_PRODUCER,cC as OTEL_DISTRO_NAME_OPTIONS,aI as PERCENTAGE_SECTION_DESCRIPTIONS,aU as PLACEHOLDER_NOTE,at as PLACEHOLDER_ROUTE,aT as PLACEHOLDER_RULE_NAME,_ as PLACEHOLDER_SEARCH_SOURCE,aq as PLACEHOLDER_SERVER_ADDRESS,co as PROCESS_ATTRIBUTE_NAMES,c as REGEX_TESTER_DRAWER,bV as SAMPLING_AUTO_RULE_TITLE,e_ as SAMPLING_BTN_CREATE_RULE,eY as SAMPLING_BTN_DOCS,eZ as SAMPLING_BTN_REFRESH,bT as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,c_ as SAMPLING_DEFAULT_CONFIRM_DESCRIPTION,d0 as SAMPLING_DEFAULT_CONFIRM_PREVIEW_LABEL,c$ as SAMPLING_DEFAULT_CONFIRM_TITLE,f1 as SAMPLING_DELETE_MODAL_APPROVE,f2 as SAMPLING_DELETE_MODAL_CANCEL,f3 as SAMPLING_DELETE_MODAL_DESCRIPTION,f4 as SAMPLING_DELETE_MODAL_TITLE,d8 as SAMPLING_DRAWER_WIDTH,eX as SAMPLING_DUPLICATE_RULE_WARNING,bQ as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,d_ as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,d$ as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,e0 as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,e1 as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,e2 as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,e3 as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,e4 as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,e5 as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,e6 as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,e7 as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,e9 as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,e8 as SAMPLING_ONBOARDING_ADVANCED_TITLE,eq as SAMPLING_ONBOARDING_AMBIENT_LABEL,dw as SAMPLING_ONBOARDING_BTN_GO_TO,dg as SAMPLING_ONBOARDING_BTN_NEXT,dZ as SAMPLING_ONBOARDING_BTN_READ_MORE,dH as SAMPLING_ONBOARDING_BTN_SKIP,dI as SAMPLING_ONBOARDING_BTN_START,ea as SAMPLING_ONBOARDING_COMMON_BANNER,ep as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,ed as SAMPLING_ONBOARDING_DROP_DESCRIPTION,ec as SAMPLING_ONBOARDING_DROP_SUBTITLE,eb as SAMPLING_ONBOARDING_DROP_TITLE,eg as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,ef as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,ej as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,ei as SAMPLING_ONBOARDING_KEEP_SUBTITLE,eh as SAMPLING_ONBOARDING_KEEP_TITLE,ek as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,el as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,em as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,en as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,eo as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,dn as SAMPLING_ONBOARDING_NOISY_BANNER,dj as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,dm as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,dk as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,dl as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,di as SAMPLING_ONBOARDING_NOISY_SUBTITLE,dh as SAMPLING_ONBOARDING_NOISY_TITLE,ee as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,df as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,dW as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,dX as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,dY as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,dT as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,dR as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,dS as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,dU as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,dV as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,dO as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,dM as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,dN as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,dP as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,dQ as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,dL as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,dK as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,dJ as SAMPLING_ONBOARDING_STRATEGY_TITLE,dt as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,du as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,dv as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,ds as SAMPLING_ONBOARDING_SUCCESS_INTRO,dr as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,dq as SAMPLING_ONBOARDING_SUCCESS_TITLE,dG as SAMPLING_ONBOARDING_WELCOME_BANNER,dz as SAMPLING_ONBOARDING_WELCOME_INTRO,dA as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,dB as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,dC as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,dD as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,dE as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,dF as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,dy as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,dx as SAMPLING_ONBOARDING_WELCOME_TITLE,e$ as SAMPLING_PAGE_DESCRIPTION,f0 as SAMPLING_PAGE_TITLE,a1 as SCOPE_AND_LABEL,a0 as SCOPE_GROUP_ANY_OF_HINT,K as SCOPE_GROUP_LANGUAGES_TITLE,J as SCOPE_GROUP_NAMESPACES_TITLE,G as SCOPE_GROUP_SOURCES_TITLE,ak as SECTION_DURATION,ai as SECTION_ERRORS,bS as SECTION_KEEP_PERCENTAGE,ao as SECTION_OPERATION,aY as SECTION_SAMPLING_PREVIEW,a2 as SECTION_SOURCE_SCOPE,ew as STORAGE_KEYS,eT as TITLE_NO_RESULTS,eV as TITLE_NO_RULES,ga as TOKEN_ABOUT_TO_EXPIRE,aV as TOOLTIP_NOTE,U as UNKNOWN_SOURCE_LABEL,aP as UNNAMED_RULE,cj as canAgentReportPodStartTime,eW as getNoResultsSubTitle,cJ as getSourceConditionsForPanel,bZ as getSupportedActionOptions,bO as getSupportedLanguageIcon,bP as getSupportedLanguageLabel,gb as isActionSupportedOnPlatform,gc as isActionSupportedOnVersion,bL as isRuleSourceScopeSupported,bh as mapActionTypesToOptions,bk as mapRuleTypesToOptions,bM as normalizeSupportedLanguagesForDisplay,cI as shouldShowSourceConditionsPanel,gd as supportsAllLanguages,bN as toScopeSupportedLanguages}from"./chunks/ui-components-Dcg3x769.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,7 +1,17 @@
|
|
|
1
1
|
import type { CloudConnectorProvider, CloudConnectorSetupArtifact } from '../../../../../types';
|
|
2
2
|
export declare const SETUP_SECTION_PERMISSIONS = "permissions";
|
|
3
|
+
export declare const SETUP_SECTION_CREATE_ROLE = "create-role";
|
|
4
|
+
export declare const SETUP_SECTION_CREDENTIALS = "credentials";
|
|
3
5
|
export interface SetupArtifactVars {
|
|
4
|
-
permissions
|
|
6
|
+
permissions?: string[];
|
|
7
|
+
vars?: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
export interface SetupVariantOption {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
5
12
|
}
|
|
6
13
|
export declare const findSetupArtifact: (provider: CloudConnectorProvider | undefined, section: string, id?: string) => CloudConnectorSetupArtifact | undefined;
|
|
7
|
-
export declare const
|
|
14
|
+
export declare const findSetupArtifacts: (provider: CloudConnectorProvider | undefined, section: string) => CloudConnectorSetupArtifact[];
|
|
15
|
+
export declare const getSetupVariants: (provider: CloudConnectorProvider | undefined, section: string) => SetupVariantOption[];
|
|
16
|
+
export declare const findSetupArtifactByVariant: (provider: CloudConnectorProvider | undefined, section: string, variant: string) => CloudConnectorSetupArtifact | undefined;
|
|
17
|
+
export declare const renderSetupArtifact: (artifact: CloudConnectorSetupArtifact, vars?: SetupArtifactVars) => string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
+
import type { CloudConnectorSetupArtifact } from '../../../../../types';
|
|
2
3
|
export interface CreateRoleSectionProps {
|
|
3
4
|
step: number;
|
|
4
|
-
|
|
5
|
+
artifact: CloudConnectorSetupArtifact;
|
|
6
|
+
code: string;
|
|
5
7
|
}
|
|
6
8
|
export declare const CreateRoleSection: FC<CreateRoleSectionProps>;
|
package/lib/containers/_drawers/create-cloud-connector-drawer/steps/setup-credentials/methods.d.ts
CHANGED
|
@@ -1,32 +1,4 @@
|
|
|
1
1
|
import type { CloudConnectorField, CloudConnectorProvider } from '../../../../../types';
|
|
2
|
-
export declare enum CloudConnectorAuthMethod {
|
|
3
|
-
AssumeRole = "assume-role",
|
|
4
|
-
StaticKeys = "static-keys"
|
|
5
|
-
}
|
|
6
|
-
export declare enum CloudConnectorSetupMethod {
|
|
7
|
-
CloudFormation = "cloudformation",
|
|
8
|
-
Terraform = "terraform",
|
|
9
|
-
AwsCli = "aws-cli",
|
|
10
|
-
Manual = "manual"
|
|
11
|
-
}
|
|
12
|
-
export interface AuthMethodOption {
|
|
13
|
-
id: CloudConnectorAuthMethod;
|
|
14
|
-
label: string;
|
|
15
|
-
note: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const AUTH_METHODS: AuthMethodOption[];
|
|
18
|
-
export interface SetupMethodOption {
|
|
19
|
-
id: CloudConnectorSetupMethod;
|
|
20
|
-
label: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const SETUP_METHODS: SetupMethodOption[];
|
|
23
|
-
export interface IamRoleInstructions {
|
|
24
|
-
description: string;
|
|
25
|
-
steps: string[];
|
|
26
|
-
code: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const IAM_ROLE_INSTRUCTIONS: Record<CloudConnectorSetupMethod, IamRoleInstructions>;
|
|
29
|
-
export declare const getIamRoleInstructions: (setupMethod: string) => IamRoleInstructions;
|
|
30
2
|
export declare const getCredentialFields: (provider: CloudConnectorProvider | undefined, authMethodId: string) => CloudConnectorField[];
|
|
31
3
|
export declare const findMissingRequiredCredential: (provider: CloudConnectorProvider | undefined, authMethodId: string, credentials: Record<string, string>) => CloudConnectorField | undefined;
|
|
32
4
|
export declare const getDefaultAuthMethod: (provider: CloudConnectorProvider | undefined) => string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type DataCardProps } from '../../../components';
|
|
2
|
+
import { type CatalogFieldSegment } from '../../../functions';
|
|
2
3
|
import { type Action, type ActionOption } from '../../../types';
|
|
3
4
|
/**
|
|
4
5
|
* Build the items shown in the view-mode `DataCard` (Type, Status, Signals, Name, Notes).
|
|
5
6
|
*/
|
|
6
7
|
export declare const buildDataCard: (action: Action, option: ActionOption) => DataCardProps["items"];
|
|
7
8
|
/**
|
|
8
|
-
* Build Configuration
|
|
9
|
+
* Build Configuration view segments from the YAML action catalog.
|
|
9
10
|
* Returns an empty list when the option has no catalog fields.
|
|
10
11
|
*/
|
|
11
|
-
export declare const
|
|
12
|
+
export declare const buildFieldsSegments: (action: Action, option?: ActionOption | null) => CatalogFieldSegment[];
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type DataCardProps } from '../../../components';
|
|
2
|
+
import { type CatalogFieldSegment } from '../../../functions';
|
|
2
3
|
import { type InstrumentationRule, type InstrumentationRuleOption } from '../../../types';
|
|
3
4
|
/**
|
|
4
5
|
* Build the items shown in the view-mode `DataCard` (Type, Status, Name, Managed by Profile, Notes).
|
|
5
6
|
*/
|
|
6
7
|
export declare const buildDataCard: (rule: InstrumentationRule, option: InstrumentationRuleOption) => DataCardProps["items"];
|
|
7
8
|
/**
|
|
8
|
-
* Build Collect
|
|
9
|
+
* Build Collect view segments from the YAML instrumentation-rule catalog.
|
|
9
10
|
* Rule YAML `name` keys map onto the rule root (`codeAttributes`,
|
|
10
11
|
* `payloadCollection`, `headersCollection`, `customInstrumentations`), not a
|
|
11
12
|
* nested `.fields` bag like actions. Returns an empty list when the option has
|
|
12
13
|
* no catalog fields.
|
|
13
14
|
*/
|
|
14
|
-
export declare const
|
|
15
|
+
export declare const buildCollectedFieldsSegments: (rule: InstrumentationRule, option?: InstrumentationRuleOption | null) => CatalogFieldSegment[];
|