@nlxai/touchpoint-ui 1.2.5 → 1.2.7-alpha.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.
Files changed (83) hide show
  1. package/.eslintrc.cjs +1 -1
  2. package/README.md +8 -0
  3. package/build/App.d.ts +20 -0
  4. package/build/ProviderStack.d.ts +10 -0
  5. package/build/assets/index-B9Yzt2if.js +233 -0
  6. package/build/assets/index-BbXI3y3Q.css +1 -0
  7. package/build/bidirectional/analyzePageForms.d.ts +35 -0
  8. package/build/bidirectional/automaticContext.d.ts +12 -0
  9. package/build/bidirectional/commandHandler.d.ts +5 -0
  10. package/build/bidirectional/debug.d.ts +1 -0
  11. package/build/components/ErrorMessage.d.ts +4 -0
  12. package/build/components/FeedbackComment.d.ts +6 -0
  13. package/build/components/FullscreenError.d.ts +2 -0
  14. package/build/components/FullscreenVoice.d.ts +32 -0
  15. package/build/components/Header.d.ts +20 -0
  16. package/build/components/Input.d.ts +14 -0
  17. package/build/components/Layout.d.ts +23 -0
  18. package/build/components/Messages.d.ts +33 -0
  19. package/build/components/Notice.d.ts +4 -0
  20. package/build/components/Ripple.d.ts +9 -0
  21. package/build/components/RiveAnimation.d.ts +4 -0
  22. package/build/components/SafeMarkdown.d.ts +4 -0
  23. package/build/components/Settings.d.ts +10 -0
  24. package/build/components/Theme.d.ts +4 -0
  25. package/build/components/VoiceMini.d.ts +13 -0
  26. package/build/components/VoiceModalities.d.ts +11 -0
  27. package/build/components/defaultModalities/DefaultCard.d.ts +3 -0
  28. package/build/components/defaultModalities/DefaultCarousel.d.ts +6 -0
  29. package/build/components/defaultModalities/DefaultDateInput.d.ts +5 -0
  30. package/build/components/defaultModalities/shared.d.ts +20 -0
  31. package/build/components/ui/Carousel.d.ts +26 -0
  32. package/build/components/ui/CustomCard.d.ts +101 -0
  33. package/build/components/ui/DateInput.d.ts +30 -0
  34. package/build/components/ui/IconButton.d.ts +68 -0
  35. package/build/components/ui/Icons.d.ts +63 -0
  36. package/build/components/ui/LaunchButton.d.ts +13 -0
  37. package/build/components/ui/LightDarkToggle.d.ts +47 -0
  38. package/build/components/ui/Loader.d.ts +7 -0
  39. package/build/components/ui/MessageButton.d.ts +58 -0
  40. package/build/components/ui/PicturesContainer.d.ts +9 -0
  41. package/build/components/ui/Radio.d.ts +14 -0
  42. package/build/components/ui/TextButton.d.ts +46 -0
  43. package/build/components/ui/Typography.d.ts +29 -0
  44. package/build/components/ui/ViewMediaModal.d.ts +8 -0
  45. package/build/design-system.d.ts +1 -0
  46. package/build/favicon.ico +0 -0
  47. package/build/feedback.d.ts +38 -0
  48. package/build/index.d.ts +63 -0
  49. package/build/index.html +13 -0
  50. package/build/interface.d.ts +569 -0
  51. package/build/mocks/MockText.d.ts +10 -0
  52. package/build/mocks/MockVoice.d.ts +10 -0
  53. package/build/mocks/MockVoiceMini.d.ts +8 -0
  54. package/build/mocks/shared.d.ts +5 -0
  55. package/build/preview.d.ts +10 -0
  56. package/build/types.d.ts +5 -0
  57. package/build/utils/useAppRoot.d.ts +3 -0
  58. package/build/utils/useCopy.d.ts +4 -0
  59. package/build/utils/useTailwindMediaQuery.d.ts +1 -0
  60. package/build/voice.d.ts +70 -0
  61. package/index.html +43 -47
  62. package/lib/ProviderStack.d.ts +0 -21
  63. package/lib/components/FullscreenVoice.d.ts +5 -10
  64. package/lib/components/Layout.d.ts +23 -0
  65. package/lib/components/VoiceModalities.d.ts +11 -0
  66. package/lib/components/defaultModalities/index.d.ts +2 -0
  67. package/lib/components/ui/Radio.d.ts +14 -0
  68. package/lib/design-system/LightDarkToggle.d.ts +50 -0
  69. package/lib/design-system/index.d.ts +1 -0
  70. package/lib/index.js +12483 -12412
  71. package/lib/index.umd.js +83 -83
  72. package/lib/interface.d.ts +4 -0
  73. package/lib/mocks/MockText.d.ts +10 -0
  74. package/lib/mocks/MockVoice.d.ts +10 -0
  75. package/lib/mocks/MockVoiceMini.d.ts +8 -0
  76. package/lib/mocks/shared.d.ts +5 -0
  77. package/package.json +6 -6
  78. package/vite.config.ts +61 -32
  79. package/docs/@nlxai/namespaces/Icons.md +0 -377
  80. package/docs/@nlxai/namespaces/React/README.md +0 -221390
  81. package/docs/@nlxai/namespaces/React/namespaces/JSX.md +0 -3050
  82. package/docs/README.md +0 -1394
  83. package/lib/design-system.d.ts +0 -0
package/.eslintrc.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /** @type {import('eslint').Linter.Config } */
2
2
  module.exports = {
3
3
  root: true,
4
- extends: ["nlx", "nlx/documentation"],
4
+ extends: ["@nlxai/eslint-config", "@nlxai/eslint-config/documentation"],
5
5
  };
package/README.md CHANGED
@@ -1398,6 +1398,14 @@ with this schema, so you are guaranteed type safe inputs to your handler.
1398
1398
 
1399
1399
  Should follow the JSONSchema specification.
1400
1400
 
1401
+ ##### input?
1402
+
1403
+ ```ts
1404
+ optional input: any;
1405
+ ```
1406
+
1407
+ Any additional input data that the LLM should have.
1408
+
1401
1409
  ##### handler()
1402
1410
 
1403
1411
  ```ts
package/build/App.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ import { ConversationHandler } from '@nlxai/core';
2
+ import { BidirectionalCustomCommand } from './interface';
3
+ import { NormalizedTouchpointConfiguration } from './types';
4
+ /**
5
+ * Main Touchpoint creation properties object
6
+ */
7
+ interface Props extends NormalizedTouchpointConfiguration {
8
+ embedded: boolean;
9
+ onClose: ((event: Event) => void) | null;
10
+ enableSettings: boolean;
11
+ enabled: boolean;
12
+ }
13
+ export interface AppRef {
14
+ setExpanded: (val: boolean) => void;
15
+ getExpanded: () => boolean;
16
+ getConversationHandler: () => ConversationHandler;
17
+ setCustomBidirectionalCommands: (commands: BidirectionalCustomCommand[]) => void;
18
+ }
19
+ declare const App: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<AppRef>>;
20
+ export default App;
@@ -0,0 +1,10 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { Copy, ColorMode, Theme } from './interface';
3
+ export declare const ProviderStack: FC<{
4
+ colorMode: ColorMode;
5
+ className?: string;
6
+ theme?: Partial<Theme>;
7
+ children?: ReactNode;
8
+ languageCode: string;
9
+ copy?: Partial<Copy>;
10
+ }>;