@overmap-ai/core 1.0.29-org-switcher-and-bug-fixes.7 → 1.0.30
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/sdk/globals.d.ts +4 -0
- package/dist/contexts/sdk/sdk.d.ts +1 -5
- package/dist/forms/builder/DropDispatch.d.ts +27 -0
- package/dist/forms/builder/FieldActions.d.ts +12 -0
- package/dist/forms/builder/FieldBuilder.d.ts +23 -0
- package/dist/forms/builder/FieldSectionWithActions.d.ts +10 -0
- package/dist/forms/builder/FieldWithActions.d.ts +11 -0
- package/dist/forms/builder/FieldsEditor.d.ts +2 -0
- package/dist/forms/builder/FormBuilder.d.ts +15 -0
- package/dist/forms/builder/constants.d.ts +1 -0
- package/dist/forms/builder/index.d.ts +2 -0
- package/dist/forms/builder/typings.d.ts +12 -0
- package/dist/forms/builder/utils.d.ts +14 -0
- package/dist/forms/fields/BaseField/BaseField.d.ts +39 -0
- package/dist/forms/fields/BaseField/hooks.d.ts +374 -0
- package/dist/forms/fields/BaseField/index.d.ts +4 -0
- package/dist/forms/fields/BaseField/layouts.d.ts +19 -0
- package/dist/forms/fields/BaseField/typings.d.ts +7 -0
- package/dist/forms/fields/BooleanField/BooleanField.d.ts +17 -0
- package/dist/forms/fields/BooleanField/BooleanInput.d.ts +4 -0
- package/dist/forms/fields/BooleanField/index.d.ts +2 -0
- package/dist/forms/fields/CustomField/CustomField.d.ts +18 -0
- package/dist/forms/fields/CustomField/FieldInputClonerField/FieldInputCloner.d.ts +8 -0
- package/dist/forms/fields/CustomField/FieldInputClonerField/FieldInputClonerField.d.ts +18 -0
- package/dist/forms/fields/CustomField/FieldInputClonerField/index.d.ts +3 -0
- package/dist/forms/fields/CustomField/FieldInputClonerField/typings.d.ts +5 -0
- package/dist/forms/fields/CustomField/index.d.ts +1 -0
- package/dist/forms/fields/DateField/DateField.d.ts +16 -0
- package/dist/forms/fields/DateField/DateInput.d.ts +4 -0
- package/dist/forms/fields/DateField/index.d.ts +2 -0
- package/dist/forms/fields/FieldSection/FieldSection.d.ts +27 -0
- package/dist/forms/fields/FieldSection/FieldSectionLayout.d.ts +7 -0
- package/dist/forms/fields/FieldSection/index.d.ts +1 -0
- package/dist/forms/fields/MultiStringField/MultiStringField.d.ts +30 -0
- package/dist/forms/fields/MultiStringField/MultiStringInput.d.ts +8 -0
- package/dist/forms/fields/MultiStringField/index.d.ts +2 -0
- package/dist/forms/fields/NumberField/NumberField.d.ts +29 -0
- package/dist/forms/fields/NumberField/NumberInput.d.ts +4 -0
- package/dist/forms/fields/NumberField/index.d.ts +2 -0
- package/dist/forms/fields/SelectField/BaseSelectField.d.ts +27 -0
- package/dist/forms/fields/SelectField/MultiSelectField.d.ts +20 -0
- package/dist/forms/fields/SelectField/MultiSelectInput.d.ts +4 -0
- package/dist/forms/fields/SelectField/SelectField.d.ts +19 -0
- package/dist/forms/fields/SelectField/SelectInput.d.ts +4 -0
- package/dist/forms/fields/SelectField/index.d.ts +4 -0
- package/dist/forms/fields/StringOrTextFields/StringField/StringField.d.ts +18 -0
- package/dist/forms/fields/StringOrTextFields/StringField/StringInput.d.ts +4 -0
- package/dist/forms/fields/StringOrTextFields/StringField/index.d.ts +2 -0
- package/dist/forms/fields/StringOrTextFields/StringOrTextField.d.ts +29 -0
- package/dist/forms/fields/StringOrTextFields/TextField/TextField.d.ts +15 -0
- package/dist/forms/fields/StringOrTextFields/TextField/TextInput.d.ts +4 -0
- package/dist/forms/fields/StringOrTextFields/TextField/index.d.ts +2 -0
- package/dist/forms/fields/StringOrTextFields/index.d.ts +2 -0
- package/dist/forms/fields/UploadField/UploadField.d.ts +29 -0
- package/dist/forms/fields/UploadField/UploadInput.d.ts +4 -0
- package/dist/forms/fields/UploadField/index.d.ts +2 -0
- package/dist/forms/fields/UploadField/utils.d.ts +1 -0
- package/dist/forms/fields/constants.d.ts +20 -0
- package/dist/forms/fields/hooks.d.ts +6 -0
- package/dist/forms/fields/index.d.ts +11 -0
- package/dist/forms/fields/typings.d.ts +23 -0
- package/dist/forms/fields/utils.d.ts +14 -0
- package/dist/forms/index.d.ts +3 -0
- package/dist/forms/renderer/FormBrowser/FormBrowser.d.ts +11 -0
- package/dist/forms/renderer/FormRenderer/FormRenderer.d.ts +29 -0
- package/dist/forms/renderer/FormSubmissionBrowser/FormSubmissionBrowser.d.ts +28 -0
- package/dist/forms/renderer/FormSubmissionViewer/FormSubmissionViewer.d.ts +17 -0
- package/dist/forms/renderer/PatchForm/Field.d.ts +15 -0
- package/dist/forms/renderer/PatchForm/Provider.d.ts +24 -0
- package/dist/forms/renderer/PatchForm/index.d.ts +2 -0
- package/dist/forms/renderer/index.d.ts +5 -0
- package/dist/forms/typings.d.ts +16 -0
- package/dist/forms/utils.d.ts +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/overmap-core.js +4804 -180
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +4804 -170
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/classes/OutboxCoordinator.d.ts +1 -0
- package/dist/sdk/services/ComponentService.d.ts +4 -4
- package/dist/sdk/services/MainService.d.ts +0 -1
- package/dist/sdk/services/OrganizationService.d.ts +1 -3
- package/dist/store/slices/categorySlice.d.ts +22 -22
- package/dist/store/slices/issueSlice.d.ts +22 -22
- package/dist/store/slices/organizationAccessSlice.d.ts +6 -2
- package/dist/store/slices/organizationSlice.d.ts +0 -1
- package/dist/store/slices/projectFileSlice.d.ts +22 -22
- package/dist/store/slices/projectSlice.d.ts +0 -1
- package/dist/store/slices/userFormSlice.d.ts +10 -10
- package/dist/store/slices/workspaceSlice.d.ts +22 -22
- package/dist/store/store.d.ts +69 -66
- package/dist/style.css +34 -0
- package/dist/typings/models/organizations.d.ts +0 -10
- package/dist/typings/models/store.d.ts +1 -0
- package/dist/utils/optimization.d.ts +2 -2
- package/package.json +14 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
2
|
import { Component, Payload } from "../../typings";
|
|
3
|
-
import {
|
|
3
|
+
import { OptimisticModelResult } from "../typings";
|
|
4
4
|
export declare class ComponentService extends BaseApiService {
|
|
5
5
|
add(component: Payload<Component>, workspaceId: string): OptimisticModelResult<Component>;
|
|
6
6
|
update(component: Component, workspaceId: string): OptimisticModelResult<Component>;
|
|
7
|
-
remove(id: string):
|
|
8
|
-
deleteAllByComponentType(componentTypeId: string): Promise<
|
|
9
|
-
addBatch(componentsToCreate: Payload<Component>[], workspaceId: string, componentTypeId: string): Promise<
|
|
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
10
|
refreshStore(replace: boolean): Promise<void>;
|
|
11
11
|
}
|
|
@@ -12,7 +12,6 @@ export interface InitialAPIData {
|
|
|
12
12
|
})[];
|
|
13
13
|
organizations: Organization[];
|
|
14
14
|
user: User;
|
|
15
|
-
project_owners: User[];
|
|
16
15
|
}
|
|
17
16
|
export declare class MainService extends BaseApiService {
|
|
18
17
|
fetchInitialData(replaceExisting: boolean, uuid?: string): Promise<InitialAPIData>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { Organization
|
|
1
|
+
import { Organization } from "../../typings";
|
|
2
2
|
import { BaseApiService } from "./BaseApiService";
|
|
3
3
|
export declare class OrganizationService extends BaseApiService {
|
|
4
|
-
fetchInitialOrganizationData(organization_id: number, showLoading: boolean): Promise<InitialOrganizationData>;
|
|
5
|
-
_processInitialOrganizationData(data: InitialOrganizationData, showLoading: boolean): void;
|
|
6
4
|
create(name: string): Promise<Organization>;
|
|
7
5
|
update(organization: Organization): Promise<Organization>;
|
|
8
6
|
invite(organizationId: number, email: string): Promise<undefined>;
|
|
@@ -42,28 +42,28 @@ export declare const categorySlice: import("@reduxjs/toolkit").Slice<CategorySta
|
|
|
42
42
|
export declare const setCategories: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category[], "categories/setCategories">, addCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category, "categories/addCategory">, replaceCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category, "categories/replaceCategory">, patchCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<Offline<Partial<Category>>, "categories/patchCategory">, removeCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "categories/removeCategory">, hideCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "categories/hideCategory">, hideAllCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"categories/hideAllCategories">, unhideCategory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "categories/unhideCategory">, unhideAllCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"categories/unhideAllCategories">, removeColor: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "categories/removeColor">, addOrReplaceCategories: import("@reduxjs/toolkit").ActionCreatorWithPayload<Category[], "categories/addOrReplaceCategories">;
|
|
43
43
|
export declare const selectCategoryMapping: (state: RootState) => Record<string, Category>;
|
|
44
44
|
export declare const selectCategories: ((state: import("redux").EmptyObject & {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
45
|
+
versioning: import('../slices/versioningSlice').VersioningState;
|
|
46
|
+
fileReducer: import('..').FileState;
|
|
47
|
+
authReducer: import('..').AuthState;
|
|
48
|
+
categoryReducer: CategoryState;
|
|
49
|
+
componentReducer: import('..').ComponentState;
|
|
50
|
+
componentStageCompletionReducer: import('..').ComponentStageCompletionState;
|
|
51
|
+
componentStageReducer: import('..').ComponentStageState;
|
|
52
|
+
componentTypeReducer: import('..').ComponentTypeState;
|
|
53
|
+
issueReducer: import('..').IssueState;
|
|
54
|
+
mapReducer: import('..').MapState;
|
|
55
|
+
organizationReducer: import('..').OrganizationState;
|
|
56
|
+
outboxReducer: import('..').OutboxState;
|
|
57
|
+
projectReducer: import('..').ProjectState;
|
|
58
|
+
projectAccessReducer: import('..').ProjectAccessState;
|
|
59
|
+
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
60
|
+
projectFileReducer: import('..').ProjectFileState;
|
|
61
|
+
rehydratedReducer: import('..').RehydratedState;
|
|
62
|
+
settingReducer: import('..').SettingState;
|
|
63
|
+
userFormReducer: import('..').UserFormState;
|
|
64
|
+
userReducer: import('..').UserState;
|
|
65
|
+
workspaceReducer: import('..').WorkspaceState;
|
|
66
|
+
emailDomainsReducer: import('..').EmailDomainState;
|
|
67
67
|
} & {
|
|
68
68
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
69
69
|
}) => Category[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Category>, args_1: string | null) => Category[], {
|
|
@@ -78,28 +78,28 @@ export declare const selectFileAttachmentsOfIssue: (args: string) => (state: Roo
|
|
|
78
78
|
export declare const selectIssue: SelectorWithArgs<string, Stored<Issue> | undefined>;
|
|
79
79
|
export declare const selectIsFetchingInitialData: (state: RootState) => boolean;
|
|
80
80
|
export declare const selectAllAttachments: ((state: import("redux").EmptyObject & {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
81
|
+
versioning: import('../slices/versioningSlice.ts').VersioningState;
|
|
82
|
+
fileReducer: import("index.ts").FileState;
|
|
83
|
+
authReducer: import("index.ts").AuthState;
|
|
84
|
+
categoryReducer: import("./categorySlice.ts").CategoryState;
|
|
85
|
+
componentReducer: import("index.ts").ComponentState;
|
|
86
|
+
componentStageCompletionReducer: import("index.ts").ComponentStageCompletionState;
|
|
87
|
+
componentStageReducer: import("index.ts").ComponentStageState;
|
|
88
|
+
componentTypeReducer: import("index.ts").ComponentTypeState;
|
|
89
|
+
issueReducer: IssueState;
|
|
90
|
+
mapReducer: import("index.ts").MapState;
|
|
91
|
+
organizationReducer: import("index.ts").OrganizationState;
|
|
92
|
+
outboxReducer: import("index.ts").OutboxState;
|
|
93
|
+
projectReducer: import("index.ts").ProjectState;
|
|
94
|
+
projectAccessReducer: import("index.ts").ProjectAccessState;
|
|
95
|
+
organizationAccessReducer: import("index.ts").OrganizationAccessState;
|
|
96
|
+
projectFileReducer: import("index.ts").ProjectFileState;
|
|
97
|
+
rehydratedReducer: import("index.ts").RehydratedState;
|
|
98
|
+
settingReducer: import("index.ts").SettingState;
|
|
99
|
+
userFormReducer: import("index.ts").UserFormState;
|
|
100
|
+
userReducer: import("index.ts").UserState;
|
|
101
|
+
workspaceReducer: import("./workspaceSlice.ts").WorkspaceState;
|
|
102
|
+
emailDomainsReducer: import("index.ts").EmailDomainState;
|
|
103
103
|
} & {
|
|
104
104
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
105
105
|
}) => Stored<IssueAttachment>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<IssueAttachment>>) => Stored<IssueAttachment>[], {
|
|
@@ -3,6 +3,7 @@ import { RootState, Selector, SelectorWithArgs } from '../../typings';
|
|
|
3
3
|
import { OfflineIdMapping, OrganizationAccess, User } from '../../typings/models';
|
|
4
4
|
export interface OrganizationAccessState {
|
|
5
5
|
organizationAccesses: OfflineIdMapping<OrganizationAccess>;
|
|
6
|
+
activeOrganizationAccessId: string | null;
|
|
6
7
|
}
|
|
7
8
|
export declare const organizationAccessSlice: import("@reduxjs/toolkit").Slice<OrganizationAccessState, {
|
|
8
9
|
setOrganizationAccesses: (state: import("immer/dist/internal.js").WritableDraft<OrganizationAccessState>, action: {
|
|
@@ -14,11 +15,14 @@ export declare const organizationAccessSlice: import("@reduxjs/toolkit").Slice<O
|
|
|
14
15
|
removeOrganizationAccess: (state: import("immer/dist/internal.js").WritableDraft<OrganizationAccessState>, action: {
|
|
15
16
|
payload: OrganizationAccess;
|
|
16
17
|
}) => void;
|
|
18
|
+
setActiveOrganizationAccessId: (state: import("immer/dist/internal.js").WritableDraft<OrganizationAccessState>, action: {
|
|
19
|
+
payload: string | null;
|
|
20
|
+
}) => void;
|
|
17
21
|
}, "organizationAccess">;
|
|
18
|
-
export declare const setOrganizationAccesses: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess[], "organizationAccess/setOrganizationAccesses">, updateOrganizationAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/updateOrganizationAccess">, removeOrganizationAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/removeOrganizationAccess">;
|
|
22
|
+
export declare const setOrganizationAccesses: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess[], "organizationAccess/setOrganizationAccesses">, updateOrganizationAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/updateOrganizationAccess">, removeOrganizationAccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<OrganizationAccess, "organizationAccess/removeOrganizationAccess">, setActiveOrganizationAccessId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "organizationAccess/setActiveOrganizationAccessId">;
|
|
19
23
|
export declare const selectOrganizationAccesses: (state: RootState) => OfflineIdMapping<OrganizationAccess>;
|
|
20
24
|
export declare const selectOrganizationAccess: SelectorWithArgs<string, OrganizationAccess>;
|
|
21
25
|
export declare const selectActiveOrganizationAccess: Selector<OrganizationAccess | null>;
|
|
22
26
|
export declare const selectOrganizationAccessForUser: SelectorWithArgs<User, OrganizationAccess | undefined>;
|
|
23
|
-
export declare const selectOrganizationAccessUserMapping: (state: RootState) =>
|
|
27
|
+
export declare const selectOrganizationAccessUserMapping: (state: RootState) => Record<number, OrganizationAccess>;
|
|
24
28
|
export declare const organizationAccessReducer: Reducer<OrganizationAccessState>;
|
|
@@ -19,7 +19,6 @@ export declare const organizationSlice: import("@reduxjs/toolkit").Slice<Organiz
|
|
|
19
19
|
export declare const setOrganizations: import("@reduxjs/toolkit").ActionCreatorWithPayload<Organization[], "organizations/setOrganizations">, setActiveOrganizationId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "organizations/setActiveOrganizationId">, updateActiveOrganization: import("@reduxjs/toolkit").ActionCreatorWithPayload<Organization, "organizations/updateActiveOrganization">;
|
|
20
20
|
export declare const selectActiveOrganizationId: Selector<number | null>;
|
|
21
21
|
export declare const selectOrganizations: Selector<Organization[]>;
|
|
22
|
-
export declare const selectOrganizationsWithAccess: Selector<Organization[]>;
|
|
23
22
|
export declare const selectActiveOrganization: Selector<Organization | null>;
|
|
24
23
|
export declare const selectOrganizationUsersIds: Selector<number[]>;
|
|
25
24
|
export declare const selectOrganizationUsersAsMapping: Selector<Record<number, User>>;
|
|
@@ -50,28 +50,28 @@ export declare const selectEnabledProjectFiles: (state: RootState) => Record<str
|
|
|
50
50
|
export declare const selectProjectFileVisibility: Selector<Record<string, boolean>>;
|
|
51
51
|
export declare const selectEnabledProjectFileMapping: (state: RootState) => Record<string, ProjectFile>;
|
|
52
52
|
export declare const selectProjectFiles: ((state: import("redux").EmptyObject & {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
53
|
+
versioning: import('../slices/versioningSlice.ts').VersioningState;
|
|
54
|
+
fileReducer: import("index.ts").FileState;
|
|
55
|
+
authReducer: import("index.ts").AuthState;
|
|
56
|
+
categoryReducer: import("index.ts").CategoryState;
|
|
57
|
+
componentReducer: import("index.ts").ComponentState;
|
|
58
|
+
componentStageCompletionReducer: import("index.ts").ComponentStageCompletionState;
|
|
59
|
+
componentStageReducer: import("index.ts").ComponentStageState;
|
|
60
|
+
componentTypeReducer: import("index.ts").ComponentTypeState;
|
|
61
|
+
issueReducer: import("index.ts").IssueState;
|
|
62
|
+
mapReducer: import("index.ts").MapState;
|
|
63
|
+
organizationReducer: import("index.ts").OrganizationState;
|
|
64
|
+
outboxReducer: import("index.ts").OutboxState;
|
|
65
|
+
projectReducer: import("./projectSlice.ts").ProjectState;
|
|
66
|
+
projectAccessReducer: import("index.ts").ProjectAccessState;
|
|
67
|
+
organizationAccessReducer: import("index.ts").OrganizationAccessState;
|
|
68
|
+
projectFileReducer: ProjectFileState;
|
|
69
|
+
rehydratedReducer: import("index.ts").RehydratedState;
|
|
70
|
+
settingReducer: import("index.ts").SettingState;
|
|
71
|
+
userFormReducer: import("index.ts").UserFormState;
|
|
72
|
+
userReducer: import("index.ts").UserState;
|
|
73
|
+
workspaceReducer: import("index.ts").WorkspaceState;
|
|
74
|
+
emailDomainsReducer: import("index.ts").EmailDomainState;
|
|
75
75
|
} & {
|
|
76
76
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
77
77
|
}) => ProjectFile[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, ProjectFile>, args_1: number | null) => ProjectFile[], {
|
|
@@ -32,7 +32,6 @@ export declare const selectProjects: Selector<Record<number, Project>>;
|
|
|
32
32
|
export declare const selectActiveProjectId: (state: RootState) => number | null;
|
|
33
33
|
export declare const selectActiveProject: (state: RootState) => Project | null;
|
|
34
34
|
export declare const selectRecentProjects: (state: RootState) => number[];
|
|
35
|
-
export declare const selectSortedProjects: Selector<Project[]>;
|
|
36
35
|
export declare const selectCreateProjectType: (state: RootState) => ProjectType;
|
|
37
36
|
export declare const projectReducer: Reducer<ProjectState>;
|
|
38
37
|
export declare const selectProjectUsersIds: Selector<number[]>;
|
|
@@ -60,51 +60,51 @@ export declare const userFormSlice: import("@reduxjs/toolkit").Slice<UserFormSta
|
|
|
60
60
|
payload: string;
|
|
61
61
|
}) => void;
|
|
62
62
|
}, "userForms">;
|
|
63
|
-
export declare const addUserForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Pick<import(
|
|
63
|
+
export declare const addUserForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<(Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
|
|
64
64
|
favorite: boolean;
|
|
65
65
|
} & {
|
|
66
66
|
owner_organization: number;
|
|
67
67
|
owner_user: undefined;
|
|
68
68
|
} & {
|
|
69
69
|
offline_id: string;
|
|
70
|
-
} & import(
|
|
70
|
+
} & import('../../typings/models/base').OfflineModel & {
|
|
71
71
|
created_by: number;
|
|
72
72
|
submitted_at: string;
|
|
73
|
-
}) | (Pick<import(
|
|
73
|
+
}) | (Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
|
|
74
74
|
favorite: boolean;
|
|
75
75
|
} & {
|
|
76
76
|
owner_organization: undefined;
|
|
77
77
|
owner_user: number;
|
|
78
78
|
} & {
|
|
79
79
|
offline_id: string;
|
|
80
|
-
} & import(
|
|
80
|
+
} & import('../../typings/models/base').OfflineModel & {
|
|
81
81
|
created_by: number;
|
|
82
82
|
submitted_at: string;
|
|
83
|
-
}), "userForms/addUserForm">, addUserForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<((Pick<import(
|
|
83
|
+
}), "userForms/addUserForm">, addUserForms: import("@reduxjs/toolkit").ActionCreatorWithPayload<((Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
|
|
84
84
|
favorite: boolean;
|
|
85
85
|
} & {
|
|
86
86
|
owner_organization: number;
|
|
87
87
|
owner_user: undefined;
|
|
88
88
|
} & {
|
|
89
89
|
offline_id: string;
|
|
90
|
-
} & import(
|
|
90
|
+
} & import('../../typings/models/base').OfflineModel & {
|
|
91
91
|
created_by: number;
|
|
92
92
|
submitted_at: string;
|
|
93
|
-
}) | (Pick<import(
|
|
93
|
+
}) | (Pick<import('../../typings/models/workspace').WorkspaceIndexedModel, "index_workspace"> & {
|
|
94
94
|
favorite: boolean;
|
|
95
95
|
} & {
|
|
96
96
|
owner_organization: undefined;
|
|
97
97
|
owner_user: number;
|
|
98
98
|
} & {
|
|
99
99
|
offline_id: string;
|
|
100
|
-
} & import(
|
|
100
|
+
} & import('../../typings/models/base').OfflineModel & {
|
|
101
101
|
created_by: number;
|
|
102
102
|
submitted_at: string;
|
|
103
|
-
}))[], "userForms/addUserForms">, addUserFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormRevision<import(
|
|
103
|
+
}))[], "userForms/addUserForms">, addUserFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormRevision<import('../../forms').ISerializedField>[], "userForms/addUserFormRevisions">, addUserFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmission, "userForms/addUserFormSubmission">, addUserFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmission[], "userForms/addUserFormSubmissions">, deleteUserFormSubmission: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userForms/deleteUserFormSubmission">, deleteUserFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmission[], "userForms/deleteUserFormSubmissions">, favoriteForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
104
104
|
formId: string;
|
|
105
105
|
}, "userForms/favoriteForm">, unfavoriteForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
106
106
|
formId: string;
|
|
107
|
-
}, "userForms/unfavoriteForm">, deleteUserForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userForms/deleteUserForm">, deleteUserFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userForms/deleteUserFormRevision">, deleteUserFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormRevision<import(
|
|
107
|
+
}, "userForms/unfavoriteForm">, deleteUserForm: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userForms/deleteUserForm">, deleteUserFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "userForms/deleteUserFormRevision">, deleteUserFormRevisions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormRevision<import('../../forms').ISerializedField>[], "userForms/deleteUserFormRevisions">, setUserFormSubmissions: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmission[], "userForms/setUserFormSubmissions">, addUserFormRevision: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormRevision<import('../../forms').ISerializedField>, "userForms/addUserFormRevision">, addUserFormSubmissionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmissionAttachment, "userForms/addUserFormSubmissionAttachment">, setUserFormSubmissionAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<UserFormSubmissionAttachment[], "userForms/setUserFormSubmissionAttachments">;
|
|
108
108
|
export type UserFormSearchArgs = SearchArgs<{
|
|
109
109
|
/** `undefined` means don't filter by favorite. `boolean` filters forms. */
|
|
110
110
|
favorites?: boolean;
|
|
@@ -28,28 +28,28 @@ export declare const workspaceSlice: import("@reduxjs/toolkit").Slice<WorkspaceS
|
|
|
28
28
|
export declare const setWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, Workspace>, "workspace/setWorkspaces">, addOrReplaceWorkspaces: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, Workspace>, "workspace/addOrReplaceWorkspaces">, addWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<Workspace, "workspace/addWorkspace">, setActiveWorkspaceId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "workspace/setActiveWorkspaceId">, removeWorkspace: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "workspace/removeWorkspace">;
|
|
29
29
|
export declare const selectWorkspaceMapping: Selector<Record<string, Workspace>>;
|
|
30
30
|
export declare const selectWorkspaces: ((state: import("redux").EmptyObject & {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
31
|
+
versioning: import('../slices/versioningSlice').VersioningState;
|
|
32
|
+
fileReducer: import('..').FileState;
|
|
33
|
+
authReducer: import('..').AuthState;
|
|
34
|
+
categoryReducer: import('..').CategoryState;
|
|
35
|
+
componentReducer: import('..').ComponentState;
|
|
36
|
+
componentStageCompletionReducer: import('..').ComponentStageCompletionState;
|
|
37
|
+
componentStageReducer: import('..').ComponentStageState;
|
|
38
|
+
componentTypeReducer: import('..').ComponentTypeState;
|
|
39
|
+
issueReducer: import('..').IssueState;
|
|
40
|
+
mapReducer: import('..').MapState;
|
|
41
|
+
organizationReducer: import('..').OrganizationState;
|
|
42
|
+
outboxReducer: import('..').OutboxState;
|
|
43
|
+
projectReducer: import('..').ProjectState;
|
|
44
|
+
projectAccessReducer: import('..').ProjectAccessState;
|
|
45
|
+
organizationAccessReducer: import('..').OrganizationAccessState;
|
|
46
|
+
projectFileReducer: import('..').ProjectFileState;
|
|
47
|
+
rehydratedReducer: import('..').RehydratedState;
|
|
48
|
+
settingReducer: import('..').SettingState;
|
|
49
|
+
userFormReducer: import('..').UserFormState;
|
|
50
|
+
userReducer: import('..').UserState;
|
|
51
|
+
workspaceReducer: WorkspaceState;
|
|
52
|
+
emailDomainsReducer: import('..').EmailDomainState;
|
|
53
53
|
} & {
|
|
54
54
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
55
55
|
}) => Workspace[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Workspace>) => Workspace[], {
|
package/dist/store/store.d.ts
CHANGED
|
@@ -1,55 +1,58 @@
|
|
|
1
|
+
/// <reference types="@redux-offline/redux-offline" />
|
|
1
2
|
import { AnyAction, Reducer } from "redux";
|
|
2
3
|
import { Config, OfflineAction, OfflineMetadata, OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
3
4
|
import request from "superagent";
|
|
4
5
|
import { type OfflineMetaEffect, type OvermapSDK, RequestDetails } from "../sdk";
|
|
6
|
+
import { AuthState, CategoryState, ComponentStageCompletionState, ComponentStageState, ComponentState, ComponentTypeState, EmailDomainState, FileState, IssueState, MapState, OrganizationAccessState, OrganizationState, OutboxState, ProjectAccessState, ProjectFileState, ProjectState, RehydratedState, SettingState, UserFormState, UserState, WorkspaceState } from "./slices";
|
|
7
|
+
import { VersioningState } from "./slices/versioningSlice";
|
|
5
8
|
import { RootState } from "../typings";
|
|
6
9
|
export declare const overmapReducers: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
10
|
+
versioning: Reducer<VersioningState>;
|
|
11
|
+
fileReducer: Reducer<FileState>;
|
|
12
|
+
authReducer: Reducer<AuthState>;
|
|
13
|
+
categoryReducer: Reducer<CategoryState>;
|
|
14
|
+
componentReducer: Reducer<ComponentState>;
|
|
15
|
+
componentStageCompletionReducer: Reducer<ComponentStageCompletionState>;
|
|
16
|
+
componentStageReducer: Reducer<ComponentStageState>;
|
|
17
|
+
componentTypeReducer: Reducer<ComponentTypeState>;
|
|
18
|
+
issueReducer: Reducer<IssueState>;
|
|
19
|
+
mapReducer: Reducer<MapState>;
|
|
20
|
+
organizationReducer: Reducer<OrganizationState>;
|
|
21
|
+
outboxReducer: Reducer<OutboxState>;
|
|
22
|
+
projectReducer: Reducer<ProjectState>;
|
|
23
|
+
projectAccessReducer: Reducer<ProjectAccessState>;
|
|
24
|
+
organizationAccessReducer: Reducer<OrganizationAccessState>;
|
|
25
|
+
projectFileReducer: Reducer<ProjectFileState>;
|
|
26
|
+
rehydratedReducer: Reducer<RehydratedState>;
|
|
27
|
+
settingReducer: Reducer<SettingState>;
|
|
28
|
+
userFormReducer: Reducer<UserFormState>;
|
|
29
|
+
userReducer: Reducer<UserState>;
|
|
30
|
+
workspaceReducer: Reducer<WorkspaceState>;
|
|
31
|
+
emailDomainsReducer: Reducer<EmailDomainState>;
|
|
29
32
|
};
|
|
30
33
|
export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
versioning: VersioningState;
|
|
35
|
+
fileReducer: FileState;
|
|
36
|
+
authReducer: AuthState;
|
|
37
|
+
categoryReducer: CategoryState;
|
|
38
|
+
componentReducer: ComponentState;
|
|
39
|
+
componentStageCompletionReducer: ComponentStageCompletionState;
|
|
40
|
+
componentStageReducer: ComponentStageState;
|
|
41
|
+
componentTypeReducer: ComponentTypeState;
|
|
42
|
+
issueReducer: IssueState;
|
|
43
|
+
mapReducer: MapState;
|
|
44
|
+
organizationReducer: OrganizationState;
|
|
45
|
+
outboxReducer: OutboxState;
|
|
46
|
+
projectReducer: ProjectState;
|
|
47
|
+
projectAccessReducer: ProjectAccessState;
|
|
48
|
+
organizationAccessReducer: OrganizationAccessState;
|
|
49
|
+
projectFileReducer: ProjectFileState;
|
|
50
|
+
rehydratedReducer: RehydratedState;
|
|
51
|
+
settingReducer: SettingState;
|
|
52
|
+
userFormReducer: UserFormState;
|
|
53
|
+
userReducer: UserState;
|
|
54
|
+
workspaceReducer: WorkspaceState;
|
|
55
|
+
emailDomainsReducer: EmailDomainState;
|
|
53
56
|
}>, AnyAction>;
|
|
54
57
|
export declare const resetStore = "RESET";
|
|
55
58
|
export declare const rootReducer: Reducer<RootState>;
|
|
@@ -70,28 +73,28 @@ export declare const dequeue: Config["queue"]["dequeue"];
|
|
|
70
73
|
*/
|
|
71
74
|
export declare const overmapEnhancer: (...args: any[]) => unknown;
|
|
72
75
|
export declare const defaultStore: import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").EmptyObject & {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
76
|
+
versioning: VersioningState;
|
|
77
|
+
fileReducer: FileState;
|
|
78
|
+
authReducer: AuthState;
|
|
79
|
+
categoryReducer: CategoryState;
|
|
80
|
+
componentReducer: ComponentState;
|
|
81
|
+
componentStageCompletionReducer: ComponentStageCompletionState;
|
|
82
|
+
componentStageReducer: ComponentStageState;
|
|
83
|
+
componentTypeReducer: ComponentTypeState;
|
|
84
|
+
issueReducer: IssueState;
|
|
85
|
+
mapReducer: MapState;
|
|
86
|
+
organizationReducer: OrganizationState;
|
|
87
|
+
outboxReducer: OutboxState;
|
|
88
|
+
projectReducer: ProjectState;
|
|
89
|
+
projectAccessReducer: ProjectAccessState;
|
|
90
|
+
organizationAccessReducer: OrganizationAccessState;
|
|
91
|
+
projectFileReducer: ProjectFileState;
|
|
92
|
+
rehydratedReducer: RehydratedState;
|
|
93
|
+
settingReducer: SettingState;
|
|
94
|
+
userFormReducer: UserFormState;
|
|
95
|
+
userReducer: UserState;
|
|
96
|
+
workspaceReducer: WorkspaceState;
|
|
97
|
+
emailDomainsReducer: EmailDomainState;
|
|
95
98
|
} & {
|
|
96
99
|
offline: OfflineState;
|
|
97
100
|
}, AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<RootState, AnyAction>]>>;
|
package/dist/style.css
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
._description_17zed_1 {
|
|
2
|
+
white-space: pre-line;
|
|
3
|
+
}._clickableLinkContainer_1ace7_1 {
|
|
4
|
+
z-index: 1;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
._TextFieldInputCopy_1ace7_5 {
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
padding-top: calc(var(--space-1) + 1px);
|
|
11
|
+
}._previewImage_1ig84_1 {
|
|
12
|
+
max-height: 100px;
|
|
13
|
+
border-radius: max(var(--radius-2), var(--radius-4));
|
|
14
|
+
flex-basis: 50%;
|
|
15
|
+
object-fit: cover;
|
|
16
|
+
}._favoriteIcon_1bixi_1._favoriteIcon_1bixi_1 {
|
|
17
|
+
color: var(--yellow-a9);
|
|
18
|
+
}
|
|
19
|
+
._favoriteIcon_1bixi_1._favoriteIcon_1bixi_1:hover:not(:disabled) {
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
color: var(--gray-a9);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
._regularIcon_1bixi_9._regularIcon_1bixi_9:hover:not(:disabled) {
|
|
25
|
+
color: var(--yellow-a9);
|
|
26
|
+
background-color: transparent;
|
|
27
|
+
}._submissionsContainer_9iirt_1 {
|
|
28
|
+
overflow-y: auto;
|
|
29
|
+
max-height: min(369px, 100vh - 200px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
._stopHorizontalOverflow_9iirt_6 {
|
|
33
|
+
min-width: 0;
|
|
34
|
+
}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { Model } from "./base";
|
|
2
|
-
import { OrganizationAccess } from "./access.ts";
|
|
3
|
-
import { EmailDomain } from "./emailDomain.ts";
|
|
4
|
-
import { User } from "./users.ts";
|
|
5
2
|
export interface Organization extends Model {
|
|
6
3
|
id: number;
|
|
7
4
|
name: string;
|
|
8
5
|
created_by: number;
|
|
9
|
-
has_access: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface InitialOrganizationData {
|
|
12
|
-
organization: Organization;
|
|
13
|
-
users: User[];
|
|
14
|
-
organization_accesses: OrganizationAccess[];
|
|
15
|
-
email_domains: EmailDomain[];
|
|
16
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function shallowEqual(objA:
|
|
2
|
-
export declare function memoize<T extends (...args:
|
|
1
|
+
export declare function shallowEqual(objA: Record<string, unknown>, objB: Record<string, unknown>): boolean;
|
|
2
|
+
export declare function memoize<T extends (...args: never[]) => unknown>(func: T): T;
|
|
3
3
|
export type EqualityChecker<TArgs> = (current: TArgs, previous: TArgs) => boolean;
|
|
4
4
|
export declare function useMemoCompare<TValue>(next: TValue | undefined, compare: (prev: TValue | undefined, next: TValue | undefined) => boolean): TValue | undefined;
|
|
5
5
|
/**
|