botframework-webchat 4.14.0 → 4.15.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/.eslintrc.yml +5 -109
- package/.prettierrc.yml +1 -1
- package/README.md +1 -1
- package/babel.config.json +2 -2
- package/babel.sanitize-html.config.json +10 -0
- package/lib/AddFullBundle.d.ts.map +1 -1
- package/lib/AddFullBundle.js +1 -2
- package/lib/FullComposer.js +2 -2
- package/lib/FullReactWebChat.js +1 -1
- package/lib/adaptiveCards/AdaptiveCardsComposer.d.ts.map +1 -1
- package/lib/adaptiveCards/AdaptiveCardsComposer.js +6 -2
- package/lib/adaptiveCards/AdaptiveCardsContext.d.ts +0 -1
- package/lib/adaptiveCards/AdaptiveCardsContext.d.ts.map +1 -1
- package/lib/adaptiveCards/Attachment/AdaptiveCardBuilder.d.ts +7 -7
- package/lib/adaptiveCards/Attachment/AdaptiveCardBuilder.d.ts.map +1 -1
- package/lib/adaptiveCards/Attachment/AdaptiveCardBuilder.js +10 -3
- package/lib/adaptiveCards/Attachment/AdaptiveCardContent.js +8 -4
- package/lib/adaptiveCards/Attachment/AdaptiveCardRenderer.d.ts +9 -22
- package/lib/adaptiveCards/Attachment/AdaptiveCardRenderer.d.ts.map +1 -1
- package/lib/adaptiveCards/Attachment/AdaptiveCardRenderer.js +175 -95
- package/lib/adaptiveCards/Attachment/AnimationCardContent.js +1 -1
- package/lib/adaptiveCards/Attachment/AudioCardContent.js +1 -1
- package/lib/adaptiveCards/Attachment/CommonCard.js +7 -3
- package/lib/adaptiveCards/Attachment/HeroCardContent.js +7 -3
- package/lib/adaptiveCards/Attachment/OAuthCardContent.js +7 -3
- package/lib/adaptiveCards/Attachment/ReceiptCardContent.js +7 -3
- package/lib/adaptiveCards/Attachment/SignInCardContent.js +1 -1
- package/lib/adaptiveCards/Attachment/ThumbnailCardContent.js +7 -3
- package/lib/adaptiveCards/Attachment/VideoCardContent.js +1 -1
- package/lib/adaptiveCards/AttachmentForScreenReader/AdaptiveCardAttachment.js +7 -3
- package/lib/adaptiveCards/AttachmentForScreenReader/RichCardAttachment.js +1 -1
- package/lib/adaptiveCards/Styles/StyleSet/AdaptiveCardRenderer.d.ts +3 -0
- package/lib/adaptiveCards/Styles/StyleSet/AdaptiveCardRenderer.d.ts.map +1 -1
- package/lib/adaptiveCards/Styles/StyleSet/AdaptiveCardRenderer.js +8 -1
- package/lib/adaptiveCards/Styles/adaptiveCardHostConfig.js +2 -2
- package/lib/adaptiveCards/Styles/createAdaptiveCardsStyleSet.js +1 -1
- package/lib/adaptiveCards/createAdaptiveCardsAttachmentForScreenReaderMiddleware.d.ts.map +1 -1
- package/lib/adaptiveCards/createAdaptiveCardsAttachmentForScreenReaderMiddleware.js +1 -1
- package/lib/adaptiveCards/createAdaptiveCardsAttachmentMiddleware.d.ts.map +1 -1
- package/lib/adaptiveCards/createAdaptiveCardsAttachmentMiddleware.js +1 -3
- package/lib/adaptiveCards/hooks/internal/useParseAdaptiveCardJSON.js +1 -1
- package/lib/adaptiveCards/hooks/useAdaptiveCardsHostConfig.js +1 -1
- package/lib/adaptiveCards/hooks/useAdaptiveCardsPackage.js +1 -1
- package/lib/adaptiveCards/normalizeStyleOptions.js +1 -1
- package/lib/addVersion.js +2 -2
- package/lib/createCognitiveServicesSpeechServicesPonyfillFactory.js +1 -1
- package/lib/createFullStyleSet.d.ts +324 -55
- package/lib/createFullStyleSet.d.ts.map +1 -1
- package/lib/createFullStyleSet.js +1 -1
- package/lib/fullBundleDefaultStyleOptions.js +1 -1
- package/lib/hooks/useStyleOptions.js +1 -1
- package/lib/index-es5.d.ts +1 -21
- package/lib/index-es5.d.ts.map +1 -1
- package/lib/index-es5.js +3 -43
- package/lib/index-minimal.js +27 -21
- package/lib/index.d.ts +10 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -7
- package/lib/polyfill.d.ts +23 -0
- package/lib/polyfill.d.ts.map +1 -0
- package/lib/polyfill.js +46 -0
- package/lib/renderMarkdown.d.ts.map +1 -1
- package/lib/renderMarkdown.js +34 -6
- package/lib/speech/CustomAudioInputStream.d.ts.map +1 -1
- package/lib/speech/CustomAudioInputStream.js +40 -15
- package/lib/speech/createAudioConfig.d.ts.map +1 -1
- package/lib/speech/createAudioConfig.js +9 -3
- package/lib/speech/createMicrophoneAudioConfigAndAudioContext.d.ts.map +1 -1
- package/lib/speech/createMicrophoneAudioConfigAndAudioContext.js +6 -1
- package/lib/speech/getUserMedia.js +1 -1
- package/lib/useComposerProps.js +1 -1
- package/package.json +35 -41
- package/src/AddFullBundle.tsx +0 -1
- package/src/__tests__/createDirectLine.spec.js +2 -0
- package/src/__tests__/renderMarkdown.spec.js +1 -1
- package/src/__tests__/versionTag.es5.spec.js +1 -0
- package/src/__tests__/versionTag.full.spec.js +1 -0
- package/src/__tests__/versionTag.minimal.spec.js +1 -0
- package/src/adaptiveCards/AdaptiveCardsComposer.tsx +4 -3
- package/src/adaptiveCards/Attachment/AdaptiveCardBuilder.ts +16 -12
- package/src/adaptiveCards/Attachment/AdaptiveCardRenderer.tsx +226 -96
- package/src/adaptiveCards/Styles/StyleSet/AdaptiveCardRenderer.ts +8 -0
- package/src/adaptiveCards/Styles/createAdaptiveCardsStyleSet.spec.js +2 -0
- package/src/adaptiveCards/createAdaptiveCardsAttachmentForScreenReaderMiddleware.tsx +14 -12
- package/src/adaptiveCards/createAdaptiveCardsAttachmentMiddleware.tsx +26 -25
- package/src/adaptiveCards/hooks/useAdaptiveCardsHostConfig.ts +4 -4
- package/src/createCognitiveServicesSpeechServicesPonyfillFactory.spec.js +5 -5
- package/src/index-es5.ts +3 -26
- package/src/polyfill.ts +29 -0
- package/src/renderMarkdown.ts +40 -4
- package/src/speech/CustomAudioInputStream.ts +39 -10
- package/src/speech/createAudioConfig.spec.js +1 -1
- package/src/speech/createAudioConfig.ts +9 -6
- package/src/speech/createMicrophoneAudioConfigAndAudioContext.ts +1 -3
- package/src/useComposerProps.ts +4 -4
- package/webpack.config.js +24 -4
- package/.eslintignore +0 -1
|
@@ -67,7 +67,10 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
67
67
|
boxSizing: string;
|
|
68
68
|
height: string;
|
|
69
69
|
left: number;
|
|
70
|
-
|
|
70
|
+
marginBottom: number;
|
|
71
|
+
marginLeft: number;
|
|
72
|
+
marginRight: number;
|
|
73
|
+
marginTop: number;
|
|
71
74
|
pointerEvents: string;
|
|
72
75
|
position: string;
|
|
73
76
|
top: number;
|
|
@@ -88,21 +91,26 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
88
91
|
'& .webchat__basic-transcript__activity': {
|
|
89
92
|
paddingTop: number;
|
|
90
93
|
position: string;
|
|
94
|
+
'&:first-child': {
|
|
95
|
+
marginTop: number;
|
|
96
|
+
};
|
|
91
97
|
'&:not(:first-child)': {
|
|
92
98
|
marginTop: number;
|
|
93
99
|
};
|
|
94
100
|
};
|
|
95
|
-
'& .webchat__basic-transcript__activity-
|
|
96
|
-
paddingBottom: number;
|
|
97
|
-
};
|
|
98
|
-
'& .webchat__basic-transcript__activity-sentinel': {
|
|
101
|
+
'& .webchat__basic-transcript__activity-active-descendant': {
|
|
99
102
|
height: string;
|
|
100
103
|
left: number;
|
|
104
|
+
marginTop: number;
|
|
105
|
+
paddingBottom: number;
|
|
101
106
|
pointerEvents: string;
|
|
102
107
|
position: string;
|
|
103
108
|
top: number;
|
|
104
109
|
width: string;
|
|
105
110
|
};
|
|
111
|
+
'& .webchat__basic-transcript__activity-body:not(:empty)': {
|
|
112
|
+
paddingBottom: number;
|
|
113
|
+
};
|
|
106
114
|
'& .webchat__basic-transcript__terminator': {
|
|
107
115
|
bottom: number;
|
|
108
116
|
height: number;
|
|
@@ -289,6 +297,127 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
289
297
|
};
|
|
290
298
|
};
|
|
291
299
|
};
|
|
300
|
+
keyboardHelp: {
|
|
301
|
+
'&.webchat__keyboard-help': {
|
|
302
|
+
fontFamily: string;
|
|
303
|
+
fontSize: number;
|
|
304
|
+
height: string;
|
|
305
|
+
margin: number;
|
|
306
|
+
outline: number;
|
|
307
|
+
'&:not(.webchat__keyboard-help--shown)': {
|
|
308
|
+
height: number;
|
|
309
|
+
margin: number;
|
|
310
|
+
overflow: string;
|
|
311
|
+
pointerEvents: string;
|
|
312
|
+
width: number;
|
|
313
|
+
};
|
|
314
|
+
'& .webchat__keyboard-help__box': {
|
|
315
|
+
borderRadius: number;
|
|
316
|
+
boxShadow: string;
|
|
317
|
+
boxSizing: string;
|
|
318
|
+
height: string;
|
|
319
|
+
padding: number;
|
|
320
|
+
position: string;
|
|
321
|
+
'@media (forced-colors: active)': {
|
|
322
|
+
boxShadow: string;
|
|
323
|
+
outlineColor: string;
|
|
324
|
+
outlineStyle: string;
|
|
325
|
+
outlineWidth: number;
|
|
326
|
+
};
|
|
327
|
+
'@media (forced-colors: none) and (prefers-color-scheme: dark)': {
|
|
328
|
+
boxShadow: string;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
'& .webchat__keyboard-help__close-button': {
|
|
332
|
+
appearance: string;
|
|
333
|
+
backgroundColor: string;
|
|
334
|
+
borderColor: string;
|
|
335
|
+
borderRadius: number;
|
|
336
|
+
borderStyle: string;
|
|
337
|
+
borderWidth: number;
|
|
338
|
+
color: string;
|
|
339
|
+
height: number;
|
|
340
|
+
padding: number;
|
|
341
|
+
position: string;
|
|
342
|
+
right: number;
|
|
343
|
+
top: number;
|
|
344
|
+
width: number;
|
|
345
|
+
'@media (forced-colors: none) and (prefers-color-scheme: light)': {
|
|
346
|
+
'&:active': {
|
|
347
|
+
backgroundColor: string;
|
|
348
|
+
};
|
|
349
|
+
'&:not(:active):hover': {
|
|
350
|
+
backgroundColor: string;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
'@media (forced-colors: none) and (prefers-color-scheme: dark)': {
|
|
354
|
+
borderColor: string;
|
|
355
|
+
'&:active': {
|
|
356
|
+
backgroundColor: string;
|
|
357
|
+
};
|
|
358
|
+
'&:not(:active):hover': {
|
|
359
|
+
backgroundColor: string;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
'& .webchat__keyboard-help__close-button_image': {
|
|
364
|
+
fill: string;
|
|
365
|
+
height: number;
|
|
366
|
+
width: number;
|
|
367
|
+
'@media (forced-colors: active)': {
|
|
368
|
+
fill: string;
|
|
369
|
+
};
|
|
370
|
+
'@media (forced-colors: none) and (prefers-color-scheme: dark)': {
|
|
371
|
+
fill: string;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
'& .webchat__keyboard-help__header, & .webchat__keyboard-help__sub-header': {
|
|
375
|
+
marginBottom: number;
|
|
376
|
+
marginTop: number;
|
|
377
|
+
};
|
|
378
|
+
'& .webchat__keyboard-help__section': {
|
|
379
|
+
marginBottom: number;
|
|
380
|
+
};
|
|
381
|
+
'& .webchat__keyboard-help__two-panes': {
|
|
382
|
+
alignItems: string;
|
|
383
|
+
display: string;
|
|
384
|
+
};
|
|
385
|
+
'& .webchat__keyboard-help__image': {
|
|
386
|
+
flexShrink: number;
|
|
387
|
+
paddingRight: number;
|
|
388
|
+
};
|
|
389
|
+
'& .webchat__keyboard-help__image--dark, & .webchat__keyboard-help__image--high-contrast': {
|
|
390
|
+
display: string;
|
|
391
|
+
};
|
|
392
|
+
'@media (forced-colors: active)': {
|
|
393
|
+
'& .webchat__keyboard-help__image--dark, & .webchat__keyboard-help__image--light': {
|
|
394
|
+
display: string;
|
|
395
|
+
};
|
|
396
|
+
'& .webchat__keyboard-help__image--high-contrast': {
|
|
397
|
+
display: string;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
'@media (forced-colors: none) and (prefers-color-scheme: dark)': {
|
|
401
|
+
backgroundColor: string;
|
|
402
|
+
color: string;
|
|
403
|
+
'& .webchat__keyboard-help__image--light': {
|
|
404
|
+
display: string;
|
|
405
|
+
};
|
|
406
|
+
'& .webchat__keyboard-help__image--dark': {
|
|
407
|
+
display: string;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
'& .webchat__keyboard-help__notes': {
|
|
411
|
+
marginBottom: number;
|
|
412
|
+
};
|
|
413
|
+
'& .webchat__keyboard-help__notes-header': {
|
|
414
|
+
margin: number;
|
|
415
|
+
};
|
|
416
|
+
'& .webchat__keyboard-help__notes-text': {
|
|
417
|
+
margin: number;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
292
421
|
microphoneButton: {
|
|
293
422
|
'&.webchat__microphone-button': {
|
|
294
423
|
'&.webchat__microphone-button--dictating .webchat__microphone-button__button': {
|
|
@@ -358,15 +487,28 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
358
487
|
autoScrollSnapOnActivity: number | boolean;
|
|
359
488
|
autoScrollSnapOnActivityOffset: number;
|
|
360
489
|
autoScrollSnapOnPage: number | boolean;
|
|
361
|
-
|
|
490
|
+
autoScrollSnapOnPageOffset: number;
|
|
362
491
|
hideSendBox: boolean;
|
|
363
492
|
hideUploadButton: boolean;
|
|
364
493
|
microphoneButtonColorOnDictate: string;
|
|
365
494
|
sendBoxBackground: string;
|
|
366
495
|
sendBoxButtonColor: string;
|
|
496
|
+
sendBoxButtonShadeBorderRadius: number;
|
|
497
|
+
sendBoxButtonShadeColor: string;
|
|
498
|
+
sendBoxButtonShadeInset: number;
|
|
499
|
+
sendBoxButtonColorOnActive: string;
|
|
500
|
+
sendBoxButtonShadeColorOnActive: string;
|
|
367
501
|
sendBoxButtonColorOnDisabled: string;
|
|
502
|
+
sendBoxButtonShadeColorOnDisabled: string;
|
|
368
503
|
sendBoxButtonColorOnFocus: string;
|
|
504
|
+
sendBoxButtonShadeColorOnFocus: string;
|
|
369
505
|
sendBoxButtonColorOnHover: string;
|
|
506
|
+
sendBoxButtonShadeColorOnHover: string;
|
|
507
|
+
sendBoxButtonKeyboardFocusIndicatorBorderColor: string;
|
|
508
|
+
sendBoxButtonKeyboardFocusIndicatorBorderRadius: string | number;
|
|
509
|
+
sendBoxButtonKeyboardFocusIndicatorBorderStyle: string;
|
|
510
|
+
sendBoxButtonKeyboardFocusIndicatorBorderWidth: number;
|
|
511
|
+
sendBoxButtonKeyboardFocusIndicatorInset: number;
|
|
370
512
|
sendBoxDisabledTextColor: string;
|
|
371
513
|
sendBoxHeight: string | number;
|
|
372
514
|
sendBoxMaxHeight: string | number;
|
|
@@ -377,32 +519,61 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
377
519
|
sendBoxBorderTop: string | number;
|
|
378
520
|
sendBoxPlaceholderColor: string;
|
|
379
521
|
sendBoxTextWrap: boolean;
|
|
380
|
-
sendBoxButtonAlignment: "
|
|
522
|
+
sendBoxButtonAlignment: "stretch" | "bottom" | "top";
|
|
381
523
|
showSpokenText: boolean;
|
|
382
524
|
spinnerAnimationBackgroundImage: string;
|
|
383
525
|
spinnerAnimationHeight: string | number;
|
|
384
526
|
spinnerAnimationWidth: string | number;
|
|
385
527
|
spinnerAnimationPadding: string | number;
|
|
528
|
+
suggestedActionBorderRadius: string | number;
|
|
386
529
|
suggestedActionBackground: string;
|
|
530
|
+
suggestedActionBackgroundColor: string;
|
|
387
531
|
suggestedActionBorderColor: string;
|
|
388
|
-
suggestedActionBorderRadius: string | number;
|
|
389
532
|
suggestedActionBorderStyle: string;
|
|
390
|
-
suggestedActionBorderWidth:
|
|
533
|
+
suggestedActionBorderWidth: number;
|
|
534
|
+
suggestedActionTextColor: string;
|
|
535
|
+
suggestedActionBackgroundColorOnDisabled: string;
|
|
536
|
+
suggestedActionBorderColorOnDisabled: string;
|
|
537
|
+
suggestedActionBorderStyleOnDisabled: string;
|
|
538
|
+
suggestedActionBorderWidthOnDisabled: number;
|
|
539
|
+
suggestedActionTextColorOnDisabled: string;
|
|
540
|
+
suggestedActionBackgroundColorOnActive: string;
|
|
541
|
+
suggestedActionBorderColorOnActive: string;
|
|
542
|
+
suggestedActionBorderStyleOnActive: string;
|
|
543
|
+
suggestedActionBorderWidthOnActive: number;
|
|
544
|
+
suggestedActionTextColorOnActive: string;
|
|
545
|
+
suggestedActionBackgroundColorOnFocus: string;
|
|
546
|
+
suggestedActionBorderColorOnFocus: string;
|
|
547
|
+
suggestedActionBorderStyleOnFocus: string;
|
|
548
|
+
suggestedActionBorderWidthOnFocus: number;
|
|
549
|
+
suggestedActionTextColorOnFocus: string;
|
|
550
|
+
suggestedActionBackgroundColorOnHover: string;
|
|
551
|
+
suggestedActionBorderColorOnHover: string;
|
|
552
|
+
suggestedActionBorderStyleOnHover: string;
|
|
553
|
+
suggestedActionBorderWidthOnHover: number;
|
|
554
|
+
suggestedActionTextColorOnHover: string;
|
|
391
555
|
suggestedActionDisabledBackground: string;
|
|
392
556
|
suggestedActionDisabledBorderColor: string;
|
|
393
557
|
suggestedActionDisabledBorderStyle: string;
|
|
394
|
-
suggestedActionDisabledBorderWidth:
|
|
558
|
+
suggestedActionDisabledBorderWidth: number;
|
|
395
559
|
suggestedActionDisabledTextColor: string;
|
|
396
560
|
suggestedActionHeight: string | number;
|
|
397
561
|
suggestedActionImageHeight: string | number;
|
|
398
562
|
suggestedActionLayout: "carousel" | "flow" | "stacked";
|
|
399
|
-
|
|
563
|
+
suggestedActionKeyboardFocusIndicatorBorderColor: string;
|
|
564
|
+
suggestedActionKeyboardFocusIndicatorBorderRadius: string | number;
|
|
565
|
+
suggestedActionKeyboardFocusIndicatorBorderStyle: string;
|
|
566
|
+
suggestedActionKeyboardFocusIndicatorBorderWidth: number;
|
|
567
|
+
suggestedActionKeyboardFocusIndicatorInset: number;
|
|
568
|
+
suggestedActionActiveBackground: string;
|
|
569
|
+
suggestedActionFocusBackground: string;
|
|
570
|
+
suggestedActionHoverBackground: string;
|
|
400
571
|
suggestedActionsCarouselFlipperCursor: string;
|
|
401
572
|
suggestedActionsCarouselFlipperBoxWidth: number;
|
|
402
573
|
suggestedActionsCarouselFlipperSize: number;
|
|
403
574
|
suggestedActionsFlowMaxHeight: undefined;
|
|
404
575
|
suggestedActionsStackedHeight: number | "auto";
|
|
405
|
-
suggestedActionsStackedOverflow: "
|
|
576
|
+
suggestedActionsStackedOverflow: "auto" | "hidden" | "scroll" | "visible";
|
|
406
577
|
suggestedActionsStackedLayoutButtonMaxHeight: string | number;
|
|
407
578
|
suggestedActionsStackedLayoutButtonTextWrap: boolean;
|
|
408
579
|
groupTimestamp: number | boolean;
|
|
@@ -466,7 +637,7 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
466
637
|
};
|
|
467
638
|
scrollToEndButton: {
|
|
468
639
|
'&.webchat__scroll-to-end-button': {
|
|
469
|
-
'@media screen and (-
|
|
640
|
+
'@media screen and (forced-colors: active)': {
|
|
470
641
|
borderWidth: string;
|
|
471
642
|
outline: string;
|
|
472
643
|
};
|
|
@@ -523,31 +694,77 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
523
694
|
sendBoxButton: {
|
|
524
695
|
'&.webchat__icon-button': {
|
|
525
696
|
alignItems: string;
|
|
697
|
+
appearance: string;
|
|
526
698
|
backgroundColor: string;
|
|
527
699
|
border: number;
|
|
528
700
|
display: string;
|
|
701
|
+
fill: string;
|
|
529
702
|
justifyContent: string;
|
|
530
703
|
outline: number;
|
|
531
704
|
padding: number;
|
|
705
|
+
position: string;
|
|
532
706
|
width: string | number;
|
|
533
707
|
'&:not(.webchat__icon-button--stretch)': {
|
|
534
708
|
height: string | number;
|
|
535
709
|
};
|
|
710
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
711
|
+
fill: string;
|
|
712
|
+
'& .webchat__icon-button__shade': {
|
|
713
|
+
backgroundColor: string;
|
|
714
|
+
};
|
|
715
|
+
};
|
|
536
716
|
'&:not(:disabled):not([aria-disabled="true"])': {
|
|
537
|
-
'&:
|
|
717
|
+
'&:active': {
|
|
538
718
|
fill: string;
|
|
719
|
+
'& .webchat__icon-button__shade': {
|
|
720
|
+
backgroundColor: string;
|
|
721
|
+
};
|
|
539
722
|
};
|
|
540
|
-
'&:
|
|
541
|
-
|
|
723
|
+
'&:not(:active)': {
|
|
724
|
+
'&:hover': {
|
|
725
|
+
fill: string;
|
|
726
|
+
'& .webchat__icon-button__shade': {
|
|
727
|
+
backgroundColor: string;
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
'&:not(:hover)': {
|
|
731
|
+
'&:focus': {
|
|
732
|
+
fill: string;
|
|
733
|
+
'& .webchat__icon-button__shade': {
|
|
734
|
+
backgroundColor: string;
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
};
|
|
542
738
|
};
|
|
543
739
|
};
|
|
544
|
-
'
|
|
545
|
-
|
|
740
|
+
'&:not(:focus-visible) .webchat__icon-button__keyboard-focus-indicator': {
|
|
741
|
+
display: string;
|
|
546
742
|
};
|
|
547
|
-
'&:
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
743
|
+
'&:not(.webchat__icon-button--focus-visible) .webchat__icon-button__keyboard-focus-indicator': {
|
|
744
|
+
display: string;
|
|
745
|
+
};
|
|
746
|
+
'& > *': {
|
|
747
|
+
position: string;
|
|
748
|
+
};
|
|
749
|
+
'& .webchat__icon-button__shade': {
|
|
750
|
+
backgroundColor: string;
|
|
751
|
+
borderRadius: number;
|
|
752
|
+
bottom: number;
|
|
753
|
+
left: number;
|
|
754
|
+
position: string;
|
|
755
|
+
right: number;
|
|
756
|
+
top: number;
|
|
757
|
+
};
|
|
758
|
+
'& .webchat__icon-button__keyboard-focus-indicator': {
|
|
759
|
+
borderColor: string;
|
|
760
|
+
borderRadius: string | number;
|
|
761
|
+
borderStyle: string;
|
|
762
|
+
borderWidth: number;
|
|
763
|
+
bottom: number;
|
|
764
|
+
left: number;
|
|
765
|
+
position: string;
|
|
766
|
+
right: number;
|
|
767
|
+
top: number;
|
|
551
768
|
};
|
|
552
769
|
};
|
|
553
770
|
};
|
|
@@ -681,42 +898,68 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
681
898
|
};
|
|
682
899
|
suggestedAction: {
|
|
683
900
|
'&.webchat__suggested-action': {
|
|
684
|
-
|
|
901
|
+
alignItems: string;
|
|
902
|
+
background: string;
|
|
903
|
+
backgroundColor: string;
|
|
904
|
+
borderColor: string;
|
|
905
|
+
borderRadius: string | number;
|
|
906
|
+
borderStyle: string;
|
|
907
|
+
borderWidth: number;
|
|
908
|
+
color: string;
|
|
909
|
+
fontFamily: string;
|
|
910
|
+
fontSize: string;
|
|
911
|
+
height: string | number;
|
|
912
|
+
justifyContent: string;
|
|
685
913
|
maxWidth: string;
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
914
|
+
outline: number;
|
|
915
|
+
paddingLeft: number;
|
|
916
|
+
paddingRight: number;
|
|
917
|
+
position: string;
|
|
918
|
+
whiteSpace: string;
|
|
919
|
+
width: string;
|
|
920
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
921
|
+
background: string;
|
|
922
|
+
backgroundColor: string;
|
|
923
|
+
borderColor: string;
|
|
924
|
+
borderStyle: string;
|
|
925
|
+
borderWidth: number;
|
|
926
|
+
color: string;
|
|
927
|
+
};
|
|
928
|
+
'&:not(:disabled):not([aria-disabled="true"])': {
|
|
929
|
+
'&:active': {
|
|
699
930
|
background: string;
|
|
931
|
+
backgroundColor: string;
|
|
700
932
|
borderColor: string;
|
|
701
933
|
borderStyle: string;
|
|
702
|
-
borderWidth:
|
|
934
|
+
borderWidth: number;
|
|
703
935
|
color: string;
|
|
704
936
|
};
|
|
705
|
-
'&:not(:
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
937
|
+
'&:not(:active)': {
|
|
938
|
+
'&:hover': {
|
|
939
|
+
background: string;
|
|
940
|
+
backgroundColor: string;
|
|
941
|
+
borderColor: string;
|
|
942
|
+
borderStyle: string;
|
|
943
|
+
borderWidth: number;
|
|
944
|
+
color: string;
|
|
945
|
+
};
|
|
946
|
+
'&:not(:hover)': {
|
|
947
|
+
'&:focus': {
|
|
948
|
+
background: string;
|
|
949
|
+
backgroundColor: string;
|
|
950
|
+
borderColor: string;
|
|
951
|
+
borderStyle: string;
|
|
952
|
+
borderWidth: number;
|
|
953
|
+
color: string;
|
|
954
|
+
};
|
|
955
|
+
};
|
|
711
956
|
};
|
|
712
957
|
};
|
|
713
|
-
'
|
|
714
|
-
|
|
958
|
+
'&:not(:focus-visible) .webchat__suggested-action__keyboard-focus-indicator': {
|
|
959
|
+
display: string;
|
|
715
960
|
};
|
|
716
|
-
'
|
|
717
|
-
|
|
718
|
-
maxHeight: string | number;
|
|
719
|
-
minHeight: string | number;
|
|
961
|
+
'&:not(.webchat__suggested-action--focus-visible) .webchat__suggested-action__keyboard-focus-indicator': {
|
|
962
|
+
display: string;
|
|
720
963
|
};
|
|
721
964
|
'&:not(.webchat__suggested-action--rtl) .webchat__suggested-action__image + .webchat__suggested-action__text': {
|
|
722
965
|
paddingLeft: number;
|
|
@@ -724,6 +967,25 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
724
967
|
'&.webchat__suggested-action--rtl .webchat__suggested-action__image + .webchat__suggested-action__text': {
|
|
725
968
|
paddingRight: number;
|
|
726
969
|
};
|
|
970
|
+
'&.webchat__suggested-action--wrapping': {
|
|
971
|
+
height: string;
|
|
972
|
+
maxHeight: string | number;
|
|
973
|
+
minHeight: string | number;
|
|
974
|
+
};
|
|
975
|
+
'& .webchat__suggested-action__image': {
|
|
976
|
+
height: string | number;
|
|
977
|
+
};
|
|
978
|
+
'& .webchat__suggested-action__keyboard-focus-indicator': {
|
|
979
|
+
borderColor: string;
|
|
980
|
+
borderRadius: string | number;
|
|
981
|
+
borderStyle: string;
|
|
982
|
+
borderWidth: number;
|
|
983
|
+
bottom: number;
|
|
984
|
+
left: number;
|
|
985
|
+
position: string;
|
|
986
|
+
right: number;
|
|
987
|
+
top: number;
|
|
988
|
+
};
|
|
727
989
|
};
|
|
728
990
|
};
|
|
729
991
|
suggestedActions: {
|
|
@@ -732,7 +994,7 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
732
994
|
'& .webchat__suggested-actions__carousel': {
|
|
733
995
|
paddingBottom: number;
|
|
734
996
|
paddingTop: number;
|
|
735
|
-
'& .webchat__suggested-
|
|
997
|
+
'& .webchat__suggested-actions__item-box': {
|
|
736
998
|
paddingBottom: number;
|
|
737
999
|
paddingLeft: number;
|
|
738
1000
|
paddingRight: number;
|
|
@@ -805,24 +1067,27 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
805
1067
|
paddingRight: number;
|
|
806
1068
|
paddingTop: number;
|
|
807
1069
|
};
|
|
808
|
-
'& .webchat__suggested-
|
|
1070
|
+
'& .webchat__suggested-actions__flow-item-box': {
|
|
809
1071
|
maxWidth: string;
|
|
810
1072
|
overflow: string;
|
|
811
1073
|
};
|
|
812
|
-
'& .webchat__suggested-
|
|
813
|
-
|
|
1074
|
+
'& .webchat__suggested-actions__item-box': {
|
|
1075
|
+
paddingBottom: number;
|
|
1076
|
+
paddingLeft: number;
|
|
1077
|
+
paddingRight: number;
|
|
1078
|
+
paddingTop: number;
|
|
814
1079
|
};
|
|
815
1080
|
};
|
|
816
1081
|
'&.webchat__suggested-actions--stacked-layout': {
|
|
817
1082
|
'& .webchat__suggested-actions__stack': {
|
|
818
1083
|
maxHeight: number | "auto";
|
|
819
|
-
overflowY:
|
|
1084
|
+
overflowY: "auto" | "hidden" | "scroll" | "visible";
|
|
820
1085
|
paddingBottom: number;
|
|
821
1086
|
paddingLeft: number;
|
|
822
1087
|
paddingRight: number;
|
|
823
1088
|
paddingTop: number;
|
|
824
1089
|
};
|
|
825
|
-
'& .webchat__suggested-
|
|
1090
|
+
'& .webchat__suggested-actions__item-box': {
|
|
826
1091
|
paddingBottom: number;
|
|
827
1092
|
paddingLeft: number;
|
|
828
1093
|
paddingRight: number;
|
|
@@ -840,6 +1105,10 @@ export default function createFullStyleSet(options: FullBundleStyleOptions): {
|
|
|
840
1105
|
whiteSpace: string;
|
|
841
1106
|
};
|
|
842
1107
|
};
|
|
1108
|
+
'& .webchat__suggested-actions__item-box': {
|
|
1109
|
+
display: string;
|
|
1110
|
+
maxWidth: string;
|
|
1111
|
+
};
|
|
843
1112
|
};
|
|
844
1113
|
};
|
|
845
1114
|
textContent: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFullStyleSet.d.ts","sourceRoot":"","sources":["../src/createFullStyleSet.ts"],"names":[],"mappings":"AAGA,OAAO,sBAAsB,MAAM,gCAAgC,CAAC;AAMpE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,OAAO,EAAE,sBAAsB
|
|
1
|
+
{"version":3,"file":"createFullStyleSet.d.ts","sourceRoot":"","sources":["../src/createFullStyleSet.ts"],"names":[],"mappings":"AAGA,OAAO,sBAAsB,MAAM,gCAAgC,CAAC;AAMpE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,OAAO,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKzE"}
|
|
@@ -13,7 +13,7 @@ var _botframeworkWebchatComponent = require("botframework-webchat-component");
|
|
|
13
13
|
|
|
14
14
|
var _createAdaptiveCardsStyleSet = _interopRequireDefault(require("./adaptiveCards/Styles/createAdaptiveCardsStyleSet"));
|
|
15
15
|
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
|
|
18
18
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ var _botframeworkWebchatApi = require("botframework-webchat-api");
|
|
|
13
13
|
|
|
14
14
|
var _defaultStyleOptions = _interopRequireDefault(require("./adaptiveCards/defaultStyleOptions"));
|
|
15
15
|
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
|
|
18
18
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
19
|
|
|
@@ -18,4 +18,4 @@ function useStyleOptions() {
|
|
|
18
18
|
|
|
19
19
|
return [styleOptions];
|
|
20
20
|
}
|
|
21
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ob29rcy91c2VTdHlsZU9wdGlvbnMudHMiXSwibmFtZXMiOlsidXNlU3R5bGVPcHRpb25zIiwiaG9va3MiLCJzdHlsZU9wdGlvbnMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7O0FBSWUsU0FBU0EsZUFBVCxHQUEyRDtBQUN4RSw4QkFBdUJDLG9DQUFNRCxlQUFOLEVBQXZCO0FBQUE7QUFBQSxNQUFPRSxZQUFQOztBQUVBLFNBQU8sQ0FBQ0EsWUFBRCxDQUFQO0FBQ0QiLCJzb3VyY2VSb290IjoiYnVuZGxlOi8vLyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGhvb2tzIH0gZnJvbSAnYm90ZnJhbWV3b3JrLXdlYmNoYXQtY29tcG9uZW50JztcblxuaW1wb3J0IHsgU3RyaWN0RnVsbEJ1bmRsZVN0eWxlT3B0aW9ucyB9IGZyb20gJy4uL3R5cGVzL0Z1bGxCdW5kbGVTdHlsZU9wdGlvbnMnO1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiB1c2VTdHlsZU9wdGlvbnMoKTogW1N0cmljdEZ1bGxCdW5kbGVTdHlsZU9wdGlvbnNdIHtcbiAgY29uc3QgW3N0eWxlT3B0aW9uc10gPSBob29rcy51c2VTdHlsZU9wdGlvbnMoKTtcblxuICByZXR1cm4gW3N0eWxlT3B0aW9ucyBhcyBTdHJpY3RGdWxsQnVuZGxlU3R5bGVPcHRpb25zXTtcbn1cbiJdfQ==
|
package/lib/index-es5.d.ts
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import 'core-js/features/array/find';
|
|
3
|
-
import 'core-js/features/array/from';
|
|
4
|
-
import 'core-js/features/array/includes';
|
|
5
|
-
import 'core-js/features/array/iterator';
|
|
6
|
-
import 'core-js/features/dom-collections';
|
|
7
|
-
import 'core-js/features/math/sign';
|
|
8
|
-
import 'core-js/features/number/is-finite';
|
|
9
|
-
import 'core-js/features/object/assign';
|
|
10
|
-
import 'core-js/features/object/entries';
|
|
11
|
-
import 'core-js/features/object/from-entries';
|
|
12
|
-
import 'core-js/features/object/is';
|
|
13
|
-
import 'core-js/features/object/values';
|
|
14
|
-
import 'core-js/features/promise';
|
|
15
|
-
import 'core-js/features/promise/finally';
|
|
16
|
-
import 'core-js/features/set';
|
|
17
|
-
import 'core-js/features/string/ends-with';
|
|
18
|
-
import 'core-js/features/string/starts-with';
|
|
19
|
-
import 'core-js/features/symbol';
|
|
20
|
-
import 'url-search-params-polyfill';
|
|
21
|
-
import 'whatwg-fetch';
|
|
1
|
+
import './polyfill';
|
|
22
2
|
export * from './index';
|
|
23
3
|
export declare const createDirectLine: (options: any) => import("botframework-directlinejs").DirectLine;
|
|
24
4
|
export declare const createDirectLineAppServiceExtension: (options: any) => Promise<any>;
|
package/lib/index-es5.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-es5.d.ts","sourceRoot":"","sources":["../src/index-es5.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index-es5.d.ts","sourceRoot":"","sources":["../src/index-es5.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAOpB,cAAc,SAAS,CAAC;AAExB,eAAO,MAAM,gBAAgB,kEAO5B,CAAC;AAEF,eAAO,MAAM,mCAAmC,gCAO/C,CAAC"}
|