@overmap-ai/core 1.0.71-workspace-settings.9 → 1.0.71

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 (156) hide show
  1. package/dist/constants/array.d.ts +1 -0
  2. package/dist/constants/defaults.d.ts +1 -1
  3. package/dist/constants/index.d.ts +3 -3
  4. package/dist/enums/index.d.ts +5 -5
  5. package/dist/index.d.ts +6 -6
  6. package/dist/overmap-core.js +6004 -7259
  7. package/dist/overmap-core.umd.cjs +12 -7951
  8. package/dist/sdk/base.d.ts +7 -6
  9. package/dist/sdk/classes/OutboxCoordinator.d.ts +3 -4
  10. package/dist/sdk/classes/index.d.ts +1 -1
  11. package/dist/sdk/errors.d.ts +2 -1
  12. package/dist/sdk/globals.d.ts +6 -5
  13. package/dist/sdk/index.d.ts +6 -6
  14. package/dist/sdk/sdk.d.ts +5 -5
  15. package/dist/sdk/services/AgentService.d.ts +5 -10
  16. package/dist/sdk/services/AssetAttachmentService.d.ts +38 -16
  17. package/dist/sdk/services/AssetService.d.ts +5 -5
  18. package/dist/sdk/services/AssetStageCompletionService.d.ts +4 -4
  19. package/dist/sdk/services/AssetStageService.d.ts +5 -7
  20. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +37 -16
  21. package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +12 -0
  22. package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +20 -0
  23. package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +12 -0
  24. package/dist/sdk/services/AssetTypeFieldsService.d.ts +8 -0
  25. package/dist/sdk/services/AssetTypeService.d.ts +5 -5
  26. package/dist/sdk/services/BaseApiService.d.ts +4 -4
  27. package/dist/sdk/services/BaseAttachmentService.d.ts +21 -23
  28. package/dist/sdk/services/BaseAuthService.d.ts +4 -4
  29. package/dist/sdk/services/BaseService.d.ts +6 -5
  30. package/dist/sdk/services/BaseUploadService.d.ts +5 -4
  31. package/dist/sdk/services/CategoryService.d.ts +4 -4
  32. package/dist/sdk/services/DocumentAttachmentService.d.ts +36 -16
  33. package/dist/sdk/services/DocumentService.d.ts +4 -4
  34. package/dist/sdk/services/EmailDomainsService.d.ts +3 -3
  35. package/dist/sdk/services/EmailVerificationService.d.ts +3 -3
  36. package/dist/sdk/services/FileService.d.ts +4 -4
  37. package/dist/sdk/services/FormRevisionAttachmentService.d.ts +12 -0
  38. package/dist/sdk/services/FormRevisionService.d.ts +8 -0
  39. package/dist/sdk/services/FormService.d.ts +14 -16
  40. package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +13 -0
  41. package/dist/sdk/services/FormSubmissionService.d.ts +11 -30
  42. package/dist/sdk/services/GeoImageService.d.ts +4 -4
  43. package/dist/sdk/services/IssueAssociationService.d.ts +5 -5
  44. package/dist/sdk/services/IssueAttachmentService.d.ts +37 -16
  45. package/dist/sdk/services/IssueCommentService.d.ts +4 -4
  46. package/dist/sdk/services/IssueService.d.ts +4 -7
  47. package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +13 -0
  48. package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +10 -0
  49. package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +12 -0
  50. package/dist/sdk/services/IssueTypeFieldsService.d.ts +8 -0
  51. package/dist/sdk/services/IssueTypeService.d.ts +4 -4
  52. package/dist/sdk/services/IssueUpdateService.d.ts +3 -3
  53. package/dist/sdk/services/JWTAuthService.d.ts +6 -6
  54. package/dist/sdk/services/LicenseService.d.ts +3 -3
  55. package/dist/sdk/services/OrganizationAccessService.d.ts +3 -3
  56. package/dist/sdk/services/OrganizationService.d.ts +3 -3
  57. package/dist/sdk/services/ProjectAccessService.d.ts +3 -3
  58. package/dist/sdk/services/ProjectAttachmentService.d.ts +37 -16
  59. package/dist/sdk/services/ProjectFileService.d.ts +4 -4
  60. package/dist/sdk/services/ProjectService.d.ts +3 -3
  61. package/dist/sdk/services/TeamService.d.ts +4 -4
  62. package/dist/sdk/services/UserService.d.ts +3 -3
  63. package/dist/sdk/services/WorkspaceService.d.ts +4 -4
  64. package/dist/sdk/services/index.d.ts +45 -34
  65. package/dist/sdk/typings.d.ts +8 -8
  66. package/dist/store/adapter.d.ts +11 -11
  67. package/dist/store/index.d.ts +2 -2
  68. package/dist/store/migrations.d.ts +1 -1
  69. package/dist/store/slices/agentsSlice.d.ts +10 -10
  70. package/dist/store/slices/assetAttachmentSlice.d.ts +15 -21
  71. package/dist/store/slices/assetSlice.d.ts +34 -24
  72. package/dist/store/slices/assetStageCompletionSlice.d.ts +32 -23
  73. package/dist/store/slices/assetStageSlice.d.ts +35 -26
  74. package/dist/store/slices/assetTypeAttachmentSlice.d.ts +15 -21
  75. package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +63 -0
  76. package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +63 -0
  77. package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +62 -0
  78. package/dist/store/slices/assetTypeFieldsSlice.d.ts +63 -0
  79. package/dist/store/slices/assetTypeSlice.d.ts +15 -21
  80. package/dist/store/slices/authSlice.d.ts +9 -9
  81. package/dist/store/slices/categorySlice.d.ts +29 -17
  82. package/dist/store/slices/documentAttachmentSlice.d.ts +15 -21
  83. package/dist/store/slices/documentSlice.d.ts +29 -13
  84. package/dist/store/slices/emailDomainsSlice.d.ts +28 -15
  85. package/dist/store/slices/fileSlice.d.ts +6 -6
  86. package/dist/store/slices/formRevisionAttachmentSlice.d.ts +15 -21
  87. package/dist/store/slices/formRevisionSlice.d.ts +36 -27
  88. package/dist/store/slices/formSlice.d.ts +32 -26
  89. package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +15 -21
  90. package/dist/store/slices/formSubmissionSlice.d.ts +15 -27
  91. package/dist/store/slices/geoImageSlice.d.ts +36 -22
  92. package/dist/store/slices/index.d.ts +46 -38
  93. package/dist/store/slices/issueAssociationSlice.d.ts +34 -24
  94. package/dist/store/slices/issueAttachmentSlice.d.ts +15 -21
  95. package/dist/store/slices/issueCommentSlice.d.ts +12 -18
  96. package/dist/store/slices/issueSlice.d.ts +12 -24
  97. package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +63 -0
  98. package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +62 -0
  99. package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +62 -0
  100. package/dist/store/slices/issueTypeFieldsSlice.d.ts +64 -0
  101. package/dist/store/slices/issueTypeSlice.d.ts +11 -14
  102. package/dist/store/slices/issueUpdateSlice.d.ts +12 -18
  103. package/dist/store/slices/licenseSlice.d.ts +9 -9
  104. package/dist/store/slices/organizationAccessSlice.d.ts +10 -13
  105. package/dist/store/slices/organizationSlice.d.ts +25 -10
  106. package/dist/store/slices/outboxSlice.d.ts +14 -15
  107. package/dist/store/slices/projectAccessSlice.d.ts +10 -17
  108. package/dist/store/slices/projectAttachmentSlice.d.ts +15 -21
  109. package/dist/store/slices/projectFileSlice.d.ts +62 -31
  110. package/dist/store/slices/projectSlice.d.ts +9 -24
  111. package/dist/store/slices/rehydratedSlice.d.ts +6 -6
  112. package/dist/store/slices/teamSlice.d.ts +11 -14
  113. package/dist/store/slices/userSlice.d.ts +13 -13
  114. package/dist/store/slices/versioningSlice.d.ts +2 -2
  115. package/dist/store/slices/workspaceSlice.d.ts +30 -17
  116. package/dist/store/store.d.ts +14 -7
  117. package/dist/typings/files.d.ts +8 -4
  118. package/dist/typings/index.d.ts +6 -6
  119. package/dist/typings/models/access.d.ts +2 -2
  120. package/dist/typings/models/agents.d.ts +2 -12
  121. package/dist/typings/models/assets.d.ts +19 -4
  122. package/dist/typings/models/attachments.d.ts +2 -7
  123. package/dist/typings/models/base.d.ts +2 -5
  124. package/dist/typings/models/categories.d.ts +2 -2
  125. package/dist/typings/models/documents.d.ts +1 -1
  126. package/dist/typings/models/emailDomain.d.ts +1 -1
  127. package/dist/typings/models/emailVerification.d.ts +2 -2
  128. package/dist/typings/models/fields.d.ts +16 -0
  129. package/dist/typings/models/forms.d.ts +13 -116
  130. package/dist/typings/models/geo.d.ts +5 -14
  131. package/dist/typings/models/geoImages.d.ts +3 -3
  132. package/dist/typings/models/index.d.ts +22 -21
  133. package/dist/typings/models/issueTypes.d.ts +2 -2
  134. package/dist/typings/models/issues.d.ts +21 -6
  135. package/dist/typings/models/license.d.ts +2 -2
  136. package/dist/typings/models/organizations.d.ts +1 -1
  137. package/dist/typings/models/projects.d.ts +3 -3
  138. package/dist/typings/models/store.d.ts +10 -3
  139. package/dist/typings/models/teams.d.ts +3 -3
  140. package/dist/typings/models/users.d.ts +1 -1
  141. package/dist/typings/models/workspace.d.ts +1 -1
  142. package/dist/typings/search.d.ts +1 -1
  143. package/dist/typings/store.d.ts +1 -1
  144. package/dist/utils/async/DeferredPromise.d.ts +1 -1
  145. package/dist/utils/coordinates.d.ts +4 -18
  146. package/dist/utils/file.d.ts +2 -2
  147. package/dist/utils/forms.d.ts +1 -1
  148. package/dist/utils/index.d.ts +9 -10
  149. package/dist/utils/offline.d.ts +1 -1
  150. package/dist/utils/optimization.d.ts +1 -0
  151. package/dist/utils/utils.d.ts +1 -7
  152. package/package.json +46 -53
  153. package/dist/enums/ui.d.ts +0 -36
  154. package/dist/overmap-core.js.map +0 -1
  155. package/dist/overmap-core.umd.cjs.map +0 -1
  156. package/dist/utils/colors.d.ts +0 -14
@@ -1,4 +1,4 @@
1
- import type { CreatedByModel, Model } from "./base";
1
+ import { CreatedByModel, Model } from './base';
2
2
  export interface Organization extends Model, CreatedByModel {
3
3
  id: number;
4
4
  name: string;
@@ -1,6 +1,6 @@
1
- import type { Model, OfflineModel, OwnedByOrganization, SubmittedAtModel } from "./base";
2
- import type { FileWithNameModel } from "../files";
3
- import type { BoundableModel, CanvasBoundableModel } from "./geo";
1
+ import { FileWithNameModel } from '../files';
2
+ import { Model, OfflineModel, OwnedByOrganization, SubmittedAtModel } from './base';
3
+ import { BoundableModel, CanvasBoundableModel } from './geo';
4
4
  export interface Project extends Model, BoundableModel, CanvasBoundableModel, OwnedByOrganization {
5
5
  id: number;
6
6
  name: string;
@@ -1,6 +1,5 @@
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';
4
3
  export interface BaseState {
5
4
  outboxReducer: OutboxState;
6
5
  offline: OfflineState;
@@ -43,4 +42,12 @@ export interface OvermapRootState extends BaseState {
43
42
  agentsReducer: AgentsState;
44
43
  geoImageReducer: GeoImageSliceState;
45
44
  issueAssociationReducer: IssueAssociationSliceState;
45
+ issueTypeFieldsReducer: IssueTypeFieldsState;
46
+ issueTypeFieldValuesReducer: IssueTypeFieldValuesState;
47
+ issueTypeFieldsAttachmentReducer: IssueTypeFieldsAttachmentState;
48
+ issueTypeFieldValuesAttachmentReducer: IssueTypeFieldValuesAttachmentState;
49
+ assetTypeFieldsReducer: AssetTypeFieldsState;
50
+ assetTypeFieldValuesReducer: AssetTypeFieldValuesState;
51
+ assetTypeFieldsAttachmentReducer: AssetTypeFieldsAttachmentState;
52
+ assetTypeFieldValuesAttachmentReducer: AssetTypeFieldValuesAttachmentState;
46
53
  }
@@ -1,6 +1,6 @@
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
  export interface Team extends OfflineModel, SubmittedAtModel, IconModel, ColorModel {
5
5
  name: string;
6
6
  parent: OfflineModel["offline_id"] | null;
@@ -1,4 +1,4 @@
1
- import type { OptionalFileModel } from "./base";
1
+ import { OptionalFileModel } from './base';
2
2
  export interface Profile extends OptionalFileModel {
3
3
  favourite_project_ids: number[];
4
4
  tour_step: number;
@@ -1,4 +1,4 @@
1
- import type { CreatedByModel, Model, OfflineModel, SubmittedAtModel, TimestampedModel } from "./base";
1
+ import { CreatedByModel, Model, OfflineModel, SubmittedAtModel, TimestampedModel } from './base';
2
2
  export interface Workspace extends OfflineModel, TimestampedModel, SubmittedAtModel, CreatedByModel {
3
3
  name: string;
4
4
  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,4 @@
1
- import type { OvermapRootState } from "./models";
1
+ import { OvermapRootState } from './models';
2
2
  export type SelectorWithArgs<TState, TArgs, TRet> = (args: TArgs) => (state: TState) => TRet;
3
3
  export type Selector<TState, TRet> = (state: TState) => TRet;
4
4
  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,18 +1,4 @@
1
- import L from "leaflet";
2
- import { Bounds, Coordinates, MultiPointGeometry, PointGeometry } from "../typings";
3
- export declare const coordinatesToLiteral: (coordinates: Coordinates) => L.LatLngLiteral;
4
- export declare const literalToCoordinates: (literal: L.LatLngLiteral) => Coordinates;
5
- /**
6
- * Flip coordinates from [lng, lat] to [lat, lng]
7
- */
8
- export declare const flipCoordinates: (coordinates: L.LatLngTuple) => Coordinates;
9
- export declare const flipBounds: (bounds: Bounds) => Bounds;
10
- export declare function offsetPositionByMeters(originalPosition: L.LatLng, latMeters: number, lngMeters: number): L.LatLngLiteral;
11
- export declare const createPointGeometry: (coordinates: Coordinates) => PointGeometry;
12
- export declare const coordinatesAreEqual: (a: Coordinates, b: Coordinates) => boolean;
13
- export declare const coordinatesToText: (coordinates: Coordinates | null | undefined, decimalPlaces?: number) => string;
14
- export declare const coordinatesToUrlText: (coordinates: Coordinates) => string;
15
- export declare const openCoordsInGoogleMaps: (coordinates: Coordinates) => void;
16
- export declare const openDirectionsInGoogleMaps: (startingPoint: Coordinates, destination: Coordinates) => void;
17
- export declare const worldBounds: MultiPointGeometry;
18
- export declare const createMultiPointGeometry: (coordinates: [Coordinates, Coordinates]) => MultiPointGeometry;
1
+ import { MultiPoint, Point, Position } from 'geojson';
2
+ export declare const createPointGeometry: (position: Position) => Point;
3
+ export declare const createMultiPointGeometry: (coordinates: Position[]) => MultiPoint;
4
+ export declare const coordinatesAreEqual: (a: Position, b: Position) => boolean;
@@ -1,4 +1,4 @@
1
- import { FileUploadPayload } from "../typings";
1
+ import { FilePayload } from '../typings';
2
2
  export declare const getFileS3Key: (file: File, hash?: string) => Promise<string>;
3
3
  export declare function hashFile(file: Blob): Promise<string>;
4
4
  export declare function getFileIdentifier(file: File): string;
@@ -6,7 +6,7 @@ export declare function getRenamedFile(file: File, newName: string): File & {
6
6
  name: string;
7
7
  };
8
8
  export declare function downloadInMemoryFile(filename: string, text: string): void;
9
- export declare const constructUploadedFilePayloads: (files: File[]) => Promise<FileUploadPayload[]>;
9
+ export declare const constructUploadedFilePayloads: (files: File[]) => Promise<FilePayload[]>;
10
10
  export declare const fileToBlob: (dataUrl: string) => Promise<Blob>;
11
11
  export declare const blobToBase64: (blob: Blob) => Promise<string>;
12
12
  /** Converts a profile `file` and `fileSha1` into an img src that can be rendered. This relies on an API request. */
@@ -1,2 +1,2 @@
1
- import { Stored, FormRevision } from "../typings";
1
+ import { FormRevision, Stored } from '../typings';
2
2
  export declare const formRevisionSortFn: (formRevisionA: Stored<FormRevision>, formRevisionB: Stored<FormRevision>) => 1 | -1;
@@ -1,10 +1,9 @@
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 './async/DeferredPromise';
2
+ export * from './coordinates';
3
+ export * from './date';
4
+ export * from './file';
5
+ export * from './logging';
6
+ export * from './offline';
7
+ export * from './optimization';
8
+ export * from './string';
9
+ export * from './utils';
@@ -1,4 +1,4 @@
1
- import { Offline, OfflineModel } from "../typings";
1
+ import { Offline, OfflineModel } from '../typings';
2
2
  /**
3
3
  * Adds a generated UUID to the "offline_id" key of the object.
4
4
  * @param draft The model data to add the offline_id to
@@ -6,3 +6,4 @@ export declare function memoize<T extends (...args: never[]) => unknown>(func: T
6
6
  */
7
7
  export declare function areArraysEqual(first: unknown[], second: unknown[]): boolean;
8
8
  export declare const fallbackToEmptyArray: <T>(array: T[]) => T[];
9
+ export declare const fallbackToEmptyObject: <T extends object>(object: T) => T;
@@ -1,13 +1,7 @@
1
- import { Coordinates, IssueAttachment, OfflineModel, OvermapRootState } from "../typings";
1
+ import { IssueAttachment, OfflineModel, OvermapRootState } from '../typings';
2
2
  type MemoizedSelectorWithArgs<TArgs, TRet> = (state: OvermapRootState, args: TArgs) => TRet;
3
3
  export declare const restructureCreateSelectorWithArgs: <TArgs, TRet>(selector: MemoizedSelectorWithArgs<TArgs, TRet>) => (args: TArgs) => (state: OvermapRootState) => TRet;
4
4
  export declare function onlyUniqueOfflineIds(value: OfflineModel, index: number, self: OfflineModel[]): boolean;
5
5
  export declare function onlyUniqueHashes(value: IssueAttachment, index: number, self: IssueAttachment[]): boolean;
6
- /**
7
- *
8
- * @param bounds order: [northEast, southWest]
9
- * @param coordinates
10
- */
11
- export declare function boundsContainPoint(bounds: [Coordinates, Coordinates], coordinates: Coordinates): boolean;
12
6
  export declare const emailRegex: RegExp;
13
7
  export {};
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-workspace-settings.9",
6
+ "version": "1.0.71",
7
7
  "type": "module",
8
8
  "main": "dist/overmap-core.umd.cjs",
9
9
  "module": "dist/overmap-core.js",
@@ -11,90 +11,79 @@
11
11
  "scripts": {
12
12
  "dev": "vite",
13
13
  "build": "tsc --noEmit && vite build",
14
- "lint": "tsc --noEmit && eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0",
15
- "lint:fix": "eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0 --fix",
14
+ "lint": "tsc --noEmit && eslint --report-unused-disable-directives --max-warnings 0",
15
+ "lint:fix": "eslint --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
- "@radix-ui/colors": "^3.0.0",
23
22
  "@redux-offline/redux-offline": "^2.6.0",
24
- "@reduxjs/toolkit": "^1.9.5",
25
- "@types/file-saver": "^2.0.7",
23
+ "@reduxjs/toolkit": "^2.8.2",
26
24
  "color": "^4.2.3",
27
25
  "dependency-graph": "^1.0.0",
28
26
  "file-saver": "^2.0.5",
29
27
  "idb": "^7.1.1",
30
28
  "jwt-decode": "^3.1.2",
31
- "leaflet-draw": "^1.0.4",
32
- "leaflet.markercluster": "^1.5.3",
33
29
  "localforage": "^1.10.0",
34
- "react-leaflet": "^4.2.1",
30
+ "redux": "^5.0.1",
31
+ "redux-persist": "^4.0.0",
35
32
  "redux-persist-migrate": "^5.0.0",
36
33
  "superagent": "^8.1.2",
37
- "uuid": "^9.0.0"
34
+ "uuid": "^11.1.0",
35
+ "yarn": "^1.22.22"
38
36
  },
39
37
  "devDependencies": {
40
- "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
41
- "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
42
- "@overmap-ai/blocks": "1.0.31-tailwind-components.25",
43
- "@rollup/plugin-commonjs": "^25.0.4",
44
- "@testing-library/dom": "^9.3.4",
45
- "@testing-library/react": "^14.1.2",
46
- "@testing-library/user-event": "^14.5.2",
47
- "@tiptap/core": "^2.4.0",
38
+ "@overmap-ai/blocks": "^1.0.35-radio-card.2",
39
+ "@overmap-ai/forms": "^1.0.17-radio-field.16",
40
+ "@rollup/plugin-commonjs": "^28.0.6",
41
+ "@tiptap/core": "^3.0.7",
42
+ "@types/add": "^2",
48
43
  "@types/color": "^3.0.4",
44
+ "@types/file-saver": "^2.0.7",
45
+ "@types/geojson": "^7946.0.16",
49
46
  "@types/jwt-decode": "^3.1.0",
50
- "@types/leaflet": "^1.9.3",
51
47
  "@types/node": "^20.12.11",
52
- "@types/react": "^19.0.8",
48
+ "@types/react": "^19.1.8",
53
49
  "@types/react-dom": "^19.0.3",
54
- "@types/react-redux": "^7.1.26",
55
50
  "@types/superagent": "^4.1.18",
56
51
  "@types/uuid": "^9.0.3",
57
- "@typescript-eslint/eslint-plugin": "^6.4.1",
58
- "@typescript-eslint/parser": "^6.4.1",
59
- "@vitejs/plugin-react-swc": "^3.3.2",
60
- "@vitest/coverage-v8": "^1.2.1",
61
- "eslint": "^8.47.0",
62
- "eslint-config-prettier": "^9.0.0",
63
- "eslint-plugin-import": "^2.28.1",
64
- "eslint-plugin-prettier": "^5.0.0",
65
- "eslint-plugin-react": "^7.33.2",
66
- "eslint-plugin-react-hooks": "^4.6.0",
67
- "eslint-plugin-react-refresh": "^0.4.3",
68
- "eslint-plugin-simple-import-sort": "^10.0.0",
69
- "eslint-plugin-vitest": "^0.3.20",
70
- "happy-dom": "^13.3.1",
71
- "husky": "^8.0.3",
52
+ "@vitejs/plugin-react-swc": "^3.11.0",
53
+ "@vitest/coverage-v8": "^3.2.4",
54
+ "@vitest/eslint-plugin": "^1.3.4",
55
+ "eslint": "^9.32.0",
56
+ "eslint-config-prettier": "^10.1.8",
57
+ "eslint-import-resolver-typescript": "^4.4.4",
58
+ "eslint-plugin-import-x": "^4.16.1",
59
+ "eslint-plugin-prettier": "^5.5.3",
60
+ "eslint-plugin-simple-import-sort": "^12.1.1",
61
+ "globals": "^16.3.0",
62
+ "happy-dom": "^15.10.2",
63
+ "husky": "^9.1.7",
64
+ "jiti": "^2.5.1",
72
65
  "jsdom": "^23.2.0",
73
- "leaflet": "^1.9.0",
74
66
  "lint-staged": "^15.1.0",
75
- "prettier": "^3.0.2",
76
- "react": "^19.0.0",
67
+ "prettier": "^3.6.2",
68
+ "react": "^19.1.0",
77
69
  "react-dom": "^19.0.0",
78
- "react-hooks": "^1.0.1",
79
- "react-redux": "^8.1.2",
80
- "redux": "^4.2.1",
81
- "rollup-plugin-polyfill-node": "^0.12.0",
70
+ "rollup": "^4.45.3",
71
+ "rollup-plugin-polyfill-node": "^0.13.0",
82
72
  "typescript": "^5.2.2",
83
- "vite": "^4.4.5",
84
- "vite-plugin-dts": "^3.5.2",
85
- "vite-plugin-externalize-deps": "^0.7.0",
86
- "vitest": "^1.2.1"
73
+ "typescript-eslint": "^8.38.0",
74
+ "vite": "^6.3.4",
75
+ "vite-plugin-dts": "^4.5.4",
76
+ "vite-plugin-externalize-deps": "^0.9.0",
77
+ "vitest": "3.2.4"
87
78
  },
88
79
  "peerDependencies": {
89
- "@overmap-ai/blocks": "1.0.31-tailwind-components.25",
80
+ "@overmap-ai/blocks": "^1.0.35-radio-card.2",
81
+ "@overmap-ai/forms": "^1.0.17-radio-field.16",
90
82
  "@tiptap/core": "^2.4.0",
91
- "leaflet": "^1.9.0",
92
83
  "react": ">=18.2.0 <20.0.0",
93
- "react-dom": ">=18.2.0 <20.0.0",
94
- "react-redux": "^8.1.2"
84
+ "react-dom": ">=18.2.0 <20.0.0"
95
85
  },
96
86
  "resolutions": {
97
- "//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
98
87
  "strip-ansi": "6.0.1",
99
88
  "string-width": "4.2.2",
100
89
  "wrap-ansi": "7.0.0"
@@ -121,5 +110,9 @@
121
110
  },
122
111
  "bugs": {
123
112
  "url": "https://github.com/hemora-app/overmap-core/issues"
113
+ },
114
+ "volta": {
115
+ "node": "22.17.0",
116
+ "yarn": "4.9.2"
124
117
  }
125
118
  }
@@ -1,36 +0,0 @@
1
- export declare const AssetStageColors: {
2
- indigo: string;
3
- red: string;
4
- violet: string;
5
- yellow: string;
6
- jade: string;
7
- cyan: string;
8
- gold: string;
9
- orange: string;
10
- lime: string;
11
- sky: string;
12
- pink: string;
13
- };
14
- export declare const Colors: {
15
- gray: string;
16
- gold: string;
17
- brown: string;
18
- yellow: string;
19
- amber: string;
20
- orange: string;
21
- red: string;
22
- crimson: string;
23
- pink: string;
24
- plum: string;
25
- purple: string;
26
- violet: string;
27
- iris: string;
28
- indigo: string;
29
- blue: string;
30
- cyan: string;
31
- jade: string;
32
- grass: string;
33
- lime: string;
34
- mint: string;
35
- sky: string;
36
- };