@overmap-ai/core 1.0.53-component-asset-renames.2 → 1.0.53-fix-outbox.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/constants/ui.d.ts +1 -1
- package/dist/enums/ui.d.ts +1 -1
- package/dist/overmap-core.js +967 -913
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +968 -914
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +20 -8
- package/dist/sdk/services/BaseApiService.d.ts +0 -12
- package/dist/sdk/services/ComponentAttachmentService.d.ts +10 -0
- package/dist/sdk/services/ComponentService.d.ts +11 -0
- package/dist/sdk/services/ComponentStageCompletionService.d.ts +17 -0
- package/dist/sdk/services/ComponentStageService.d.ts +11 -0
- package/dist/sdk/services/ComponentTypeAttachmentService.d.ts +10 -0
- package/dist/sdk/services/ComponentTypeService.d.ts +9 -0
- package/dist/sdk/services/UserFormService.d.ts +2 -2
- package/dist/sdk/services/UserFormSubmissionService.d.ts +1 -1
- package/dist/sdk/services/index.d.ts +6 -6
- package/dist/store/slices/ComponentStageCompletionSlice.d.ts +27 -0
- package/dist/store/slices/categorySlice.d.ts +4 -4
- package/dist/store/slices/componentSlice.d.ts +73 -0
- package/dist/store/slices/componentStageSlice.d.ts +42 -0
- package/dist/store/slices/componentTypeSlice.d.ts +75 -0
- package/dist/store/slices/documentSlice.d.ts +7 -6
- package/dist/store/slices/formRevisionSlice.d.ts +5 -5
- package/dist/store/slices/formSlice.d.ts +7 -7
- package/dist/store/slices/formSubmissionSlice.d.ts +2 -2
- package/dist/store/slices/index.d.ts +4 -4
- package/dist/store/slices/issueSlice.d.ts +4 -4
- package/dist/store/slices/projectFileSlice.d.ts +4 -4
- package/dist/store/slices/workspaceSlice.d.ts +4 -4
- package/dist/store/store.d.ts +13 -13
- package/dist/typings/models/attachments.d.ts +6 -6
- package/dist/typings/models/components.d.ts +7 -11
- package/dist/typings/models/forms.d.ts +3 -3
- package/dist/utils/colors.d.ts +1 -1
- package/package.json +153 -153
- package/dist/sdk/services/AssetAttachmentService.d.ts +0 -10
- package/dist/sdk/services/AssetService.d.ts +0 -11
- package/dist/sdk/services/AssetStageCompletionService.d.ts +0 -16
- package/dist/sdk/services/AssetStageService.d.ts +0 -11
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +0 -10
- package/dist/sdk/services/AssetTypeService.d.ts +0 -9
- package/dist/store/slices/assetSlice.d.ts +0 -63
- package/dist/store/slices/assetStageCompletionSlice.d.ts +0 -15
- package/dist/store/slices/assetStageSlice.d.ts +0 -32
- package/dist/store/slices/assetTypeSlice.d.ts +0 -74
|
@@ -54,10 +54,10 @@ export declare const selectProjectFiles: ((state: import("redux").EmptyObject &
|
|
|
54
54
|
fileReducer: import('..').FileState;
|
|
55
55
|
authReducer: import('..').AuthState;
|
|
56
56
|
categoryReducer: import('..').CategoryState;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
componentReducer: import('..').ComponentState;
|
|
58
|
+
componentStageCompletionReducer: import('..').ComponentStageCompletionState;
|
|
59
|
+
componentStageReducer: import('..').ComponentStageState;
|
|
60
|
+
componentTypeReducer: import('..').ComponentTypeState;
|
|
61
61
|
issueReducer: import('..').IssueState;
|
|
62
62
|
issueTypeReducer: import('..').IssueTypeState;
|
|
63
63
|
mapReducer: import('..').MapState;
|
|
@@ -32,10 +32,10 @@ export declare const selectWorkspaces: ((state: import("redux").EmptyObject & {
|
|
|
32
32
|
fileReducer: import('..').FileState;
|
|
33
33
|
authReducer: import('..').AuthState;
|
|
34
34
|
categoryReducer: import('..').CategoryState;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
componentReducer: import('..').ComponentState;
|
|
36
|
+
componentStageCompletionReducer: import('..').ComponentStageCompletionState;
|
|
37
|
+
componentStageReducer: import('..').ComponentStageState;
|
|
38
|
+
componentTypeReducer: import('..').ComponentTypeState;
|
|
39
39
|
issueReducer: import('..').IssueState;
|
|
40
40
|
issueTypeReducer: import('..').IssueTypeState;
|
|
41
41
|
mapReducer: import('..').MapState;
|
package/dist/store/store.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AnyAction, Reducer } from "redux";
|
|
|
3
3
|
import { Config, OfflineAction, OfflineMetadata, OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
4
4
|
import request from "superagent";
|
|
5
5
|
import { type OfflineMetaEffect, type OvermapSDK, RequestDetails } from "../sdk";
|
|
6
|
-
import { AuthState, CategoryState,
|
|
6
|
+
import { AuthState, CategoryState, ComponentStageCompletionState, ComponentStageState, ComponentState, ComponentTypeState, DocumentState, EmailDomainState, FileState, IssueState, IssueTypeState, LicenseState, MapState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, FormState, FormRevisionState, FormSubmissionState, UserState, WorkspaceState, TeamState, AgentsState } from "./slices";
|
|
7
7
|
import { VersioningState } from "./slices/versioningSlice";
|
|
8
8
|
import { RootState } from "../typings";
|
|
9
9
|
export declare const overmapReducers: {
|
|
@@ -11,10 +11,10 @@ export declare const overmapReducers: {
|
|
|
11
11
|
fileReducer: Reducer<FileState>;
|
|
12
12
|
authReducer: Reducer<AuthState>;
|
|
13
13
|
categoryReducer: Reducer<CategoryState>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
componentReducer: Reducer<ComponentState>;
|
|
15
|
+
componentStageCompletionReducer: Reducer<ComponentStageCompletionState>;
|
|
16
|
+
componentStageReducer: Reducer<ComponentStageState>;
|
|
17
|
+
componentTypeReducer: Reducer<ComponentTypeState>;
|
|
18
18
|
issueReducer: Reducer<IssueState>;
|
|
19
19
|
issueTypeReducer: Reducer<IssueTypeState>;
|
|
20
20
|
mapReducer: Reducer<MapState>;
|
|
@@ -42,10 +42,10 @@ export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
|
42
42
|
fileReducer: FileState;
|
|
43
43
|
authReducer: AuthState;
|
|
44
44
|
categoryReducer: CategoryState;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
componentReducer: ComponentState;
|
|
46
|
+
componentStageCompletionReducer: ComponentStageCompletionState;
|
|
47
|
+
componentStageReducer: ComponentStageState;
|
|
48
|
+
componentTypeReducer: ComponentTypeState;
|
|
49
49
|
issueReducer: IssueState;
|
|
50
50
|
issueTypeReducer: IssueTypeState;
|
|
51
51
|
mapReducer: MapState;
|
|
@@ -91,10 +91,10 @@ export declare const defaultStore: import("@reduxjs/toolkit/dist/configureStore"
|
|
|
91
91
|
fileReducer: FileState;
|
|
92
92
|
authReducer: AuthState;
|
|
93
93
|
categoryReducer: CategoryState;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
componentReducer: ComponentState;
|
|
95
|
+
componentStageCompletionReducer: ComponentStageCompletionState;
|
|
96
|
+
componentStageReducer: ComponentStageState;
|
|
97
|
+
componentTypeReducer: ComponentTypeState;
|
|
98
98
|
issueReducer: IssueState;
|
|
99
99
|
issueTypeReducer: IssueTypeState;
|
|
100
100
|
mapReducer: MapState;
|
|
@@ -10,11 +10,11 @@ export interface Attachment extends OfflineModel, FileWithNameModel, CreatedByMo
|
|
|
10
10
|
export interface IssueAttachment extends Attachment {
|
|
11
11
|
issue: string;
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
14
|
-
|
|
13
|
+
export interface ComponentAttachment extends Attachment {
|
|
14
|
+
component: string;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
17
|
-
|
|
16
|
+
export interface ComponentTypeAttachment extends Attachment {
|
|
17
|
+
component_type: string;
|
|
18
18
|
}
|
|
19
19
|
export interface ProjectAttachment extends Attachment {
|
|
20
20
|
project: Project["id"];
|
|
@@ -24,8 +24,8 @@ export interface DocumentAttachment extends Attachment {
|
|
|
24
24
|
}
|
|
25
25
|
export declare enum AttachmentModel {
|
|
26
26
|
Issue = "issue",
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
Component = "component",
|
|
28
|
+
ComponentType = "component_type",
|
|
29
29
|
Project = "project",
|
|
30
30
|
Document = "document"
|
|
31
31
|
}
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { IconModel,
|
|
1
|
+
import { IconModel, OfflineModel } from "./base";
|
|
2
2
|
import { Marker } from "./geo";
|
|
3
|
-
export interface
|
|
3
|
+
export interface Component extends OfflineModel {
|
|
4
4
|
marker: Marker | null;
|
|
5
|
-
|
|
5
|
+
component_type: string;
|
|
6
6
|
created_at?: string;
|
|
7
7
|
label: string | null;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface ComponentType extends OfflineModel, IconModel {
|
|
10
10
|
name?: string;
|
|
11
11
|
description?: string;
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
14
|
-
|
|
13
|
+
export interface ComponentStage extends OfflineModel {
|
|
14
|
+
component_type: string;
|
|
15
15
|
name: string;
|
|
16
16
|
description?: string;
|
|
17
17
|
priority: number;
|
|
18
18
|
user_form?: string;
|
|
19
19
|
}
|
|
20
|
-
export type
|
|
21
|
-
export interface AssetStageCompletion extends Model {
|
|
22
|
-
asset: string;
|
|
23
|
-
stage: string;
|
|
24
|
-
}
|
|
20
|
+
export type ComponentStagePayload = Omit<ComponentStage, "component_type">;
|
|
25
21
|
export type CompletedStagesMapping = Record<string, Record<string, string>>;
|
|
@@ -4,7 +4,7 @@ import { FileWithNameModel } from '../files';
|
|
|
4
4
|
import { WorkspaceIndexedModel } from "./workspace";
|
|
5
5
|
export type UserForm = Pick<WorkspaceIndexedModel, "index_workspace"> & {
|
|
6
6
|
favorite: boolean;
|
|
7
|
-
|
|
7
|
+
component_type?: string;
|
|
8
8
|
issue_type?: string;
|
|
9
9
|
} & ({
|
|
10
10
|
owner_organization: number;
|
|
@@ -37,8 +37,8 @@ export interface UserFormSubmission extends OfflineModel, SubmittedAtModel, Crea
|
|
|
37
37
|
form_revision: string;
|
|
38
38
|
values: Record<string, FieldValue>;
|
|
39
39
|
issue?: string;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
component?: string;
|
|
41
|
+
component_stage?: string;
|
|
42
42
|
}
|
|
43
43
|
export interface UserFormSubmissionAttachment extends OfflineModel, FileWithNameModel {
|
|
44
44
|
submission: string;
|
package/dist/utils/colors.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const Colors: Record<string, CSSColor>;
|
|
|
16
16
|
* categories, any updates to those colors should also result in an update to this color mapping to ensure all Category
|
|
17
17
|
* Badges defined within the App receive the appropriate Radix-ui/themes accentColor, so they render properly. */
|
|
18
18
|
export declare const ColorsToString: Record<string, ThemeOptions["accentColor"]>;
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const ComponentStageColors: Record<string, CSSColor>;
|
|
20
20
|
export declare const defaultBadgeColor: CSSColor;
|
|
21
21
|
export declare const generateBadgeColors: (rawColor: CSSColor) => BadgeColors;
|
|
22
22
|
export declare function getStageColor(index: number): CSSColor;
|
package/package.json
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@overmap-ai/core",
|
|
3
|
-
"description": "Core functionality for Overmap",
|
|
4
|
-
"author": "Wôrdn Inc.",
|
|
5
|
-
"license": "UNLICENSED",
|
|
6
|
-
"version": "1.0.53-
|
|
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
|
-
"qr-scanner": "^1.4.2",
|
|
43
|
-
"react-leaflet": "^4.2.1",
|
|
44
|
-
"react-pdf": "^8.0.2",
|
|
45
|
-
"react-sketch-canvas": "^6.2.0",
|
|
46
|
-
"react-spreadsheet": "^0.9.4",
|
|
47
|
-
"redux-persist-migrate": "^5.0.0",
|
|
48
|
-
"superagent": "^8.1.2",
|
|
49
|
-
"uuid": "^9.0.0",
|
|
50
|
-
"xlsx": "^0.18.5"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
54
|
-
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
55
|
-
"@overmap-ai/blocks": "^1.0.29-alpha.1",
|
|
56
|
-
"@rollup/plugin-commonjs": "^25.0.4",
|
|
57
|
-
"@storybook/addon-essentials": "7.3.2",
|
|
58
|
-
"@storybook/addon-interactions": "7.3.2",
|
|
59
|
-
"@storybook/addon-links": "7.3.2",
|
|
60
|
-
"@storybook/addon-onboarding": "1.0.8",
|
|
61
|
-
"@storybook/blocks": "7.3.2",
|
|
62
|
-
"@storybook/react": "7.3.2",
|
|
63
|
-
"@storybook/react-vite": "7.3.2",
|
|
64
|
-
"@storybook/testing-library": "0.2.0",
|
|
65
|
-
"@testing-library/dom": "^9.3.4",
|
|
66
|
-
"@testing-library/react": "^14.1.2",
|
|
67
|
-
"@testing-library/user-event": "^14.5.2",
|
|
68
|
-
"@tiptap/core": "^2.4.0",
|
|
69
|
-
"@types/color": "^3.0.4",
|
|
70
|
-
"@types/file-saver": "^2.0.7",
|
|
71
|
-
"@types/jwt-decode": "^3.1.0",
|
|
72
|
-
"@types/leaflet": "^1.9.3",
|
|
73
|
-
"@types/lodash.clonedeep": "^4.5.9",
|
|
74
|
-
"@types/lodash.get": "^4.4.9",
|
|
75
|
-
"@types/lodash.set": "^4.3.9",
|
|
76
|
-
"@types/node": "^20.12.11",
|
|
77
|
-
"@types/react": "^18.3.1",
|
|
78
|
-
"@types/react-dom": "^18.2.7",
|
|
79
|
-
"@types/react-redux": "^7.1.26",
|
|
80
|
-
"@types/superagent": "^4.1.18",
|
|
81
|
-
"@types/uuid": "^9.0.3",
|
|
82
|
-
"@types/xlsx": "^0.0.36",
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
84
|
-
"@typescript-eslint/parser": "^6.4.1",
|
|
85
|
-
"@vitejs/plugin-react-swc": "^3.3.2",
|
|
86
|
-
"@vitest/coverage-v8": "^1.2.1",
|
|
87
|
-
"eslint": "^8.47.0",
|
|
88
|
-
"eslint-config-prettier": "^9.0.0",
|
|
89
|
-
"eslint-plugin-import": "^2.28.1",
|
|
90
|
-
"eslint-plugin-prettier": "^5.0.0",
|
|
91
|
-
"eslint-plugin-react": "^7.33.2",
|
|
92
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
93
|
-
"eslint-plugin-react-refresh": "^0.4.3",
|
|
94
|
-
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
95
|
-
"eslint-plugin-storybook": "^0.6.13",
|
|
96
|
-
"happy-dom": "^13.3.1",
|
|
97
|
-
"husky": "^8.0.3",
|
|
98
|
-
"jsdom": "^23.2.0",
|
|
99
|
-
"leaflet": "^1.9.0",
|
|
100
|
-
"lint-staged": "^15.1.0",
|
|
101
|
-
"prettier": "^3.0.2",
|
|
102
|
-
"react": "^18.2.0",
|
|
103
|
-
"react-dom": "^18.2.0",
|
|
104
|
-
"react-hooks": "^1.0.1",
|
|
105
|
-
"react-redux": "^8.1.2",
|
|
106
|
-
"redux": "^4.2.1",
|
|
107
|
-
"rollup-plugin-polyfill-node": "^0.12.0",
|
|
108
|
-
"sass": "^1.66.1",
|
|
109
|
-
"storybook": "7.3.2",
|
|
110
|
-
"typescript": "^5.2.2",
|
|
111
|
-
"vite": "^4.4.5",
|
|
112
|
-
"vite-plugin-dts": "^3.5.2",
|
|
113
|
-
"vite-plugin-externalize-deps": "^0.7.0",
|
|
114
|
-
"vitest": "^1.2.1"
|
|
115
|
-
},
|
|
116
|
-
"peerDependencies": {
|
|
117
|
-
"@overmap-ai/blocks": "1.0.8",
|
|
118
|
-
"@tiptap/core": "^2.4.0",
|
|
119
|
-
"leaflet": "^1.9.0",
|
|
120
|
-
"react": "^18.2.0",
|
|
121
|
-
"react-dom": "^18.2.0",
|
|
122
|
-
"react-redux": "^8.1.2"
|
|
123
|
-
},
|
|
124
|
-
"resolutions": {
|
|
125
|
-
"//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
|
|
126
|
-
"strip-ansi": "6.0.1",
|
|
127
|
-
"string-width": "4.2.2",
|
|
128
|
-
"wrap-ansi": "7.0.0"
|
|
129
|
-
},
|
|
130
|
-
"lint-staged": {
|
|
131
|
-
"src/**/*.{js,jsx,ts,tsx}": [
|
|
132
|
-
"yarn lint",
|
|
133
|
-
"yarn format"
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
"files": [
|
|
137
|
-
"dist"
|
|
138
|
-
],
|
|
139
|
-
"keywords": [
|
|
140
|
-
"react",
|
|
141
|
-
"geospacial",
|
|
142
|
-
"map",
|
|
143
|
-
"components"
|
|
144
|
-
],
|
|
145
|
-
"homepage": "https://overmap.ai",
|
|
146
|
-
"repository": {
|
|
147
|
-
"type": "git",
|
|
148
|
-
"url": "git+https://github.com/hemora-app/overmap-core.git"
|
|
149
|
-
},
|
|
150
|
-
"bugs": {
|
|
151
|
-
"url": "https://github.com/hemora-app/overmap-core/issues"
|
|
152
|
-
}
|
|
153
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@overmap-ai/core",
|
|
3
|
+
"description": "Core functionality for Overmap",
|
|
4
|
+
"author": "Wôrdn Inc.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"version": "1.0.53-fix-outbox.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
|
+
"qr-scanner": "^1.4.2",
|
|
43
|
+
"react-leaflet": "^4.2.1",
|
|
44
|
+
"react-pdf": "^8.0.2",
|
|
45
|
+
"react-sketch-canvas": "^6.2.0",
|
|
46
|
+
"react-spreadsheet": "^0.9.4",
|
|
47
|
+
"redux-persist-migrate": "^5.0.0",
|
|
48
|
+
"superagent": "^8.1.2",
|
|
49
|
+
"uuid": "^9.0.0",
|
|
50
|
+
"xlsx": "^0.18.5"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
54
|
+
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
55
|
+
"@overmap-ai/blocks": "^1.0.29-alpha.1",
|
|
56
|
+
"@rollup/plugin-commonjs": "^25.0.4",
|
|
57
|
+
"@storybook/addon-essentials": "7.3.2",
|
|
58
|
+
"@storybook/addon-interactions": "7.3.2",
|
|
59
|
+
"@storybook/addon-links": "7.3.2",
|
|
60
|
+
"@storybook/addon-onboarding": "1.0.8",
|
|
61
|
+
"@storybook/blocks": "7.3.2",
|
|
62
|
+
"@storybook/react": "7.3.2",
|
|
63
|
+
"@storybook/react-vite": "7.3.2",
|
|
64
|
+
"@storybook/testing-library": "0.2.0",
|
|
65
|
+
"@testing-library/dom": "^9.3.4",
|
|
66
|
+
"@testing-library/react": "^14.1.2",
|
|
67
|
+
"@testing-library/user-event": "^14.5.2",
|
|
68
|
+
"@tiptap/core": "^2.4.0",
|
|
69
|
+
"@types/color": "^3.0.4",
|
|
70
|
+
"@types/file-saver": "^2.0.7",
|
|
71
|
+
"@types/jwt-decode": "^3.1.0",
|
|
72
|
+
"@types/leaflet": "^1.9.3",
|
|
73
|
+
"@types/lodash.clonedeep": "^4.5.9",
|
|
74
|
+
"@types/lodash.get": "^4.4.9",
|
|
75
|
+
"@types/lodash.set": "^4.3.9",
|
|
76
|
+
"@types/node": "^20.12.11",
|
|
77
|
+
"@types/react": "^18.3.1",
|
|
78
|
+
"@types/react-dom": "^18.2.7",
|
|
79
|
+
"@types/react-redux": "^7.1.26",
|
|
80
|
+
"@types/superagent": "^4.1.18",
|
|
81
|
+
"@types/uuid": "^9.0.3",
|
|
82
|
+
"@types/xlsx": "^0.0.36",
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
84
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
85
|
+
"@vitejs/plugin-react-swc": "^3.3.2",
|
|
86
|
+
"@vitest/coverage-v8": "^1.2.1",
|
|
87
|
+
"eslint": "^8.47.0",
|
|
88
|
+
"eslint-config-prettier": "^9.0.0",
|
|
89
|
+
"eslint-plugin-import": "^2.28.1",
|
|
90
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
91
|
+
"eslint-plugin-react": "^7.33.2",
|
|
92
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
93
|
+
"eslint-plugin-react-refresh": "^0.4.3",
|
|
94
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
95
|
+
"eslint-plugin-storybook": "^0.6.13",
|
|
96
|
+
"happy-dom": "^13.3.1",
|
|
97
|
+
"husky": "^8.0.3",
|
|
98
|
+
"jsdom": "^23.2.0",
|
|
99
|
+
"leaflet": "^1.9.0",
|
|
100
|
+
"lint-staged": "^15.1.0",
|
|
101
|
+
"prettier": "^3.0.2",
|
|
102
|
+
"react": "^18.2.0",
|
|
103
|
+
"react-dom": "^18.2.0",
|
|
104
|
+
"react-hooks": "^1.0.1",
|
|
105
|
+
"react-redux": "^8.1.2",
|
|
106
|
+
"redux": "^4.2.1",
|
|
107
|
+
"rollup-plugin-polyfill-node": "^0.12.0",
|
|
108
|
+
"sass": "^1.66.1",
|
|
109
|
+
"storybook": "7.3.2",
|
|
110
|
+
"typescript": "^5.2.2",
|
|
111
|
+
"vite": "^4.4.5",
|
|
112
|
+
"vite-plugin-dts": "^3.5.2",
|
|
113
|
+
"vite-plugin-externalize-deps": "^0.7.0",
|
|
114
|
+
"vitest": "^1.2.1"
|
|
115
|
+
},
|
|
116
|
+
"peerDependencies": {
|
|
117
|
+
"@overmap-ai/blocks": "1.0.8",
|
|
118
|
+
"@tiptap/core": "^2.4.0",
|
|
119
|
+
"leaflet": "^1.9.0",
|
|
120
|
+
"react": "^18.2.0",
|
|
121
|
+
"react-dom": "^18.2.0",
|
|
122
|
+
"react-redux": "^8.1.2"
|
|
123
|
+
},
|
|
124
|
+
"resolutions": {
|
|
125
|
+
"//": "Workaround for eslint issue: https://github.com/eslint/eslint/discussions/17215",
|
|
126
|
+
"strip-ansi": "6.0.1",
|
|
127
|
+
"string-width": "4.2.2",
|
|
128
|
+
"wrap-ansi": "7.0.0"
|
|
129
|
+
},
|
|
130
|
+
"lint-staged": {
|
|
131
|
+
"src/**/*.{js,jsx,ts,tsx}": [
|
|
132
|
+
"yarn lint",
|
|
133
|
+
"yarn format"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"files": [
|
|
137
|
+
"dist"
|
|
138
|
+
],
|
|
139
|
+
"keywords": [
|
|
140
|
+
"react",
|
|
141
|
+
"geospacial",
|
|
142
|
+
"map",
|
|
143
|
+
"components"
|
|
144
|
+
],
|
|
145
|
+
"homepage": "https://overmap.ai",
|
|
146
|
+
"repository": {
|
|
147
|
+
"type": "git",
|
|
148
|
+
"url": "git+https://github.com/hemora-app/overmap-core.git"
|
|
149
|
+
},
|
|
150
|
+
"bugs": {
|
|
151
|
+
"url": "https://github.com/hemora-app/overmap-core/issues"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
-
import { AttachmentModel, AssetAttachment } from "../../typings";
|
|
3
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
4
|
-
export declare class AssetAttachmentService extends BaseAttachmentService {
|
|
5
|
-
attachmentModel: AttachmentModel;
|
|
6
|
-
private buildOfflineAttachment;
|
|
7
|
-
attachFilesToAsset(files: File[], assetId: string): Promise<OptimisticMultipleModelResult<AssetAttachment>>;
|
|
8
|
-
deleteAssetAttachment(attachmentId: string): Promise<void>;
|
|
9
|
-
refreshStore(): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { Asset, Payload } from "../../typings";
|
|
3
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
-
export declare class AssetService extends BaseApiService {
|
|
5
|
-
add(asset: Payload<Asset>, workspaceId: string): OptimisticModelResult<Asset>;
|
|
6
|
-
update(asset: Asset, workspaceId: string): OptimisticModelResult<Asset>;
|
|
7
|
-
remove(assetId: string): Promise<undefined>;
|
|
8
|
-
deleteAllAssetsOfAssetType(assetTypeId: string): Promise<undefined>;
|
|
9
|
-
addBatch(assetsToCreate: Payload<Asset>[], workspaceId: string, assetTypeId: string): Promise<Record<string, Asset>>;
|
|
10
|
-
refreshStore(): Promise<void>;
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { OptimisticModelResult } from "../typings";
|
|
3
|
-
import { AssetStageCompletion, Payload } from "../../typings";
|
|
4
|
-
export declare class AssetStageCompletionService extends BaseApiService {
|
|
5
|
-
add(assetId: string, stageId: string): OptimisticModelResult<AssetStageCompletion>;
|
|
6
|
-
refreshStore(): Promise<void>;
|
|
7
|
-
/**
|
|
8
|
-
* Creates a collection of AssetStageCompletions, marking the referenced stages as completed for the referenced
|
|
9
|
-
* assets. It's REQUIRED that all assets referenced all have the SAME asset type.
|
|
10
|
-
* @param assetTypeId The ID of the asset type for which we are completing stages (we can only complete
|
|
11
|
-
* stages for one asset type at a time)
|
|
12
|
-
* @param stageCompletions
|
|
13
|
-
*/
|
|
14
|
-
bulkAdd(assetTypeId: string, stageCompletions: Payload<AssetStageCompletion>[]): Promise<void>;
|
|
15
|
-
bulkDelete(stageId: string, assetIds: string[]): Promise<undefined>;
|
|
16
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { AssetStage, AssetStagePayload, Payload } from "../../typings";
|
|
3
|
-
export declare class AssetStageService extends BaseApiService {
|
|
4
|
-
bulkCreateStages(stagesToSubmit: Payload<AssetStagePayload>[], assetTypeId: string, workspaceId: string): Promise<AssetStage[]>;
|
|
5
|
-
bulkUpdateStages(stagesToUpdate: AssetStage[], assetTypeId: string): Promise<AssetStage[]>;
|
|
6
|
-
bulkDelete(idsToDelete: string[]): Promise<undefined>;
|
|
7
|
-
update(assetStage: AssetStage): Promise<undefined>;
|
|
8
|
-
linkForm(stageId: string, formId: string): Promise<undefined>;
|
|
9
|
-
unlinkForm(stageId: string, formId: string): Promise<undefined>;
|
|
10
|
-
refreshStore(): Promise<undefined>;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseAttachmentService } from "./BaseAttachmentService";
|
|
2
|
-
import { AttachmentModel, AssetTypeAttachment } from "../../typings";
|
|
3
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
4
|
-
export declare class AssetTypeAttachmentService extends BaseAttachmentService {
|
|
5
|
-
attachmentModel: AttachmentModel;
|
|
6
|
-
private buildOfflineAttachment;
|
|
7
|
-
attachFilesToAssetType(files: File[], assetTypeId: string): Promise<OptimisticMultipleModelResult<AssetTypeAttachment>>;
|
|
8
|
-
deleteAssetTypeAttachment(attachmentId: string): Promise<void>;
|
|
9
|
-
refreshStore(): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { AssetType, Payload } from "../../typings";
|
|
3
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
-
export declare class AssetTypeService extends BaseApiService {
|
|
5
|
-
add(assetType: Payload<AssetType>): OptimisticModelResult<AssetType>;
|
|
6
|
-
update(assetType: AssetType): Promise<undefined>;
|
|
7
|
-
delete(assetTypeId: string): Promise<undefined>;
|
|
8
|
-
refreshStore(): Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { Asset, AssetAttachment, AssetType, RootState, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
|
|
3
|
-
export interface AssetState {
|
|
4
|
-
assets: Record<string, Asset | Submitted<Asset>>;
|
|
5
|
-
attachments: Record<string, Stored<AssetAttachment>>;
|
|
6
|
-
}
|
|
7
|
-
export declare const assetSlice: import("@reduxjs/toolkit").Slice<AssetState, {
|
|
8
|
-
addAsset: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<Asset>) => void;
|
|
9
|
-
addAssetsInBatches: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<(Asset | Submitted<Asset>)[]>) => void;
|
|
10
|
-
setAssets: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<Asset[]>) => void;
|
|
11
|
-
updateAsset: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<Asset>) => void;
|
|
12
|
-
removeAsset: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<string>) => void;
|
|
13
|
-
removeAllAssetsOfType: (state: import("immer/dist/internal.js").WritableDraft<AssetState>, action: PayloadAction<string>) => void;
|
|
14
|
-
setAssetAttachment: (state: AssetState, action: {
|
|
15
|
-
payload: Stored<AssetAttachment>;
|
|
16
|
-
type: string;
|
|
17
|
-
}) => void;
|
|
18
|
-
setAssetAttachments: (state: AssetState, action: {
|
|
19
|
-
payload: Stored<AssetAttachment>[];
|
|
20
|
-
type: string;
|
|
21
|
-
}) => void;
|
|
22
|
-
addAssetAttachment: (state: AssetState, action: {
|
|
23
|
-
payload: Submitted<AssetAttachment>;
|
|
24
|
-
type: string;
|
|
25
|
-
}) => void;
|
|
26
|
-
addAssetAttachments: (state: AssetState, action: {
|
|
27
|
-
payload: Submitted<AssetAttachment>[];
|
|
28
|
-
type: string;
|
|
29
|
-
}) => void;
|
|
30
|
-
updateAssetAttachment: (state: AssetState, action: {
|
|
31
|
-
payload: Submitted<AssetAttachment>;
|
|
32
|
-
type: string;
|
|
33
|
-
}) => void;
|
|
34
|
-
updateAssetAttachments: (state: AssetState, action: {
|
|
35
|
-
payload: Submitted<AssetAttachment>[];
|
|
36
|
-
type: string;
|
|
37
|
-
}) => void;
|
|
38
|
-
removeAssetAttachment: (state: AssetState, action: {
|
|
39
|
-
payload: string;
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
removeAssetAttachments: (state: AssetState, action: {
|
|
43
|
-
payload: string[];
|
|
44
|
-
type: string;
|
|
45
|
-
}) => void;
|
|
46
|
-
}, "assets">;
|
|
47
|
-
export declare const addAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Asset, "assets/addAsset">, updateAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Asset, "assets/updateAsset">, removeAsset: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assets/removeAsset">, addAssetsInBatches: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Asset | Submitted<Asset>)[], "assets/addAssetsInBatches">, setAssets: import("@reduxjs/toolkit").ActionCreatorWithPayload<Asset[], "assets/setAssets">, removeAllAssetsOfType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assets/removeAllAssetsOfType">, setAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>, "assets/setAssetAttachment">, setAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<AssetAttachment>[], "assets/setAssetAttachments">, addAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>, "assets/addAssetAttachment">, addAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>[], "assets/addAssetAttachments">, updateAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>, "assets/updateAssetAttachment">, updateAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<AssetAttachment>[], "assets/updateAssetAttachments">, removeAssetAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "assets/removeAssetAttachment">, removeAssetAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "assets/removeAssetAttachments">;
|
|
48
|
-
export declare const selectAssets: (state: RootState) => Asset[];
|
|
49
|
-
export declare const selectAssetsMapping: (state: RootState) => Record<string, Asset | Submitted<Asset>>;
|
|
50
|
-
export declare const selectAssetsOfAssetType: SelectorWithArgs<string, Asset[]>;
|
|
51
|
-
export declare const selectAsset: SelectorWithArgs<string, Asset>;
|
|
52
|
-
export declare const selectAssetToAssetTypeMapping: Selector<Record<string, AssetType>>;
|
|
53
|
-
export declare const selectNumberOfAssetsOfAssetType: SelectorWithArgs<string | undefined, number>;
|
|
54
|
-
export declare const selectAssetTypesFromIds: SelectorWithArgs<string[], AssetType[]>;
|
|
55
|
-
export declare const selectAssetAttachmentMapping: (state: RootState) => Record<string, Stored<AssetAttachment>>;
|
|
56
|
-
export declare const selectAssetAttachments: Selector<Stored<AssetAttachment>[]>;
|
|
57
|
-
export declare const selectAssetAttachment: SelectorWithArgs<string, Stored<AssetAttachment>>;
|
|
58
|
-
export declare const selectAttachmentsOfAsset: (args: string) => (state: RootState) => Stored<AssetAttachment>[];
|
|
59
|
-
export declare const selectAttachmentsOfAssetsByType: (args: string) => (state: RootState) => {
|
|
60
|
-
fileAttachments: Stored<AssetAttachment>[];
|
|
61
|
-
imageAttachments: Stored<AssetAttachment>[];
|
|
62
|
-
};
|
|
63
|
-
export declare const assetReducer: Reducer<AssetState>;
|