kore-web-sdk 11.21.0 → 11.21.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/README.md +13 -3
- package/dist/components/chatwindow/chatWindow.d.ts +0 -1
- package/dist/esm/kore-web-sdk-chat.min.js +1 -1
- package/dist/esm/kore-web-sdk-widgets.js +1 -1
- package/dist/esm/plugins/agent-desktop.js +1 -1
- package/dist/esm/plugins/answers-template.js +1 -1
- package/dist/esm/plugins/kore-graph-templates-plugin.js +1 -1
- package/dist/esm/plugins/v2-kore-web-sdk-widgets.js +1 -1
- package/dist/plugins/answers/templates/imagePreviewTemplate/imagePreviewTemplate.d.ts +3 -0
- package/dist/umd/kore-web-sdk-umd-chat.min.js +1 -1
- package/dist/umd/kore-web-sdk-umd-widgets.js +1 -1
- package/dist/umd/plugins/agent-desktop-umd.js +1 -1
- package/dist/umd/plugins/answers-template.js +1 -1
- package/dist/umd/plugins/kore-graph-templates-plugin-umd.js +1 -1
- package/dist/umd/plugins/v2-kore-web-sdk-widgets.js +1 -1
- package/package.json +1 -1
- package/dist/plugins/answers/templates/carouselImagePopupTemplate/carouselImagePopupTemplate.d.ts +0 -3
- /package/dist/plugins/answers/templates/{carouselImagePopupTemplate → imagePreviewTemplate}/imageCarouselSvgIcons.d.ts +0 -0
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ include the following script in your html file and configure bot configurations
|
|
|
71
71
|
|
|
72
72
|
```js
|
|
73
73
|
|
|
74
|
-
<script src="https://cdn.jsdelivr.net/npm/kore-web-sdk@11.21.
|
|
74
|
+
<script src="https://cdn.jsdelivr.net/npm/kore-web-sdk@11.21.1/dist/umd/kore-web-sdk-umd-chat.min.js"></script>
|
|
75
75
|
<script>
|
|
76
76
|
//chat window declaration
|
|
77
77
|
var chatConfig=KoreChatSDK.chatConfig;
|
|
@@ -143,15 +143,25 @@ Other framework UI components like angular and react can also be injected with t
|
|
|
143
143
|
|
|
144
144
|
## 💡 Plugins
|
|
145
145
|
|
|
146
|
-
Kore's chatwindow functionlity can be extended with the help of plugins.Newly created plugins can be installed with *installPlugin* method
|
|
146
|
+
Kore's chatwindow functionlity can be extended with the help of plugins. Newly created plugins can be installed with *installPlugin* method
|
|
147
147
|
|
|
148
148
|
```bash
|
|
149
|
-
class KoreCustomPlugin{
|
|
149
|
+
class KoreCustomPlugin {
|
|
150
150
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
chatWindowInstance.installPlugin(new KoreCustomPlugin());
|
|
154
154
|
```
|
|
155
|
+
|
|
156
|
+
Kore plugins can be installed as shown below.
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
|
|
160
|
+
import { AnswersTemplatesPlugin } from 'kore-web-sdk';
|
|
161
|
+
|
|
162
|
+
chatWindowInstance.installPlugin(new AnswersTemplatesPlugin());
|
|
163
|
+
```
|
|
164
|
+
|
|
155
165
|
Kore offered plugins are listed [here](./docs/plugins)
|
|
156
166
|
|
|
157
167
|
|
|
@@ -150,7 +150,6 @@ declare class chatWindow extends EventEmitter {
|
|
|
150
150
|
constructor();
|
|
151
151
|
paginatedScrollMsgDiv: any;
|
|
152
152
|
init(config: any): void;
|
|
153
|
-
installDefaultPlugins(): void;
|
|
154
153
|
installCallbackForPlugins(): void;
|
|
155
154
|
show(config: any): false | undefined;
|
|
156
155
|
initShow(config: any): void;
|