@botfabrik/engine-webclient 4.123.0 → 4.123.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/dist/index.js CHANGED
@@ -60,8 +60,8 @@ export default (clientName, environment, props) => async (bot) => {
60
60
  router.get('/embed/bundle.js', (req, res) => {
61
61
  const caller = req.query['caller'];
62
62
  const referer = req.get('referer')?.toLowerCase();
63
- const enabledUrls = Array.isArray(props.enabledOnUrls)
64
- ? props.enabledOnUrls
63
+ const enabledUrls = Array.isArray(props.enableOnUrls)
64
+ ? props.enableOnUrls
65
65
  : [];
66
66
  const isEmbedPage = !!referer?.startsWith(bot.webserver.baseUrl.toLowerCase());
67
67
  const isUrlEnabled = isEmbedPage ||
@@ -154,7 +154,7 @@ const serveStaticOptions = {
154
154
  }
155
155
  },
156
156
  };
157
- const isConditionallyEnabled = ({ enabledOnUrls = true }) => {
157
+ const isConditionallyEnabled = ({ enableOnUrls: enabledOnUrls = true, }) => {
158
158
  return enabledOnUrls !== true;
159
159
  };
160
160
  const onTerminateSession = (socket, bot) => async ({ sessionId, // passed if the user wants to restart the chat
package/dist/types.d.ts CHANGED
@@ -125,7 +125,7 @@ export interface WebClientProps {
125
125
  *
126
126
  * @default true
127
127
  */
128
- enabledOnUrls?: boolean | string[];
128
+ enableOnUrls?: boolean | string[];
129
129
  /**
130
130
  * SAML authentication configuration for the web client.
131
131
  * If set, users must authenticate via SAML before accessing the chat.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.123.0",
3
+ "version": "4.123.1",
4
4
  "description": "Webclient for Botfabriks Bot Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -55,5 +55,5 @@
55
55
  "tsx": "^4.22.3",
56
56
  "typescript": "6.0.3"
57
57
  },
58
- "gitHead": "cfec83549c767f687e065e9c679e8f0712f9050c"
58
+ "gitHead": "462f008dddf4005eedd8a409482f3ddc58ae2ee4"
59
59
  }