@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.
- package/dist/components/FormWidget/FormWidget.d.ts +12 -0
- package/dist/components/FormWidget/FormWidget.stories.d.ts +6 -0
- package/dist/components/FormWidget/index.d.ts +1 -0
- package/dist/components/WidgetStylesheet/WidgetStylesheet.d.ts +3 -3
- package/dist/components/index.d.ts +1 -2
- package/dist/config/form-config.d.ts +12 -0
- package/dist/config/index.d.ts +2 -2
- package/dist/config/theme.d.ts +1 -1
- package/dist/index.css +1 -811
- package/dist/index.d.ts +2 -3
- package/dist/index.es.js +40187 -93284
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +40158 -93257
- package/dist/index.js.map +1 -1
- package/dist/stories/ThemeBuilder/WidgetThemeBuilder/WidgetThemeBuilder.d.ts +4 -4
- package/dist/stories/config.d.ts +6 -5
- package/dist/utils/FormContext.d.ts +8 -0
- package/package.json +4 -5
|
@@ -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 @@
|
|
|
1
|
+
export { FormWidget, FormWidgetProps } from "./FormWidget";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { FormWidgetTheme } from "../../config/theme";
|
|
3
3
|
export interface WidgetStylesheetProps {
|
|
4
|
-
readonly theme?:
|
|
4
|
+
readonly theme?: FormWidgetTheme;
|
|
5
5
|
}
|
|
6
|
-
export declare function buildStyleContent(theme?:
|
|
6
|
+
export declare function buildStyleContent(theme?: FormWidgetTheme): string;
|
|
7
7
|
export declare const WidgetStylesheet: FC<WidgetStylesheetProps>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
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
|
+
}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { FormWidgetConfig, StentorApiConfig } from "./form-config";
|
|
2
|
+
export { FormWidgetTheme } from "./theme";
|
package/dist/config/theme.d.ts
CHANGED