@overmap-ai/core 1.0.58-sign-up-hotfix.5 → 1.0.60-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/dist/contexts/overmap.d.ts +2 -2
- package/dist/contexts/sdk/globals.d.ts +3 -3
- package/dist/contexts/sdk/sdk.d.ts +4 -4
- package/dist/enums/index.d.ts +0 -1
- package/dist/forms/fields/BaseField/layouts.d.ts +3 -2
- package/dist/forms/fields/typings.d.ts +3 -3
- package/dist/forms/index.d.ts +1 -0
- package/dist/forms/provider.d.ts +5 -0
- package/dist/forms/renderer/index.d.ts +0 -1
- package/dist/overmap-core.js +5494 -3106
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +5571 -3184
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +4 -4
- package/dist/sdk/services/AssetAttachmentService.d.ts +9 -3
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +9 -3
- package/dist/sdk/services/BaseAttachmentService.d.ts +11 -15
- package/dist/sdk/services/CategoryService.d.ts +1 -20
- package/dist/sdk/services/DocumentAttachmentService.d.ts +9 -3
- package/dist/sdk/services/EmailDomainsService.d.ts +0 -1
- package/dist/sdk/services/IssueAttachmentService.d.ts +9 -3
- package/dist/sdk/services/IssueService.d.ts +1 -2
- package/dist/sdk/services/ProjectAttachmentService.d.ts +9 -3
- package/dist/store/adapter.d.ts +15 -0
- package/dist/store/index.d.ts +0 -1
- package/dist/store/slices/agentsSlice.d.ts +24 -13
- package/dist/store/slices/assetAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/assetSlice.d.ts +11 -52
- package/dist/store/slices/assetStageCompletionSlice.d.ts +2 -2
- package/dist/store/slices/assetStageSlice.d.ts +32 -24
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/assetTypeSlice.d.ts +11 -49
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +19 -60
- package/dist/store/slices/documentAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/documentSlice.d.ts +5 -79
- package/dist/store/slices/emailDomainsSlice.d.ts +14 -11
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +46 -0
- package/dist/store/slices/formRevisionSlice.d.ts +32 -56
- package/dist/store/slices/formSlice.d.ts +27 -22
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +46 -0
- package/dist/store/slices/formSubmissionSlice.d.ts +29 -29
- package/dist/store/slices/index.d.ts +9 -1
- package/dist/store/slices/issueAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/issueCommentSlice.d.ts +34 -0
- package/dist/store/slices/issueSlice.d.ts +25 -131
- package/dist/store/slices/issueTypeSlice.d.ts +25 -11
- package/dist/store/slices/issueUpdateSlice.d.ts +34 -0
- package/dist/store/slices/licenseSlice.d.ts +9 -7
- package/dist/store/slices/organizationAccessSlice.d.ts +14 -12
- package/dist/store/slices/outboxSlice.d.ts +3 -3
- package/dist/store/slices/projectAccessSlice.d.ts +16 -12
- package/dist/store/slices/projectAttachmentSlice.d.ts +52 -0
- package/dist/store/slices/projectFileSlice.d.ts +4 -37
- package/dist/store/slices/projectSlice.d.ts +5 -46
- package/dist/store/slices/rehydratedSlice.d.ts +3 -2
- package/dist/store/slices/settingsSlice.d.ts +3 -24
- package/dist/store/slices/teamSlice.d.ts +24 -10
- package/dist/store/slices/userSlice.d.ts +4 -4
- package/dist/store/slices/workspaceSlice.d.ts +22 -52
- package/dist/store/store.d.ts +15 -70
- package/dist/store/typings.d.ts +3 -0
- package/dist/style.css +0 -7
- package/dist/typings/models/store.d.ts +41 -4
- package/dist/typings/store.d.ts +4 -4
- package/dist/utils/utils.d.ts +3 -3
- package/package.json +5 -3
- package/dist/enums/map.d.ts +0 -6
- package/dist/forms/renderer/FormSubmissionBrowser/FormSubmissionBrowser.d.ts +0 -28
- package/dist/store/hooks.d.ts +0 -4
- package/dist/store/slices/mapSlice.d.ts +0 -23
- package/dist/store/slices/utils.d.ts +0 -14
package/dist/store/store.d.ts
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
/// <reference types="@redux-offline/redux-offline" />
|
|
2
|
-
import {
|
|
3
|
-
import { Config, OfflineAction, OfflineMetadata
|
|
2
|
+
import { Reducer } from "redux";
|
|
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
|
-
import { AgentsState, AuthState, CategoryState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeState, DocumentState, EmailDomainState, FileState, FormRevisionState, FormState, FormSubmissionState, IssueState, IssueTypeState, LicenseState,
|
|
6
|
+
import { AgentsState, AuthState, CategoryState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeState, DocumentState, EmailDomainState, FileState, FormRevisionState, FormState, FormSubmissionState, IssueState, IssueTypeState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, UserState, WorkspaceState, TeamState, IssueCommentState, IssueUpdateState, AssetAttachmentState, AssetTypeAttachmentState, DocumentAttachmentState, IssueAttachmentState, ProjectAttachmentState, FormSubmissionAttachmentState, FormRevisionAttachmentState } from "./slices";
|
|
7
7
|
import { VersioningState } from "./slices/versioningSlice";
|
|
8
|
-
import {
|
|
8
|
+
import { OvermapRootState } from "../typings";
|
|
9
|
+
export declare const VERSION_REDUCER_KEY = "versioning";
|
|
9
10
|
export declare const overmapReducers: {
|
|
10
11
|
versioning: Reducer<VersioningState>;
|
|
11
12
|
fileReducer: Reducer<FileState>;
|
|
12
13
|
authReducer: Reducer<AuthState>;
|
|
13
14
|
categoryReducer: Reducer<CategoryState>;
|
|
14
15
|
assetReducer: Reducer<AssetState>;
|
|
16
|
+
assetAttachmentReducer: Reducer<AssetAttachmentState>;
|
|
15
17
|
assetStageCompletionReducer: Reducer<AssetStageCompletionState>;
|
|
16
18
|
assetStageReducer: Reducer<AssetStageState>;
|
|
17
19
|
assetTypeReducer: Reducer<AssetTypeState>;
|
|
20
|
+
assetTypeAttachmentReducer: Reducer<AssetTypeAttachmentState>;
|
|
18
21
|
issueReducer: Reducer<IssueState>;
|
|
19
22
|
issueTypeReducer: Reducer<IssueTypeState>;
|
|
20
|
-
mapReducer: Reducer<MapState>;
|
|
21
23
|
organizationReducer: Reducer<OrganizationState>;
|
|
22
24
|
outboxReducer: Reducer<OutboxState>;
|
|
23
25
|
projectReducer: Reducer<ProjectState>;
|
|
26
|
+
projectAttachmentReducer: Reducer<ProjectAttachmentState>;
|
|
24
27
|
projectAccessReducer: Reducer<ProjectAccessState>;
|
|
25
28
|
organizationAccessReducer: Reducer<OrganizationAccessState>;
|
|
26
29
|
projectFileReducer: Reducer<ProjectFileState>;
|
|
@@ -29,47 +32,22 @@ export declare const overmapReducers: {
|
|
|
29
32
|
formReducer: Reducer<FormState>;
|
|
30
33
|
userReducer: Reducer<UserState>;
|
|
31
34
|
formRevisionReducer: Reducer<FormRevisionState>;
|
|
35
|
+
formRevisionAttachmentReducer: Reducer<FormRevisionAttachmentState>;
|
|
36
|
+
formSubmissionAttachmentReducer: Reducer<FormSubmissionAttachmentState>;
|
|
32
37
|
formSubmissionReducer: Reducer<FormSubmissionState>;
|
|
33
38
|
workspaceReducer: Reducer<WorkspaceState>;
|
|
34
39
|
emailDomainsReducer: Reducer<EmailDomainState>;
|
|
35
40
|
licenseReducer: Reducer<LicenseState>;
|
|
36
41
|
documentsReducer: Reducer<DocumentState>;
|
|
42
|
+
documentAttachmentReducer: Reducer<DocumentAttachmentState>;
|
|
37
43
|
teamReducer: Reducer<TeamState>;
|
|
38
44
|
agentsReducer: Reducer<AgentsState>;
|
|
45
|
+
issueCommentReducer: Reducer<IssueCommentState>;
|
|
46
|
+
issueUpdateReducer: Reducer<IssueUpdateState>;
|
|
47
|
+
issueAttachmentReducer: Reducer<IssueAttachmentState>;
|
|
39
48
|
};
|
|
40
|
-
export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
41
|
-
versioning: VersioningState;
|
|
42
|
-
fileReducer: FileState;
|
|
43
|
-
authReducer: AuthState;
|
|
44
|
-
categoryReducer: CategoryState;
|
|
45
|
-
assetReducer: AssetState;
|
|
46
|
-
assetStageCompletionReducer: AssetStageCompletionState;
|
|
47
|
-
assetStageReducer: AssetStageState;
|
|
48
|
-
assetTypeReducer: AssetTypeState;
|
|
49
|
-
issueReducer: IssueState;
|
|
50
|
-
issueTypeReducer: IssueTypeState;
|
|
51
|
-
mapReducer: MapState;
|
|
52
|
-
organizationReducer: OrganizationState;
|
|
53
|
-
outboxReducer: OutboxState;
|
|
54
|
-
projectReducer: ProjectState;
|
|
55
|
-
projectAccessReducer: ProjectAccessState;
|
|
56
|
-
organizationAccessReducer: OrganizationAccessState;
|
|
57
|
-
projectFileReducer: ProjectFileState;
|
|
58
|
-
rehydratedReducer: RehydratedState;
|
|
59
|
-
settingReducer: SettingState;
|
|
60
|
-
formReducer: FormState;
|
|
61
|
-
userReducer: UserState;
|
|
62
|
-
formRevisionReducer: FormRevisionState;
|
|
63
|
-
formSubmissionReducer: FormSubmissionState;
|
|
64
|
-
workspaceReducer: WorkspaceState;
|
|
65
|
-
emailDomainsReducer: EmailDomainState;
|
|
66
|
-
licenseReducer: LicenseState;
|
|
67
|
-
documentsReducer: DocumentState;
|
|
68
|
-
teamReducer: TeamState;
|
|
69
|
-
agentsReducer: AgentsState;
|
|
70
|
-
}>, AnyAction>;
|
|
71
49
|
export declare const resetStore = "RESET";
|
|
72
|
-
export declare const
|
|
50
|
+
export declare const overmapRootReducer: Reducer<OvermapRootState>;
|
|
73
51
|
export interface FullOfflineMetadata extends OfflineMetadata {
|
|
74
52
|
effect: OfflineMetaEffect;
|
|
75
53
|
}
|
|
@@ -87,38 +65,5 @@ export declare const dequeue: Config["queue"]["dequeue"];
|
|
|
87
65
|
* Add to your store's `enhancers` array.
|
|
88
66
|
*/
|
|
89
67
|
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
68
|
export declare function performRequest(action: FullOfflineAction, client: OvermapSDK): Promise<request.Response>;
|
|
124
69
|
export declare function discard(reason: unknown, action: FullOfflineAction, retries?: number): boolean;
|
package/dist/style.css
CHANGED
|
@@ -301,13 +301,6 @@
|
|
|
301
301
|
._regularIcon_1bixi_9._regularIcon_1bixi_9:hover:not(:disabled) {
|
|
302
302
|
color: var(--yellow-a9);
|
|
303
303
|
background-color: transparent;
|
|
304
|
-
}._submissionsContainer_9iirt_1 {
|
|
305
|
-
overflow-y: auto;
|
|
306
|
-
max-height: min(369px, 100vh - 200px);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
._stopHorizontalOverflow_9iirt_6 {
|
|
310
|
-
min-width: 0;
|
|
311
304
|
}._typeBadge_an5ff_1 {
|
|
312
305
|
width: fit-content;
|
|
313
306
|
}
|
|
@@ -1,7 +1,44 @@
|
|
|
1
1
|
/// <reference types="@redux-offline/redux-offline" />
|
|
2
2
|
import { OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export
|
|
3
|
+
import { AgentsState, AssetAttachmentState, AssetStageCompletionState, AssetStageState, AssetState, AssetTypeAttachmentState, AssetTypeState, AuthState, CategoryState, DocumentAttachmentState, DocumentState, EmailDomainState, FileState, FormRevisionAttachmentState, FormRevisionState, FormState, FormSubmissionAttachmentState, FormSubmissionState, IssueAttachmentState, IssueCommentState, IssueState, IssueTypeState, IssueUpdateState, LicenseState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectAttachmentState, ProjectFileState, ProjectState, RehydratedState, SettingState, TeamState, UserState, VERSION_REDUCER_KEY, WorkspaceState } from "../../store";
|
|
4
|
+
import { VersioningState } from "../../store/slices/versioningSlice";
|
|
5
|
+
export interface OvermapRootState {
|
|
6
|
+
[VERSION_REDUCER_KEY]: VersioningState;
|
|
7
|
+
fileReducer: FileState;
|
|
8
|
+
authReducer: AuthState;
|
|
9
|
+
categoryReducer: CategoryState;
|
|
10
|
+
assetReducer: AssetState;
|
|
11
|
+
assetAttachmentReducer: AssetAttachmentState;
|
|
12
|
+
assetStageCompletionReducer: AssetStageCompletionState;
|
|
13
|
+
assetStageReducer: AssetStageState;
|
|
14
|
+
assetTypeReducer: AssetTypeState;
|
|
15
|
+
assetTypeAttachmentReducer: AssetTypeAttachmentState;
|
|
16
|
+
issueReducer: IssueState;
|
|
17
|
+
issueAttachmentReducer: IssueAttachmentState;
|
|
18
|
+
issueCommentReducer: IssueCommentState;
|
|
19
|
+
issueUpdateReducer: IssueUpdateState;
|
|
20
|
+
issueTypeReducer: IssueTypeState;
|
|
21
|
+
organizationReducer: OrganizationState;
|
|
22
|
+
outboxReducer: OutboxState;
|
|
23
|
+
projectReducer: ProjectState;
|
|
24
|
+
projectAttachmentReducer: ProjectAttachmentState;
|
|
25
|
+
projectAccessReducer: ProjectAccessState;
|
|
26
|
+
organizationAccessReducer: OrganizationAccessState;
|
|
27
|
+
projectFileReducer: ProjectFileState;
|
|
28
|
+
rehydratedReducer: RehydratedState;
|
|
29
|
+
settingReducer: SettingState;
|
|
30
|
+
formReducer: FormState;
|
|
31
|
+
formRevisionReducer: FormRevisionState;
|
|
32
|
+
formRevisionAttachmentReducer: FormRevisionAttachmentState;
|
|
33
|
+
formSubmissionReducer: FormSubmissionState;
|
|
34
|
+
formSubmissionAttachmentReducer: FormSubmissionAttachmentState;
|
|
35
|
+
userReducer: UserState;
|
|
36
|
+
workspaceReducer: WorkspaceState;
|
|
37
|
+
emailDomainsReducer: EmailDomainState;
|
|
38
|
+
licenseReducer: LicenseState;
|
|
39
|
+
documentsReducer: DocumentState;
|
|
40
|
+
documentAttachmentReducer: DocumentAttachmentState;
|
|
41
|
+
teamReducer: TeamState;
|
|
42
|
+
agentsReducer: AgentsState;
|
|
6
43
|
offline: OfflineState;
|
|
7
|
-
}
|
|
44
|
+
}
|
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.
|
|
6
|
+
"version": "1.0.60-export-overmap-reducer.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/overmap-core.umd.cjs",
|
|
9
9
|
"module": "dist/overmap-core.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
54
54
|
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
55
|
-
"@overmap-ai/blocks": "
|
|
55
|
+
"@overmap-ai/blocks": "1.0.31-clean-up.1",
|
|
56
56
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
57
57
|
"@storybook/addon-essentials": "7.3.2",
|
|
58
58
|
"@storybook/addon-interactions": "7.3.2",
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
"react": "^18.2.0",
|
|
103
103
|
"react-dom": "^18.2.0",
|
|
104
104
|
"react-hooks": "^1.0.1",
|
|
105
|
+
"react-icons": "^5.4.0",
|
|
105
106
|
"react-redux": "^8.1.2",
|
|
106
107
|
"redux": "^4.2.1",
|
|
107
108
|
"rollup-plugin-polyfill-node": "^0.12.0",
|
|
@@ -114,11 +115,12 @@
|
|
|
114
115
|
"vitest": "^1.2.1"
|
|
115
116
|
},
|
|
116
117
|
"peerDependencies": {
|
|
117
|
-
"@overmap-ai/blocks": "1.0.
|
|
118
|
+
"@overmap-ai/blocks": "1.0.31-clean-up.1",
|
|
118
119
|
"@tiptap/core": "^2.4.0",
|
|
119
120
|
"leaflet": "^1.9.0",
|
|
120
121
|
"react": "^18.2.0",
|
|
121
122
|
"react-dom": "^18.2.0",
|
|
123
|
+
"react-icons": "^1.3.0",
|
|
122
124
|
"react-redux": "^8.1.2"
|
|
123
125
|
},
|
|
124
126
|
"resolutions": {
|
package/dist/enums/map.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { Stored, UserFormSubmission } from "../../../typings";
|
|
3
|
-
export interface FormSubmissionClickEvent {
|
|
4
|
-
submission: Stored<UserFormSubmission>;
|
|
5
|
-
}
|
|
6
|
-
interface UserFormSubmissionBrowserEntryProps {
|
|
7
|
-
submission: Stored<UserFormSubmission>;
|
|
8
|
-
onSubmissionClick?: (e: FormSubmissionClickEvent) => void;
|
|
9
|
-
rowDecorator?: (submission: Stored<UserFormSubmission>, Row: ReactNode) => ReactNode;
|
|
10
|
-
compact: boolean;
|
|
11
|
-
labelType: "creator" | "formName";
|
|
12
|
-
}
|
|
13
|
-
interface FormSubmissionBrowserProps {
|
|
14
|
-
formId?: string;
|
|
15
|
-
submissions?: Stored<UserFormSubmission>[];
|
|
16
|
-
onSubmissionClick?: (e: FormSubmissionClickEvent) => void;
|
|
17
|
-
rowDecorator?: UserFormSubmissionBrowserEntryProps["rowDecorator"];
|
|
18
|
-
/** @default false */
|
|
19
|
-
compact?: boolean;
|
|
20
|
-
labelType: "creator" | "formName";
|
|
21
|
-
className?: string;
|
|
22
|
-
/** @default outline */
|
|
23
|
-
variant?: "ghost" | "outline";
|
|
24
|
-
/** Content displayed within the container but after the list */
|
|
25
|
-
after?: ReactNode;
|
|
26
|
-
}
|
|
27
|
-
export declare const FormSubmissionBrowser: import("react").MemoExoticComponent<(props: FormSubmissionBrowserProps) => import("react/jsx-runtime").JSX.Element>;
|
|
28
|
-
export {};
|
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,23 +0,0 @@
|
|
|
1
|
-
import { PayloadAction, Reducer } from "@reduxjs/toolkit";
|
|
2
|
-
import { MapStyle } from "../../enums";
|
|
3
|
-
import { RootState } from "../../typings";
|
|
4
|
-
export interface MapState {
|
|
5
|
-
mapStyle: MapStyle;
|
|
6
|
-
showTooltips: boolean;
|
|
7
|
-
centerMapToProject: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Stores map settings and current location
|
|
11
|
-
*/
|
|
12
|
-
export declare const mapSlice: import("@reduxjs/toolkit").Slice<MapState, {
|
|
13
|
-
setMapStyle: (state: import("immer/dist/internal.js").WritableDraft<MapState>, action: PayloadAction<MapStyle>) => void;
|
|
14
|
-
setShowTooltips: (state: import("immer/dist/internal.js").WritableDraft<MapState>, action: PayloadAction<boolean>) => void;
|
|
15
|
-
setCenterMapToProject: (state: import("immer/dist/internal.js").WritableDraft<MapState>, action: {
|
|
16
|
-
payload: boolean;
|
|
17
|
-
}) => void;
|
|
18
|
-
}, "map">;
|
|
19
|
-
export declare const setMapStyle: import("@reduxjs/toolkit").ActionCreatorWithPayload<MapStyle, "map/setMapStyle">, setShowTooltips: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "map/setShowTooltips">, setCenterMapToProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "map/setCenterMapToProject">;
|
|
20
|
-
export declare const selectMapStyle: (state: RootState) => MapStyle;
|
|
21
|
-
export declare const selectShowTooltips: (state: RootState) => boolean;
|
|
22
|
-
export declare const selectCenterMapToProject: (state: RootState) => boolean;
|
|
23
|
-
export declare const mapReducer: Reducer<MapState>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
import { Stored, Submitted } from "../../typings";
|
|
3
|
-
interface AttachmentState<TState> {
|
|
4
|
-
attachments: Record<string, Stored<TState>>;
|
|
5
|
-
}
|
|
6
|
-
export declare function setAttachment<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Stored<TAttachment>>): void;
|
|
7
|
-
export declare function setAttachments<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Stored<TAttachment>[]>): void;
|
|
8
|
-
export declare function addAttachment<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Submitted<TAttachment>>): void;
|
|
9
|
-
export declare function addAttachments<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Submitted<TAttachment>[]>): void;
|
|
10
|
-
export declare function updateAttachment<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Submitted<TAttachment>>): void;
|
|
11
|
-
export declare function updateAttachments<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<Submitted<TAttachment>[]>): void;
|
|
12
|
-
export declare function removeAttachment<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<string>): void;
|
|
13
|
-
export declare function removeAttachments<TAttachment, TState extends AttachmentState<TAttachment>>(state: TState, action: PayloadAction<string[]>): void;
|
|
14
|
-
export {};
|