vdb-ai-chat 1.0.85 → 1.0.87
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/dist/chat-widget.js +1 -1
- package/lib/commonjs/components/ChatInput.js +1 -0
- package/lib/commonjs/components/ChatInput.js.map +1 -1
- package/lib/commonjs/components/ChatWidget.js +2 -2
- package/lib/commonjs/components/ChatWidget.js.map +1 -1
- package/lib/commonjs/components/utils.js +2 -1
- package/lib/commonjs/components/utils.js.map +1 -1
- package/lib/module/components/ChatInput.js +1 -0
- package/lib/module/components/ChatInput.js.map +1 -1
- package/lib/module/components/ChatWidget.js +2 -2
- package/lib/module/components/ChatWidget.js.map +1 -1
- package/lib/module/components/utils.js +2 -1
- package/lib/module/components/utils.js.map +1 -1
- package/lib/typescript/components/ChatInput.d.ts.map +1 -1
- package/lib/typescript/components/utils.d.ts +2 -1
- package/lib/typescript/components/utils.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/ChatInput.tsx +1 -0
- package/src/components/ChatWidget.tsx +2 -2
- package/src/components/utils.ts +2 -1
|
@@ -355,7 +355,7 @@ export const ChatWidget = forwardRef<ChatWidgetRef, ChatWidgetProps>(
|
|
|
355
355
|
id: "",
|
|
356
356
|
role: "assistant",
|
|
357
357
|
text:
|
|
358
|
-
activeProductType === ProductExternalContext.JEWELRY
|
|
358
|
+
activeProductType === ProductExternalContext.JEWELRY || activeProductType === ProductExternalContext.LAB_GROWN_JEWELRY
|
|
359
359
|
? t(
|
|
360
360
|
"chat.welcome.jewelry.message.text",
|
|
361
361
|
'Describe the jewelry you\'re looking for — for example, "14k gold ring under $1,000" or "18k white gold necklace" — and I\'ll take it from there.',
|
|
@@ -1298,7 +1298,7 @@ export const ChatWidget = forwardRef<ChatWidgetRef, ChatWidgetProps>(
|
|
|
1298
1298
|
id: "",
|
|
1299
1299
|
role: "assistant",
|
|
1300
1300
|
text:
|
|
1301
|
-
activeProductType === ProductExternalContext.JEWELRY
|
|
1301
|
+
activeProductType === ProductExternalContext.JEWELRY || activeProductType === ProductExternalContext.LAB_GROWN_JEWELRY
|
|
1302
1302
|
? t(
|
|
1303
1303
|
"chat.welcome.jewelry.message.text",
|
|
1304
1304
|
'Describe the jewelry you\'re looking for — for example, "14k gold ring under $1,000" or "18k white gold necklace" — and I\'ll take it from there.',
|
package/src/components/utils.ts
CHANGED
|
@@ -1544,6 +1544,7 @@ export enum ProductExternalContext {
|
|
|
1544
1544
|
LAB_GROWN_DIAMOND = "Lab-Grown",
|
|
1545
1545
|
GEMSTONE = "Gemstone",
|
|
1546
1546
|
JEWELRY = "Jewelry",
|
|
1547
|
+
LAB_GROWN_JEWELRY = "Lab_Grown_Jewelry",
|
|
1547
1548
|
}
|
|
1548
1549
|
|
|
1549
1550
|
export enum ProductPrefix {
|
|
@@ -1767,7 +1768,7 @@ export const getProductTypeFromTypeAndParams = (type: string, isLabgrown: boolea
|
|
|
1767
1768
|
}
|
|
1768
1769
|
|
|
1769
1770
|
export const getProductTypeFromExternalContext = (externalContext: ProductExternalContext) => {
|
|
1770
|
-
if (externalContext === ProductExternalContext.JEWELRY) {
|
|
1771
|
+
if (externalContext === ProductExternalContext.JEWELRY || externalContext === ProductExternalContext.LAB_GROWN_JEWELRY) {
|
|
1771
1772
|
return ProductCategory.JEWELRY;
|
|
1772
1773
|
}
|
|
1773
1774
|
if (externalContext === ProductExternalContext.LAB_GROWN_DIAMOND) {
|