botframework-webchat 4.18.1-main.20250312.706dcd7 → 4.18.1-main.20250313.cd86ef9

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.
@@ -0,0 +1,3 @@
1
+ var v=Object.create;var i=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),j=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},O=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of L(t))!k.call(e,r)&&r!==o&&i(e,r,{get:()=>t[r],enumerable:!(n=A(t,r))||n.enumerable});return e};var G=(e,t,o)=>(o=e!=null?v(x(e)):{},O(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e));import*as F from"botframework-webchat-api/decorator";import{WebChatDecorator as I}from"botframework-webchat-component/decorator";import{Constants as Z,createStore as ee,createStoreWithDevTools as te,createStoreWithOptions as oe}from"botframework-webchat-core";import*as re from"botframework-webchat-component/internal";import h,{Components as ie,concatMiddleware as ae,createStyleSet as se,hooks as ce,testIds as pe,withEmoji as me}from"botframework-webchat-component";function l(){return!window.SpeechRecognition&&!window.webkitSpeechRecognition&&console.warn("Web Chat: This browser does not support Web Speech API Speech Recognition."),window.speechSynthesis||console.warn("Web Chat: This browser does not support Web Speech API Speech Synthesis."),()=>({SpeechGrammarList:window.SpeechGrammarList||window.webkitSpeechGrammarList,SpeechRecognition:window.SpeechRecognition||window.webkitSpeechRecognition,speechSynthesis:window.speechSynthesis,SpeechSynthesisUtterance:window.SpeechSynthesisUtterance})}import{DirectLine as P}from"botframework-directlinejs";function a({botAgent:e,conversationId:t,conversationStartProperties:o,domain:n,fetch:r,pollingInterval:f,secret:b,streamUrl:d,token:S,watermark:w,webSocket:y}){return new P({botAgent:e,conversationId:t,conversationStartProperties:o,domain:n,fetch:r,pollingInterval:f,secret:b,streamUrl:d,token:S,watermark:w,webSocket:y,createFormData:g=>{let m=new FormData;return g.forEach(({contentType:u,data:C,filename:W,name:D})=>{m.append(D,new Blob(C,{type:u}),W)}),m}})}import{DirectLineStreaming as R}from"botframework-directlinejs";function s({botAgent:e,conversationId:t,domain:o,token:n}){return Promise.resolve(new R({botAgent:e,conversationId:t,domain:o,token:n}))}import T from"react";import E from"react-dom";function c(e,t,o){E.render(T.createElement(e,{...t}),o)}var de=c.bind(null,h),B="tsup",M="esmodules",p="4.18.1-main.20250313.cd86ef9",Se=Object.freeze({buildTool:B,moduleFormat:M,variant:"minimal",version:p}),we=e=>(e.botAgent&&console.warn("Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details."),a({...e,botAgent:`WebChat/${p} (Minimal)`})),ye=e=>(e.botAgent&&console.warn("Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details."),s({...e,botAgent:`WebChat/${p} (Minimal)`})),ge=h,ue=Object.freeze({...F,WebChatDecorator:I});export{_ as a,j as b,G as c,a as d,s as e,l as f,c as g,Z as h,ee as i,te as j,oe as k,re as l,h as m,ie as n,ae as o,se as p,ce as q,pe as r,me as s,de as t,p as u,Se as v,we as w,ye as x,ge as y,ue as z};
2
+ /*! For license information please see chunk-DT4JEDVP.mjs.LEGAL.txt */
3
+ //# sourceMappingURL=chunk-DT4JEDVP.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/module/exports-minimal.ts","../src/createBrowserWebSpeechPonyfillFactory.ts","../src/createDirectLine.ts","../src/createDirectLineAppServiceExtension.ts","../src/renderWebChat.tsx"],"sourcesContent":["import { StrictStyleOptions, StyleOptions } from 'botframework-webchat-api';\nimport * as apiDecorator from 'botframework-webchat-api/decorator';\nimport { WebChatDecorator } from 'botframework-webchat-component/decorator';\nimport { Constants, createStore, createStoreWithDevTools, createStoreWithOptions } from 'botframework-webchat-core';\nimport * as internal from 'botframework-webchat-component/internal';\n\nimport ReactWebChat, {\n Components,\n concatMiddleware,\n createStyleSet,\n hooks,\n testIds,\n withEmoji\n} from 'botframework-webchat-component';\n\nimport createBrowserWebSpeechPonyfillFactory from '../createBrowserWebSpeechPonyfillFactory';\nimport defaultCreateDirectLine from '../createDirectLine';\nimport defaultCreateDirectLineAppServiceExtension from '../createDirectLineAppServiceExtension';\nimport coreRenderWebChat from '../renderWebChat';\n\nconst renderWebChat = coreRenderWebChat.bind(null, ReactWebChat);\n\nconst buildTool = process.env.build_tool;\nconst moduleFormat = process.env.module_format;\nconst version = process.env.npm_package_version;\n\nconst buildInfo = Object.freeze({\n buildTool,\n moduleFormat,\n variant: 'minimal',\n version\n});\n\nexport const createDirectLine = (options: Omit<Parameters<typeof defaultCreateDirectLine>[0], 'botAgent'>) => {\n (options as any).botAgent &&\n console.warn(\n 'Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details.'\n );\n\n return defaultCreateDirectLine({ ...options, botAgent: `WebChat/${version} (Minimal)` });\n};\n\nexport const createDirectLineAppServiceExtension = (\n options: Omit<Parameters<typeof defaultCreateDirectLineAppServiceExtension>[0], 'botAgent'>\n) => {\n (options as any).botAgent &&\n console.warn(\n 'Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details.'\n );\n\n return defaultCreateDirectLineAppServiceExtension({ ...options, botAgent: `WebChat/${version} (Minimal)` });\n};\n\nexport default ReactWebChat;\n\nconst decorator = Object.freeze({\n ...apiDecorator,\n WebChatDecorator\n});\n\nexport {\n buildInfo,\n Components,\n concatMiddleware,\n Constants,\n createBrowserWebSpeechPonyfillFactory,\n createStore,\n createStoreWithDevTools,\n createStoreWithOptions,\n createStyleSet,\n decorator,\n hooks,\n internal,\n ReactWebChat,\n renderWebChat,\n testIds,\n version,\n withEmoji\n};\n\nexport type { StrictStyleOptions, StyleOptions };\n","import { WebSpeechPonyfill } from 'botframework-webchat-api';\n\nexport default function createBrowserWebSpeechPonyfillFactory(): () => WebSpeechPonyfill {\n if (!window.SpeechRecognition && !window.webkitSpeechRecognition) {\n console.warn('Web Chat: This browser does not support Web Speech API Speech Recognition.');\n }\n\n if (!window.speechSynthesis) {\n console.warn('Web Chat: This browser does not support Web Speech API Speech Synthesis.');\n }\n\n return () => ({\n SpeechGrammarList: window.SpeechGrammarList || window.webkitSpeechGrammarList,\n SpeechRecognition: window.SpeechRecognition || window.webkitSpeechRecognition,\n speechSynthesis: window.speechSynthesis,\n SpeechSynthesisUtterance: window.SpeechSynthesisUtterance\n });\n}\n","import { DirectLine } from 'botframework-directlinejs';\n\ntype CreateDirectLineOptions = {\n botAgent?: string;\n conversationId?: string;\n conversationStartProperties?: any;\n domain?: string;\n fetch?: typeof window.fetch;\n pollingInterval?: number;\n secret?: string;\n streamUrl?: string;\n token?: string;\n watermark?: string;\n webSocket?: typeof WebSocket;\n};\n\nexport default function createDirectLine({\n botAgent,\n conversationId,\n conversationStartProperties,\n domain,\n fetch,\n pollingInterval,\n secret,\n streamUrl,\n token,\n watermark,\n webSocket\n}: CreateDirectLineOptions) {\n // TODO: [P3] Checks if DLJS supports ponyfilling fetch.\n return new DirectLine({\n botAgent,\n conversationId,\n conversationStartProperties,\n domain,\n fetch,\n pollingInterval,\n secret,\n streamUrl,\n token,\n watermark,\n webSocket,\n createFormData: attachments => {\n const formData = new FormData();\n\n attachments.forEach(\n ({\n contentType,\n data,\n filename,\n name\n }: {\n contentType?: string;\n data: BlobPart[];\n filename?: string;\n name?: string;\n }) => {\n formData.append(name, new Blob(data, { type: contentType }), filename);\n }\n );\n\n return formData;\n }\n } as any);\n}\n","import { DirectLineStreaming } from 'botframework-directlinejs';\n\nexport default function createDirectLineAppServiceExtension({\n botAgent,\n conversationId,\n domain,\n token\n}: {\n botAgent?: string;\n conversationId?: string;\n domain?: string;\n token: string;\n}): Promise<any> {\n return Promise.resolve(\n new DirectLineStreaming({\n botAgent,\n conversationId,\n domain,\n token\n })\n );\n}\n","import React, { ComponentType } from 'react';\nimport ReactDOM from 'react-dom';\n\nexport default function renderWebChat(ReactWebChat: ComponentType<any>, props: any, element: HTMLElement): void {\n ReactDOM.render(<ReactWebChat {...props} />, element);\n}\n"],"mappings":"wzBACA,UAAYA,MAAkB,qCAC9B,OAAS,oBAAAC,MAAwB,2CACjC,OAAS,aAAAC,GAAW,eAAAC,GAAa,2BAAAC,GAAyB,0BAAAC,OAA8B,4BACxF,UAAYC,OAAc,0CAE1B,OAAOC,GACL,cAAAC,GACA,oBAAAC,GACA,kBAAAC,GACA,SAAAC,GACA,WAAAC,GACA,aAAAC,OACK,iCCXQ,SAARC,GAAkF,CACvF,MAAI,CAAC,OAAO,mBAAqB,CAAC,OAAO,yBACvC,QAAQ,KAAK,4EAA4E,EAGtF,OAAO,iBACV,QAAQ,KAAK,0EAA0E,EAGlF,KAAO,CACZ,kBAAmB,OAAO,mBAAqB,OAAO,wBACtD,kBAAmB,OAAO,mBAAqB,OAAO,wBACtD,gBAAiB,OAAO,gBACxB,yBAA0B,OAAO,wBACnC,EACF,CCjBA,OAAS,cAAAC,MAAkB,4BAgBZ,SAARC,EAAkC,CACvC,SAAAC,EACA,eAAAC,EACA,4BAAAC,EACA,OAAAC,EACA,MAAAC,EACA,gBAAAC,EACA,OAAAC,EACA,UAAAC,EACA,MAAAC,EACA,UAAAC,EACA,UAAAC,CACF,EAA4B,CAE1B,OAAO,IAAIZ,EAAW,CACpB,SAAAE,EACA,eAAAC,EACA,4BAAAC,EACA,OAAAC,EACA,MAAAC,EACA,gBAAAC,EACA,OAAAC,EACA,UAAAC,EACA,MAAAC,EACA,UAAAC,EACA,UAAAC,EACA,eAAgBC,GAAe,CAC7B,IAAMC,EAAW,IAAI,SAErB,OAAAD,EAAY,QACV,CAAC,CACC,YAAAE,EACA,KAAAC,EACA,SAAAC,EACA,KAAAC,CACF,IAKM,CACJJ,EAAS,OAAOI,EAAM,IAAI,KAAKF,EAAM,CAAE,KAAMD,CAAY,CAAC,EAAGE,CAAQ,CACvE,CACF,EAEOH,CACT,CACF,CAAQ,CACV,CChEA,OAAS,uBAAAK,MAA2B,4BAErB,SAARC,EAAqD,CAC1D,SAAAC,EACA,eAAAC,EACA,OAAAC,EACA,MAAAC,CACF,EAKiB,CACf,OAAO,QAAQ,QACb,IAAIL,EAAoB,CACtB,SAAAE,EACA,eAAAC,EACA,OAAAC,EACA,MAAAC,CACF,CAAC,CACH,CACF,CCrBA,OAAOC,MAA8B,QACrC,OAAOC,MAAc,YAEN,SAARC,EAA+BC,EAAkCC,EAAYC,EAA4B,CAC9GJ,EAAS,OAAOD,EAAA,cAACG,EAAA,CAAc,GAAGC,EAAO,EAAIC,CAAO,CACtD,CJeA,IAAMC,GAAgBA,EAAkB,KAAK,KAAMC,CAAY,EAEzDC,EAAY,OACZC,EAAe,YACfC,EAAU,+BAEVC,GAAY,OAAO,OAAO,CAC9B,UAAAH,EACA,aAAAC,EACA,QAAS,UACT,QAAAC,CACF,CAAC,EAEYE,GAAoBC,IAC9BA,EAAgB,UACf,QAAQ,KACN,qJACF,EAEKD,EAAwB,CAAE,GAAGC,EAAS,SAAU,WAAWH,CAAO,YAAa,CAAC,GAG5EI,GACXD,IAECA,EAAgB,UACf,QAAQ,KACN,qJACF,EAEKC,EAA2C,CAAE,GAAGD,EAAS,SAAU,WAAWH,CAAO,YAAa,CAAC,GAGrGK,GAAQR,EAETS,GAAY,OAAO,OAAO,CAC9B,GAAGC,EACH,iBAAAC,CACF,CAAC","names":["apiDecorator","WebChatDecorator","Constants","createStore","createStoreWithDevTools","createStoreWithOptions","internal","ReactWebChat","Components","concatMiddleware","createStyleSet","hooks","testIds","withEmoji","createBrowserWebSpeechPonyfillFactory","DirectLine","createDirectLine","botAgent","conversationId","conversationStartProperties","domain","fetch","pollingInterval","secret","streamUrl","token","watermark","webSocket","attachments","formData","contentType","data","filename","name","DirectLineStreaming","createDirectLineAppServiceExtension","botAgent","conversationId","domain","token","React","ReactDOM","renderWebChat","ReactWebChat","props","element","renderWebChat","ReactWebChat","buildTool","moduleFormat","version","buildInfo","createDirectLine","options","createDirectLineAppServiceExtension","exports_minimal_default","decorator","apiDecorator","WebChatDecorator"]}
1
+ {"version":3,"sources":["../src/module/exports-minimal.ts","../src/createBrowserWebSpeechPonyfillFactory.ts","../src/createDirectLine.ts","../src/createDirectLineAppServiceExtension.ts","../src/renderWebChat.tsx"],"sourcesContent":["import { StrictStyleOptions, StyleOptions } from 'botframework-webchat-api';\nimport * as apiDecorator from 'botframework-webchat-api/decorator';\nimport { WebChatDecorator } from 'botframework-webchat-component/decorator';\nimport { Constants, createStore, createStoreWithDevTools, createStoreWithOptions } from 'botframework-webchat-core';\nimport * as internal from 'botframework-webchat-component/internal';\n\nimport ReactWebChat, {\n Components,\n concatMiddleware,\n createStyleSet,\n hooks,\n testIds,\n withEmoji\n} from 'botframework-webchat-component';\n\nimport createBrowserWebSpeechPonyfillFactory from '../createBrowserWebSpeechPonyfillFactory';\nimport defaultCreateDirectLine from '../createDirectLine';\nimport defaultCreateDirectLineAppServiceExtension from '../createDirectLineAppServiceExtension';\nimport coreRenderWebChat from '../renderWebChat';\n\nconst renderWebChat = coreRenderWebChat.bind(null, ReactWebChat);\n\nconst buildTool = process.env.build_tool;\nconst moduleFormat = process.env.module_format;\nconst version = process.env.npm_package_version;\n\nconst buildInfo = Object.freeze({\n buildTool,\n moduleFormat,\n variant: 'minimal',\n version\n});\n\nexport const createDirectLine = (options: Omit<Parameters<typeof defaultCreateDirectLine>[0], 'botAgent'>) => {\n (options as any).botAgent &&\n console.warn(\n 'Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details.'\n );\n\n return defaultCreateDirectLine({ ...options, botAgent: `WebChat/${version} (Minimal)` });\n};\n\nexport const createDirectLineAppServiceExtension = (\n options: Omit<Parameters<typeof defaultCreateDirectLineAppServiceExtension>[0], 'botAgent'>\n) => {\n (options as any).botAgent &&\n console.warn(\n 'Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details.'\n );\n\n return defaultCreateDirectLineAppServiceExtension({ ...options, botAgent: `WebChat/${version} (Minimal)` });\n};\n\nexport default ReactWebChat;\n\nconst decorator = Object.freeze({\n ...apiDecorator,\n WebChatDecorator\n});\n\nexport {\n buildInfo,\n Components,\n concatMiddleware,\n Constants,\n createBrowserWebSpeechPonyfillFactory,\n createStore,\n createStoreWithDevTools,\n createStoreWithOptions,\n createStyleSet,\n decorator,\n hooks,\n internal,\n ReactWebChat,\n renderWebChat,\n testIds,\n version,\n withEmoji\n};\n\nexport type { StrictStyleOptions, StyleOptions };\n","import { WebSpeechPonyfill } from 'botframework-webchat-api';\n\nexport default function createBrowserWebSpeechPonyfillFactory(): () => WebSpeechPonyfill {\n if (!window.SpeechRecognition && !window.webkitSpeechRecognition) {\n console.warn('Web Chat: This browser does not support Web Speech API Speech Recognition.');\n }\n\n if (!window.speechSynthesis) {\n console.warn('Web Chat: This browser does not support Web Speech API Speech Synthesis.');\n }\n\n return () => ({\n SpeechGrammarList: window.SpeechGrammarList || window.webkitSpeechGrammarList,\n SpeechRecognition: window.SpeechRecognition || window.webkitSpeechRecognition,\n speechSynthesis: window.speechSynthesis,\n SpeechSynthesisUtterance: window.SpeechSynthesisUtterance\n });\n}\n","import { DirectLine } from 'botframework-directlinejs';\n\ntype CreateDirectLineOptions = {\n botAgent?: string;\n conversationId?: string;\n conversationStartProperties?: any;\n domain?: string;\n fetch?: typeof window.fetch;\n pollingInterval?: number;\n secret?: string;\n streamUrl?: string;\n token?: string;\n watermark?: string;\n webSocket?: typeof WebSocket;\n};\n\nexport default function createDirectLine({\n botAgent,\n conversationId,\n conversationStartProperties,\n domain,\n fetch,\n pollingInterval,\n secret,\n streamUrl,\n token,\n watermark,\n webSocket\n}: CreateDirectLineOptions) {\n // TODO: [P3] Checks if DLJS supports ponyfilling fetch.\n return new DirectLine({\n botAgent,\n conversationId,\n conversationStartProperties,\n domain,\n fetch,\n pollingInterval,\n secret,\n streamUrl,\n token,\n watermark,\n webSocket,\n createFormData: attachments => {\n const formData = new FormData();\n\n attachments.forEach(\n ({\n contentType,\n data,\n filename,\n name\n }: {\n contentType?: string;\n data: BlobPart[];\n filename?: string;\n name?: string;\n }) => {\n formData.append(name, new Blob(data, { type: contentType }), filename);\n }\n );\n\n return formData;\n }\n } as any);\n}\n","import { DirectLineStreaming } from 'botframework-directlinejs';\n\nexport default function createDirectLineAppServiceExtension({\n botAgent,\n conversationId,\n domain,\n token\n}: {\n botAgent?: string;\n conversationId?: string;\n domain?: string;\n token: string;\n}): Promise<any> {\n return Promise.resolve(\n new DirectLineStreaming({\n botAgent,\n conversationId,\n domain,\n token\n })\n );\n}\n","import React, { ComponentType } from 'react';\nimport ReactDOM from 'react-dom';\n\nexport default function renderWebChat(ReactWebChat: ComponentType<any>, props: any, element: HTMLElement): void {\n ReactDOM.render(<ReactWebChat {...props} />, element);\n}\n"],"mappings":"+jBACA,UAAYA,MAAkB,qCAC9B,OAAS,oBAAAC,MAAwB,2CACjC,OAAS,aAAAC,EAAW,eAAAC,GAAa,2BAAAC,GAAyB,0BAAAC,OAA8B,4BACxF,UAAYC,OAAc,0CAE1B,OAAOC,GACL,cAAAC,GACA,oBAAAC,GACA,kBAAAC,GACA,SAAAC,GACA,WAAAC,GACA,aAAAC,OACK,iCCXQ,SAARC,GAAkF,CACvF,MAAI,CAAC,OAAO,mBAAqB,CAAC,OAAO,yBACvC,QAAQ,KAAK,4EAA4E,EAGtF,OAAO,iBACV,QAAQ,KAAK,0EAA0E,EAGlF,KAAO,CACZ,kBAAmB,OAAO,mBAAqB,OAAO,wBACtD,kBAAmB,OAAO,mBAAqB,OAAO,wBACtD,gBAAiB,OAAO,gBACxB,yBAA0B,OAAO,wBACnC,EACF,CCjBA,OAAS,cAAAC,MAAkB,4BAgBZ,SAARC,EAAkC,CACvC,SAAAC,EACA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5EI,GACXD,IAECA,EAAgB,UACf,QAAQ,KACN,qJACF,EAEKC,EAA2C,CAAE,GAAGD,EAAS,SAAU,WAAWH,CAAO,YAAa,CAAC,GAGrGK,GAAQR,EAETS,GAAY,OAAO,OAAO,CAC9B,GAAGC,EACH,iBAAAC,CACF,CAAC","names":["apiDecorator","WebChatDecorator","Constants","createStore","createStoreWithDevTools","createStoreWithOptions","internal","ReactWebChat","Components","concatMiddleware","createStyleSet","hooks","testIds","withEmoji","createBrowserWebSpeechPonyfillFactory","DirectLine","createDirectLine","botAgent","conversationId","conversationStartProperties","domain","fetch","pollingInterval","secret","streamUrl","token","watermark","webSocket","attachments","formData","contentType","data","filename","name","DirectLineStreaming","createDirectLineAppServiceExtension","botAgent","conversationId","domain","token","React","ReactDOM","renderWebChat","ReactWebChat","props","element","renderWebChat","ReactWebChat","buildTool","moduleFormat","version","buildInfo","createDirectLine","options","createDirectLineAppServiceExtension","exports_minimal_default","decorator","apiDecorator","WebChatDecorator"]}
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var x=Object.create;var i=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var R=Reflect.get;var f=e=>{throw TypeError(e)};var T=(e,t,o)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$= exports.b =(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},E=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of O(t))!P.call(e,n)&&n!==o&&i(e,n,{get:()=>t[n],enumerable:!(r=k(t,n))||r.enumerable});return e};var H=(e,t,o)=>(o=e!=null?x(h(e)):{},E(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e));var q=(e,t,o)=>T(e,typeof t!="symbol"?t+"":t,o),a=(e,t,o)=>t.has(e)||f("Cannot "+o);var J=(e,t,o)=>(a(e,t,"read from private field"),o?o.call(e):t.get(e)),K= exports.f =(e,t,o)=>t.has(e)?f("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),N= exports.g =(e,t,o,r)=>(a(e,t,"write to private field"),r?r.call(e,o):t.set(e,o),o),Q= exports.h =(e,t,o)=>(a(e,t,"access private method"),o);var V=(e,t,o)=>R(h(e),o,t);var _decorator = require('botframework-webchat-api/decorator'); var _ = _interopRequireWildcard(_decorator);var _decorator2 = require('botframework-webchat-component/decorator');var _botframeworkwebchatcore = require('botframework-webchat-core');var _internal = require('botframework-webchat-component/internal'); var fe = _interopRequireWildcard(_internal);var _botframeworkwebchatcomponent = require('botframework-webchat-component'); var _botframeworkwebchatcomponent2 = _interopRequireDefault(_botframeworkwebchatcomponent);function b(){return!window.SpeechRecognition&&!window.webkitSpeechRecognition&&console.warn("Web Chat: This browser does not support Web Speech API Speech Recognition."),window.speechSynthesis||console.warn("Web Chat: This browser does not support Web Speech API Speech Synthesis."),()=>({SpeechGrammarList:window.SpeechGrammarList||window.webkitSpeechGrammarList,SpeechRecognition:window.SpeechRecognition||window.webkitSpeechRecognition,speechSynthesis:window.speechSynthesis,SpeechSynthesisUtterance:window.SpeechSynthesisUtterance})}var _botframeworkdirectlinejs = require('botframework-directlinejs');function s({botAgent:e,conversationId:t,conversationStartProperties:o,domain:r,fetch:n,pollingInterval:S,secret:w,streamUrl:y,token:g,watermark:u,webSocket:C}){return new (0, _botframeworkdirectlinejs.DirectLine)({botAgent:e,conversationId:t,conversationStartProperties:o,domain:r,fetch:n,pollingInterval:S,secret:w,streamUrl:y,token:g,watermark:u,webSocket:C,createFormData:W=>{let l=new FormData;return W.forEach(({contentType:D,data:v,filename:A,name:L})=>{l.append(L,new Blob(v,{type:D}),A)}),l}})}function c({botAgent:e,conversationId:t,domain:o,token:r}){return Promise.resolve(new (0, _botframeworkdirectlinejs.DirectLineStreaming)({botAgent:e,conversationId:t,domain:o,token:r}))}var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _reactdom = require('react-dom'); var _reactdom2 = _interopRequireDefault(_reactdom);function p(e,t,o){_reactdom2.default.render(_react2.default.createElement(e,{...t}),o)}var Ae=p.bind(null,_botframeworkwebchatcomponent2.default),G="tsup",U="esmodules",m= exports.A ="4.18.1-main.20250313.cd86ef9",Le= exports.B =Object.freeze({buildTool:G,moduleFormat:U,variant:"minimal",version:m}),xe= exports.C =e=>(e.botAgent&&console.warn("Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details."),s({...e,botAgent:`WebChat/${m} (Minimal)`})),ke= exports.D =e=>(e.botAgent&&console.warn("Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details."),c({...e,botAgent:`WebChat/${m} (Minimal)`})),Oe= exports.E =_botframeworkwebchatcomponent2.default,Pe= exports.F =Object.freeze({..._,WebChatDecorator:_decorator2.WebChatDecorator});exports.a = z; exports.b = $; exports.c = H; exports.d = q; exports.e = J; exports.f = K; exports.g = N; exports.h = Q; exports.i = V; exports.j = s; exports.k = c; exports.l = b; exports.m = p; exports.n = _botframeworkwebchatcore.Constants; exports.o = _botframeworkwebchatcore.createStore; exports.p = _botframeworkwebchatcore.createStoreWithDevTools; exports.q = _botframeworkwebchatcore.createStoreWithOptions; exports.r = fe; exports.s = _botframeworkwebchatcomponent2.default; exports.t = _botframeworkwebchatcomponent.Components; exports.u = _botframeworkwebchatcomponent.concatMiddleware; exports.v = _botframeworkwebchatcomponent.createStyleSet; exports.w = _botframeworkwebchatcomponent.hooks; exports.x = _botframeworkwebchatcomponent.testIds; exports.y = _botframeworkwebchatcomponent.withEmoji; exports.z = Ae; exports.A = m; exports.B = Le; exports.C = xe; exports.D = ke; exports.E = Oe; exports.F = Pe;
2
+ /*! For license information please see chunk-LKW24LYQ.js.LEGAL.txt */
3
+ //# sourceMappingURL=chunk-LKW24LYQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/__w/1/s/BotFramework-WebChat/packages/bundle/dist/chunk-LKW24LYQ.js","../src/module/exports-minimal.ts","../src/createBrowserWebSpeechPonyfillFactory.ts","../src/createDirectLine.ts","../src/createDirectLineAppServiceExtension.ts","../src/renderWebChat.tsx"],"names":["createBrowserWebSpeechPonyfillFactory","createDirectLine","botAgent","conversationId","conversationStartProperties","domain","fetch","pollingInterval","secret","streamUrl","token","watermark","webSocket","DirectLine","attachments","formData","contentType","data","filename","name","createDirectLineAppServiceExtension","DirectLineStreaming","renderWebChat","ReactWebChat","props","element","ReactDOM","React","buildTool","moduleFormat","version","buildInfo","options","exports_minimal_default","decorator","apiDecorator","WebChatDecorator"],"mappings":"AAAA,+bAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,YAAY,CA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A,CAAA,CAAc,GAAGC,CAAAA,CAAO,CAAA,CAAIC,CAAO,CACtD,CJeA,IAAMH,EAAAA,CAAgBA,CAAAA,CAAkB,IAAA,CAAK,IAAA,CAAMC,sCAAY,CAAA,CAEzDK,CAAAA,CAAY,MAAA,CACZC,CAAAA,CAAe,WAAA,CACfC,CAAAA,aAAU,8BAAA,CAEVC,EAAAA,aAAY,MAAA,CAAO,MAAA,CAAO,CAC9B,SAAA,CAAAH,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,OAAA,CAAS,SAAA,CACT,OAAA,CAAAC,CACF,CAAC,CAAA,CAEY7B,EAAAA,aAAoB+B,CAAAA,EAAAA,CAC9BA,CAAAA,CAAgB,QAAA,EACf,OAAA,CAAQ,IAAA,CACN,qJACF,CAAA,CAEK/B,CAAAA,CAAwB,CAAE,GAAG+B,CAAAA,CAAS,QAAA,CAAU,CAAA,QAAA,EAAWF,CAAO,CAAA,UAAA,CAAa,CAAC,CAAA,CAAA,CAG5EV,EAAAA,aACXY,CAAAA,EAAAA,CAECA,CAAAA,CAAgB,QAAA,EACf,OAAA,CAAQ,IAAA,CACN,qJACF,CAAA,CAEKZ,CAAAA,CAA2C,CAAE,GAAGY,CAAAA,CAAS,QAAA,CAAU,CAAA,QAAA,EAAWF,CAAO,CAAA,UAAA,CAAa,CAAC,CAAA,CAAA,CAGrGG,EAAAA,aAAQV,sCAAAA,CAETW,EAAAA,aAAY,MAAA,CAAO,MAAA,CAAO,CAC9B,GAAGC,CAAAA,CACH,gBAAA,CAAAC,4BACF,CAAC,CAAA,CAAA,u5BAAA;ADzDD","file":"/__w/1/s/BotFramework-WebChat/packages/bundle/dist/chunk-LKW24LYQ.js","sourcesContent":[null,"import { StrictStyleOptions, StyleOptions } from 'botframework-webchat-api';\nimport * as apiDecorator from 'botframework-webchat-api/decorator';\nimport { WebChatDecorator } from 'botframework-webchat-component/decorator';\nimport { Constants, createStore, createStoreWithDevTools, createStoreWithOptions } from 'botframework-webchat-core';\nimport * as internal from 'botframework-webchat-component/internal';\n\nimport ReactWebChat, {\n Components,\n concatMiddleware,\n createStyleSet,\n hooks,\n testIds,\n withEmoji\n} from 'botframework-webchat-component';\n\nimport createBrowserWebSpeechPonyfillFactory from '../createBrowserWebSpeechPonyfillFactory';\nimport defaultCreateDirectLine from '../createDirectLine';\nimport defaultCreateDirectLineAppServiceExtension from '../createDirectLineAppServiceExtension';\nimport coreRenderWebChat from '../renderWebChat';\n\nconst renderWebChat = coreRenderWebChat.bind(null, ReactWebChat);\n\nconst buildTool = process.env.build_tool;\nconst moduleFormat = process.env.module_format;\nconst version = process.env.npm_package_version;\n\nconst buildInfo = Object.freeze({\n buildTool,\n moduleFormat,\n variant: 'minimal',\n version\n});\n\nexport const createDirectLine = (options: Omit<Parameters<typeof defaultCreateDirectLine>[0], 'botAgent'>) => {\n (options as any).botAgent &&\n console.warn(\n 'Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details.'\n );\n\n return defaultCreateDirectLine({ ...options, botAgent: `WebChat/${version} (Minimal)` });\n};\n\nexport const createDirectLineAppServiceExtension = (\n options: Omit<Parameters<typeof defaultCreateDirectLineAppServiceExtension>[0], 'botAgent'>\n) => {\n (options as any).botAgent &&\n console.warn(\n 'Web Chat: Developers are not currently allowed to set botAgent. See https://github.com/microsoft/BotFramework-WebChat/issues/2119 for more details.'\n );\n\n return defaultCreateDirectLineAppServiceExtension({ ...options, botAgent: `WebChat/${version} (Minimal)` });\n};\n\nexport default ReactWebChat;\n\nconst decorator = Object.freeze({\n ...apiDecorator,\n WebChatDecorator\n});\n\nexport {\n buildInfo,\n Components,\n concatMiddleware,\n Constants,\n createBrowserWebSpeechPonyfillFactory,\n createStore,\n createStoreWithDevTools,\n createStoreWithOptions,\n createStyleSet,\n decorator,\n hooks,\n internal,\n ReactWebChat,\n renderWebChat,\n testIds,\n version,\n withEmoji\n};\n\nexport type { StrictStyleOptions, StyleOptions };\n","import { WebSpeechPonyfill } from 'botframework-webchat-api';\n\nexport default function createBrowserWebSpeechPonyfillFactory(): () => WebSpeechPonyfill {\n if (!window.SpeechRecognition && !window.webkitSpeechRecognition) {\n console.warn('Web Chat: This browser does not support Web Speech API Speech Recognition.');\n }\n\n if (!window.speechSynthesis) {\n console.warn('Web Chat: This browser does not support Web Speech API Speech Synthesis.');\n }\n\n return () => ({\n SpeechGrammarList: window.SpeechGrammarList || window.webkitSpeechGrammarList,\n SpeechRecognition: window.SpeechRecognition || window.webkitSpeechRecognition,\n speechSynthesis: window.speechSynthesis,\n SpeechSynthesisUtterance: window.SpeechSynthesisUtterance\n });\n}\n","import { DirectLine } from 'botframework-directlinejs';\n\ntype CreateDirectLineOptions = {\n botAgent?: string;\n conversationId?: string;\n conversationStartProperties?: any;\n domain?: string;\n fetch?: typeof window.fetch;\n pollingInterval?: number;\n secret?: string;\n streamUrl?: string;\n token?: string;\n watermark?: string;\n webSocket?: typeof WebSocket;\n};\n\nexport default function createDirectLine({\n botAgent,\n conversationId,\n conversationStartProperties,\n domain,\n fetch,\n pollingInterval,\n secret,\n streamUrl,\n token,\n watermark,\n webSocket\n}: CreateDirectLineOptions) {\n // TODO: [P3] Checks if DLJS supports ponyfilling fetch.\n return new DirectLine({\n botAgent,\n conversationId,\n conversationStartProperties,\n domain,\n fetch,\n pollingInterval,\n secret,\n streamUrl,\n token,\n watermark,\n webSocket,\n createFormData: attachments => {\n const formData = new FormData();\n\n attachments.forEach(\n ({\n contentType,\n data,\n filename,\n name\n }: {\n contentType?: string;\n data: BlobPart[];\n filename?: string;\n name?: string;\n }) => {\n formData.append(name, new Blob(data, { type: contentType }), filename);\n }\n );\n\n return formData;\n }\n } as any);\n}\n","import { DirectLineStreaming } from 'botframework-directlinejs';\n\nexport default function createDirectLineAppServiceExtension({\n botAgent,\n conversationId,\n domain,\n token\n}: {\n botAgent?: string;\n conversationId?: string;\n domain?: string;\n token: string;\n}): Promise<any> {\n return Promise.resolve(\n new DirectLineStreaming({\n botAgent,\n conversationId,\n domain,\n token\n })\n );\n}\n","import React, { ComponentType } from 'react';\nimport ReactDOM from 'react-dom';\n\nexport default function renderWebChat(ReactWebChat: ComponentType<any>, props: any, element: HTMLElement): void {\n ReactDOM.render(<ReactWebChat {...props} />, element);\n}\n"]}