+
[data-test-subj='embeddedSavedSearchDocTable'] {
+ height: 100%;
+ }
+ `}
+ >
) : null;
@@ -198,6 +208,7 @@ const SavedSearchComponentTable: React.FC<
onApiAvailable={(api) => {
embeddableApi.current = api;
}}
+ hidePanelChrome
/>
);
};
diff --git a/packages/kbn-saved-search-component/tsconfig.json b/packages/kbn-saved-search-component/tsconfig.json
index 7230bab371c51..03623c2e6817f 100644
--- a/packages/kbn-saved-search-component/tsconfig.json
+++ b/packages/kbn-saved-search-component/tsconfig.json
@@ -5,7 +5,8 @@
"types": [
"jest",
"node",
- "react"
+ "react",
+ "@emotion/react/types/css-prop",
]
},
"include": [
diff --git a/src/plugins/discover/public/embeddable/components/saved_search_grid.tsx b/src/plugins/discover/public/embeddable/components/saved_search_grid.tsx
index 2d74f47549f9f..0a2919fe1540c 100644
--- a/src/plugins/discover/public/embeddable/components/saved_search_grid.tsx
+++ b/src/plugins/discover/public/embeddable/components/saved_search_grid.tsx
@@ -36,13 +36,13 @@ interface DiscoverGridEmbeddableProps extends Omit
void;
onRemoveColumn: (column: string) => void;
savedSearchId?: string;
- enableFlyout: boolean;
+ enableDocumentViewer: boolean;
}
export const DiscoverGridMemoized = React.memo(DiscoverGrid);
export function DiscoverGridEmbeddable(props: DiscoverGridEmbeddableProps) {
- const { interceptedWarnings, enableFlyout, ...gridProps } = props;
+ const { interceptedWarnings, enableDocumentViewer, ...gridProps } = props;
const [expandedDoc, setExpandedDoc] = useState(undefined);
@@ -132,7 +132,7 @@ export function DiscoverGridEmbeddable(props: DiscoverGridEmbeddableProps) {
expandedDoc={expandedDoc}
showMultiFields={props.services.uiSettings.get(SHOW_MULTIFIELDS)}
maxDocFieldsDisplayed={props.services.uiSettings.get(MAX_DOC_FIELDS_DISPLAYED)}
- renderDocumentView={enableFlyout ? renderDocumentView : undefined}
+ renderDocumentView={enableDocumentViewer ? renderDocumentView : undefined}
renderCustomToolbar={renderCustomToolbarWithElements}
externalCustomRenderers={cellRenderers}
enableComparisonMode
diff --git a/src/plugins/discover/public/embeddable/components/search_embeddable_grid_component.tsx b/src/plugins/discover/public/embeddable/components/search_embeddable_grid_component.tsx
index 57cdf95b809bf..9c7a54054d265 100644
--- a/src/plugins/discover/public/embeddable/components/search_embeddable_grid_component.tsx
+++ b/src/plugins/discover/public/embeddable/components/search_embeddable_grid_component.tsx
@@ -49,7 +49,7 @@ interface SavedSearchEmbeddableComponentProps {
};
dataView: DataView;
onAddFilter?: DocViewFilterFn;
- enableFlyout: boolean;
+ enableDocumentViewer: boolean;
stateManager: SearchEmbeddableStateManager;
}
@@ -60,7 +60,7 @@ export function SearchEmbeddableGridComponent({
api,
dataView,
onAddFilter,
- enableFlyout,
+ enableDocumentViewer,
stateManager,
}: SavedSearchEmbeddableComponentProps) {
const discoverServices = useDiscoverServices();
@@ -274,7 +274,7 @@ export function SearchEmbeddableGridComponent({
services={discoverServices}
showTimeCol={!discoverServices.uiSettings.get(DOC_HIDE_TIME_COLUMN_SETTING, false)}
dataGridDensityState={savedSearch.density}
- enableFlyout={enableFlyout}
+ enableDocumentViewer={enableDocumentViewer}
/>
);
}
diff --git a/src/plugins/discover/public/embeddable/get_search_embeddable_factory.tsx b/src/plugins/discover/public/embeddable/get_search_embeddable_factory.tsx
index f9919ba9563ab..4117a36a4e048 100644
--- a/src/plugins/discover/public/embeddable/get_search_embeddable_factory.tsx
+++ b/src/plugins/discover/public/embeddable/get_search_embeddable_factory.tsx
@@ -320,9 +320,10 @@ export const getSearchEmbeddableFactory = ({
? undefined
: onAddFilter
}
- enableFlyout={
- initialState.nonPersistedDisplayOptions?.enableFlyout !== undefined
- ? initialState.nonPersistedDisplayOptions?.enableFlyout
+ enableDocumentViewer={
+ initialState.nonPersistedDisplayOptions?.enableDocumentViewer !==
+ undefined
+ ? initialState.nonPersistedDisplayOptions?.enableDocumentViewer
: true
}
stateManager={searchEmbeddable.stateManager}
diff --git a/src/plugins/discover/public/embeddable/types.ts b/src/plugins/discover/public/embeddable/types.ts
index 60cc3520d3683..64cf5a390da3a 100644
--- a/src/plugins/discover/public/embeddable/types.ts
+++ b/src/plugins/discover/public/embeddable/types.ts
@@ -62,7 +62,7 @@ export type SearchEmbeddableSerializedAttributes = Omit<
// These are options that are not persisted in the saved object, but can be used by solutions
// when utilising the SavedSearchComponent package outside of dashboard contexts.
export interface NonPersistedDisplayOptions {
- enableFlyout?: boolean;
+ enableDocumentViewer?: boolean;
enableFilters?: boolean;
}
@@ -73,7 +73,6 @@ export type SearchEmbeddableSerializedState = SerializedTitles &
attributes?: SavedSearchAttributes & { references: SavedSearch['references'] };
// by reference
savedObjectId?: string;
- } & {
nonPersistedDisplayOptions?: NonPersistedDisplayOptions;
};
@@ -83,7 +82,6 @@ export type SearchEmbeddableRuntimeState = SearchEmbeddableSerializedAttributes
savedObjectTitle?: string;
savedObjectId?: string;
savedObjectDescription?: string;
- } & {
nonPersistedDisplayOptions?: NonPersistedDisplayOptions;
};
diff --git a/src/plugins/saved_search/common/types.ts b/src/plugins/saved_search/common/types.ts
index 9a4417b496d58..ca6fe1949fd1a 100644
--- a/src/plugins/saved_search/common/types.ts
+++ b/src/plugins/saved_search/common/types.ts
@@ -68,8 +68,6 @@ export interface SavedSearchAttributes {
breakdownField?: string;
density?: DataGridDensity;
visContext?: VisContextUnmapped;
-
- enableFlyout?: boolean;
}
/** @internal **/
diff --git a/x-pack/packages/observability/logs_overview/src/components/log_category_details/log_category_document_examples_table.tsx b/x-pack/packages/observability/logs_overview/src/components/log_category_details/log_category_document_examples_table.tsx
index 3e882911e4021..0101a2496415f 100644
--- a/x-pack/packages/observability/logs_overview/src/components/log_category_details/log_category_document_examples_table.tsx
+++ b/x-pack/packages/observability/logs_overview/src/components/log_category_details/log_category_document_examples_table.tsx
@@ -41,7 +41,7 @@ export const LogCategoryDocumentExamplesTable: React.FC
diff --git a/x-pack/plugins/observability_solution/apm/public/components/app/service_logs/index.tsx b/x-pack/plugins/observability_solution/apm/public/components/app/service_logs/index.tsx
index a5fb7961cf84a..35f502642518f 100644
--- a/x-pack/plugins/observability_solution/apm/public/components/app/service_logs/index.tsx
+++ b/x-pack/plugins/observability_solution/apm/public/components/app/service_logs/index.tsx
@@ -95,7 +95,7 @@ export function ClassicServiceLogsStream() {
query={query}
height={'60vh'}
displayOptions={{
- enableFlyout: true,
+ enableDocumentViewer: true,
enableFilters: false,
}}
/>