@xapp/form-widget 1.63.1 → 1.64.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.
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { FormWidgetConfig } from "../../config/form-config";
3
+ import "./FormWidget.scss";
4
+ export interface FormWidgetProps {
5
+ readonly config: FormWidgetConfig;
6
+ }
7
+ export declare const FormWidget: FC<FormWidgetProps>;
8
+ interface FormWidgetRawProps {
9
+ handleChange: (field: keyof FormWidgetConfig, value: string) => void;
10
+ }
11
+ export declare const FormWidgetRaw: FC<FormWidgetRawProps>;
12
+ export {};
@@ -0,0 +1,6 @@
1
+ import { VFC } from "react";
2
+ import { Meta } from "@storybook/react/types-6-0";
3
+ declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
+ export default _default;
5
+ export declare const Default: VFC;
6
+ export declare const CustomStyle: VFC;
@@ -0,0 +1 @@
1
+ export { FormWidget, FormWidgetProps } from "./FormWidget";
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
- import { SearchWidgetTheme } from "../../config/theme";
2
+ import { FormWidgetTheme } from "../../config/theme";
3
3
  export interface WidgetStylesheetProps {
4
- readonly theme?: SearchWidgetTheme;
4
+ readonly theme?: FormWidgetTheme;
5
5
  }
6
- export declare function buildStyleContent(theme?: SearchWidgetTheme): string;
6
+ export declare function buildStyleContent(theme?: FormWidgetTheme): string;
7
7
  export declare const WidgetStylesheet: FC<WidgetStylesheetProps>;
@@ -1,2 +1 @@
1
- export { Search, SearchContainer, SearchProps } from "./Search";
2
- export { SearchWidget, SearchWidgetProps } from "./SearchWidget";
1
+ export { FormWidget, FormWidgetProps } from "./FormWidget";
@@ -0,0 +1,12 @@
1
+ export interface FormWidgetConfig {
2
+ readonly api: StentorApiConfig;
3
+ readonly suggestionsUrl?: string;
4
+ readonly isVoiceEnabled?: boolean;
5
+ readonly autoGreeting?: string;
6
+ readonly directoryListing?: string;
7
+ readonly endPoint?: string;
8
+ }
9
+ export interface StentorApiConfig {
10
+ readonly url: string;
11
+ readonly key: string;
12
+ }
@@ -1,2 +1,2 @@
1
- export { SearchWidgetConfig, StentorApiConfig } from "./search-config";
2
- export { SearchWidgetTheme } from "./theme";
1
+ export { FormWidgetConfig, StentorApiConfig } from "./form-config";
2
+ export { FormWidgetTheme } from "./theme";
@@ -1,4 +1,4 @@
1
- export interface SearchWidgetTheme {
1
+ export interface FormWidgetTheme {
2
2
  readonly accentColor?: string;
3
3
  readonly border?: WidgetBorderTheme;
4
4
  readonly messages?: WidgetMessagesTheme;