@gen3/frontend 0.11.47 → 0.11.48
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.
|
@@ -12,7 +12,7 @@ declare const meta: {
|
|
|
12
12
|
showFilterAndSort?: boolean | undefined;
|
|
13
13
|
version?: string | undefined;
|
|
14
14
|
description?: string | undefined;
|
|
15
|
-
schema?: import("@gen3/core
|
|
15
|
+
schema?: import("@gen3/core").JSONObject | undefined;
|
|
16
16
|
headerMetadata?: import("../Navigation").HeaderMetadata | undefined;
|
|
17
17
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
18
18
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSONObject } from '@gen3/core
|
|
1
|
+
import { JSONObject } from '@gen3/core';
|
|
2
2
|
import { HeaderMetadata } from '../../features/Navigation/types';
|
|
3
3
|
export interface ContentSourceInterface {
|
|
4
4
|
get<T extends Record<string, undefined>>(filepath: string): Promise<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/content/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/content/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACvE,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CACtB;AAED,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { JSONObject } from '@gen3/core
|
|
2
|
+
import { JSONObject, AggregationsData, HistogramDataArray, EnumFilterValue, FacetDefinition, IndexAndField, Operation, CombineMode, NumericFromTo, DataFetchingResult, ServiceAndMethod, CartItem, Accessibility, RawDataAndTotalCountsParams, useGetRawDataAndTotalCountsQuery, SharedFieldMapping, Modals, Includes, Intersection, OperatorWithFieldAndArrayOfOperands, FacetType, DataLibraryStoreMode, ExportDatasetFields, FilterSet, CohortItem, FileItem } from '@gen3/core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ReactElement, ComponentType, ReactNode, CSSProperties, RefObject, Dispatch, SetStateAction, PropsWithChildren, FC } from 'react';
|
|
5
|
-
import { AggregationsData, HistogramDataArray, EnumFilterValue, FacetDefinition, IndexAndField, Operation, CombineMode, NumericFromTo, DataFetchingResult, ServiceAndMethod, JSONObject as JSONObject$1, CartItem, Accessibility, RawDataAndTotalCountsParams, useGetRawDataAndTotalCountsQuery, SharedFieldMapping, Modals, Includes, Intersection, OperatorWithFieldAndArrayOfOperands, FacetType, DataLibraryStoreMode, ExportDatasetFields, FilterSet, CohortItem, FileItem } from '@gen3/core';
|
|
6
5
|
import { EChartsOption, SetOptionOpts } from 'echarts';
|
|
7
6
|
import { MRT_Row, MRT_RowData, MRT_Cell, MRT_Column, MRT_TableInstance } from 'mantine-react-table';
|
|
8
7
|
import * as _mantine_core from '@mantine/core';
|
|
@@ -891,7 +890,7 @@ declare const isTextTransform: (value: any) => value is CSSProperties["textTrans
|
|
|
891
890
|
|
|
892
891
|
declare const isPropertyKey: (value: unknown) => value is PropertyKey;
|
|
893
892
|
declare const hasOwnProperty: <X extends object, Y extends PropertyKey>(obj?: X, prop?: Y) => obj is X & Record<Y, unknown>;
|
|
894
|
-
declare const getParamsValueAsString: (params?: JSONObject
|
|
893
|
+
declare const getParamsValueAsString: (params?: JSONObject, key?: string) => string | undefined;
|
|
895
894
|
declare const extractObjectKey: <T extends object>(obj: T) => keyof T | undefined;
|
|
896
895
|
|
|
897
896
|
declare const accessibleFieldName = "__accessible";
|
|
@@ -951,7 +950,7 @@ interface StudyColumn {
|
|
|
951
950
|
field: string;
|
|
952
951
|
contentType?: StudyColumnContentTypes;
|
|
953
952
|
cellRenderFunction?: string;
|
|
954
|
-
params?: JSONObject
|
|
953
|
+
params?: JSONObject;
|
|
955
954
|
errorIfNotAvailable?: boolean;
|
|
956
955
|
valueIfNotAvailable?: string | number;
|
|
957
956
|
}
|
|
@@ -1099,7 +1098,7 @@ interface ExplorerTableProps {
|
|
|
1099
1098
|
/**
|
|
1100
1099
|
* Represents the props required for a cell renderer function.
|
|
1101
1100
|
*/
|
|
1102
|
-
interface CellRendererFunctionProps<T extends MRT_RowData = JSONObject
|
|
1101
|
+
interface CellRendererFunctionProps<T extends MRT_RowData = JSONObject> {
|
|
1103
1102
|
cell: MRT_Cell<T>;
|
|
1104
1103
|
renderedCellValue: ReactNode;
|
|
1105
1104
|
column: MRT_Column<T>;
|
|
@@ -1659,7 +1658,7 @@ interface ExportFromDiscoveryActions {
|
|
|
1659
1658
|
}
|
|
1660
1659
|
interface DataLoader {
|
|
1661
1660
|
dataFetchFunction?: string;
|
|
1662
|
-
dataFetchArgs?: JSONObject
|
|
1661
|
+
dataFetchArgs?: JSONObject;
|
|
1663
1662
|
sortingAndPagination?: 'client' | 'server';
|
|
1664
1663
|
}
|
|
1665
1664
|
interface DiscoveryIndexConfig {
|
|
@@ -1713,7 +1712,7 @@ declare const DiscoveryIndexPanel: ({ discoveryConfig, indexSelector, }: Discove
|
|
|
1713
1712
|
declare const TagCloud: () => react_jsx_runtime.JSX.Element;
|
|
1714
1713
|
//# sourceMappingURL=TagCloud.d.ts.map
|
|
1715
1714
|
|
|
1716
|
-
interface CellRenderFunctionProps<T = any, C extends MRT_RowData = JSONObject
|
|
1715
|
+
interface CellRenderFunctionProps<T = any, C extends MRT_RowData = JSONObject> {
|
|
1717
1716
|
value: T;
|
|
1718
1717
|
cell?: MRT_Cell<C>;
|
|
1719
1718
|
row?: MRT_Row<C>;
|
|
@@ -1724,7 +1723,7 @@ interface CellRenderFunctionProps<T = any, C extends MRT_RowData = JSONObject$1>
|
|
|
1724
1723
|
* is available from the DiscoveryContext.
|
|
1725
1724
|
* @param props: value and optional cell object
|
|
1726
1725
|
*/
|
|
1727
|
-
type CellRendererFunction<T = JSONObject
|
|
1726
|
+
type CellRendererFunction<T = JSONObject> = (props: CellRenderFunctionProps, params?: T) => ReactElement;
|
|
1728
1727
|
|
|
1729
1728
|
declare const registerDiscoveryDefaultCellRenderers: () => void;
|
|
1730
1729
|
|
|
@@ -1791,7 +1790,7 @@ declare const DiscoveryProvider: ({ children, discoveryIndexConfig, }: {
|
|
|
1791
1790
|
declare const registerDefaultDiscoveryDataLoaders: () => void;
|
|
1792
1791
|
|
|
1793
1792
|
interface StudyTabGroupProps extends StudyTabGroup {
|
|
1794
|
-
readonly data: JSONObject
|
|
1793
|
+
readonly data: JSONObject;
|
|
1795
1794
|
}
|
|
1796
1795
|
declare const StudyGroup: ({ data, header, fields }: StudyTabGroupProps) => react_jsx_runtime.JSX.Element | null;
|
|
1797
1796
|
//# sourceMappingURL=StudyGroup.d.ts.map
|
|
@@ -1806,7 +1805,7 @@ declare const StudyProvider: ({ children, }: {
|
|
|
1806
1805
|
*/
|
|
1807
1806
|
|
|
1808
1807
|
interface SinglePageStudyDetailsPanelProps {
|
|
1809
|
-
readonly data: JSONObject
|
|
1808
|
+
readonly data: JSONObject;
|
|
1810
1809
|
readonly studyConfig?: StudyPageConfig;
|
|
1811
1810
|
readonly authorization?: DataAuthorization;
|
|
1812
1811
|
}
|
|
@@ -1814,7 +1813,7 @@ declare const SinglePageStudyDetailsPanel: ({ data, studyConfig, authorization,
|
|
|
1814
1813
|
//# sourceMappingURL=SinglePageStudyDetailsPanel.d.ts.map
|
|
1815
1814
|
|
|
1816
1815
|
interface StudyDetailsPanelProps {
|
|
1817
|
-
readonly data: JSONObject
|
|
1816
|
+
readonly data: JSONObject;
|
|
1818
1817
|
readonly studyConfig: StudyDetailView;
|
|
1819
1818
|
}
|
|
1820
1819
|
declare const StudyDetailsPanel: ({ data, studyConfig, }: StudyDetailsPanelProps) => ReactElement;
|
|
@@ -1822,7 +1821,7 @@ declare const StudyDetailsPanel: ({ data, studyConfig, }: StudyDetailsPanelProps
|
|
|
1822
1821
|
|
|
1823
1822
|
interface StudyGroupPanelProps {
|
|
1824
1823
|
readonly groups: StudyTabGroup[];
|
|
1825
|
-
readonly data: JSONObject
|
|
1824
|
+
readonly data: JSONObject;
|
|
1826
1825
|
}
|
|
1827
1826
|
declare const StudyGroupPanel: ({ data, groups }: StudyGroupPanelProps) => react_jsx_runtime.JSX.Element;
|
|
1828
1827
|
//# sourceMappingURL=StudyGroupPanel.d.ts.map
|
package/dist/server.d.ts
CHANGED