botframework-webchat 4.16.1-main.20240110.d642b89 → 4.16.1-main.20240119.3d09177

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 (101) hide show
  1. package/dist/webchat-es5.js +1 -1
  2. package/dist/webchat-minimal.js +1 -1
  3. package/dist/webchat.js +1 -1
  4. package/lib/AddFullBundle.js +9 -18
  5. package/lib/FullComposer.js +1 -13
  6. package/lib/FullReactWebChat.js +1 -12
  7. package/lib/adaptiveCards/AdaptiveCardsComposer.js +3 -13
  8. package/lib/adaptiveCards/AdaptiveCardsContext.js +1 -3
  9. package/lib/adaptiveCards/Attachment/AdaptiveCardAttachment.js +2 -8
  10. package/lib/adaptiveCards/Attachment/AdaptiveCardBuilder.js +1 -17
  11. package/lib/adaptiveCards/Attachment/AdaptiveCardContent.js +5 -20
  12. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/private/closest.js +1 -5
  13. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/private/findDOMNodeOwner.js +2 -7
  14. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/private/useAdaptiveCardModEffect.js +6 -28
  15. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/private/useLazyRef.js +1 -6
  16. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/private/usePrevious.js +2 -3
  17. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/private/useValueRef.js +1 -3
  18. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/useActionSetShouldNotBeMenuBarModEffect.js +1 -7
  19. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/useActionShouldBePushButtonModEffect.js +7 -21
  20. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/useActiveElementModEffect.js +4 -12
  21. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/useDisabledModEffect.js +4 -12
  22. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/usePersistValuesModEffect.js +5 -16
  23. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/useRoleModEffect.js +3 -7
  24. package/lib/adaptiveCards/Attachment/AdaptiveCardRenderer.js +82 -116
  25. package/lib/adaptiveCards/Attachment/AnimationCardAttachment.js +2 -8
  26. package/lib/adaptiveCards/Attachment/AnimationCardContent.js +10 -21
  27. package/lib/adaptiveCards/Attachment/AudioCardAttachment.js +3 -8
  28. package/lib/adaptiveCards/Attachment/AudioCardContent.js +13 -24
  29. package/lib/adaptiveCards/Attachment/CommonCard.js +9 -28
  30. package/lib/adaptiveCards/Attachment/HeroCardAttachment.js +2 -8
  31. package/lib/adaptiveCards/Attachment/HeroCardContent.js +9 -29
  32. package/lib/adaptiveCards/Attachment/OAuthCardAttachment.js +2 -8
  33. package/lib/adaptiveCards/Attachment/OAuthCardContent.js +9 -28
  34. package/lib/adaptiveCards/Attachment/ReceiptCardAttachment.js +2 -8
  35. package/lib/adaptiveCards/Attachment/ReceiptCardContent.js +37 -70
  36. package/lib/adaptiveCards/Attachment/SignInCardAttachment.js +2 -8
  37. package/lib/adaptiveCards/Attachment/SignInCardContent.js +5 -15
  38. package/lib/adaptiveCards/Attachment/ThumbnailCardAttachment.js +2 -8
  39. package/lib/adaptiveCards/Attachment/ThumbnailCardContent.js +22 -44
  40. package/lib/adaptiveCards/Attachment/VideoCardAttachment.js +3 -8
  41. package/lib/adaptiveCards/Attachment/VideoCardContent.js +9 -20
  42. package/lib/adaptiveCards/Attachment/private/renderAdaptiveCard.js +11 -21
  43. package/lib/adaptiveCards/AttachmentForScreenReader/AdaptiveCardAttachment.js +18 -37
  44. package/lib/adaptiveCards/AttachmentForScreenReader/RichCardAttachment.js +19 -25
  45. package/lib/adaptiveCards/DOMManipulationWithUndo/addEventListenerWithUndo.js +1 -5
  46. package/lib/adaptiveCards/DOMManipulationWithUndo/bunchUndos.js +1 -4
  47. package/lib/adaptiveCards/DOMManipulationWithUndo/durableAddClassWithUndo.js +3 -7
  48. package/lib/adaptiveCards/DOMManipulationWithUndo/durableDisableInputElementAccessiblyWithUndo.js +5 -18
  49. package/lib/adaptiveCards/DOMManipulationWithUndo/private/addClass.js +2 -3
  50. package/lib/adaptiveCards/DOMManipulationWithUndo/private/getAttributeOrFalse.js +1 -2
  51. package/lib/adaptiveCards/DOMManipulationWithUndo/private/noOp.js +1 -3
  52. package/lib/adaptiveCards/DOMManipulationWithUndo/private/setOrRemoveAttributeIfFalse.js +1 -2
  53. package/lib/adaptiveCards/DOMManipulationWithUndo/setOrRemoveAttributeIfFalseWithUndo.js +1 -9
  54. package/lib/adaptiveCards/Styles/StyleSet/AdaptiveCardRenderer.js +6 -6
  55. package/lib/adaptiveCards/Styles/StyleSet/AnimationCardAttachment.js +2 -2
  56. package/lib/adaptiveCards/Styles/StyleSet/AudioCardAttachment.js +3 -3
  57. package/lib/adaptiveCards/Styles/adaptiveCardHostConfig.js +7 -14
  58. package/lib/adaptiveCards/Styles/createAdaptiveCardsStyleSet.js +2 -12
  59. package/lib/adaptiveCards/createAdaptiveCardsAttachmentForScreenReaderMiddleware.js +3 -10
  60. package/lib/adaptiveCards/createAdaptiveCardsAttachmentMiddleware.js +1 -14
  61. package/lib/adaptiveCards/defaultStyleOptions.js +1 -1
  62. package/lib/adaptiveCards/hooks/internal/useAdaptiveCardsContext.js +1 -7
  63. package/lib/adaptiveCards/hooks/internal/useParseAdaptiveCardJSON.js +13 -33
  64. package/lib/adaptiveCards/hooks/internal/useUniqueId.js +2 -5
  65. package/lib/adaptiveCards/hooks/useAdaptiveCardsHostConfig.js +4 -13
  66. package/lib/adaptiveCards/hooks/useAdaptiveCardsPackage.js +2 -6
  67. package/lib/adaptiveCards/normalizeStyleOptions.js +1 -7
  68. package/lib/addVersion.js +4 -9
  69. package/lib/createBrowserWebSpeechPonyfillFactory.js +1 -4
  70. package/lib/createCognitiveServicesSpeechServicesPonyfillFactory.js +24 -34
  71. package/lib/createDirectLine.js +14 -16
  72. package/lib/createDirectLineAppServiceExtension.js +4 -6
  73. package/lib/createDirectLineSpeechAdapters.js +16 -23
  74. package/lib/createFullStyleSet.js +2 -8
  75. package/lib/fullBundleDefaultStyleOptions.js +1 -9
  76. package/lib/hooks/useStyleOptions.js +3 -8
  77. package/lib/hooks/useStyleSet.js +3 -9
  78. package/lib/index-es5.js +3 -17
  79. package/lib/index-minimal.js +2 -22
  80. package/lib/index.js +2 -43
  81. package/lib/markdown/markdownItPlugins/ariaLabel.js +15 -18
  82. package/lib/markdown/markdownItPlugins/betterLink.js +15 -32
  83. package/lib/markdown/markdownItPlugins/respectCRLF.js +3 -4
  84. package/lib/markdown/private/iterateLinkDefinitions.js +1 -25
  85. package/lib/markdown/renderMarkdown.js +9 -25
  86. package/lib/polyfill.js +1 -22
  87. package/lib/renderWebChat.js +1 -5
  88. package/lib/speech/CustomAudioInputStream.js +65 -104
  89. package/lib/speech/bytesPerSample.js +1 -2
  90. package/lib/speech/createAudioConfig.js +11 -30
  91. package/lib/speech/createAudioContext.js +6 -5
  92. package/lib/speech/createMicrophoneAudioConfigAndAudioContext.js +25 -37
  93. package/lib/speech/getUserMedia.js +5 -8
  94. package/lib/useComposerProps.js +7 -14
  95. package/package.json +32 -19
  96. package/src/adaptiveCards/createAdaptiveCardsAttachmentForScreenReaderMiddleware.tsx +2 -2
  97. package/src/__tests__/createDirectLine.spec.js +0 -32
  98. package/src/__tests__/versionTag.es5.spec.js +0 -16
  99. package/src/__tests__/versionTag.full.spec.js +0 -16
  100. package/src/__tests__/versionTag.minimal.spec.js +0 -16
  101. package/src/adaptiveCards/Styles/createAdaptiveCardsStyleSet.spec.js +0 -13
@@ -1,16 +0,0 @@
1
- /** @jest-environment jsdom */
2
- /* globals process */
3
-
4
- process.env.npm_package_version = '0.0.0-test';
5
-
6
- describe('loading Web Chat', () => {
7
- test('of variant "es5" should set META tag', () => {
8
- require('../index-es5');
9
-
10
- expect(document.querySelector('head > meta[name="botframework-webchat:bundle:variant"]').content).toBe('full-es5');
11
-
12
- expect(document.querySelector('head > meta[name="botframework-webchat:bundle:version"]').content).toBe(
13
- '0.0.0-test'
14
- );
15
- });
16
- });
@@ -1,16 +0,0 @@
1
- /** @jest-environment jsdom */
2
- /* globals process */
3
-
4
- process.env.npm_package_version = '0.0.0-test';
5
-
6
- describe('loading Web Chat', () => {
7
- test('of variant "full" should set META tag', () => {
8
- require('../index');
9
-
10
- expect(document.querySelector('head > meta[name="botframework-webchat:bundle:variant"]').content).toBe('full');
11
-
12
- expect(document.querySelector('head > meta[name="botframework-webchat:bundle:version"]').content).toBe(
13
- '0.0.0-test'
14
- );
15
- });
16
- });
@@ -1,16 +0,0 @@
1
- /** @jest-environment jsdom */
2
- /* globals process */
3
-
4
- process.env.npm_package_version = '0.0.0-test';
5
-
6
- describe('loading Web Chat', () => {
7
- test('of variant "minimal" should set META tag', () => {
8
- require('../index-minimal');
9
-
10
- expect(document.querySelector('head > meta[name="botframework-webchat:bundle:variant"]').content).toBe('minimal');
11
-
12
- expect(document.querySelector('head > meta[name="botframework-webchat:bundle:version"]').content).toBe(
13
- '0.0.0-test'
14
- );
15
- });
16
- });
@@ -1,13 +0,0 @@
1
- /** @jest-environment jsdom */
2
-
3
- import createStyleSet from './createAdaptiveCardsStyleSet';
4
-
5
- describe('createAdaptiveCardsStyleSet', () => {
6
- it('should contain Adaptive Card styles in createStyleSet', () => {
7
- const { adaptiveCardRenderer, animationCardAttachment, audioCardAttachment } = createStyleSet();
8
-
9
- expect(adaptiveCardRenderer).not.toBeFalsy();
10
- expect(animationCardAttachment).not.toBeFalsy();
11
- expect(audioCardAttachment).not.toBeFalsy();
12
- });
13
- });