@overmap-ai/core 1.0.74-gcs.0 → 1.0.74-gcs.2
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/overmap-core.js +926 -885
- package/dist/overmap-core.umd.cjs +10 -10
- package/dist/store/adapters/index.d.ts +2 -0
- package/dist/store/{adapter.d.ts → adapters/modelAdapter.d.ts} +1 -1
- package/dist/store/adapters/selectionAdapter.d.ts +13 -0
- package/dist/store/index.d.ts +1 -1
- package/dist/store/typings.d.ts +3 -0
- package/dist/typings/models/base.d.ts +2 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { ModelState } from '
|
|
2
|
+
import { ModelState } from '../typings';
|
|
3
3
|
export interface OvermapModelAdapter<TModel> {
|
|
4
4
|
addOne: (state: ModelState<TModel>, action: PayloadAction<TModel>) => void;
|
|
5
5
|
addMany: (state: ModelState<TModel>, action: PayloadAction<TModel[]>) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { SelectionState } from '../typings';
|
|
3
|
+
export interface SelectionAdapter<TSelection> {
|
|
4
|
+
selectOne: (state: SelectionState<TSelection>, action: PayloadAction<TSelection>) => void;
|
|
5
|
+
selectMany: (state: SelectionState<TSelection>, action: PayloadAction<TSelection[]>) => void;
|
|
6
|
+
unselectOne: (state: SelectionState<TSelection>, action: PayloadAction<TSelection>) => void;
|
|
7
|
+
unselectMany: (state: SelectionState<TSelection>, action: PayloadAction<TSelection[]>) => void;
|
|
8
|
+
toggleOne: (state: SelectionState<TSelection>, action: PayloadAction<TSelection>) => void;
|
|
9
|
+
toggleMany: (state: SelectionState<TSelection>, action: PayloadAction<TSelection[]>) => void;
|
|
10
|
+
initializeSelection: (state: SelectionState<TSelection>, action: PayloadAction<TSelection[]>) => void;
|
|
11
|
+
getInitialState: <TState extends object>(state: TState) => TState & SelectionState<TSelection>;
|
|
12
|
+
}
|
|
13
|
+
export declare function createSelectionAdapter<TSelection>(): SelectionAdapter<TSelection>;
|
package/dist/store/index.d.ts
CHANGED
package/dist/store/typings.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IconType } from '@overmap-ai/blocks';
|
|
1
2
|
import { CSSColor } from '../colors';
|
|
2
3
|
import { CommonAutoFields } from './issues';
|
|
3
4
|
import { User } from './users';
|
|
@@ -32,7 +33,7 @@ export interface OwnedByOrganization {
|
|
|
32
33
|
organization_owner: string;
|
|
33
34
|
}
|
|
34
35
|
export interface IconModel {
|
|
35
|
-
icon:
|
|
36
|
+
icon: IconType;
|
|
36
37
|
}
|
|
37
38
|
export interface ColorModel {
|
|
38
39
|
color: CSSColor;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core functionality for Overmap",
|
|
4
4
|
"author": "Wôrdn Inc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
|
-
"version": "1.0.74-gcs.
|
|
6
|
+
"version": "1.0.74-gcs.2",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"yarn": "^1.22.22"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@overmap-ai/blocks": "
|
|
39
|
-
"@overmap-ai/forms": "1.0.
|
|
38
|
+
"@overmap-ai/blocks": "1.0.40-alpha.1",
|
|
39
|
+
"@overmap-ai/forms": "1.0.32-lucide-icons.1",
|
|
40
40
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
41
41
|
"@tiptap/core": "^3.0.7",
|
|
42
42
|
"@types/add": "^2",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"vitest": "3.2.4"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@overmap-ai/blocks": "
|
|
81
|
-
"@overmap-ai/forms": "1.0.
|
|
80
|
+
"@overmap-ai/blocks": "1.0.40-alpha.1",
|
|
81
|
+
"@overmap-ai/forms": "1.0.32-lucide-icons.1",
|
|
82
82
|
"@tiptap/core": "^2.4.0",
|
|
83
83
|
"react": ">=18.2.0 <20.0.0",
|
|
84
84
|
"react-dom": ">=18.2.0 <20.0.0"
|