@overmap-ai/core 1.0.57-export-overmap-reducer.2 → 1.0.57-export-overmap-reducer.4

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.
@@ -5,11 +5,11 @@ import { OvermapRootState } from "../../typings";
5
5
  export interface ISDKContext {
6
6
  sdk: OvermapSDK;
7
7
  }
8
- interface SDKProviderProps<TStore extends ToolkitStore<OvermapRootState>> {
8
+ interface SDKProviderProps<TState extends OvermapRootState> {
9
9
  children: React.ReactNode;
10
10
  API_URL: string;
11
- store: TStore;
11
+ store: ToolkitStore<TState>;
12
12
  }
13
13
  declare const SDKContext: React.Context<ISDKContext>;
14
- declare const SDKProvider: <TStore extends ToolkitStore<OvermapRootState, import("redux").AnyAction, readonly import("redux").Middleware<{}, OvermapRootState, import("redux").Dispatch<import("redux").AnyAction>>[]>>(props: SDKProviderProps<TStore>) => import("react/jsx-runtime").JSX.Element;
14
+ declare const SDKProvider: <TState extends OvermapRootState>(props: SDKProviderProps<TState>) => import("react/jsx-runtime").JSX.Element;
15
15
  export { SDKProvider, SDKContext };
@@ -1,8 +1,9 @@
1
1
  import { ReactElement, ComponentProps, ReactNode } from "react";
2
- import { Flex, Severity, TextProps, ThemeOptions } from "@overmap-ai/blocks";
2
+ import { Text, Flex } from "@radix-ui/themes";
3
+ import { Severity, ThemeOptions } from "@overmap-ai/blocks";
3
4
  export type Color = ThemeOptions["accentColor"];
4
5
  interface InputWithLabelProps {
5
- size: TextProps["size"];
6
+ size: ComponentProps<typeof Text>["size"];
6
7
  severity: Severity | undefined;
7
8
  inputId: string;
8
9
  labelId: string;
@@ -1,7 +1,7 @@
1
- import { HTMLProps, ReactNode } from "react";
1
+ import { HTMLProps, ReactNode, ComponentProps as ReactComponentProps } from "react";
2
+ import { Text } from "@radix-ui/themes";
2
3
  import { BaseField, BaseFormElement } from "./BaseField";
3
4
  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?: TextProps["size"];
22
+ size?: ReactComponentProps<typeof Text>["size"];
23
23
  showInputOnly?: boolean;
24
24
  }
25
25
  export type GetInputProps<TField extends BaseFormElement> = Omit<ComponentProps<TField>, "field">;
@@ -1,5 +1,4 @@
1
1
  export * from "./FormRenderer/FormRenderer";
2
2
  export * from "./FormSubmissionViewer/FormSubmissionViewer";
3
3
  export * from "./FormBrowser/FormBrowser";
4
- export * from "./FormSubmissionBrowser/FormSubmissionBrowser";
5
4
  export * from "./PatchForm";