@overmap-ai/core 1.0.40-projects-licensing.2 → 1.0.41
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 +2945 -776
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +2899 -736
- 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 -11
- package/dist/store/slices/licenseSlice.d.ts +0 -25
- package/dist/typings/models/license.d.ts +0 -29
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @overmap-ai/core
|
|
2
|
-
|
|
3
|
-
The `core` package contains core functionality for the Overmap platform. It is a peer dependency of all other overmap
|
|
4
|
-
packages.
|
|
1
|
+
# @overmap-ai/core
|
|
2
|
+
|
|
3
|
+
The `core` package contains core functionality for the Overmap platform. It is a peer dependency of all other overmap
|
|
4
|
+
packages.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { CSSColor } from "../../typings";
|
|
3
|
+
interface ColorPickerProps {
|
|
4
|
+
selectedColor: CSSColor | null;
|
|
5
|
+
allColors: CSSColor[];
|
|
6
|
+
onFinish: (color: CSSColor) => void;
|
|
7
|
+
trigger: ReactElement;
|
|
8
|
+
}
|
|
9
|
+
export declare const ColorPicker: import("react").MemoExoticComponent<(props: ColorPickerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ColorPicker";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BadgeProps } from "@overmap-ai/blocks";
|
|
3
|
+
export interface FileBadgeProps extends Omit<BadgeProps, "children"> {
|
|
4
|
+
file: File;
|
|
5
|
+
truncateLength?: number;
|
|
6
|
+
hideName?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const FileBadge: import("react").MemoExoticComponent<(props: FileBadgeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FileBadge";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OvermapItemProps } from "@overmap-ai/blocks";
|
|
3
|
+
export interface FileCardProps extends Omit<OvermapItemProps, "children" | "leftSlot"> {
|
|
4
|
+
file: File | null;
|
|
5
|
+
truncateLength?: number;
|
|
6
|
+
error?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const FileCard: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<FileCardProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FileCard";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FileIcon";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FileViewerConfig } from "./typings.ts";
|
|
3
|
+
export type FileViewerContextType = (func: (close: () => void) => FileViewerConfig) => void;
|
|
4
|
+
export declare const FileViewerContext: import("react").Context<FileViewerContextType>;
|
|
5
|
+
export declare const useFileViewer: () => FileViewerContextType;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OvermapItemProps } from "@overmap-ai/blocks";
|
|
3
|
+
export interface ImageCardProps extends Omit<OvermapItemProps, "children" | "leftSlot"> {
|
|
4
|
+
file: File | null;
|
|
5
|
+
alt?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
truncateLength?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const ImageCard: import("react").MemoExoticComponent<(props: ImageCardProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ImageCard";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type FileWithObjectURL = File & {
|
|
3
|
+
objectURL?: string;
|
|
4
|
+
};
|
|
5
|
+
export interface AttachmentMarkupProps {
|
|
6
|
+
file: FileWithObjectURL;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onSave: (imageWithMarkup: FileWithObjectURL) => void;
|
|
9
|
+
onDelete: (imageFile: FileWithObjectURL) => void;
|
|
10
|
+
dirty: boolean;
|
|
11
|
+
onDirty: (dirty: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const ImageMarkup: React.MemoExoticComponent<(props: AttachmentMarkupProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ImageMarkup";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ImageViewerProps {
|
|
3
|
+
file: File;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onDelete?: (file: File) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const ImageViewer: import("react").MemoExoticComponent<(props: ImageViewerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SUPPORTED_IMAGE_FILE_TYPES: string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface PDFViewerProps {
|
|
3
|
+
file: File;
|
|
4
|
+
onDelete?: (file: File) => void;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const PDFViewer: import("react").MemoExoticComponent<(props: PDFViewerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SUPPORTED_PDF_FILE_TYPES: string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface SpreadsheetViewerProps {
|
|
3
|
+
file: File;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onDelete?: (file: File) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const SpreadsheetViewer: import("react").MemoExoticComponent<(props: SpreadsheetViewerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SUPPORTED_SPREADSHEET_FILE_EXTENSIONS: string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./SpreadsheetViewer";
|
|
2
|
+
export * from "./ImageMarkup";
|
|
3
|
+
export * from "./PDFViewer";
|
|
4
|
+
export * from "./ImageViewer";
|
|
5
|
+
export * from "./FileViewer";
|
|
6
|
+
export * from "./ColorPicker";
|
|
7
|
+
export * from "./FileBadge";
|
|
8
|
+
export * from "./FileCard";
|
|
9
|
+
export * from "./FileIcon";
|
|
10
|
+
export * from "./ImageCard";
|
package/dist/constants/ui.d.ts
CHANGED
|
@@ -31,13 +31,12 @@ export declare const useFormikInput: <TField extends AnyField>(props: ComponentP
|
|
|
31
31
|
readonly accessKey?: string | undefined;
|
|
32
32
|
readonly autoFocus?: boolean | undefined;
|
|
33
33
|
readonly className?: string | undefined;
|
|
34
|
-
readonly contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
34
|
+
readonly contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
35
35
|
readonly contextMenu?: string | undefined;
|
|
36
36
|
readonly draggable?: (boolean | "true" | "false") | undefined;
|
|
37
37
|
readonly hidden?: boolean | undefined;
|
|
38
38
|
readonly lang?: string | undefined;
|
|
39
39
|
readonly nonce?: string | undefined;
|
|
40
|
-
readonly placeholder?: string | undefined;
|
|
41
40
|
readonly spellCheck?: (boolean | "true" | "false") | undefined;
|
|
42
41
|
readonly tabIndex?: number | undefined;
|
|
43
42
|
readonly translate?: "yes" | "no" | undefined;
|
|
@@ -67,58 +66,58 @@ export declare const useFormikInput: <TField extends AnyField>(props: ComponentP
|
|
|
67
66
|
readonly unselectable?: "on" | "off" | undefined;
|
|
68
67
|
readonly inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
69
68
|
readonly is?: string | undefined;
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
69
|
+
readonly "aria-activedescendant"?: string | undefined;
|
|
70
|
+
readonly "aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
71
|
+
readonly "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
72
|
+
readonly "aria-braillelabel"?: string | undefined;
|
|
73
|
+
readonly "aria-brailleroledescription"?: string | undefined;
|
|
74
|
+
readonly "aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
75
|
+
readonly "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
76
|
+
readonly "aria-colcount"?: number | undefined;
|
|
77
|
+
readonly "aria-colindex"?: number | undefined;
|
|
78
|
+
readonly "aria-colindextext"?: string | undefined;
|
|
79
|
+
readonly "aria-colspan"?: number | undefined;
|
|
80
|
+
readonly "aria-controls"?: string | undefined;
|
|
81
|
+
readonly "aria-current"?: boolean | "time" | "date" | "step" | "true" | "false" | "page" | "location" | undefined;
|
|
82
|
+
readonly "aria-describedby"?: string | undefined;
|
|
83
|
+
readonly "aria-description"?: string | undefined;
|
|
84
|
+
readonly "aria-details"?: string | undefined;
|
|
85
|
+
readonly "aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
86
|
+
readonly "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
87
|
+
readonly "aria-errormessage"?: string | undefined;
|
|
88
|
+
readonly "aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
89
|
+
readonly "aria-flowto"?: string | undefined;
|
|
90
|
+
readonly "aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
91
|
+
readonly "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
92
|
+
readonly "aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
93
|
+
readonly "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
94
|
+
readonly "aria-keyshortcuts"?: string | undefined;
|
|
95
|
+
readonly "aria-label"?: string | undefined;
|
|
96
|
+
readonly "aria-level"?: number | undefined;
|
|
97
|
+
readonly "aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
98
|
+
readonly "aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
99
|
+
readonly "aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
100
|
+
readonly "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
101
|
+
readonly "aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
102
|
+
readonly "aria-owns"?: string | undefined;
|
|
103
|
+
readonly "aria-placeholder"?: string | undefined;
|
|
104
|
+
readonly "aria-posinset"?: number | undefined;
|
|
105
|
+
readonly "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
106
|
+
readonly "aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
107
|
+
readonly "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
108
|
+
readonly "aria-required"?: (boolean | "true" | "false") | undefined;
|
|
109
|
+
readonly "aria-roledescription"?: string | undefined;
|
|
110
|
+
readonly "aria-rowcount"?: number | undefined;
|
|
111
|
+
readonly "aria-rowindex"?: number | undefined;
|
|
112
|
+
readonly "aria-rowindextext"?: string | undefined;
|
|
113
|
+
readonly "aria-rowspan"?: number | undefined;
|
|
114
|
+
readonly "aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
115
|
+
readonly "aria-setsize"?: number | undefined;
|
|
116
|
+
readonly "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
117
|
+
readonly "aria-valuemax"?: number | undefined;
|
|
118
|
+
readonly "aria-valuemin"?: number | undefined;
|
|
119
|
+
readonly "aria-valuenow"?: number | undefined;
|
|
120
|
+
readonly "aria-valuetext"?: string | undefined;
|
|
122
121
|
readonly children?: import("react").ReactNode;
|
|
123
122
|
readonly dangerouslySetInnerHTML?: {
|
|
124
123
|
__html: string | TrustedHTML;
|
|
@@ -260,9 +259,7 @@ export declare const useFormikInput: <TField extends AnyField>(props: ComponentP
|
|
|
260
259
|
readonly onPointerCancel?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
261
260
|
readonly onPointerCancelCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
262
261
|
readonly onPointerEnter?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
263
|
-
readonly onPointerEnterCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
264
262
|
readonly onPointerLeave?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
265
|
-
readonly onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
266
263
|
readonly onPointerOver?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
267
264
|
readonly onPointerOverCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
268
265
|
readonly onPointerOut?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
@@ -346,6 +343,7 @@ export declare const useFormikInput: <TField extends AnyField>(props: ComponentP
|
|
|
346
343
|
readonly noValidate?: boolean | undefined;
|
|
347
344
|
readonly open?: boolean | undefined;
|
|
348
345
|
readonly optimum?: number | undefined;
|
|
346
|
+
readonly placeholder?: string | undefined;
|
|
349
347
|
readonly playsInline?: boolean | undefined;
|
|
350
348
|
readonly poster?: string | undefined;
|
|
351
349
|
readonly preload?: string | undefined;
|