@asgard-js/react 0.1.9-canary.3 → 0.1.9-canary.4

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 (66) hide show
  1. package/README.md +10 -17
  2. package/dist/components/chatbot/api-key-input/api-key-input.d.ts.map +1 -1
  3. package/dist/components/chatbot/chatbot-body/chatbot-body.d.ts.map +1 -1
  4. package/dist/components/chatbot/chatbot-body/conversation-message-renderer.d.ts.map +1 -1
  5. package/dist/components/chatbot/chatbot-container/chatbot-container.d.ts.map +1 -1
  6. package/dist/components/chatbot/chatbot-container/chatbot-full-screen-container.d.ts.map +1 -1
  7. package/dist/components/chatbot/chatbot-footer/chatbot-footer.d.ts.map +1 -1
  8. package/dist/components/chatbot/chatbot-footer/speech-input-button.d.ts.map +1 -1
  9. package/dist/components/chatbot/chatbot-header/chatbot-header.d.ts.map +1 -1
  10. package/dist/components/chatbot/chatbot.d.ts.map +1 -1
  11. package/dist/components/templates/avatar/avatar.d.ts.map +1 -1
  12. package/dist/components/templates/button-template/button-template.d.ts.map +1 -1
  13. package/dist/components/templates/button-template/card.d.ts.map +1 -1
  14. package/dist/components/templates/carousel-template/carousel-template.d.ts.map +1 -1
  15. package/dist/components/templates/chart-template/chart-template.d.ts.map +1 -1
  16. package/dist/components/templates/hint-template/hint-template.d.ts.map +1 -1
  17. package/dist/components/templates/image-template/image-template.d.ts.map +1 -1
  18. package/dist/components/templates/index.d.ts +0 -3
  19. package/dist/components/templates/index.d.ts.map +1 -1
  20. package/dist/components/templates/quick-replies/quick-replies.d.ts.map +1 -1
  21. package/dist/components/templates/template-box/template-box-content.d.ts.map +1 -1
  22. package/dist/components/templates/template-box/template-box.d.ts.map +1 -1
  23. package/dist/components/templates/text-template/bot-typing-box.d.ts.map +1 -1
  24. package/dist/components/templates/text-template/bot-typing-placeholder.d.ts.map +1 -1
  25. package/dist/components/templates/text-template/streamdown-client.d.ts.map +1 -1
  26. package/dist/components/templates/text-template/streamdown-wrapper.d.ts.map +1 -1
  27. package/dist/components/templates/text-template/text-template.d.ts.map +1 -1
  28. package/dist/components/templates/time/time.d.ts.map +1 -1
  29. package/dist/components/templates/user-image-template/user-image-template.d.ts.map +1 -1
  30. package/dist/context/asgard-app-initialization-context.d.ts.map +1 -1
  31. package/dist/context/asgard-service-context.d.ts.map +1 -1
  32. package/dist/context/asgard-template-context.d.ts.map +1 -1
  33. package/dist/context/asgard-theme-context.d.ts.map +1 -1
  34. package/dist/{export-conversation-DPm7JZ0B.js → export-conversation-CsLJz9GW.js} +1 -3
  35. package/dist/hooks/use-asgard-service-client.d.ts.map +1 -1
  36. package/dist/hooks/use-channel.d.ts.map +1 -1
  37. package/dist/hooks/use-debounce.d.ts.map +1 -1
  38. package/dist/hooks/use-is-at-bottom.d.ts.map +1 -1
  39. package/dist/hooks/use-is-on-screen-keyboard-open.d.ts.map +1 -1
  40. package/dist/hooks/use-prevent-over-scrolling.d.ts.map +1 -1
  41. package/dist/hooks/use-update-vh.d.ts.map +1 -1
  42. package/dist/hooks/use-viewport-size.d.ts.map +1 -1
  43. package/dist/index.css +1 -1
  44. package/dist/index.js +10967 -11538
  45. package/dist/models/bot-provider.d.ts.map +1 -1
  46. package/dist/utils/deep-merge.d.ts.map +1 -1
  47. package/dist/utils/export-conversation.d.ts.map +1 -1
  48. package/dist/utils/extractors.d.ts.map +1 -1
  49. package/dist/utils/file-validation.d.ts.map +1 -1
  50. package/dist/utils/is.d.ts.map +1 -1
  51. package/dist/utils/uri-validation.d.ts.map +1 -1
  52. package/package.json +3 -3
  53. package/dist/components/templates/audio-template/audio-template.d.ts +0 -9
  54. package/dist/components/templates/audio-template/audio-template.d.ts.map +0 -1
  55. package/dist/components/templates/audio-template/index.d.ts +0 -2
  56. package/dist/components/templates/audio-template/index.d.ts.map +0 -1
  57. package/dist/components/templates/location-template/index.d.ts +0 -2
  58. package/dist/components/templates/location-template/index.d.ts.map +0 -1
  59. package/dist/components/templates/location-template/location-card.d.ts +0 -9
  60. package/dist/components/templates/location-template/location-card.d.ts.map +0 -1
  61. package/dist/components/templates/location-template/location-template.d.ts +0 -9
  62. package/dist/components/templates/location-template/location-template.d.ts.map +0 -1
  63. package/dist/components/templates/video-template/index.d.ts +0 -2
  64. package/dist/components/templates/video-template/index.d.ts.map +0 -1
  65. package/dist/components/templates/video-template/video-template.d.ts +0 -9
  66. package/dist/components/templates/video-template/video-template.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"bot-provider.d.ts","sourceRoot":"","sources":["../../src/models/bot-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,aAAa,EAAE,KAAK,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAClC,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC,CAAC;CACJ,CAAC;AAiCF,eAAO,MAAM,oBAAoB,WACvB,YAAY,KACnB;IACD,4BAA4B,EAAE,MAAM,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACzE,cAAc,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAiDxD,CAAC"}
1
+ {"version":3,"file":"bot-provider.d.ts","sourceRoot":"","sources":["../../src/models/bot-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,aAAa,EAAE,KAAK,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAClC,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC,CAAC;CACJ,CAAC;AAgCF,eAAO,MAAM,oBAAoB,WACvB,YAAY,KACnB;IACD,4BAA4B,EAAE,MAAM,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACzE,cAAc,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAiDxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"deep-merge.d.ts","sourceRoot":"","sources":["../../src/utils/deep-merge.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEvE;AAED,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5F,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,CAAC,GACR,CAAC,GAAG,CAAC,CAkBP"}
1
+ {"version":3,"file":"deep-merge.d.ts","sourceRoot":"","sources":["../../src/utils/deep-merge.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEvE;AAED,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5F,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,CAAC,GACR,CAAC,GAAG,CAAC,CAoBP"}
@@ -1 +1 @@
1
- {"version":3,"file":"export-conversation.d.ts","sourceRoot":"","sources":["../../src/utils/export-conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,UAAU,aAAa;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAC1C,OAAO,CAAC,EAAE,aAAa,GACtB,MAAM,CAiFR;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CA2BzG"}
1
+ {"version":3,"file":"export-conversation.d.ts","sourceRoot":"","sources":["../../src/utils/export-conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,UAAU,aAAa;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAC1C,OAAO,CAAC,EAAE,aAAa,GACtB,MAAM,CA+ER;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CA+BzG"}
@@ -1 +1 @@
1
- {"version":3,"file":"extractors.d.ts","sourceRoot":"","sources":["../../src/utils/extractors.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,EAAE,CAmBnD"}
1
+ {"version":3,"file":"extractors.d.ts","sourceRoot":"","sources":["../../src/utils/extractors.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,EAAE,CAkBnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"file-validation.d.ts","sourceRoot":"","sources":["../../src/utils/file-validation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,UAMjC,CAAC;AAEF,eAAO,MAAM,aAAa,QAAmB,CAAC;AAE9C,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,oBAAoB,CAwBlE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,EAAE,GAAG;IAC5D,UAAU,EAAE,IAAI,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAgBA"}
1
+ {"version":3,"file":"file-validation.d.ts","sourceRoot":"","sources":["../../src/utils/file-validation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,UAAsE,CAAC;AAEzG,eAAO,MAAM,aAAa,QAAmB,CAAC;AAE9C,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,oBAAoB,CAsBlE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,EAAE,GAAG;IAC5D,UAAU,EAAE,IAAI,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAgBA"}
@@ -1 +1 @@
1
- {"version":3,"file":"is.d.ts","sourceRoot":"","sources":["../../src/utils/is.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAiEvD"}
1
+ {"version":3,"file":"is.d.ts","sourceRoot":"","sources":["../../src/utils/is.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CA4DvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"uri-validation.d.ts","sourceRoot":"","sources":["../../src/utils/uri-validation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAuBH;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAgDlE;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC9B,MAAM,CAAC,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,GAAG,IAAI,CASf"}
1
+ {"version":3,"file":"uri-validation.d.ts","sourceRoot":"","sources":["../../src/utils/uri-validation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAuBH;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAgDlE;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAShH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgard-js/react",
3
- "version": "0.1.9-canary.3",
3
+ "version": "0.1.9-canary.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,7 +30,7 @@
30
30
  "clsx": "^2.1.1",
31
31
  "dompurify": "^3.2.5",
32
32
  "react-vega": "^8.0.0",
33
- "streamdown": "^1.3.0",
33
+ "streamdown": "^1.6.8",
34
34
  "vega": "^6.1.2",
35
35
  "vega-embed": "^7.0.2",
36
36
  "vega-lite": "^6.1.0"
@@ -48,7 +48,7 @@
48
48
  "vitest": "^1.6.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@asgard-js/core": "^0.1.9-canary.3",
51
+ "@asgard-js/core": "^0.1.9-canary.4",
52
52
  "react": "^18.0.0",
53
53
  "react-dom": "^18.0.0"
54
54
  },
@@ -1,9 +0,0 @@
1
- import { ConversationBotMessage } from '../../../../../core/src/index.ts';
2
- import { ReactNode } from 'react';
3
-
4
- interface AudioTemplateProps {
5
- message: ConversationBotMessage;
6
- }
7
- export declare function AudioTemplate(props: AudioTemplateProps): ReactNode;
8
- export {};
9
- //# sourceMappingURL=audio-template.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"audio-template.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/audio-template/audio-template.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,sBAAsB,EAAwB,MAAM,iBAAiB,CAAC;AAI/E,UAAU,kBAAkB;IAC1B,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CA2ClE"}
@@ -1,2 +0,0 @@
1
- export * from './audio-template';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/audio-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './location-template';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/location-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -1,9 +0,0 @@
1
- import { LocationMessageTemplate } from '../../../../../core/src/index.ts';
2
- import { ReactNode } from 'react';
3
-
4
- interface LocationCardProps {
5
- template: LocationMessageTemplate;
6
- }
7
- export declare function LocationCard(props: LocationCardProps): ReactNode;
8
- export {};
9
- //# sourceMappingURL=location-card.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"location-card.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/location-template/location-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAG1D,UAAU,iBAAiB;IACzB,QAAQ,EAAE,uBAAuB,CAAC;CACnC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,CA2ChE"}
@@ -1,9 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ConversationBotMessage } from '../../../../../core/src/index.ts';
3
-
4
- interface LocationTemplateProps {
5
- message: ConversationBotMessage;
6
- }
7
- export declare function LocationTemplate(props: LocationTemplateProps): ReactNode;
8
- export {};
9
- //# sourceMappingURL=location-template.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"location-template.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/location-template/location-template.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOlC,UAAU,qBAAqB;IAC7B,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,SAAS,CAyBxE"}
@@ -1,2 +0,0 @@
1
- export * from './video-template';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/video-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,9 +0,0 @@
1
- import { ConversationBotMessage } from '../../../../../core/src/index.ts';
2
- import { ReactNode } from 'react';
3
-
4
- interface VideoTemplateProps {
5
- message: ConversationBotMessage;
6
- }
7
- export declare function VideoTemplate(props: VideoTemplateProps): ReactNode;
8
- export {};
9
- //# sourceMappingURL=video-template.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"video-template.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/video-template/video-template.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAC;AAIxE,OAAO,EAAE,sBAAsB,EAAwB,MAAM,iBAAiB,CAAC;AAI/E,UAAU,kBAAkB;IAC1B,OAAO,EAAE,sBAAsB,CAAC;CACjC;AA0DD,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,CA8HlE"}