@geowiki/core 0.16.9-dev.2 → 0.16.9-dev.21
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 +181 -11
- package/dist/index.d.ts +181 -11
- package/dist/index.js +541 -163
- package/dist/index.mjs +515 -152
- package/package.json +16 -18
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[];
|
|
@@ -185,8 +184,6 @@ declare const QueryConstants: {
|
|
|
185
184
|
GetTaskMultipleAnnotations: string;
|
|
186
185
|
GetTaskSavedAnnotations: string;
|
|
187
186
|
DeleteTask: string;
|
|
188
|
-
GetApiImage: string;
|
|
189
|
-
GetCmsImage: string;
|
|
190
187
|
GetQuestionnaireForProject: string;
|
|
191
188
|
GetTaskAnswers: string;
|
|
192
189
|
UploadTasks: string;
|
|
@@ -507,9 +504,9 @@ declare const useQuestionnaire: (projectId: number) => _tanstack_react_query.Use
|
|
|
507
504
|
declare const useTaskAnswers: (taskId: number) => _tanstack_react_query.UseQueryResult<any[][], Error>;
|
|
508
505
|
declare const useProjectResultSet: (download: boolean, projectId: number, is_geo_json: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
509
506
|
|
|
510
|
-
declare const useApiImage: (imageId: string) =>
|
|
507
|
+
declare const useApiImage: (imageId: string) => string;
|
|
511
508
|
|
|
512
|
-
declare const useCmsImage: (imageId: string) =>
|
|
509
|
+
declare const useCmsImage: (imageId: string) => string;
|
|
513
510
|
|
|
514
511
|
declare const useClusterGetJoinRequests: (clusterId: string) => _tanstack_react_query.UseQueryResult<_geowiki_api_proxy.ClusterMemberDto[], Error>;
|
|
515
512
|
|
|
@@ -911,7 +908,11 @@ type Store = {
|
|
|
911
908
|
};
|
|
912
909
|
declare const useBasfStore: zustand.UseBoundStore<zustand.StoreApi<Store>>;
|
|
913
910
|
|
|
914
|
-
|
|
911
|
+
type I18nLike = {
|
|
912
|
+
locale: (locale?: string) => string;
|
|
913
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
914
|
+
};
|
|
915
|
+
declare const i18n: I18nLike;
|
|
915
916
|
declare const getHtmlElementFromReactNode: (node: React.ReactNode) => HTMLDivElement;
|
|
916
917
|
declare const classNames: (...classes: any) => any;
|
|
917
918
|
declare function getButtonAppearance(type: any, background: any): "dark" | "white" | "dark-outline" | "white-outline";
|
|
@@ -1136,6 +1137,12 @@ declare const CLUSTER_ACTIVITY_STATUS: {
|
|
|
1136
1137
|
label: string;
|
|
1137
1138
|
}[];
|
|
1138
1139
|
|
|
1140
|
+
type PagePropsContext = {
|
|
1141
|
+
query: {
|
|
1142
|
+
slug?: string | string[] | undefined;
|
|
1143
|
+
[key: string]: string | string[] | undefined;
|
|
1144
|
+
};
|
|
1145
|
+
};
|
|
1139
1146
|
declare const getGeoWikiSettings: () => Promise<GeoWikiSettingsItemDto>;
|
|
1140
1147
|
declare const getDefaultSettings: () => Promise<DefaultSettings>;
|
|
1141
1148
|
declare const getMenus: (displayName: string) => Promise<MenuItemDto>;
|
|
@@ -1143,7 +1150,7 @@ declare const getPageContent: (displayName: string) => Promise<PageItemDto>;
|
|
|
1143
1150
|
declare const getContentWithTypeAndDisplayName: (contentType: string, displayName: string) => Promise<_geowiki_cms_proxy.QueriesItemsDto>;
|
|
1144
1151
|
declare const getContentWithSlug: (slug: string) => Promise<any>;
|
|
1145
1152
|
declare const getContentsWithType: (contentType: string) => Promise<any>;
|
|
1146
|
-
declare const getPageProps: (ctx:
|
|
1153
|
+
declare const getPageProps: (ctx: PagePropsContext) => Promise<{
|
|
1147
1154
|
props: {
|
|
1148
1155
|
page: PageItemDto;
|
|
1149
1156
|
};
|
|
@@ -1169,7 +1176,7 @@ interface SessionContextValue {
|
|
|
1169
1176
|
}
|
|
1170
1177
|
declare const SESSION_QUERY_KEY: readonly ["geowiki-session"];
|
|
1171
1178
|
declare function SessionProvider({ children, session: initialSession, onSessionChange, }: {
|
|
1172
|
-
children:
|
|
1179
|
+
children: react__default.ReactNode;
|
|
1173
1180
|
session?: ClientSession | null;
|
|
1174
1181
|
onSessionChange?: (session: ClientSession | null) => void;
|
|
1175
1182
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1390,4 +1397,167 @@ declare const QueryNames: {
|
|
|
1390
1397
|
GetHosts: string;
|
|
1391
1398
|
};
|
|
1392
1399
|
|
|
1393
|
-
|
|
1400
|
+
type ParsedUrlQuery = Record<string, string | string[] | undefined>;
|
|
1401
|
+
type RouteUrlObject = {
|
|
1402
|
+
pathname?: string;
|
|
1403
|
+
query?: ParsedUrlQuery | Record<string, string | string[] | number | boolean | undefined | null>;
|
|
1404
|
+
hash?: string;
|
|
1405
|
+
};
|
|
1406
|
+
type Url = string | RouteUrlObject;
|
|
1407
|
+
type TransitionOptions = {
|
|
1408
|
+
shallow?: boolean;
|
|
1409
|
+
locale?: string | false;
|
|
1410
|
+
scroll?: boolean;
|
|
1411
|
+
};
|
|
1412
|
+
type RouterAdapter = {
|
|
1413
|
+
pathname: string;
|
|
1414
|
+
asPath: string;
|
|
1415
|
+
query: ParsedUrlQuery;
|
|
1416
|
+
locale?: string;
|
|
1417
|
+
locales?: readonly string[];
|
|
1418
|
+
defaultLocale?: string;
|
|
1419
|
+
isReady: boolean;
|
|
1420
|
+
push: (url: Url, as?: Url, options?: TransitionOptions) => Promise<boolean>;
|
|
1421
|
+
replace: (url: Url, as?: Url, options?: TransitionOptions) => Promise<boolean>;
|
|
1422
|
+
back: () => void;
|
|
1423
|
+
forward?: () => void;
|
|
1424
|
+
reload: () => void;
|
|
1425
|
+
prefetch?: (url: string) => Promise<void> | void;
|
|
1426
|
+
events?: unknown;
|
|
1427
|
+
};
|
|
1428
|
+
type NavigationRouterAdapter = {
|
|
1429
|
+
push: (href: string, options?: {
|
|
1430
|
+
scroll?: boolean;
|
|
1431
|
+
}) => void;
|
|
1432
|
+
replace: (href: string, options?: {
|
|
1433
|
+
scroll?: boolean;
|
|
1434
|
+
}) => void;
|
|
1435
|
+
back: () => void;
|
|
1436
|
+
forward: () => void;
|
|
1437
|
+
refresh: () => void;
|
|
1438
|
+
prefetch: (href: string) => void;
|
|
1439
|
+
};
|
|
1440
|
+
type SearchParamsAdapter = URLSearchParams;
|
|
1441
|
+
type LinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & {
|
|
1442
|
+
href: Url;
|
|
1443
|
+
as?: Url;
|
|
1444
|
+
replace?: boolean;
|
|
1445
|
+
scroll?: boolean;
|
|
1446
|
+
shallow?: boolean;
|
|
1447
|
+
passHref?: boolean;
|
|
1448
|
+
prefetch?: boolean;
|
|
1449
|
+
locale?: string | false;
|
|
1450
|
+
legacyBehavior?: boolean;
|
|
1451
|
+
children?: ReactNode;
|
|
1452
|
+
} & RefAttributes<HTMLAnchorElement>;
|
|
1453
|
+
type LinkComponent = ComponentType<LinkProps>;
|
|
1454
|
+
type ImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "alt" | "width" | "height" | "loading" | "ref" | "placeholder"> & {
|
|
1455
|
+
src: string | {
|
|
1456
|
+
src: string;
|
|
1457
|
+
width?: number;
|
|
1458
|
+
height?: number;
|
|
1459
|
+
};
|
|
1460
|
+
alt: string;
|
|
1461
|
+
width?: number | `${number}`;
|
|
1462
|
+
height?: number | `${number}`;
|
|
1463
|
+
fill?: boolean;
|
|
1464
|
+
sizes?: string;
|
|
1465
|
+
quality?: number;
|
|
1466
|
+
priority?: boolean;
|
|
1467
|
+
loading?: "lazy" | "eager";
|
|
1468
|
+
placeholder?: string;
|
|
1469
|
+
blurDataURL?: string;
|
|
1470
|
+
unoptimized?: boolean;
|
|
1471
|
+
/** Legacy next/image v12 props — accepted for backwards-compat with consumer code. */
|
|
1472
|
+
layout?: string;
|
|
1473
|
+
objectFit?: string;
|
|
1474
|
+
objectPosition?: string;
|
|
1475
|
+
onLoadingComplete?: (img: HTMLImageElement) => void;
|
|
1476
|
+
};
|
|
1477
|
+
type ImageComponent = ComponentType<ImageProps>;
|
|
1478
|
+
type ScriptProps = {
|
|
1479
|
+
src?: string;
|
|
1480
|
+
id?: string;
|
|
1481
|
+
strategy?: "afterInteractive" | "beforeInteractive" | "lazyOnload" | "worker";
|
|
1482
|
+
onLoad?: () => void;
|
|
1483
|
+
onReady?: () => void;
|
|
1484
|
+
onError?: (e: unknown) => void;
|
|
1485
|
+
children?: ReactNode;
|
|
1486
|
+
async?: boolean;
|
|
1487
|
+
defer?: boolean;
|
|
1488
|
+
type?: string;
|
|
1489
|
+
nonce?: string;
|
|
1490
|
+
};
|
|
1491
|
+
type ScriptComponent = ComponentType<ScriptProps>;
|
|
1492
|
+
type HeadComponent = ComponentType<{
|
|
1493
|
+
children?: ReactNode;
|
|
1494
|
+
}>;
|
|
1495
|
+
type DynamicOptions = {
|
|
1496
|
+
ssr?: boolean;
|
|
1497
|
+
loading?: ComponentType;
|
|
1498
|
+
suspense?: boolean;
|
|
1499
|
+
};
|
|
1500
|
+
type DynamicLoader<P = unknown> = () => Promise<ComponentType<P> | {
|
|
1501
|
+
default: ComponentType<P>;
|
|
1502
|
+
}>;
|
|
1503
|
+
type DynamicAdapter = <P = unknown>(loader: DynamicLoader<P>, options?: DynamicOptions) => ComponentType<P>;
|
|
1504
|
+
type ThemeAdapter = {
|
|
1505
|
+
theme?: string;
|
|
1506
|
+
resolvedTheme?: string;
|
|
1507
|
+
setTheme: (theme: string) => void;
|
|
1508
|
+
themes?: string[];
|
|
1509
|
+
systemTheme?: string;
|
|
1510
|
+
};
|
|
1511
|
+
type I18nAdapter = {
|
|
1512
|
+
locale: string;
|
|
1513
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
1514
|
+
};
|
|
1515
|
+
type FrameworkAdapters = {
|
|
1516
|
+
Link: LinkComponent;
|
|
1517
|
+
Image: ImageComponent;
|
|
1518
|
+
Script: ScriptComponent;
|
|
1519
|
+
Head: HeadComponent;
|
|
1520
|
+
useRouter: () => RouterAdapter;
|
|
1521
|
+
useNavigationRouter: () => NavigationRouterAdapter;
|
|
1522
|
+
useSearchParams: () => SearchParamsAdapter;
|
|
1523
|
+
useTheme: () => ThemeAdapter;
|
|
1524
|
+
useI18n: () => I18nAdapter;
|
|
1525
|
+
dynamic: DynamicAdapter;
|
|
1526
|
+
};
|
|
1527
|
+
|
|
1528
|
+
type FrameworkProviderProps = {
|
|
1529
|
+
adapters: Partial<FrameworkAdapters>;
|
|
1530
|
+
children: ReactNode;
|
|
1531
|
+
};
|
|
1532
|
+
declare const FrameworkProvider: ({ adapters, children }: FrameworkProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1533
|
+
declare const useFrameworkAdapters: () => FrameworkAdapters;
|
|
1534
|
+
|
|
1535
|
+
declare const queryToSearchParams: (query: NonNullable<Exclude<Url, string>["query"]> | undefined, target?: URLSearchParams) => URLSearchParams;
|
|
1536
|
+
declare const unwrapDefault: <P>(mod: ComponentType<P> | {
|
|
1537
|
+
default: ComponentType<P>;
|
|
1538
|
+
}) => {
|
|
1539
|
+
default: ComponentType<P>;
|
|
1540
|
+
};
|
|
1541
|
+
declare const DefaultLink: LinkComponent;
|
|
1542
|
+
declare const DefaultImage: ImageComponent;
|
|
1543
|
+
declare const DefaultScript: ScriptComponent;
|
|
1544
|
+
declare const DefaultHead: HeadComponent;
|
|
1545
|
+
declare const useDefaultRouter: () => RouterAdapter;
|
|
1546
|
+
declare const useDefaultNavigationRouter: () => NavigationRouterAdapter;
|
|
1547
|
+
declare const useDefaultSearchParams: () => SearchParamsAdapter;
|
|
1548
|
+
declare const useDefaultTheme: () => ThemeAdapter;
|
|
1549
|
+
declare const useDefaultI18n: () => I18nAdapter;
|
|
1550
|
+
declare const defaultDynamic: DynamicAdapter;
|
|
1551
|
+
|
|
1552
|
+
declare const Link: react.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
1553
|
+
declare const Image: (props: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
1554
|
+
declare const Script: (props: ScriptProps) => react_jsx_runtime.JSX.Element;
|
|
1555
|
+
declare const Head: HeadComponent;
|
|
1556
|
+
declare const useRouter: () => RouterAdapter;
|
|
1557
|
+
declare const useNavigationRouter: () => NavigationRouterAdapter;
|
|
1558
|
+
declare const useSearchParams: () => URLSearchParams;
|
|
1559
|
+
declare const useTheme: () => ThemeAdapter;
|
|
1560
|
+
declare const useI18n: () => I18nAdapter;
|
|
1561
|
+
declare function dynamic<P = unknown>(loader: DynamicLoader<P>, options?: DynamicOptions): ComponentType<P>;
|
|
1562
|
+
|
|
1563
|
+
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[];
|
|
@@ -185,8 +184,6 @@ declare const QueryConstants: {
|
|
|
185
184
|
GetTaskMultipleAnnotations: string;
|
|
186
185
|
GetTaskSavedAnnotations: string;
|
|
187
186
|
DeleteTask: string;
|
|
188
|
-
GetApiImage: string;
|
|
189
|
-
GetCmsImage: string;
|
|
190
187
|
GetQuestionnaireForProject: string;
|
|
191
188
|
GetTaskAnswers: string;
|
|
192
189
|
UploadTasks: string;
|
|
@@ -507,9 +504,9 @@ declare const useQuestionnaire: (projectId: number) => _tanstack_react_query.Use
|
|
|
507
504
|
declare const useTaskAnswers: (taskId: number) => _tanstack_react_query.UseQueryResult<any[][], Error>;
|
|
508
505
|
declare const useProjectResultSet: (download: boolean, projectId: number, is_geo_json: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
509
506
|
|
|
510
|
-
declare const useApiImage: (imageId: string) =>
|
|
507
|
+
declare const useApiImage: (imageId: string) => string;
|
|
511
508
|
|
|
512
|
-
declare const useCmsImage: (imageId: string) =>
|
|
509
|
+
declare const useCmsImage: (imageId: string) => string;
|
|
513
510
|
|
|
514
511
|
declare const useClusterGetJoinRequests: (clusterId: string) => _tanstack_react_query.UseQueryResult<_geowiki_api_proxy.ClusterMemberDto[], Error>;
|
|
515
512
|
|
|
@@ -911,7 +908,11 @@ type Store = {
|
|
|
911
908
|
};
|
|
912
909
|
declare const useBasfStore: zustand.UseBoundStore<zustand.StoreApi<Store>>;
|
|
913
910
|
|
|
914
|
-
|
|
911
|
+
type I18nLike = {
|
|
912
|
+
locale: (locale?: string) => string;
|
|
913
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
914
|
+
};
|
|
915
|
+
declare const i18n: I18nLike;
|
|
915
916
|
declare const getHtmlElementFromReactNode: (node: React.ReactNode) => HTMLDivElement;
|
|
916
917
|
declare const classNames: (...classes: any) => any;
|
|
917
918
|
declare function getButtonAppearance(type: any, background: any): "dark" | "white" | "dark-outline" | "white-outline";
|
|
@@ -1136,6 +1137,12 @@ declare const CLUSTER_ACTIVITY_STATUS: {
|
|
|
1136
1137
|
label: string;
|
|
1137
1138
|
}[];
|
|
1138
1139
|
|
|
1140
|
+
type PagePropsContext = {
|
|
1141
|
+
query: {
|
|
1142
|
+
slug?: string | string[] | undefined;
|
|
1143
|
+
[key: string]: string | string[] | undefined;
|
|
1144
|
+
};
|
|
1145
|
+
};
|
|
1139
1146
|
declare const getGeoWikiSettings: () => Promise<GeoWikiSettingsItemDto>;
|
|
1140
1147
|
declare const getDefaultSettings: () => Promise<DefaultSettings>;
|
|
1141
1148
|
declare const getMenus: (displayName: string) => Promise<MenuItemDto>;
|
|
@@ -1143,7 +1150,7 @@ declare const getPageContent: (displayName: string) => Promise<PageItemDto>;
|
|
|
1143
1150
|
declare const getContentWithTypeAndDisplayName: (contentType: string, displayName: string) => Promise<_geowiki_cms_proxy.QueriesItemsDto>;
|
|
1144
1151
|
declare const getContentWithSlug: (slug: string) => Promise<any>;
|
|
1145
1152
|
declare const getContentsWithType: (contentType: string) => Promise<any>;
|
|
1146
|
-
declare const getPageProps: (ctx:
|
|
1153
|
+
declare const getPageProps: (ctx: PagePropsContext) => Promise<{
|
|
1147
1154
|
props: {
|
|
1148
1155
|
page: PageItemDto;
|
|
1149
1156
|
};
|
|
@@ -1169,7 +1176,7 @@ interface SessionContextValue {
|
|
|
1169
1176
|
}
|
|
1170
1177
|
declare const SESSION_QUERY_KEY: readonly ["geowiki-session"];
|
|
1171
1178
|
declare function SessionProvider({ children, session: initialSession, onSessionChange, }: {
|
|
1172
|
-
children:
|
|
1179
|
+
children: react__default.ReactNode;
|
|
1173
1180
|
session?: ClientSession | null;
|
|
1174
1181
|
onSessionChange?: (session: ClientSession | null) => void;
|
|
1175
1182
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -1390,4 +1397,167 @@ declare const QueryNames: {
|
|
|
1390
1397
|
GetHosts: string;
|
|
1391
1398
|
};
|
|
1392
1399
|
|
|
1393
|
-
|
|
1400
|
+
type ParsedUrlQuery = Record<string, string | string[] | undefined>;
|
|
1401
|
+
type RouteUrlObject = {
|
|
1402
|
+
pathname?: string;
|
|
1403
|
+
query?: ParsedUrlQuery | Record<string, string | string[] | number | boolean | undefined | null>;
|
|
1404
|
+
hash?: string;
|
|
1405
|
+
};
|
|
1406
|
+
type Url = string | RouteUrlObject;
|
|
1407
|
+
type TransitionOptions = {
|
|
1408
|
+
shallow?: boolean;
|
|
1409
|
+
locale?: string | false;
|
|
1410
|
+
scroll?: boolean;
|
|
1411
|
+
};
|
|
1412
|
+
type RouterAdapter = {
|
|
1413
|
+
pathname: string;
|
|
1414
|
+
asPath: string;
|
|
1415
|
+
query: ParsedUrlQuery;
|
|
1416
|
+
locale?: string;
|
|
1417
|
+
locales?: readonly string[];
|
|
1418
|
+
defaultLocale?: string;
|
|
1419
|
+
isReady: boolean;
|
|
1420
|
+
push: (url: Url, as?: Url, options?: TransitionOptions) => Promise<boolean>;
|
|
1421
|
+
replace: (url: Url, as?: Url, options?: TransitionOptions) => Promise<boolean>;
|
|
1422
|
+
back: () => void;
|
|
1423
|
+
forward?: () => void;
|
|
1424
|
+
reload: () => void;
|
|
1425
|
+
prefetch?: (url: string) => Promise<void> | void;
|
|
1426
|
+
events?: unknown;
|
|
1427
|
+
};
|
|
1428
|
+
type NavigationRouterAdapter = {
|
|
1429
|
+
push: (href: string, options?: {
|
|
1430
|
+
scroll?: boolean;
|
|
1431
|
+
}) => void;
|
|
1432
|
+
replace: (href: string, options?: {
|
|
1433
|
+
scroll?: boolean;
|
|
1434
|
+
}) => void;
|
|
1435
|
+
back: () => void;
|
|
1436
|
+
forward: () => void;
|
|
1437
|
+
refresh: () => void;
|
|
1438
|
+
prefetch: (href: string) => void;
|
|
1439
|
+
};
|
|
1440
|
+
type SearchParamsAdapter = URLSearchParams;
|
|
1441
|
+
type LinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & {
|
|
1442
|
+
href: Url;
|
|
1443
|
+
as?: Url;
|
|
1444
|
+
replace?: boolean;
|
|
1445
|
+
scroll?: boolean;
|
|
1446
|
+
shallow?: boolean;
|
|
1447
|
+
passHref?: boolean;
|
|
1448
|
+
prefetch?: boolean;
|
|
1449
|
+
locale?: string | false;
|
|
1450
|
+
legacyBehavior?: boolean;
|
|
1451
|
+
children?: ReactNode;
|
|
1452
|
+
} & RefAttributes<HTMLAnchorElement>;
|
|
1453
|
+
type LinkComponent = ComponentType<LinkProps>;
|
|
1454
|
+
type ImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "src" | "alt" | "width" | "height" | "loading" | "ref" | "placeholder"> & {
|
|
1455
|
+
src: string | {
|
|
1456
|
+
src: string;
|
|
1457
|
+
width?: number;
|
|
1458
|
+
height?: number;
|
|
1459
|
+
};
|
|
1460
|
+
alt: string;
|
|
1461
|
+
width?: number | `${number}`;
|
|
1462
|
+
height?: number | `${number}`;
|
|
1463
|
+
fill?: boolean;
|
|
1464
|
+
sizes?: string;
|
|
1465
|
+
quality?: number;
|
|
1466
|
+
priority?: boolean;
|
|
1467
|
+
loading?: "lazy" | "eager";
|
|
1468
|
+
placeholder?: string;
|
|
1469
|
+
blurDataURL?: string;
|
|
1470
|
+
unoptimized?: boolean;
|
|
1471
|
+
/** Legacy next/image v12 props — accepted for backwards-compat with consumer code. */
|
|
1472
|
+
layout?: string;
|
|
1473
|
+
objectFit?: string;
|
|
1474
|
+
objectPosition?: string;
|
|
1475
|
+
onLoadingComplete?: (img: HTMLImageElement) => void;
|
|
1476
|
+
};
|
|
1477
|
+
type ImageComponent = ComponentType<ImageProps>;
|
|
1478
|
+
type ScriptProps = {
|
|
1479
|
+
src?: string;
|
|
1480
|
+
id?: string;
|
|
1481
|
+
strategy?: "afterInteractive" | "beforeInteractive" | "lazyOnload" | "worker";
|
|
1482
|
+
onLoad?: () => void;
|
|
1483
|
+
onReady?: () => void;
|
|
1484
|
+
onError?: (e: unknown) => void;
|
|
1485
|
+
children?: ReactNode;
|
|
1486
|
+
async?: boolean;
|
|
1487
|
+
defer?: boolean;
|
|
1488
|
+
type?: string;
|
|
1489
|
+
nonce?: string;
|
|
1490
|
+
};
|
|
1491
|
+
type ScriptComponent = ComponentType<ScriptProps>;
|
|
1492
|
+
type HeadComponent = ComponentType<{
|
|
1493
|
+
children?: ReactNode;
|
|
1494
|
+
}>;
|
|
1495
|
+
type DynamicOptions = {
|
|
1496
|
+
ssr?: boolean;
|
|
1497
|
+
loading?: ComponentType;
|
|
1498
|
+
suspense?: boolean;
|
|
1499
|
+
};
|
|
1500
|
+
type DynamicLoader<P = unknown> = () => Promise<ComponentType<P> | {
|
|
1501
|
+
default: ComponentType<P>;
|
|
1502
|
+
}>;
|
|
1503
|
+
type DynamicAdapter = <P = unknown>(loader: DynamicLoader<P>, options?: DynamicOptions) => ComponentType<P>;
|
|
1504
|
+
type ThemeAdapter = {
|
|
1505
|
+
theme?: string;
|
|
1506
|
+
resolvedTheme?: string;
|
|
1507
|
+
setTheme: (theme: string) => void;
|
|
1508
|
+
themes?: string[];
|
|
1509
|
+
systemTheme?: string;
|
|
1510
|
+
};
|
|
1511
|
+
type I18nAdapter = {
|
|
1512
|
+
locale: string;
|
|
1513
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
1514
|
+
};
|
|
1515
|
+
type FrameworkAdapters = {
|
|
1516
|
+
Link: LinkComponent;
|
|
1517
|
+
Image: ImageComponent;
|
|
1518
|
+
Script: ScriptComponent;
|
|
1519
|
+
Head: HeadComponent;
|
|
1520
|
+
useRouter: () => RouterAdapter;
|
|
1521
|
+
useNavigationRouter: () => NavigationRouterAdapter;
|
|
1522
|
+
useSearchParams: () => SearchParamsAdapter;
|
|
1523
|
+
useTheme: () => ThemeAdapter;
|
|
1524
|
+
useI18n: () => I18nAdapter;
|
|
1525
|
+
dynamic: DynamicAdapter;
|
|
1526
|
+
};
|
|
1527
|
+
|
|
1528
|
+
type FrameworkProviderProps = {
|
|
1529
|
+
adapters: Partial<FrameworkAdapters>;
|
|
1530
|
+
children: ReactNode;
|
|
1531
|
+
};
|
|
1532
|
+
declare const FrameworkProvider: ({ adapters, children }: FrameworkProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1533
|
+
declare const useFrameworkAdapters: () => FrameworkAdapters;
|
|
1534
|
+
|
|
1535
|
+
declare const queryToSearchParams: (query: NonNullable<Exclude<Url, string>["query"]> | undefined, target?: URLSearchParams) => URLSearchParams;
|
|
1536
|
+
declare const unwrapDefault: <P>(mod: ComponentType<P> | {
|
|
1537
|
+
default: ComponentType<P>;
|
|
1538
|
+
}) => {
|
|
1539
|
+
default: ComponentType<P>;
|
|
1540
|
+
};
|
|
1541
|
+
declare const DefaultLink: LinkComponent;
|
|
1542
|
+
declare const DefaultImage: ImageComponent;
|
|
1543
|
+
declare const DefaultScript: ScriptComponent;
|
|
1544
|
+
declare const DefaultHead: HeadComponent;
|
|
1545
|
+
declare const useDefaultRouter: () => RouterAdapter;
|
|
1546
|
+
declare const useDefaultNavigationRouter: () => NavigationRouterAdapter;
|
|
1547
|
+
declare const useDefaultSearchParams: () => SearchParamsAdapter;
|
|
1548
|
+
declare const useDefaultTheme: () => ThemeAdapter;
|
|
1549
|
+
declare const useDefaultI18n: () => I18nAdapter;
|
|
1550
|
+
declare const defaultDynamic: DynamicAdapter;
|
|
1551
|
+
|
|
1552
|
+
declare const Link: react.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
1553
|
+
declare const Image: (props: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
1554
|
+
declare const Script: (props: ScriptProps) => react_jsx_runtime.JSX.Element;
|
|
1555
|
+
declare const Head: HeadComponent;
|
|
1556
|
+
declare const useRouter: () => RouterAdapter;
|
|
1557
|
+
declare const useNavigationRouter: () => NavigationRouterAdapter;
|
|
1558
|
+
declare const useSearchParams: () => URLSearchParams;
|
|
1559
|
+
declare const useTheme: () => ThemeAdapter;
|
|
1560
|
+
declare const useI18n: () => I18nAdapter;
|
|
1561
|
+
declare function dynamic<P = unknown>(loader: DynamicLoader<P>, options?: DynamicOptions): ComponentType<P>;
|
|
1562
|
+
|
|
1563
|
+
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 };
|