From 52e096680f2b7b4d8135029def35dd805926419d Mon Sep 17 00:00:00 2001 From: Andreana Malama Date: Wed, 4 Feb 2026 14:04:07 +0200 Subject: [PATCH] Update schema to include partiition chart states directly --- .../config_builder/schema/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/platform/packages/shared/kbn-lens-embeddable-utils/config_builder/schema/index.ts b/src/platform/packages/shared/kbn-lens-embeddable-utils/config_builder/schema/index.ts index df8be2848a5c8..286eae2a85c0c 100644 --- a/src/platform/packages/shared/kbn-lens-embeddable-utils/config_builder/schema/index.ts +++ b/src/platform/packages/shared/kbn-lens-embeddable-utils/config_builder/schema/index.ts @@ -30,11 +30,14 @@ import type { LensApiStaticValueOperation, } from './metric_ops'; import type { LensApiBucketOperations } from './bucket_ops'; -import { partitionStateSchema } from './charts/partition'; import type { MosaicState } from './charts/mosaic'; +import { mosaicStateSchema } from './charts/mosaic'; import type { TreemapState } from './charts/treemap'; +import { treemapStateSchema } from './charts/treemap'; import type { WaffleState } from './charts/waffle'; +import { waffleStateSchema } from './charts/waffle'; import type { PieState } from './charts/pie'; +import { pieStateSchema } from './charts/pie'; /** * We need to break the type inference here to avoid exceeding the ts compiler serialization limit. @@ -51,9 +54,12 @@ export const _lensApiStateSchema: any = schema.oneOf([ gaugeStateSchema, heatmapStateSchema, tagcloudStateSchema, - partitionStateSchema, regionMapStateSchema, datatableStateSchema, + pieStateSchema, + mosaicStateSchema, + treemapStateSchema, + waffleStateSchema, ]); export type LensApiState =