@odigos/ui-kit 0.0.194 → 0.0.196
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 +24 -0
- package/lib/chunks/index-CjudHPMe.js +3 -0
- package/lib/chunks/ui-components-OrgB9V7b.js +2381 -0
- package/lib/chunks/vendor-DUWBN0Mg.js +1 -0
- package/lib/components/_v2/drawer/header/index.d.ts +1 -0
- package/lib/components/_v2/index.d.ts +1 -0
- package/lib/components/_v2/loader/index.d.ts +1 -0
- package/lib/components/_v2/no-data/index.d.ts +10 -0
- package/lib/components/_v2/table/styled.d.ts +5 -8
- package/lib/components/_v2/table/table-rows/index.d.ts +1 -1
- package/lib/components/_v2/typography/index.d.ts +2 -0
- package/lib/components/scroll-y/index.d.ts +5 -3
- 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/destinations/index.d.ts +10 -4
- package/lib/constants/sources/index.d.ts +1 -1
- package/lib/constants/strings/index.d.ts +16 -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-destination-drawer/form-column/index.d.ts +9 -0
- package/lib/containers/_v2/_drawers/add-destination-drawer/helpers.d.ts +14 -0
- package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +12 -0
- package/lib/containers/_v2/_drawers/add-destination-drawer/lists-column/index.d.ts +13 -0
- package/lib/containers/_v2/_drawers/add-destination-drawer/lists-filters/index.d.ts +9 -0
- package/lib/containers/_v2/_drawers/add-destination-drawer/types.d.ts +11 -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 +6 -7
- package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/list/index.d.ts +12 -0
- package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/list/list-item/index.d.ts +20 -0
- package/lib/containers/_v2/_drawers/add-source-drawer/utils.d.ts +15 -0
- package/lib/containers/_v2/_drawers/index.d.ts +2 -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/add-destination-form/dynamic-fields/index.d.ts +8 -0
- package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +8 -0
- package/lib/containers/_v2/_forms/index.d.ts +2 -0
- package/lib/containers/_v2/central-connections/index.d.ts +5 -1
- package/lib/containers/v2.js +76 -27
- package/lib/containers.js +111 -121
- package/lib/contexts.js +1 -1
- package/lib/functions/compare-condition/index.d.ts +2 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +0 -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 +8 -0
- package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +2 -0
- package/lib/snippets/_v2/wide-drawer/index.d.ts +6 -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/destinations/index.d.ts +28 -11
- package/lib/types/enum/index.d.ts +0 -1
- package/lib/types/instrumentation-rules/index.d.ts +1 -1
- package/lib/types/snapshot/index.d.ts +2 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +12 -12
- package/lib/chunks/index-CAnSZt6a.js +0 -3
- package/lib/chunks/ui-components-DzbQmwE9.js +0 -2365
- package/lib/chunks/vendor-C-kwkNJP.js +0 -1
- package/lib/hooks/useInfiniteScroll.d.ts +0 -10
package/lib/contexts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dw as OdigosProvider,dx as StorybookProvider,ax as checkVersionSupport,au as useOdigos,dy as useStorybook}from"./chunks/ui-components-OrgB9V7b.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-DUWBN0Mg.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{c7 as capitalizeFirstLetter,d3 as cleanObjectEmptyStringsValues,w as compareCondition,j as deepClone,bo as filterActions,bO as filterDestinations,bM as filterDestinationsByStream,bN as filterSources,bL as filterSourcesByStream,d4 as flattenObjectKeys,bF as formatBytes,cG as formatDuration,aw as generateId,b9 as getActionIcon,bi as getConditionsBooleans,bH as getContainersIcons,cD as getContainersInstrumentedCount,aa as getDestinationIcon,bv as getEntityIcon,b5 as getEntityId,bq as getEntityLabel,d5 as getIdFromSseTarget,bG as getInstrumentationRuleIcon,d6 as getMainContainerLanguage,cb as getMetricForEntity,d7 as getMonitorIcon,d8 as getPlatformIcon,d9 as getPlatformLabel,$ as getProgrammingLanguageIcon,cI as getRecursiveValues,da as getSseTargetFromId,db as getStatusColor,aE as getStatusFromPodStatus,bm as getStatusIcon,cp as getStatusTypeFromOdigosHealth,dc as getValueForRange,ci as getWorkloadId,c6 as getYamlFieldsForDestination,cq as hasUnhealthyInstances,i as isEmpty,dd as isLegalK8sLabel,ao as isOverTime,cv as isStringABoolean,de as isTimeElapsed,df as isValidVersion,bl as mapConditions,c4 as mapDestinationFieldsForDisplay,G as mapExportedSignals,z as mapSupportedSignals,dg as numbersOnly,cw as parseBooleanFromString,dh as parseJsonStringToPrettyString,di as removeEmptyValuesFromObject,y as safeJsonParse,dj as safeJsonStringify,bB as sleep,bV as splitCamelString,dk as stringifyNonStringValues,dl as trimVersion}from"./chunks/ui-components-OrgB9V7b.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-DUWBN0Mg.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/hooks/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export * from './useCopy';
|
|
|
7
7
|
export * from './useDataStreamFormData';
|
|
8
8
|
export * from './useDestinationFormData';
|
|
9
9
|
export * from './useGenericForm';
|
|
10
|
-
export * from './useInfiniteScroll';
|
|
11
10
|
export * from './useInstrumentationRuleFormData';
|
|
12
11
|
export * from './useKeyDown';
|
|
13
12
|
export * from './useOnClickOutside';
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{b4 as useActionFormData,dv as useBodyScroll,bP as useClickNode,cj as useClickNotification,bK as useContainerSize,al as useCopy,bZ as useDataStreamFormData,c5 as useDestinationFormData,a3 as useGenericForm,ce as useInstrumentationRuleFormData,am as useKeyDown,bU as useOnClickOutside,bQ as usePopup,bY as useSessionStorage,cx as useSourceFormData,cB as useSourceSelectionFormData,an as useTimeAgo}from"./chunks/ui-components-OrgB9V7b.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-DUWBN0Mg.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
|
@@ -9,24 +9,25 @@ export interface WideDrawerProps {
|
|
|
9
9
|
error?: string;
|
|
10
10
|
} | undefined>;
|
|
11
11
|
disableSave?: boolean;
|
|
12
|
-
connectionIds
|
|
12
|
+
connectionIds?: {
|
|
13
13
|
value: string[];
|
|
14
14
|
setValue: Dispatch<SetStateAction<string[]>>;
|
|
15
15
|
};
|
|
16
|
-
search: Pick<SearchProps, 'value' | 'onChange' | 'placeholder' | 'segment'
|
|
16
|
+
search: Pick<SearchProps, 'value' | 'onChange' | 'placeholder' | 'segment'>;
|
|
17
17
|
filters?: ReactNode;
|
|
18
18
|
isFormDirty?: boolean;
|
|
19
|
+
hideDirtyNote?: boolean;
|
|
19
20
|
isFetching?: boolean;
|
|
20
21
|
progress?: Pick<LoaderProps, 'title' | 'subTitle' | 'percentage'>;
|
|
21
|
-
header: Pick<DrawerProps['header'], 'icon' | 'title'>;
|
|
22
|
+
header: Pick<DrawerProps['header'], 'icon' | 'title' | 'subTitle'>;
|
|
22
23
|
subHeader?: {
|
|
23
24
|
icon: SVG;
|
|
24
25
|
title: string;
|
|
25
26
|
description: string;
|
|
26
27
|
badge: BadgeProps;
|
|
27
28
|
};
|
|
28
|
-
leftColumn: Pick<ColumnProps, 'width' | 'header' | 'list'
|
|
29
|
-
rightColumn: Pick<ColumnProps, 'width' | 'header' | 'list'
|
|
29
|
+
leftColumn: Pick<ColumnProps, 'width' | 'header' | 'list'>;
|
|
30
|
+
rightColumn: Pick<ColumnProps, 'width' | 'header' | 'list'>;
|
|
30
31
|
}
|
|
31
32
|
export interface WideDrawerRef {
|
|
32
33
|
clearErrors: () => void;
|
package/lib/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{c1 as AddButton,cr as CopyText,cn as EditButton,cl as Flow,dz as MapItemNode,dA as NoDataNode,c2 as NoteBackToSummary,ct as PodContainer,cA as SourceContainer}from"./chunks/ui-components-OrgB9V7b.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-DUWBN0Mg.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{ak as ProgressKeys,dq as useActiveNodeStore,cF as useDarkMode,ac as useDataStreamStore,b0 as useDrawerStore,aq as useEntityStore,bn as useFilterStore,bb as useModalStore,cd as useNotificationStore,ah as useProgressStore,bD as useSelectedStore,b_ as useSetupStore}from"./chunks/ui-components-OrgB9V7b.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-DUWBN0Mg.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dr as Provider,ds as animations,dt as opacity,du as palettes}from"./chunks/ui-components-OrgB9V7b.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-DUWBN0Mg.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
|
@@ -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",
|
|
@@ -131,17 +131,6 @@ export type DestinationCategories = {
|
|
|
131
131
|
description: string;
|
|
132
132
|
items: DestinationOption[];
|
|
133
133
|
}[];
|
|
134
|
-
export interface DestinationFormData {
|
|
135
|
-
type: Destination['destinationType']['type'];
|
|
136
|
-
name: Destination['destinationType']['displayName'];
|
|
137
|
-
currentStreamName: string;
|
|
138
|
-
exportedSignals: Destination['exportedSignals'];
|
|
139
|
-
fields: {
|
|
140
|
-
key: string;
|
|
141
|
-
value: string;
|
|
142
|
-
}[];
|
|
143
|
-
disabled: Destination['disabled'];
|
|
144
|
-
}
|
|
145
134
|
export interface DestinationDynamicField {
|
|
146
135
|
name: DestinationYamlProperties['name'];
|
|
147
136
|
componentType: DestinationYamlProperties['componentType'];
|
|
@@ -150,6 +139,7 @@ export interface DestinationDynamicField {
|
|
|
150
139
|
renderCondition?: DestinationYamlProperties['renderCondition'];
|
|
151
140
|
type?: string;
|
|
152
141
|
required?: boolean;
|
|
142
|
+
tooltip?: string;
|
|
153
143
|
placeholder?: string;
|
|
154
144
|
options?: DropdownProps['options'];
|
|
155
145
|
}
|
|
@@ -159,4 +149,31 @@ export interface TestConnectionResponse {
|
|
|
159
149
|
reason: string;
|
|
160
150
|
destinationType?: DestinationTypes;
|
|
161
151
|
}
|
|
152
|
+
export interface GetDestinationCategoriesResult {
|
|
153
|
+
destinationCategories: {
|
|
154
|
+
categories: DestinationCategories;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
export type GetDestinationCategoriesFunc = () => Promise<GetDestinationCategoriesResult | undefined>;
|
|
158
|
+
export interface GetPotentialDestinationsResult {
|
|
159
|
+
potentialDestinations: {
|
|
160
|
+
type: DestinationTypes;
|
|
161
|
+
fields: string;
|
|
162
|
+
}[];
|
|
163
|
+
}
|
|
164
|
+
export type GetPotentialDestinationsFunc = () => Promise<GetPotentialDestinationsResult | undefined>;
|
|
165
|
+
export interface DestinationFormData {
|
|
166
|
+
type: Destination['destinationType']['type'];
|
|
167
|
+
name: Destination['destinationType']['displayName'];
|
|
168
|
+
currentStreamName: string;
|
|
169
|
+
exportedSignals: Destination['exportedSignals'];
|
|
170
|
+
fields: {
|
|
171
|
+
key: string;
|
|
172
|
+
value: string;
|
|
173
|
+
}[];
|
|
174
|
+
disabled: Destination['disabled'];
|
|
175
|
+
}
|
|
162
176
|
export type TestConnectionFunc = (payload: DestinationFormData) => Promise<TestConnectionResponse | undefined>;
|
|
177
|
+
export type CreateDestinationFunc = (payload: DestinationFormData) => Promise<{
|
|
178
|
+
error?: string;
|
|
179
|
+
} | undefined>;
|
|
@@ -25,7 +25,6 @@ export declare enum OtelDistroName {
|
|
|
25
25
|
DotNetLegacy = "dotnet-legacy",
|
|
26
26
|
DotNetEnterprise = "dotnet-enterprise",
|
|
27
27
|
RubyEnterprise = "ruby-enterprise",
|
|
28
|
-
PhpEnterprise = "php-enterprise",
|
|
29
28
|
CPlusPlusEnterprise = "cplusplus-enterprise",
|
|
30
29
|
MySqlEnterprise = "mysql-enterprise"
|
|
31
30
|
}
|
|
@@ -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{cL as ActionCategory,A as ActionKeyTypes,h as ActionType,cM as AddNodeTypes,cN as BooleanOperation,H as CodeAttributesKeyTypes,ba as Crud,X as CustomInstrumentationsKeyTypes,bI as DesiredStateProgress,cO as DestinationTypes,cP as EdgeTypes,aj as EntityTypes,g as FieldTypes,Q as GolangCustomProbe,O as HeadersCollectionKeyTypes,c as InputTypes,cQ as InstallationMethod,Y as InstrumentationRuleType,cR as IntrumentationStatus,U as JavaCustomProbe,cS as JsonOperation,K as K8sAttributesFrom,cy as K8sResourceKind,cT as ListDirection,ck as NodeTypes,cU as NumberOperation,cV as OtelDistroName,c3 as OtherEntityTypes,bk as OtherStatus,ae as OtherStatusType,P as PayloadCollectionKeyTypes,cW as PlatformType,cX as PodContainerLifecycleStatus,cY as PodContainerStatus,cZ as PodPhase,c_ as Profile,cz as ProgrammingLanguages,c$ as SIGNAL_KEY_TO_TYPE,c8 as SIGNAL_TYPE_TO_KEY,d0 as SignalKey,E as SignalType,d1 as SortDirection,p as StatusType,d2 as StringOperation,cf as Tier,aL as WorkloadRolloutStatus}from"./chunks/ui-components-OrgB9V7b.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-DUWBN0Mg.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/visuals.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dN as VISUAL_ODIGOS_LOGO_HEIGHT,dO as VISUAL_ODIGOS_LOGO_WIDTH,V as VisualGreenRings,dP as VisualOdigosLogo}from"./chunks/ui-components-OrgB9V7b.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-DUWBN0Mg.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odigos/ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.196",
|
|
4
4
|
"author": "Odigos",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -103,15 +103,15 @@
|
|
|
103
103
|
"styled-components": "6.2.0"
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@
|
|
107
|
-
"@xyflow/react": "^12.10.0",
|
|
106
|
+
"@xyflow/react": "^12.10.1",
|
|
108
107
|
"javascript-time-ago": "^2.6.2",
|
|
109
108
|
"lottie-react": "^2.4.1",
|
|
110
109
|
"prism-react-renderer": "^2.4.1",
|
|
111
110
|
"react": "19.2.4",
|
|
112
111
|
"react-dom": "19.2.4",
|
|
113
|
-
"react-error-boundary": "^6.1.
|
|
112
|
+
"react-error-boundary": "^6.1.1",
|
|
114
113
|
"styled-components": "6.2.0",
|
|
114
|
+
"virtua": "^0.48.6",
|
|
115
115
|
"zustand": "^5.0.11"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
@@ -119,30 +119,30 @@
|
|
|
119
119
|
"@babel/preset-env": "^7.29.0",
|
|
120
120
|
"@babel/preset-react": "^7.28.5",
|
|
121
121
|
"@babel/preset-typescript": "^7.28.5",
|
|
122
|
-
"@eslint/eslintrc": "^3.3.
|
|
122
|
+
"@eslint/eslintrc": "^3.3.4",
|
|
123
123
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
124
124
|
"@rollup/plugin-json": "^6.1.0",
|
|
125
125
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
126
126
|
"@rollup/plugin-terser": "^0.4.4",
|
|
127
127
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
128
128
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.0",
|
|
129
|
-
"@storybook/react-webpack5": "10.2.
|
|
130
|
-
"@types/node": "^25.
|
|
131
|
-
"@types/react": "^19.2.
|
|
129
|
+
"@storybook/react-webpack5": "10.2.12",
|
|
130
|
+
"@types/node": "^25.3.0",
|
|
131
|
+
"@types/react": "^19.2.14",
|
|
132
132
|
"@types/react-dom": "^19.2.3",
|
|
133
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
134
|
-
"@typescript-eslint/parser": "^8.
|
|
133
|
+
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
134
|
+
"@typescript-eslint/parser": "^8.56.1",
|
|
135
135
|
"babel-loader": "^10.0.0",
|
|
136
136
|
"babel-plugin-styled-components": "^2.1.4",
|
|
137
137
|
"eslint": "^9.39.2",
|
|
138
138
|
"eslint-plugin-react": "^7.37.5",
|
|
139
|
-
"eslint-plugin-storybook": "10.2.
|
|
139
|
+
"eslint-plugin-storybook": "10.2.12",
|
|
140
140
|
"postcss": "^8.5.6",
|
|
141
141
|
"rollup": "^4.57.1",
|
|
142
142
|
"rollup-plugin-filesize": "^10.0.0",
|
|
143
143
|
"rollup-plugin-postcss": "^4.0.2",
|
|
144
144
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
145
|
-
"storybook": "10.2.
|
|
145
|
+
"storybook": "10.2.12",
|
|
146
146
|
"typescript": "^5.9.3"
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -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-DzbQmwE9.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};
|