@asgard-js/react 0.0.31 → 0.0.32-canary.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.
Files changed (146) hide show
  1. package/.babelrc +12 -0
  2. package/README.md +10 -12
  3. package/dist/components/chatbot/chatbot-body/conversation-message-renderer.d.ts +1 -1
  4. package/dist/components/chatbot/chatbot.d.ts +1 -1
  5. package/dist/components/templates/button-template/button-template.d.ts +1 -1
  6. package/dist/components/templates/button-template/card.d.ts +1 -1
  7. package/dist/components/templates/button-template/card.d.ts.map +1 -1
  8. package/dist/components/templates/carousel-template/carousel-template.d.ts +1 -1
  9. package/dist/components/templates/carousel-template/carousel-template.d.ts.map +1 -1
  10. package/dist/components/templates/chart-template/chart-template.d.ts +1 -1
  11. package/dist/components/templates/chart-template/chart-template.d.ts.map +1 -1
  12. package/dist/components/templates/hint-template/hint-template.d.ts +1 -1
  13. package/dist/components/templates/image-template/image-template.d.ts +1 -1
  14. package/dist/components/templates/image-template/image-template.d.ts.map +1 -1
  15. package/dist/components/templates/text-template/text-template.d.ts +1 -1
  16. package/dist/components/templates/text-template/use-react-markdown-renderer.d.ts.map +1 -1
  17. package/dist/context/asgard-app-initialization-context.d.ts +1 -1
  18. package/dist/context/asgard-service-context.d.ts +1 -1
  19. package/dist/context/asgard-template-context.d.ts +3 -3
  20. package/dist/context/asgard-template-context.d.ts.map +1 -1
  21. package/dist/hooks/use-asgard-service-client.d.ts +1 -1
  22. package/dist/hooks/use-channel.d.ts +4 -4
  23. package/dist/hooks/use-channel.d.ts.map +1 -1
  24. package/dist/index.js +46361 -9681
  25. package/dist/models/bot-provider.d.ts +1 -1
  26. package/dist/utils/deep-merge.d.ts +1 -1
  27. package/dist/utils/deep-merge.d.ts.map +1 -1
  28. package/eslint.config.cjs +12 -0
  29. package/package.json +9 -7
  30. package/src/components/chatbot/chatbot-body/chatbot-body.module.scss +13 -0
  31. package/src/components/chatbot/chatbot-body/chatbot-body.tsx +45 -0
  32. package/src/components/chatbot/chatbot-body/conversation-message-renderer.tsx +55 -0
  33. package/src/components/chatbot/chatbot-body/index.ts +1 -0
  34. package/src/components/chatbot/chatbot-container/chatbot-container.module.scss +41 -0
  35. package/src/components/chatbot/chatbot-container/chatbot-container.tsx +49 -0
  36. package/src/components/chatbot/chatbot-container/chatbot-full-screen-container.tsx +54 -0
  37. package/src/components/chatbot/chatbot-footer/chatbot-footer.module.scss +67 -0
  38. package/src/components/chatbot/chatbot-footer/chatbot-footer.tsx +140 -0
  39. package/src/components/chatbot/chatbot-footer/index.ts +1 -0
  40. package/src/components/chatbot/chatbot-footer/speech-input-button.tsx +132 -0
  41. package/src/components/chatbot/chatbot-header/chatbot-header.module.scss +48 -0
  42. package/src/components/chatbot/chatbot-header/chatbot-header.tsx +98 -0
  43. package/src/components/chatbot/chatbot-header/index.ts +1 -0
  44. package/src/components/chatbot/chatbot.spec.tsx +8 -0
  45. package/src/components/chatbot/chatbot.tsx +118 -0
  46. package/src/components/chatbot/profile-icon.tsx +26 -0
  47. package/src/components/index.ts +2 -0
  48. package/src/components/templates/avatar/avatar.module.scss +6 -0
  49. package/src/components/templates/avatar/avatar.tsx +28 -0
  50. package/src/components/templates/avatar/index.ts +1 -0
  51. package/src/components/templates/button-template/button-template.module.scss +0 -0
  52. package/src/components/templates/button-template/button-template.tsx +45 -0
  53. package/src/components/templates/button-template/card.module.scss +58 -0
  54. package/src/components/templates/button-template/card.spec.tsx +213 -0
  55. package/src/components/templates/button-template/card.tsx +123 -0
  56. package/src/components/templates/button-template/index.ts +1 -0
  57. package/src/components/templates/carousel-template/carousel-template.module.scss +15 -0
  58. package/src/components/templates/carousel-template/carousel-template.tsx +49 -0
  59. package/src/components/templates/carousel-template/index.ts +1 -0
  60. package/src/components/templates/chart-template/chart-template.module.scss +52 -0
  61. package/src/components/templates/chart-template/chart-template.tsx +75 -0
  62. package/src/components/templates/chart-template/index.ts +1 -0
  63. package/src/components/templates/hint-template/hint-template.module.scss +39 -0
  64. package/src/components/templates/hint-template/hint-template.tsx +71 -0
  65. package/src/components/templates/hint-template/index.ts +1 -0
  66. package/src/components/templates/image-template/image-template.module.scss +67 -0
  67. package/src/components/templates/image-template/image-template.tsx +58 -0
  68. package/src/components/templates/image-template/index.ts +1 -0
  69. package/src/components/templates/index.ts +10 -0
  70. package/src/components/templates/quick-replies/index.ts +1 -0
  71. package/src/components/templates/quick-replies/quick-replies.module.scss +16 -0
  72. package/src/components/templates/quick-replies/quick-replies.tsx +44 -0
  73. package/src/components/templates/template-box/index.ts +2 -0
  74. package/src/components/templates/template-box/template-box-content.module.scss +13 -0
  75. package/src/components/templates/template-box/template-box-content.tsx +30 -0
  76. package/src/components/templates/template-box/template-box.module.scss +19 -0
  77. package/src/components/templates/template-box/template-box.tsx +48 -0
  78. package/src/components/templates/text-template/bot-typing-box.tsx +81 -0
  79. package/src/components/templates/text-template/bot-typing-placeholder.tsx +28 -0
  80. package/src/components/templates/text-template/index.ts +3 -0
  81. package/src/components/templates/text-template/text-template.module.scss +131 -0
  82. package/src/components/templates/text-template/text-template.tsx +90 -0
  83. package/src/components/templates/text-template/use-react-markdown-renderer.spec.tsx +758 -0
  84. package/src/components/templates/text-template/use-react-markdown-renderer.tsx +266 -0
  85. package/src/components/templates/time/index.ts +1 -0
  86. package/src/components/templates/time/time.module.scss +6 -0
  87. package/src/components/templates/time/time.tsx +34 -0
  88. package/src/context/asgard-app-initialization-context.tsx +154 -0
  89. package/src/context/asgard-service-context.tsx +139 -0
  90. package/src/context/asgard-template-context.tsx +83 -0
  91. package/src/context/asgard-theme-context.tsx +401 -0
  92. package/src/context/index.ts +4 -0
  93. package/src/hooks/index.ts +11 -0
  94. package/src/hooks/use-asgard-service-client.ts +68 -0
  95. package/src/hooks/use-channel.ts +154 -0
  96. package/src/hooks/use-debounce.ts +18 -0
  97. package/src/hooks/use-deep-compare-memo.ts +19 -0
  98. package/src/hooks/use-is-on-screen-keyboard-open.ts +43 -0
  99. package/src/hooks/use-on-screen-keyboard-scroll-fix.ts +15 -0
  100. package/src/hooks/use-prevent-over-scrolling.ts +77 -0
  101. package/src/hooks/use-resize-observer.tsx +27 -0
  102. package/src/hooks/use-update-vh.ts +30 -0
  103. package/src/hooks/use-viewport-size.ts +51 -0
  104. package/src/icons/add_a_photo.svg +3 -0
  105. package/src/icons/bot.svg +14 -0
  106. package/src/icons/close.svg +3 -0
  107. package/src/icons/distance.svg +3 -0
  108. package/src/icons/mic.svg +3 -0
  109. package/src/icons/photo_library.svg +3 -0
  110. package/src/icons/profile.svg +28 -0
  111. package/src/icons/refresh.svg +3 -0
  112. package/src/icons/send.svg +3 -0
  113. package/src/icons/stop.svg +22 -0
  114. package/src/icons/volume_up.svg +3 -0
  115. package/src/index.ts +4 -0
  116. package/src/models/bot-provider.ts +108 -0
  117. package/src/styles/_index.scss +1 -0
  118. package/src/styles/_styles.scss +11 -0
  119. package/src/styles/colors/_colors.scss +10 -0
  120. package/src/styles/colors/_index.scss +1 -0
  121. package/src/styles/colors/_variables.scss +72 -0
  122. package/src/styles/palette/_index.scss +1 -0
  123. package/src/styles/palette/_palette.scss +42 -0
  124. package/src/styles/palette/_variables.scss +40 -0
  125. package/src/styles/radius/_index.scss +1 -0
  126. package/src/styles/radius/_radius.scss +8 -0
  127. package/src/styles/radius/_variables.scss +12 -0
  128. package/src/styles/spacing/_index.scss +1 -0
  129. package/src/styles/spacing/_spacing.scss +8 -0
  130. package/src/styles/spacing/_variables.scss +13 -0
  131. package/src/styles/utils/_index.scss +1 -0
  132. package/src/styles/utils/_map.scss +22 -0
  133. package/src/test-setup.ts +1 -0
  134. package/src/utils/deep-merge.ts +26 -0
  135. package/src/utils/extractors.ts +20 -0
  136. package/src/utils/format-time.ts +8 -0
  137. package/src/utils/index.ts +1 -0
  138. package/src/utils/is.ts +72 -0
  139. package/src/utils/selectors.ts +7 -0
  140. package/src/utils/uri-validation.spec.ts +208 -0
  141. package/src/utils/uri-validation.ts +103 -0
  142. package/tsconfig.json +16 -0
  143. package/tsconfig.lib.json +63 -0
  144. package/tsconfig.spec.json +36 -0
  145. package/tsconfig.tsbuildinfo +1 -0
  146. package/vite.config.ts +63 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.