@xapp/form-widget 1.62.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/LICENSE.md +176 -0
- package/README.md +3 -0
- package/dist/App.d.ts +23 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/stentor-api.d.ts +18 -0
- package/dist/components/Button/Button.d.ts +8 -0
- package/dist/components/Button/Button.stories.d.ts +6 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +8 -0
- package/dist/components/Card/Card.stories.d.ts +9 -0
- package/dist/components/Card/Card.test.d.ts +1 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/utils.d.ts +1 -0
- package/dist/components/Cards/Cards.d.ts +7 -0
- package/dist/components/Cards/Cards.stories.d.ts +7 -0
- package/dist/components/Cards/index.d.ts +1 -0
- package/dist/components/Carousel/Carousel.d.ts +7 -0
- package/dist/components/Carousel/Carousel.stories.d.ts +8 -0
- package/dist/components/Carousel/CarouselItem.d.ts +6 -0
- package/dist/components/Carousel/index.d.ts +1 -0
- package/dist/components/ChatButton/ChatButton.d.ts +13 -0
- package/dist/components/ChatButton/ChatButton.stories.d.ts +6 -0
- package/dist/components/ChatButton/index.d.ts +1 -0
- package/dist/components/FormFieldCard/FormFieldCard.d.ts +7 -0
- package/dist/components/FormFieldCard/index.d.ts +1 -0
- package/dist/components/FormFieldChips/FormFieldChips.d.ts +8 -0
- package/dist/components/FormFieldChips/FormFieldSelect.d.ts +7 -0
- package/dist/components/FormFieldChips/index.d.ts +1 -0
- package/dist/components/FormFieldDate/FormFieldDate.d.ts +7 -0
- package/dist/components/FormFieldDate/index.d.ts +1 -0
- package/dist/components/FormFieldDateRange/FormFieldDateRange.d.ts +7 -0
- package/dist/components/FormFieldDateRange/index.d.ts +1 -0
- package/dist/components/FormFieldDropdown/FormFieldDropdown.d.ts +7 -0
- package/dist/components/FormFieldDropdown/index.d.ts +1 -0
- package/dist/components/FormFieldTextInput/FormFieldTextInput.d.ts +9 -0
- package/dist/components/FormFieldTextInput/index.d.ts +1 -0
- package/dist/components/FormStepDisplay/FormStepDisplay.d.ts +14 -0
- package/dist/components/FormStepDisplay/index.d.ts +2 -0
- package/dist/components/FormStepDisplay/validators.d.ts +8 -0
- package/dist/components/IconLabel/IconLabel.d.ts +9 -0
- package/dist/components/IconLabel/IconLabel.stories.d.ts +5 -0
- package/dist/components/IconLabel/index.d.ts +1 -0
- package/dist/components/LinkButton/LinkButton.d.ts +8 -0
- package/dist/components/LinkButton/LinkButton.stories.d.ts +6 -0
- package/dist/components/LinkButton/index.d.ts +1 -0
- package/dist/components/ModalDialog/ModalDialog.d.ts +6 -0
- package/dist/components/ModalDialog/ModalDialog.stories.d.ts +5 -0
- package/dist/components/ModalDialog/index.d.ts +1 -0
- package/dist/components/Search/Search.d.ts +14 -0
- package/dist/components/Search/Search.stories.d.ts +12 -0
- package/dist/components/Search/index.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +16 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts +6 -0
- package/dist/components/SearchInput/SearchInputContainer.d.ts +4 -0
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/SearchResponse/SearchResponse.d.ts +11 -0
- package/dist/components/SearchResponse/SearchResponse.stories.d.ts +13 -0
- package/dist/components/SearchResponse/index.d.ts +1 -0
- package/dist/components/SearchResponseAudio/SearchResponseAudio.d.ts +6 -0
- package/dist/components/SearchResponseAudio/SearchResponseAudio.stories.d.ts +5 -0
- package/dist/components/SearchResponseAudio/index.d.ts +1 -0
- package/dist/components/SearchResponseBubble/SearchResponseBubble.d.ts +5 -0
- package/dist/components/SearchResponseBubble/SearchResponseBubble.stories.d.ts +5 -0
- package/dist/components/SearchResponseBubble/index.d.ts +1 -0
- package/dist/components/SearchResponseCarouselDisplay/SearchResponseCarouselDisplay.d.ts +6 -0
- package/dist/components/SearchResponseCarouselDisplay/SearchResponseCarouselDisplay.stories.d.ts +5 -0
- package/dist/components/SearchResponseCarouselDisplay/index.d.ts +1 -0
- package/dist/components/SearchResponseDisplay/SearchResponseDisplay.d.ts +7 -0
- package/dist/components/SearchResponseDisplay/index.d.ts +1 -0
- package/dist/components/SearchResponseFormDisplay/SearchResponseFormDisplay.d.ts +8 -0
- package/dist/components/SearchResponseFormDisplay/index.d.ts +2 -0
- package/dist/components/SearchResponseFormDisplay/model.d.ts +132 -0
- package/dist/components/SearchResponseHtml/SearchResponseHtml.d.ts +5 -0
- package/dist/components/SearchResponseHtml/SearchResponseHtml.stories.d.ts +5 -0
- package/dist/components/SearchResponseHtml/index.d.ts +1 -0
- package/dist/components/SearchResponseListDisplay/SearchResponseListDisplay.d.ts +6 -0
- package/dist/components/SearchResponseListDisplay/SearchResponseListDisplay.stories.d.ts +6 -0
- package/dist/components/SearchResponseListDisplay/index.d.ts +1 -0
- package/dist/components/SearchResponseOutputSpeech/SearchResponseOutputSpeech.d.ts +8 -0
- package/dist/components/SearchResponseOutputSpeech/SearchResponseOutputSpeech.stories.d.ts +8 -0
- package/dist/components/SearchResponseOutputSpeech/index.d.ts +1 -0
- package/dist/components/SearchResponsePart/SearchResponsePart.d.ts +6 -0
- package/dist/components/SearchResponsePart/index.d.ts +1 -0
- package/dist/components/SearchResponseText/SearchResponseText.d.ts +5 -0
- package/dist/components/SearchResponseText/SearchResponseText.stories.d.ts +5 -0
- package/dist/components/SearchResponseText/index.d.ts +1 -0
- package/dist/components/SearchResult/SearchResult.d.ts +13 -0
- package/dist/components/SearchResult/SearchResult.stories.d.ts +5 -0
- package/dist/components/SearchResult/SearchResult.test.d.ts +1 -0
- package/dist/components/SearchResult/index.d.ts +1 -0
- package/dist/components/SearchWidget/SearchWidget.d.ts +8 -0
- package/dist/components/SearchWidget/SearchWidget.stories.d.ts +9 -0
- package/dist/components/SearchWidget/index.d.ts +1 -0
- package/dist/components/SimpleNavigationHeader/SimpleNavigationHeader.d.ts +8 -0
- package/dist/components/SimpleNavigationHeader/index.d.ts +1 -0
- package/dist/components/SuggestedAction/SuggestedAction.d.ts +9 -0
- package/dist/components/SuggestedAction/SuggestedAction.stories.d.ts +7 -0
- package/dist/components/SuggestedAction/index.d.ts +1 -0
- package/dist/components/SuggestedActions/SuggestedActions.d.ts +9 -0
- package/dist/components/SuggestedActions/SuggestedActions.stories.d.ts +5 -0
- package/dist/components/SuggestedActions/index.d.ts +1 -0
- package/dist/components/UknownMessage/UnknownMessage.d.ts +2 -0
- package/dist/components/UknownMessage/index.d.ts +1 -0
- package/dist/components/WidgetStylesheet/WidgetStylesheet.d.ts +7 -0
- package/dist/components/WidgetStylesheet/index.d.ts +1 -0
- package/dist/components/icons/BigMicIcon/BigMicIcon.d.ts +6 -0
- package/dist/components/icons/BigMicIcon/index.d.ts +1 -0
- package/dist/components/icons/Icon.stories.d.ts +5 -0
- package/dist/components/icons/LeftAngleIcon/LeftAngleIcon.d.ts +2 -0
- package/dist/components/icons/LeftAngleIcon/index.d.ts +1 -0
- package/dist/components/icons/MicIcons/MicIconEmpty.d.ts +2 -0
- package/dist/components/icons/MicIcons/MicIconFill.d.ts +2 -0
- package/dist/components/icons/MicIcons/index.d.ts +2 -0
- package/dist/components/icons/RightAngleIcon/RightAngleIcon.d.ts +2 -0
- package/dist/components/icons/RightAngleIcon/index.d.ts +1 -0
- package/dist/components/icons/SearchIcon/SearchIcon.d.ts +2 -0
- package/dist/components/icons/SearchIcon/index.d.ts +1 -0
- package/dist/components/icons/SpinnerIcon/SpinnerIcon.d.ts +2 -0
- package/dist/components/icons/SpinnerIcon/index.d.ts +1 -0
- package/dist/components/icons/index.d.ts +4 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/config/config.d.ts +8 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/search-config.d.ts +10 -0
- package/dist/config/theme.d.ts +76 -0
- package/dist/constants/variables.d.ts +3 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +107046 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +107080 -0
- package/dist/index.js.map +1 -0
- package/dist/middlewares/index.d.ts +2 -0
- package/dist/middlewares/join.d.ts +2 -0
- package/dist/middlewares/message-middleware.d.ts +14 -0
- package/dist/middlewares/use-middleware.d.ts +10 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/store/SearchDispatch.d.ts +2 -0
- package/dist/store/SearchState.d.ts +19 -0
- package/dist/store/SearchStore.d.ts +3 -0
- package/dist/store/SearchStoreContext.d.ts +5 -0
- package/dist/store/SearchStoreProvider.d.ts +6 -0
- package/dist/store/actions/BaseSearchAction.d.ts +4 -0
- package/dist/store/actions/NewSearchAction.d.ts +3 -0
- package/dist/store/actions/SearchAction.d.ts +6 -0
- package/dist/store/actions/SearchActionType.d.ts +1 -0
- package/dist/store/actions/SetModalStateAction.d.ts +6 -0
- package/dist/store/actions/SetQueryAction.d.ts +5 -0
- package/dist/store/actions/SetResponseAction.d.ts +12 -0
- package/dist/store/actions/ToggleModalStateAction.d.ts +3 -0
- package/dist/store/actions/index.d.ts +1 -0
- package/dist/store/index.d.ts +7 -0
- package/dist/store/reducers/RootReducer.d.ts +3 -0
- package/dist/store/reducers/index.d.ts +1 -0
- package/dist/store/useSearchDispatch.d.ts +2 -0
- package/dist/store/useSearchState.d.ts +2 -0
- package/dist/store/useSearchStore.d.ts +2 -0
- package/dist/stories/DummyContent.d.ts +2 -0
- package/dist/stories/RichTextValues.d.ts +2 -0
- package/dist/stories/ThemeBuilder/ThemeBuilderSection/ThemeBuilderSection.d.ts +8 -0
- package/dist/stories/ThemeBuilder/ThemeBuilderSection/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/ThemeBuilderSectionLine/ThemeBuilderSectionLine.d.ts +7 -0
- package/dist/stories/ThemeBuilder/ThemeBuilderSectionLine/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetBackgroundThemeBuilder/WidgetBackgroundThemeBuilder.d.ts +11 -0
- package/dist/stories/ThemeBuilder/WidgetBackgroundThemeBuilder/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetBorderRadiusPicker/WidgetBorderRadiusPicker.d.ts +9 -0
- package/dist/stories/ThemeBuilder/WidgetBorderRadiusPicker/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetBorderThemeBuilder/WidgetBorderThemeBuilder.d.ts +11 -0
- package/dist/stories/ThemeBuilder/WidgetBorderThemeBuilder/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetBorderWidthPicker/WidgetBorderWidthPicker.d.ts +9 -0
- package/dist/stories/ThemeBuilder/WidgetBorderWidthPicker/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetCardThemeBuilder/WidgetCardThemeBuilder.d.ts +10 -0
- package/dist/stories/ThemeBuilder/WidgetCardThemeBuilder/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetCarouselThemeBuilder/WidgetCarouselThemeBuilder.d.ts +10 -0
- package/dist/stories/ThemeBuilder/WidgetCarouselThemeBuilder/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetColorPicker/WidgetColorPicker.d.ts +12 -0
- package/dist/stories/ThemeBuilder/WidgetColorPicker/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetFontFamilyPicker/WidgetFontFamilyPicker.d.ts +12 -0
- package/dist/stories/ThemeBuilder/WidgetFontFamilyPicker/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetFontSizePicker/WidgetFontSizePicker.d.ts +9 -0
- package/dist/stories/ThemeBuilder/WidgetFontSizePicker/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetFontStylePicker/WidgetFontStylePicker.d.ts +12 -0
- package/dist/stories/ThemeBuilder/WidgetFontStylePicker/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetFontWeightPicker/WidgetFontWeightPicker.d.ts +12 -0
- package/dist/stories/ThemeBuilder/WidgetFontWeightPicker/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetLengthPicker/WidgetLengthPicker.d.ts +11 -0
- package/dist/stories/ThemeBuilder/WidgetLengthPicker/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetLengthPickerLine/WidgetLengthPickerLine.d.ts +10 -0
- package/dist/stories/ThemeBuilder/WidgetLengthPickerLine/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetLinkBlockThemeBuilder/WidgetLinkBlockThemeBuilder.d.ts +10 -0
- package/dist/stories/ThemeBuilder/WidgetLinkBlockThemeBuilder/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetLinkThemeBuilder/WidgetLinkThemeBuilder.d.ts +10 -0
- package/dist/stories/ThemeBuilder/WidgetLinkThemeBuilder/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetListThemeBuilder/WidgetListThemeBuilder.d.ts +10 -0
- package/dist/stories/ThemeBuilder/WidgetListThemeBuilder/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetMarginPicker/WidgetMarginPicker.d.ts +10 -0
- package/dist/stories/ThemeBuilder/WidgetMarginPicker/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetPaddingPicker/WidgetPaddingPicker.d.ts +10 -0
- package/dist/stories/ThemeBuilder/WidgetPaddingPicker/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetTextBlockThemeBuilder/WidgetTextBlockThemeBuilder.d.ts +10 -0
- package/dist/stories/ThemeBuilder/WidgetTextBlockThemeBuilder/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetTextThemeBuilder/WidgetTextThemeBuilder.d.ts +10 -0
- package/dist/stories/ThemeBuilder/WidgetTextThemeBuilder/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetThemeBuilder/WidgetThemeBuilder.d.ts +8 -0
- package/dist/stories/ThemeBuilder/WidgetThemeBuilder/index.d.ts +1 -0
- package/dist/stories/ThemeBuilder/WidgetValuePicker/WidgetValuePicker.d.ts +16 -0
- package/dist/stories/ThemeBuilder/WidgetValuePicker/index.d.ts +1 -0
- package/dist/stories/base-list-display.d.ts +2 -0
- package/dist/stories/carousel-display.d.ts +2 -0
- package/dist/stories/carousel-response.d.ts +2 -0
- package/dist/stories/config.d.ts +5 -0
- package/dist/stories/list-display.d.ts +2 -0
- package/dist/stories/list-response.d.ts +2 -0
- package/dist/stories/random-theme.d.ts +3 -0
- package/dist/stories/response-filter.d.ts +5 -0
- package/dist/stories/suggestions-groups.d.ts +4 -0
- package/dist/stories/text-response.d.ts +2 -0
- package/dist/stories/useOnChangeChildDispatch.d.ts +4 -0
- package/dist/utils/SearchWidgetConfigContext.d.ts +3 -0
- package/dist/utils/comparator.d.ts +11 -0
- package/dist/utils/getActionLabel.d.ts +2 -0
- package/dist/utils/guards/index.d.ts +5 -0
- package/dist/utils/guards/isCarousel.d.ts +2 -0
- package/dist/utils/guards/isField.d.ts +3 -0
- package/dist/utils/guards/isForm.d.ts +3 -0
- package/dist/utils/guards/isList.d.ts +2 -0
- package/dist/utils/guards/throwBadKind.d.ts +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/parseAudio.d.ts +1 -0
- package/dist/utils/parseEnv.d.ts +1 -0
- package/dist/utils/subscribable-array.d.ts +12 -0
- package/dist/utils/templating.d.ts +3 -0
- package/dist/utils/useExternalScript.d.ts +1 -0
- package/dist/utils/useFetchStylesheet.d.ts +1 -0
- package/dist/utils/useIsMounted.d.ts +1 -0
- package/dist/utils/useLoading.d.ts +7 -0
- package/dist/utils/useSuggestionsFetch.d.ts +2 -0
- package/dist/utils/useSuggestionsUrl.d.ts +1 -0
- package/package.json +114 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { Display } from "stentor-models";
|
|
3
|
+
export interface WidgetMessageMiddlewareContext {
|
|
4
|
+
onActionResponse(data: unknown, action: string): void;
|
|
5
|
+
}
|
|
6
|
+
export interface MessageMiddlewareProps {
|
|
7
|
+
readonly msg: Display;
|
|
8
|
+
readonly ctx: WidgetMessageMiddlewareContext;
|
|
9
|
+
}
|
|
10
|
+
export declare type MessageMiddlewareFC<TMsg> = FC<{
|
|
11
|
+
readonly msg: TMsg;
|
|
12
|
+
}>;
|
|
13
|
+
export declare type MessageMiddleware = FC<MessageMiddlewareProps>;
|
|
14
|
+
export declare type MessageMiddlewareBuilder = (next: MessageMiddleware) => MessageMiddleware;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SubscribableArray } from "../utils/subscribable-array";
|
|
2
|
+
import { MessageMiddleware, MessageMiddlewareBuilder } from "./message-middleware";
|
|
3
|
+
interface StorageType<T> {
|
|
4
|
+
get(): readonly T[] | SubscribableArray<T> | undefined;
|
|
5
|
+
set(vals: SubscribableArray<T>): void;
|
|
6
|
+
}
|
|
7
|
+
export declare function useGlobalSubscribableArray<T>(storage: StorageType<T>): readonly T[];
|
|
8
|
+
export declare function useLateMiddlewaresBuilder(storage: StorageType<MessageMiddlewareBuilder>): MessageMiddlewareBuilder;
|
|
9
|
+
export declare function useMiddleware(): MessageMiddleware;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom/extend-expect";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RichTextValue } from "@xapp/chat-widget-core";
|
|
2
|
+
import { Response } from "stentor-models";
|
|
3
|
+
export interface SearchState {
|
|
4
|
+
/**
|
|
5
|
+
* Current query in the input box
|
|
6
|
+
*/
|
|
7
|
+
readonly query: RichTextValue;
|
|
8
|
+
/**
|
|
9
|
+
* Current response back
|
|
10
|
+
*/
|
|
11
|
+
readonly response?: Response;
|
|
12
|
+
/**
|
|
13
|
+
* The query that was used to retreive the response
|
|
14
|
+
*/
|
|
15
|
+
readonly responseQuery?: string;
|
|
16
|
+
readonly active: boolean;
|
|
17
|
+
readonly minimized: boolean;
|
|
18
|
+
readonly autoGreeting: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
|
+
import { SearchState } from "./SearchState";
|
|
3
|
+
export interface SearchStoreProviderProps {
|
|
4
|
+
readonly initialState?: SearchState;
|
|
5
|
+
}
|
|
6
|
+
export declare const SearchStoreProvider: FC<PropsWithChildren<SearchStoreProviderProps>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NewSearchAction } from "./NewSearchAction";
|
|
2
|
+
import { SetModalStateAction } from "./SetModalStateAction";
|
|
3
|
+
import { SetQueryAction } from "./SetQueryAction";
|
|
4
|
+
import { SetResponseAction } from "./SetResponseAction";
|
|
5
|
+
import { ToggleModalStateAction } from "./ToggleModalStateAction";
|
|
6
|
+
export declare type SearchAction = SetQueryAction | SetResponseAction | SetModalStateAction | ToggleModalStateAction | NewSearchAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type SearchActionType = "set-query" | "set-response" | "set-modal-state" | "toggle-modal-state" | "new-search";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Response } from "stentor-models";
|
|
2
|
+
import { BaseSearchAction } from "./BaseSearchAction";
|
|
3
|
+
export interface SetResponseAction extends BaseSearchAction<"set-response"> {
|
|
4
|
+
/**
|
|
5
|
+
* The current response
|
|
6
|
+
*/
|
|
7
|
+
readonly response: Response;
|
|
8
|
+
/**
|
|
9
|
+
* The query associated with the response
|
|
10
|
+
*/
|
|
11
|
+
readonly query: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchAction } from "./SearchAction";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { SearchDispatch } from "./SearchDispatch";
|
|
2
|
+
export { SearchState } from "./SearchState";
|
|
3
|
+
export { SearchStore } from "./SearchStore";
|
|
4
|
+
export { SearchStoreProvider } from "./SearchStoreProvider";
|
|
5
|
+
export { useSearchDispatch } from "./useSearchDispatch";
|
|
6
|
+
export { useSearchState } from "./useSearchState";
|
|
7
|
+
export { useSearchStore } from "./useSearchStore";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RootReducer } from "./RootReducer";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import "./ThemeBuilderSection.scss";
|
|
3
|
+
export interface ThemeBuilderSectionProps {
|
|
4
|
+
readonly heading: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ThemeBuilderSection: FC<ThemeBuilderSectionProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ThemeBuilderSection } from "./ThemeBuilderSection";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import "./ThemeBuilderSectionLine.scss";
|
|
3
|
+
export interface ThemeBuilderSectionLineProps {
|
|
4
|
+
readonly label: string | undefined;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ThemeBuilderSectionLine: FC<ThemeBuilderSectionLineProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ThemeBuilderSectionLine } from "./ThemeBuilderSectionLine";
|
package/dist/stories/ThemeBuilder/WidgetBackgroundThemeBuilder/WidgetBackgroundThemeBuilder.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { WidgetBackgroundTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetBackgroundThemeBuilderProps {
|
|
4
|
+
readonly label?: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetBackgroundTheme | undefined;
|
|
7
|
+
readonly defaultValue: WidgetBackgroundTheme | undefined;
|
|
8
|
+
onChange(theme: WidgetBackgroundTheme): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetBackgroundThemeBuilderInner: FC<WidgetBackgroundThemeBuilderProps>;
|
|
11
|
+
export declare const WidgetBackgroundThemeBuilder: React.NamedExoticComponent<WidgetBackgroundThemeBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetBackgroundThemeBuilder } from "./WidgetBackgroundThemeBuilder";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dispatch, FC, SetStateAction } from "react";
|
|
2
|
+
export interface WidgetBorderRadiusPickerProps {
|
|
3
|
+
readonly label?: string;
|
|
4
|
+
readonly path: string;
|
|
5
|
+
readonly value: string | undefined;
|
|
6
|
+
readonly defaultValue: string | undefined;
|
|
7
|
+
readonly onChange: Dispatch<SetStateAction<string>>;
|
|
8
|
+
}
|
|
9
|
+
export declare const WidgetBorderRadiusPicker: FC<WidgetBorderRadiusPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetBorderRadiusPicker } from "./WidgetBorderRadiusPicker";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { WidgetBorderTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetBorderThemeBuilderProps {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetBorderTheme | undefined;
|
|
7
|
+
readonly noRadius?: boolean;
|
|
8
|
+
readonly defaultValue: WidgetBorderTheme | undefined;
|
|
9
|
+
readonly onChange: Dispatch<SetStateAction<WidgetBorderTheme>>;
|
|
10
|
+
}
|
|
11
|
+
export declare const WidgetBorderThemeBuilder: React.NamedExoticComponent<WidgetBorderThemeBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetBorderThemeBuilder } from "./WidgetBorderThemeBuilder";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dispatch, FC, SetStateAction } from "react";
|
|
2
|
+
export interface WidgetBorderWidthPickerProps {
|
|
3
|
+
readonly label?: string;
|
|
4
|
+
readonly path: string;
|
|
5
|
+
readonly value: string | undefined;
|
|
6
|
+
readonly defaultValue: string | undefined;
|
|
7
|
+
readonly onChange: Dispatch<SetStateAction<string>>;
|
|
8
|
+
}
|
|
9
|
+
export declare const WidgetBorderWidthPicker: FC<WidgetBorderWidthPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetBorderWidthPicker } from "./WidgetBorderWidthPicker";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Dispatch, FC, SetStateAction } from "react";
|
|
2
|
+
import { WidgetCardTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetCardThemeBuilderProps {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetCardTheme | undefined;
|
|
7
|
+
readonly defaultValue: WidgetCardTheme | undefined;
|
|
8
|
+
readonly onChange: Dispatch<SetStateAction<WidgetCardTheme>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetCardThemeBuilder: FC<WidgetCardThemeBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetCardThemeBuilder } from "./WidgetCardThemeBuilder";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Dispatch, FC, SetStateAction } from "react";
|
|
2
|
+
import { WidgetCarouselTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetCarouselThemeBuilderProps {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetCarouselTheme | undefined;
|
|
7
|
+
readonly defaultValue: WidgetCarouselTheme | undefined;
|
|
8
|
+
readonly onChange: Dispatch<SetStateAction<WidgetCarouselTheme>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetCarouselThemeBuilder: FC<WidgetCarouselThemeBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetCarouselThemeBuilder } from "./WidgetCarouselThemeBuilder";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { WidgetValuePickerChildrenProps } from "../WidgetValuePicker";
|
|
3
|
+
import "./WidgetColorPicker.scss";
|
|
4
|
+
export interface WidgetColorPickerProps {
|
|
5
|
+
readonly label?: string;
|
|
6
|
+
readonly path: string;
|
|
7
|
+
readonly value: string | undefined;
|
|
8
|
+
readonly defaultValue: string | undefined;
|
|
9
|
+
onChange(value: string): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const WidgetColorPickerRaw: FC<WidgetValuePickerChildrenProps<string>>;
|
|
12
|
+
export declare const WidgetColorPicker: React.NamedExoticComponent<WidgetColorPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetColorPicker } from "./WidgetColorPicker";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { WidgetValuePickerChildrenProps } from "../WidgetValuePicker";
|
|
3
|
+
import "./WidgetFontFamilyPicker.scss";
|
|
4
|
+
export interface WidgetFontFamilyPickerProps {
|
|
5
|
+
readonly label?: string;
|
|
6
|
+
readonly path: string;
|
|
7
|
+
readonly value: string | undefined;
|
|
8
|
+
readonly defaultValue: string | undefined;
|
|
9
|
+
onChange(value: string): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const WidgetFontFamilyPickerRaw: FC<WidgetValuePickerChildrenProps<string>>;
|
|
12
|
+
export declare const WidgetFontFamilyPicker: FC<WidgetFontFamilyPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetFontFamilyPicker } from "./WidgetFontFamilyPicker";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export interface WidgetFontSizePickerProps {
|
|
3
|
+
readonly label?: string;
|
|
4
|
+
readonly path: string;
|
|
5
|
+
readonly value: string | undefined;
|
|
6
|
+
readonly defaultValue: string | undefined;
|
|
7
|
+
onChange(value: string): void;
|
|
8
|
+
}
|
|
9
|
+
export declare const WidgetFontSizePicker: FC<WidgetFontSizePickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetFontSizePicker } from "./WidgetFontSizePicker";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { WidgetValuePickerChildrenProps } from "../WidgetValuePicker";
|
|
3
|
+
import "./WidgetFontStylePicker.scss";
|
|
4
|
+
export interface WidgetFontStylePickerProps {
|
|
5
|
+
readonly label?: string;
|
|
6
|
+
readonly path: string;
|
|
7
|
+
readonly value: string | undefined;
|
|
8
|
+
readonly defaultValue: string | undefined;
|
|
9
|
+
onChange(value: string): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const WidgetFontStylePickerRaw: FC<WidgetValuePickerChildrenProps<string>>;
|
|
12
|
+
export declare const WidgetFontStylePicker: FC<WidgetFontStylePickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetFontStylePicker } from "./WidgetFontStylePicker";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { WidgetValuePickerChildrenProps } from "../WidgetValuePicker";
|
|
3
|
+
import "./WidgetFontWeightPicker.scss";
|
|
4
|
+
export interface WidgetFontWeightPickerProps {
|
|
5
|
+
readonly label?: string;
|
|
6
|
+
readonly path: string;
|
|
7
|
+
readonly value: string | undefined;
|
|
8
|
+
readonly defaultValue: string | undefined;
|
|
9
|
+
onChange(value: string): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const WidgetFontWeightPickerRaw: FC<WidgetValuePickerChildrenProps<string>>;
|
|
12
|
+
export declare const WidgetFontWeightPicker: FC<WidgetFontWeightPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetFontWeightPicker } from "./WidgetFontWeightPicker";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { WidgetValuePickerChildrenProps } from "../WidgetValuePicker";
|
|
3
|
+
import "./WidgetLengthPicker.scss";
|
|
4
|
+
export interface WidgetLengthPickerProps {
|
|
5
|
+
readonly value: string | undefined;
|
|
6
|
+
readonly defaultValue: string | undefined;
|
|
7
|
+
readonly required?: boolean;
|
|
8
|
+
onChange(value: string): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetLengthPickerRaw: FC<WidgetValuePickerChildrenProps<string>>;
|
|
11
|
+
export declare const WidgetLengthPicker: FC<WidgetLengthPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetLengthPicker } from "./WidgetLengthPicker";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface WidgetLengthPickerLineProps {
|
|
3
|
+
readonly label?: string;
|
|
4
|
+
readonly path: string;
|
|
5
|
+
readonly value: string | undefined;
|
|
6
|
+
readonly defaultValue: string | undefined;
|
|
7
|
+
readonly required?: boolean;
|
|
8
|
+
onChange(value: string): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetLengthPickerLine: React.NamedExoticComponent<WidgetLengthPickerLineProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetLengthPickerLine } from "./WidgetLengthPickerLine";
|
package/dist/stories/ThemeBuilder/WidgetLinkBlockThemeBuilder/WidgetLinkBlockThemeBuilder.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { WidgetLinkBlockTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetLinkBlockThemeBuilderProps {
|
|
4
|
+
readonly label?: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetLinkBlockTheme | undefined;
|
|
7
|
+
readonly defaultValue: WidgetLinkBlockTheme | undefined;
|
|
8
|
+
readonly onChange: Dispatch<SetStateAction<WidgetLinkBlockTheme>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetLinkBlockThemeBuilder: React.NamedExoticComponent<WidgetLinkBlockThemeBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetLinkBlockThemeBuilder } from "./WidgetLinkBlockThemeBuilder";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { WidgetLinkTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetLinkThemeBuilderProps {
|
|
4
|
+
readonly label?: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetLinkTheme | undefined;
|
|
7
|
+
readonly defaultValue: WidgetLinkTheme | undefined;
|
|
8
|
+
readonly onChange: Dispatch<SetStateAction<WidgetLinkTheme>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetLinkThemeBuilder: React.NamedExoticComponent<WidgetLinkThemeBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetLinkThemeBuilder } from "./WidgetLinkThemeBuilder";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Dispatch, FC, SetStateAction } from "react";
|
|
2
|
+
import { WidgetListTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetListThemeBuilderProps {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetListTheme | undefined;
|
|
7
|
+
readonly defaultValue: WidgetListTheme | undefined;
|
|
8
|
+
readonly onChange: Dispatch<SetStateAction<WidgetListTheme>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetListThemeBuilder: FC<WidgetListThemeBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetListThemeBuilder } from "./WidgetListThemeBuilder";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { WidgetMarginTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetMarginPickerProps {
|
|
4
|
+
readonly label?: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetMarginTheme | undefined;
|
|
7
|
+
readonly defaultValue: WidgetMarginTheme | undefined;
|
|
8
|
+
readonly onChange: Dispatch<SetStateAction<WidgetMarginTheme>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetMarginPicker: React.NamedExoticComponent<WidgetMarginPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetMarginPicker } from "./WidgetMarginPicker";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { WidgetPaddingTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetPaddingPickerProps {
|
|
4
|
+
readonly label?: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetPaddingTheme | undefined;
|
|
7
|
+
readonly defaultValue: WidgetPaddingTheme | undefined;
|
|
8
|
+
readonly onChange: Dispatch<SetStateAction<WidgetPaddingTheme>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetPaddingPicker: React.NamedExoticComponent<WidgetPaddingPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetPaddingPicker } from "./WidgetPaddingPicker";
|
package/dist/stories/ThemeBuilder/WidgetTextBlockThemeBuilder/WidgetTextBlockThemeBuilder.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { WidgetTextBlockTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetTextBlockThemeBuilderProps {
|
|
4
|
+
readonly label?: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetTextBlockTheme | undefined;
|
|
7
|
+
readonly defaultValue: WidgetTextBlockTheme | undefined;
|
|
8
|
+
readonly onChange: Dispatch<SetStateAction<WidgetTextBlockTheme>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetTextBlockThemeBuilder: React.NamedExoticComponent<WidgetTextBlockThemeBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetTextBlockThemeBuilder } from "./WidgetTextBlockThemeBuilder";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { WidgetTextTheme } from "../../../config/theme";
|
|
3
|
+
export interface WidgetTextThemeBuilderProps {
|
|
4
|
+
readonly label?: string;
|
|
5
|
+
readonly path: string;
|
|
6
|
+
readonly value: WidgetTextTheme | undefined;
|
|
7
|
+
readonly defaultValue: WidgetTextTheme | undefined;
|
|
8
|
+
readonly onChange: Dispatch<SetStateAction<WidgetTextTheme>>;
|
|
9
|
+
}
|
|
10
|
+
export declare const WidgetTextThemeBuilder: React.NamedExoticComponent<WidgetTextThemeBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetTextThemeBuilder } from "./WidgetTextThemeBuilder";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Dispatch, FC, SetStateAction } from "react";
|
|
2
|
+
import { SearchWidgetTheme } from "../../../config";
|
|
3
|
+
export interface WidgetThemeBuilderProps {
|
|
4
|
+
readonly theme: SearchWidgetTheme;
|
|
5
|
+
readonly defaultTheme: SearchWidgetTheme;
|
|
6
|
+
readonly onChange: Dispatch<SetStateAction<SearchWidgetTheme>>;
|
|
7
|
+
}
|
|
8
|
+
export declare const WidgetThemeBuilder: FC<WidgetThemeBuilderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetThemeBuilder } from "./WidgetThemeBuilder";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import "./WidgetValuePicker.scss";
|
|
3
|
+
export interface WidgetValuePickerChildrenProps<T> {
|
|
4
|
+
readonly value: T | undefined;
|
|
5
|
+
readonly override: boolean;
|
|
6
|
+
readonly required: boolean;
|
|
7
|
+
onChange(value: T): void;
|
|
8
|
+
}
|
|
9
|
+
export interface WidgetValuePickerProps<T> {
|
|
10
|
+
readonly value: T | undefined;
|
|
11
|
+
readonly defaultValue: T | undefined;
|
|
12
|
+
readonly required?: boolean;
|
|
13
|
+
readonly children: FC<WidgetValuePickerChildrenProps<T>>;
|
|
14
|
+
onChange(value: T | undefined): void;
|
|
15
|
+
}
|
|
16
|
+
export declare function WidgetValuePicker<T>(props: WidgetValuePickerProps<T>): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WidgetValuePicker, WidgetValuePickerChildrenProps } from "./WidgetValuePicker";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SuggestionsItemData, SuggestionsGroupData } from "@xapp/chat-widget-core";
|
|
2
|
+
export declare const SearchResultSearchItemData: SuggestionsItemData;
|
|
3
|
+
export declare const SearchResultGroupData: SuggestionsGroupData;
|
|
4
|
+
export declare const SearchResultGroupsData: SuggestionsGroupData[];
|