@overmap-ai/core 1.0.58-export-overmap-reducer.14 → 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.
Files changed (45) hide show
  1. package/dist/contexts/overmap.d.ts +2 -2
  2. package/dist/contexts/sdk/globals.d.ts +3 -3
  3. package/dist/contexts/sdk/sdk.d.ts +4 -4
  4. package/dist/forms/fields/BaseField/layouts.d.ts +2 -3
  5. package/dist/forms/fields/typings.d.ts +3 -3
  6. package/dist/forms/index.d.ts +0 -1
  7. package/dist/forms/renderer/FormSubmissionBrowser/FormSubmissionBrowser.d.ts +28 -0
  8. package/dist/forms/renderer/index.d.ts +1 -0
  9. package/dist/overmap-core.js +1642 -4644
  10. package/dist/overmap-core.js.map +1 -1
  11. package/dist/overmap-core.umd.cjs +2455 -5456
  12. package/dist/overmap-core.umd.cjs.map +1 -1
  13. package/dist/sdk/sdk.d.ts +4 -4
  14. package/dist/sdk/services/UserFormService.d.ts +7 -11
  15. package/dist/store/hooks.d.ts +4 -0
  16. package/dist/store/index.d.ts +1 -0
  17. package/dist/store/slices/agentsSlice.d.ts +3 -3
  18. package/dist/store/slices/assetSlice.d.ts +6 -6
  19. package/dist/store/slices/assetStageCompletionSlice.d.ts +2 -2
  20. package/dist/store/slices/assetStageSlice.d.ts +3 -3
  21. package/dist/store/slices/assetTypeSlice.d.ts +4 -4
  22. package/dist/store/slices/authSlice.d.ts +3 -3
  23. package/dist/store/slices/categorySlice.d.ts +39 -6
  24. package/dist/store/slices/documentSlice.d.ts +40 -7
  25. package/dist/store/slices/formRevisionSlice.d.ts +36 -3
  26. package/dist/store/slices/formSlice.d.ts +2 -76
  27. package/dist/store/slices/issueSlice.d.ts +48 -15
  28. package/dist/store/slices/mapSlice.d.ts +4 -4
  29. package/dist/store/slices/organizationAccessSlice.d.ts +3 -3
  30. package/dist/store/slices/outboxSlice.d.ts +3 -3
  31. package/dist/store/slices/projectAccessSlice.d.ts +2 -2
  32. package/dist/store/slices/projectFileSlice.d.ts +37 -4
  33. package/dist/store/slices/projectSlice.d.ts +8 -9
  34. package/dist/store/slices/rehydratedSlice.d.ts +2 -3
  35. package/dist/store/slices/settingsSlice.d.ts +10 -10
  36. package/dist/store/slices/userSlice.d.ts +4 -4
  37. package/dist/store/slices/workspaceSlice.d.ts +36 -3
  38. package/dist/store/store.d.ts +68 -5
  39. package/dist/style.css +7 -0
  40. package/dist/typings/models/forms.d.ts +6 -10
  41. package/dist/typings/models/store.d.ts +4 -33
  42. package/dist/typings/store.d.ts +4 -4
  43. package/dist/utils/utils.d.ts +3 -3
  44. package/package.json +3 -5
  45. 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 { OvermapRootState } from "../typings";
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<OvermapRootState>;
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 { OvermapRootState } from "../../typings";
3
- export declare function setClientStore(store: ToolkitStore<OvermapRootState>): void;
4
- export declare function getClientStore(): ToolkitStore<OvermapRootState> | undefined;
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 { OvermapRootState } from "../../typings";
4
+ import { RootState } from "../../typings";
5
5
  export interface ISDKContext {
6
6
  sdk: OvermapSDK;
7
7
  }
8
- interface SDKProviderProps<TState extends OvermapRootState> {
8
+ interface SDKProviderProps {
9
9
  children: React.ReactNode;
10
10
  API_URL: string;
11
- store: ToolkitStore<TState>;
11
+ store: ToolkitStore<RootState>;
12
12
  }
13
13
  declare const SDKContext: React.Context<ISDKContext>;
14
- declare const SDKProvider: <TState extends OvermapRootState>(props: SDKProviderProps<TState>) => import("react/jsx-runtime").JSX.Element;
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 { Text, Flex } from "@radix-ui/themes";
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: ComponentProps<typeof Text>["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, ComponentProps as ReactComponentProps } from "react";
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?: ReactComponentProps<typeof Text>["size"];
22
+ size?: TextProps["size"];
23
23
  showInputOnly?: boolean;
24
24
  }
25
25
  export type GetInputProps<TField extends BaseFormElement> = Omit<ComponentProps<TField>, "field">;
@@ -2,5 +2,4 @@ export * from "./typings";
2
2
  export * from "./builder";
3
3
  export * from "./fields";
4
4
  export * from "./renderer";
5
- export * from "./provider";
6
5
  export { validateForm, initialFormValues } from "./utils";
@@ -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 {};
@@ -1,4 +1,5 @@
1
1
  export * from "./FormRenderer/FormRenderer";
2
2
  export * from "./FormSubmissionViewer/FormSubmissionViewer";
3
3
  export * from "./FormBrowser/FormBrowser";
4
+ export * from "./FormSubmissionBrowser/FormSubmissionBrowser";
4
5
  export * from "./PatchForm";