@overmap-ai/core 1.0.57-component-asset-renames.0 → 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/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/overmap-core.js +55 -336
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +56 -337
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +4 -4
- package/dist/sdk/services/AgentService.d.ts +2 -21
- package/dist/store/index.d.ts +0 -1
- package/dist/store/slices/agentsSlice.d.ts +3 -3
- package/dist/store/slices/assetSlice.d.ts +6 -6
- package/dist/store/slices/assetStageCompletionSlice.d.ts +2 -2
- package/dist/store/slices/assetStageSlice.d.ts +3 -3
- package/dist/store/slices/assetTypeSlice.d.ts +4 -4
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +5 -5
- package/dist/store/slices/documentSlice.d.ts +6 -6
- package/dist/store/slices/formRevisionSlice.d.ts +2 -2
- package/dist/store/slices/issueSlice.d.ts +14 -14
- 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 +3 -3
- 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 +2 -2
- package/dist/store/store.d.ts +3 -36
- package/dist/typings/models/access.d.ts +1 -0
- package/dist/typings/models/store.d.ts +2 -3
- package/dist/typings/store.d.ts +4 -4
- package/dist/utils/utils.d.ts +3 -3
- package/package.json +1 -1
- package/dist/store/hooks.d.ts +0 -4
package/dist/store/store.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="@redux-offline/redux-offline" />
|
|
2
2
|
import { AnyAction, Reducer } from "redux";
|
|
3
|
-
import { Config, OfflineAction, OfflineMetadata
|
|
3
|
+
import { Config, OfflineAction, OfflineMetadata } from "@redux-offline/redux-offline/lib/types";
|
|
4
4
|
import request from "superagent";
|
|
5
5
|
import { type OfflineMetaEffect, OutboxCoordinator, type OvermapSDK, RequestDetails } from "../sdk";
|
|
6
6
|
import { AgentsState, AuthState, CategoryState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeState, DocumentState, EmailDomainState, FileState, FormRevisionState, FormState, FormSubmissionState, IssueState, IssueTypeState, LicenseState, MapState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, UserState, WorkspaceState, TeamState } from "./slices";
|
|
7
7
|
import { VersioningState } from "./slices/versioningSlice";
|
|
8
|
-
import {
|
|
8
|
+
import { OvermapRootState } from "../typings";
|
|
9
9
|
export declare const overmapReducers: {
|
|
10
10
|
versioning: Reducer<VersioningState>;
|
|
11
11
|
fileReducer: Reducer<FileState>;
|
|
@@ -69,7 +69,7 @@ export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
|
69
69
|
agentsReducer: AgentsState;
|
|
70
70
|
}>, AnyAction>;
|
|
71
71
|
export declare const resetStore = "RESET";
|
|
72
|
-
export declare const
|
|
72
|
+
export declare const overmapRootReducer: Reducer<OvermapRootState>;
|
|
73
73
|
export interface FullOfflineMetadata extends OfflineMetadata {
|
|
74
74
|
effect: OfflineMetaEffect;
|
|
75
75
|
}
|
|
@@ -87,38 +87,5 @@ export declare const dequeue: Config["queue"]["dequeue"];
|
|
|
87
87
|
* Add to your store's `enhancers` array.
|
|
88
88
|
*/
|
|
89
89
|
export declare const overmapEnhancer: (...args: any[]) => unknown;
|
|
90
|
-
export declare const defaultStore: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").EmptyObject & {
|
|
91
|
-
versioning: VersioningState;
|
|
92
|
-
fileReducer: FileState;
|
|
93
|
-
authReducer: AuthState;
|
|
94
|
-
categoryReducer: CategoryState;
|
|
95
|
-
assetReducer: AssetState;
|
|
96
|
-
assetStageCompletionReducer: AssetStageCompletionState;
|
|
97
|
-
assetStageReducer: AssetStageState;
|
|
98
|
-
assetTypeReducer: AssetTypeState;
|
|
99
|
-
issueReducer: IssueState;
|
|
100
|
-
issueTypeReducer: IssueTypeState;
|
|
101
|
-
mapReducer: MapState;
|
|
102
|
-
organizationReducer: OrganizationState;
|
|
103
|
-
outboxReducer: OutboxState;
|
|
104
|
-
projectReducer: ProjectState;
|
|
105
|
-
projectAccessReducer: ProjectAccessState;
|
|
106
|
-
organizationAccessReducer: OrganizationAccessState;
|
|
107
|
-
projectFileReducer: ProjectFileState;
|
|
108
|
-
rehydratedReducer: RehydratedState;
|
|
109
|
-
settingReducer: SettingState;
|
|
110
|
-
formReducer: FormState;
|
|
111
|
-
userReducer: UserState;
|
|
112
|
-
formRevisionReducer: FormRevisionState;
|
|
113
|
-
formSubmissionReducer: FormSubmissionState;
|
|
114
|
-
workspaceReducer: WorkspaceState;
|
|
115
|
-
emailDomainsReducer: EmailDomainState;
|
|
116
|
-
licenseReducer: LicenseState;
|
|
117
|
-
documentsReducer: DocumentState;
|
|
118
|
-
teamReducer: TeamState;
|
|
119
|
-
agentsReducer: AgentsState;
|
|
120
|
-
} & {
|
|
121
|
-
offline: OfflineState;
|
|
122
|
-
}, AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<RootState, AnyAction>]>>;
|
|
123
90
|
export declare function performRequest(action: FullOfflineAction, client: OvermapSDK): Promise<request.Response>;
|
|
124
91
|
export declare function discard(reason: unknown, action: FullOfflineAction, retries?: number): boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="@redux-offline/redux-offline" />
|
|
2
2
|
import { OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
3
|
-
import {
|
|
4
|
-
export type
|
|
5
|
-
export type RootState = ReturnType<typeof overmapReducer> & {
|
|
3
|
+
import { overmapReducer } from "../../store";
|
|
4
|
+
export type OvermapRootState = ReturnType<typeof overmapReducer> & {
|
|
6
5
|
offline: OfflineState;
|
|
7
6
|
};
|
package/dist/typings/store.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type SelectorWithArgs<TArgs, TRet> = (args: TArgs) => (state:
|
|
3
|
-
export type Selector<TRet> = (state:
|
|
4
|
-
export type Migrator = (state: Partial<
|
|
1
|
+
import { OvermapRootState } from "./models";
|
|
2
|
+
export type SelectorWithArgs<TArgs, TRet> = (args: TArgs) => (state: OvermapRootState) => TRet | undefined;
|
|
3
|
+
export type Selector<TRet> = (state: OvermapRootState) => TRet;
|
|
4
|
+
export type Migrator = (state: Partial<OvermapRootState>) => Partial<OvermapRootState>;
|
|
5
5
|
export type Manifest = Record<number, Migrator>;
|
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
|
@@ -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.57-
|
|
6
|
+
"version": "1.0.57-export-overmap-reducer.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|
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>;
|