@accurix/centrinfo-widget 5.1.0 → 5.1.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/README.md +10 -3
- package/dist/cdn/centrinfo-widget-dev.js +1 -1
- package/dist/cdn/centrinfo-widget.js +66 -26
- package/dist/cdn/manifest.json +9 -9
- package/dist/{dev-transports-D6oaj_ri.mjs → dev-transports-DqSPyIEz.mjs} +1 -1
- package/dist/{dev-transports-CuEqYhZT.cjs → dev-transports-KlSdSZpj.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.cts +4 -1
- package/dist/runtime.d.mts +4 -1
- package/dist/runtime.mjs +1 -1
- package/dist/{styles-BH7P8Q_3.cjs → styles-CvzR5bT8.cjs} +64 -20
- package/dist/{styles-DwSTSmZb.mjs → styles-mW_qo6Ed.mjs} +64 -20
- package/dist/{types-CYFMH8yg.d.cts → types-D0VIOagk.d.cts} +11 -0
- package/dist/{types-D82dr33R.d.mts → types-k3nQBQjf.d.mts} +15 -4
- package/package.json +1 -1
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-
|
|
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
|
|
361
|
-
|
|
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
|
|
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." };
|