{
  "packageName": "artu-widget",
  "generatedAt": "2026-09-23T18:52:52.598Z",
  "latest": {
    "version": "5.1.0",
    "latestUrl": "./latest/widget.min.js",
    "stableUrl": "./widget.min.js",
    "versionedUrl": "./releases/artu-widget-5.1.0.min.js",
    "pageUrl": "./releases/5.1.0/",
    "sizeBytes": 180887
  },
  "releases": [
    {
      "version": "5.1.0",
      "releasedAt": "2026-04-02",
      "commitSha": "682e7332fd78f7c4c42f6b361bd250bfe6360f21",
      "summary": "Adds embeddable cart/catalog widget as a separate bundle (cart.min.js) for displaying product menus from WhatsApp-linked ordering flows.",
      "highlights": [
        "New cart widget bundle (cart.min.js, 49KB / 16KB gzip) — independent from chat, shares auth infrastructure.",
        "Product catalog displayed as a card grid grouped by category with scrollable pill tabs.",
        "Zustand-powered cart with localStorage persistence across sessions.",
        "Two modes: fullscreen (for WhatsApp deep links) and embedded (data-mode=\"cart-embedded\" with data-target selector).",
        "Bottom drawer with editable item list, quantities, notes field, and total.",
        "Shadow DOM isolation, theming via --wc-* CSS variables, i18n (es/en).",
        "Public API: window.WebcartWidget with setTheme(), setLocale(), destroy().",
        "CDN build now includes cart.min.js alongside widget.min.js with live example pages."
      ],
      "breakingChanges": [],
      "fileName": "artu-widget-5.1.0.min.js",
      "url": "./releases/artu-widget-5.1.0.min.js",
      "pageUrl": "./releases/5.1.0/",
      "sizeBytes": 194886,
      "isLatest": true
    },
    {
      "version": "5.0.0",
      "releasedAt": "2026-03-26",
      "commitSha": "0000000000000000000000000000000000000000",
      "summary": "Adds embedded chat mode, Artu brand identity, and default logo avatar.",
      "highlights": [
        "New embedded mode: render a full-size inline chat via data-mode=\"embedded\" and data-target=\"#selector\" — no floating bubble, always visible.",
        "Extracts all session/message logic into a reusable useChatSession hook shared by both bubble and embedded modes.",
        "Rebrands default theme to Artu colors: primary #2B5EA7, silver/gray #A8AAAE throughout the widget and CDN pages.",
        "Replaces the default lock icon avatar with the Artu logo embedded as base64 WebP in the bundle.",
        "CDN catalog page updated with Artu brand palette and live example links (bubble, dark, embedded)."
      ],
      "breakingChanges": [
        "Default theme colors changed from purple (#7C3AED) to Artu blue (#2B5EA7) — existing embeds using data-theme overrides are unaffected."
      ],
      "fileName": "artu-widget-5.0.0.min.js",
      "url": "./releases/artu-widget-5.0.0.min.js",
      "pageUrl": "./releases/5.0.0/",
      "sizeBytes": 194886,
      "isLatest": false
    },
    {
      "version": "4.1.0",
      "releasedAt": "2026-03-24",
      "commitSha": "c6bf311d23d2a221e6f488389fc1ade356223d70",
      "summary": "Adds data-visible-class attribute for conditional widget visibility based on a body CSS class.",
      "highlights": [
        "New data-visible-class attribute: when set, the widget host is hidden by default and only shown when document.body contains the specified CSS class.",
        "Uses a MutationObserver on body class changes for instant show/hide without polling.",
        "Enables host apps to control widget visibility during client-side navigation (e.g. hide on login, show on dashboard) without needing to destroy/recreate the widget."
      ],
      "breakingChanges": [],
      "fileName": "artu-widget-4.1.0.min.js",
      "url": "./releases/artu-widget-4.1.0.min.js",
      "pageUrl": "./releases/4.1.0/",
      "sizeBytes": 164483,
      "isLatest": false
    },
    {
      "version": "4.0.0",
      "releasedAt": "2026-03-23",
      "commitSha": "eeb02828e53548f94c11048977011280e0c6f182",
      "summary": "Replaces Supabase Realtime with AWS AppSync Events and migrates the entire API surface from v2 to v3.",
      "highlights": [
        "Replaces @supabase/realtime-js with a native WebSocket transport that connects directly to AWS AppSync Events using the aws-appsync-event-ws subprotocol.",
        "Migrates all API calls from /api/webchat/v2/{appId}/* to /api/webchat/v3/{appId}/* endpoints.",
        "Session response now provides realtimeUrl and httpHost from the backend, eliminating all client-side Supabase configuration.",
        "Removes VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY environment variables — the only required env var is VITE_WEBCHAT_API_URL.",
        "Topic format changes from conv:{appId}:{senderId} to webchat/{senderId}-{appId} to match the AppSync channel namespace.",
        "Adds automatic exponential-backoff reconnection (1s–30s) on WebSocket disconnects."
      ],
      "breakingChanges": [
        "Requires backend v3 endpoints deployed with AppSync configuration (APPSYNC_REALTIME_URL, APPSYNC_HTTP_HOST, WEBCHAT_JWT_SECRET).",
        "Removes all Supabase dependencies and environment variables — v2 backend is no longer supported.",
        "Session response shape now includes realtimeUrl and httpHost fields; older v2 responses will be rejected."
      ],
      "fileName": "artu-widget-4.0.0.min.js",
      "url": "./releases/artu-widget-4.0.0.min.js",
      "pageUrl": "./releases/4.0.0/",
      "sizeBytes": 164025,
      "isLatest": false
    },
    {
      "version": "3.0.4",
      "releasedAt": "2026-03-18",
      "commitSha": "34ff462fbb5520ab63f6888774157b28b64b8d70",
      "summary": "Improves local embed preview behavior and dark example validation surfaces.",
      "highlights": [
        "Updates local Vite dev server behavior to serve /dist/*.min.js bundles as raw scripts so classic script-tag embeds mount correctly in /dist/examples pages.",
        "Adds a theme-aware background surface for the open Powered by badge to preserve contrast across host page backgrounds without adding extra shadow.",
        "Expands the dark example template with a richer validation footer placed lower in the page to stress-test widget overlap and readability scenarios.",
        "Bumps @padawan-way/r2-chat-ui from 0.1.8 to 0.1.9 in package metadata and lockfile resolution."
      ],
      "breakingChanges": [],
      "fileName": "artu-widget-3.0.4.min.js",
      "url": "./releases/artu-widget-3.0.4.min.js",
      "pageUrl": "./releases/3.0.4/",
      "sizeBytes": 199165,
      "isLatest": false
    },
    {
      "version": "3.0.3",
      "releasedAt": "2026-03-12",
      "commitSha": "cf2ca95cffebfa61ab83aa5f97f86fffeb613600",
      "summary": "Updates the widget to consume @padawan-way/r2-chat-ui 0.1.8.",
      "highlights": [
        "Bumps @padawan-way/r2-chat-ui from 0.1.7 to 0.1.8 in package metadata and lockfile resolution.",
        "Rebuilds the CDN widget bundle so the shipped UI layer matches the latest shared chat-ui package output.",
        "Keeps the existing embed/runtime API contracts unchanged while refreshing internal UI dependency bytes."
      ],
      "breakingChanges": [],
      "fileName": "artu-widget-3.0.3.min.js",
      "url": "./releases/artu-widget-3.0.3.min.js",
      "pageUrl": "./releases/3.0.3/",
      "sizeBytes": 198843,
      "isLatest": false
    },
    {
      "version": "3.0.2",
      "releasedAt": "2026-03-12",
      "commitSha": "d61218bba5461f56402a579b7e4c37d0225c7f7e",
      "summary": "Refreshes the generated release page to use the webchat dark palette by default.",
      "highlights": [
        "Switches the per-release page to always render in dark mode using the widget palette: #10A37F accent, #212121 background family, and muted #A1A1AA text.",
        "Updates the generated panel, code block, and hero styling so the release detail page visually matches the shipped webchat examples instead of the previous light blue theme.",
        "Locks the dark release-page styling with CDN generator tests so future builds keep the same visual direction."
      ],
      "breakingChanges": [],
      "fileName": "artu-widget-3.0.2.min.js",
      "url": "./releases/artu-widget-3.0.2.min.js",
      "pageUrl": "./releases/3.0.2/",
      "sizeBytes": 198010,
      "isLatest": false
    },
    {
      "version": "3.0.1",
      "releasedAt": "2026-03-12",
      "commitSha": "d61218bba5461f56402a579b7e4c37d0225c7f7e",
      "summary": "Moves VITE_WEBCHAT_APP_ID to generated local examples only and keeps the real embed contract fully runtime-driven.",
      "highlights": [
        "Generates dist/examples/*.html from templates and injects VITE_WEBCHAT_APP_ID there without reintroducing that env var into the widget bundle.",
        "Turns root examples/*.html into redirects to the built examples so the documented local URLs keep working after npm run build.",
        "Clarifies in the README and release catalog that real integrations still require data-app-id in the script tag, while VITE_WEBCHAT_APP_ID is example-only."
      ],
      "breakingChanges": [],
      "fileName": "artu-widget-3.0.1.min.js",
      "url": "./releases/artu-widget-3.0.1.min.js",
      "pageUrl": "./releases/3.0.1/",
      "sizeBytes": 198010,
      "isLatest": false
    },
    {
      "version": "3.0.0",
      "releasedAt": "2026-03-12",
      "commitSha": "d61218bba5461f56402a579b7e4c37d0225c7f7e",
      "summary": "Moves the Webchat V2 app id into the public embed contract so each widget instance routes itself at runtime.",
      "highlights": [
        "Requires data-app-id in the script tag and uses that runtime value for /api/webchat/v2/{appId}/session, /messages, and conv:<appId>:<sender_id> topic validation.",
        "Updates the CDN catalog, per-release pages, README, and local examples so every embed snippet includes both data-app-id and data-publishable-key.",
        "Removes the bundle dependency on VITE_WEBCHAT_APP_ID while keeping VITE_WEBCHAT_API_URL and Supabase env values as build-time configuration."
      ],
      "breakingChanges": [
        "Embeds must now pass data-app-id; widgets that only set data-publishable-key will fail fast before mounting.",
        "VITE_WEBCHAT_APP_ID is no longer read by the frontend bundle and should be removed from widget build configuration."
      ],
      "fileName": "artu-widget-3.0.0.min.js",
      "url": "./releases/artu-widget-3.0.0.min.js",
      "pageUrl": "./releases/3.0.0/",
      "sizeBytes": 198010,
      "isLatest": false
    },
    {
      "version": "2.0.0",
      "releasedAt": "2026-03-12",
      "commitSha": "d61218bba5461f56402a579b7e4c37d0225c7f7e",
      "summary": "Moves the widget to the Webchat V2 backend contract and publishes a navigable CDN release catalog.",
      "highlights": [
        "Switches session and message requests to /api/webchat/v2/{appId} with topic validation against VITE_WEBCHAT_APP_ID.",
        "Generates the CDN catalog with /latest/widget.min.js, versioned release pages, and machine-readable releases.json metadata.",
        "Reuses shared widget styles from @padawan-way/r2-chat-ui/styles and documents the correct local preview flow for built examples."
      ],
      "breakingChanges": [
        "Builds now require VITE_WEBCHAT_APP_ID and backend routes moved from /api/v1/* to /api/webchat/v2/{appId}/*.",
        "Realtime session responses must now return topic conv:<appId>:<sender_id>; old topic shapes are rejected by the widget."
      ],
      "fileName": "artu-widget-2.0.0.min.js",
      "url": "./releases/artu-widget-2.0.0.min.js",
      "pageUrl": "./releases/2.0.0/",
      "sizeBytes": 197805,
      "isLatest": false
    },
    {
      "version": "1.0.0",
      "releasedAt": "2026-03-06",
      "commitSha": "62993c0d2298f810f4b86944189cca627d74cabb",
      "summary": "Initial public CDN release for the embeddable webchat widget.",
      "highlights": [
        "Publishes a stable embeddable widget bundle for external sites.",
        "Introduces a Vercel-friendly static catalog with pinned release assets.",
        "Establishes formal patch notes metadata for future releases."
      ],
      "breakingChanges": [],
      "fileName": "artu-widget-1.0.0.min.js",
      "url": "./releases/artu-widget-1.0.0.min.js",
      "pageUrl": "./releases/1.0.0/",
      "sizeBytes": 183238,
      "isLatest": false
    }
  ]
}
