@odigos/ui-kit 0.0.193 → 0.0.195
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/index-DvMzoRJQ.js +3 -0
- package/lib/chunks/{ui-components-B4OMCuIf.js → ui-components-ymRfS19x.js} +396 -387
- package/lib/components/_v2/drawer/header/index.d.ts +1 -0
- package/lib/components/_v2/typography/index.d.ts +2 -0
- package/lib/components/styled.d.ts +1 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/actions/index.d.ts +2 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-action-drawer/helpers.d.ts +7 -0
- package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +10 -0
- package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/index.d.ts +2 -1
- package/lib/containers/_v2/_drawers/index.d.ts +1 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/add-cluster-info/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/delete-attributes/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/error-sampler/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/index.d.ts +7 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/k8s-attributes/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/latency-sampler/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/pii-masking/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/probabilistic-sampler/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/rename-attributes/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/service-name-sampler/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-action-form/custom-fields/span-attribute-sampler/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/add-action-form/index.d.ts +7 -0
- package/lib/containers/_v2/_forms/index.d.ts +1 -0
- package/lib/containers/_v2/central-connections/index.d.ts +2 -1
- package/lib/containers/v2.js +43 -26
- package/lib/containers.js +23 -23
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets/_v2/wide-drawer/column/index.d.ts +0 -1
- package/lib/snippets/_v2/wide-drawer/column-list-collapse/index.d.ts +7 -0
- package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +2 -0
- package/lib/snippets/_v2/wide-drawer/index.d.ts +5 -5
- 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 +4 -1
- package/lib/types/instrumentation-rules/index.d.ts +1 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-BzflK0LT.js +0 -3
|
@@ -54,6 +54,10 @@ export interface Action {
|
|
|
54
54
|
fields: ActionFields;
|
|
55
55
|
conditions?: Condition[] | null;
|
|
56
56
|
}
|
|
57
|
+
export type ActionFormData = Omit<Action, 'id' | 'conditions'>;
|
|
58
|
+
export type CreateActionFunc = (payload: ActionFormData, connectionIds?: string[]) => Promise<{
|
|
59
|
+
error?: string;
|
|
60
|
+
} | undefined>;
|
|
57
61
|
export interface ActionFields {
|
|
58
62
|
[ActionKeyTypes.CollectContainerAttributes]?: boolean | null;
|
|
59
63
|
[ActionKeyTypes.CollectReplicaSetAttributes]?: boolean | null;
|
|
@@ -74,7 +78,6 @@ export interface ActionFields {
|
|
|
74
78
|
[ActionKeyTypes.ServicesNameFilters]?: ServicesNameFilters[] | null;
|
|
75
79
|
[ActionKeyTypes.AttributeFilters]?: AttributeFilters[] | null;
|
|
76
80
|
}
|
|
77
|
-
export type ActionFormData = Omit<Action, 'id' | 'conditions'>;
|
|
78
81
|
export declare enum K8sAttributesFrom {
|
|
79
82
|
Pod = "pod",
|
|
80
83
|
Namespace = "namespace",
|
|
@@ -27,7 +27,7 @@ export interface InstrumentationRule {
|
|
|
27
27
|
customInstrumentations?: CustomInstrumentations | null;
|
|
28
28
|
}
|
|
29
29
|
export type InstrumentationRuleFormData = Omit<InstrumentationRule, 'ruleId' | 'type' | 'mutable' | 'profileName'>;
|
|
30
|
-
export type CreateInstrumentationRuleFunc = (payload: InstrumentationRuleFormData) => Promise<{
|
|
30
|
+
export type CreateInstrumentationRuleFunc = (payload: InstrumentationRuleFormData, connectionIds?: string[]) => Promise<{
|
|
31
31
|
error?: string;
|
|
32
32
|
} | undefined>;
|
|
33
33
|
export declare enum CodeAttributesKeyTypes {
|
package/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{cH as ActionCategory,A as ActionKeyTypes,h as ActionType,cI as AddNodeTypes,cJ as BooleanOperation,v as CodeAttributesKeyTypes,aZ as Crud,x as CustomInstrumentationsKeyTypes,by as DesiredStateProgress,cK as DestinationTypes,cL as EdgeTypes,a5 as EntityTypes,g as FieldTypes,G as GolangCustomProbe,H as HeadersCollectionKeyTypes,c as InputTypes,cM as InstallationMethod,y as InstrumentationRuleType,cN as IntrumentationStatus,J as JavaCustomProbe,cO as JsonOperation,K as K8sAttributesFrom,ct as K8sResourceKind,cP as ListDirection,cf as NodeTypes,cQ as NumberOperation,cR as OtelDistroName,bV as OtherEntityTypes,b8 as OtherStatus,$ as OtherStatusType,P as PayloadCollectionKeyTypes,cS as PlatformType,cT as PodContainerLifecycleStatus,cU as PodContainerStatus,cV as PodPhase,cW as Profile,cu as ProgrammingLanguages,cX as SIGNAL_KEY_TO_TYPE,c3 as SIGNAL_TYPE_TO_KEY,cY as SignalKey,bZ as SignalType,cZ as SortDirection,o as StatusType,c_ as StringOperation,ca as Tier,ay as WorkloadRolloutStatus}from"./chunks/ui-components-ymRfS19x.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C-kwkNJP.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/visuals.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dK as VISUAL_ODIGOS_LOGO_HEIGHT,dL as VISUAL_ODIGOS_LOGO_WIDTH,V as VisualGreenRings,dM as VisualOdigosLogo}from"./chunks/ui-components-ymRfS19x.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C-kwkNJP.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{Y as a,j as s,k as n,ab as r,a8 as c,a1 as l,cD as p,s as m,N as d}from"./ui-components-B4OMCuIf.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as b,YamlIcon as y}from"../icons.js";const k=i.div`
|
|
2
|
-
padding: 0 12px;
|
|
3
|
-
`,Y=({title:i="YAML",yaml:Y,defaultOpen:j})=>{const{clickCopy:C,isCopied:g}=a(),[v,x]=o(j??!1),A=e(()=>Y?[{id:c(),type:r.Button,buttonProps:{variant:n.Secondary,size:s.S,leftIcon:g?u:f,onClick:()=>C(Y||""),disabled:g}},{id:c(),type:r.Button,buttonProps:{variant:n.Secondary,size:s.S,leftIcon:v?h:b,onClick:()=>x(t=>!t)}}]:[],[Y,g,v]);return t(l,{richTitle:{icon:y,title:i},actions:A,children:v&&t(k,{children:Y?t(p,{code:Y,language:"yaml",theme:"duotoneDark"}):t(m,{children:t(d,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{Y};
|