@overmap-ai/core 1.0.56 → 1.0.57-export-overmap-reducer.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/LICENSE +1 -0
- package/README.md +4 -4
- package/dist/constants/ui.d.ts +1 -1
- package/dist/contexts/overmap.d.ts +2 -2
- package/dist/contexts/sdk/globals.d.ts +3 -3
- package/dist/contexts/sdk/sdk.d.ts +2 -2
- package/dist/enums/ui.d.ts +1 -1
- package/dist/forms/builder/constants.d.ts +1 -1
- package/dist/forms/builder/hooks.d.ts +1 -1
- package/dist/overmap-core.js +610 -942
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +611 -943
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +11 -11
- package/dist/sdk/services/AgentService.d.ts +2 -21
- package/dist/sdk/services/AssetAttachmentService.d.ts +10 -0
- package/dist/sdk/services/AssetService.d.ts +11 -0
- package/dist/sdk/services/AssetStageCompletionService.d.ts +16 -0
- package/dist/sdk/services/AssetStageService.d.ts +11 -0
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +10 -0
- package/dist/sdk/services/AssetTypeService.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/index.d.ts +0 -1
- package/dist/store/slices/agentsSlice.d.ts +3 -3
- package/dist/store/slices/assetSlice.d.ts +63 -0
- package/dist/store/slices/assetStageCompletionSlice.d.ts +15 -0
- package/dist/store/slices/assetStageSlice.d.ts +32 -0
- package/dist/store/slices/assetTypeSlice.d.ts +74 -0
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +9 -9
- package/dist/store/slices/documentSlice.d.ts +12 -13
- package/dist/store/slices/formRevisionSlice.d.ts +7 -7
- 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 +18 -18
- package/dist/store/slices/mapSlice.d.ts +4 -4
- package/dist/store/slices/organizationAccessSlice.d.ts +3 -3
- package/dist/store/slices/outboxSlice.d.ts +3 -3
- package/dist/store/slices/projectAccessSlice.d.ts +2 -2
- package/dist/store/slices/projectFileSlice.d.ts +7 -7
- package/dist/store/slices/projectSlice.d.ts +8 -8
- package/dist/store/slices/rehydratedSlice.d.ts +2 -2
- package/dist/store/slices/settingsSlice.d.ts +9 -9
- package/dist/store/slices/userSlice.d.ts +4 -4
- package/dist/store/slices/workspaceSlice.d.ts +6 -6
- package/dist/store/store.d.ts +12 -45
- package/dist/typings/models/access.d.ts +1 -0
- package/dist/typings/models/attachments.d.ts +6 -6
- package/dist/typings/models/components.d.ts +11 -7
- package/dist/typings/models/forms.d.ts +3 -3
- package/dist/typings/models/store.d.ts +2 -3
- package/dist/typings/store.d.ts +4 -4
- package/dist/utils/colors.d.ts +1 -1
- package/dist/utils/utils.d.ts +3 -3
- package/package.json +153 -153
- package/dist/sdk/services/ComponentAttachmentService.d.ts +0 -10
- package/dist/sdk/services/ComponentService.d.ts +0 -11
- package/dist/sdk/services/ComponentStageCompletionService.d.ts +0 -17
- package/dist/sdk/services/ComponentStageService.d.ts +0 -11
- package/dist/sdk/services/ComponentTypeAttachmentService.d.ts +0 -10
- package/dist/sdk/services/ComponentTypeService.d.ts +0 -9
- package/dist/store/hooks.d.ts +0 -4
- package/dist/store/slices/ComponentStageCompletionSlice.d.ts +0 -27
- package/dist/store/slices/componentSlice.d.ts +0 -73
- package/dist/store/slices/componentStageSlice.d.ts +0 -42
- package/dist/store/slices/componentTypeSlice.d.ts +0 -75
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 AssetStageColors: 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/dist/utils/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Coordinates, IssueAttachment, OfflineModel,
|
|
2
|
-
type MemoizedSelectorWithArgs<TArgs, TRet> = (state:
|
|
3
|
-
export declare const restructureCreateSelectorWithArgs: <TArgs, TRet>(selector: MemoizedSelectorWithArgs<TArgs, TRet>) => (args: TArgs) => (state:
|
|
1
|
+
import { Coordinates, IssueAttachment, OfflineModel, OvermapRootState } from "../typings";
|
|
2
|
+
type MemoizedSelectorWithArgs<TArgs, TRet> = (state: OvermapRootState, args: TArgs) => TRet;
|
|
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
6
|
/**
|
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.
|
|
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.57-export-overmap-reducer.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, ComponentAttachment } from "../../typings";
|
|
3
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
4
|
-
export declare class ComponentAttachmentService extends BaseAttachmentService {
|
|
5
|
-
attachmentModel: AttachmentModel;
|
|
6
|
-
private buildOfflineAttachment;
|
|
7
|
-
attachFilesToComponent(files: File[], componentId: string): Promise<OptimisticMultipleModelResult<ComponentAttachment>>;
|
|
8
|
-
deleteComponentAttachment(attachmentId: string): Promise<void>;
|
|
9
|
-
refreshStore(): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { Component, Payload } from "../../typings";
|
|
3
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
-
export declare class ComponentService extends BaseApiService {
|
|
5
|
-
add(component: Payload<Component>, workspaceId: string): OptimisticModelResult<Component>;
|
|
6
|
-
update(component: Component, workspaceId: string): OptimisticModelResult<Component>;
|
|
7
|
-
remove(id: string): Promise<undefined>;
|
|
8
|
-
deleteAllByComponentType(componentTypeId: string): Promise<undefined>;
|
|
9
|
-
addBatch(componentsToCreate: Payload<Component>[], workspaceId: string, componentTypeId: string): Promise<Record<string, Component>>;
|
|
10
|
-
refreshStore(): Promise<void>;
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { ComponentStageCompletion } from "../../store";
|
|
3
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
-
import { Payload } from "../../typings";
|
|
5
|
-
export declare class ComponentStageCompletionService extends BaseApiService {
|
|
6
|
-
add(componentId: string, stageId: string): OptimisticModelResult<ComponentStageCompletion>;
|
|
7
|
-
refreshStore(): Promise<void>;
|
|
8
|
-
/**
|
|
9
|
-
* Creates a collection of ComponentStageCompletions, marking the referenced stages as completed for the referenced
|
|
10
|
-
* components. It's REQUIRED that all components referenced all have the SAME component type.
|
|
11
|
-
* @param componentTypeId The ID of the component type for which we are completing stages (we can only complete
|
|
12
|
-
* stages for one component type at a time)
|
|
13
|
-
* @param stageCompletions
|
|
14
|
-
*/
|
|
15
|
-
bulkAdd(componentTypeId: string, stageCompletions: Payload<ComponentStageCompletion>[]): Promise<void>;
|
|
16
|
-
bulkDelete(stageId: string, componentIds: string[]): Promise<undefined>;
|
|
17
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { ComponentStage, ComponentStagePayload, Payload } from "../../typings";
|
|
3
|
-
export declare class ComponentStageService extends BaseApiService {
|
|
4
|
-
bulkCreateStages(stagesToSubmit: Payload<ComponentStagePayload>[], componentTypeId: string, workspaceId: string): Promise<ComponentStage[]>;
|
|
5
|
-
bulkUpdateStages(stagesToUpdate: ComponentStage[], componentTypeId: string): Promise<ComponentStage[]>;
|
|
6
|
-
bulkDelete(idsToDelete: string[]): Promise<undefined>;
|
|
7
|
-
update(componentStage: ComponentStage): 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, ComponentTypeAttachment } from "../../typings";
|
|
3
|
-
import { OptimisticMultipleModelResult } from "../typings";
|
|
4
|
-
export declare class ComponentTypeAttachmentService extends BaseAttachmentService {
|
|
5
|
-
attachmentModel: AttachmentModel;
|
|
6
|
-
private buildOfflineAttachment;
|
|
7
|
-
attachFilesToComponentType(files: File[], componentTypeId: string): Promise<OptimisticMultipleModelResult<ComponentTypeAttachment>>;
|
|
8
|
-
deleteComponentTypeAttachment(attachmentId: string): Promise<void>;
|
|
9
|
-
refreshStore(): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { ComponentType, Payload } from "../../typings";
|
|
3
|
-
import { OptimisticModelResult } from "../typings";
|
|
4
|
-
export declare class ComponentTypeService extends BaseApiService {
|
|
5
|
-
add(componentType: Payload<ComponentType>): OptimisticModelResult<ComponentType>;
|
|
6
|
-
update(componentType: ComponentType): Promise<undefined>;
|
|
7
|
-
delete(componentTypeId: string): Promise<undefined>;
|
|
8
|
-
refreshStore(): Promise<void>;
|
|
9
|
-
}
|
package/dist/store/hooks.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TypedUseSelectorHook } from "react-redux";
|
|
2
|
-
import { RootState } from "../typings";
|
|
3
|
-
export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<RootState, undefined, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;
|
|
4
|
-
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { CompletedStagesMapping, Component, Model, RootState, SelectorWithArgs } from "../../typings";
|
|
3
|
-
export interface ComponentStageCompletionState {
|
|
4
|
-
completionsByComponentId: CompletedStagesMapping;
|
|
5
|
-
}
|
|
6
|
-
export interface ComponentStageCompletion extends Model {
|
|
7
|
-
component: string;
|
|
8
|
-
stage: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const componentStageCompletionSlice: import("@reduxjs/toolkit").Slice<ComponentStageCompletionState, {
|
|
11
|
-
addStageCompletion: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageCompletionState>, action: {
|
|
12
|
-
payload: ComponentStageCompletion;
|
|
13
|
-
}) => void;
|
|
14
|
-
addStageCompletions: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageCompletionState>, action: {
|
|
15
|
-
payload: CompletedStagesMapping;
|
|
16
|
-
}) => void;
|
|
17
|
-
removeStageCompletions: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageCompletionState>, action: {
|
|
18
|
-
payload: ComponentStageCompletion[];
|
|
19
|
-
}) => void;
|
|
20
|
-
setStageCompletions: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageCompletionState>, action: {
|
|
21
|
-
payload: CompletedStagesMapping;
|
|
22
|
-
}) => void;
|
|
23
|
-
}, "componentStageCompletions">;
|
|
24
|
-
export declare const addStageCompletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentStageCompletion, "componentStageCompletions/addStageCompletion">, addStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<CompletedStagesMapping, "componentStageCompletions/addStageCompletions">, removeStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentStageCompletion[], "componentStageCompletions/removeStageCompletions">, setStageCompletions: import("@reduxjs/toolkit").ActionCreatorWithPayload<CompletedStagesMapping, "componentStageCompletions/setStageCompletions">;
|
|
25
|
-
export declare const selectCompletedStages: (state: RootState) => CompletedStagesMapping;
|
|
26
|
-
export declare const selectCompletedStageIdsForComponent: SelectorWithArgs<Component, string[]>;
|
|
27
|
-
export declare const componentStageCompletionReducer: Reducer<ComponentStageCompletionState>;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { Component, ComponentAttachment, ComponentType, RootState, Selector, SelectorWithArgs, Stored, Submitted } from "../../typings";
|
|
3
|
-
export interface ComponentState {
|
|
4
|
-
components: Record<string, Component | Submitted<Component>>;
|
|
5
|
-
attachments: Record<string, Stored<ComponentAttachment>>;
|
|
6
|
-
}
|
|
7
|
-
export declare const componentSlice: import("@reduxjs/toolkit").Slice<ComponentState, {
|
|
8
|
-
addComponent: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: {
|
|
9
|
-
payload: Component;
|
|
10
|
-
}) => void;
|
|
11
|
-
addComponentsInBatches: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: {
|
|
12
|
-
payload: (Component | Submitted<Component>)[];
|
|
13
|
-
}) => void;
|
|
14
|
-
setComponents: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: {
|
|
15
|
-
payload: Component[];
|
|
16
|
-
}) => void;
|
|
17
|
-
updateComponent: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: {
|
|
18
|
-
payload: Component;
|
|
19
|
-
}) => void;
|
|
20
|
-
removeComponent: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: PayloadAction<string>) => void;
|
|
21
|
-
removeAllComponentsOfType: (state: import("immer/dist/internal.js").WritableDraft<ComponentState>, action: PayloadAction<string>) => void;
|
|
22
|
-
setComponentAttachment: (state: ComponentState, action: {
|
|
23
|
-
payload: Stored<ComponentAttachment>;
|
|
24
|
-
type: string;
|
|
25
|
-
}) => void;
|
|
26
|
-
setComponentAttachments: (state: ComponentState, action: {
|
|
27
|
-
payload: Stored<ComponentAttachment>[];
|
|
28
|
-
type: string;
|
|
29
|
-
}) => void;
|
|
30
|
-
addComponentAttachment: (state: ComponentState, action: {
|
|
31
|
-
payload: Submitted<ComponentAttachment>;
|
|
32
|
-
type: string;
|
|
33
|
-
}) => void;
|
|
34
|
-
addComponentAttachments: (state: ComponentState, action: {
|
|
35
|
-
payload: Submitted<ComponentAttachment>[];
|
|
36
|
-
type: string;
|
|
37
|
-
}) => void;
|
|
38
|
-
updateComponentAttachment: (state: ComponentState, action: {
|
|
39
|
-
payload: Submitted<ComponentAttachment>;
|
|
40
|
-
type: string;
|
|
41
|
-
}) => void;
|
|
42
|
-
updateComponentAttachments: (state: ComponentState, action: {
|
|
43
|
-
payload: Submitted<ComponentAttachment>[];
|
|
44
|
-
type: string;
|
|
45
|
-
}) => void;
|
|
46
|
-
removeComponentAttachment: (state: ComponentState, action: {
|
|
47
|
-
payload: string;
|
|
48
|
-
type: string;
|
|
49
|
-
}) => void;
|
|
50
|
-
removeComponentAttachments: (state: ComponentState, action: {
|
|
51
|
-
payload: string[];
|
|
52
|
-
type: string;
|
|
53
|
-
}) => void;
|
|
54
|
-
}, "components">;
|
|
55
|
-
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">, removeAllComponentsOfType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeAllComponentsOfType">, setComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<ComponentAttachment>, "components/setComponentAttachment">, setComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Stored<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">, updateComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<ComponentAttachment>[], "components/updateComponentAttachments">, removeComponentAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "components/removeComponentAttachment">, removeComponentAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "components/removeComponentAttachments">;
|
|
56
|
-
export declare const selectComponents: (state: RootState) => Component[];
|
|
57
|
-
export declare const selectComponentsMapping: (state: RootState) => Record<string, Component | Submitted<Component>>;
|
|
58
|
-
export declare const selectComponentsFromComponentType: SelectorWithArgs<string, Component[]>;
|
|
59
|
-
export declare const selectComponent: SelectorWithArgs<string, Component>;
|
|
60
|
-
export declare const selectComponentTypeFromComponent: SelectorWithArgs<string, ComponentType>;
|
|
61
|
-
export declare const selectComponentTypeFromComponents: Selector<Record<string, ComponentType>>;
|
|
62
|
-
export declare const selectComponentsByType: SelectorWithArgs<string, Component[]>;
|
|
63
|
-
export declare const selectNumberOfComponentsOfComponentType: SelectorWithArgs<string | undefined, number>;
|
|
64
|
-
export declare const selectComponentTypesFromIds: SelectorWithArgs<string[], ComponentType[]>;
|
|
65
|
-
export declare const selectComponentAttachmentMapping: (state: RootState) => Record<string, Stored<ComponentAttachment>>;
|
|
66
|
-
export declare const selectAllComponentAttachments: Selector<Stored<ComponentAttachment>[]>;
|
|
67
|
-
export declare const selectComponentAttachment: SelectorWithArgs<string, Stored<ComponentAttachment>>;
|
|
68
|
-
export declare const selectAttachmentsOfComponent: (args: string) => (state: RootState) => Stored<ComponentAttachment>[];
|
|
69
|
-
export declare const selectAttachmentsOfComponentByType: (args: string) => (state: RootState) => {
|
|
70
|
-
fileAttachments: Stored<ComponentAttachment>[];
|
|
71
|
-
imageAttachments: Stored<ComponentAttachment>[];
|
|
72
|
-
};
|
|
73
|
-
export declare const componentReducer: Reducer<ComponentState>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { ComponentStage, RootState, SelectorWithArgs } from "../../typings";
|
|
3
|
-
export interface ComponentStageState {
|
|
4
|
-
stages: Record<string, ComponentStage>;
|
|
5
|
-
}
|
|
6
|
-
export declare const componentStageSlice: import("@reduxjs/toolkit").Slice<ComponentStageState, {
|
|
7
|
-
addStages: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageState>, action: {
|
|
8
|
-
payload: ComponentStage[];
|
|
9
|
-
}) => void;
|
|
10
|
-
updateStages: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageState>, action: {
|
|
11
|
-
payload: ComponentStage[];
|
|
12
|
-
}) => void;
|
|
13
|
-
removeStages: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageState>, action: {
|
|
14
|
-
payload: string[];
|
|
15
|
-
}) => void;
|
|
16
|
-
linkStageToForm: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageState>, action: {
|
|
17
|
-
payload: {
|
|
18
|
-
stageId: string;
|
|
19
|
-
formId: string;
|
|
20
|
-
};
|
|
21
|
-
}) => void;
|
|
22
|
-
unlinkStageToForm: (state: import("immer/dist/internal.js").WritableDraft<ComponentStageState>, action: {
|
|
23
|
-
payload: {
|
|
24
|
-
stageId: string;
|
|
25
|
-
};
|
|
26
|
-
}) => void;
|
|
27
|
-
}, "componentStages">;
|
|
28
|
-
export declare const selectStageMapping: (state: RootState) => Record<string, ComponentStage>;
|
|
29
|
-
export declare const selectStage: SelectorWithArgs<string, ComponentStage | undefined>;
|
|
30
|
-
export declare const selectStages: (state: RootState) => ComponentStage[];
|
|
31
|
-
export declare const selectStagesFromComponentTypeIds: SelectorWithArgs<string[], Record<string, ComponentStage[]>>;
|
|
32
|
-
export declare const selectComponentTypeStagesMapping: SelectorWithArgs<string, Record<string, ComponentStage>>;
|
|
33
|
-
export declare const selectStagesFromComponentType: SelectorWithArgs<string, ComponentStage[]>;
|
|
34
|
-
export declare const selectStagesFromStageIds: SelectorWithArgs<string[], ComponentStage[]>;
|
|
35
|
-
export declare const selectStageFormIdsFromStageIds: SelectorWithArgs<string[], Record<string, string>>;
|
|
36
|
-
export declare const addStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentStage[], "componentStages/addStages">, updateStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<ComponentStage[], "componentStages/updateStages">, removeStages: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "componentStages/removeStages">, linkStageToForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
|
-
stageId: string;
|
|
38
|
-
formId: string;
|
|
39
|
-
}, "componentStages/linkStageToForm">, unlinkStageToForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
40
|
-
stageId: string;
|
|
41
|
-
}, "componentStages/unlinkStageToForm">;
|
|
42
|
-
export declare const componentStageReducer: Reducer<ComponentStageState>;
|