@overmap-ai/core 1.0.58-export-overmap-reducer.8 → 1.0.58-form-improvements.1
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/forms/fields/BaseField/layouts.d.ts +2 -3
- package/dist/forms/fields/typings.d.ts +3 -3
- package/dist/forms/index.d.ts +0 -1
- package/dist/forms/renderer/FormSubmissionBrowser/FormSubmissionBrowser.d.ts +28 -0
- package/dist/forms/renderer/index.d.ts +1 -0
- package/dist/overmap-core.js +1642 -4644
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +2455 -5456
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/sdk.d.ts +4 -4
- package/dist/sdk/services/UserFormService.d.ts +7 -11
- package/dist/store/hooks.d.ts +4 -0
- package/dist/store/index.d.ts +1 -0
- package/dist/store/slices/agentsSlice.d.ts +3 -3
- package/dist/store/slices/assetSlice.d.ts +6 -6
- package/dist/store/slices/assetStageCompletionSlice.d.ts +2 -2
- package/dist/store/slices/assetStageSlice.d.ts +3 -3
- package/dist/store/slices/assetTypeSlice.d.ts +4 -4
- package/dist/store/slices/authSlice.d.ts +3 -3
- package/dist/store/slices/categorySlice.d.ts +39 -6
- package/dist/store/slices/documentSlice.d.ts +40 -7
- package/dist/store/slices/formRevisionSlice.d.ts +36 -3
- package/dist/store/slices/formSlice.d.ts +2 -76
- package/dist/store/slices/issueSlice.d.ts +48 -15
- package/dist/store/slices/mapSlice.d.ts +4 -4
- package/dist/store/slices/organizationAccessSlice.d.ts +3 -3
- package/dist/store/slices/outboxSlice.d.ts +3 -3
- package/dist/store/slices/projectAccessSlice.d.ts +2 -2
- package/dist/store/slices/projectFileSlice.d.ts +37 -4
- package/dist/store/slices/projectSlice.d.ts +8 -9
- package/dist/store/slices/rehydratedSlice.d.ts +2 -3
- package/dist/store/slices/settingsSlice.d.ts +10 -10
- package/dist/store/slices/userSlice.d.ts +4 -4
- package/dist/store/slices/workspaceSlice.d.ts +36 -3
- package/dist/store/store.d.ts +68 -5
- package/dist/style.css +7 -0
- package/dist/typings/models/forms.d.ts +6 -10
- package/dist/typings/models/store.d.ts +4 -33
- package/dist/typings/store.d.ts +4 -4
- package/dist/utils/utils.d.ts +3 -3
- package/package.json +3 -5
- package/dist/forms/provider.d.ts +0 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
|
|
3
|
-
import {
|
|
3
|
+
import { RootState } from "../typings";
|
|
4
4
|
interface OvermapProviderProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
production?: boolean;
|
|
7
7
|
disableDefaultTheme?: boolean;
|
|
8
|
-
store: ToolkitStore<
|
|
8
|
+
store: ToolkitStore<RootState>;
|
|
9
9
|
}
|
|
10
10
|
declare const OvermapContext: React.Context<null>;
|
|
11
11
|
declare const OvermapProvider: (props: OvermapProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
|
|
2
|
-
import {
|
|
3
|
-
export declare function setClientStore(store: ToolkitStore<
|
|
4
|
-
export declare function getClientStore(): ToolkitStore<
|
|
2
|
+
import { RootState } from "../../typings";
|
|
3
|
+
export declare function setClientStore(store: ToolkitStore<RootState>): void;
|
|
4
|
+
export declare function getClientStore(): ToolkitStore<RootState> | undefined;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { OvermapSDK } from "../../sdk";
|
|
3
3
|
import { ToolkitStore } from "@reduxjs/toolkit/dist/configureStore";
|
|
4
|
-
import {
|
|
4
|
+
import { RootState } from "../../typings";
|
|
5
5
|
export interface ISDKContext {
|
|
6
6
|
sdk: OvermapSDK;
|
|
7
7
|
}
|
|
8
|
-
interface SDKProviderProps
|
|
8
|
+
interface SDKProviderProps {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
API_URL: string;
|
|
11
|
-
store: ToolkitStore<
|
|
11
|
+
store: ToolkitStore<RootState>;
|
|
12
12
|
}
|
|
13
13
|
declare const SDKContext: React.Context<ISDKContext>;
|
|
14
|
-
declare const SDKProvider: <
|
|
14
|
+
declare const SDKProvider: React.MemoExoticComponent<({ children, API_URL, store }: SDKProviderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
15
|
export { SDKProvider, SDKContext };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ReactElement, ComponentProps, ReactNode } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { Severity, ThemeOptions } from "@overmap-ai/blocks";
|
|
2
|
+
import { Flex, Severity, TextProps, ThemeOptions } from "@overmap-ai/blocks";
|
|
4
3
|
export type Color = ThemeOptions["accentColor"];
|
|
5
4
|
interface InputWithLabelProps {
|
|
6
|
-
size:
|
|
5
|
+
size: TextProps["size"];
|
|
7
6
|
severity: Severity | undefined;
|
|
8
7
|
inputId: string;
|
|
9
8
|
labelId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HTMLProps, ReactNode
|
|
2
|
-
import { Text } from "@radix-ui/themes";
|
|
1
|
+
import { HTMLProps, ReactNode } from "react";
|
|
3
2
|
import { BaseField, BaseFormElement } from "./BaseField";
|
|
4
3
|
import { Form, ISerializedField, SerializedFieldSection } from "../typings";
|
|
4
|
+
import { TextProps } from "@overmap-ai/blocks";
|
|
5
5
|
import { FormikUserFormRevision } from "../builder";
|
|
6
6
|
export interface SchemaMeta {
|
|
7
7
|
readonly: boolean;
|
|
@@ -19,7 +19,7 @@ export type InputValidator<TValue> = InputFieldLevelValidator<TValue> | InputFor
|
|
|
19
19
|
export interface ComponentProps<TField extends BaseFormElement> extends Omit<HTMLProps<HTMLElement>, "color" | "size" | "ref" | "type" | "onChange" | "onBlur" | "value" | "defaultValue" | "name" | "dir"> {
|
|
20
20
|
field: TField;
|
|
21
21
|
formId: string;
|
|
22
|
-
size?:
|
|
22
|
+
size?: TextProps["size"];
|
|
23
23
|
showInputOnly?: boolean;
|
|
24
24
|
}
|
|
25
25
|
export type GetInputProps<TField extends BaseFormElement> = Omit<ComponentProps<TField>, "field">;
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
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 {};
|