@overmap-ai/core 1.0.71-mapbox.5 → 1.0.71-mapbox.7

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 (153) 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 +2035 -1311
  6. package/dist/overmap-core.js.map +1 -1
  7. package/dist/overmap-core.umd.cjs +2037 -1312
  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 +4 -3
  17. package/dist/sdk/services/AssetAttachmentService.d.ts +39 -16
  18. package/dist/sdk/services/AssetService.d.ts +6 -5
  19. package/dist/sdk/services/AssetStageCompletionService.d.ts +5 -4
  20. package/dist/sdk/services/AssetStageService.d.ts +6 -7
  21. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +38 -16
  22. package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +13 -0
  23. package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +21 -0
  24. package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +13 -0
  25. package/dist/sdk/services/AssetTypeFieldsService.d.ts +9 -0
  26. package/dist/sdk/services/AssetTypeService.d.ts +6 -5
  27. package/dist/sdk/services/BaseApiService.d.ts +5 -4
  28. package/dist/sdk/services/BaseAttachmentService.d.ts +22 -23
  29. package/dist/sdk/services/BaseAuthService.d.ts +5 -4
  30. package/dist/sdk/services/BaseService.d.ts +7 -5
  31. package/dist/sdk/services/BaseUploadService.d.ts +6 -4
  32. package/dist/sdk/services/CategoryService.d.ts +5 -4
  33. package/dist/sdk/services/DocumentAttachmentService.d.ts +37 -16
  34. package/dist/sdk/services/DocumentService.d.ts +5 -4
  35. package/dist/sdk/services/EmailDomainsService.d.ts +4 -3
  36. package/dist/sdk/services/EmailVerificationService.d.ts +4 -3
  37. package/dist/sdk/services/FileService.d.ts +5 -4
  38. package/dist/sdk/services/FormRevisionAttachmentService.d.ts +13 -0
  39. package/dist/sdk/services/FormRevisionService.d.ts +9 -0
  40. package/dist/sdk/services/FormService.d.ts +15 -17
  41. package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +14 -0
  42. package/dist/sdk/services/FormSubmissionService.d.ts +12 -31
  43. package/dist/sdk/services/GeoImageService.d.ts +5 -4
  44. package/dist/sdk/services/IssueAssociationService.d.ts +6 -5
  45. package/dist/sdk/services/IssueAttachmentService.d.ts +38 -16
  46. package/dist/sdk/services/IssueCommentService.d.ts +5 -4
  47. package/dist/sdk/services/IssueService.d.ts +5 -7
  48. package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +14 -0
  49. package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +11 -0
  50. package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +13 -0
  51. package/dist/sdk/services/IssueTypeFieldsService.d.ts +9 -0
  52. package/dist/sdk/services/IssueTypeService.d.ts +5 -4
  53. package/dist/sdk/services/IssueUpdateService.d.ts +4 -3
  54. package/dist/sdk/services/JWTAuthService.d.ts +7 -6
  55. package/dist/sdk/services/LicenseService.d.ts +4 -3
  56. package/dist/sdk/services/OrganizationAccessService.d.ts +4 -3
  57. package/dist/sdk/services/OrganizationService.d.ts +4 -3
  58. package/dist/sdk/services/ProjectAccessService.d.ts +4 -3
  59. package/dist/sdk/services/ProjectAttachmentService.d.ts +38 -16
  60. package/dist/sdk/services/ProjectFileService.d.ts +5 -4
  61. package/dist/sdk/services/ProjectService.d.ts +4 -3
  62. package/dist/sdk/services/TeamService.d.ts +5 -4
  63. package/dist/sdk/services/UserService.d.ts +4 -3
  64. package/dist/sdk/services/WorkspaceService.d.ts +5 -4
  65. package/dist/sdk/services/index.d.ts +45 -34
  66. package/dist/sdk/typings.d.ts +9 -8
  67. package/dist/store/adapter.d.ts +12 -11
  68. package/dist/store/index.d.ts +2 -2
  69. package/dist/store/migrations.d.ts +2 -1
  70. package/dist/store/slices/agentsSlice.d.ts +11 -10
  71. package/dist/store/slices/assetAttachmentSlice.d.ts +16 -21
  72. package/dist/store/slices/assetSlice.d.ts +35 -24
  73. package/dist/store/slices/assetStageCompletionSlice.d.ts +33 -22
  74. package/dist/store/slices/assetStageSlice.d.ts +36 -26
  75. package/dist/store/slices/assetTypeAttachmentSlice.d.ts +16 -21
  76. package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +64 -0
  77. package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +64 -0
  78. package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +63 -0
  79. package/dist/store/slices/assetTypeFieldsSlice.d.ts +64 -0
  80. package/dist/store/slices/assetTypeSlice.d.ts +16 -21
  81. package/dist/store/slices/authSlice.d.ts +10 -9
  82. package/dist/store/slices/categorySlice.d.ts +30 -16
  83. package/dist/store/slices/documentAttachmentSlice.d.ts +16 -21
  84. package/dist/store/slices/documentSlice.d.ts +30 -13
  85. package/dist/store/slices/emailDomainsSlice.d.ts +29 -15
  86. package/dist/store/slices/fileSlice.d.ts +7 -6
  87. package/dist/store/slices/formRevisionAttachmentSlice.d.ts +16 -21
  88. package/dist/store/slices/formRevisionSlice.d.ts +37 -27
  89. package/dist/store/slices/formSlice.d.ts +36 -26
  90. package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +16 -21
  91. package/dist/store/slices/formSubmissionSlice.d.ts +16 -27
  92. package/dist/store/slices/geoImageSlice.d.ts +35 -24
  93. package/dist/store/slices/index.d.ts +46 -38
  94. package/dist/store/slices/issueAssociationSlice.d.ts +35 -24
  95. package/dist/store/slices/issueAttachmentSlice.d.ts +16 -21
  96. package/dist/store/slices/issueCommentSlice.d.ts +13 -18
  97. package/dist/store/slices/issueSlice.d.ts +13 -18
  98. package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +64 -0
  99. package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +63 -0
  100. package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +63 -0
  101. package/dist/store/slices/issueTypeFieldsSlice.d.ts +65 -0
  102. package/dist/store/slices/issueTypeSlice.d.ts +12 -14
  103. package/dist/store/slices/issueUpdateSlice.d.ts +13 -18
  104. package/dist/store/slices/licenseSlice.d.ts +10 -9
  105. package/dist/store/slices/organizationAccessSlice.d.ts +11 -13
  106. package/dist/store/slices/organizationSlice.d.ts +27 -10
  107. package/dist/store/slices/outboxSlice.d.ts +15 -15
  108. package/dist/store/slices/projectAccessSlice.d.ts +11 -16
  109. package/dist/store/slices/projectAttachmentSlice.d.ts +16 -21
  110. package/dist/store/slices/projectFileSlice.d.ts +40 -29
  111. package/dist/store/slices/projectSlice.d.ts +10 -9
  112. package/dist/store/slices/rehydratedSlice.d.ts +7 -6
  113. package/dist/store/slices/teamSlice.d.ts +12 -14
  114. package/dist/store/slices/userSlice.d.ts +14 -13
  115. package/dist/store/slices/versioningSlice.d.ts +3 -2
  116. package/dist/store/slices/workspaceSlice.d.ts +31 -17
  117. package/dist/store/store.d.ts +15 -7
  118. package/dist/typings/files.d.ts +8 -4
  119. package/dist/typings/index.d.ts +6 -6
  120. package/dist/typings/models/access.d.ts +3 -2
  121. package/dist/typings/models/agents.d.ts +3 -2
  122. package/dist/typings/models/assets.d.ts +20 -4
  123. package/dist/typings/models/attachments.d.ts +3 -7
  124. package/dist/typings/models/base.d.ts +3 -2
  125. package/dist/typings/models/categories.d.ts +3 -2
  126. package/dist/typings/models/documents.d.ts +2 -1
  127. package/dist/typings/models/emailDomain.d.ts +2 -1
  128. package/dist/typings/models/emailVerification.d.ts +3 -2
  129. package/dist/typings/models/fields.d.ts +17 -0
  130. package/dist/typings/models/forms.d.ts +14 -30
  131. package/dist/typings/models/geo.d.ts +2 -1
  132. package/dist/typings/models/geoImages.d.ts +4 -3
  133. package/dist/typings/models/index.d.ts +22 -21
  134. package/dist/typings/models/issueTypes.d.ts +3 -2
  135. package/dist/typings/models/issues.d.ts +22 -6
  136. package/dist/typings/models/license.d.ts +3 -2
  137. package/dist/typings/models/organizations.d.ts +2 -1
  138. package/dist/typings/models/projects.d.ts +4 -3
  139. package/dist/typings/models/store.d.ts +11 -3
  140. package/dist/typings/models/teams.d.ts +4 -3
  141. package/dist/typings/models/users.d.ts +2 -1
  142. package/dist/typings/models/workspace.d.ts +2 -1
  143. package/dist/typings/search.d.ts +1 -1
  144. package/dist/typings/store.d.ts +2 -1
  145. package/dist/utils/async/DeferredPromise.d.ts +1 -1
  146. package/dist/utils/colors.d.ts +2 -1
  147. package/dist/utils/coordinates.d.ts +2 -1
  148. package/dist/utils/file.d.ts +3 -2
  149. package/dist/utils/forms.d.ts +2 -1
  150. package/dist/utils/index.d.ts +10 -10
  151. package/dist/utils/offline.d.ts +2 -1
  152. package/dist/utils/utils.d.ts +2 -1
  153. package/package.json +20 -21
@@ -1,9 +1,12 @@
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
+ import { BaseSerializedObject, ISerializedField } from '@overmap-ai/forms';
8
+ import { FieldsAttachmentModel, FieldsModel, FieldValuesModel } from './fields';
9
+
7
10
  /**
8
11
  * Represents a model instance that has been submitted to the backend. Some properties (depending on which model, but in
9
12
  * all cases, the `offline_id`) are guaranteed to be set.
@@ -95,3 +98,16 @@ export interface IssueAssociation extends OfflineModel, SubmittedAtModel, Create
95
98
  issue?: string;
96
99
  asset?: string;
97
100
  }
101
+ export interface IssueTypeFields<TFields extends BaseSerializedObject = ISerializedField> extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsModel<TFields> {
102
+ issue_type: string;
103
+ }
104
+ export interface IssueTypeFieldsAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
105
+ fields_revision: string;
106
+ }
107
+ export interface IssueTypeFieldValues extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldValuesModel {
108
+ fields_revision: string;
109
+ issue: string;
110
+ }
111
+ export interface IssueTypeFieldValuesAttachment extends OfflineModel, SubmittedAtModel, TimestampedModel, CreatedByModel, FieldsAttachmentModel {
112
+ field_values: string;
113
+ }
@@ -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 { Model, OfflineModel, OwnedByOrganization, 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;
@@ -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, AssetTypeFieldsAttachmentState, AssetTypeFieldsState, AssetTypeFieldValuesAttachmentState, AssetTypeFieldValuesState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, GeoImageSliceState, IssueAssociationSliceState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeFieldsAttachmentState, IssueTypeFieldsState, IssueTypeFieldValuesAttachmentState, IssueTypeFieldValuesState, 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;
@@ -43,4 +43,12 @@ export interface OvermapRootState extends BaseState {
43
43
  agentsReducer: AgentsState;
44
44
  geoImageReducer: GeoImageSliceState;
45
45
  issueAssociationReducer: IssueAssociationSliceState;
46
+ issueTypeFieldsReducer: IssueTypeFieldsState;
47
+ issueTypeFieldValuesReducer: IssueTypeFieldValuesState;
48
+ issueTypeFieldsAttachmentReducer: IssueTypeFieldsAttachmentState;
49
+ issueTypeFieldValuesAttachmentReducer: IssueTypeFieldValuesAttachmentState;
50
+ assetTypeFieldsReducer: AssetTypeFieldsState;
51
+ assetTypeFieldValuesReducer: AssetTypeFieldValuesState;
52
+ assetTypeFieldsAttachmentReducer: AssetTypeFieldsAttachmentState;
53
+ assetTypeFieldValuesAttachmentReducer: AssetTypeFieldValuesAttachmentState;
46
54
  }
@@ -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,4 +1,5 @@
1
- import type { MultiPoint, Point, Position } from "geojson";
1
+ import { MultiPoint, Point, Position } from 'geojson';
2
+
2
3
  export declare const createPointGeometry: (position: Position) => Point;
3
4
  export declare const createMultiPointGeometry: (coordinates: Position[]) => MultiPoint;
4
5
  export declare const coordinatesAreEqual: (a: Position, b: Position) => boolean;
@@ -1,4 +1,5 @@
1
- import { FileUploadPayload } from "../typings";
1
+ import { FilePayload } 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;
@@ -6,7 +7,7 @@ export declare function getRenamedFile(file: File, newName: string): File & {
6
7
  name: string;
7
8
  };
8
9
  export declare function downloadInMemoryFile(filename: string, text: string): void;
9
- export declare const constructUploadedFilePayloads: (files: File[]) => Promise<FileUploadPayload[]>;
10
+ export declare const constructUploadedFilePayloads: (files: File[]) => Promise<FilePayload[]>;
10
11
  export declare const fileToBlob: (dataUrl: string) => Promise<Blob>;
11
12
  export declare const blobToBase64: (blob: Blob) => Promise<string>;
12
13
  /** Converts a profile `file` and `fileSha1` into an img src that can be rendered. This relies on an API request. */
@@ -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 type { IssueAttachment, OfflineModel, OvermapRootState } from "../typings";
1
+ import { 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-mapbox.5",
6
+ "version": "1.0.71-mapbox.7",
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
  "color": "^4.2.3",
26
26
  "dependency-graph": "^1.0.0",
27
27
  "file-saver": "^2.0.5",
@@ -30,29 +30,29 @@
30
30
  "localforage": "^1.10.0",
31
31
  "redux-persist-migrate": "^5.0.0",
32
32
  "superagent": "^8.1.2",
33
- "uuid": "^9.0.0"
33
+ "uuid": "^11.1.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
37
37
  "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
38
38
  "@overmap-ai/blocks": "^1.0.35-radio-card.2",
39
39
  "@overmap-ai/forms": "^1.0.17-radio-field.16",
40
- "@rollup/plugin-commonjs": "^25.0.4",
40
+ "@rollup/plugin-commonjs": "^28.0.0",
41
41
  "@testing-library/dom": "^9.3.4",
42
42
  "@testing-library/react": "^14.1.2",
43
43
  "@testing-library/user-event": "^14.5.2",
44
44
  "@tiptap/core": "^2.4.0",
45
45
  "@types/color": "^3.0.4",
46
+ "@types/file-saver": "^2.0.7",
47
+ "@types/geojson": "^7946.0.16",
46
48
  "@types/jwt-decode": "^3.1.0",
47
49
  "@types/node": "^20.12.11",
48
- "@types/react": "^19.0.8",
50
+ "@types/react": "^19.1.8",
49
51
  "@types/react-dom": "^19.0.3",
50
- "@types/react-redux": "^7.1.26",
51
52
  "@types/superagent": "^4.1.18",
52
53
  "@types/uuid": "^9.0.3",
53
- "@types/file-saver": "^2.0.7",
54
- "@typescript-eslint/eslint-plugin": "^6.4.1",
55
- "@typescript-eslint/parser": "^6.4.1",
54
+ "@typescript-eslint/eslint-plugin": "^8.35.1",
55
+ "@typescript-eslint/parser": "^8.35.1",
56
56
  "@vitejs/plugin-react-swc": "^3.3.2",
57
57
  "@vitest/coverage-v8": "^1.2.1",
58
58
  "eslint": "^8.47.0",
@@ -64,33 +64,28 @@
64
64
  "eslint-plugin-react-refresh": "^0.4.3",
65
65
  "eslint-plugin-simple-import-sort": "^10.0.0",
66
66
  "eslint-plugin-vitest": "^0.3.20",
67
- "happy-dom": "^13.3.1",
68
- "husky": "^8.0.3",
67
+ "happy-dom": "^15.10.2",
68
+ "husky": "^9.1.7",
69
69
  "jsdom": "^23.2.0",
70
70
  "lint-staged": "^15.1.0",
71
71
  "prettier": "^3.0.2",
72
- "react": "^19.0.0",
72
+ "react": "^19.1.0",
73
73
  "react-dom": "^19.0.0",
74
- "react-hooks": "^1.0.1",
75
- "react-redux": "^8.1.2",
76
- "redux": "^4.2.1",
77
74
  "rollup-plugin-polyfill-node": "^0.12.0",
78
75
  "typescript": "^5.2.2",
79
- "vite": "^4.4.5",
76
+ "vite": "^6.3.4",
80
77
  "vite-plugin-dts": "^3.5.2",
81
78
  "vite-plugin-externalize-deps": "^0.7.0",
82
- "vitest": "^1.2.1"
79
+ "vitest": "3.2.4"
83
80
  },
84
81
  "peerDependencies": {
85
82
  "@overmap-ai/blocks": "^1.0.35-radio-card.2",
86
83
  "@overmap-ai/forms": "^1.0.17-radio-field.16",
87
84
  "@tiptap/core": "^2.4.0",
88
85
  "react": ">=18.2.0 <20.0.0",
89
- "react-dom": ">=18.2.0 <20.0.0",
90
- "react-redux": "^8.1.2"
86
+ "react-dom": ">=18.2.0 <20.0.0"
91
87
  },
92
88
  "resolutions": {
93
- "//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
94
89
  "strip-ansi": "6.0.1",
95
90
  "string-width": "4.2.2",
96
91
  "wrap-ansi": "7.0.0"
@@ -117,5 +112,9 @@
117
112
  },
118
113
  "bugs": {
119
114
  "url": "https://github.com/hemora-app/overmap-core/issues"
115
+ },
116
+ "volta": {
117
+ "node": "22.17.0",
118
+ "yarn": "4.9.2"
120
119
  }
121
120
  }