@geowiki/core 0.16.9-dev.3 → 0.16.9-dev.5
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/index.d.mts +179 -7
- package/dist/index.d.ts +179 -7
- package/dist/index.js +412 -2
- package/dist/index.mjs +397 -2
- package/package.json +5 -7
package/dist/index.d.mts
CHANGED
|
@@ -6,12 +6,11 @@ import * as _geowiki_api_proxy from '@geowiki/api-proxy';
|
|
|
6
6
|
import { ApplicationConfigurationDto, ResourceFilterInput, CurrentUserDto, EmailSettingsDto, GetFeatureListResultDto, GetPermissionListResultDto, ProfileDto, CountryDto, FileDto, FarmerClusterNewsDto, LocationDto } from '@geowiki/api-proxy';
|
|
7
7
|
import * as _geowiki_cms_proxy from '@geowiki/cms-proxy';
|
|
8
8
|
import { ClusterFilterSettingsItemDto, ConfigSettingsItemDto, GeoWikiSettingsItemDto, IntroTourSettingsItemDto, PublicationSettingsItemDto, MapSettingsItemDto, FundingSettingsItemDto, FooterSettingsItemDto, MenuItemDto, MapMenuItemItemDto, LayerItemDto, PageItemDto } from '@geowiki/cms-proxy';
|
|
9
|
-
import
|
|
9
|
+
import * as react from 'react';
|
|
10
|
+
import react__default, { MutableRefObject, ComponentType, ReactNode, ImgHTMLAttributes, AnchorHTMLAttributes, RefAttributes } from 'react';
|
|
10
11
|
import GeoJSON from 'geojson';
|
|
11
12
|
import * as zustand from 'zustand';
|
|
12
13
|
import * as zustand_vanilla from 'zustand/vanilla';
|
|
13
|
-
import { I18n } from 'next-localization';
|
|
14
|
-
import { GetServerSidePropsContext } from 'next';
|
|
15
14
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
16
15
|
|
|
17
16
|
declare const easing: number[];
|
|
@@ -911,7 +910,11 @@ type Store = {
|
|
|
911
910
|
};
|
|
912
911
|
declare const useBasfStore: zustand.UseBoundStore<zustand.StoreApi<Store>>;
|
|
913
912
|
|
|
914
|
-
|
|
913
|
+
type I18nLike = {
|
|
914
|
+
locale: (locale?: string) => string;
|
|
915
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
916
|
+
};
|
|
917
|
+
declare const i18n: I18nLike;
|
|
915
918
|
declare const getHtmlElementFromReactNode: (node: React.ReactNode) => HTMLDivElement;
|
|
916
919
|
declare const classNames: (...classes: any) => any;
|
|
917
920
|
declare function getButtonAppearance(type: any, background: any): "dark" | "white" | "dark-outline" | "white-outline";
|
|
@@ -1136,6 +1139,12 @@ declare const CLUSTER_ACTIVITY_STATUS: {
|
|
|
1136
1139
|
label: string;
|
|
1137
1140
|
}[];
|
|
1138
1141
|
|
|
1142
|
+
type PagePropsContext = {
|
|
1143
|
+
query: {
|
|
1144
|
+
slug?: string | string[] | undefined;
|
|
1145
|
+
[key: string]: string | string[] | undefined;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1139
1148
|
declare const getGeoWikiSettings: () => Promise<GeoWikiSettingsItemDto>;
|
|
1140
1149
|
declare const getDefaultSettings: () => Promise<DefaultSettings>;
|
|
1141
1150
|
declare const getMenus: (displayName: string) => Promise<MenuItemDto>;
|
|
@@ -1143,7 +1152,7 @@ declare const getPageContent: (displayName: string) => Promise<PageItemDto>;
|
|
|
1143
1152
|
declare const getContentWithTypeAndDisplayName: (contentType: string, displayName: string) => Promise<_geowiki_cms_proxy.QueriesItemsDto>;
|
|
1144
1153
|
declare const getContentWithSlug: (slug: string) => Promise<any>;
|
|
1145
1154
|
declare const getContentsWithType: (contentType: string) => Promise<any>;
|
|
1146
|
-
declare const getPageProps: (ctx:
|
|
1155
|
+
declare const getPageProps: (ctx: PagePropsContext) => Promise<{
|
|
1147
1156
|
props: {
|
|
1148
1157
|
page: PageItemDto;
|
|
1149
1158
|
};
|
|
@@ -1169,7 +1178,7 @@ interface SessionContextValue {
|
|
|
1169
1178
|
}
|
|
1170
1179
|
declare const SESSION_QUERY_KEY: readonly ["geowiki-session"];
|
|
1171
1180
|
declare function SessionProvider({ children, session: initialSession, onSessionChange, }: {
|
|
1172
|
-
children:
|
|
1181
|
+
children: react__default.ReactNode;
|
|
1173
1182
|
session?: ClientSession | null;
|
|
1174
1183
|
onSessionChange?: (session: ClientSession | null) => void;
|
|
1175
1184
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1390,4 +1399,167 @@ declare const QueryNames: {
|
|
|
1390
1399
|
GetHosts: string;
|
|
1391
1400
|
};
|
|
1392
1401
|
|
|
1393
|
-
|
|
1402
|
+
type ParsedUrlQuery = Record<string, string | string[] | undefined>;
|
|
1403
|
+
type RouteUrlObject = {
|
|
1404
|
+
pathname?: string;
|
|
1405
|
+
query?: ParsedUrlQuery | Record<string, string | string[] | number | boolean | undefined | null>;
|
|
1406
|
+
hash?: string;
|
|
1407
|
+
};
|
|
1408
|
+
type Url = string | RouteUrlObject;
|
|
1409
|
+
type TransitionOptions = {
|
|
1410
|
+
shallow?: boolean;
|
|
1411
|
+
locale?: string | false;
|
|
1412
|
+
scroll?: boolean;
|
|
1413
|
+
};
|
|
1414
|
+
type RouterAdapter = {
|
|
1415
|
+
pathname: string;
|
|
1416
|
+
asPath: string;
|
|
1417
|
+
query: ParsedUrlQuery;
|
|
1418
|
+
locale?: string;
|
|
1419
|
+
locales?: readonly string[];
|
|
1420
|
+
defaultLocale?: string;
|
|
1421
|
+
isReady: boolean;
|
|
1422
|
+
push: (url: Url, as?: Url, options?: TransitionOptions) => Promise<boolean>;
|
|
1423
|
+
replace: (url: Url, as?: Url, options?: TransitionOptions) => Promise<boolean>;
|
|
1424
|
+
back: () => void;
|
|
1425
|
+
forward?: () => void;
|
|
1426
|
+
reload: () => void;
|
|
1427
|
+
prefetch?: (url: string) => Promise<void> | void;
|
|
1428
|
+
events?: unknown;
|
|
1429
|
+
};
|
|
1430
|
+
type NavigationRouterAdapter = {
|
|
1431
|
+
push: (href: string, options?: {
|
|
1432
|
+
scroll?: boolean;
|
|
1433
|
+
}) => void;
|
|
1434
|
+
replace: (href: string, options?: {
|
|
1435
|
+
scroll?: boolean;
|
|
1436
|
+
}) => void;
|
|
1437
|
+
back: () => void;
|
|
1438
|
+
forward: () => void;
|
|
1439
|
+
refresh: () => void;
|
|
1440
|
+
prefetch: (href: string) => void;
|
|
1441
|
+
};
|
|
1442
|
+
type SearchParamsAdapter = URLSearchParams;
|
|
1443
|
+
type LinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & {
|
|
1444
|
+
href: Url;
|
|
1445
|
+
as?: Url;
|
|
1446
|
+
replace?: boolean;
|
|
1447
|
+
scroll?: boolean;
|
|
1448
|
+
shallow?: boolean;
|
|
1449
|
+
passHref?: boolean;
|
|
1450
|
+
prefetch?: boolean;
|
|
1451
|
+
locale?: string | false;
|
|
1452
|
+
legacyBehavior?: boolean;
|
|
1453
|
+
children?: ReactNode;
|
|
1454
|
+
} & RefAttributes<HTMLAnchorElement>;
|
|
1455
|
+
type LinkComponent = ComponentType<LinkProps>;
|
|
1456
|
+
type ImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "alt" | "width" | "height" | "loading" | "ref" | "placeholder"> & {
|
|
1457
|
+
src: string | {
|
|
1458
|
+
src: string;
|
|
1459
|
+
width?: number;
|
|
1460
|
+
height?: number;
|
|
1461
|
+
};
|
|
1462
|
+
alt: string;
|
|
1463
|
+
width?: number | `${number}`;
|
|
1464
|
+
height?: number | `${number}`;
|
|
1465
|
+
fill?: boolean;
|
|
1466
|
+
sizes?: string;
|
|
1467
|
+
quality?: number;
|
|
1468
|
+
priority?: boolean;
|
|
1469
|
+
loading?: "lazy" | "eager";
|
|
1470
|
+
placeholder?: string;
|
|
1471
|
+
blurDataURL?: string;
|
|
1472
|
+
unoptimized?: boolean;
|
|
1473
|
+
/** Legacy next/image v12 props — accepted for backwards-compat with consumer code. */
|
|
1474
|
+
layout?: string;
|
|
1475
|
+
objectFit?: string;
|
|
1476
|
+
objectPosition?: string;
|
|
1477
|
+
onLoadingComplete?: (img: HTMLImageElement) => void;
|
|
1478
|
+
};
|
|
1479
|
+
type ImageComponent = ComponentType<ImageProps>;
|
|
1480
|
+
type ScriptProps = {
|
|
1481
|
+
src?: string;
|
|
1482
|
+
id?: string;
|
|
1483
|
+
strategy?: "afterInteractive" | "beforeInteractive" | "lazyOnload" | "worker";
|
|
1484
|
+
onLoad?: () => void;
|
|
1485
|
+
onReady?: () => void;
|
|
1486
|
+
onError?: (e: unknown) => void;
|
|
1487
|
+
children?: ReactNode;
|
|
1488
|
+
async?: boolean;
|
|
1489
|
+
defer?: boolean;
|
|
1490
|
+
type?: string;
|
|
1491
|
+
nonce?: string;
|
|
1492
|
+
};
|
|
1493
|
+
type ScriptComponent = ComponentType<ScriptProps>;
|
|
1494
|
+
type HeadComponent = ComponentType<{
|
|
1495
|
+
children?: ReactNode;
|
|
1496
|
+
}>;
|
|
1497
|
+
type DynamicOptions = {
|
|
1498
|
+
ssr?: boolean;
|
|
1499
|
+
loading?: ComponentType;
|
|
1500
|
+
suspense?: boolean;
|
|
1501
|
+
};
|
|
1502
|
+
type DynamicLoader<P = unknown> = () => Promise<ComponentType<P> | {
|
|
1503
|
+
default: ComponentType<P>;
|
|
1504
|
+
}>;
|
|
1505
|
+
type DynamicAdapter = <P = unknown>(loader: DynamicLoader<P>, options?: DynamicOptions) => ComponentType<P>;
|
|
1506
|
+
type ThemeAdapter = {
|
|
1507
|
+
theme?: string;
|
|
1508
|
+
resolvedTheme?: string;
|
|
1509
|
+
setTheme: (theme: string) => void;
|
|
1510
|
+
themes?: string[];
|
|
1511
|
+
systemTheme?: string;
|
|
1512
|
+
};
|
|
1513
|
+
type I18nAdapter = {
|
|
1514
|
+
locale: string;
|
|
1515
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
1516
|
+
};
|
|
1517
|
+
type FrameworkAdapters = {
|
|
1518
|
+
Link: LinkComponent;
|
|
1519
|
+
Image: ImageComponent;
|
|
1520
|
+
Script: ScriptComponent;
|
|
1521
|
+
Head: HeadComponent;
|
|
1522
|
+
useRouter: () => RouterAdapter;
|
|
1523
|
+
useNavigationRouter: () => NavigationRouterAdapter;
|
|
1524
|
+
useSearchParams: () => SearchParamsAdapter;
|
|
1525
|
+
useTheme: () => ThemeAdapter;
|
|
1526
|
+
useI18n: () => I18nAdapter;
|
|
1527
|
+
dynamic: DynamicAdapter;
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
type FrameworkProviderProps = {
|
|
1531
|
+
adapters: Partial<FrameworkAdapters>;
|
|
1532
|
+
children: ReactNode;
|
|
1533
|
+
};
|
|
1534
|
+
declare const FrameworkProvider: ({ adapters, children }: FrameworkProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1535
|
+
declare const useFrameworkAdapters: () => FrameworkAdapters;
|
|
1536
|
+
|
|
1537
|
+
declare const queryToSearchParams: (query: NonNullable<Exclude<Url, string>["query"]> | undefined, target?: URLSearchParams) => URLSearchParams;
|
|
1538
|
+
declare const unwrapDefault: <P>(mod: ComponentType<P> | {
|
|
1539
|
+
default: ComponentType<P>;
|
|
1540
|
+
}) => {
|
|
1541
|
+
default: ComponentType<P>;
|
|
1542
|
+
};
|
|
1543
|
+
declare const DefaultLink: LinkComponent;
|
|
1544
|
+
declare const DefaultImage: ImageComponent;
|
|
1545
|
+
declare const DefaultScript: ScriptComponent;
|
|
1546
|
+
declare const DefaultHead: HeadComponent;
|
|
1547
|
+
declare const useDefaultRouter: () => RouterAdapter;
|
|
1548
|
+
declare const useDefaultNavigationRouter: () => NavigationRouterAdapter;
|
|
1549
|
+
declare const useDefaultSearchParams: () => SearchParamsAdapter;
|
|
1550
|
+
declare const useDefaultTheme: () => ThemeAdapter;
|
|
1551
|
+
declare const useDefaultI18n: () => I18nAdapter;
|
|
1552
|
+
declare const defaultDynamic: DynamicAdapter;
|
|
1553
|
+
|
|
1554
|
+
declare const Link: react.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
1555
|
+
declare const Image: (props: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
1556
|
+
declare const Script: (props: ScriptProps) => react_jsx_runtime.JSX.Element;
|
|
1557
|
+
declare const Head: HeadComponent;
|
|
1558
|
+
declare const useRouter: () => RouterAdapter;
|
|
1559
|
+
declare const useNavigationRouter: () => NavigationRouterAdapter;
|
|
1560
|
+
declare const useSearchParams: () => URLSearchParams;
|
|
1561
|
+
declare const useTheme: () => ThemeAdapter;
|
|
1562
|
+
declare const useI18n: () => I18nAdapter;
|
|
1563
|
+
declare function dynamic<P = unknown>(loader: DynamicLoader<P>, options?: DynamicOptions): ComponentType<P>;
|
|
1564
|
+
|
|
1565
|
+
export { ActivityStatus, AdminMenus, type Alert, AnnotationRequired, type BaseProp, type BasfLayerItem, type BingNewsItem, CLUSTER_ACTIVITY_STATUS, type ClientSession, type ClusterDto, ClusterFunding, ColorArray, ColorArrayCSSClass, type Colormap, type Column, Config, DOTS, DefaultHead, DefaultImage, DefaultLink, DefaultScript, type DefaultSettings, type DisplayItem, type DynamicAdapter, type DynamicLoader, type DynamicOptions, type Entry, FarmingSystem, Features, type FluffyThumbnail, type Font, type FooterSettings, type FrameworkAdapters, FrameworkProvider, type FrameworkProviderProps, type FundingSettings, type GlobalSettings, type Graphic, Head, type HeadComponent, type HostInfo, HostService, HostType, HuntingManagement, type I18nAdapter, Image, type ImageComponent, ImageError, type ImageProps, IsTokenExpired, type LabelPlacement, type Legend, type LegendInfo, type Line, Link, type LinkComponent, type LinkProps, type LinkWithNewTab, LiveStock, type LocationTasks, LookUps, MainAgriculturalAreas, MainCrops, type MainMenu, type MapLayer, type MapSettings, type Menu, type MenuItem, type NavigationRouterAdapter, NewsDefaultImage, type NewsResult, OtherLandscapeElements, type PagePropsContext, type ParsedUrlQuery, Permission, PermissionProvider, type Point, type Policy, type Polygon, type Provider, type ProviderImage, type PurpleThumbnail, QueryConstants, type QueryContext, QueryNames, QuestionnaireType, type Raster, ResourcesMenu, Responsive, type RouteUrlObject, type RouterAdapter, type Rule, SESSION_QUERY_KEY, Script, type ScriptComponent, type ScriptProps, type SearchParamsAdapter, SessionProvider, type SessionStatus, type Sort, StyleType, type SubMenu, type Symbolizer, TaskEventType, TaskState, TaskStatus, TaskStatusColor, type Text, type ThemeAdapter, type TransitionOptions, USER_ROLE, type Url, type UtmResult, type ValueImage, ViewStatus, classNames, configStore, defaultDynamic, delayedSlideInUp, downloadData, downloadJSON, dynamic, easing, findHostInfo, formatUnixDate, getButtonAppearance, getCmsUrlForHost, getContentWithSlug, getContentWithTypeAndDisplayName, getContentsWithType, getDefaultSettings, getGeoWikiSettings, getHostData, getHostFromRequest, getHtmlElementFromReactNode, getMediaUrl, getMenus, getPageContent, getPageProps, getTenantIdForHost, i18n, imageMaxDimension, imageMinDimension, itemVariants, keyStr, listVariants, queryToSearchParams, rgbDataURL, routes, scrollToFirstErrorElement, settingsStore, shimmer, showIntroTour, signIn, signOut, slideInLeft, slideInRight, slideInUp, spring, toBase64, tokenData, trackAuthEvent, trackDownloadEvent, trackMapEvent, trackUmamiEvent, trackUserEvent, triplet, unwrapDefault, useAllNewsFromAllClusters, useApiImage, useApiUrl, useAppConfig, useAssignProjectToUser, useAssignableRoles, useAudience, useBasfStore, useBreadCrumbStore, useCluster, useClusterAllNews, useClusterDescription, useClusterDetails, useClusterFilterSettings, useClusterGetJoinRequests, useClusterGetNews, useClusterGetNewsNextPreviousStatus, useClusterImages, useClusterImagesAndVideos, useClusterLinks, useClusterMapInfo, useClusterNews, useClusterNewsWithId, useClusterOverview, useClusters, useCmsContentWithType, useCmsImage, useCmsUrl, useConfigSettings, useContractStatisticsByUser, useCountries, useCreateHost, useCurrentUser, useDefaultI18n, useDefaultNavigationRouter, useDefaultRouter, useDefaultSearchParams, useDefaultSettings, useDefaultTheme, useDeleteHost, useDimensions, useEmailing, useEvolandBands, useEvolandLabels, useEvolandWmsLayers, useFeature, useFeatures, useFileUpload, useFileUrl, useFilterClusters, useFrameworkAdapters, useGeoWikiSettings, useGetUserProject, useGrantedPolicies, useGroupsInProject, useHost, useHosts, useI18n, useImageUrl, useIntroTourSettings, useIsAdmin, useIsAuthenticated, useIsInRole, useLanguages, useLatestTaskOnLocation, useLayerInfo, useLayerStore, useLocation, useLocationBulkUpload, useLocationsForProject, useLockBodyScroll, useLookUp, useMapMenuItems, useNavigationRouter, useNews, useNewsFromAllClusters, usePagination, usePanelStore, usePermission, usePermissions, useProfile, useProjectDetails, useProjectResultSet, useProjectStatisticsByUser, useProjectUsers, useProjects, useProjectsPointsDownload, usePublicationSettings, useQuestionnaire, useRandomTasksPerLocation, useRenderInfo, useResource, useResourceFilter, useResourceType, useReviewTaskBulkUpload, useRoles, useRouter, useSearchParams, useSession, useTaskAnnotation, useTaskAnswers, useTaskBulkUpload, useTaskComments, useTaskDelete, useTaskMultipleAnnotations, useTaskSavedAnnotations, useTaskStatusList, useTasksPerLocation, useTenants, useTheme, useTopic, useUpdateActiveGroupInProject, useUpdateHost, useUpdateUserDetail, useUserProfileGet, useUserRoles, useUsers };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,12 +6,11 @@ import * as _geowiki_api_proxy from '@geowiki/api-proxy';
|
|
|
6
6
|
import { ApplicationConfigurationDto, ResourceFilterInput, CurrentUserDto, EmailSettingsDto, GetFeatureListResultDto, GetPermissionListResultDto, ProfileDto, CountryDto, FileDto, FarmerClusterNewsDto, LocationDto } from '@geowiki/api-proxy';
|
|
7
7
|
import * as _geowiki_cms_proxy from '@geowiki/cms-proxy';
|
|
8
8
|
import { ClusterFilterSettingsItemDto, ConfigSettingsItemDto, GeoWikiSettingsItemDto, IntroTourSettingsItemDto, PublicationSettingsItemDto, MapSettingsItemDto, FundingSettingsItemDto, FooterSettingsItemDto, MenuItemDto, MapMenuItemItemDto, LayerItemDto, PageItemDto } from '@geowiki/cms-proxy';
|
|
9
|
-
import
|
|
9
|
+
import * as react from 'react';
|
|
10
|
+
import react__default, { MutableRefObject, ComponentType, ReactNode, ImgHTMLAttributes, AnchorHTMLAttributes, RefAttributes } from 'react';
|
|
10
11
|
import GeoJSON from 'geojson';
|
|
11
12
|
import * as zustand from 'zustand';
|
|
12
13
|
import * as zustand_vanilla from 'zustand/vanilla';
|
|
13
|
-
import { I18n } from 'next-localization';
|
|
14
|
-
import { GetServerSidePropsContext } from 'next';
|
|
15
14
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
16
15
|
|
|
17
16
|
declare const easing: number[];
|
|
@@ -911,7 +910,11 @@ type Store = {
|
|
|
911
910
|
};
|
|
912
911
|
declare const useBasfStore: zustand.UseBoundStore<zustand.StoreApi<Store>>;
|
|
913
912
|
|
|
914
|
-
|
|
913
|
+
type I18nLike = {
|
|
914
|
+
locale: (locale?: string) => string;
|
|
915
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
916
|
+
};
|
|
917
|
+
declare const i18n: I18nLike;
|
|
915
918
|
declare const getHtmlElementFromReactNode: (node: React.ReactNode) => HTMLDivElement;
|
|
916
919
|
declare const classNames: (...classes: any) => any;
|
|
917
920
|
declare function getButtonAppearance(type: any, background: any): "dark" | "white" | "dark-outline" | "white-outline";
|
|
@@ -1136,6 +1139,12 @@ declare const CLUSTER_ACTIVITY_STATUS: {
|
|
|
1136
1139
|
label: string;
|
|
1137
1140
|
}[];
|
|
1138
1141
|
|
|
1142
|
+
type PagePropsContext = {
|
|
1143
|
+
query: {
|
|
1144
|
+
slug?: string | string[] | undefined;
|
|
1145
|
+
[key: string]: string | string[] | undefined;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1139
1148
|
declare const getGeoWikiSettings: () => Promise<GeoWikiSettingsItemDto>;
|
|
1140
1149
|
declare const getDefaultSettings: () => Promise<DefaultSettings>;
|
|
1141
1150
|
declare const getMenus: (displayName: string) => Promise<MenuItemDto>;
|
|
@@ -1143,7 +1152,7 @@ declare const getPageContent: (displayName: string) => Promise<PageItemDto>;
|
|
|
1143
1152
|
declare const getContentWithTypeAndDisplayName: (contentType: string, displayName: string) => Promise<_geowiki_cms_proxy.QueriesItemsDto>;
|
|
1144
1153
|
declare const getContentWithSlug: (slug: string) => Promise<any>;
|
|
1145
1154
|
declare const getContentsWithType: (contentType: string) => Promise<any>;
|
|
1146
|
-
declare const getPageProps: (ctx:
|
|
1155
|
+
declare const getPageProps: (ctx: PagePropsContext) => Promise<{
|
|
1147
1156
|
props: {
|
|
1148
1157
|
page: PageItemDto;
|
|
1149
1158
|
};
|
|
@@ -1169,7 +1178,7 @@ interface SessionContextValue {
|
|
|
1169
1178
|
}
|
|
1170
1179
|
declare const SESSION_QUERY_KEY: readonly ["geowiki-session"];
|
|
1171
1180
|
declare function SessionProvider({ children, session: initialSession, onSessionChange, }: {
|
|
1172
|
-
children:
|
|
1181
|
+
children: react__default.ReactNode;
|
|
1173
1182
|
session?: ClientSession | null;
|
|
1174
1183
|
onSessionChange?: (session: ClientSession | null) => void;
|
|
1175
1184
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1390,4 +1399,167 @@ declare const QueryNames: {
|
|
|
1390
1399
|
GetHosts: string;
|
|
1391
1400
|
};
|
|
1392
1401
|
|
|
1393
|
-
|
|
1402
|
+
type ParsedUrlQuery = Record<string, string | string[] | undefined>;
|
|
1403
|
+
type RouteUrlObject = {
|
|
1404
|
+
pathname?: string;
|
|
1405
|
+
query?: ParsedUrlQuery | Record<string, string | string[] | number | boolean | undefined | null>;
|
|
1406
|
+
hash?: string;
|
|
1407
|
+
};
|
|
1408
|
+
type Url = string | RouteUrlObject;
|
|
1409
|
+
type TransitionOptions = {
|
|
1410
|
+
shallow?: boolean;
|
|
1411
|
+
locale?: string | false;
|
|
1412
|
+
scroll?: boolean;
|
|
1413
|
+
};
|
|
1414
|
+
type RouterAdapter = {
|
|
1415
|
+
pathname: string;
|
|
1416
|
+
asPath: string;
|
|
1417
|
+
query: ParsedUrlQuery;
|
|
1418
|
+
locale?: string;
|
|
1419
|
+
locales?: readonly string[];
|
|
1420
|
+
defaultLocale?: string;
|
|
1421
|
+
isReady: boolean;
|
|
1422
|
+
push: (url: Url, as?: Url, options?: TransitionOptions) => Promise<boolean>;
|
|
1423
|
+
replace: (url: Url, as?: Url, options?: TransitionOptions) => Promise<boolean>;
|
|
1424
|
+
back: () => void;
|
|
1425
|
+
forward?: () => void;
|
|
1426
|
+
reload: () => void;
|
|
1427
|
+
prefetch?: (url: string) => Promise<void> | void;
|
|
1428
|
+
events?: unknown;
|
|
1429
|
+
};
|
|
1430
|
+
type NavigationRouterAdapter = {
|
|
1431
|
+
push: (href: string, options?: {
|
|
1432
|
+
scroll?: boolean;
|
|
1433
|
+
}) => void;
|
|
1434
|
+
replace: (href: string, options?: {
|
|
1435
|
+
scroll?: boolean;
|
|
1436
|
+
}) => void;
|
|
1437
|
+
back: () => void;
|
|
1438
|
+
forward: () => void;
|
|
1439
|
+
refresh: () => void;
|
|
1440
|
+
prefetch: (href: string) => void;
|
|
1441
|
+
};
|
|
1442
|
+
type SearchParamsAdapter = URLSearchParams;
|
|
1443
|
+
type LinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & {
|
|
1444
|
+
href: Url;
|
|
1445
|
+
as?: Url;
|
|
1446
|
+
replace?: boolean;
|
|
1447
|
+
scroll?: boolean;
|
|
1448
|
+
shallow?: boolean;
|
|
1449
|
+
passHref?: boolean;
|
|
1450
|
+
prefetch?: boolean;
|
|
1451
|
+
locale?: string | false;
|
|
1452
|
+
legacyBehavior?: boolean;
|
|
1453
|
+
children?: ReactNode;
|
|
1454
|
+
} & RefAttributes<HTMLAnchorElement>;
|
|
1455
|
+
type LinkComponent = ComponentType<LinkProps>;
|
|
1456
|
+
type ImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "alt" | "width" | "height" | "loading" | "ref" | "placeholder"> & {
|
|
1457
|
+
src: string | {
|
|
1458
|
+
src: string;
|
|
1459
|
+
width?: number;
|
|
1460
|
+
height?: number;
|
|
1461
|
+
};
|
|
1462
|
+
alt: string;
|
|
1463
|
+
width?: number | `${number}`;
|
|
1464
|
+
height?: number | `${number}`;
|
|
1465
|
+
fill?: boolean;
|
|
1466
|
+
sizes?: string;
|
|
1467
|
+
quality?: number;
|
|
1468
|
+
priority?: boolean;
|
|
1469
|
+
loading?: "lazy" | "eager";
|
|
1470
|
+
placeholder?: string;
|
|
1471
|
+
blurDataURL?: string;
|
|
1472
|
+
unoptimized?: boolean;
|
|
1473
|
+
/** Legacy next/image v12 props — accepted for backwards-compat with consumer code. */
|
|
1474
|
+
layout?: string;
|
|
1475
|
+
objectFit?: string;
|
|
1476
|
+
objectPosition?: string;
|
|
1477
|
+
onLoadingComplete?: (img: HTMLImageElement) => void;
|
|
1478
|
+
};
|
|
1479
|
+
type ImageComponent = ComponentType<ImageProps>;
|
|
1480
|
+
type ScriptProps = {
|
|
1481
|
+
src?: string;
|
|
1482
|
+
id?: string;
|
|
1483
|
+
strategy?: "afterInteractive" | "beforeInteractive" | "lazyOnload" | "worker";
|
|
1484
|
+
onLoad?: () => void;
|
|
1485
|
+
onReady?: () => void;
|
|
1486
|
+
onError?: (e: unknown) => void;
|
|
1487
|
+
children?: ReactNode;
|
|
1488
|
+
async?: boolean;
|
|
1489
|
+
defer?: boolean;
|
|
1490
|
+
type?: string;
|
|
1491
|
+
nonce?: string;
|
|
1492
|
+
};
|
|
1493
|
+
type ScriptComponent = ComponentType<ScriptProps>;
|
|
1494
|
+
type HeadComponent = ComponentType<{
|
|
1495
|
+
children?: ReactNode;
|
|
1496
|
+
}>;
|
|
1497
|
+
type DynamicOptions = {
|
|
1498
|
+
ssr?: boolean;
|
|
1499
|
+
loading?: ComponentType;
|
|
1500
|
+
suspense?: boolean;
|
|
1501
|
+
};
|
|
1502
|
+
type DynamicLoader<P = unknown> = () => Promise<ComponentType<P> | {
|
|
1503
|
+
default: ComponentType<P>;
|
|
1504
|
+
}>;
|
|
1505
|
+
type DynamicAdapter = <P = unknown>(loader: DynamicLoader<P>, options?: DynamicOptions) => ComponentType<P>;
|
|
1506
|
+
type ThemeAdapter = {
|
|
1507
|
+
theme?: string;
|
|
1508
|
+
resolvedTheme?: string;
|
|
1509
|
+
setTheme: (theme: string) => void;
|
|
1510
|
+
themes?: string[];
|
|
1511
|
+
systemTheme?: string;
|
|
1512
|
+
};
|
|
1513
|
+
type I18nAdapter = {
|
|
1514
|
+
locale: string;
|
|
1515
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
1516
|
+
};
|
|
1517
|
+
type FrameworkAdapters = {
|
|
1518
|
+
Link: LinkComponent;
|
|
1519
|
+
Image: ImageComponent;
|
|
1520
|
+
Script: ScriptComponent;
|
|
1521
|
+
Head: HeadComponent;
|
|
1522
|
+
useRouter: () => RouterAdapter;
|
|
1523
|
+
useNavigationRouter: () => NavigationRouterAdapter;
|
|
1524
|
+
useSearchParams: () => SearchParamsAdapter;
|
|
1525
|
+
useTheme: () => ThemeAdapter;
|
|
1526
|
+
useI18n: () => I18nAdapter;
|
|
1527
|
+
dynamic: DynamicAdapter;
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
type FrameworkProviderProps = {
|
|
1531
|
+
adapters: Partial<FrameworkAdapters>;
|
|
1532
|
+
children: ReactNode;
|
|
1533
|
+
};
|
|
1534
|
+
declare const FrameworkProvider: ({ adapters, children }: FrameworkProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1535
|
+
declare const useFrameworkAdapters: () => FrameworkAdapters;
|
|
1536
|
+
|
|
1537
|
+
declare const queryToSearchParams: (query: NonNullable<Exclude<Url, string>["query"]> | undefined, target?: URLSearchParams) => URLSearchParams;
|
|
1538
|
+
declare const unwrapDefault: <P>(mod: ComponentType<P> | {
|
|
1539
|
+
default: ComponentType<P>;
|
|
1540
|
+
}) => {
|
|
1541
|
+
default: ComponentType<P>;
|
|
1542
|
+
};
|
|
1543
|
+
declare const DefaultLink: LinkComponent;
|
|
1544
|
+
declare const DefaultImage: ImageComponent;
|
|
1545
|
+
declare const DefaultScript: ScriptComponent;
|
|
1546
|
+
declare const DefaultHead: HeadComponent;
|
|
1547
|
+
declare const useDefaultRouter: () => RouterAdapter;
|
|
1548
|
+
declare const useDefaultNavigationRouter: () => NavigationRouterAdapter;
|
|
1549
|
+
declare const useDefaultSearchParams: () => SearchParamsAdapter;
|
|
1550
|
+
declare const useDefaultTheme: () => ThemeAdapter;
|
|
1551
|
+
declare const useDefaultI18n: () => I18nAdapter;
|
|
1552
|
+
declare const defaultDynamic: DynamicAdapter;
|
|
1553
|
+
|
|
1554
|
+
declare const Link: react.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
1555
|
+
declare const Image: (props: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
1556
|
+
declare const Script: (props: ScriptProps) => react_jsx_runtime.JSX.Element;
|
|
1557
|
+
declare const Head: HeadComponent;
|
|
1558
|
+
declare const useRouter: () => RouterAdapter;
|
|
1559
|
+
declare const useNavigationRouter: () => NavigationRouterAdapter;
|
|
1560
|
+
declare const useSearchParams: () => URLSearchParams;
|
|
1561
|
+
declare const useTheme: () => ThemeAdapter;
|
|
1562
|
+
declare const useI18n: () => I18nAdapter;
|
|
1563
|
+
declare function dynamic<P = unknown>(loader: DynamicLoader<P>, options?: DynamicOptions): ComponentType<P>;
|
|
1564
|
+
|
|
1565
|
+
export { ActivityStatus, AdminMenus, type Alert, AnnotationRequired, type BaseProp, type BasfLayerItem, type BingNewsItem, CLUSTER_ACTIVITY_STATUS, type ClientSession, type ClusterDto, ClusterFunding, ColorArray, ColorArrayCSSClass, type Colormap, type Column, Config, DOTS, DefaultHead, DefaultImage, DefaultLink, DefaultScript, type DefaultSettings, type DisplayItem, type DynamicAdapter, type DynamicLoader, type DynamicOptions, type Entry, FarmingSystem, Features, type FluffyThumbnail, type Font, type FooterSettings, type FrameworkAdapters, FrameworkProvider, type FrameworkProviderProps, type FundingSettings, type GlobalSettings, type Graphic, Head, type HeadComponent, type HostInfo, HostService, HostType, HuntingManagement, type I18nAdapter, Image, type ImageComponent, ImageError, type ImageProps, IsTokenExpired, type LabelPlacement, type Legend, type LegendInfo, type Line, Link, type LinkComponent, type LinkProps, type LinkWithNewTab, LiveStock, type LocationTasks, LookUps, MainAgriculturalAreas, MainCrops, type MainMenu, type MapLayer, type MapSettings, type Menu, type MenuItem, type NavigationRouterAdapter, NewsDefaultImage, type NewsResult, OtherLandscapeElements, type PagePropsContext, type ParsedUrlQuery, Permission, PermissionProvider, type Point, type Policy, type Polygon, type Provider, type ProviderImage, type PurpleThumbnail, QueryConstants, type QueryContext, QueryNames, QuestionnaireType, type Raster, ResourcesMenu, Responsive, type RouteUrlObject, type RouterAdapter, type Rule, SESSION_QUERY_KEY, Script, type ScriptComponent, type ScriptProps, type SearchParamsAdapter, SessionProvider, type SessionStatus, type Sort, StyleType, type SubMenu, type Symbolizer, TaskEventType, TaskState, TaskStatus, TaskStatusColor, type Text, type ThemeAdapter, type TransitionOptions, USER_ROLE, type Url, type UtmResult, type ValueImage, ViewStatus, classNames, configStore, defaultDynamic, delayedSlideInUp, downloadData, downloadJSON, dynamic, easing, findHostInfo, formatUnixDate, getButtonAppearance, getCmsUrlForHost, getContentWithSlug, getContentWithTypeAndDisplayName, getContentsWithType, getDefaultSettings, getGeoWikiSettings, getHostData, getHostFromRequest, getHtmlElementFromReactNode, getMediaUrl, getMenus, getPageContent, getPageProps, getTenantIdForHost, i18n, imageMaxDimension, imageMinDimension, itemVariants, keyStr, listVariants, queryToSearchParams, rgbDataURL, routes, scrollToFirstErrorElement, settingsStore, shimmer, showIntroTour, signIn, signOut, slideInLeft, slideInRight, slideInUp, spring, toBase64, tokenData, trackAuthEvent, trackDownloadEvent, trackMapEvent, trackUmamiEvent, trackUserEvent, triplet, unwrapDefault, useAllNewsFromAllClusters, useApiImage, useApiUrl, useAppConfig, useAssignProjectToUser, useAssignableRoles, useAudience, useBasfStore, useBreadCrumbStore, useCluster, useClusterAllNews, useClusterDescription, useClusterDetails, useClusterFilterSettings, useClusterGetJoinRequests, useClusterGetNews, useClusterGetNewsNextPreviousStatus, useClusterImages, useClusterImagesAndVideos, useClusterLinks, useClusterMapInfo, useClusterNews, useClusterNewsWithId, useClusterOverview, useClusters, useCmsContentWithType, useCmsImage, useCmsUrl, useConfigSettings, useContractStatisticsByUser, useCountries, useCreateHost, useCurrentUser, useDefaultI18n, useDefaultNavigationRouter, useDefaultRouter, useDefaultSearchParams, useDefaultSettings, useDefaultTheme, useDeleteHost, useDimensions, useEmailing, useEvolandBands, useEvolandLabels, useEvolandWmsLayers, useFeature, useFeatures, useFileUpload, useFileUrl, useFilterClusters, useFrameworkAdapters, useGeoWikiSettings, useGetUserProject, useGrantedPolicies, useGroupsInProject, useHost, useHosts, useI18n, useImageUrl, useIntroTourSettings, useIsAdmin, useIsAuthenticated, useIsInRole, useLanguages, useLatestTaskOnLocation, useLayerInfo, useLayerStore, useLocation, useLocationBulkUpload, useLocationsForProject, useLockBodyScroll, useLookUp, useMapMenuItems, useNavigationRouter, useNews, useNewsFromAllClusters, usePagination, usePanelStore, usePermission, usePermissions, useProfile, useProjectDetails, useProjectResultSet, useProjectStatisticsByUser, useProjectUsers, useProjects, useProjectsPointsDownload, usePublicationSettings, useQuestionnaire, useRandomTasksPerLocation, useRenderInfo, useResource, useResourceFilter, useResourceType, useReviewTaskBulkUpload, useRoles, useRouter, useSearchParams, useSession, useTaskAnnotation, useTaskAnswers, useTaskBulkUpload, useTaskComments, useTaskDelete, useTaskMultipleAnnotations, useTaskSavedAnnotations, useTaskStatusList, useTasksPerLocation, useTenants, useTheme, useTopic, useUpdateActiveGroupInProject, useUpdateHost, useUpdateUserDetail, useUserProfileGet, useUserRoles, useUsers };
|