@overmap-ai/core 1.0.40-projects-licensing.3 → 1.0.42
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/README.md +4 -4
- package/dist/components/ColorPicker/ColorPicker.d.ts +10 -0
- package/dist/components/ColorPicker/index.d.ts +1 -0
- package/dist/components/FileBadge/FileBadge.d.ts +8 -0
- package/dist/components/FileBadge/index.d.ts +1 -0
- package/dist/components/FileCard/FileCard.d.ts +8 -0
- package/dist/components/FileCard/index.d.ts +1 -0
- package/dist/components/FileIcon/FileIcon.d.ts +5 -0
- package/dist/components/FileIcon/index.d.ts +1 -0
- package/dist/components/FileViewer/FileViewerProvider.d.ts +2 -0
- package/dist/components/FileViewer/context.d.ts +5 -0
- package/dist/components/FileViewer/index.d.ts +3 -0
- package/dist/components/FileViewer/typings.d.ts +5 -0
- package/dist/components/ImageCard/ImageCard.d.ts +9 -0
- package/dist/components/ImageCard/index.d.ts +1 -0
- package/dist/components/ImageMarkup/ImageMarkup.d.ts +14 -0
- package/dist/components/ImageMarkup/index.d.ts +1 -0
- package/dist/components/ImageViewer/ImageViewer.d.ts +8 -0
- package/dist/components/ImageViewer/constants.d.ts +1 -0
- package/dist/components/ImageViewer/index.d.ts +2 -0
- package/dist/components/PDFViewer/PDFViewer.d.ts +8 -0
- package/dist/components/PDFViewer/constants.d.ts +1 -0
- package/dist/components/PDFViewer/index.d.ts +2 -0
- package/dist/components/SpreadsheetViewer/SpreadsheetViewer.d.ts +8 -0
- package/dist/components/SpreadsheetViewer/constants.d.ts +1 -0
- package/dist/components/SpreadsheetViewer/index.d.ts +2 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/constants/ui.d.ts +1 -0
- package/dist/forms/fields/BaseField/hooks.d.ts +54 -56
- package/dist/index.d.ts +1 -0
- package/dist/overmap-core.js +2935 -781
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +2921 -773
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +1 -2
- package/dist/sdk/services/MainService.d.ts +1 -2
- package/dist/sdk/services/ProjectService.d.ts +3 -2
- package/dist/sdk/services/index.d.ts +0 -1
- package/dist/store/slices/categorySlice.d.ts +0 -1
- package/dist/store/slices/index.d.ts +0 -1
- package/dist/store/slices/issueSlice.d.ts +4 -2
- package/dist/store/slices/organizationSlice.d.ts +1 -5
- package/dist/store/slices/projectFileSlice.d.ts +0 -1
- package/dist/store/slices/projectSlice.d.ts +1 -7
- package/dist/store/slices/settingsSlice.d.ts +1 -7
- package/dist/store/slices/workspaceSlice.d.ts +0 -1
- package/dist/store/store.d.ts +1 -4
- package/dist/style.css +118 -18
- package/dist/typings/models/base.d.ts +0 -4
- package/dist/typings/models/index.d.ts +0 -1
- package/dist/typings/models/organizations.d.ts +0 -2
- package/dist/typings/models/projects.d.ts +0 -2
- package/dist/utils/colors.d.ts +6 -0
- package/dist/utils/file.d.ts +1 -0
- package/package.json +151 -144
- package/dist/sdk/services/LicenseService.d.ts +0 -12
- package/dist/store/slices/licenseSlice.d.ts +0 -25
- package/dist/typings/models/license.d.ts +0 -29
package/dist/sdk/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AttachmentService, AuthService, CategoryService, ComponentService, ComponentStageCompletionService, ComponentStageService, ComponentTypeService, EmailVerificationService, FileService, IssueCommentService, IssueService, MainService, OrganizationAccessService, ProjectAccessService, ProjectFileService, ProjectService, UserFormService, UserFormSubmissionService, WorkspaceService, OrganizationService, EmailDomainsService
|
|
1
|
+
import { AttachmentService, AuthService, CategoryService, ComponentService, ComponentStageCompletionService, ComponentStageService, ComponentTypeService, EmailVerificationService, FileService, IssueCommentService, IssueService, MainService, OrganizationAccessService, ProjectAccessService, ProjectFileService, ProjectService, UserFormService, UserFormSubmissionService, WorkspaceService, OrganizationService, EmailDomainsService } from "./services";
|
|
2
2
|
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore.js";
|
|
3
3
|
import { RootState } from "../typings";
|
|
4
4
|
export declare class OvermapSDK {
|
|
@@ -26,6 +26,5 @@ export declare class OvermapSDK {
|
|
|
26
26
|
projectFiles: ProjectFileService;
|
|
27
27
|
emailVerification: EmailVerificationService;
|
|
28
28
|
emailDomains: EmailDomainsService;
|
|
29
|
-
licenses: LicenseService;
|
|
30
29
|
}
|
|
31
30
|
export declare const makeClient: (apiUrl: string, store: ToolkitStore<RootState>) => OvermapSDK;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseApiService } from "./BaseApiService";
|
|
2
|
-
import { Category,
|
|
2
|
+
import { Category, Organization, Project, User } from "../../typings";
|
|
3
3
|
export interface InitialAPIData {
|
|
4
4
|
projects: (Project & {
|
|
5
5
|
workspaces: {
|
|
@@ -13,7 +13,6 @@ export interface InitialAPIData {
|
|
|
13
13
|
organizations: Organization[];
|
|
14
14
|
user: User;
|
|
15
15
|
project_owners: User[];
|
|
16
|
-
licenses: License[];
|
|
17
16
|
}
|
|
18
17
|
export declare class MainService extends BaseApiService {
|
|
19
18
|
fetchInitialData(replaceExisting: boolean, uuid?: string): Promise<InitialAPIData>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Project } from '../../typings/models/projects';
|
|
2
|
+
import type { ApiSuccessResult } from "../typings";
|
|
2
3
|
import { BaseApiService } from "./BaseApiService";
|
|
3
4
|
import { Payload } from "../../typings";
|
|
4
5
|
interface JoinProjectResponse {
|
|
@@ -13,9 +14,9 @@ export declare class ProjectService extends BaseApiService {
|
|
|
13
14
|
*/
|
|
14
15
|
add(project: Payload<Project>): Promise<Project>;
|
|
15
16
|
update(project: Project): Promise<Project>;
|
|
16
|
-
delete(projectId: number): Promise<
|
|
17
|
+
delete(projectId: number): Promise<ApiSuccessResult<undefined>>;
|
|
17
18
|
invite(projectId: number, email: string): Promise<undefined>;
|
|
18
|
-
joinProject(projectId: number, userId: number, inviteCode: string): Promise<JoinProjectResponse
|
|
19
|
+
joinProject(projectId: number, userId: number, inviteCode: string): Promise<ApiSuccessResult<JoinProjectResponse>>;
|
|
19
20
|
acceptInvite(projectId: number): Promise<void>;
|
|
20
21
|
}
|
|
21
22
|
export {};
|
|
@@ -64,7 +64,6 @@ export declare const selectCategories: ((state: import("redux").EmptyObject & {
|
|
|
64
64
|
userReducer: import('..').UserState;
|
|
65
65
|
workspaceReducer: import('..').WorkspaceState;
|
|
66
66
|
emailDomainsReducer: import('..').EmailDomainState;
|
|
67
|
-
licenseReducer: import('..').LicenseState;
|
|
68
67
|
} & {
|
|
69
68
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
70
69
|
}) => Category[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Category>, args_1: string | null) => Category[], {
|
|
@@ -12,6 +12,7 @@ export interface IssueState {
|
|
|
12
12
|
comments: Record<string, Stored<IssueComment>>;
|
|
13
13
|
visibleStatuses: IssueStatus[];
|
|
14
14
|
visibleUserIds: (number | null)[] | null;
|
|
15
|
+
isFetchingInitialData: boolean;
|
|
15
16
|
recentIssueIds: RecentIssueId[];
|
|
16
17
|
activeIssueId: string | null;
|
|
17
18
|
}
|
|
@@ -41,6 +42,7 @@ export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
|
41
42
|
removeAttachment: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
42
43
|
removeAttachmentsOfIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
43
44
|
setVisibleStatuses: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<IssueStatus[]>) => void;
|
|
45
|
+
setIsFetchingInitialData: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<boolean>) => void;
|
|
44
46
|
setVisibleUserIds: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: {
|
|
45
47
|
payload: (number | null)[];
|
|
46
48
|
}) => void;
|
|
@@ -54,7 +56,7 @@ export declare const issueSlice: import("@reduxjs/toolkit").Slice<IssueState, {
|
|
|
54
56
|
resetRecentIssues: (state: import("immer/dist/internal.js").WritableDraft<IssueState>) => void;
|
|
55
57
|
removeRecentIssue: (state: import("immer/dist/internal.js").WritableDraft<IssueState>, action: PayloadAction<string>) => void;
|
|
56
58
|
}, "issues">;
|
|
57
|
-
export declare const addAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>, "issues/addAttachment">, addAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>[], "issues/addAttachments">, addIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Issue>, "issues/addIssue">, addOrReplaceIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>, "issues/addOrReplaceIssueComment">, addToRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/addToRecentIssues">, cleanRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/cleanRecentIssues">, removeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeAttachment">, removeAttachmentsOfIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeAttachmentsOfIssue">, removeIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssue">, removeIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueComment">, removeRecentIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeRecentIssue">, resetRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/resetRecentIssues">, setActiveIssueId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "issues/setActiveIssueId">, setAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<IssueAttachment>[], "issues/setAttachments">, setIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<IssueComment>[], "issues/setIssueComments">, setIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<Issue>[], "issues/setIssues">, setVisibleStatuses: import("@reduxjs/toolkit").ActionCreatorWithPayload<IssueStatus[], "issues/setVisibleStatuses">, setVisibleUserIds: import("@reduxjs/toolkit").ActionCreatorWithPayload<(number | null)[], "issues/setVisibleUserIds">, updateAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>, "issues/updateAttachment">, updateIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Partial<Issue>>, "issues/updateIssue">;
|
|
59
|
+
export declare const addAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>, "issues/addAttachment">, addAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>[], "issues/addAttachments">, addIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Issue>, "issues/addIssue">, addOrReplaceIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueComment>, "issues/addOrReplaceIssueComment">, addToRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/addToRecentIssues">, cleanRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/cleanRecentIssues">, removeAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeAttachment">, removeAttachmentsOfIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeAttachmentsOfIssue">, removeIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssue">, removeIssueComment: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeIssueComment">, removeRecentIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "issues/removeRecentIssue">, resetRecentIssues: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"issues/resetRecentIssues">, setActiveIssueId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "issues/setActiveIssueId">, setAttachments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<IssueAttachment>[], "issues/setAttachments">, setIsFetchingInitialData: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "issues/setIsFetchingInitialData">, setIssueComments: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<IssueComment>[], "issues/setIssueComments">, setIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<Created<Issue>[], "issues/setIssues">, setVisibleStatuses: import("@reduxjs/toolkit").ActionCreatorWithPayload<IssueStatus[], "issues/setVisibleStatuses">, setVisibleUserIds: import("@reduxjs/toolkit").ActionCreatorWithPayload<(number | null)[], "issues/setVisibleUserIds">, updateAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<IssueAttachment>, "issues/updateAttachment">, updateIssue: import("@reduxjs/toolkit").ActionCreatorWithPayload<Submitted<Partial<Issue>>, "issues/updateIssue">;
|
|
58
60
|
export interface IssueFilterArgs {
|
|
59
61
|
filterByAssignedTo: boolean;
|
|
60
62
|
filterByStatus: boolean;
|
|
@@ -74,6 +76,7 @@ export declare const selectCommentMapping: (state: RootState) => Record<string,
|
|
|
74
76
|
export declare const selectCommentsOfIssue: (args: string) => (state: RootState) => Stored<IssueComment>[];
|
|
75
77
|
export declare const selectFileAttachmentsOfIssue: (args: string) => (state: RootState) => Stored<IssueAttachment>[] | undefined;
|
|
76
78
|
export declare const selectIssue: SelectorWithArgs<string, Stored<Issue> | undefined>;
|
|
79
|
+
export declare const selectIsFetchingInitialData: (state: RootState) => boolean;
|
|
77
80
|
export declare const selectAllAttachments: ((state: import("redux").EmptyObject & {
|
|
78
81
|
versioning: import('../slices/versioningSlice').VersioningState;
|
|
79
82
|
fileReducer: import('..').FileState;
|
|
@@ -97,7 +100,6 @@ export declare const selectAllAttachments: ((state: import("redux").EmptyObject
|
|
|
97
100
|
userReducer: import('..').UserState;
|
|
98
101
|
workspaceReducer: import("./workspaceSlice").WorkspaceState;
|
|
99
102
|
emailDomainsReducer: import('..').EmailDomainState;
|
|
100
|
-
licenseReducer: import('..').LicenseState;
|
|
101
103
|
} & {
|
|
102
104
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
103
105
|
}) => Stored<IssueAttachment>[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Stored<IssueAttachment>>) => Stored<IssueAttachment>[], {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from "@reduxjs/toolkit";
|
|
2
2
|
import { Selector, SelectorWithArgs } from '../../typings/store';
|
|
3
|
-
import { User, Organization
|
|
3
|
+
import { User, Organization } from "../../typings";
|
|
4
4
|
export interface OrganizationState {
|
|
5
5
|
organizations: Record<number, Organization>;
|
|
6
6
|
activeOrganizationId: number | null;
|
|
@@ -19,13 +19,9 @@ 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 selectOrganizationsMapping: Selector<Record<number, Organization>>;
|
|
23
22
|
export declare const selectOrganizationsWithAccess: Selector<Organization[]>;
|
|
24
23
|
export declare const selectActiveOrganization: Selector<Organization | null>;
|
|
25
24
|
export declare const selectOrganizationUsersIds: Selector<number[]>;
|
|
26
|
-
export declare const selectActiveOrganizationProjects: Selector<Project[]>;
|
|
27
|
-
export declare const selectActiveOrganizationLicenses: Selector<License[]>;
|
|
28
|
-
export declare const selectSortedOrganizationLicenses: Selector<License[]>;
|
|
29
25
|
export declare const selectOrganizationUsersAsMapping: Selector<Record<number, User>>;
|
|
30
26
|
export declare const selectSortedOrganizationUsers: Selector<User[]>;
|
|
31
27
|
export declare const selectOrganization: SelectorWithArgs<number, Organization | undefined>;
|
|
@@ -72,7 +72,6 @@ export declare const selectProjectFiles: ((state: import("redux").EmptyObject &
|
|
|
72
72
|
userReducer: import('..').UserState;
|
|
73
73
|
workspaceReducer: import('..').WorkspaceState;
|
|
74
74
|
emailDomainsReducer: import('..').EmailDomainState;
|
|
75
|
-
licenseReducer: import('..').LicenseState;
|
|
76
75
|
} & {
|
|
77
76
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
78
77
|
}) => ProjectFile[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, ProjectFile>, args_1: number | null) => ProjectFile[], {
|
|
@@ -29,14 +29,8 @@ export declare const projectSlice: import("@reduxjs/toolkit").Slice<ProjectState
|
|
|
29
29
|
acceptProjectInvite: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
30
30
|
payload: number;
|
|
31
31
|
}) => void;
|
|
32
|
-
addActiveProjectIssuesCount: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
33
|
-
payload: number;
|
|
34
|
-
}) => void;
|
|
35
|
-
addActiveProjectFormSubmissionsCount: (state: import("immer/dist/internal.js").WritableDraft<ProjectState>, action: {
|
|
36
|
-
payload: number;
|
|
37
|
-
}) => void;
|
|
38
32
|
}, "projects">;
|
|
39
|
-
export declare const setProjects: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project[], "projects/setProjects">, updateOrCreateProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project, "projects/updateOrCreateProject">, addOrReplaceProjects: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project[], "projects/updateOrCreateProjects">, setActiveProjectId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number | null, "projects/setActiveProjectId">, setCreateProjectType: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectType, "projects/setCreateProjectType">, deleteProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project, "projects/deleteProject">, acceptProjectInvite: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projects/acceptProjectInvite"
|
|
33
|
+
export declare const setProjects: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project[], "projects/setProjects">, updateOrCreateProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project, "projects/updateOrCreateProject">, addOrReplaceProjects: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project[], "projects/updateOrCreateProjects">, setActiveProjectId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number | null, "projects/setActiveProjectId">, setCreateProjectType: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProjectType, "projects/setCreateProjectType">, deleteProject: import("@reduxjs/toolkit").ActionCreatorWithPayload<Project, "projects/deleteProject">, acceptProjectInvite: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "projects/acceptProjectInvite">;
|
|
40
34
|
export declare const selectProjects: Selector<Record<number, Project>>;
|
|
41
35
|
export declare const selectActiveProjectId: (state: RootState) => number | null;
|
|
42
36
|
export declare const selectActiveProject: (state: RootState) => Project | null;
|
|
@@ -7,8 +7,6 @@ export interface SettingState {
|
|
|
7
7
|
svgLayout: boolean;
|
|
8
8
|
expandedSections: Record<string, boolean>;
|
|
9
9
|
appearance: Appearance;
|
|
10
|
-
isFetchingInitialData: boolean;
|
|
11
|
-
isLoading: boolean;
|
|
12
10
|
}
|
|
13
11
|
export declare const settingSlice: import("@reduxjs/toolkit").Slice<SettingState, {
|
|
14
12
|
setEnableDuplicateIssues: (state: import("immer/dist/internal.js").WritableDraft<SettingState>, action: PayloadAction<boolean>) => void;
|
|
@@ -17,10 +15,8 @@ export declare const settingSlice: import("@reduxjs/toolkit").Slice<SettingState
|
|
|
17
15
|
setSectionExpanded: (state: import("immer/dist/internal.js").WritableDraft<SettingState>, action: PayloadAction<Record<string, boolean>>) => void;
|
|
18
16
|
setEnableClustering: (state: import("immer/dist/internal.js").WritableDraft<SettingState>, action: PayloadAction<boolean>) => void;
|
|
19
17
|
setAppearance: (state: import("immer/dist/internal.js").WritableDraft<SettingState>, action: PayloadAction<"dark" | "light">) => void;
|
|
20
|
-
setIsFetchingInitialData: (state: import("immer/dist/internal.js").WritableDraft<SettingState>, action: PayloadAction<boolean>) => void;
|
|
21
|
-
setIsLoading: (state: import("immer/dist/internal.js").WritableDraft<SettingState>, action: PayloadAction<boolean>) => void;
|
|
22
18
|
}, "settings">;
|
|
23
|
-
export declare const setEnableDuplicateIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "settings/setEnableDuplicateIssues">, setEnablePlacementMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "settings/setEnablePlacementMode">, setSectionExpanded: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, boolean>, "settings/setSectionExpanded">, setEnableClustering: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "settings/setEnableClustering">, setAppearance: import("@reduxjs/toolkit").ActionCreatorWithPayload<"light" | "dark", "settings/setAppearance"
|
|
19
|
+
export declare const setEnableDuplicateIssues: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "settings/setEnableDuplicateIssues">, setEnablePlacementMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "settings/setEnablePlacementMode">, setSectionExpanded: import("@reduxjs/toolkit").ActionCreatorWithPayload<Record<string, boolean>, "settings/setSectionExpanded">, setEnableClustering: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "settings/setEnableClustering">, setAppearance: import("@reduxjs/toolkit").ActionCreatorWithPayload<"light" | "dark", "settings/setAppearance">;
|
|
24
20
|
export declare const selectEnablePlacementMode: (state: RootState) => boolean;
|
|
25
21
|
export declare const selectEnableDuplicateIssues: (state: RootState) => boolean;
|
|
26
22
|
export declare const selectEnableSvgLayout: (state: RootState) => boolean;
|
|
@@ -28,5 +24,3 @@ export declare const selectExpandedSections: (state: RootState) => Record<string
|
|
|
28
24
|
export declare const selectEnableClustering: (state: RootState) => boolean;
|
|
29
25
|
export declare const selectAppearance: (state: RootState) => ("inherit" | "light" | "dark") | undefined;
|
|
30
26
|
export declare const settingReducer: Reducer<SettingState>;
|
|
31
|
-
export declare const selectIsFetchingInitialData: (state: RootState) => boolean;
|
|
32
|
-
export declare const selectIsLoading: (state: RootState) => boolean;
|
|
@@ -50,7 +50,6 @@ export declare const selectWorkspaces: ((state: import("redux").EmptyObject & {
|
|
|
50
50
|
userReducer: import('..').UserState;
|
|
51
51
|
workspaceReducer: WorkspaceState;
|
|
52
52
|
emailDomainsReducer: import('..').EmailDomainState;
|
|
53
|
-
licenseReducer: import('..').LicenseState;
|
|
54
53
|
} & {
|
|
55
54
|
offline: import("@redux-offline/redux-offline/lib/types").OfflineState;
|
|
56
55
|
}) => Workspace[]) & import("reselect").OutputSelectorFields<(args_0: Record<string, Workspace>) => Workspace[], {
|
package/dist/store/store.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AnyAction, Reducer } from "redux";
|
|
|
3
3
|
import { Config, OfflineAction, OfflineMetadata, OfflineState } from "@redux-offline/redux-offline/lib/types";
|
|
4
4
|
import request from "superagent";
|
|
5
5
|
import { type OfflineMetaEffect, type OvermapSDK, RequestDetails } from "../sdk";
|
|
6
|
-
import { AuthState, CategoryState, ComponentStageCompletionState, ComponentStageState, ComponentState, ComponentTypeState, EmailDomainState, FileState, IssueState,
|
|
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
7
|
import { VersioningState } from "./slices/versioningSlice";
|
|
8
8
|
import { RootState } from "../typings";
|
|
9
9
|
export declare const overmapReducers: {
|
|
@@ -29,7 +29,6 @@ export declare const overmapReducers: {
|
|
|
29
29
|
userReducer: Reducer<UserState>;
|
|
30
30
|
workspaceReducer: Reducer<WorkspaceState>;
|
|
31
31
|
emailDomainsReducer: Reducer<EmailDomainState>;
|
|
32
|
-
licenseReducer: Reducer<LicenseState>;
|
|
33
32
|
};
|
|
34
33
|
export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
35
34
|
versioning: VersioningState;
|
|
@@ -54,7 +53,6 @@ export declare const overmapReducer: Reducer<import("redux").CombinedState<{
|
|
|
54
53
|
userReducer: UserState;
|
|
55
54
|
workspaceReducer: WorkspaceState;
|
|
56
55
|
emailDomainsReducer: EmailDomainState;
|
|
57
|
-
licenseReducer: LicenseState;
|
|
58
56
|
}>, AnyAction>;
|
|
59
57
|
export declare const resetStore = "RESET";
|
|
60
58
|
export declare const rootReducer: Reducer<RootState>;
|
|
@@ -97,7 +95,6 @@ export declare const defaultStore: import("@reduxjs/toolkit/dist/configureStore"
|
|
|
97
95
|
userReducer: UserState;
|
|
98
96
|
workspaceReducer: WorkspaceState;
|
|
99
97
|
emailDomainsReducer: EmailDomainState;
|
|
100
|
-
licenseReducer: LicenseState;
|
|
101
98
|
} & {
|
|
102
99
|
offline: OfflineState;
|
|
103
100
|
}, AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<RootState, AnyAction>]>>;
|
package/dist/style.css
CHANGED
|
@@ -154,37 +154,137 @@
|
|
|
154
154
|
overflow-x: auto;
|
|
155
155
|
white-space: nowrap;
|
|
156
156
|
padding-top: calc(var(--space-1) + 1px);
|
|
157
|
-
}.
|
|
157
|
+
}._PDFViewerTopbar_103p8_1 {
|
|
158
|
+
background: var(--color-background);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
._PDFViewerOverlay_103p8_5 {
|
|
162
|
+
background-color: var(--color-overlay);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
._PDFContainer_103p8_9 {
|
|
166
|
+
max-height: 100%;
|
|
167
|
+
max-width: 100%;
|
|
168
|
+
overflow: hidden;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
._Relative_103p8_15 {
|
|
172
|
+
position: relative;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
._PDFScrollArea_103p8_19 {
|
|
158
176
|
width: 100%;
|
|
159
|
-
|
|
177
|
+
height: max-content;
|
|
160
178
|
}
|
|
161
179
|
|
|
162
|
-
.
|
|
163
|
-
|
|
180
|
+
._ErrorContainer_103p8_24 {
|
|
181
|
+
background-color: var(--color-panel-solid);
|
|
182
|
+
border: solid 1px var(--gray-a2);
|
|
183
|
+
border-radius: var(--radius-2);
|
|
184
|
+
width: 40%;
|
|
185
|
+
height: 70%;
|
|
186
|
+
}._ImageViewerTopbar_1n2bl_1 {
|
|
187
|
+
background-color: var(--color-background);
|
|
164
188
|
}
|
|
165
189
|
|
|
166
|
-
.
|
|
167
|
-
|
|
190
|
+
._ImageViewerOverlay_1n2bl_5 {
|
|
191
|
+
background-color: var(--color-overlay);
|
|
192
|
+
}._SpreadsheetViewer_qnmq7_1 {
|
|
168
193
|
width: 100%;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
194
|
+
height: 100%;
|
|
195
|
+
position: fixed;
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
inset: 0;
|
|
173
198
|
}
|
|
174
199
|
|
|
175
|
-
.
|
|
176
|
-
|
|
177
|
-
|
|
200
|
+
._SpreadsheetViewerTopbar_qnmq7_9 {
|
|
201
|
+
background: var(--color-background);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
._Spreadsheet_qnmq7_1 {
|
|
205
|
+
z-index: 1;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
._SpreadsheetViewerContent_qnmq7_17 {
|
|
209
|
+
max-width: 100%;
|
|
210
|
+
max-height: calc(100% - 50px);
|
|
211
|
+
width: max-content;
|
|
212
|
+
height: max-content;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
._SpreadsheetOverlay_qnmq7_24 {
|
|
216
|
+
background-color: var(--color-overlay);
|
|
217
|
+
}._ImageMarkupContent_8zvut_1 {
|
|
218
|
+
position: fixed;
|
|
219
|
+
inset: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
._ImageMarkupOverlay_8zvut_6 {
|
|
223
|
+
background-color: var(--color-overlay);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
._ImageMarkupTopbar_8zvut_10 {
|
|
227
|
+
background-color: var(--color-background);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
._Prompt_8zvut_14 {
|
|
231
|
+
position: absolute;
|
|
232
|
+
bottom: 35px;
|
|
233
|
+
left: 50%;
|
|
234
|
+
font-weight: bold;
|
|
235
|
+
transform: translateX(-50%);
|
|
236
|
+
color: white;
|
|
237
|
+
z-index: 1;
|
|
238
|
+
text-align: center;
|
|
178
239
|
}
|
|
179
240
|
|
|
180
|
-
.
|
|
181
|
-
|
|
241
|
+
._centered_8zvut_25, ._MarkupImage_8zvut_25 {
|
|
242
|
+
position: absolute;
|
|
243
|
+
top: 50%;
|
|
244
|
+
left: 50%;
|
|
245
|
+
transform: translate(-50%, -50%);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
._MarkupImage_8zvut_25 {
|
|
249
|
+
object-fit: contain;
|
|
250
|
+
max-height: calc(100% - 130px);
|
|
251
|
+
max-width: 100vw;
|
|
252
|
+
pointer-events: none;
|
|
253
|
+
visibility: hidden;
|
|
254
|
+
}
|
|
255
|
+
._MarkupImage_8zvut_25 * {
|
|
256
|
+
background-color: black;
|
|
257
|
+
}._FileCard_ledcm_1 {
|
|
258
|
+
background-color: var(--color-panel-solid);
|
|
259
|
+
border-radius: var(--radius-2);
|
|
260
|
+
border: solid 1px var(--gray-a3);
|
|
182
261
|
}
|
|
183
262
|
|
|
184
|
-
.
|
|
263
|
+
._Errored_ledcm_7 {
|
|
264
|
+
color: var(--gray-11);
|
|
265
|
+
}._ImageCard_kbztw_1 {
|
|
185
266
|
overflow: hidden;
|
|
186
|
-
|
|
187
|
-
|
|
267
|
+
border-radius: var(--radius-2);
|
|
268
|
+
border: solid 1px var(--gray-a4);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
._ImageInset_kbztw_7 {
|
|
272
|
+
max-width: 100%;
|
|
273
|
+
display: flex;
|
|
274
|
+
align-items: center;
|
|
275
|
+
justify-content: center;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
._Image_kbztw_1 {
|
|
279
|
+
object-fit: cover;
|
|
280
|
+
max-width: 100%;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
._Footer_kbztw_19 {
|
|
284
|
+
background-color: var(--color-panel-solid);
|
|
285
|
+
}
|
|
286
|
+
._Footer_kbztw_19._Loading_kbztw_22 {
|
|
287
|
+
background-color: unset;
|
|
188
288
|
}._favoriteIcon_1bixi_1._favoriteIcon_1bixi_1 {
|
|
189
289
|
color: var(--yellow-a9);
|
|
190
290
|
}
|
|
@@ -2,7 +2,6 @@ import { Model } from "./base";
|
|
|
2
2
|
import { OrganizationAccess } from "./access";
|
|
3
3
|
import { EmailDomain } from "./emailDomain";
|
|
4
4
|
import { User } from "./users";
|
|
5
|
-
import { License } from "./license";
|
|
6
5
|
export interface Organization extends Model {
|
|
7
6
|
id: number;
|
|
8
7
|
name: string;
|
|
@@ -14,5 +13,4 @@ export interface InitialOrganizationData {
|
|
|
14
13
|
users: User[];
|
|
15
14
|
organization_accesses: OrganizationAccess[];
|
|
16
15
|
email_domains: EmailDomain[];
|
|
17
|
-
licenses: License[];
|
|
18
16
|
}
|
|
@@ -11,8 +11,6 @@ export interface Project extends Model {
|
|
|
11
11
|
owner_user: number | null;
|
|
12
12
|
bounds: [L.LatLngTuple, L.LatLngTuple] | undefined;
|
|
13
13
|
invited?: boolean;
|
|
14
|
-
issues_count?: number;
|
|
15
|
-
form_submissions_count?: number;
|
|
16
14
|
}
|
|
17
15
|
export interface ProjectFile extends Model, FileObject {
|
|
18
16
|
offline_id: string;
|
package/dist/utils/colors.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ThemeOptions } from "@overmap-ai/blocks";
|
|
1
2
|
import { CSSColor } from "../typings";
|
|
2
3
|
export declare const primaryColor: CSSColor;
|
|
3
4
|
export declare const successColor: CSSColor;
|
|
@@ -10,6 +11,11 @@ export interface BadgeColors {
|
|
|
10
11
|
textColor: CSSColor;
|
|
11
12
|
}
|
|
12
13
|
export declare const Colors: Record<string, CSSColor>;
|
|
14
|
+
/** This mapping is used to pick off a Radix-ui/themes Theme accentColor based on the passed in Radix-ui/colors
|
|
15
|
+
* hex color. We are currently offering the following colors in the "Colors" object defined above as possible colors for
|
|
16
|
+
* categories, any updates to those colors should also result in an update to this color mapping to ensure all Category
|
|
17
|
+
* Badges defined within the App receive the appropriate Radix-ui/themes accentColor, so they render properly. */
|
|
18
|
+
export declare const ColorsToString: Record<string, ThemeOptions["accentColor"]>;
|
|
13
19
|
export declare const ComponentStageColors: Record<string, CSSColor>;
|
|
14
20
|
export declare const defaultBadgeColor: CSSColor;
|
|
15
21
|
export declare const generateBadgeColors: (rawColor: CSSColor) => BadgeColors;
|
package/dist/utils/file.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export interface useFileSrcProps {
|
|
|
14
14
|
}
|
|
15
15
|
/** Converts a profile `file` and `fileSha1` into an img src that can be rendered. This relies on an API request. */
|
|
16
16
|
export declare const useFileSrc: (props: useFileSrcProps) => string | undefined;
|
|
17
|
+
export declare function downloadFile(file: File): void;
|