@nlxai/touchpoint-ui 1.2.3-alpha.2 → 1.2.4-alpha.1
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 +1371 -7
- package/index.html +30 -168
- package/lib/bidirectional/analyzePageForms.d.ts +5 -1
- package/lib/components/FeedbackComment.d.ts +6 -0
- package/lib/components/FullscreenVoice.d.ts +1 -0
- package/lib/components/Messages.d.ts +3 -0
- package/lib/components/Ripple.d.ts +4 -0
- package/lib/components/ui/Carousel.d.ts +18 -0
- package/lib/components/ui/CustomCard.d.ts +47 -0
- package/lib/components/ui/DateInput.d.ts +15 -1
- package/lib/components/ui/IconButton.d.ts +22 -2
- package/lib/components/ui/Icons.d.ts +2 -0
- package/lib/components/ui/MessageButton.d.ts +58 -0
- package/lib/components/ui/TextButton.d.ts +17 -0
- package/lib/components/ui/Typography.d.ts +19 -0
- package/lib/feedback.d.ts +40 -0
- package/lib/index.d.ts +26 -2
- package/lib/index.js +8395 -8070
- package/lib/index.umd.js +54 -54
- package/lib/interface.d.ts +153 -127
- package/package.json +11 -6
- package/typedoc.cjs +19 -6
package/lib/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { Carousel } from './components/ui/Carousel';
|
|
|
7
7
|
import { DateInput } from './components/ui/DateInput';
|
|
8
8
|
import { TouchpointConfiguration, TouchpointInstance } from './interface';
|
|
9
9
|
import * as Icons from "./components/ui/Icons";
|
|
10
|
-
export { analyzePageForms, type InteractiveElementInfo, type PageForms, type AccessibilityInformation, } from './bidirectional/analyzePageForms';
|
|
11
10
|
/**
|
|
12
11
|
* If you wish to build custom modalities using JSX, you will want to
|
|
13
12
|
*
|
|
@@ -17,23 +16,48 @@ export { analyzePageForms, type InteractiveElementInfo, type PageForms, type Acc
|
|
|
17
16
|
*
|
|
18
17
|
* instead of importing from "react" directly. This ensures that the custom modalities will
|
|
19
18
|
* be running in the same React context as the Touchpoint UI using the correct version of React.
|
|
19
|
+
* @category Modality components
|
|
20
20
|
*/
|
|
21
21
|
export { default as React } from 'react';
|
|
22
22
|
/**
|
|
23
23
|
* Package version
|
|
24
|
+
* @category Utilities
|
|
24
25
|
*/
|
|
25
26
|
export declare const version: string;
|
|
27
|
+
/**
|
|
28
|
+
* A tagged literal for creating reactive elements for custom modalities.
|
|
29
|
+
* It already knows about all Touchpoint UI components, so you can use them directly without the need to import them.
|
|
30
|
+
* Also very useful when using Touchpoint directly from CDN or in projects without a build step.
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* import { html, Icons } from '@nlx/touchpoint-ui';
|
|
34
|
+
*
|
|
35
|
+
* const MyCustomModality = ({data, conversationHandler}) =>
|
|
36
|
+
* html`<div style="display: flex; gap: 8px;">
|
|
37
|
+
* <IconButton label="Cancel" Icon=${Icons.Close} type="ghost" onClick=${cancel()} />
|
|
38
|
+
* <TextButton
|
|
39
|
+
* label="Submit"
|
|
40
|
+
* Icon=${Icons.ArrowForward}
|
|
41
|
+
* type="main"
|
|
42
|
+
* onClick=${() => conversationHandler.sendText('Button clicked!')}
|
|
43
|
+
* />
|
|
44
|
+
* </div>`;
|
|
45
|
+
* ```
|
|
46
|
+
* @category Modality components
|
|
47
|
+
*/
|
|
26
48
|
export declare const html: (strings: TemplateStringsArray, ...values: any[]) => unknown;
|
|
27
|
-
export { TextButton, IconButton, BaseText, SmallText, DateInput, Carousel, CustomCard, CustomCardRow, CustomCardImageRow, Icons, Ripple, };
|
|
28
49
|
export { type CustomCardProps, type CustomCardRowProps, } from './components/ui/CustomCard';
|
|
29
50
|
export { type DateInputProps } from './components/ui/DateInput';
|
|
30
51
|
export { type IconButtonProps, type IconButtonType, } from './components/ui/IconButton';
|
|
31
52
|
export { type TextButtonProps } from './components/ui/TextButton';
|
|
32
53
|
export type { WindowSize, ColorMode, ChoiceMessage, CustomModalityComponent, Theme, InitializeConversation, CustomLaunchButton, Input, InputField, PageState, BidirectionalContext, BidirectionalConfig, TouchpointConfiguration, BidirectionalCustomCommand, TouchpointInstance, } from './interface';
|
|
54
|
+
export { analyzePageForms, type InteractiveElementInfo, type PageForms, type AccessibilityInformation, } from './bidirectional/analyzePageForms';
|
|
33
55
|
/**
|
|
34
56
|
* Creates a new Touchpoint UI instance and appends it to the document body
|
|
35
57
|
* @param props - Configuration props for Touchpoint
|
|
36
58
|
* @returns A promise that resolves to a TouchpointInstance
|
|
59
|
+
* @category Basics
|
|
37
60
|
*/
|
|
38
61
|
export declare const create: (props: TouchpointConfiguration) => Promise<TouchpointInstance>;
|
|
39
62
|
export { Container as PreviewContainer } from './preview';
|
|
63
|
+
export { TextButton, IconButton, BaseText, SmallText, DateInput, Carousel, CustomCard, CustomCardRow, CustomCardImageRow, Icons, Ripple, };
|