@datawheel/bespoke 1.0.0-rc.19 → 1.0.0-rc.20
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/dist/{ExploreProvider-Gev_cui7.d.mts → Search-C-9ALKJo.d.mts} +62 -2
- package/dist/{auth-Bovg1V2h.d.mts → auth-D3PWImeZ.d.mts} +1 -1
- package/dist/auth.d.mts +3 -3
- package/dist/explore.d.mts +5 -64
- package/dist/explore.js +6 -6
- package/dist/redux-store.d.mts +4 -4
- package/dist/report.d.mts +7 -7
- package/dist/server.d.mts +4 -4
- package/dist/{store-OTdXHiCJ.d.mts → store-D5N14riO.d.mts} +2 -2
- package/dist/{types-LuKMHltU.d.mts → types-WI9fSG9b.d.mts} +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { u as SearchReportItem } from './types-
|
|
3
|
+
import { u as SearchReportItem, i as SearchReportParams } from './types-WI9fSG9b.mjs';
|
|
4
|
+
import { AutocompleteProps, TooltipProps } from '@mantine/core';
|
|
5
|
+
|
|
6
|
+
interface ReportTileProps {
|
|
7
|
+
reportId: string;
|
|
8
|
+
reportName: string;
|
|
9
|
+
members: Array<{
|
|
10
|
+
original_id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
id: number;
|
|
13
|
+
variant: string;
|
|
14
|
+
variant_id: number;
|
|
15
|
+
dimension: string;
|
|
16
|
+
dimension_id: number;
|
|
17
|
+
image: {
|
|
18
|
+
src: string;
|
|
19
|
+
alt: string;
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
href: string;
|
|
23
|
+
onClick: (e: React.MouseEvent) => void;
|
|
24
|
+
}
|
|
4
25
|
|
|
5
26
|
type TranslationKeys = "try_another" | "search" | "filters_all" | "no_results" | "load_more" | "select_report" | "select_variant" | "count_format";
|
|
6
27
|
type MetaTranslations = {
|
|
@@ -66,4 +87,43 @@ interface ExploreProviderProps {
|
|
|
66
87
|
}
|
|
67
88
|
declare function ExploreProvider({ children, pageSize, sort }: ExploreProviderProps): react_jsx_runtime.JSX.Element;
|
|
68
89
|
|
|
69
|
-
|
|
90
|
+
type BespokeSearchProps = {
|
|
91
|
+
locale: string;
|
|
92
|
+
profilePrefix: string;
|
|
93
|
+
autocompleteProps?: Partial<AutocompleteProps & {
|
|
94
|
+
searchConfig: {
|
|
95
|
+
searchLimit?: number;
|
|
96
|
+
queryThreshold?: number;
|
|
97
|
+
};
|
|
98
|
+
}> | Record<string, never>;
|
|
99
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
100
|
+
tooltipText?: string;
|
|
101
|
+
searchReportParams?: Partial<SearchReportParams>;
|
|
102
|
+
callback?: (item: ReportItemProps) => void;
|
|
103
|
+
children?: ReactNode;
|
|
104
|
+
};
|
|
105
|
+
interface ReportItemPropsInner {
|
|
106
|
+
id: string;
|
|
107
|
+
reportName: string;
|
|
108
|
+
reportPath: string;
|
|
109
|
+
profilePrefix: string;
|
|
110
|
+
members: Array<{
|
|
111
|
+
original_id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
id: number;
|
|
114
|
+
variant: string;
|
|
115
|
+
image: {
|
|
116
|
+
src: string;
|
|
117
|
+
alt: string;
|
|
118
|
+
};
|
|
119
|
+
}>;
|
|
120
|
+
href: string;
|
|
121
|
+
value: string;
|
|
122
|
+
}
|
|
123
|
+
type ReportItemProps = ReportItemPropsInner;
|
|
124
|
+
/**
|
|
125
|
+
* React component for rendering an inline search autocomplete
|
|
126
|
+
*/
|
|
127
|
+
declare function BespokeSearch({ locale, profilePrefix, autocompleteProps, tooltipProps, tooltipText, searchReportParams, callback, children }: BespokeSearchProps): react_jsx_runtime.JSX.Element;
|
|
128
|
+
|
|
129
|
+
export { BespokeSearch as B, type ExploreTranslations as E, type ReportTileProps as R, type ReportItemProps as a, ExploreProvider as b, useExplore as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SearchUsersParams, U as UpdateUserParams } from './types-
|
|
1
|
+
import { S as SearchUsersParams, U as UpdateUserParams } from './types-WI9fSG9b.mjs';
|
|
2
2
|
import { User, DefaultSession, NextAuthOptions } from 'next-auth';
|
|
3
3
|
import { SessionContextValue } from 'next-auth/react';
|
|
4
4
|
|
package/dist/auth.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { B as BespokeUserInfo, a as BespokeUserData } from './auth-
|
|
3
|
-
export { e as BespokeAuthOptions, c as BespokeRole, S as BespokeSearchUserResult, d as BespokeUserProfile, C as CMS_ROLES, b as addRoleTypes } from './auth-
|
|
2
|
+
import { B as BespokeUserInfo, a as BespokeUserData } from './auth-D3PWImeZ.mjs';
|
|
3
|
+
export { e as BespokeAuthOptions, c as BespokeRole, S as BespokeSearchUserResult, d as BespokeUserProfile, C as CMS_ROLES, b as addRoleTypes } from './auth-D3PWImeZ.mjs';
|
|
4
4
|
import { UseSessionOptions } from 'next-auth/react';
|
|
5
5
|
export { SessionProvider as BespokeUserProvider } from 'next-auth/react';
|
|
6
6
|
import { ButtonProps, MenuItemProps, MenuProps } from '@mantine/core';
|
|
7
|
-
export { S as BespokeSearchUsersParams, U as BespokeUpdateUserParams } from './types-
|
|
7
|
+
export { S as BespokeSearchUsersParams, U as BespokeUpdateUserParams } from './types-WI9fSG9b.mjs';
|
|
8
8
|
import 'next-auth';
|
|
9
9
|
import 'sequelize';
|
|
10
10
|
|
package/dist/explore.d.mts
CHANGED
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { FC, ReactElement, ReactNode } from 'react';
|
|
3
|
-
import { E as ExploreTranslations } from './
|
|
4
|
-
export {
|
|
5
|
-
import { ActionIconProps, ModalProps, TooltipProps
|
|
6
|
-
import
|
|
3
|
+
import { E as ExploreTranslations, R as ReportTileProps } from './Search-C-9ALKJo.mjs';
|
|
4
|
+
export { b as BespokeExploreProvider, a as BespokeReportItemProps, B as BespokeSearch, u as useBespokeExplore } from './Search-C-9ALKJo.mjs';
|
|
5
|
+
import { ActionIconProps, ModalProps, TooltipProps } from '@mantine/core';
|
|
6
|
+
import './types-WI9fSG9b.mjs';
|
|
7
7
|
import 'sequelize';
|
|
8
8
|
|
|
9
|
-
interface ReportTileProps {
|
|
10
|
-
reportId: string;
|
|
11
|
-
reportName: string;
|
|
12
|
-
members: Array<{
|
|
13
|
-
original_id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
id: number;
|
|
16
|
-
variant: string;
|
|
17
|
-
variant_id: number;
|
|
18
|
-
dimension: string;
|
|
19
|
-
dimension_id: number;
|
|
20
|
-
image: {
|
|
21
|
-
src: string;
|
|
22
|
-
alt: string;
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
href: string;
|
|
26
|
-
onClick: (e: React.MouseEvent) => void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
9
|
type BespokeExploreProps = {
|
|
30
10
|
locale?: string;
|
|
31
11
|
profilePrefix: string;
|
|
@@ -57,43 +37,4 @@ type BespokeExploreModalProps = {
|
|
|
57
37
|
*/
|
|
58
38
|
declare function BespokeExploreModal({ exploreProps, icon, actionIconProps, modalProps, tooltipProps, tooltipText, showIcon, showTooltip, children }: BespokeExploreModalProps): react_jsx_runtime.JSX.Element;
|
|
59
39
|
|
|
60
|
-
|
|
61
|
-
locale: string;
|
|
62
|
-
profilePrefix: string;
|
|
63
|
-
autocompleteProps?: Partial<AutocompleteProps & {
|
|
64
|
-
searchConfig: {
|
|
65
|
-
searchLimit?: number;
|
|
66
|
-
queryThreshold?: number;
|
|
67
|
-
};
|
|
68
|
-
}> | Record<string, never>;
|
|
69
|
-
tooltipProps?: Partial<TooltipProps>;
|
|
70
|
-
tooltipText?: string;
|
|
71
|
-
searchReportParams?: Partial<SearchReportParams>;
|
|
72
|
-
callback?: (item: ReportItemProps) => void;
|
|
73
|
-
children?: ReactNode;
|
|
74
|
-
};
|
|
75
|
-
interface ReportItemPropsInner {
|
|
76
|
-
id: string;
|
|
77
|
-
reportName: string;
|
|
78
|
-
reportPath: string;
|
|
79
|
-
profilePrefix: string;
|
|
80
|
-
members: Array<{
|
|
81
|
-
original_id: string;
|
|
82
|
-
name: string;
|
|
83
|
-
id: number;
|
|
84
|
-
variant: string;
|
|
85
|
-
image: {
|
|
86
|
-
src: string;
|
|
87
|
-
alt: string;
|
|
88
|
-
};
|
|
89
|
-
}>;
|
|
90
|
-
href: string;
|
|
91
|
-
value: string;
|
|
92
|
-
}
|
|
93
|
-
type ReportItemProps = ReportItemPropsInner;
|
|
94
|
-
/**
|
|
95
|
-
* React component for rendering an inline search autocomplete
|
|
96
|
-
*/
|
|
97
|
-
declare function BespokeSearch({ locale, profilePrefix, autocompleteProps, tooltipProps, tooltipText, searchReportParams, callback, children }: BespokeSearchProps): react_jsx_runtime.JSX.Element;
|
|
98
|
-
|
|
99
|
-
export { BespokeExplore, BespokeExploreModal, type ReportItemProps as BespokeReportItemProps, BespokeSearch };
|
|
40
|
+
export { BespokeExplore, BespokeExploreModal, ReportTileProps as BespokeReportTileProps };
|