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.
- package/dist/_dtsroll-chunks/CwOuXmoL-botframework-webchat-styles.react.d.ts +68 -0
- package/dist/botframework-webchat-component.component.d.mts +1 -1
- package/dist/botframework-webchat-component.component.d.ts +1 -1
- package/dist/botframework-webchat-component.component.js +1 -1
- package/dist/botframework-webchat-component.component.mjs +1 -1
- package/dist/botframework-webchat-component.d.mts +1 -3
- package/dist/botframework-webchat-component.d.ts +1 -3
- package/dist/botframework-webchat-component.decorator.js +1 -1
- package/dist/botframework-webchat-component.decorator.js.map +1 -1
- package/dist/botframework-webchat-component.decorator.mjs +1 -1
- package/dist/botframework-webchat-component.decorator.mjs.map +1 -1
- package/dist/botframework-webchat-component.hook.js +1 -1
- package/dist/botframework-webchat-component.hook.mjs +1 -1
- package/dist/botframework-webchat-component.internal.d.mts +2 -6
- package/dist/botframework-webchat-component.internal.d.ts +2 -6
- package/dist/botframework-webchat-component.internal.js +1 -1
- package/dist/botframework-webchat-component.internal.js.map +1 -1
- package/dist/botframework-webchat-component.internal.mjs +1 -1
- package/dist/botframework-webchat-component.js +1 -1
- package/dist/botframework-webchat-component.js.map +1 -1
- package/dist/botframework-webchat-component.mjs +1 -1
- package/dist/botframework-webchat-component.mjs.map +1 -1
- package/dist/chunk-4EA5WZBJ.mjs +80 -0
- package/dist/chunk-4EA5WZBJ.mjs.map +1 -0
- package/dist/{chunk-H5YR7OLF.js → chunk-B2XHGOQH.js} +2 -2
- package/dist/{chunk-H5YR7OLF.js.map → chunk-B2XHGOQH.js.map} +1 -1
- package/dist/chunk-C2RHHZZQ.mjs +2 -0
- package/dist/chunk-C2RHHZZQ.mjs.map +1 -0
- package/dist/{chunk-TYPS3H4I.mjs → chunk-FIPA3BLZ.mjs} +2 -2
- package/dist/{chunk-TYPS3H4I.mjs.map → chunk-FIPA3BLZ.mjs.map} +1 -1
- package/dist/{chunk-LVVCSDZ4.mjs → chunk-HWDSXHRJ.mjs} +2 -2
- package/dist/chunk-JCX7GSY7.js +2 -0
- package/dist/{chunk-2R7BJ63Z.js.map → chunk-JCX7GSY7.js.map} +1 -1
- package/dist/{chunk-U6OWCHTQ.js → chunk-K4QNZHM5.js} +2 -2
- package/dist/chunk-K4QNZHM5.js.map +1 -0
- package/dist/{chunk-MOJMHOVH.js → chunk-OJOV52AD.js} +2 -2
- package/dist/{chunk-MOJMHOVH.js.map → chunk-OJOV52AD.js.map} +1 -1
- package/dist/{chunk-GTOP3WPD.mjs → chunk-WPWJFSZC.mjs} +2 -2
- package/dist/chunk-WPWJFSZC.mjs.map +1 -0
- package/dist/chunk-ZUKHLDZN.js +80 -0
- package/dist/chunk-ZUKHLDZN.js.map +1 -0
- package/dist/{component-BtSxgJS5.d.mts → component-BeCWAilk.d.mts} +34 -43
- package/dist/{component-Fyy8iCRE.d.ts → component-BtDQyqSP.d.ts} +34 -43
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +12 -14
- package/src/ActivityStatus/SendStatus/private/SendFailedRetry.tsx +31 -0
- package/src/BasicToast.js +4 -5
- package/src/BasicToaster.js +2 -3
- package/src/Composer.tsx +0 -20
- package/src/Utils/InlineMarkdown.tsx +121 -0
- package/src/Utils/LocalizedString.tsx +123 -124
- package/src/Utils/addTargetBlankToHyperlinks.spec.ts +52 -0
- package/src/Utils/addTargetBlankToHyperlinks.ts +14 -0
- package/src/boot/internal.ts +7 -2
- package/src/hooks/internal/WebChatUIContext.ts +0 -2
- package/src/hooks/useRenderMarkdownAsHTML.ts +5 -3
- package/src/hooks/useStreamingMarkdownWithDefinitions.ts +2 -2
- package/src/private/renderMarkdownInline.ts +19 -0
- package/src/providers/CustomElements/customElements/CodeBlock.ts +2 -2
- package/dist/_dtsroll-chunks/Cha1SOtx-botframework-webchat-styles.react.d.ts +0 -38
- package/dist/chunk-2R7BJ63Z.js +0 -2
- package/dist/chunk-A4NDFSZM.mjs +0 -77
- package/dist/chunk-A4NDFSZM.mjs.map +0 -1
- package/dist/chunk-CNTMOACS.mjs +0 -2
- package/dist/chunk-CNTMOACS.mjs.map +0 -1
- package/dist/chunk-GTOP3WPD.mjs.map +0 -1
- package/dist/chunk-U6OWCHTQ.js.map +0 -1
- package/dist/chunk-VDF6GQAL.js +0 -77
- package/dist/chunk-VDF6GQAL.js.map +0 -1
- package/src/ActivityStatus/SendStatus/private/SendFailedRetry.js +0 -28
- package/src/Utils/InlineMarkdown.js +0 -154
- package/src/Utils/addTargetBlankToHyperlinksMarkdown.js +0 -28
- package/src/Utils/addTargetBlankToHyperlinksMarkdown.spec.js +0 -45
- package/src/Utils/betterLinks.ts +0 -157
- package/src/Utils/parseDocumentFragmentFromString.ts +0 -9
- package/src/Utils/serializeDocumentFragmentIntoString.ts +0 -3
- package/src/Utils/updateMarkdownAttrs.js +0 -10
- package/src/Utils/updateMarkdownAttrs.spec.js +0 -71
- package/src/Utils/walkMarkdownTokens.js +0 -15
- package/src/Utils/walkMarkdownTokens.spec.js +0 -18
- package/src/hooks/internal/useInternalMarkdownIt.js +0 -7
- package/src/hooks/internal/useInternalRenderMarkdownInline.js +0 -9
- /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
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
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
|
|
492
|
-
}>;
|
|
493
|
-
type
|
|
494
|
-
|
|
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
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
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
|
|
492
|
-
}>;
|
|
493
|
-
type
|
|
494
|
-
|
|
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;
|