@gengage/assistant-fe 0.6.21 → 0.6.23
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 +4 -2
- package/dist/agentic/adaptor/create-adaptor.d.ts +6 -3
- package/dist/agentic/adaptor/mount.d.ts +8 -2
- package/dist/agentic/{similarity.d.ts → algos/similarity.d.ts} +11 -2
- package/dist/agentic/algos/similarity.js +261 -0
- package/dist/agentic/context/chat-context.d.ts +4 -2
- package/dist/agentic/context/context-store.d.ts +11 -1
- package/dist/agentic/context/persistence.d.ts +1 -0
- package/dist/agentic/contracts/agentic-contracts.d.ts +133 -0
- package/dist/agentic/debug/activity-collector.d.ts +14 -0
- package/dist/agentic/debug/activity-instrumentation.d.ts +22 -0
- package/dist/agentic/debug/activity-overlay.d.ts +3 -0
- package/dist/agentic/debug/activity-state.d.ts +37 -0
- package/dist/agentic/debug/local-dev.d.ts +18 -0
- package/dist/agentic/events/product-normalize.d.ts +4 -1
- package/dist/agentic/events/ui-specs.d.ts +8 -4
- package/dist/agentic/index.d.ts +25 -2
- package/dist/agentic/index.js +2792 -441
- package/dist/agentic/types.d.ts +77 -4
- package/dist/agentic/util/common/declarative-cache.d.ts +21 -0
- package/dist/agentic/util/common/fallback-status.d.ts +10 -0
- package/dist/agentic/util/common/flow-steps.d.ts +8 -0
- package/dist/agentic/util/common/gss-tool-aliases.d.ts +66 -0
- package/dist/agentic/util/common/iframe-scraper.d.ts +22 -0
- package/dist/agentic/util/common/llm-routing.d.ts +50 -0
- package/dist/agentic/util/common/object.d.ts +1 -0
- package/dist/agentic/util/common/open-product-page.d.ts +30 -0
- package/dist/agentic/util/common/panel-context.d.ts +3 -0
- package/dist/agentic/util/common/privacy.d.ts +14 -0
- package/dist/agentic/util/common/product-resolver.d.ts +20 -0
- package/dist/agentic/util/common/product-surface.d.ts +24 -0
- package/dist/agentic/util/common/ref-store.d.ts +15 -0
- package/dist/agentic/util/common/retail-privacy.d.ts +4 -0
- package/dist/agentic/util/common/route-params.d.ts +3 -0
- package/dist/agentic/util/common/similarity-ranking.d.ts +2 -0
- package/dist/agentic/util/common/site-awareness.d.ts +130 -0
- package/dist/agentic/util/lazy-runtime-loader.d.ts +2 -1
- package/dist/agentic/worker/rpc.d.ts +26 -6
- package/dist/agentic/worker.d.ts +15 -2
- package/dist/agentic/worker.js +316 -119
- package/dist/agentic.iife.js +352 -6
- package/dist/{api-paths-DcKsQqb6.js → api-paths-BmN07ddR.js} +144 -154
- package/dist/chat/catalog.d.ts +8 -0
- package/dist/chat/types.d.ts +2 -1
- package/dist/{chat-rvSffJXw.js → chat-CIfQyuBl.js} +26 -21
- package/dist/chat-runtime.js +1 -1
- package/dist/chat.iife.js +44 -44
- package/dist/chat.js +2 -2
- package/dist/{common-MpBmMLVk.js → common-sx2gD-IP.js} +1 -1
- package/dist/common.js +5 -5
- package/dist/{connection-warning-ClrMLgmZ.js → connection-warning-D5T4gHSM.js} +1 -1
- package/dist/{fastIntent-Bl4xN0qL.js → fastIntent-BFAGybCb.js} +1 -1
- package/dist/index.js +10 -10
- package/dist/native.iife.js +17 -17
- package/dist/qna-runtime.js +1 -1
- package/dist/qna.iife.js +7 -7
- package/dist/qna.js +1 -1
- package/dist/route-params-5KSvTyeb.js +2454 -0
- package/dist/{runtime-CS4mg3ra.js → runtime-BD2fW-ed.js} +3 -3
- package/dist/{runtime-_koZbJK_.js → runtime-DM7DHhH9.js} +1816 -1778
- package/dist/{runtime-BlU1rKqc.js → runtime-DQ3ULuNF.js} +3 -3
- package/dist/{simbut-BtL7zYIJ.js → simbut-hkt_4H97.js} +1 -1
- package/dist/simbut.iife.js +1 -1
- package/dist/simbut.js +1 -1
- package/dist/{simrel-ekf3kUb_.js → simrel-BbkK5Bwt.js} +1 -1
- package/dist/simrel-runtime.js +1 -1
- package/dist/simrel.iife.js +6 -6
- package/dist/simrel.js +2 -2
- package/dist/{widget-base-p1EKDuiI.js → widget-base-BPKfPh0N.js} +1 -1
- package/package.json +5 -1
- package/dist/account-config-D_EMuR0g.js +0 -1479
package/dist/chat/catalog.d.ts
CHANGED
|
@@ -354,6 +354,14 @@ export declare const chatCatalog: {
|
|
|
354
354
|
};
|
|
355
355
|
readonly ProductGrid: {
|
|
356
356
|
readonly schema: z.ZodObject<{
|
|
357
|
+
layout: z.ZodOptional<z.ZodEnum<{
|
|
358
|
+
grouped: "grouped";
|
|
359
|
+
grid: "grid";
|
|
360
|
+
}>>;
|
|
361
|
+
productSections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
362
|
+
title: z.ZodOptional<z.ZodString>;
|
|
363
|
+
children: z.ZodArray<z.ZodString>;
|
|
364
|
+
}, z.core.$strip>>>;
|
|
357
365
|
endOfList: z.ZodOptional<z.ZodBoolean>;
|
|
358
366
|
rankingState: z.ZodOptional<z.ZodEnum<{
|
|
359
367
|
pending: "pending";
|
package/dist/chat/types.d.ts
CHANGED
|
@@ -263,6 +263,7 @@ export interface ChatI18n {
|
|
|
263
263
|
sortPriceDesc: string;
|
|
264
264
|
sortToolbarAriaLabel: string;
|
|
265
265
|
compareSelected: string;
|
|
266
|
+
productGridSectionCountLabel?: string;
|
|
266
267
|
compareMinHint: string;
|
|
267
268
|
compareMaxHint: string;
|
|
268
269
|
comparisonSelectLabel: string;
|
|
@@ -446,7 +447,7 @@ export interface ChatUISpecRenderContext {
|
|
|
446
447
|
hideProductDiscountBadge?: boolean | undefined;
|
|
447
448
|
hideUserReviews?: boolean | undefined;
|
|
448
449
|
hideStockStatus?: boolean | undefined;
|
|
449
|
-
i18n?: Pick<ChatI18n, 'productCtaLabel' | 'viewOnSiteLabel' | 'aiTopPicksTitle' | 'roleWinner' | 'roleBestValue' | 'roleBestAlternative' | 'viewDetails' | 'groundingReviewCta' | 'groundingReviewSubtitle' | 'variantsLabel' | 'sortRelated' | 'sortPriceAsc' | 'sortPriceDesc' | 'sortToolbarAriaLabel' | 'compareSelected' | 'compareMinHint' | 'comparisonSelectLabel' | 'comparisonSelectedLabel' | 'comparisonSelectCardHint' | 'panelTitleProductDetails' | 'panelTitleSimilarProducts' | 'panelTitleComparisonResults' | 'panelTitleCategories' | 'panelTitleSearchResults' | 'inStockLabel' | 'outOfStockLabel' | 'findSimilarLabel' | 'galleryPrevAriaLabel' | 'galleryNextAriaLabel' | 'beautyStylesPreparedTitle' | 'watchStylesPreparedTitle' | 'consultingOtherCompatibleProductsLabel' | 'consultingFallbackGroupLabel' | 'consultingFallbackStyleLabel' | 'consultingStyleLoadingDescription' | 'consultingStyleUnavailableDescription' | 'consultingStyleLoadingBadge' | 'consultingStyleUnavailableBadge' | 'viewMoreLabel' | 'similarProductsLabel' | 'addToCartButton' | 'shareButton' | 'productInfoTab' | 'specificationsTab' | 'recommendedChoiceLabel' | 'highlightsLabel' | 'keyDifferencesLabel' | 'specialCasesLabel' | 'emptyReviewsMessage' | 'closeAriaLabel' | 'dismissAriaLabel' | 'startChatLabel' | 'handoffHeading' | 'customerReviewsTitle' | 'addToFavoritesLabel' | 'showPanelAriaLabel' | 'reviewFilterPositive' | 'reviewFilterNegative' | 'decreaseLabel' | 'increaseLabel' | 'reviewCustomersMentionSingular' | 'reviewCustomersMentionPlural' | 'reviewSubjectsHeading' | 'aiBrowseCategoriesTitle' | 'photoAnalysisBadge' | 'photoAnalysisStrengthsLabel' | 'photoAnalysisFocusLabel' | 'photoAnalysisCelebStyleLabel' | 'beautyPhotoStepTitle' | 'beautyPhotoStepDescription' | 'beautyPhotoStepUpload' | 'beautyPhotoStepProcessing' | 'beautyPhotoStepSkip'>;
|
|
450
|
+
i18n?: Pick<ChatI18n, 'productCtaLabel' | 'viewOnSiteLabel' | 'aiTopPicksTitle' | 'roleWinner' | 'roleBestValue' | 'roleBestAlternative' | 'viewDetails' | 'groundingReviewCta' | 'groundingReviewSubtitle' | 'variantsLabel' | 'sortRelated' | 'sortPriceAsc' | 'sortPriceDesc' | 'sortToolbarAriaLabel' | 'compareSelected' | 'productGridSectionCountLabel' | 'compareMinHint' | 'comparisonSelectLabel' | 'comparisonSelectedLabel' | 'comparisonSelectCardHint' | 'panelTitleProductDetails' | 'panelTitleSimilarProducts' | 'panelTitleComparisonResults' | 'panelTitleCategories' | 'panelTitleSearchResults' | 'inStockLabel' | 'outOfStockLabel' | 'findSimilarLabel' | 'galleryPrevAriaLabel' | 'galleryNextAriaLabel' | 'beautyStylesPreparedTitle' | 'watchStylesPreparedTitle' | 'consultingOtherCompatibleProductsLabel' | 'consultingFallbackGroupLabel' | 'consultingFallbackStyleLabel' | 'consultingStyleLoadingDescription' | 'consultingStyleUnavailableDescription' | 'consultingStyleLoadingBadge' | 'consultingStyleUnavailableBadge' | 'viewMoreLabel' | 'similarProductsLabel' | 'addToCartButton' | 'shareButton' | 'productInfoTab' | 'specificationsTab' | 'recommendedChoiceLabel' | 'highlightsLabel' | 'keyDifferencesLabel' | 'specialCasesLabel' | 'emptyReviewsMessage' | 'closeAriaLabel' | 'dismissAriaLabel' | 'startChatLabel' | 'handoffHeading' | 'customerReviewsTitle' | 'addToFavoritesLabel' | 'showPanelAriaLabel' | 'reviewFilterPositive' | 'reviewFilterNegative' | 'decreaseLabel' | 'increaseLabel' | 'reviewCustomersMentionSingular' | 'reviewCustomersMentionPlural' | 'reviewSubjectsHeading' | 'aiBrowseCategoriesTitle' | 'photoAnalysisBadge' | 'photoAnalysisStrengthsLabel' | 'photoAnalysisFocusLabel' | 'photoAnalysisCelebStyleLabel' | 'beautyPhotoStepTitle' | 'beautyPhotoStepDescription' | 'beautyPhotoStepUpload' | 'beautyPhotoStepProcessing' | 'beautyPhotoStepSkip'>;
|
|
450
451
|
productSort?: ProductSortState | undefined;
|
|
451
452
|
onSortChange?: ((sort: ProductSortState) => void) | undefined;
|
|
452
453
|
comparisonSelectMode?: boolean | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as i, c as o, l as
|
|
2
|
-
var
|
|
3
|
-
role:
|
|
1
|
+
import { a as i, c as o, l as s, n as t, o as a, r as n, s as l, t as r, u as e } from "./schemas-BnYUhYSy.js";
|
|
2
|
+
var u = a({
|
|
3
|
+
role: r(["user", "assistant"]),
|
|
4
4
|
content: o(),
|
|
5
5
|
timestamp: i().optional()
|
|
6
|
-
}),
|
|
6
|
+
}), h = a({
|
|
7
7
|
sku: o(),
|
|
8
8
|
name: o(),
|
|
9
9
|
imageUrl: o().url().optional(),
|
|
@@ -47,7 +47,7 @@ var h = a({
|
|
|
47
47
|
})).optional()
|
|
48
48
|
}), b = a({
|
|
49
49
|
label: o(),
|
|
50
|
-
sentiment:
|
|
50
|
+
sentiment: r([
|
|
51
51
|
"positive",
|
|
52
52
|
"negative",
|
|
53
53
|
"neutral"
|
|
@@ -96,7 +96,7 @@ var h = a({
|
|
|
96
96
|
title: o(),
|
|
97
97
|
type: o(),
|
|
98
98
|
payload: e().optional()
|
|
99
|
-
}),
|
|
99
|
+
}), p = a({
|
|
100
100
|
name: o().optional(),
|
|
101
101
|
value: o().optional(),
|
|
102
102
|
option_value: o().optional(),
|
|
@@ -107,8 +107,8 @@ var h = a({
|
|
|
107
107
|
attribute_name: o().optional(),
|
|
108
108
|
variant_name: o().optional(),
|
|
109
109
|
sku: o().optional(),
|
|
110
|
-
price:
|
|
111
|
-
price_discounted:
|
|
110
|
+
price: s([i(), o()]).optional(),
|
|
111
|
+
price_discounted: s([i(), o()]).optional(),
|
|
112
112
|
image: o().optional(),
|
|
113
113
|
imageUrl: o().optional(),
|
|
114
114
|
image_url: o().optional(),
|
|
@@ -134,17 +134,17 @@ var h = a({
|
|
|
134
134
|
discount_reason: o().optional(),
|
|
135
135
|
campaignReason: o().optional(),
|
|
136
136
|
campaign_reason: o().optional(),
|
|
137
|
-
originalPriceStyle:
|
|
138
|
-
price_original_style:
|
|
137
|
+
originalPriceStyle: r(["strikethrough", "inline"]).optional(),
|
|
138
|
+
price_original_style: r(["strikethrough", "inline"]).optional(),
|
|
139
139
|
price_discount_rate: i().optional(),
|
|
140
140
|
price_async: n().optional(),
|
|
141
141
|
inStock: n().optional(),
|
|
142
142
|
promotions: t(o()).optional(),
|
|
143
|
-
variants: t(
|
|
144
|
-
variantOptions: t(
|
|
145
|
-
variant_options: t(
|
|
146
|
-
productVariants: t(
|
|
147
|
-
product_variants: t(
|
|
143
|
+
variants: t(p).optional(),
|
|
144
|
+
variantOptions: t(p).optional(),
|
|
145
|
+
variant_options: t(p).optional(),
|
|
146
|
+
productVariants: t(p).optional(),
|
|
147
|
+
product_variants: t(p).optional(),
|
|
148
148
|
url: o().optional(),
|
|
149
149
|
cartCode: o().optional(),
|
|
150
150
|
description: o().optional(),
|
|
@@ -156,26 +156,31 @@ var h = a({
|
|
|
156
156
|
name: o().optional(),
|
|
157
157
|
key: o().optional(),
|
|
158
158
|
label: o().optional(),
|
|
159
|
-
value:
|
|
159
|
+
value: s([
|
|
160
160
|
o(),
|
|
161
161
|
i(),
|
|
162
162
|
n()
|
|
163
163
|
]).optional()
|
|
164
164
|
})).optional(),
|
|
165
|
-
specifications:
|
|
165
|
+
specifications: s([l(o(), o()), t(a({
|
|
166
166
|
key: o(),
|
|
167
167
|
value: o()
|
|
168
168
|
}))]).optional()
|
|
169
169
|
}).optional(),
|
|
170
170
|
action: d.optional()
|
|
171
171
|
}), P = a({
|
|
172
|
+
layout: r(["grid", "grouped"]).optional(),
|
|
173
|
+
productSections: t(a({
|
|
174
|
+
title: o().optional(),
|
|
175
|
+
children: t(o())
|
|
176
|
+
})).optional(),
|
|
172
177
|
endOfList: n().optional(),
|
|
173
|
-
rankingState:
|
|
178
|
+
rankingState: r(["pending", "final"]).optional(),
|
|
174
179
|
sequenceId: o().optional()
|
|
175
180
|
}), k = a({
|
|
176
181
|
review_class: o().optional(),
|
|
177
182
|
review_text: o().optional(),
|
|
178
|
-
review_rating:
|
|
183
|
+
review_rating: s([o(), i()]).optional(),
|
|
179
184
|
review_tag: o().optional()
|
|
180
185
|
}), I = a({ reviews: t(k).optional() }), T = a({
|
|
181
186
|
productName: o().optional(),
|
|
@@ -226,11 +231,11 @@ var h = a({
|
|
|
226
231
|
skip_label: o().optional()
|
|
227
232
|
}), D = { components: {
|
|
228
233
|
MessageBubble: {
|
|
229
|
-
schema:
|
|
234
|
+
schema: u,
|
|
230
235
|
description: "A single chat message bubble for user or assistant turns."
|
|
231
236
|
},
|
|
232
237
|
ProductCard: {
|
|
233
|
-
schema:
|
|
238
|
+
schema: h,
|
|
234
239
|
description: "A product card rendered inline in the chat stream."
|
|
235
240
|
},
|
|
236
241
|
ActionButtons: {
|
package/dist/chat-runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, d as t, f as r, i as s, l as n, n as i, r as l, s as C, t as c, u as d } from "./runtime-
|
|
1
|
+
import { c as e, d as t, f as r, i as s, l as n, n as i, r as l, s as C, t as c, u as d } from "./runtime-DM7DHhH9.js";
|
|
2
2
|
export {
|
|
3
3
|
d as CHAT_SCROLL_ELEMENT_ID,
|
|
4
4
|
s as ChatPresentationState,
|