@streamoid/agent 0.2.11 → 0.2.12

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 (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15235,7 +15235,7 @@ function normalizeUrlPath(e) {
15235
15235
  function slugify(e) {
15236
15236
  return e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "project-app";
15237
15237
  }
15238
- const APP_NAME = "Project App", APP_SLUG = slugify(APP_NAME), API_PREFIX = normalizeUrlPath(`/${APP_SLUG}/api/v1`), STORAGE_KEY = `${APP_SLUG}-theme`;
15238
+ const rawAppName = "CXO".trim(), rawAppSlug = "cxo".trim(), rawApiPrefix = "/stream-agent/api/v1".trim(), APP_NAME = rawAppName || "Project App", APP_SLUG = slugify(rawAppSlug || APP_NAME), API_PREFIX = normalizeUrlPath(rawApiPrefix || `/${APP_SLUG}/api/v1`), STORAGE_KEY = `${APP_SLUG}-theme`;
15239
15239
  function getSystemMode() {
15240
15240
  return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
15241
15241
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoid/agent",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "Native (no-iframe) embeddable Streamoid agent chat panel. Host renders <AgentPanel adapters={…}/>. Prebuilt bundle — source + build live in the stream-agent repo.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",