@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.
@@ -1,8 +1,8 @@
1
- import { R as RecordsKey, A as AppThunk, a as ReadMembersResult, V as ValidateVariantSlugResponse, b as RegenerateSearchResponse, c as ReadMembersParams, d as ReadMembersResponse, S as SearchMemberParams, e as SearchMemberResponse, P as ProxyRequestParams, f as AppDispatch, g as AppState } from './store-OTdXHiCJ.mjs';
2
- export { s as storeWrapper } from './store-OTdXHiCJ.mjs';
1
+ import { R as RecordsKey, A as AppThunk, a as ReadMembersResult, V as ValidateVariantSlugResponse, b as RegenerateSearchResponse, c as ReadMembersParams, d as ReadMembersResponse, S as SearchMemberParams, e as SearchMemberResponse, P as ProxyRequestParams, f as AppDispatch, g as AppState } from './store-D5N14riO.mjs';
2
+ export { s as storeWrapper } from './store-D5N14riO.mjs';
3
3
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
4
- import { D as DataSource, A as AnyBlock, R as Result, b as AnyNestedBlock, N as NestedDimension, F as Formatter, c as AnyReport, d as AnyNestedReport, e as Section, f as NestedSection, V as Variant, g as DeleteParams, h as ReadParams, i as Dimension, a as SearchReportParams, j as SearchReportResponse, k as ReadMetadataParams, l as ReadMetadataResponse, S as SearchUsersParams, U as UpdateUserParams, m as UpdateMyDataParams, n as ReadPrivateBlocksParams, o as ReadPrivateBlocksResponse, p as RevalidateUrlRequest, q as RevalidateUrlResponse, r as RevalidateReportRequest, s as RevalidateReportResponse, t as ReadEnvSecretsResponse } from './types-LuKMHltU.mjs';
5
- import { d as BespokeUserProfile } from './auth-Bovg1V2h.mjs';
4
+ import { D as DataSource, A as AnyBlock, R as Result, a as AnyNestedBlock, N as NestedDimension, F as Formatter, b as AnyReport, c as AnyNestedReport, d as Section, e as NestedSection, V as Variant, f as DeleteParams, g as ReadParams, h as Dimension, i as SearchReportParams, j as SearchReportResponse, k as ReadMetadataParams, l as ReadMetadataResponse, S as SearchUsersParams, U as UpdateUserParams, m as UpdateMyDataParams, n as ReadPrivateBlocksParams, o as ReadPrivateBlocksResponse, p as RevalidateUrlRequest, q as RevalidateUrlResponse, r as RevalidateReportRequest, s as RevalidateReportResponse, t as ReadEnvSecretsResponse } from './types-WI9fSG9b.mjs';
5
+ import { d as BespokeUserProfile } from './auth-D3PWImeZ.mjs';
6
6
  import { TypedUseSelectorHook } from 'react-redux';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import 'next/app';
package/dist/report.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { E as ExploreTranslations } from './ExploreProvider-Gev_cui7.mjs';
3
- import './auth-Bovg1V2h.mjs';
2
+ import { E as ExploreTranslations, a as ReportItemProps, R as ReportTileProps } from './Search-C-9ALKJo.mjs';
3
+ import './auth-D3PWImeZ.mjs';
4
4
  import { MRT_Localization } from 'mantine-react-table';
5
5
  import { ReactNode } from 'react';
6
6
  import { ModalProps, AutocompleteProps } from '@mantine/core';
7
- import './types-LuKMHltU.mjs';
7
+ import './types-WI9fSG9b.mjs';
8
8
  import 'sequelize';
9
9
  import 'next-auth';
10
10
  import 'next-auth/react';
@@ -102,12 +102,12 @@ interface ReportTranslations {
102
102
  }
103
103
 
104
104
  interface BespokeComponentsType {
105
- SearchResultItem?: React.FC;
106
- ExploreCard?: React.FC;
105
+ SearchResultItem?: React.ComponentType<ReportItemProps>;
106
+ ExploreCard?: React.FC<ReportTileProps>;
107
107
  FallbackComponent?: React.FC<{
108
108
  block: any;
109
109
  }>;
110
- PdfSectionPanel?: (state: any) => React.ReactElement;
110
+ PdfSectionPanel?: (state: PdfSectionSelectorPanelProps) => React.ReactElement;
111
111
  SearchModalProps?: Partial<ModalProps>;
112
112
  SearchFieldProps?: Partial<AutocompleteProps>;
113
113
  }
@@ -129,4 +129,4 @@ interface BespokeRendererProps {
129
129
  */
130
130
  declare function BespokeRenderer({ className, pathSegmentsKey, translations, components, buildTime, siteProps, profilePrefix, loader, sectionLoader, mode, }: BespokeRendererProps): react_jsx_runtime.JSX.Element;
131
131
 
132
- export { BespokeRenderer, type BespokeRendererProps, type ReportTranslations as BespokeReportTranslations, type PdfSectionSelectorPanelProps };
132
+ export { type BespokeComponentsType, BespokeRenderer, type BespokeRendererProps, type ReportTranslations as BespokeReportTranslations, type PdfSectionSelectorPanelProps };
package/dist/server.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { Session, NextAuthOptions, AuthOptions } from 'next-auth';
2
2
  import * as next from 'next';
3
3
  import { NextApiRequest, NextApiResponse, NextApiHandler, GetServerSidePropsContext, GetStaticPathsResult, GetStaticPaths, GetStaticProps, GetServerSideProps } from 'next';
4
- import { e as BespokeAuthOptions } from './auth-Bovg1V2h.mjs';
5
- import { h as AppStore } from './store-OTdXHiCJ.mjs';
6
- export { i as dbApiFactory, u as useDatabaseApi } from './store-OTdXHiCJ.mjs';
4
+ import { e as BespokeAuthOptions } from './auth-D3PWImeZ.mjs';
5
+ import { h as AppStore } from './store-D5N14riO.mjs';
6
+ export { i as dbApiFactory, u as useDatabaseApi } from './store-D5N14riO.mjs';
7
7
  import * as querystring from 'querystring';
8
- export { v as ReportsDB } from './types-LuKMHltU.mjs';
8
+ export { v as ReportsDB } from './types-WI9fSG9b.mjs';
9
9
  import 'next-auth/react';
10
10
  import 'next/app';
11
11
  import 'next-redux-wrapper';
@@ -2,8 +2,8 @@ import * as next_app from 'next/app';
2
2
  import * as next from 'next';
3
3
  import * as querystring from 'querystring';
4
4
  import * as next_redux_wrapper from 'next-redux-wrapper';
5
- import { w as SearchAttributes, x as SearchContentAttributes, y as ReportAttributes, z as DimensionAttributes, B as VariantAttributes, C as SearchContentModel, I as ImageModel, v as ReportsDB, a as SearchReportParams, R as Result, j as SearchReportResponse, k as ReadMetadataParams, l as ReadMetadataResponse, m as UpdateMyDataParams, r as RevalidateReportRequest, s as RevalidateReportResponse, p as RevalidateUrlRequest, q as RevalidateUrlResponse, E as InternalReadPrivateBlocksParams, o as ReadPrivateBlocksResponse, t as ReadEnvSecretsResponse, G as CreateMethod, H as DeleteMethod, J as ReadMethod, K as UpdateMethod, L as CreateBulkMethod, M as UpdateBulkMethod, O as UpdateMemberParams, P as UpdateMemberResponse, d as AnyNestedReport, Q as NormalizedEntityMap, T as NestedEntityMap } from './types-LuKMHltU.mjs';
6
- import { e as BespokeAuthOptions } from './auth-Bovg1V2h.mjs';
5
+ import { w as SearchAttributes, x as SearchContentAttributes, y as ReportAttributes, z as DimensionAttributes, B as VariantAttributes, C as SearchContentModel, I as ImageModel, v as ReportsDB, i as SearchReportParams, R as Result, j as SearchReportResponse, k as ReadMetadataParams, l as ReadMetadataResponse, m as UpdateMyDataParams, r as RevalidateReportRequest, s as RevalidateReportResponse, p as RevalidateUrlRequest, q as RevalidateUrlResponse, E as InternalReadPrivateBlocksParams, o as ReadPrivateBlocksResponse, t as ReadEnvSecretsResponse, G as CreateMethod, H as DeleteMethod, J as ReadMethod, K as UpdateMethod, L as CreateBulkMethod, M as UpdateBulkMethod, O as UpdateMemberParams, P as UpdateMemberResponse, c as AnyNestedReport, Q as NormalizedEntityMap, T as NestedEntityMap } from './types-WI9fSG9b.mjs';
6
+ import { e as BespokeAuthOptions } from './auth-D3PWImeZ.mjs';
7
7
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
8
8
  import { ThunkAction, Action } from '@reduxjs/toolkit';
9
9
  import * as immer from 'immer';
@@ -844,4 +844,4 @@ interface ReadEnvSecretsResponse {
844
844
  };
845
845
  }
846
846
 
847
- export { type AnyBlock as A, type VariantAttributes as B, SearchContentModel as C, type DataSource as D, type InternalReadPrivateBlocksParams as E, type Formatter as F, type CreateMethod as G, type DeleteMethod as H, ImageModel as I, type ReadMethod as J, type UpdateMethod as K, type CreateBulkMethod as L, type UpdateBulkMethod as M, type NestedDimension as N, type UpdateMemberParams as O, type UpdateMemberResponse as P, type NormalizedEntityMap as Q, type Result as R, type SearchUsersParams as S, type NestedEntityMap as T, type UpdateUserParams as U, type Variant as V, type SearchReportParams as a, type AnyNestedBlock as b, type AnyReport as c, type AnyNestedReport as d, type Section as e, type NestedSection as f, type DeleteParams as g, type ReadParams as h, type Dimension as i, type SearchReportResponse as j, type ReadMetadataParams as k, type ReadMetadataResponse as l, type UpdateMyDataParams as m, type ReadPrivateBlocksParams as n, type ReadPrivateBlocksResponse as o, type RevalidateUrlRequest as p, type RevalidateUrlResponse as q, type RevalidateReportRequest as r, type RevalidateReportResponse as s, type ReadEnvSecretsResponse as t, type SearchReportItem as u, type ReportsDB as v, type SearchAttributes as w, type SearchContentAttributes as x, type ReportAttributes as y, type DimensionAttributes as z };
847
+ export { type AnyBlock as A, type VariantAttributes as B, SearchContentModel as C, type DataSource as D, type InternalReadPrivateBlocksParams as E, type Formatter as F, type CreateMethod as G, type DeleteMethod as H, ImageModel as I, type ReadMethod as J, type UpdateMethod as K, type CreateBulkMethod as L, type UpdateBulkMethod as M, type NestedDimension as N, type UpdateMemberParams as O, type UpdateMemberResponse as P, type NormalizedEntityMap as Q, type Result as R, type SearchUsersParams as S, type NestedEntityMap as T, type UpdateUserParams as U, type Variant as V, type AnyNestedBlock as a, type AnyReport as b, type AnyNestedReport as c, type Section as d, type NestedSection as e, type DeleteParams as f, type ReadParams as g, type Dimension as h, type SearchReportParams as i, type SearchReportResponse as j, type ReadMetadataParams as k, type ReadMetadataResponse as l, type UpdateMyDataParams as m, type ReadPrivateBlocksParams as n, type ReadPrivateBlocksResponse as o, type RevalidateUrlRequest as p, type RevalidateUrlResponse as q, type RevalidateReportRequest as r, type RevalidateReportResponse as s, type ReadEnvSecretsResponse as t, type SearchReportItem as u, type ReportsDB as v, type SearchAttributes as w, type SearchContentAttributes as x, type ReportAttributes as y, type DimensionAttributes as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawheel/bespoke",
3
- "version": "1.0.0-rc.19",
3
+ "version": "1.0.0-rc.20",
4
4
  "description": "Content management system for creating automated data reports",
5
5
  "exports": {
6
6
  ".": {
@@ -190,4 +190,4 @@
190
190
  "@mantine/dates": "^8.0.0"
191
191
  }
192
192
  }
193
- }
193
+ }