@burdenoff/website-sdk 2026.1028.1 → 2026.1031.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 +159 -1
- package/dist/avatar-live/index.d.mts +11 -0
- package/dist/avatar-live/index.d.ts +11 -0
- package/dist/avatar-live/index.js +120 -0
- package/dist/avatar-live/index.js.map +1 -0
- package/dist/avatar-live/index.mjs +118 -0
- package/dist/avatar-live/index.mjs.map +1 -0
- package/dist/avatar-live-view/index.d.mts +42 -0
- package/dist/avatar-live-view/index.d.ts +42 -0
- package/dist/avatar-live-view/index.js +1422 -0
- package/dist/avatar-live-view/index.js.map +1 -0
- package/dist/avatar-live-view/index.mjs +1420 -0
- package/dist/avatar-live-view/index.mjs.map +1 -0
- package/dist/components/contact.js +9 -3
- package/dist/components/contact.js.map +1 -1
- package/dist/components/contact.mjs +9 -3
- package/dist/components/contact.mjs.map +1 -1
- package/dist/components/explore.d.mts +2 -2
- package/dist/components/explore.d.ts +2 -2
- package/dist/components/explore.js +11 -4
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +11 -4
- package/dist/components/explore.mjs.map +1 -1
- package/dist/components/partners.js +9 -3
- package/dist/components/partners.js.map +1 -1
- package/dist/components/partners.mjs +9 -3
- package/dist/components/partners.mjs.map +1 -1
- package/dist/{explore-BEgq1_0O.d.mts → explore-DUTNYUOm.d.mts} +1 -1
- package/dist/{explore-CHiP9u-4.d.ts → explore-DjQE7Xia.d.ts} +1 -1
- package/dist/explore-avatar-live-config-B171o1Yo.d.ts +283 -0
- package/dist/explore-avatar-live-config-BGsGwbcq.d.mts +283 -0
- package/dist/{explore-types-_9UJu6EA.d.mts → explore-types-Bb2Ih3d8.d.mts} +1 -1
- package/dist/{explore-types-_9UJu6EA.d.ts → explore-types-Bb2Ih3d8.d.ts} +1 -1
- package/dist/hooks/index.d.mts +3 -2
- package/dist/hooks/index.d.ts +3 -2
- package/dist/hooks/index.js +6 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +6 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +16 -253
- package/dist/index.d.ts +16 -253
- package/dist/index.js +225 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +225 -41
- package/dist/index.mjs.map +1 -1
- package/dist/types-CndbmBK-.d.mts +68 -0
- package/dist/types-CndbmBK-.d.ts +68 -0
- package/dist/{use-progressive-reveal-C0hkdu_i.d.ts → use-explore-chat-DunjG-3p.d.ts} +10 -36
- package/dist/{use-progressive-reveal-BFPWbEXy.d.mts → use-explore-chat-zRuoAin6.d.mts} +10 -36
- package/dist/use-progressive-reveal-ppicEgzZ.d.mts +35 -0
- package/dist/use-progressive-reveal-ppicEgzZ.d.ts +35 -0
- package/package.json +15 -3
|
@@ -16,6 +16,11 @@ var __defProp = Object.defineProperty;
|
|
|
16
16
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17
17
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
18
18
|
|
|
19
|
+
// src/components/explore-fill.ts
|
|
20
|
+
function fill(template, values) {
|
|
21
|
+
return template.replace(/\{(\w+)\}/g, (match, key) => values[key] ?? match);
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
// src/components/explore-i18n.ts
|
|
20
25
|
var EXPLORE_LOCALES = ["en", "zh", "hi", "es", "ar", "ta"];
|
|
21
26
|
var RTL_LOCALES = /* @__PURE__ */ new Set(["ar"]);
|
|
@@ -803,9 +808,6 @@ function resolveExploreLocale(explicit) {
|
|
|
803
808
|
function exploreStrings(locale) {
|
|
804
809
|
return STRINGS[locale] ?? EN;
|
|
805
810
|
}
|
|
806
|
-
function fill(template, values) {
|
|
807
|
-
return template.replace(/\{(\w+)\}/g, (match, key) => values[key] ?? match);
|
|
808
|
-
}
|
|
809
811
|
function fullscreenSupport() {
|
|
810
812
|
if (typeof document === "undefined") return null;
|
|
811
813
|
if (document.fullscreenEnabled && typeof document.documentElement.requestFullscreen === "function") {
|
|
@@ -3479,6 +3481,10 @@ function useExploreChat(options = {}) {
|
|
|
3479
3481
|
[client, productId]
|
|
3480
3482
|
);
|
|
3481
3483
|
const canEscalate = hasConversation && !isSharedView;
|
|
3484
|
+
const getConversationToken = useCallback(
|
|
3485
|
+
() => conversationTokenRef.current,
|
|
3486
|
+
[]
|
|
3487
|
+
);
|
|
3482
3488
|
return {
|
|
3483
3489
|
phase,
|
|
3484
3490
|
catalog,
|
|
@@ -3503,7 +3509,8 @@ function useExploreChat(options = {}) {
|
|
|
3503
3509
|
escalate,
|
|
3504
3510
|
canEscalate,
|
|
3505
3511
|
createShareLink,
|
|
3506
|
-
isSharedView
|
|
3512
|
+
isSharedView,
|
|
3513
|
+
getConversationToken
|
|
3507
3514
|
};
|
|
3508
3515
|
}
|
|
3509
3516
|
var optimisticCounter = 0;
|