@morgan-and-morgan/intake-agent 1.0.0-alpha.7 → 1.0.0-alpha.8

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 CHANGED
@@ -21,6 +21,10 @@ placeholder, don't bump it by hand.
21
21
  | `release/**` | `x.y.z-beta.N` | `beta` |
22
22
  | `main` | `x.y.z` | `latest` |
23
23
 
24
+ Each bundle also carries its matching chat environment: development for
25
+ `alpha`, UAT for `beta`, and production for `latest`. `data-chat-url` remains
26
+ an explicit override.
27
+
24
28
  `fix:` bumps the patch, `feat:` the minor, a `BREAKING CHANGE:` footer the
25
29
  major. Every release is tagged `intake-agent-vx.y.z`.
26
30
 
@@ -28,5 +32,5 @@ major. Every release is tagged `intake-agent-vx.y.z`.
28
32
 
29
33
  | Attribute | Default | Purpose |
30
34
  | --- | --- | --- |
31
- | `data-chat-url` | `/embed/intake` | Chat iframe target (resolved against the loader's origin) |
35
+ | `data-chat-url` | Release environment URL | Chat iframe target |
32
36
  | `data-auto-open` | `false` | Open the chat immediately after mount |
Binary file
@@ -1,10 +1,10 @@
1
1
  (function() {
2
2
  "use strict";
3
- const DEFAULT_CHAT_PATH = "/embed/intake";
4
3
  const readLoaderConfig = (script, baseUri) => {
5
4
  var _a;
6
5
  const scriptUrl = new URL(script.src, baseUri);
7
- const chatUrl = new URL((_a = script.dataset.chatUrl) != null ? _a : DEFAULT_CHAT_PATH, scriptUrl).href;
6
+ const bundledChatUrl = "https://chat.mx2.dev/embed/intake";
7
+ const chatUrl = new URL((_a = script.dataset.chatUrl) != null ? _a : bundledChatUrl, scriptUrl).href;
8
8
  return {
9
9
  assetBaseUrl: new URL(".", scriptUrl).href,
10
10
  autoOpen: script.dataset.autoOpen === "true",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morgan-and-morgan/intake-agent",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-alpha.8",
4
4
  "description": "Embeddable chat widget loader.",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
@@ -23,6 +23,7 @@
23
23
  "build": "pnpm run build:bundle",
24
24
  "build:bundle": "node scripts/generate-icons.mjs && vite build",
25
25
  "generate:icons": "node scripts/generate-icons.mjs",
26
+ "test": "node --test src/release-config.test.mjs",
26
27
  "typecheck": "tsc --noEmit",
27
28
  "lint": "eslint \"src/**/*.ts\" --quiet",
28
29
  "lint:fix": "eslint \"src/**/*.ts\" --quiet --fix",