@accurix/centrinfo-widget 5.1.0 → 5.1.2

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
@@ -351,18 +351,25 @@ handles automatically.
351
351
  Canonical CDN URL (version from `dist/cdn/manifest.json` `cdnPath`):
352
352
 
353
353
  ```text
354
- https://cdn.accurixtech.com/centrinfo/js/sdk-centrinfo-widget-v5.0.0/centrinfo-widget.js
354
+ https://cdn.accurixtech.com/centrinfo/js/sdk-centrinfo-widget-v<version>/centrinfo-widget.js
355
355
  ```
356
356
 
357
357
  ### Publishing CDN assets
358
358
 
359
359
  `publish:cdn` uploads `dist/cdn/*` to R2 under a version-scoped path and then
360
- verifies three things: the object read back from R2, the origin response (with a
361
- cache-busting query string), and the canonical URL customers load. Objects go
360
+ verifies the object read back from R2 and the canonical URL customers load.
361
+ Overwrites also check the origin response with a cache-busting query string
362
+ and purge the canonical URL before verifying it. Objects go
362
363
  out as `public, max-age=31536000, immutable`, so **prefer publishing a new
363
364
  version over overwriting a released one** — `--force` replaces bytes that
364
365
  browsers and the edge may hold for a year.
365
366
 
367
+ If publishing reports that an object already exists with different content,
368
+ add a patch Changeset with `pnpm changeset` and merge the generated version PR.
369
+ Run the publishing workflow from that updated branch. Re-running an older
370
+ failed workflow uses its original commit and version; it does not pick up the
371
+ new release. Read the new CDN URL from the rebuilt `dist/cdn/manifest.json`.
372
+
366
373
  Required environment: `CLOUDFLARE_ACCOUNT_ID`, `CLOUDFLARE_API_TOKEN`,
367
374
  `CLOUDFLARE_R2_BUCKET`, and `CENTRINFO_CDN_DRY_RUN=false` (the script dry-runs
368
375
  unless this is exactly `false`).
@@ -25,7 +25,7 @@ class f {
25
25
  await s(20);
26
26
  }
27
27
  async action(e, t) {
28
- return await s(450), { ok: !0, note: { "book-demo": "Demo requested — we'll email you a few times that work. 📅", contact: "Got it — saved your details. ✅", "contact-support": "Support request sent. The team can follow up from this chat. ✅", inquiry: "Thanks! We'll get back to you shortly. ✉️", "request-callback": "We'll call you back soon. 📞", "schedule-callback": "Your callback has been scheduled.", "subscribe-newsletter": "You're subscribed. 🎉" }[e] };
28
+ return await s(450), { ok: !0, note: { "book-demo": "Demo requested. The team will follow up. 📅", contact: "Got it — saved your details. ✅", "contact-support": "Support request sent. The team can follow up from this chat. ✅", inquiry: "Thanks! We'll get back to you shortly. ✉️", "request-callback": "We'll call you back soon. 📞", "schedule-callback": "Your callback has been scheduled.", "subscribe-newsletter": "You're subscribed. 🎉" }[e] };
29
29
  }
30
30
  async speak() {
31
31
  return await s(120), { providerReady: !1, message: "Demo voice provider is not connected." };