botframework-webchat-component 4.19.0 → 4.19.1-main.20260529.6bcfcee

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 (84) hide show
  1. package/dist/_dtsroll-chunks/CwOuXmoL-botframework-webchat-styles.react.d.ts +68 -0
  2. package/dist/botframework-webchat-component.component.d.mts +1 -1
  3. package/dist/botframework-webchat-component.component.d.ts +1 -1
  4. package/dist/botframework-webchat-component.component.js +1 -1
  5. package/dist/botframework-webchat-component.component.mjs +1 -1
  6. package/dist/botframework-webchat-component.d.mts +1 -3
  7. package/dist/botframework-webchat-component.d.ts +1 -3
  8. package/dist/botframework-webchat-component.decorator.js +1 -1
  9. package/dist/botframework-webchat-component.decorator.js.map +1 -1
  10. package/dist/botframework-webchat-component.decorator.mjs +1 -1
  11. package/dist/botframework-webchat-component.decorator.mjs.map +1 -1
  12. package/dist/botframework-webchat-component.hook.js +1 -1
  13. package/dist/botframework-webchat-component.hook.mjs +1 -1
  14. package/dist/botframework-webchat-component.internal.d.mts +2 -6
  15. package/dist/botframework-webchat-component.internal.d.ts +2 -6
  16. package/dist/botframework-webchat-component.internal.js +1 -1
  17. package/dist/botframework-webchat-component.internal.js.map +1 -1
  18. package/dist/botframework-webchat-component.internal.mjs +1 -1
  19. package/dist/botframework-webchat-component.js +1 -1
  20. package/dist/botframework-webchat-component.js.map +1 -1
  21. package/dist/botframework-webchat-component.mjs +1 -1
  22. package/dist/botframework-webchat-component.mjs.map +1 -1
  23. package/dist/chunk-4EA5WZBJ.mjs +80 -0
  24. package/dist/chunk-4EA5WZBJ.mjs.map +1 -0
  25. package/dist/{chunk-H5YR7OLF.js → chunk-B2XHGOQH.js} +2 -2
  26. package/dist/{chunk-H5YR7OLF.js.map → chunk-B2XHGOQH.js.map} +1 -1
  27. package/dist/chunk-C2RHHZZQ.mjs +2 -0
  28. package/dist/chunk-C2RHHZZQ.mjs.map +1 -0
  29. package/dist/{chunk-TYPS3H4I.mjs → chunk-FIPA3BLZ.mjs} +2 -2
  30. package/dist/{chunk-TYPS3H4I.mjs.map → chunk-FIPA3BLZ.mjs.map} +1 -1
  31. package/dist/{chunk-LVVCSDZ4.mjs → chunk-HWDSXHRJ.mjs} +2 -2
  32. package/dist/chunk-JCX7GSY7.js +2 -0
  33. package/dist/{chunk-2R7BJ63Z.js.map → chunk-JCX7GSY7.js.map} +1 -1
  34. package/dist/{chunk-U6OWCHTQ.js → chunk-K4QNZHM5.js} +2 -2
  35. package/dist/chunk-K4QNZHM5.js.map +1 -0
  36. package/dist/{chunk-MOJMHOVH.js → chunk-OJOV52AD.js} +2 -2
  37. package/dist/{chunk-MOJMHOVH.js.map → chunk-OJOV52AD.js.map} +1 -1
  38. package/dist/{chunk-GTOP3WPD.mjs → chunk-WPWJFSZC.mjs} +2 -2
  39. package/dist/chunk-WPWJFSZC.mjs.map +1 -0
  40. package/dist/chunk-ZUKHLDZN.js +80 -0
  41. package/dist/chunk-ZUKHLDZN.js.map +1 -0
  42. package/dist/{component-BtSxgJS5.d.mts → component-BeCWAilk.d.mts} +34 -43
  43. package/dist/{component-Fyy8iCRE.d.ts → component-BtDQyqSP.d.ts} +34 -43
  44. package/dist/metafile-cjs.json +1 -1
  45. package/dist/metafile-esm.json +1 -1
  46. package/package.json +12 -14
  47. package/src/ActivityStatus/SendStatus/private/SendFailedRetry.tsx +31 -0
  48. package/src/BasicToast.js +4 -5
  49. package/src/BasicToaster.js +2 -3
  50. package/src/Composer.tsx +0 -20
  51. package/src/Utils/InlineMarkdown.tsx +121 -0
  52. package/src/Utils/LocalizedString.tsx +123 -124
  53. package/src/Utils/addTargetBlankToHyperlinks.spec.ts +52 -0
  54. package/src/Utils/addTargetBlankToHyperlinks.ts +14 -0
  55. package/src/boot/internal.ts +7 -2
  56. package/src/hooks/internal/WebChatUIContext.ts +0 -2
  57. package/src/hooks/useRenderMarkdownAsHTML.ts +5 -3
  58. package/src/hooks/useStreamingMarkdownWithDefinitions.ts +2 -2
  59. package/src/private/renderMarkdownInline.ts +19 -0
  60. package/src/providers/CustomElements/customElements/CodeBlock.ts +2 -2
  61. package/dist/_dtsroll-chunks/Cha1SOtx-botframework-webchat-styles.react.d.ts +0 -38
  62. package/dist/chunk-2R7BJ63Z.js +0 -2
  63. package/dist/chunk-A4NDFSZM.mjs +0 -77
  64. package/dist/chunk-A4NDFSZM.mjs.map +0 -1
  65. package/dist/chunk-CNTMOACS.mjs +0 -2
  66. package/dist/chunk-CNTMOACS.mjs.map +0 -1
  67. package/dist/chunk-GTOP3WPD.mjs.map +0 -1
  68. package/dist/chunk-U6OWCHTQ.js.map +0 -1
  69. package/dist/chunk-VDF6GQAL.js +0 -77
  70. package/dist/chunk-VDF6GQAL.js.map +0 -1
  71. package/src/ActivityStatus/SendStatus/private/SendFailedRetry.js +0 -28
  72. package/src/Utils/InlineMarkdown.js +0 -154
  73. package/src/Utils/addTargetBlankToHyperlinksMarkdown.js +0 -28
  74. package/src/Utils/addTargetBlankToHyperlinksMarkdown.spec.js +0 -45
  75. package/src/Utils/betterLinks.ts +0 -157
  76. package/src/Utils/parseDocumentFragmentFromString.ts +0 -9
  77. package/src/Utils/serializeDocumentFragmentIntoString.ts +0 -3
  78. package/src/Utils/updateMarkdownAttrs.js +0 -10
  79. package/src/Utils/updateMarkdownAttrs.spec.js +0 -71
  80. package/src/Utils/walkMarkdownTokens.js +0 -15
  81. package/src/Utils/walkMarkdownTokens.spec.js +0 -18
  82. package/src/hooks/internal/useInternalMarkdownIt.js +0 -7
  83. package/src/hooks/internal/useInternalRenderMarkdownInline.js +0 -9
  84. /package/dist/{chunk-LVVCSDZ4.mjs.map → chunk-HWDSXHRJ.mjs.map} +0 -0
@@ -452,50 +452,41 @@ declare const TextArea: React__default__default.ForwardRefExoticComponent<{
452
452
  value?: string;
453
453
  } & React__default__default.RefAttributes<HTMLTextAreaElement>>;
454
454
 
455
- type AttributeSetter = false | string | ((value?: string) => string);
456
- type LinkOptions = {
457
- /** Value of "aria-label" attribute of the link. If set to `false`, remove existing attribute. */
458
- ariaLabel?: AttributeSetter;
459
- /** Turns this link into a <button> with "value" attribute instead of "href". */
460
- asButton?: boolean;
461
- /** Value of "class" attribute of the link. If set to `false`, remove existing attribute. */
462
- className?: AttributeSetter;
463
- /** Alternate text of the image icon appended to the link. */
464
- iconAlt?: string;
465
- /** Class name of the image icon appended to the link. */
466
- iconClassName?: string;
467
- /** Value of "rel" attribute of the link. If set to `false`, remove existing attribute. */
468
- rel?: AttributeSetter;
469
- /** Value of "target" attribute of the link. If set to `false`, remove existing attribute. */
470
- target?: AttributeSetter;
471
- /** Value of "title" attribute of the link. If set to `false`, remove existing attribute. */
472
- title?: AttributeSetter;
473
- /** Wraps the link with zero-width space. */
474
- wrapZeroWidthSpace?: boolean;
475
- };
476
-
477
- type Plural = {
478
- zero?: string;
479
- one?: string;
480
- two?: string;
481
- few?: string;
482
- many?: string;
483
- other: string;
484
- };
485
- type PluralProps = Readonly<{
486
- stringIds: Plural;
487
- values: readonly [number, ...(number | string)[]] | undefined;
488
- }>;
489
- type SingularProps = Readonly<{
455
+ declare const localizedStringPropsSchema: valibot.IntersectSchema<[valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
456
+ readonly className: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
457
+ readonly linkClassName: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
458
+ }, undefined>, valibot.ReadonlyAction<{
459
+ className?: string;
460
+ linkClassName?: string;
461
+ }>]>, valibot.UnionSchema<[valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
462
+ readonly stringIds: valibot.ObjectSchema<{
463
+ readonly zero: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
464
+ readonly one: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
465
+ readonly two: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
466
+ readonly few: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
467
+ readonly many: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
468
+ readonly other: valibot.StringSchema<undefined>;
469
+ }, undefined>;
470
+ readonly values: valibot.SchemaWithPipe<readonly [valibot.TupleWithRestSchema<[valibot.NumberSchema<undefined>], valibot.UnionSchema<[valibot.StringSchema<undefined>], undefined>, undefined>, valibot.ReadonlyAction<[number, ...string[]]>]>;
471
+ }, undefined>, valibot.ReadonlyAction<{
472
+ stringIds: {
473
+ zero?: string;
474
+ one?: string;
475
+ two?: string;
476
+ few?: string;
477
+ many?: string;
478
+ other: string;
479
+ };
480
+ readonly values: readonly [number, ...string[]];
481
+ }>]>, valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
482
+ readonly stringIds: valibot.StringSchema<undefined>;
483
+ readonly values: valibot.OptionalSchema<valibot.SchemaWithPipe<readonly [valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>, valibot.ReadonlyAction<string[]>]>, undefined>;
484
+ }, undefined>, valibot.ReadonlyAction<{
490
485
  stringIds: string;
491
- values?: readonly (number | string)[] | undefined;
492
- }>;
493
- type Props = Readonly<{
494
- className?: string | undefined;
495
- linkClassName?: string | undefined;
496
- onDecorateLink?: ((href: string, textContent: string) => LinkOptions | undefined) | undefined;
497
- }> & (SingularProps | PluralProps);
498
- declare const _default$1: React__default__default.MemoExoticComponent<(props: Props) => React__default__default.JSX.Element>;
486
+ values?: readonly string[];
487
+ }>]>], undefined>], undefined>;
488
+ type LocalizedStringProps = InferInput<typeof localizedStringPropsSchema>;
489
+ declare const _default$1: React__default__default.MemoExoticComponent<(props: LocalizedStringProps) => React__default__default.JSX.Element>;
499
490
 
500
491
  type ThemeProviderProps = {
501
492
  readonly children?: ReactNode | undefined;
@@ -452,50 +452,41 @@ declare const TextArea: React__default__default.ForwardRefExoticComponent<{
452
452
  value?: string;
453
453
  } & React__default__default.RefAttributes<HTMLTextAreaElement>>;
454
454
 
455
- type AttributeSetter = false | string | ((value?: string) => string);
456
- type LinkOptions = {
457
- /** Value of "aria-label" attribute of the link. If set to `false`, remove existing attribute. */
458
- ariaLabel?: AttributeSetter;
459
- /** Turns this link into a <button> with "value" attribute instead of "href". */
460
- asButton?: boolean;
461
- /** Value of "class" attribute of the link. If set to `false`, remove existing attribute. */
462
- className?: AttributeSetter;
463
- /** Alternate text of the image icon appended to the link. */
464
- iconAlt?: string;
465
- /** Class name of the image icon appended to the link. */
466
- iconClassName?: string;
467
- /** Value of "rel" attribute of the link. If set to `false`, remove existing attribute. */
468
- rel?: AttributeSetter;
469
- /** Value of "target" attribute of the link. If set to `false`, remove existing attribute. */
470
- target?: AttributeSetter;
471
- /** Value of "title" attribute of the link. If set to `false`, remove existing attribute. */
472
- title?: AttributeSetter;
473
- /** Wraps the link with zero-width space. */
474
- wrapZeroWidthSpace?: boolean;
475
- };
476
-
477
- type Plural = {
478
- zero?: string;
479
- one?: string;
480
- two?: string;
481
- few?: string;
482
- many?: string;
483
- other: string;
484
- };
485
- type PluralProps = Readonly<{
486
- stringIds: Plural;
487
- values: readonly [number, ...(number | string)[]] | undefined;
488
- }>;
489
- type SingularProps = Readonly<{
455
+ declare const localizedStringPropsSchema: valibot.IntersectSchema<[valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
456
+ readonly className: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
457
+ readonly linkClassName: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
458
+ }, undefined>, valibot.ReadonlyAction<{
459
+ className?: string;
460
+ linkClassName?: string;
461
+ }>]>, valibot.UnionSchema<[valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
462
+ readonly stringIds: valibot.ObjectSchema<{
463
+ readonly zero: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
464
+ readonly one: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
465
+ readonly two: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
466
+ readonly few: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
467
+ readonly many: valibot.OptionalSchema<valibot.StringSchema<undefined>, undefined>;
468
+ readonly other: valibot.StringSchema<undefined>;
469
+ }, undefined>;
470
+ readonly values: valibot.SchemaWithPipe<readonly [valibot.TupleWithRestSchema<[valibot.NumberSchema<undefined>], valibot.UnionSchema<[valibot.StringSchema<undefined>], undefined>, undefined>, valibot.ReadonlyAction<[number, ...string[]]>]>;
471
+ }, undefined>, valibot.ReadonlyAction<{
472
+ stringIds: {
473
+ zero?: string;
474
+ one?: string;
475
+ two?: string;
476
+ few?: string;
477
+ many?: string;
478
+ other: string;
479
+ };
480
+ readonly values: readonly [number, ...string[]];
481
+ }>]>, valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
482
+ readonly stringIds: valibot.StringSchema<undefined>;
483
+ readonly values: valibot.OptionalSchema<valibot.SchemaWithPipe<readonly [valibot.ArraySchema<valibot.StringSchema<undefined>, undefined>, valibot.ReadonlyAction<string[]>]>, undefined>;
484
+ }, undefined>, valibot.ReadonlyAction<{
490
485
  stringIds: string;
491
- values?: readonly (number | string)[] | undefined;
492
- }>;
493
- type Props = Readonly<{
494
- className?: string | undefined;
495
- linkClassName?: string | undefined;
496
- onDecorateLink?: ((href: string, textContent: string) => LinkOptions | undefined) | undefined;
497
- }> & (SingularProps | PluralProps);
498
- declare const _default$1: React__default__default.MemoExoticComponent<(props: Props) => React__default__default.JSX.Element>;
486
+ values?: readonly string[];
487
+ }>]>], undefined>], undefined>;
488
+ type LocalizedStringProps = InferInput<typeof localizedStringPropsSchema>;
489
+ declare const _default$1: React__default__default.MemoExoticComponent<(props: LocalizedStringProps) => React__default__default.JSX.Element>;
499
490
 
500
491
  type ThemeProviderProps = {
501
492
  readonly children?: ReactNode | undefined;