@overmap-ai/core 1.0.71-project-file-improvements.3 → 1.0.71-remove-login-timeout.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.
Files changed (131) hide show
  1. package/dist/constants/defaults.d.ts +2 -1
  2. package/dist/constants/index.d.ts +3 -3
  3. package/dist/enums/index.d.ts +5 -5
  4. package/dist/index.d.ts +6 -6
  5. package/dist/overmap-core.js +290 -452
  6. package/dist/overmap-core.js.map +1 -1
  7. package/dist/overmap-core.umd.cjs +299 -460
  8. package/dist/overmap-core.umd.cjs.map +1 -1
  9. package/dist/sdk/base.d.ts +8 -6
  10. package/dist/sdk/classes/OutboxCoordinator.d.ts +4 -4
  11. package/dist/sdk/classes/index.d.ts +1 -1
  12. package/dist/sdk/errors.d.ts +3 -1
  13. package/dist/sdk/globals.d.ts +7 -5
  14. package/dist/sdk/index.d.ts +6 -6
  15. package/dist/sdk/sdk.d.ts +6 -5
  16. package/dist/sdk/services/AgentService.d.ts +6 -10
  17. package/dist/sdk/services/AssetAttachmentService.d.ts +13 -12
  18. package/dist/sdk/services/AssetService.d.ts +5 -4
  19. package/dist/sdk/services/AssetStageCompletionService.d.ts +5 -4
  20. package/dist/sdk/services/AssetStageService.d.ts +5 -4
  21. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +13 -12
  22. package/dist/sdk/services/AssetTypeService.d.ts +5 -4
  23. package/dist/sdk/services/BaseApiService.d.ts +5 -4
  24. package/dist/sdk/services/BaseAttachmentService.d.ts +7 -6
  25. package/dist/sdk/services/BaseAuthService.d.ts +5 -4
  26. package/dist/sdk/services/BaseService.d.ts +7 -5
  27. package/dist/sdk/services/BaseUploadService.d.ts +5 -4
  28. package/dist/sdk/services/CategoryService.d.ts +5 -4
  29. package/dist/sdk/services/DocumentAttachmentService.d.ts +13 -12
  30. package/dist/sdk/services/DocumentService.d.ts +5 -4
  31. package/dist/sdk/services/EmailDomainsService.d.ts +4 -3
  32. package/dist/sdk/services/EmailVerificationService.d.ts +4 -3
  33. package/dist/sdk/services/FileService.d.ts +5 -4
  34. package/dist/sdk/services/FormService.d.ts +5 -4
  35. package/dist/sdk/services/FormSubmissionService.d.ts +6 -5
  36. package/dist/sdk/services/GeoImageService.d.ts +5 -4
  37. package/dist/sdk/services/IssueAssociationService.d.ts +5 -4
  38. package/dist/sdk/services/IssueAttachmentService.d.ts +13 -12
  39. package/dist/sdk/services/IssueCommentService.d.ts +5 -4
  40. package/dist/sdk/services/IssueService.d.ts +5 -4
  41. package/dist/sdk/services/IssueTypeService.d.ts +5 -4
  42. package/dist/sdk/services/IssueUpdateService.d.ts +4 -3
  43. package/dist/sdk/services/JWTAuthService.d.ts +7 -6
  44. package/dist/sdk/services/LicenseService.d.ts +4 -3
  45. package/dist/sdk/services/OrganizationAccessService.d.ts +4 -3
  46. package/dist/sdk/services/OrganizationService.d.ts +4 -3
  47. package/dist/sdk/services/ProjectAccessService.d.ts +4 -3
  48. package/dist/sdk/services/ProjectAttachmentService.d.ts +13 -12
  49. package/dist/sdk/services/ProjectFileService.d.ts +9 -8
  50. package/dist/sdk/services/ProjectService.d.ts +4 -3
  51. package/dist/sdk/services/TeamService.d.ts +5 -4
  52. package/dist/sdk/services/UserService.d.ts +4 -3
  53. package/dist/sdk/services/WorkspaceService.d.ts +5 -4
  54. package/dist/sdk/services/index.d.ts +34 -34
  55. package/dist/sdk/typings.d.ts +9 -8
  56. package/dist/store/adapter.d.ts +12 -11
  57. package/dist/store/index.d.ts +2 -2
  58. package/dist/store/migrations.d.ts +2 -1
  59. package/dist/store/slices/agentsSlice.d.ts +11 -10
  60. package/dist/store/slices/assetAttachmentSlice.d.ts +16 -21
  61. package/dist/store/slices/assetSlice.d.ts +35 -24
  62. package/dist/store/slices/assetStageCompletionSlice.d.ts +33 -22
  63. package/dist/store/slices/assetStageSlice.d.ts +36 -25
  64. package/dist/store/slices/assetTypeAttachmentSlice.d.ts +16 -21
  65. package/dist/store/slices/assetTypeSlice.d.ts +16 -21
  66. package/dist/store/slices/authSlice.d.ts +10 -9
  67. package/dist/store/slices/categorySlice.d.ts +30 -16
  68. package/dist/store/slices/documentAttachmentSlice.d.ts +16 -21
  69. package/dist/store/slices/documentSlice.d.ts +30 -13
  70. package/dist/store/slices/emailDomainsSlice.d.ts +29 -15
  71. package/dist/store/slices/fileSlice.d.ts +7 -6
  72. package/dist/store/slices/formRevisionAttachmentSlice.d.ts +16 -21
  73. package/dist/store/slices/formRevisionSlice.d.ts +37 -26
  74. package/dist/store/slices/formSlice.d.ts +35 -21
  75. package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +16 -21
  76. package/dist/store/slices/formSubmissionSlice.d.ts +16 -21
  77. package/dist/store/slices/geoImageSlice.d.ts +16 -21
  78. package/dist/store/slices/index.d.ts +38 -38
  79. package/dist/store/slices/issueAssociationSlice.d.ts +35 -24
  80. package/dist/store/slices/issueAttachmentSlice.d.ts +16 -21
  81. package/dist/store/slices/issueCommentSlice.d.ts +13 -18
  82. package/dist/store/slices/issueSlice.d.ts +13 -18
  83. package/dist/store/slices/issueTypeSlice.d.ts +12 -14
  84. package/dist/store/slices/issueUpdateSlice.d.ts +13 -18
  85. package/dist/store/slices/licenseSlice.d.ts +10 -9
  86. package/dist/store/slices/organizationAccessSlice.d.ts +11 -13
  87. package/dist/store/slices/organizationSlice.d.ts +27 -10
  88. package/dist/store/slices/outboxSlice.d.ts +15 -15
  89. package/dist/store/slices/projectAccessSlice.d.ts +11 -17
  90. package/dist/store/slices/projectAttachmentSlice.d.ts +16 -21
  91. package/dist/store/slices/projectFileSlice.d.ts +56 -44
  92. package/dist/store/slices/projectSlice.d.ts +10 -24
  93. package/dist/store/slices/rehydratedSlice.d.ts +7 -6
  94. package/dist/store/slices/teamSlice.d.ts +12 -14
  95. package/dist/store/slices/userSlice.d.ts +14 -13
  96. package/dist/store/slices/versioningSlice.d.ts +3 -2
  97. package/dist/store/slices/workspaceSlice.d.ts +31 -17
  98. package/dist/store/store.d.ts +7 -7
  99. package/dist/typings/index.d.ts +6 -6
  100. package/dist/typings/models/access.d.ts +3 -2
  101. package/dist/typings/models/agents.d.ts +3 -2
  102. package/dist/typings/models/assets.d.ts +3 -2
  103. package/dist/typings/models/attachments.d.ts +3 -2
  104. package/dist/typings/models/base.d.ts +3 -2
  105. package/dist/typings/models/categories.d.ts +3 -2
  106. package/dist/typings/models/documents.d.ts +2 -1
  107. package/dist/typings/models/emailDomain.d.ts +2 -1
  108. package/dist/typings/models/emailVerification.d.ts +3 -2
  109. package/dist/typings/models/forms.d.ts +4 -3
  110. package/dist/typings/models/geoImages.d.ts +5 -4
  111. package/dist/typings/models/index.d.ts +21 -21
  112. package/dist/typings/models/issueTypes.d.ts +3 -2
  113. package/dist/typings/models/issues.d.ts +7 -6
  114. package/dist/typings/models/license.d.ts +3 -2
  115. package/dist/typings/models/organizations.d.ts +2 -1
  116. package/dist/typings/models/projects.d.ts +5 -7
  117. package/dist/typings/models/store.d.ts +3 -3
  118. package/dist/typings/models/teams.d.ts +4 -3
  119. package/dist/typings/models/users.d.ts +2 -1
  120. package/dist/typings/models/workspace.d.ts +2 -1
  121. package/dist/typings/search.d.ts +1 -1
  122. package/dist/typings/store.d.ts +2 -1
  123. package/dist/utils/async/DeferredPromise.d.ts +1 -1
  124. package/dist/utils/colors.d.ts +2 -1
  125. package/dist/utils/coordinates.d.ts +3 -2
  126. package/dist/utils/file.d.ts +2 -1
  127. package/dist/utils/forms.d.ts +2 -1
  128. package/dist/utils/index.d.ts +10 -10
  129. package/dist/utils/offline.d.ts +2 -1
  130. package/dist/utils/utils.d.ts +2 -1
  131. package/package.json +18 -20
@@ -1,5 +1,6 @@
1
- import type { CreatedByModel, OfflineModel, SubmittedAtModel } from "./base";
2
- import type { FileModel, FileWithNameModel, MaybeObjectURL } from "../files";
1
+ import { CreatedByModel, OfflineModel, SubmittedAtModel } from './base';
2
+ import { FileModel, FileWithNameModel, MaybeObjectURL } from '../files';
3
+
3
4
  export interface Attachment extends OfflineModel, SubmittedAtModel, FileWithNameModel, CreatedByModel {
4
5
  description?: string;
5
6
  file_type: string;
@@ -1,5 +1,6 @@
1
- import type { CSSColor } from "../colors";
2
- import type { User } from "./users";
1
+ import { CSSColor } from '../colors';
2
+ import { User } from './users';
3
+
3
4
  export interface Model {
4
5
  }
5
6
  export interface OfflineModel extends Model {
@@ -1,5 +1,6 @@
1
- import type { CreatedByModel, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
2
- import type { CSSColor } from "../colors";
1
+ import { CreatedByModel, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
2
+ import { CSSColor } from '../colors';
3
+
3
4
  export interface Category extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel {
4
5
  name: string;
5
6
  description?: string;
@@ -1,4 +1,5 @@
1
- import type { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
1
+ import { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
2
+
2
3
  export interface Document extends OfflineModel, SubmittedAtModel, CreatedByModel, TimestampedModel, IconModel, ColorModel {
3
4
  title: string | null;
4
5
  description: string | null;
@@ -1,4 +1,5 @@
1
- import type { OfflineModel } from "./base";
1
+ import { OfflineModel } from './base';
2
+
2
3
  export interface EmailDomain extends OfflineModel {
3
4
  domain: string;
4
5
  organization: number;
@@ -1,5 +1,6 @@
1
- import type { RegistrationPayload } from "./users";
2
- import type { OfflineModel } from "./base";
1
+ import { RegistrationPayload } from './users';
2
+ import { OfflineModel } from './base';
3
+
3
4
  export type EmailVerificationPayload = undefined | RegistrationPayload | Omit<RegistrationPayload, "username" | "email">;
4
5
  export interface EmailVerificationReturn {
5
6
  username?: string;
@@ -1,6 +1,7 @@
1
- import type { CreatedByModel, OfflineModel, Payload, SubmittedAtModel, TimestampedModel } from "./base";
2
- import type { Attachment } from "./attachments";
3
- import type { BaseSerializedObject, FieldValue, ISerializedField } from "@overmap-ai/forms";
1
+ import { CreatedByModel, OfflineModel, Payload, SubmittedAtModel, TimestampedModel } from './base';
2
+ import { Attachment } from './attachments';
3
+ import { BaseSerializedObject, FieldValue, ISerializedField } from '@overmap-ai/forms';
4
+
4
5
  export interface Form extends OfflineModel, SubmittedAtModel, CreatedByModel {
5
6
  asset_type?: string;
6
7
  issue_type?: string;
@@ -1,6 +1,7 @@
1
- import type { CreatedByModel, OfflineModel, Payload, SubmittedAtModel } from "./base";
2
- import type { CanvasMarkableModel, MarkableModel } from "./geo";
3
- import type { FileWithNameModel } from "../files";
1
+ import { CreatedByModel, OfflineModel, SubmittedAtModel } from './base';
2
+ import { CanvasMarkableModel, MarkableModel } from './geo';
3
+ import { FileWithNameModel } from '../files';
4
+
4
5
  export interface GeoImage extends OfflineModel, SubmittedAtModel, CreatedByModel, MarkableModel, CanvasMarkableModel, FileWithNameModel {
5
6
  title?: string;
6
7
  description?: string;
@@ -8,7 +9,7 @@ export interface GeoImage extends OfflineModel, SubmittedAtModel, CreatedByModel
8
9
  direction?: number;
9
10
  original_date?: string;
10
11
  }
11
- export type GeoImagePayload = Omit<Payload<GeoImage>, "file_name" | "file_sha1" | "file"> & {
12
+ export type GeoImagePayload = Omit<GeoImage, "offline_id" | "submitted_at" | "created_by" | "file_name" | "file_sha1" | "file"> & {
12
13
  file: File;
13
14
  };
14
15
  export type BulkGeoImagePayload = Omit<GeoImagePayload, "project">;
@@ -1,21 +1,21 @@
1
- export * from "./access";
2
- export * from "./attachments";
3
- export * from "./base";
4
- export * from "./categories";
5
- export * from "./assets";
6
- export * from "./forms";
7
- export * from "./geo";
8
- export * from "./issues";
9
- export * from "./issueTypes";
10
- export * from "./organizations";
11
- export * from "./projects";
12
- export * from "./users";
13
- export * from "./workspace";
14
- export * from "./emailVerification";
15
- export * from "./store";
16
- export * from "./emailDomain";
17
- export * from "./license";
18
- export * from "./documents";
19
- export * from "./teams";
20
- export * from "./agents";
21
- export * from "./geoImages";
1
+ export * from './access';
2
+ export * from './attachments';
3
+ export * from './base';
4
+ export * from './categories';
5
+ export * from './assets';
6
+ export * from './forms';
7
+ export * from './geo';
8
+ export * from './issues';
9
+ export * from './issueTypes';
10
+ export * from './organizations';
11
+ export * from './projects';
12
+ export * from './users';
13
+ export * from './workspace';
14
+ export * from './emailVerification';
15
+ export * from './store';
16
+ export * from './emailDomain';
17
+ export * from './license';
18
+ export * from './documents';
19
+ export * from './teams';
20
+ export * from './agents';
21
+ export * from './geoImages';
@@ -1,5 +1,6 @@
1
- import type { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel } from "./base";
2
- import type { Organization } from "./organizations";
1
+ import { ColorModel, CreatedByModel, IconModel, OfflineModel, SubmittedAtModel } from './base';
2
+ import { Organization } from './organizations';
3
+
3
4
  export interface IssueType extends OfflineModel, SubmittedAtModel, IconModel, ColorModel, CreatedByModel {
4
5
  name?: string;
5
6
  description?: string;
@@ -1,9 +1,10 @@
1
- import type { CreatedByModel, Offline, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
2
- import type { IssuePriority, IssueStatus, IssueUpdateChange } from "../../enums";
3
- import type { WorkspaceIndexedModel } from "./workspace";
4
- import type { CanvasMarkableModel, MarkableModel } from "./geo";
5
- import type { User } from "./users";
6
- import type { CSSColor } from "../colors";
1
+ import { CreatedByModel, Offline, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
2
+ import { IssuePriority, IssueStatus, IssueUpdateChange } from '../../enums';
3
+ import { WorkspaceIndexedModel } from './workspace';
4
+ import { CanvasMarkableModel, MarkableModel } from './geo';
5
+ import { User } from './users';
6
+ import { CSSColor } from '../colors';
7
+
7
8
  /**
8
9
  * Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
9
10
  * all cases, the `offline_id`) are guaranteed to be set.
@@ -1,5 +1,6 @@
1
- import type { OfflineModel, OwnedByOrganization } from "./base";
2
- import type { LicenseLevel, LicenseStatus } from "../../enums";
1
+ import { OfflineModel, OwnedByOrganization } from './base';
2
+ import { LicenseLevel, LicenseStatus } from '../../enums';
3
+
3
4
  export interface Transaction {
4
5
  id: string;
5
6
  }
@@ -1,4 +1,5 @@
1
- import type { CreatedByModel, Model } from "./base";
1
+ import { CreatedByModel, Model } from './base';
2
+
2
3
  export interface Organization extends Model, CreatedByModel {
3
4
  id: number;
4
5
  name: string;
@@ -1,6 +1,7 @@
1
- import type { CreatedByModel, Model, OfflineModel, OwnedByOrganization, Payload, SubmittedAtModel } from "./base";
2
- import type { FileWithNameModel } from "../files";
3
- import type { BoundableModel, CanvasBoundableModel } from "./geo";
1
+ import { Model, OfflineModel, OwnedByOrganization, SubmittedAtModel } from './base';
2
+ import { FileWithNameModel } from '../files';
3
+ import { BoundableModel, CanvasBoundableModel } from './geo';
4
+
4
5
  export interface Project extends Model, BoundableModel, CanvasBoundableModel, OwnedByOrganization {
5
6
  id: number;
6
7
  name: string;
@@ -8,10 +9,7 @@ export interface Project extends Model, BoundableModel, CanvasBoundableModel, Ow
8
9
  issues_count?: number;
9
10
  form_submissions_count?: number;
10
11
  }
11
- export interface ProjectFile extends OfflineModel, SubmittedAtModel, CreatedByModel, FileWithNameModel, BoundableModel, CanvasBoundableModel {
12
+ export interface ProjectFile extends OfflineModel, SubmittedAtModel, FileWithNameModel, BoundableModel, CanvasBoundableModel {
12
13
  z_index: number;
13
14
  project: number;
14
15
  }
15
- export type ProjectFilePayload = Omit<Payload<ProjectFile>, "file_name" | "file_sha1" | "file"> & {
16
- file: File;
17
- };
@@ -1,6 +1,6 @@
1
- /// <reference types="@redux-offline/redux-offline" />
2
- import { OfflineState } from "@redux-offline/redux-offline/lib/types";
3
- import type { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState, WorkspaceState } from "../../store";
1
+ import { OfflineState } from '@redux-offline/redux-offline/lib/types';
2
+ import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, TeamState, UserState, VERSION_REDUCER_KEY, VersioningState, WorkspaceState } from '../../store';
3
+
4
4
  export interface BaseState {
5
5
  outboxReducer: OutboxState;
6
6
  offline: OfflineState;
@@ -1,6 +1,7 @@
1
- import type { ColorModel, IconModel, OfflineModel, SubmittedAtModel } from "./base";
2
- import type { Organization } from "./organizations";
3
- import type { User } from "./users";
1
+ import { ColorModel, IconModel, OfflineModel, SubmittedAtModel } from './base';
2
+ import { Organization } from './organizations';
3
+ import { User } from './users';
4
+
4
5
  export interface Team extends OfflineModel, SubmittedAtModel, IconModel, ColorModel {
5
6
  name: string;
6
7
  parent: OfflineModel["offline_id"] | null;
@@ -1,4 +1,5 @@
1
- import type { OptionalFileModel } from "./base";
1
+ import { OptionalFileModel } from './base';
2
+
2
3
  export interface Profile extends OptionalFileModel {
3
4
  favourite_project_ids: number[];
4
5
  tour_step: number;
@@ -1,4 +1,5 @@
1
- import type { CreatedByModel, Model, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
1
+ import { CreatedByModel, Model, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
2
+
2
3
  export interface Workspace extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
3
4
  name: string;
4
5
  project: number;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Argument for standard (Redux) search selectors.
3
3
  */
4
- export type SearchArgs<TExtra = {}> = TExtra & {
4
+ export type SearchArgs<TExtra = object> = TExtra & {
5
5
  searchTerm: string;
6
6
  maxResults: number;
7
7
  };
@@ -1,4 +1,5 @@
1
- import type { OvermapRootState } from "./models";
1
+ import { OvermapRootState } from './models';
2
+
2
3
  export type SelectorWithArgs<TState, TArgs, TRet> = (args: TArgs) => (state: TState) => TRet;
3
4
  export type Selector<TState, TRet> = (state: TState) => TRet;
4
5
  export type OvermapSelectorWithArgs<TArgs, TRet> = SelectorWithArgs<OvermapRootState, TArgs, TRet>;
@@ -31,5 +31,5 @@ export declare class DeferredPromise<T> implements Promise<T> {
31
31
  catch<TResult>(onRejected?: (reason: unknown) => TResult | PromiseLike<TResult>): Promise<T | TResult>;
32
32
  resolve(value?: T | PromiseLike<T>): void;
33
33
  reject(reason?: unknown): void;
34
- finally(_onFinally?: (() => void) | undefined | null): Promise<T>;
34
+ finally(_onFinally?: (() => void) | null): Promise<T>;
35
35
  }
@@ -1,4 +1,5 @@
1
- import { CSSColor } from "../typings";
1
+ import { CSSColor } from '../typings';
2
+
2
3
  export declare const primaryColor: CSSColor;
3
4
  export declare const successColor: CSSColor;
4
5
  export declare const warningColor: CSSColor;
@@ -1,5 +1,6 @@
1
- import L from "leaflet";
2
- import { Bounds, Coordinates, MultiPointGeometry, PointGeometry } from "../typings";
1
+ import { default as L } from 'leaflet';
2
+ import { Bounds, Coordinates, MultiPointGeometry, PointGeometry } from '../typings';
3
+
3
4
  export declare const coordinatesToLiteral: (coordinates: Coordinates) => L.LatLngLiteral;
4
5
  export declare const literalToCoordinates: (literal: L.LatLngLiteral) => Coordinates;
5
6
  /**
@@ -1,4 +1,5 @@
1
- import { FileUploadPayload } from "../typings";
1
+ import { FileUploadPayload } from '../typings';
2
+
2
3
  export declare const getFileS3Key: (file: File, hash?: string) => Promise<string>;
3
4
  export declare function hashFile(file: Blob): Promise<string>;
4
5
  export declare function getFileIdentifier(file: File): string;
@@ -1,2 +1,3 @@
1
- import { Stored, FormRevision } from "../typings";
1
+ import { Stored, FormRevision } from '../typings';
2
+
2
3
  export declare const formRevisionSortFn: (formRevisionA: Stored<FormRevision>, formRevisionB: Stored<FormRevision>) => 1 | -1;
@@ -1,10 +1,10 @@
1
- export * from "./coordinates";
2
- export * from "./file";
3
- export * from "./logging";
4
- export * from "./offline";
5
- export * from "./string";
6
- export * from "./utils";
7
- export * from "./optimization";
8
- export * from "./colors";
9
- export * from "./date";
10
- export * from "./async/DeferredPromise";
1
+ export * from './coordinates';
2
+ export * from './file';
3
+ export * from './logging';
4
+ export * from './offline';
5
+ export * from './string';
6
+ export * from './utils';
7
+ export * from './optimization';
8
+ export * from './colors';
9
+ export * from './date';
10
+ export * from './async/DeferredPromise';
@@ -1,4 +1,5 @@
1
- import { Offline, OfflineModel } from "../typings";
1
+ import { Offline, OfflineModel } from '../typings';
2
+
2
3
  /**
3
4
  * Adds a generated UUID to the "offline_id" key of the object.
4
5
  * @param draft The model data to add the offline_id to
@@ -1,4 +1,5 @@
1
- import { Coordinates, IssueAttachment, OfflineModel, OvermapRootState } from "../typings";
1
+ import { Coordinates, IssueAttachment, OfflineModel, OvermapRootState } from '../typings';
2
+
2
3
  type MemoizedSelectorWithArgs<TArgs, TRet> = (state: OvermapRootState, args: TArgs) => TRet;
3
4
  export declare const restructureCreateSelectorWithArgs: <TArgs, TRet>(selector: MemoizedSelectorWithArgs<TArgs, TRet>) => (args: TArgs) => (state: OvermapRootState) => TRet;
4
5
  export declare function onlyUniqueOfflineIds(value: OfflineModel, index: number, self: OfflineModel[]): boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core functionality for Overmap",
4
4
  "author": "Wôrdn Inc.",
5
5
  "license": "UNLICENSED",
6
- "version": "1.0.71-project-file-improvements.3",
6
+ "version": "1.0.71-remove-login-timeout.0",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",
@@ -15,13 +15,13 @@
15
15
  "lint:fix": "eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0 --fix",
16
16
  "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,html,sass,yaml}\"",
17
17
  "preview": "vite preview",
18
- "prepare": "husky install",
18
+ "prepare": "husky",
19
19
  "test": "npx vitest"
20
20
  },
21
21
  "dependencies": {
22
22
  "@radix-ui/colors": "^3.0.0",
23
23
  "@redux-offline/redux-offline": "^2.6.0",
24
- "@reduxjs/toolkit": "^1.9.5",
24
+ "@reduxjs/toolkit": "^2.8.2",
25
25
  "@types/file-saver": "^2.0.7",
26
26
  "color": "^4.2.3",
27
27
  "dependency-graph": "^1.0.0",
@@ -34,14 +34,14 @@
34
34
  "react-leaflet": "^4.2.1",
35
35
  "redux-persist-migrate": "^5.0.0",
36
36
  "superagent": "^8.1.2",
37
- "uuid": "^9.0.0"
37
+ "uuid": "^11.1.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
41
41
  "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
42
42
  "@overmap-ai/blocks": "^1.0.35-radio-card.2",
43
43
  "@overmap-ai/forms": "^1.0.17-radio-field.16",
44
- "@rollup/plugin-commonjs": "^25.0.4",
44
+ "@rollup/plugin-commonjs": "^28.0.0",
45
45
  "@testing-library/dom": "^9.3.4",
46
46
  "@testing-library/react": "^14.1.2",
47
47
  "@testing-library/user-event": "^14.5.2",
@@ -50,13 +50,12 @@
50
50
  "@types/jwt-decode": "^3.1.0",
51
51
  "@types/leaflet": "^1.9.3",
52
52
  "@types/node": "^20.12.11",
53
- "@types/react": "^19.0.8",
53
+ "@types/react": "^19.1.8",
54
54
  "@types/react-dom": "^19.0.3",
55
- "@types/react-redux": "^7.1.26",
56
55
  "@types/superagent": "^4.1.18",
57
56
  "@types/uuid": "^9.0.3",
58
- "@typescript-eslint/eslint-plugin": "^6.4.1",
59
- "@typescript-eslint/parser": "^6.4.1",
57
+ "@typescript-eslint/eslint-plugin": "^8.35.1",
58
+ "@typescript-eslint/parser": "^8.35.1",
60
59
  "@vitejs/plugin-react-swc": "^3.3.2",
61
60
  "@vitest/coverage-v8": "^1.2.1",
62
61
  "eslint": "^8.47.0",
@@ -68,23 +67,20 @@
68
67
  "eslint-plugin-react-refresh": "^0.4.3",
69
68
  "eslint-plugin-simple-import-sort": "^10.0.0",
70
69
  "eslint-plugin-vitest": "^0.3.20",
71
- "happy-dom": "^13.3.1",
72
- "husky": "^8.0.3",
70
+ "happy-dom": "^15.10.2",
71
+ "husky": "^9.1.7",
73
72
  "jsdom": "^23.2.0",
74
73
  "leaflet": "^1.9.0",
75
74
  "lint-staged": "^15.1.0",
76
75
  "prettier": "^3.0.2",
77
- "react": "^19.0.0",
76
+ "react": "^19.1.0",
78
77
  "react-dom": "^19.0.0",
79
- "react-hooks": "^1.0.1",
80
- "react-redux": "^8.1.2",
81
- "redux": "^4.2.1",
82
78
  "rollup-plugin-polyfill-node": "^0.12.0",
83
79
  "typescript": "^5.2.2",
84
- "vite": "^4.4.5",
80
+ "vite": "^6.3.4",
85
81
  "vite-plugin-dts": "^3.5.2",
86
82
  "vite-plugin-externalize-deps": "^0.7.0",
87
- "vitest": "^1.2.1"
83
+ "vitest": "3.2.4"
88
84
  },
89
85
  "peerDependencies": {
90
86
  "@overmap-ai/blocks": "^1.0.35-radio-card.2",
@@ -92,11 +88,9 @@
92
88
  "@tiptap/core": "^2.4.0",
93
89
  "leaflet": "^1.9.0",
94
90
  "react": ">=18.2.0 <20.0.0",
95
- "react-dom": ">=18.2.0 <20.0.0",
96
- "react-redux": "^8.1.2"
91
+ "react-dom": ">=18.2.0 <20.0.0"
97
92
  },
98
93
  "resolutions": {
99
- "//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
100
94
  "strip-ansi": "6.0.1",
101
95
  "string-width": "4.2.2",
102
96
  "wrap-ansi": "7.0.0"
@@ -123,5 +117,9 @@
123
117
  },
124
118
  "bugs": {
125
119
  "url": "https://github.com/hemora-app/overmap-core/issues"
120
+ },
121
+ "volta": {
122
+ "node": "22.17.0",
123
+ "yarn": "4.9.2"
126
124
  }
127
125
  }