diff --git a/packages/x-components/src/x-modules/queries-preview/index.ts b/packages/x-components/src/x-modules/queries-preview/index.ts index 6192d0d2fc..04600dd2e9 100644 --- a/packages/x-components/src/x-modules/queries-preview/index.ts +++ b/packages/x-components/src/x-modules/queries-preview/index.ts @@ -5,3 +5,4 @@ export * from './events.types'; export * from './store'; export * from './x-module'; export * from './wiring'; +export * from './utils'; diff --git a/packages/x-components/src/x-modules/queries-preview/utils/get-hash-from-query-preview.ts b/packages/x-components/src/x-modules/queries-preview/utils/get-hash-from-query-preview.ts index a9de4b717c..f448474f67 100644 --- a/packages/x-components/src/x-modules/queries-preview/utils/get-hash-from-query-preview.ts +++ b/packages/x-components/src/x-modules/queries-preview/utils/get-hash-from-query-preview.ts @@ -7,6 +7,7 @@ import { QueryPreviewInfo, QueryPreviewItem } from '../store/index'; * * @param queryPreview - The {@link QueryPreviewItem | QueryPreviewItem} used in the request. * @returns A unique id that will be used as a key to store the QueryPreviewItem in the state. + * @public */ export const getHashFromQueryPreviewItem = (queryPreview: QueryPreviewItem): string => { const queryPreviewFilters = queryPreview.request.filters @@ -24,6 +25,7 @@ export const getHashFromQueryPreviewItem = (queryPreview: QueryPreviewItem): str * * @param queryPreviewInfo - The {@link QueryPreviewInfo | QueryPreviewInfo} of a QueryPreview. * @returns A unique id that will be used as a key to check the QueryPreview in the state. + * @public */ export const getHashFromQueryPreviewInfo = (queryPreviewInfo: QueryPreviewInfo): string => { const queryPreviewFilters = queryPreviewInfo.filters ? queryPreviewInfo.filters.join('-') : ''; diff --git a/packages/x-components/src/x-modules/queries-preview/utils/index.ts b/packages/x-components/src/x-modules/queries-preview/utils/index.ts new file mode 100644 index 0000000000..f4debb2a14 --- /dev/null +++ b/packages/x-components/src/x-modules/queries-preview/utils/index.ts @@ -0,0 +1 @@ +export * from './get-hash-from-query-preview';