@odigos/ui-kit 0.0.289 → 0.0.290
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-Ds7r-EIJ.js → helpers-esDVvrTt.js} +1 -1
- package/lib/chunks/{index-DiYN36pr.js → index-lV6RFSE-.js} +14 -14
- package/lib/chunks/{source-instrument-form-context-CBP9xXNN.js → source-instrument-form-context-B9BHhgvw.js} +1 -1
- package/lib/chunks/ui-components-DvoeDBMI.js +1958 -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/radio-card/index.d.ts +4 -0
- package/lib/components.js +1 -1
- 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/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/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 +975 -696
- 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.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/ui-components-Dvmqmy3G.js +0 -1952
|
@@ -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>;
|