@geowiki/core 0.15.1-dev.0 → 0.16.0-dev.0
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 +52 -63
- package/dist/index.d.ts +52 -63
- package/dist/index.js +180 -99
- package/dist/index.mjs +172 -96
- package/package.json +6 -8
package/dist/index.d.mts
CHANGED
|
@@ -6,13 +6,13 @@ 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 { MutableRefObject } from 'react';
|
|
9
|
+
import React$1, { MutableRefObject } from 'react';
|
|
10
10
|
import GeoJSON from 'geojson';
|
|
11
11
|
import * as zustand from 'zustand';
|
|
12
12
|
import * as zustand_vanilla from 'zustand/vanilla';
|
|
13
13
|
import { I18n } from 'next-localization';
|
|
14
14
|
import { GetServerSidePropsContext } from 'next';
|
|
15
|
-
import
|
|
15
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
declare const easing: number[];
|
|
18
18
|
declare const listVariants: {
|
|
@@ -1149,6 +1149,35 @@ declare const getPageProps: (ctx: GetServerSidePropsContext) => Promise<{
|
|
|
1149
1149
|
};
|
|
1150
1150
|
}>;
|
|
1151
1151
|
|
|
1152
|
+
interface ClientSession {
|
|
1153
|
+
accessToken: string;
|
|
1154
|
+
idToken: string;
|
|
1155
|
+
userRole: string | string[];
|
|
1156
|
+
user: {
|
|
1157
|
+
name?: string | null;
|
|
1158
|
+
email?: string | null;
|
|
1159
|
+
image?: string | null;
|
|
1160
|
+
};
|
|
1161
|
+
expires: string;
|
|
1162
|
+
error?: string;
|
|
1163
|
+
}
|
|
1164
|
+
type SessionStatus = "loading" | "authenticated" | "unauthenticated";
|
|
1165
|
+
interface SessionContextValue {
|
|
1166
|
+
data: ClientSession | null;
|
|
1167
|
+
status: SessionStatus;
|
|
1168
|
+
update: () => void;
|
|
1169
|
+
}
|
|
1170
|
+
declare const SESSION_QUERY_KEY: readonly ["geowiki-session"];
|
|
1171
|
+
declare function SessionProvider({ children, session: initialSession, onSessionChange, }: {
|
|
1172
|
+
children: React$1.ReactNode;
|
|
1173
|
+
session?: ClientSession | null;
|
|
1174
|
+
onSessionChange?: (session: ClientSession | null) => void;
|
|
1175
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1176
|
+
declare function useSession(): SessionContextValue;
|
|
1177
|
+
|
|
1178
|
+
declare function signIn(_provider?: string, _options?: Record<string, unknown>, params?: Record<string, string>): void;
|
|
1179
|
+
declare function signOut(): void;
|
|
1180
|
+
|
|
1152
1181
|
/**
|
|
1153
1182
|
* Analytics utilities for tracking user interactions with Umami
|
|
1154
1183
|
*
|
|
@@ -1183,9 +1212,7 @@ declare global {
|
|
|
1183
1212
|
* @param eventData - Additional data to include with the event
|
|
1184
1213
|
* @param session - Optional session object containing user information
|
|
1185
1214
|
*/
|
|
1186
|
-
declare const trackUmamiEvent: (eventName: string, eventData?: Record<string, any>, session?:
|
|
1187
|
-
accessToken?: string;
|
|
1188
|
-
}) => void;
|
|
1215
|
+
declare const trackUmamiEvent: (eventName: string, eventData?: Record<string, any>, session?: ClientSession) => void;
|
|
1189
1216
|
/**
|
|
1190
1217
|
* Track download-related events with consistent data structure
|
|
1191
1218
|
*/
|
|
@@ -1193,27 +1220,19 @@ declare const trackDownloadEvent: {
|
|
|
1193
1220
|
/**
|
|
1194
1221
|
* Track download attempt
|
|
1195
1222
|
*/
|
|
1196
|
-
attempt: (format: string, country: string, version: string, purpose: string, session?:
|
|
1197
|
-
accessToken?: string;
|
|
1198
|
-
}) => void;
|
|
1223
|
+
attempt: (format: string, country: string, version: string, purpose: string, session?: ClientSession) => void;
|
|
1199
1224
|
/**
|
|
1200
1225
|
* Track successful download
|
|
1201
1226
|
*/
|
|
1202
|
-
success: (filename: string, purpose: string, session?:
|
|
1203
|
-
accessToken?: string;
|
|
1204
|
-
}) => void;
|
|
1227
|
+
success: (filename: string, purpose: string, session?: ClientSession) => void;
|
|
1205
1228
|
/**
|
|
1206
1229
|
* Track download failure
|
|
1207
1230
|
*/
|
|
1208
|
-
failure: (error: string, purpose: string, session?:
|
|
1209
|
-
accessToken?: string;
|
|
1210
|
-
}) => void;
|
|
1231
|
+
failure: (error: string, purpose: string, session?: ClientSession) => void;
|
|
1211
1232
|
/**
|
|
1212
1233
|
* Track login attempt for download access
|
|
1213
1234
|
*/
|
|
1214
|
-
loginAttempt: (session?:
|
|
1215
|
-
accessToken?: string;
|
|
1216
|
-
}) => void;
|
|
1235
|
+
loginAttempt: (session?: ClientSession) => void;
|
|
1217
1236
|
};
|
|
1218
1237
|
/**
|
|
1219
1238
|
* Track authentication-related events
|
|
@@ -1222,21 +1241,15 @@ declare const trackAuthEvent: {
|
|
|
1222
1241
|
/**
|
|
1223
1242
|
* Track login attempt
|
|
1224
1243
|
*/
|
|
1225
|
-
loginAttempt: (provider: string, session?:
|
|
1226
|
-
accessToken?: string;
|
|
1227
|
-
}) => void;
|
|
1244
|
+
loginAttempt: (provider: string, session?: ClientSession) => void;
|
|
1228
1245
|
/**
|
|
1229
1246
|
* Track successful login
|
|
1230
1247
|
*/
|
|
1231
|
-
loginSuccess: (provider: string, session?:
|
|
1232
|
-
accessToken?: string;
|
|
1233
|
-
}) => void;
|
|
1248
|
+
loginSuccess: (provider: string, session?: ClientSession) => void;
|
|
1234
1249
|
/**
|
|
1235
1250
|
* Track logout
|
|
1236
1251
|
*/
|
|
1237
|
-
logout: (session?:
|
|
1238
|
-
accessToken?: string;
|
|
1239
|
-
}) => void;
|
|
1252
|
+
logout: (session?: ClientSession) => void;
|
|
1240
1253
|
};
|
|
1241
1254
|
/**
|
|
1242
1255
|
* Track general user interaction events
|
|
@@ -1245,27 +1258,19 @@ declare const trackUserEvent: {
|
|
|
1245
1258
|
/**
|
|
1246
1259
|
* Track page view
|
|
1247
1260
|
*/
|
|
1248
|
-
pageView: (page: string, session?:
|
|
1249
|
-
accessToken?: string;
|
|
1250
|
-
}) => void;
|
|
1261
|
+
pageView: (page: string, session?: ClientSession) => void;
|
|
1251
1262
|
/**
|
|
1252
1263
|
* Track button click
|
|
1253
1264
|
*/
|
|
1254
|
-
buttonClick: (buttonName: string, context?: string, session?:
|
|
1255
|
-
accessToken?: string;
|
|
1256
|
-
}) => void;
|
|
1265
|
+
buttonClick: (buttonName: string, context?: string, session?: ClientSession) => void;
|
|
1257
1266
|
/**
|
|
1258
1267
|
* Track form submission
|
|
1259
1268
|
*/
|
|
1260
|
-
formSubmit: (formName: string, session?:
|
|
1261
|
-
accessToken?: string;
|
|
1262
|
-
}) => void;
|
|
1269
|
+
formSubmit: (formName: string, session?: ClientSession) => void;
|
|
1263
1270
|
/**
|
|
1264
1271
|
* Track map control button click with specific context
|
|
1265
1272
|
*/
|
|
1266
|
-
mapControlClick: (controlName: string, action?: string, session?:
|
|
1267
|
-
accessToken?: string;
|
|
1268
|
-
}) => void;
|
|
1273
|
+
mapControlClick: (controlName: string, action?: string, session?: ClientSession) => void;
|
|
1269
1274
|
};
|
|
1270
1275
|
/**
|
|
1271
1276
|
* Track map control events
|
|
@@ -1274,51 +1279,35 @@ declare const trackMapEvent: {
|
|
|
1274
1279
|
/**
|
|
1275
1280
|
* Track layer toggle
|
|
1276
1281
|
*/
|
|
1277
|
-
layerToggle: (layerName: string, action: "add" | "remove", session?:
|
|
1278
|
-
accessToken?: string;
|
|
1279
|
-
}) => void;
|
|
1282
|
+
layerToggle: (layerName: string, action: "add" | "remove", session?: ClientSession) => void;
|
|
1280
1283
|
/**
|
|
1281
1284
|
* Track base layer change
|
|
1282
1285
|
*/
|
|
1283
|
-
baseLayerChange: (baseLayerName: string, session?:
|
|
1284
|
-
accessToken?: string;
|
|
1285
|
-
}) => void;
|
|
1286
|
+
baseLayerChange: (baseLayerName: string, session?: ClientSession) => void;
|
|
1286
1287
|
/**
|
|
1287
1288
|
* Track layer opacity change
|
|
1288
1289
|
*/
|
|
1289
|
-
layerOpacityChange: (layerName: string, opacity: number, session?:
|
|
1290
|
-
accessToken?: string;
|
|
1291
|
-
}) => void;
|
|
1290
|
+
layerOpacityChange: (layerName: string, opacity: number, session?: ClientSession) => void;
|
|
1292
1291
|
/**
|
|
1293
1292
|
* Track layer reorder
|
|
1294
1293
|
*/
|
|
1295
|
-
layerReorder: (layerName: string, newPosition: number, session?:
|
|
1296
|
-
accessToken?: string;
|
|
1297
|
-
}) => void;
|
|
1294
|
+
layerReorder: (layerName: string, newPosition: number, session?: ClientSession) => void;
|
|
1298
1295
|
/**
|
|
1299
1296
|
* Track layer info view
|
|
1300
1297
|
*/
|
|
1301
|
-
layerInfoView: (layerName: string, session?:
|
|
1302
|
-
accessToken?: string;
|
|
1303
|
-
}) => void;
|
|
1298
|
+
layerInfoView: (layerName: string, session?: ClientSession) => void;
|
|
1304
1299
|
/**
|
|
1305
1300
|
* Track measurement tool usage
|
|
1306
1301
|
*/
|
|
1307
|
-
measurementTool: (action: "start" | "stop" | "clear", session?:
|
|
1308
|
-
accessToken?: string;
|
|
1309
|
-
}) => void;
|
|
1302
|
+
measurementTool: (action: "start" | "stop" | "clear", session?: ClientSession) => void;
|
|
1310
1303
|
/**
|
|
1311
1304
|
* Track zoom control usage
|
|
1312
1305
|
*/
|
|
1313
|
-
zoomControl: (action: "zoom_in" | "zoom_out" | "reset", session?:
|
|
1314
|
-
accessToken?: string;
|
|
1315
|
-
}) => void;
|
|
1306
|
+
zoomControl: (action: "zoom_in" | "zoom_out" | "reset", session?: ClientSession) => void;
|
|
1316
1307
|
/**
|
|
1317
1308
|
* Track legend interaction
|
|
1318
1309
|
*/
|
|
1319
|
-
legendInteraction: (action: "open" | "close" | "reorder", session?:
|
|
1320
|
-
accessToken?: string;
|
|
1321
|
-
}) => void;
|
|
1310
|
+
legendInteraction: (action: "open" | "close" | "reorder", session?: ClientSession) => void;
|
|
1322
1311
|
};
|
|
1323
1312
|
|
|
1324
1313
|
/**
|
|
@@ -1401,4 +1390,4 @@ declare const QueryNames: {
|
|
|
1401
1390
|
GetHosts: string;
|
|
1402
1391
|
};
|
|
1403
1392
|
|
|
1404
|
-
export { ActivityStatus, AdminMenus, type Alert, AnnotationRequired, type BaseProp, type BasfLayerItem, type BingNewsItem, CLUSTER_ACTIVITY_STATUS, type ClusterDto, ClusterFunding, ColorArray, ColorArrayCSSClass, type Colormap, type Column, Config, DOTS, type DefaultSettings, type DisplayItem, type Entry, FarmingSystem, Features, type FluffyThumbnail, type Font, type FooterSettings, type FundingSettings, type GlobalSettings, type Graphic, type HostInfo, HostService, HostType, HuntingManagement, ImageError, IsTokenExpired, type LabelPlacement, type Legend, type LegendInfo, type Line, type LinkWithNewTab, LiveStock, type LocationTasks, LookUps, MainAgriculturalAreas, MainCrops, type MainMenu, type MapLayer, type MapSettings, type Menu, type MenuItem, NewsDefaultImage, type NewsResult, OtherLandscapeElements, Permission, PermissionProvider, type Point, type Policy, type Polygon, type Provider, type ProviderImage, type PurpleThumbnail, QueryConstants, type QueryContext, QueryNames, QuestionnaireType, type Raster, ResourcesMenu, Responsive, type Rule, type Sort, StyleType, type SubMenu, type Symbolizer, TaskEventType, TaskState, TaskStatus, TaskStatusColor, type Text, USER_ROLE, type UtmResult, type ValueImage, ViewStatus, classNames, configStore, delayedSlideInUp, downloadData, downloadJSON, easing, findHostInfo, formatUnixDate, getButtonAppearance, getCmsUrlForHost, getContentWithSlug, getContentWithTypeAndDisplayName, getContentsWithType, getDefaultSettings, getGeoWikiSettings, getHostData, getHostFromRequest, getHtmlElementFromReactNode, getMediaUrl, getMenus, getPageContent, getPageProps, getTenantIdForHost, i18n, imageMaxDimension, imageMinDimension, itemVariants, keyStr, listVariants, rgbDataURL, routes, scrollToFirstErrorElement, settingsStore, shimmer, showIntroTour, slideInLeft, slideInRight, slideInUp, spring, toBase64, tokenData, trackAuthEvent, trackDownloadEvent, trackMapEvent, trackUmamiEvent, trackUserEvent, triplet, 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, useDefaultSettings, useDeleteHost, useDimensions, useEmailing, useEvolandBands, useEvolandLabels, useEvolandWmsLayers, useFeature, useFeatures, useFileUpload, useFileUrl, useFilterClusters, useGeoWikiSettings, useGetUserProject, useGrantedPolicies, useGroupsInProject, useHost, useHosts, useImageUrl, useIntroTourSettings, useIsAdmin, useIsAuthenticated, useIsInRole, useLanguages, useLatestTaskOnLocation, useLayerInfo, useLayerStore, useLocation, useLocationBulkUpload, useLocationsForProject, useLockBodyScroll, useLookUp, useMapMenuItems, useNews, useNewsFromAllClusters, usePagination, usePanelStore, usePermission, usePermissions, useProfile, useProjectDetails, useProjectResultSet, useProjectStatisticsByUser, useProjectUsers, useProjects, useProjectsPointsDownload, usePublicationSettings, useQuestionnaire, useRandomTasksPerLocation, useRenderInfo, useResource, useResourceFilter, useResourceType, useReviewTaskBulkUpload, useRoles, useTaskAnnotation, useTaskAnswers, useTaskBulkUpload, useTaskComments, useTaskDelete, useTaskMultipleAnnotations, useTaskSavedAnnotations, useTaskStatusList, useTasksPerLocation, useTenants, useTopic, useUpdateActiveGroupInProject, useUpdateHost, useUpdateUserDetail, useUserProfileGet, useUserRoles, useUsers };
|
|
1393
|
+
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, type DefaultSettings, type DisplayItem, type Entry, FarmingSystem, Features, type FluffyThumbnail, type Font, type FooterSettings, type FundingSettings, type GlobalSettings, type Graphic, type HostInfo, HostService, HostType, HuntingManagement, ImageError, IsTokenExpired, type LabelPlacement, type Legend, type LegendInfo, type Line, type LinkWithNewTab, LiveStock, type LocationTasks, LookUps, MainAgriculturalAreas, MainCrops, type MainMenu, type MapLayer, type MapSettings, type Menu, type MenuItem, NewsDefaultImage, type NewsResult, OtherLandscapeElements, Permission, PermissionProvider, type Point, type Policy, type Polygon, type Provider, type ProviderImage, type PurpleThumbnail, QueryConstants, type QueryContext, QueryNames, QuestionnaireType, type Raster, ResourcesMenu, Responsive, type Rule, SESSION_QUERY_KEY, SessionProvider, type SessionStatus, type Sort, StyleType, type SubMenu, type Symbolizer, TaskEventType, TaskState, TaskStatus, TaskStatusColor, type Text, USER_ROLE, type UtmResult, type ValueImage, ViewStatus, classNames, configStore, delayedSlideInUp, downloadData, downloadJSON, easing, findHostInfo, formatUnixDate, getButtonAppearance, getCmsUrlForHost, getContentWithSlug, getContentWithTypeAndDisplayName, getContentsWithType, getDefaultSettings, getGeoWikiSettings, getHostData, getHostFromRequest, getHtmlElementFromReactNode, getMediaUrl, getMenus, getPageContent, getPageProps, getTenantIdForHost, i18n, imageMaxDimension, imageMinDimension, itemVariants, keyStr, listVariants, rgbDataURL, routes, scrollToFirstErrorElement, settingsStore, shimmer, showIntroTour, signIn, signOut, slideInLeft, slideInRight, slideInUp, spring, toBase64, tokenData, trackAuthEvent, trackDownloadEvent, trackMapEvent, trackUmamiEvent, trackUserEvent, triplet, 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, useDefaultSettings, useDeleteHost, useDimensions, useEmailing, useEvolandBands, useEvolandLabels, useEvolandWmsLayers, useFeature, useFeatures, useFileUpload, useFileUrl, useFilterClusters, useGeoWikiSettings, useGetUserProject, useGrantedPolicies, useGroupsInProject, useHost, useHosts, useImageUrl, useIntroTourSettings, useIsAdmin, useIsAuthenticated, useIsInRole, useLanguages, useLatestTaskOnLocation, useLayerInfo, useLayerStore, useLocation, useLocationBulkUpload, useLocationsForProject, useLockBodyScroll, useLookUp, useMapMenuItems, useNews, useNewsFromAllClusters, usePagination, usePanelStore, usePermission, usePermissions, useProfile, useProjectDetails, useProjectResultSet, useProjectStatisticsByUser, useProjectUsers, useProjects, useProjectsPointsDownload, usePublicationSettings, useQuestionnaire, useRandomTasksPerLocation, useRenderInfo, useResource, useResourceFilter, useResourceType, useReviewTaskBulkUpload, useRoles, useSession, useTaskAnnotation, useTaskAnswers, useTaskBulkUpload, useTaskComments, useTaskDelete, useTaskMultipleAnnotations, useTaskSavedAnnotations, useTaskStatusList, useTasksPerLocation, useTenants, useTopic, useUpdateActiveGroupInProject, useUpdateHost, useUpdateUserDetail, useUserProfileGet, useUserRoles, useUsers };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ 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 { MutableRefObject } from 'react';
|
|
9
|
+
import React$1, { MutableRefObject } from 'react';
|
|
10
10
|
import GeoJSON from 'geojson';
|
|
11
11
|
import * as zustand from 'zustand';
|
|
12
12
|
import * as zustand_vanilla from 'zustand/vanilla';
|
|
13
13
|
import { I18n } from 'next-localization';
|
|
14
14
|
import { GetServerSidePropsContext } from 'next';
|
|
15
|
-
import
|
|
15
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
declare const easing: number[];
|
|
18
18
|
declare const listVariants: {
|
|
@@ -1149,6 +1149,35 @@ declare const getPageProps: (ctx: GetServerSidePropsContext) => Promise<{
|
|
|
1149
1149
|
};
|
|
1150
1150
|
}>;
|
|
1151
1151
|
|
|
1152
|
+
interface ClientSession {
|
|
1153
|
+
accessToken: string;
|
|
1154
|
+
idToken: string;
|
|
1155
|
+
userRole: string | string[];
|
|
1156
|
+
user: {
|
|
1157
|
+
name?: string | null;
|
|
1158
|
+
email?: string | null;
|
|
1159
|
+
image?: string | null;
|
|
1160
|
+
};
|
|
1161
|
+
expires: string;
|
|
1162
|
+
error?: string;
|
|
1163
|
+
}
|
|
1164
|
+
type SessionStatus = "loading" | "authenticated" | "unauthenticated";
|
|
1165
|
+
interface SessionContextValue {
|
|
1166
|
+
data: ClientSession | null;
|
|
1167
|
+
status: SessionStatus;
|
|
1168
|
+
update: () => void;
|
|
1169
|
+
}
|
|
1170
|
+
declare const SESSION_QUERY_KEY: readonly ["geowiki-session"];
|
|
1171
|
+
declare function SessionProvider({ children, session: initialSession, onSessionChange, }: {
|
|
1172
|
+
children: React$1.ReactNode;
|
|
1173
|
+
session?: ClientSession | null;
|
|
1174
|
+
onSessionChange?: (session: ClientSession | null) => void;
|
|
1175
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1176
|
+
declare function useSession(): SessionContextValue;
|
|
1177
|
+
|
|
1178
|
+
declare function signIn(_provider?: string, _options?: Record<string, unknown>, params?: Record<string, string>): void;
|
|
1179
|
+
declare function signOut(): void;
|
|
1180
|
+
|
|
1152
1181
|
/**
|
|
1153
1182
|
* Analytics utilities for tracking user interactions with Umami
|
|
1154
1183
|
*
|
|
@@ -1183,9 +1212,7 @@ declare global {
|
|
|
1183
1212
|
* @param eventData - Additional data to include with the event
|
|
1184
1213
|
* @param session - Optional session object containing user information
|
|
1185
1214
|
*/
|
|
1186
|
-
declare const trackUmamiEvent: (eventName: string, eventData?: Record<string, any>, session?:
|
|
1187
|
-
accessToken?: string;
|
|
1188
|
-
}) => void;
|
|
1215
|
+
declare const trackUmamiEvent: (eventName: string, eventData?: Record<string, any>, session?: ClientSession) => void;
|
|
1189
1216
|
/**
|
|
1190
1217
|
* Track download-related events with consistent data structure
|
|
1191
1218
|
*/
|
|
@@ -1193,27 +1220,19 @@ declare const trackDownloadEvent: {
|
|
|
1193
1220
|
/**
|
|
1194
1221
|
* Track download attempt
|
|
1195
1222
|
*/
|
|
1196
|
-
attempt: (format: string, country: string, version: string, purpose: string, session?:
|
|
1197
|
-
accessToken?: string;
|
|
1198
|
-
}) => void;
|
|
1223
|
+
attempt: (format: string, country: string, version: string, purpose: string, session?: ClientSession) => void;
|
|
1199
1224
|
/**
|
|
1200
1225
|
* Track successful download
|
|
1201
1226
|
*/
|
|
1202
|
-
success: (filename: string, purpose: string, session?:
|
|
1203
|
-
accessToken?: string;
|
|
1204
|
-
}) => void;
|
|
1227
|
+
success: (filename: string, purpose: string, session?: ClientSession) => void;
|
|
1205
1228
|
/**
|
|
1206
1229
|
* Track download failure
|
|
1207
1230
|
*/
|
|
1208
|
-
failure: (error: string, purpose: string, session?:
|
|
1209
|
-
accessToken?: string;
|
|
1210
|
-
}) => void;
|
|
1231
|
+
failure: (error: string, purpose: string, session?: ClientSession) => void;
|
|
1211
1232
|
/**
|
|
1212
1233
|
* Track login attempt for download access
|
|
1213
1234
|
*/
|
|
1214
|
-
loginAttempt: (session?:
|
|
1215
|
-
accessToken?: string;
|
|
1216
|
-
}) => void;
|
|
1235
|
+
loginAttempt: (session?: ClientSession) => void;
|
|
1217
1236
|
};
|
|
1218
1237
|
/**
|
|
1219
1238
|
* Track authentication-related events
|
|
@@ -1222,21 +1241,15 @@ declare const trackAuthEvent: {
|
|
|
1222
1241
|
/**
|
|
1223
1242
|
* Track login attempt
|
|
1224
1243
|
*/
|
|
1225
|
-
loginAttempt: (provider: string, session?:
|
|
1226
|
-
accessToken?: string;
|
|
1227
|
-
}) => void;
|
|
1244
|
+
loginAttempt: (provider: string, session?: ClientSession) => void;
|
|
1228
1245
|
/**
|
|
1229
1246
|
* Track successful login
|
|
1230
1247
|
*/
|
|
1231
|
-
loginSuccess: (provider: string, session?:
|
|
1232
|
-
accessToken?: string;
|
|
1233
|
-
}) => void;
|
|
1248
|
+
loginSuccess: (provider: string, session?: ClientSession) => void;
|
|
1234
1249
|
/**
|
|
1235
1250
|
* Track logout
|
|
1236
1251
|
*/
|
|
1237
|
-
logout: (session?:
|
|
1238
|
-
accessToken?: string;
|
|
1239
|
-
}) => void;
|
|
1252
|
+
logout: (session?: ClientSession) => void;
|
|
1240
1253
|
};
|
|
1241
1254
|
/**
|
|
1242
1255
|
* Track general user interaction events
|
|
@@ -1245,27 +1258,19 @@ declare const trackUserEvent: {
|
|
|
1245
1258
|
/**
|
|
1246
1259
|
* Track page view
|
|
1247
1260
|
*/
|
|
1248
|
-
pageView: (page: string, session?:
|
|
1249
|
-
accessToken?: string;
|
|
1250
|
-
}) => void;
|
|
1261
|
+
pageView: (page: string, session?: ClientSession) => void;
|
|
1251
1262
|
/**
|
|
1252
1263
|
* Track button click
|
|
1253
1264
|
*/
|
|
1254
|
-
buttonClick: (buttonName: string, context?: string, session?:
|
|
1255
|
-
accessToken?: string;
|
|
1256
|
-
}) => void;
|
|
1265
|
+
buttonClick: (buttonName: string, context?: string, session?: ClientSession) => void;
|
|
1257
1266
|
/**
|
|
1258
1267
|
* Track form submission
|
|
1259
1268
|
*/
|
|
1260
|
-
formSubmit: (formName: string, session?:
|
|
1261
|
-
accessToken?: string;
|
|
1262
|
-
}) => void;
|
|
1269
|
+
formSubmit: (formName: string, session?: ClientSession) => void;
|
|
1263
1270
|
/**
|
|
1264
1271
|
* Track map control button click with specific context
|
|
1265
1272
|
*/
|
|
1266
|
-
mapControlClick: (controlName: string, action?: string, session?:
|
|
1267
|
-
accessToken?: string;
|
|
1268
|
-
}) => void;
|
|
1273
|
+
mapControlClick: (controlName: string, action?: string, session?: ClientSession) => void;
|
|
1269
1274
|
};
|
|
1270
1275
|
/**
|
|
1271
1276
|
* Track map control events
|
|
@@ -1274,51 +1279,35 @@ declare const trackMapEvent: {
|
|
|
1274
1279
|
/**
|
|
1275
1280
|
* Track layer toggle
|
|
1276
1281
|
*/
|
|
1277
|
-
layerToggle: (layerName: string, action: "add" | "remove", session?:
|
|
1278
|
-
accessToken?: string;
|
|
1279
|
-
}) => void;
|
|
1282
|
+
layerToggle: (layerName: string, action: "add" | "remove", session?: ClientSession) => void;
|
|
1280
1283
|
/**
|
|
1281
1284
|
* Track base layer change
|
|
1282
1285
|
*/
|
|
1283
|
-
baseLayerChange: (baseLayerName: string, session?:
|
|
1284
|
-
accessToken?: string;
|
|
1285
|
-
}) => void;
|
|
1286
|
+
baseLayerChange: (baseLayerName: string, session?: ClientSession) => void;
|
|
1286
1287
|
/**
|
|
1287
1288
|
* Track layer opacity change
|
|
1288
1289
|
*/
|
|
1289
|
-
layerOpacityChange: (layerName: string, opacity: number, session?:
|
|
1290
|
-
accessToken?: string;
|
|
1291
|
-
}) => void;
|
|
1290
|
+
layerOpacityChange: (layerName: string, opacity: number, session?: ClientSession) => void;
|
|
1292
1291
|
/**
|
|
1293
1292
|
* Track layer reorder
|
|
1294
1293
|
*/
|
|
1295
|
-
layerReorder: (layerName: string, newPosition: number, session?:
|
|
1296
|
-
accessToken?: string;
|
|
1297
|
-
}) => void;
|
|
1294
|
+
layerReorder: (layerName: string, newPosition: number, session?: ClientSession) => void;
|
|
1298
1295
|
/**
|
|
1299
1296
|
* Track layer info view
|
|
1300
1297
|
*/
|
|
1301
|
-
layerInfoView: (layerName: string, session?:
|
|
1302
|
-
accessToken?: string;
|
|
1303
|
-
}) => void;
|
|
1298
|
+
layerInfoView: (layerName: string, session?: ClientSession) => void;
|
|
1304
1299
|
/**
|
|
1305
1300
|
* Track measurement tool usage
|
|
1306
1301
|
*/
|
|
1307
|
-
measurementTool: (action: "start" | "stop" | "clear", session?:
|
|
1308
|
-
accessToken?: string;
|
|
1309
|
-
}) => void;
|
|
1302
|
+
measurementTool: (action: "start" | "stop" | "clear", session?: ClientSession) => void;
|
|
1310
1303
|
/**
|
|
1311
1304
|
* Track zoom control usage
|
|
1312
1305
|
*/
|
|
1313
|
-
zoomControl: (action: "zoom_in" | "zoom_out" | "reset", session?:
|
|
1314
|
-
accessToken?: string;
|
|
1315
|
-
}) => void;
|
|
1306
|
+
zoomControl: (action: "zoom_in" | "zoom_out" | "reset", session?: ClientSession) => void;
|
|
1316
1307
|
/**
|
|
1317
1308
|
* Track legend interaction
|
|
1318
1309
|
*/
|
|
1319
|
-
legendInteraction: (action: "open" | "close" | "reorder", session?:
|
|
1320
|
-
accessToken?: string;
|
|
1321
|
-
}) => void;
|
|
1310
|
+
legendInteraction: (action: "open" | "close" | "reorder", session?: ClientSession) => void;
|
|
1322
1311
|
};
|
|
1323
1312
|
|
|
1324
1313
|
/**
|
|
@@ -1401,4 +1390,4 @@ declare const QueryNames: {
|
|
|
1401
1390
|
GetHosts: string;
|
|
1402
1391
|
};
|
|
1403
1392
|
|
|
1404
|
-
export { ActivityStatus, AdminMenus, type Alert, AnnotationRequired, type BaseProp, type BasfLayerItem, type BingNewsItem, CLUSTER_ACTIVITY_STATUS, type ClusterDto, ClusterFunding, ColorArray, ColorArrayCSSClass, type Colormap, type Column, Config, DOTS, type DefaultSettings, type DisplayItem, type Entry, FarmingSystem, Features, type FluffyThumbnail, type Font, type FooterSettings, type FundingSettings, type GlobalSettings, type Graphic, type HostInfo, HostService, HostType, HuntingManagement, ImageError, IsTokenExpired, type LabelPlacement, type Legend, type LegendInfo, type Line, type LinkWithNewTab, LiveStock, type LocationTasks, LookUps, MainAgriculturalAreas, MainCrops, type MainMenu, type MapLayer, type MapSettings, type Menu, type MenuItem, NewsDefaultImage, type NewsResult, OtherLandscapeElements, Permission, PermissionProvider, type Point, type Policy, type Polygon, type Provider, type ProviderImage, type PurpleThumbnail, QueryConstants, type QueryContext, QueryNames, QuestionnaireType, type Raster, ResourcesMenu, Responsive, type Rule, type Sort, StyleType, type SubMenu, type Symbolizer, TaskEventType, TaskState, TaskStatus, TaskStatusColor, type Text, USER_ROLE, type UtmResult, type ValueImage, ViewStatus, classNames, configStore, delayedSlideInUp, downloadData, downloadJSON, easing, findHostInfo, formatUnixDate, getButtonAppearance, getCmsUrlForHost, getContentWithSlug, getContentWithTypeAndDisplayName, getContentsWithType, getDefaultSettings, getGeoWikiSettings, getHostData, getHostFromRequest, getHtmlElementFromReactNode, getMediaUrl, getMenus, getPageContent, getPageProps, getTenantIdForHost, i18n, imageMaxDimension, imageMinDimension, itemVariants, keyStr, listVariants, rgbDataURL, routes, scrollToFirstErrorElement, settingsStore, shimmer, showIntroTour, slideInLeft, slideInRight, slideInUp, spring, toBase64, tokenData, trackAuthEvent, trackDownloadEvent, trackMapEvent, trackUmamiEvent, trackUserEvent, triplet, 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, useDefaultSettings, useDeleteHost, useDimensions, useEmailing, useEvolandBands, useEvolandLabels, useEvolandWmsLayers, useFeature, useFeatures, useFileUpload, useFileUrl, useFilterClusters, useGeoWikiSettings, useGetUserProject, useGrantedPolicies, useGroupsInProject, useHost, useHosts, useImageUrl, useIntroTourSettings, useIsAdmin, useIsAuthenticated, useIsInRole, useLanguages, useLatestTaskOnLocation, useLayerInfo, useLayerStore, useLocation, useLocationBulkUpload, useLocationsForProject, useLockBodyScroll, useLookUp, useMapMenuItems, useNews, useNewsFromAllClusters, usePagination, usePanelStore, usePermission, usePermissions, useProfile, useProjectDetails, useProjectResultSet, useProjectStatisticsByUser, useProjectUsers, useProjects, useProjectsPointsDownload, usePublicationSettings, useQuestionnaire, useRandomTasksPerLocation, useRenderInfo, useResource, useResourceFilter, useResourceType, useReviewTaskBulkUpload, useRoles, useTaskAnnotation, useTaskAnswers, useTaskBulkUpload, useTaskComments, useTaskDelete, useTaskMultipleAnnotations, useTaskSavedAnnotations, useTaskStatusList, useTasksPerLocation, useTenants, useTopic, useUpdateActiveGroupInProject, useUpdateHost, useUpdateUserDetail, useUserProfileGet, useUserRoles, useUsers };
|
|
1393
|
+
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, type DefaultSettings, type DisplayItem, type Entry, FarmingSystem, Features, type FluffyThumbnail, type Font, type FooterSettings, type FundingSettings, type GlobalSettings, type Graphic, type HostInfo, HostService, HostType, HuntingManagement, ImageError, IsTokenExpired, type LabelPlacement, type Legend, type LegendInfo, type Line, type LinkWithNewTab, LiveStock, type LocationTasks, LookUps, MainAgriculturalAreas, MainCrops, type MainMenu, type MapLayer, type MapSettings, type Menu, type MenuItem, NewsDefaultImage, type NewsResult, OtherLandscapeElements, Permission, PermissionProvider, type Point, type Policy, type Polygon, type Provider, type ProviderImage, type PurpleThumbnail, QueryConstants, type QueryContext, QueryNames, QuestionnaireType, type Raster, ResourcesMenu, Responsive, type Rule, SESSION_QUERY_KEY, SessionProvider, type SessionStatus, type Sort, StyleType, type SubMenu, type Symbolizer, TaskEventType, TaskState, TaskStatus, TaskStatusColor, type Text, USER_ROLE, type UtmResult, type ValueImage, ViewStatus, classNames, configStore, delayedSlideInUp, downloadData, downloadJSON, easing, findHostInfo, formatUnixDate, getButtonAppearance, getCmsUrlForHost, getContentWithSlug, getContentWithTypeAndDisplayName, getContentsWithType, getDefaultSettings, getGeoWikiSettings, getHostData, getHostFromRequest, getHtmlElementFromReactNode, getMediaUrl, getMenus, getPageContent, getPageProps, getTenantIdForHost, i18n, imageMaxDimension, imageMinDimension, itemVariants, keyStr, listVariants, rgbDataURL, routes, scrollToFirstErrorElement, settingsStore, shimmer, showIntroTour, signIn, signOut, slideInLeft, slideInRight, slideInUp, spring, toBase64, tokenData, trackAuthEvent, trackDownloadEvent, trackMapEvent, trackUmamiEvent, trackUserEvent, triplet, 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, useDefaultSettings, useDeleteHost, useDimensions, useEmailing, useEvolandBands, useEvolandLabels, useEvolandWmsLayers, useFeature, useFeatures, useFileUpload, useFileUrl, useFilterClusters, useGeoWikiSettings, useGetUserProject, useGrantedPolicies, useGroupsInProject, useHost, useHosts, useImageUrl, useIntroTourSettings, useIsAdmin, useIsAuthenticated, useIsInRole, useLanguages, useLatestTaskOnLocation, useLayerInfo, useLayerStore, useLocation, useLocationBulkUpload, useLocationsForProject, useLockBodyScroll, useLookUp, useMapMenuItems, useNews, useNewsFromAllClusters, usePagination, usePanelStore, usePermission, usePermissions, useProfile, useProjectDetails, useProjectResultSet, useProjectStatisticsByUser, useProjectUsers, useProjects, useProjectsPointsDownload, usePublicationSettings, useQuestionnaire, useRandomTasksPerLocation, useRenderInfo, useResource, useResourceFilter, useResourceType, useReviewTaskBulkUpload, useRoles, useSession, useTaskAnnotation, useTaskAnswers, useTaskBulkUpload, useTaskComments, useTaskDelete, useTaskMultipleAnnotations, useTaskSavedAnnotations, useTaskStatusList, useTasksPerLocation, useTenants, useTopic, useUpdateActiveGroupInProject, useUpdateHost, useUpdateUserDetail, useUserProfileGet, useUserRoles, useUsers };
|