@overmap-ai/core 1.0.46 → 1.0.48-add-agent-service.0

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 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.
@@ -1,2 +1 @@
1
1
  export declare const fullComponentMarkerSize = 45;
2
- export declare const FEATHER_ICON_SIZE = "15px";
@@ -1,7 +1,7 @@
1
1
  import { BaseField, ChildFieldOptions } from "../BaseField";
2
2
  import { ChangeEvent, ReactNode } from "react";
3
3
  import { ComponentProps } from "../typings";
4
- import { CheckCircledIcon } from "@radix-ui/react-icons";
4
+ import { RiCheckboxCircleLine } from "react-icons/ri";
5
5
  import { ISerializedField, SerializedBooleanField } from "../../typings";
6
6
  export declare const emptyBooleanField: {
7
7
  type: string;
@@ -13,7 +13,7 @@ export declare class BooleanField extends BaseField<boolean, "boolean"> {
13
13
  static readonly fieldTypeName = "Checkbox";
14
14
  static readonly fieldTypeDescription = "Perfect for both optional and required yes/no questions.";
15
15
  readonly onlyValidateAfterTouched = false;
16
- static Icon: typeof CheckCircledIcon;
16
+ static Icon: typeof RiCheckboxCircleLine;
17
17
  constructor(options: ChildFieldOptions<boolean>);
18
18
  protected isBlank(value: boolean): boolean;
19
19
  getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement> | boolean): boolean;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode, ChangeEvent } from "react";
2
2
  import { BaseField, ChildFieldOptions } from "../BaseField";
3
3
  import { GetInputProps } from "../typings";
4
- import { CalendarIcon } from "@radix-ui/react-icons";
4
+ import { RiCalendarLine } from "react-icons/ri";
5
5
  import { ISerializedField, SerializedDateField } from "../../typings";
6
6
  export declare const emptyDateField: {
7
7
  type: string;
@@ -12,7 +12,7 @@ export declare const emptyDateField: {
12
12
  export declare class DateField extends BaseField<string, "date"> {
13
13
  static readonly fieldTypeName = "Date";
14
14
  static readonly fieldTypeDescription = "Allows specifying a date.";
15
- static Icon: typeof CalendarIcon;
15
+ static Icon: typeof RiCalendarLine;
16
16
  readonly onlyValidateAfterTouched = false;
17
17
  constructor(options: ChildFieldOptions<string>);
18
18
  serialize(): SerializedDateField;
@@ -1,7 +1,7 @@
1
1
  import { BaseField, ChildFieldOptions } from "../BaseField";
2
2
  import { GetInputProps, InputFieldLevelValidator } from "../typings";
3
3
  import { ChangeEvent, ReactNode } from "react";
4
- import { ListBulletIcon } from "@radix-ui/react-icons";
4
+ import { RiListCheck } from "react-icons/ri";
5
5
  import { ISerializedField, SelectFieldOption, SerializedMultiStringField } from "../../typings";
6
6
  type MultiStringFieldOptions = ChildFieldOptions<SelectFieldOption[]> & {
7
7
  minimum_length?: number;
@@ -28,7 +28,7 @@ export declare class MultiStringField extends BaseField<SelectFieldOption[], "mu
28
28
  readonly maxLength: number;
29
29
  readonly onlyValidateAfterTouched = false;
30
30
  readonly placeholder: string;
31
- static Icon: typeof ListBulletIcon;
31
+ static Icon: typeof RiListCheck;
32
32
  constructor(options: MultiStringFieldOptions);
33
33
  getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement> | SelectFieldOption[]): SelectFieldOption[];
34
34
  getInput(props: GetInputProps<this>): ReactNode;
@@ -2,7 +2,7 @@ import { BooleanField } from "../BooleanField";
2
2
  import { BaseField, ChildFieldOptions } from "../BaseField";
3
3
  import { GetInputProps, InputFieldLevelValidator, InputValidator } from "../typings";
4
4
  import { ChangeEvent, ReactNode } from "react";
5
- import { FontFamilyIcon } from "@radix-ui/react-icons";
5
+ import { RiHashtag } from "react-icons/ri";
6
6
  import { ISerializedField, SerializedNumberField } from "../../typings";
7
7
  export type NumberFieldValue = number | "";
8
8
  export declare const emptyNumberField: {
@@ -27,7 +27,7 @@ export declare class NumberField extends BaseField<NumberFieldValue, "number"> {
27
27
  readonly maximum: number | undefined;
28
28
  readonly integers: boolean;
29
29
  readonly placeholder: string;
30
- static Icon: typeof FontFamilyIcon;
30
+ static Icon: typeof RiHashtag;
31
31
  constructor(options: NumberFieldOptions);
32
32
  getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement>): NumberFieldValue;
33
33
  static _validateMin: (path: string) => InputValidator<NumberFieldValue>;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { GetInputProps } from "../typings";
3
3
  import { BaseSelectField, BaseSelectFieldOptions } from "./BaseSelectField";
4
- import { CheckboxIcon } from "@radix-ui/react-icons";
4
+ import { RiCheckboxLine } from "react-icons/ri";
5
5
  import { ISerializedField, SelectFieldOptionValue, SerializedMultiSelectField } from "../../typings";
6
6
  /**
7
7
  * The options passed to the constructor of MultiSelectField.
@@ -17,7 +17,7 @@ export declare const emptyMultiSelectField: {
17
17
  export declare class MultiSelectField extends BaseSelectField<SelectFieldOptionValue[], "multi-select"> {
18
18
  static readonly fieldTypeName = "Multi-select";
19
19
  static readonly fieldTypeDescription = "Allows the user to select a multiple options from a list of options.";
20
- static Icon: typeof CheckboxIcon;
20
+ static Icon: typeof RiCheckboxLine;
21
21
  constructor(options: MultiSelectFieldOptions);
22
22
  getValueFromChangeEvent(event: React.ChangeEvent<HTMLInputElement> | string[]): string[];
23
23
  protected isBlank(value: SelectFieldOptionValue[]): boolean;
@@ -1,7 +1,7 @@
1
1
  import { ChangeEvent, ReactNode } from "react";
2
2
  import { GetInputProps } from "../typings";
3
3
  import { BaseSelectField, BaseSelectFieldOptions } from "./BaseSelectField";
4
- import { DropdownMenuIcon } from "@radix-ui/react-icons";
4
+ import { RiMenuFoldLine } from "react-icons/ri";
5
5
  import { ISerializedField, SelectFieldOptionValue, SerializedSelectField } from "../../typings";
6
6
  /**
7
7
  * The options passed to the constructor of SelectField.
@@ -17,7 +17,7 @@ export declare const emptySelectField: {
17
17
  export declare class SelectField extends BaseSelectField<SelectFieldOptionValue, "select"> {
18
18
  static readonly fieldTypeName = "Dropdown";
19
19
  static readonly fieldTypeDescription = "Allows the user to select a single option from a list of options.";
20
- static Icon: typeof DropdownMenuIcon;
20
+ static Icon: typeof RiMenuFoldLine;
21
21
  constructor(options: SelectFieldOptions);
22
22
  getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement> | string): SelectFieldOptionValue;
23
23
  serialize(): SerializedSelectField;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { StringOrTextField, StringOrTextFieldOptions } from "../StringOrTextField";
3
3
  import { GetInputProps } from "../../typings";
4
- import { InputIcon } from "@radix-ui/react-icons";
4
+ import { RiInputField } from "react-icons/ri";
5
5
  import { ISerializedField, SerializedStringField, StringInputType } from "../../../typings";
6
6
  export interface StringFieldOptions extends Omit<StringOrTextFieldOptions, "type"> {
7
7
  inputType?: StringInputType;
@@ -18,7 +18,7 @@ export declare class StringField extends StringOrTextField<"string"> {
18
18
  static readonly fieldTypeName = "Short Text";
19
19
  static readonly fieldTypeDescription = "Short text fields can hold up to 500 characters on a single line.";
20
20
  readonly inputType: StringInputType;
21
- static Icon: typeof InputIcon;
21
+ static Icon: typeof RiInputField;
22
22
  constructor(options: StringFieldOptions);
23
23
  serialize(): SerializedStringField;
24
24
  static deserialize(data: ISerializedField): StringField;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { StringOrTextField, StringOrTextFieldOptions } from "../StringOrTextField";
3
3
  import { GetInputProps } from "../../typings";
4
- import { RowsIcon } from "@radix-ui/react-icons";
4
+ import { RiAlignJustify } from "react-icons/ri";
5
5
  import { ISerializedField, SerializedTextField } from "../../../typings";
6
6
  export type TextFieldOptions = Omit<StringOrTextFieldOptions, "type">;
7
7
  export declare const emptyTextField: {
@@ -14,7 +14,7 @@ export declare const emptyTextField: {
14
14
  export declare class TextField extends StringOrTextField<"text"> {
15
15
  static readonly fieldTypeName = "Paragraph";
16
16
  static readonly fieldTypeDescription = "Paragraph fields can hold up to 10000 characters and can have multiple lines.";
17
- static Icon: typeof RowsIcon;
17
+ static Icon: typeof RiAlignJustify;
18
18
  constructor(options: TextFieldOptions);
19
19
  serialize(): SerializedTextField;
20
20
  static deserialize(data: ISerializedField): TextField;
@@ -1,7 +1,7 @@
1
1
  import { BaseField, ChildFieldOptions } from "../BaseField";
2
2
  import { GetInputProps, InputFieldLevelValidator } from "../typings";
3
3
  import { ChangeEvent, ReactNode } from "react";
4
- import { UploadIcon } from "@radix-ui/react-icons";
4
+ import { RiUpload2Line } from "react-icons/ri";
5
5
  import { NumberField } from "../NumberField";
6
6
  import { MultiSelectField } from "../SelectField";
7
7
  import { ISerializedField, SerializedUploadField } from "../../typings";
@@ -26,7 +26,7 @@ export declare class UploadField extends BaseField<File[], "upload"> {
26
26
  readonly maxFileSize: number | undefined;
27
27
  readonly maxFiles: number;
28
28
  readonly onlyValidateAfterTouched = false;
29
- static Icon: typeof UploadIcon;
29
+ static Icon: typeof RiUpload2Line;
30
30
  constructor(options: UploadFieldOptions);
31
31
  getValueFromChangeEvent(event: ChangeEvent<HTMLInputElement>): File[];
32
32
  protected isBlank(value: File[]): boolean;