@overmap-ai/core 1.0.48-few-bug-fixes.0 → 1.0.48-fix-agent-errors.1

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/sdk/sdk.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- import { AttachmentService, AuthService, CategoryService, ComponentService, ComponentStageCompletionService, ComponentStageService, ComponentTypeService, EmailVerificationService, FileService, IssueCommentService, IssueService, MainService, OrganizationAccessService, ProjectAccessService, ProjectFileService, ProjectService, UserFormService, UserFormSubmissionService, WorkspaceService, OrganizationService, EmailDomainsService, LicenseService, DocumentService } from "./services";
1
+ import { AttachmentService, AuthService, CategoryService, ComponentService, ComponentStageCompletionService, ComponentStageService, ComponentTypeService, EmailVerificationService, FileService, IssueCommentService, IssueService, MainService, OrganizationAccessService, ProjectAccessService, ProjectFileService, ProjectService, UserFormService, UserFormSubmissionService, WorkspaceService, OrganizationService, EmailDomainsService, LicenseService, DocumentService, AgentService } from "./services";
2
2
  import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore.js";
3
3
  import { RootState } from "../typings";
4
4
  export declare class OvermapSDK {
5
5
  readonly API_URL: string;
6
6
  readonly store: ToolkitStore<RootState>;
7
7
  constructor(apiUrl: string, store: ToolkitStore<RootState>);
8
+ agent: AgentService;
8
9
  files: FileService;
9
10
  attachments: AttachmentService;
10
11
  auth: AuthService;
@@ -0,0 +1,39 @@
1
+ import { BaseApiService } from "./BaseApiService";
2
+ import { OptionalFileModel, Payload } from "../../typings";
3
+ import { JSONContent } from "@tiptap/core";
4
+ export interface AgentProfile extends OptionalFileModel {
5
+ /**
6
+ * The name of the agent.
7
+ */
8
+ name: string;
9
+ /**
10
+ * The description of the agent.
11
+ */
12
+ description: string;
13
+ }
14
+ export interface PromptAgentResponse {
15
+ /**
16
+ * The response from the agent.
17
+ */
18
+ response: JSONContent[];
19
+ /**
20
+ * The UUID of the conversation.
21
+ */
22
+ conversation_id: string;
23
+ /**
24
+ * The UUID of the response (used when submitting ratings)
25
+ */
26
+ response_id: string;
27
+ /**
28
+ * The profile of the agent. Only included in the first response in a conversation.
29
+ */
30
+ profile?: AgentProfile;
31
+ }
32
+ export declare class AgentService extends BaseApiService {
33
+ /**
34
+ * Prompt the agent with a message.
35
+ * @param request The message to prompt the agent with.
36
+ * @param conversationId If continuing an existing message, the UUID of that conversation.
37
+ */
38
+ prompt(request: Payload<string>, conversationId: string): Promise<PromptAgentResponse>;
39
+ }
@@ -35,7 +35,7 @@ export declare class AuthService extends BaseApiService {
35
35
  /**
36
36
  * Attempts to renew tokens
37
37
  */
38
- renewTokens(): Promise<void>;
38
+ renewTokens(): Promise<undefined>;
39
39
  /**
40
40
  * Register a new user
41
41
  */
@@ -1,4 +1,4 @@
1
- import { BaseApiService } from "./BaseApiService.ts";
1
+ import { BaseApiService } from "./BaseApiService";
2
2
  import { License, Project, Transaction } from "../../typings";
3
3
  export declare class LicenseService extends BaseApiService {
4
4
  fetchLicensesForOrganization(organizationId: number, showLoading?: boolean): Promise<License[]>;
@@ -22,3 +22,4 @@ export * from "./EmailDomainsService";
22
22
  export * from "./OrganizationService";
23
23
  export * from "./LicenseService";
24
24
  export * from "./DocumentService";
25
+ export * from "./AgentService";
@@ -15,7 +15,7 @@ export declare const componentSlice: import("@reduxjs/toolkit").Slice<ComponentS
15
15
  payload: Component[];
16
16
  }) => void;
17
17
  setComponentAttachments: (state: ComponentState, action: {
18
- payload: import('../../typings/models/issues.ts').Created<ComponentAttachment>[];
18
+ payload: import('../../typings/models/issues').Created<ComponentAttachment>[];
19
19
  type: string;
20
20
  }) => void;
21
21
  addComponentAttachment: (state: ComponentState, action: {
@@ -59,5 +59,5 @@ export declare const selectAttachmentsOfComponentByType: (args: string) => (stat
59
59
  fileAttachments: Stored<ComponentAttachment>[];
60
60
  imageAttachments: Stored<ComponentAttachment>[];
61
61
  };
62
- export declare const addComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<Component, "components/addComponent">, updateComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<Component, "components/updateComponent">, removeComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeComponent">, addComponentsInBatches: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Component | Submitted<Component>)[], "components/addComponentsInBatches">, setComponents: import("@reduxjs/toolkit").ActionCreatorWithPayload<Component[], "components/setComponents">, setComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues.ts').Created<ComponentAttachment>[], "components/setComponentAttachments">, addComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>, "components/addComponentAttachment">, addComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>[], "components/addComponentAttachments">, updateComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>, "components/updateComponentAttachment">, removeComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeComponentAttachment">, removeComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "components/removeComponentAttachments">, removeAllComponentsOfType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeAllComponentsOfType">;
62
+ export declare const addComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<Component, "components/addComponent">, updateComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<Component, "components/updateComponent">, removeComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeComponent">, addComponentsInBatches: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Component | Submitted<Component>)[], "components/addComponentsInBatches">, setComponents: import("@reduxjs/toolkit").ActionCreatorWithPayload<Component[], "components/setComponents">, setComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Created<ComponentAttachment>[], "components/setComponentAttachments">, addComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>, "components/addComponentAttachment">, addComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>[], "components/addComponentAttachments">, updateComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>, "components/updateComponentAttachment">, removeComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeComponentAttachment">, removeComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "components/removeComponentAttachments">, removeAllComponentsOfType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeAllComponentsOfType">;
63
63
  export declare const componentReducer: Reducer<ComponentState>;
@@ -13,19 +13,19 @@ export declare const componentTypeSlice: import("@reduxjs/toolkit").Slice<Compon
13
13
  payload: ComponentType[];
14
14
  }) => void;
15
15
  setComponentTypeAttachments: (state: ComponentTypeState, action: {
16
- payload: import('../../typings/models/issues.ts').Created<ComponentTypeAttachment>[];
16
+ payload: import('../../typings/models/issues').Created<ComponentTypeAttachment>[];
17
17
  type: string;
18
18
  }) => void;
19
19
  addComponentTypeAttachment: (state: ComponentTypeState, action: {
20
- payload: import('../../typings/models/issues.ts').Submitted<ComponentTypeAttachment>;
20
+ payload: import('../../typings/models/issues').Submitted<ComponentTypeAttachment>;
21
21
  type: string;
22
22
  }) => void;
23
23
  addComponentTypeAttachments: (state: ComponentTypeState, action: {
24
- payload: import('../../typings/models/issues.ts').Submitted<ComponentTypeAttachment>[];
24
+ payload: import('../../typings/models/issues').Submitted<ComponentTypeAttachment>[];
25
25
  type: string;
26
26
  }) => void;
27
27
  updateComponentTypeAttachment: (state: ComponentTypeState, action: {
28
- payload: import('../../typings/models/issues.ts').Submitted<ComponentTypeAttachment>;
28
+ payload: import('../../typings/models/issues').Submitted<ComponentTypeAttachment>;
29
29
  type: string;
30
30
  }) => void;
31
31
  removeComponentTypeAttachment: (state: ComponentTypeState, action: {
@@ -61,6 +61,6 @@ export declare const selectAttachmentsOfComponentTypeByType: (args: string) => (
61
61
  fileAttachments: Stored<ComponentTypeAttachment>[];
62
62
  imageAttachments: Stored<ComponentTypeAttachment>[];
63
63
  };
64
- export declare const addComponentType: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentType, "componentTypes/addComponentType">, setComponentTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentType[], "componentTypes/setComponentTypes">, setComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues.ts').Created<ComponentTypeAttachment>[], "componentTypes/setComponentTypeAttachments">, addComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues.ts').Submitted<ComponentTypeAttachment>, "componentTypes/addComponentTypeAttachment">, addComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues.ts').Submitted<ComponentTypeAttachment>[], "componentTypes/addComponentTypeAttachments">, updateComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues.ts').Submitted<ComponentTypeAttachment>, "componentTypes/updateComponentTypeAttachment">, removeComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/removeComponentTypeAttachment">, removeComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "componentTypes/removeComponentTypeAttachments">, toggleComponentTypeVisibility: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/toggleComponentTypeVisibility">, deleteComponentType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/deleteComponentType">;
64
+ export declare const addComponentType: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentType, "componentTypes/addComponentType">, setComponentTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentType[], "componentTypes/setComponentTypes">, setComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Created<ComponentTypeAttachment>[], "componentTypes/setComponentTypeAttachments">, addComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ComponentTypeAttachment>, "componentTypes/addComponentTypeAttachment">, addComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ComponentTypeAttachment>[], "componentTypes/addComponentTypeAttachments">, updateComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<import('../../typings/models/issues').Submitted<ComponentTypeAttachment>, "componentTypes/updateComponentTypeAttachment">, removeComponentTypeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/removeComponentTypeAttachment">, removeComponentTypeAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "componentTypes/removeComponentTypeAttachments">, toggleComponentTypeVisibility: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/toggleComponentTypeVisibility">, deleteComponentType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "componentTypes/deleteComponentType">;
65
65
  export declare const componentTypeReducer: Reducer<ComponentTypeState>;
66
66
  export {};
@@ -1,6 +1,5 @@
1
- import { License } from "../../typings/models/license.ts";
1
+ import { License, Selector, SelectorWithArgs } from "../../typings";
2
2
  import { Reducer } from "@reduxjs/toolkit";
3
- import { Selector, SelectorWithArgs } from "../../typings";
4
3
  export interface LicenseState {
5
4
  licenses: Record<string, License>;
6
5
  }
@@ -1,6 +1,6 @@
1
1
  import { Reducer } from "@reduxjs/toolkit";
2
2
  import { Selector, SelectorWithArgs } from '../../typings/store';
3
- import { User, Organization, License, Project } from "../../typings";
3
+ import { License, Organization, Project, User } from "../../typings";
4
4
  export interface OrganizationState {
5
5
  organizations: Record<number, Organization>;
6
6
  activeOrganizationId: number | null;
@@ -16,6 +16,11 @@ export interface FileObject {
16
16
  file: string;
17
17
  objectURL?: string;
18
18
  }
19
+ export interface OptionalFileModel {
20
+ file_sha1?: string | null;
21
+ file?: string | null;
22
+ objectURL?: string;
23
+ }
19
24
  export interface OwnedByUserOrOrganization {
20
25
  user_owner: number;
21
26
  organization_owner: number;
@@ -1,6 +1,5 @@
1
- export interface Profile {
2
- file_sha1?: string | null;
3
- file?: string | null;
1
+ import { OptionalFileModel } from "./base";
2
+ export interface Profile extends OptionalFileModel {
4
3
  favourite_project_ids: number[];
5
4
  tour_step: number;
6
5
  }
package/package.json CHANGED
@@ -1,150 +1,152 @@
1
- {
2
- "name": "@overmap-ai/core",
3
- "description": "Core functionality for Overmap",
4
- "author": "Wôrdn Inc.",
5
- "license": "UNLICENSED",
6
- "version": "1.0.48-few-bug-fixes.0",
7
- "type": "module",
8
- "main": "dist/overmap-core.umd.cjs",
9
- "module": "dist/overmap-core.js",
10
- "types": "dist/index.d.ts",
11
- "scripts": {
12
- "dev": "vite",
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",
16
- "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,html,sass,yaml}\"",
17
- "preview": "vite preview",
18
- "prepare": "husky install",
19
- "storybook": "storybook dev -p 6006",
20
- "build-storybook": "storybook build",
21
- "test": "npx vitest"
22
- },
23
- "dependencies": {
24
- "@hello-pangea/dnd": "^16.5.0",
25
- "@redux-offline/redux-offline": "^2.6.0",
26
- "@reduxjs/toolkit": "^1.9.5",
27
- "color": "^4.2.3",
28
- "dependency-graph": "^1.0.0",
29
- "eslint-plugin-vitest": "^0.3.20",
30
- "file-saver": "^2.0.5",
31
- "formik": "^2.4.5",
32
- "idb": "^7.1.1",
33
- "jwt-decode": "^3.1.2",
34
- "leaflet-draw": "^1.0.4",
35
- "leaflet.markercluster": "^1.5.3",
36
- "linkify-react": "^4.1.3",
37
- "linkifyjs": "^4.1.3",
38
- "localforage": "^1.10.0",
39
- "lodash.clonedeep": "^4.5.0",
40
- "lodash.get": "^4.4.2",
41
- "lodash.set": "^4.3.2",
42
- "react-leaflet": "^4.2.1",
43
- "react-pdf": "^8.0.2",
44
- "react-sketch-canvas": "^6.2.0",
45
- "react-spreadsheet": "^0.9.4",
46
- "redux-persist-migrate": "^5.0.0",
47
- "superagent": "^8.1.2",
48
- "uuid": "^9.0.0",
49
- "xlsx": "^0.18.5"
50
- },
51
- "devDependencies": {
52
- "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
53
- "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
54
- "@overmap-ai/blocks": "^1.0.29-alpha.0",
55
- "@rollup/plugin-commonjs": "^25.0.4",
56
- "@storybook/addon-essentials": "7.3.2",
57
- "@storybook/addon-interactions": "7.3.2",
58
- "@storybook/addon-links": "7.3.2",
59
- "@storybook/addon-onboarding": "1.0.8",
60
- "@storybook/blocks": "7.3.2",
61
- "@storybook/react": "7.3.2",
62
- "@storybook/react-vite": "7.3.2",
63
- "@storybook/testing-library": "0.2.0",
64
- "@testing-library/dom": "^9.3.4",
65
- "@testing-library/react": "^14.1.2",
66
- "@testing-library/user-event": "^14.5.2",
67
- "@types/color": "^3.0.4",
68
- "@types/file-saver": "^2.0.7",
69
- "@types/jwt-decode": "^3.1.0",
70
- "@types/leaflet": "^1.9.3",
71
- "@types/lodash.clonedeep": "^4.5.9",
72
- "@types/lodash.get": "^4.4.9",
73
- "@types/lodash.set": "^4.3.9",
74
- "@types/node": "^20.12.11",
75
- "@types/react": "^18.3.1",
76
- "@types/react-dom": "^18.2.7",
77
- "@types/react-redux": "^7.1.26",
78
- "@types/superagent": "^4.1.18",
79
- "@types/uuid": "^9.0.3",
80
- "@types/xlsx": "^0.0.36",
81
- "@typescript-eslint/eslint-plugin": "^6.4.1",
82
- "@typescript-eslint/parser": "^6.4.1",
83
- "@vitejs/plugin-react-swc": "^3.3.2",
84
- "@vitest/coverage-v8": "^1.2.1",
85
- "eslint": "^8.47.0",
86
- "eslint-config-prettier": "^9.0.0",
87
- "eslint-plugin-import": "^2.28.1",
88
- "eslint-plugin-prettier": "^5.0.0",
89
- "eslint-plugin-react": "^7.33.2",
90
- "eslint-plugin-react-hooks": "^4.6.0",
91
- "eslint-plugin-react-refresh": "^0.4.3",
92
- "eslint-plugin-simple-import-sort": "^10.0.0",
93
- "eslint-plugin-storybook": "^0.6.13",
94
- "happy-dom": "^13.3.1",
95
- "husky": "^8.0.3",
96
- "jsdom": "^23.2.0",
97
- "leaflet": "^1.9.0",
98
- "lint-staged": "^15.1.0",
99
- "prettier": "^3.0.2",
100
- "react": "^18.2.0",
101
- "react-dom": "^18.2.0",
102
- "react-hooks": "^1.0.1",
103
- "react-redux": "^8.1.2",
104
- "redux": "^4.2.1",
105
- "rollup-plugin-polyfill-node": "^0.12.0",
106
- "sass": "^1.66.1",
107
- "storybook": "7.3.2",
108
- "typescript": "^5.2.2",
109
- "vite": "^4.4.5",
110
- "vite-plugin-dts": "^3.5.2",
111
- "vite-plugin-externalize-deps": "^0.7.0",
112
- "vitest": "^1.2.1"
113
- },
114
- "peerDependencies": {
115
- "@overmap-ai/blocks": "1.0.8",
116
- "leaflet": "^1.9.0",
117
- "react": "^18.2.0",
118
- "react-dom": "^18.2.0",
119
- "react-redux": "^8.1.2"
120
- },
121
- "resolutions": {
122
- "//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
123
- "strip-ansi": "6.0.1",
124
- "string-width": "4.2.2",
125
- "wrap-ansi": "7.0.0"
126
- },
127
- "lint-staged": {
128
- "src/**/*.{js,jsx,ts,tsx}": [
129
- "yarn lint",
130
- "yarn format"
131
- ]
132
- },
133
- "files": [
134
- "dist"
135
- ],
136
- "keywords": [
137
- "react",
138
- "geospacial",
139
- "map",
140
- "components"
141
- ],
142
- "homepage": "https://overmap.ai",
143
- "repository": {
144
- "type": "git",
145
- "url": "git+https://github.com/hemora-app/overmap-core.git"
146
- },
147
- "bugs": {
148
- "url": "https://github.com/hemora-app/overmap-core/issues"
149
- }
150
- }
1
+ {
2
+ "name": "@overmap-ai/core",
3
+ "description": "Core functionality for Overmap",
4
+ "author": "Wôrdn Inc.",
5
+ "license": "UNLICENSED",
6
+ "version": "1.0.48-fix-agent-errors.1",
7
+ "type": "module",
8
+ "main": "dist/overmap-core.umd.cjs",
9
+ "module": "dist/overmap-core.js",
10
+ "types": "dist/index.d.ts",
11
+ "scripts": {
12
+ "dev": "vite",
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",
16
+ "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,html,sass,yaml}\"",
17
+ "preview": "vite preview",
18
+ "prepare": "husky install",
19
+ "storybook": "storybook dev -p 6006",
20
+ "build-storybook": "storybook build",
21
+ "test": "npx vitest"
22
+ },
23
+ "dependencies": {
24
+ "@hello-pangea/dnd": "^16.5.0",
25
+ "@redux-offline/redux-offline": "^2.6.0",
26
+ "@reduxjs/toolkit": "^1.9.5",
27
+ "color": "^4.2.3",
28
+ "dependency-graph": "^1.0.0",
29
+ "eslint-plugin-vitest": "^0.3.20",
30
+ "file-saver": "^2.0.5",
31
+ "formik": "^2.4.5",
32
+ "idb": "^7.1.1",
33
+ "jwt-decode": "^3.1.2",
34
+ "leaflet-draw": "^1.0.4",
35
+ "leaflet.markercluster": "^1.5.3",
36
+ "linkify-react": "^4.1.3",
37
+ "linkifyjs": "^4.1.3",
38
+ "localforage": "^1.10.0",
39
+ "lodash.clonedeep": "^4.5.0",
40
+ "lodash.get": "^4.4.2",
41
+ "lodash.set": "^4.3.2",
42
+ "react-leaflet": "^4.2.1",
43
+ "react-pdf": "^8.0.2",
44
+ "react-sketch-canvas": "^6.2.0",
45
+ "react-spreadsheet": "^0.9.4",
46
+ "redux-persist-migrate": "^5.0.0",
47
+ "superagent": "^8.1.2",
48
+ "uuid": "^9.0.0",
49
+ "xlsx": "^0.18.5"
50
+ },
51
+ "devDependencies": {
52
+ "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
53
+ "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
54
+ "@overmap-ai/blocks": "^1.0.29-alpha.0",
55
+ "@rollup/plugin-commonjs": "^25.0.4",
56
+ "@storybook/addon-essentials": "7.3.2",
57
+ "@storybook/addon-interactions": "7.3.2",
58
+ "@storybook/addon-links": "7.3.2",
59
+ "@storybook/addon-onboarding": "1.0.8",
60
+ "@storybook/blocks": "7.3.2",
61
+ "@storybook/react": "7.3.2",
62
+ "@storybook/react-vite": "7.3.2",
63
+ "@storybook/testing-library": "0.2.0",
64
+ "@testing-library/dom": "^9.3.4",
65
+ "@testing-library/react": "^14.1.2",
66
+ "@testing-library/user-event": "^14.5.2",
67
+ "@types/color": "^3.0.4",
68
+ "@types/file-saver": "^2.0.7",
69
+ "@types/jwt-decode": "^3.1.0",
70
+ "@types/leaflet": "^1.9.3",
71
+ "@types/lodash.clonedeep": "^4.5.9",
72
+ "@types/lodash.get": "^4.4.9",
73
+ "@types/lodash.set": "^4.3.9",
74
+ "@types/node": "^20.12.11",
75
+ "@types/react": "^18.3.1",
76
+ "@types/react-dom": "^18.2.7",
77
+ "@types/react-redux": "^7.1.26",
78
+ "@types/superagent": "^4.1.18",
79
+ "@types/uuid": "^9.0.3",
80
+ "@types/xlsx": "^0.0.36",
81
+ "@typescript-eslint/eslint-plugin": "^6.4.1",
82
+ "@typescript-eslint/parser": "^6.4.1",
83
+ "@vitejs/plugin-react-swc": "^3.3.2",
84
+ "@vitest/coverage-v8": "^1.2.1",
85
+ "eslint": "^8.47.0",
86
+ "eslint-config-prettier": "^9.0.0",
87
+ "eslint-plugin-import": "^2.28.1",
88
+ "eslint-plugin-prettier": "^5.0.0",
89
+ "eslint-plugin-react": "^7.33.2",
90
+ "eslint-plugin-react-hooks": "^4.6.0",
91
+ "eslint-plugin-react-refresh": "^0.4.3",
92
+ "eslint-plugin-simple-import-sort": "^10.0.0",
93
+ "eslint-plugin-storybook": "^0.6.13",
94
+ "happy-dom": "^13.3.1",
95
+ "husky": "^8.0.3",
96
+ "jsdom": "^23.2.0",
97
+ "leaflet": "^1.9.0",
98
+ "lint-staged": "^15.1.0",
99
+ "prettier": "^3.0.2",
100
+ "react": "^18.2.0",
101
+ "react-dom": "^18.2.0",
102
+ "react-hooks": "^1.0.1",
103
+ "react-redux": "^8.1.2",
104
+ "redux": "^4.2.1",
105
+ "rollup-plugin-polyfill-node": "^0.12.0",
106
+ "sass": "^1.66.1",
107
+ "storybook": "7.3.2",
108
+ "typescript": "^5.2.2",
109
+ "vite": "^4.4.5",
110
+ "vite-plugin-dts": "^3.5.2",
111
+ "vite-plugin-externalize-deps": "^0.7.0",
112
+ "vitest": "^1.2.1",
113
+ "@tiptap/core": "^2.4.0"
114
+ },
115
+ "peerDependencies": {
116
+ "@overmap-ai/blocks": "1.0.8",
117
+ "leaflet": "^1.9.0",
118
+ "react": "^18.2.0",
119
+ "react-dom": "^18.2.0",
120
+ "@tiptap/core": "^2.4.0",
121
+ "react-redux": "^8.1.2"
122
+ },
123
+ "resolutions": {
124
+ "//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
125
+ "strip-ansi": "6.0.1",
126
+ "string-width": "4.2.2",
127
+ "wrap-ansi": "7.0.0"
128
+ },
129
+ "lint-staged": {
130
+ "src/**/*.{js,jsx,ts,tsx}": [
131
+ "yarn lint",
132
+ "yarn format"
133
+ ]
134
+ },
135
+ "files": [
136
+ "dist"
137
+ ],
138
+ "keywords": [
139
+ "react",
140
+ "geospacial",
141
+ "map",
142
+ "components"
143
+ ],
144
+ "homepage": "https://overmap.ai",
145
+ "repository": {
146
+ "type": "git",
147
+ "url": "git+https://github.com/hemora-app/overmap-core.git"
148
+ },
149
+ "bugs": {
150
+ "url": "https://github.com/hemora-app/overmap-core/issues"
151
+ }
152
+ }