@athoscommerce/snap-preact 1.13.3-beta.168 → 1.13.3-beta.191
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/cjs/components/src/components/Molecules/ChatInspirationResultMessage/ChatInspirationResultMessage.js +3 -1
- package/dist/cjs/components/src/components/Molecules/ChatMessageText/ChatMessageText.js +2 -1
- package/dist/cjs/components/src/components/Molecules/ChatMessageUser/ChatMessageUser.js +4 -0
- package/dist/cjs/components/src/components/Molecules/ChatProductComparisonMessage/ChatProductComparisonMessage.js +1 -0
- package/dist/cjs/components/src/components/Molecules/ChatQuickview/ChatQuickview.js +514 -0
- package/dist/cjs/components/src/components/Molecules/{ChatProductQueryMessage → ChatQuickview}/index.js +1 -1
- package/dist/cjs/components/src/components/Molecules/ChatResultsDisplay/ChatResultsDisplay.js +2 -2
- package/dist/cjs/components/src/components/Molecules/Slideshow/Slideshow.js +47 -20
- package/dist/cjs/components/src/components/Organisms/Chat/Chat.js +12 -5
- package/dist/cjs/components/src/components/Organisms/Chat/Chat.lang.js +5 -0
- package/dist/cjs/components/src/components/Organisms/Chat/components/ChatAttachments.js +5 -4
- package/dist/cjs/components/src/components/Organisms/Chat/components/ChatComposer.js +3 -3
- package/dist/cjs/components/src/components/Organisms/Chat/components/ChatSideChat.js +3 -3
- package/dist/cjs/components/src/components/Organisms/Chat/components/chatAccentTheme.js +22 -20
- package/dist/cjs/components/src/components/Organisms/QuickviewLayout/QuickviewLayout.js +44 -11
- package/dist/cjs/components/src/index.js +1 -1
- package/dist/cjs/components/src/providers/themeComponents.js +1 -1
- package/dist/cjs/src/Snap.js +13 -1
- package/dist/cjs/src/Templates/Stores/LibraryStore.js +2 -2
- package/dist/cjs/src/Templates/Stores/library/languages/ar.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/de.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/es.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/fr.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/hi.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/it.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/ja.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/ko.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/nl.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/pt.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/ru.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/tr.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/vi.js +45 -34
- package/dist/cjs/src/Templates/Stores/library/languages/zh.js +45 -34
- package/dist/cjs/src/create/createChatController.js +1 -0
- package/dist/esm/components/src/components/Atoms/Button/Button.d.ts +1 -1
- package/dist/esm/components/src/components/Atoms/Button/Button.d.ts.map +1 -1
- package/dist/esm/components/src/components/Molecules/ChatAttachmentContext/ChatAttachmentContext.d.ts +12 -5
- package/dist/esm/components/src/components/Molecules/ChatAttachmentContext/ChatAttachmentContext.d.ts.map +1 -1
- package/dist/esm/components/src/components/Molecules/ChatInspirationResultMessage/ChatInspirationResultMessage.d.ts +13 -2
- package/dist/esm/components/src/components/Molecules/ChatInspirationResultMessage/ChatInspirationResultMessage.d.ts.map +1 -1
- package/dist/esm/components/src/components/Molecules/ChatInspirationResultMessage/ChatInspirationResultMessage.js +3 -1
- package/dist/esm/components/src/components/Molecules/ChatMessageText/ChatMessageText.d.ts.map +1 -1
- package/dist/esm/components/src/components/Molecules/ChatMessageText/ChatMessageText.js +2 -1
- package/dist/esm/components/src/components/Molecules/ChatMessageUser/ChatMessageUser.d.ts +17 -3
- package/dist/esm/components/src/components/Molecules/ChatMessageUser/ChatMessageUser.d.ts.map +1 -1
- package/dist/esm/components/src/components/Molecules/ChatMessageUser/ChatMessageUser.js +4 -0
- package/dist/esm/components/src/components/Molecules/ChatProductComparisonMessage/ChatProductComparisonMessage.d.ts +7 -1
- package/dist/esm/components/src/components/Molecules/ChatProductComparisonMessage/ChatProductComparisonMessage.d.ts.map +1 -1
- package/dist/esm/components/src/components/Molecules/ChatProductComparisonMessage/ChatProductComparisonMessage.js +1 -0
- package/dist/esm/components/src/components/Molecules/ChatQuickview/ChatQuickview.d.ts +30 -0
- package/dist/esm/components/src/components/Molecules/ChatQuickview/ChatQuickview.d.ts.map +1 -0
- package/dist/esm/components/src/components/Molecules/ChatQuickview/ChatQuickview.js +508 -0
- package/dist/esm/components/src/components/Molecules/ChatQuickview/index.d.ts +2 -0
- package/dist/esm/components/src/components/Molecules/ChatQuickview/index.d.ts.map +1 -0
- package/dist/esm/components/src/components/Molecules/ChatQuickview/index.js +1 -0
- package/dist/esm/components/src/components/Molecules/ChatResultsDisplay/ChatResultsDisplay.js +2 -2
- package/dist/esm/components/src/components/Molecules/Slideshow/Slideshow.d.ts.map +1 -1
- package/dist/esm/components/src/components/Molecules/Slideshow/Slideshow.js +47 -20
- package/dist/esm/components/src/components/Organisms/Chat/Chat.d.ts.map +1 -1
- package/dist/esm/components/src/components/Organisms/Chat/Chat.js +12 -5
- package/dist/esm/components/src/components/Organisms/Chat/Chat.lang.d.ts +3 -0
- package/dist/esm/components/src/components/Organisms/Chat/Chat.lang.d.ts.map +1 -1
- package/dist/esm/components/src/components/Organisms/Chat/Chat.lang.js +5 -0
- package/dist/esm/components/src/components/Organisms/Chat/components/ChatAttachments.d.ts.map +1 -1
- package/dist/esm/components/src/components/Organisms/Chat/components/ChatAttachments.js +5 -4
- package/dist/esm/components/src/components/Organisms/Chat/components/ChatComposer.d.ts.map +1 -1
- package/dist/esm/components/src/components/Organisms/Chat/components/ChatComposer.js +3 -3
- package/dist/esm/components/src/components/Organisms/Chat/components/ChatSideChat.d.ts.map +1 -1
- package/dist/esm/components/src/components/Organisms/Chat/components/ChatSideChat.js +3 -3
- package/dist/esm/components/src/components/Organisms/Chat/components/chatAccentTheme.d.ts +1 -1
- package/dist/esm/components/src/components/Organisms/Chat/components/chatAccentTheme.d.ts.map +1 -1
- package/dist/esm/components/src/components/Organisms/Chat/components/chatAccentTheme.js +22 -20
- package/dist/esm/components/src/components/Organisms/QuickviewLayout/QuickviewLayout.d.ts +5 -1
- package/dist/esm/components/src/components/Organisms/QuickviewLayout/QuickviewLayout.d.ts.map +1 -1
- package/dist/esm/components/src/components/Organisms/QuickviewLayout/QuickviewLayout.js +44 -11
- package/dist/esm/components/src/index.d.ts +1 -1
- package/dist/esm/components/src/index.d.ts.map +1 -1
- package/dist/esm/components/src/index.js +1 -1
- package/dist/esm/components/src/providers/langComponents.d.ts +2 -2
- package/dist/esm/components/src/providers/langComponents.d.ts.map +1 -1
- package/dist/esm/components/src/providers/themeComponents.d.ts +7 -7
- package/dist/esm/components/src/providers/themeComponents.d.ts.map +1 -1
- package/dist/esm/components/src/providers/themeComponents.js +1 -1
- package/dist/esm/src/Snap.d.ts +1 -0
- package/dist/esm/src/Snap.d.ts.map +1 -1
- package/dist/esm/src/Snap.js +13 -1
- package/dist/esm/src/Templates/Stores/LibraryStore.d.ts +2 -2
- package/dist/esm/src/Templates/Stores/LibraryStore.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/LibraryStore.js +2 -2
- package/dist/esm/src/Templates/Stores/library/languages/ar.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/ar.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/de.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/de.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/es.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/es.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/fr.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/fr.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/hi.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/hi.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/it.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/it.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/ja.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/ja.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/ko.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/ko.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/nl.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/nl.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/pt.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/pt.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/ru.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/ru.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/tr.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/tr.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/vi.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/vi.js +45 -34
- package/dist/esm/src/Templates/Stores/library/languages/zh.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/languages/zh.js +45 -34
- package/dist/esm/src/create/createChatController.js +1 -0
- package/package.json +12 -12
- package/dist/cjs/components/src/components/Molecules/ChatProductQueryMessage/ChatProductQueryMessage.js +0 -577
- package/dist/esm/components/src/components/Molecules/ChatProductQueryMessage/ChatProductQueryMessage.d.ts +0 -38
- package/dist/esm/components/src/components/Molecules/ChatProductQueryMessage/ChatProductQueryMessage.d.ts.map +0 -1
- package/dist/esm/components/src/components/Molecules/ChatProductQueryMessage/ChatProductQueryMessage.js +0 -571
- package/dist/esm/components/src/components/Molecules/ChatProductQueryMessage/index.d.ts +0 -2
- package/dist/esm/components/src/components/Molecules/ChatProductQueryMessage/index.d.ts.map +0 -1
- package/dist/esm/components/src/components/Molecules/ChatProductQueryMessage/index.js +0 -1
|
@@ -116,6 +116,11 @@ export const vi = {
|
|
|
116
116
|
title: 'Đóng trò chuyện',
|
|
117
117
|
},
|
|
118
118
|
},
|
|
119
|
+
headerLogo: {
|
|
120
|
+
attributes: {
|
|
121
|
+
alt: 'Logo trò chuyện',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
119
124
|
newChatButton: {
|
|
120
125
|
attributes: {
|
|
121
126
|
'aria-label': 'Cuộc trò chuyện mới',
|
|
@@ -253,6 +258,9 @@ export const vi = {
|
|
|
253
258
|
attachmentImageSimilarTitle: {
|
|
254
259
|
value: 'Tìm sản phẩm tương tự với hình ảnh này:',
|
|
255
260
|
},
|
|
261
|
+
attachmentImageName: {
|
|
262
|
+
value: 'Hình ảnh',
|
|
263
|
+
},
|
|
256
264
|
topicDriftScopeMessage: {
|
|
257
265
|
value: 'Tôi ở đây để hỗ trợ bạn mua sắm',
|
|
258
266
|
},
|
|
@@ -303,6 +311,9 @@ export const vi = {
|
|
|
303
311
|
dropOverlayText: {
|
|
304
312
|
value: 'Thả ảnh vào đây để tải lên',
|
|
305
313
|
},
|
|
314
|
+
poweredByText: {
|
|
315
|
+
value: 'Được cung cấp bởi Athos Commerce.',
|
|
316
|
+
},
|
|
306
317
|
disclaimerText: {
|
|
307
318
|
value: 'Trợ lý được hỗ trợ bởi AI. Đôi khi có thể mắc lỗi. Tránh chia sẻ thông tin cá nhân.',
|
|
308
319
|
},
|
|
@@ -333,37 +344,37 @@ export const vi = {
|
|
|
333
344
|
chatAttachmentContext: {
|
|
334
345
|
closeButton: {
|
|
335
346
|
attributes: {
|
|
336
|
-
'aria-label': '
|
|
347
|
+
'aria-label': (data) => `Đóng ${data?.title ?? ''}`,
|
|
337
348
|
},
|
|
338
349
|
},
|
|
339
350
|
openItemButton: {
|
|
340
351
|
attributes: {
|
|
341
|
-
'aria-label':
|
|
352
|
+
'aria-label': (data) => `Mở ${data?.item?.name ?? ''}`,
|
|
342
353
|
},
|
|
343
354
|
},
|
|
344
355
|
loadingIndicator: {
|
|
345
356
|
attributes: {
|
|
346
|
-
'aria-label':
|
|
357
|
+
'aria-label': (data) => `Đang tải ${data?.item?.name ?? ''}`,
|
|
347
358
|
},
|
|
348
359
|
},
|
|
349
360
|
removeButton: {
|
|
350
361
|
attributes: {
|
|
351
|
-
'aria-label':
|
|
362
|
+
'aria-label': (data) => `Xóa ${data?.item?.name ?? ''}`,
|
|
352
363
|
},
|
|
353
364
|
},
|
|
354
365
|
uploadFailedText: {
|
|
355
|
-
value:
|
|
366
|
+
value: (data) => `Tải tệp lên không thành công - ${data?.item?.name ?? ''}`,
|
|
356
367
|
},
|
|
357
368
|
},
|
|
358
369
|
chatInspirationResultMessage: {
|
|
359
370
|
searchQueryButton: {
|
|
360
371
|
attributes: {
|
|
361
|
-
'aria-label':
|
|
372
|
+
'aria-label': (data) => `Tìm kiếm "${data?.searchTerm ?? ''}"`,
|
|
362
373
|
},
|
|
363
374
|
},
|
|
364
375
|
openProductButton: {
|
|
365
376
|
attributes: {
|
|
366
|
-
'aria-label':
|
|
377
|
+
'aria-label': (data) => `Mở ${data?.productName || 'sản phẩm'}`,
|
|
367
378
|
},
|
|
368
379
|
},
|
|
369
380
|
},
|
|
@@ -434,20 +445,20 @@ export const vi = {
|
|
|
434
445
|
},
|
|
435
446
|
productAttachmentButton: {
|
|
436
447
|
attributes: {
|
|
437
|
-
'aria-label':
|
|
438
|
-
title:
|
|
448
|
+
'aria-label': (data) => `Xem chi tiết ${data?.attachment?.name ?? ''}`,
|
|
449
|
+
title: (data) => `Xem chi tiết ${data?.attachment?.name ?? ''}`,
|
|
439
450
|
},
|
|
440
451
|
},
|
|
441
452
|
facetAttachment: {
|
|
442
453
|
attributes: {
|
|
443
|
-
'aria-label':
|
|
444
|
-
title:
|
|
454
|
+
'aria-label': (data) => (data?.filterOptions?.length ? `Bộ lọc: ${data.filterOptions[0].facetKey} = ${data.filterOptions[0].label}` : ''),
|
|
455
|
+
title: (data) => (data?.filterOptions?.length ? `Bộ lọc: ${data.filterOptions[0].facetKey} = ${data.filterOptions[0].label}` : ''),
|
|
445
456
|
},
|
|
446
457
|
},
|
|
447
458
|
facetOverflow: {
|
|
448
459
|
attributes: {
|
|
449
|
-
'aria-label':
|
|
450
|
-
title:
|
|
460
|
+
'aria-label': (data) => `${data?.hiddenFacetCount ?? 0} bộ lọc bổ sung`,
|
|
461
|
+
title: (data) => `${data?.hiddenFacetCount ?? 0} bộ lọc khác`,
|
|
451
462
|
},
|
|
452
463
|
},
|
|
453
464
|
},
|
|
@@ -465,14 +476,24 @@ export const vi = {
|
|
|
465
476
|
},
|
|
466
477
|
viewProductButton: {
|
|
467
478
|
attributes: {
|
|
468
|
-
'aria-label':
|
|
479
|
+
'aria-label': (data) => `Xem chi tiết ${data?.productName ?? ''}`,
|
|
469
480
|
},
|
|
470
481
|
},
|
|
471
482
|
},
|
|
472
|
-
|
|
483
|
+
chatQuickview: {
|
|
473
484
|
loadingText: {
|
|
474
485
|
value: 'Đang tải chi tiết sản phẩm...',
|
|
475
486
|
},
|
|
487
|
+
quickview: {
|
|
488
|
+
attributes: {
|
|
489
|
+
'aria-label': 'Xem nhanh',
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
closeButton: {
|
|
493
|
+
attributes: {
|
|
494
|
+
'aria-label': 'Đóng xem nhanh',
|
|
495
|
+
},
|
|
496
|
+
},
|
|
476
497
|
backToComparisonButton: {
|
|
477
498
|
value: 'Quay lại so sánh',
|
|
478
499
|
attributes: {
|
|
@@ -488,31 +509,15 @@ export const vi = {
|
|
|
488
509
|
addToCartButton: {
|
|
489
510
|
value: 'Thêm vào giỏ hàng',
|
|
490
511
|
},
|
|
512
|
+
moreInfoButton: {
|
|
513
|
+
value: 'Thêm thông tin',
|
|
514
|
+
},
|
|
491
515
|
similarButton: {
|
|
492
516
|
value: 'Tương tự',
|
|
493
517
|
},
|
|
494
518
|
discussButton: {
|
|
495
519
|
value: 'Thảo luận',
|
|
496
520
|
},
|
|
497
|
-
inStockText: {
|
|
498
|
-
value: 'Còn hàng',
|
|
499
|
-
},
|
|
500
|
-
outOfStockText: {
|
|
501
|
-
value: 'Hết hàng',
|
|
502
|
-
},
|
|
503
|
-
unavailableText: {
|
|
504
|
-
value: 'không khả dụng',
|
|
505
|
-
},
|
|
506
|
-
variantsGroup: {
|
|
507
|
-
attributes: {
|
|
508
|
-
'aria-label': 'Chọn phiên bản',
|
|
509
|
-
},
|
|
510
|
-
},
|
|
511
|
-
productInformationTable: {
|
|
512
|
-
attributes: {
|
|
513
|
-
'aria-label': 'Thông tin sản phẩm',
|
|
514
|
-
},
|
|
515
|
-
},
|
|
516
521
|
},
|
|
517
522
|
chatResult: {
|
|
518
523
|
similarButton: {
|
|
@@ -951,6 +956,12 @@ export const vi = {
|
|
|
951
956
|
moreInfoButton: {
|
|
952
957
|
value: 'Thêm thông tin',
|
|
953
958
|
},
|
|
959
|
+
similarButton: {
|
|
960
|
+
value: 'Tương tự',
|
|
961
|
+
},
|
|
962
|
+
discussButton: {
|
|
963
|
+
value: 'Thảo luận',
|
|
964
|
+
},
|
|
954
965
|
loadingText: {
|
|
955
966
|
value: 'Đang tải…',
|
|
956
967
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../../../src/Templates/Stores/library/languages/zh.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,eAAO,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../../../src/Templates/Stores/library/languages/zh.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,eAAO,MAAM,EAAE,EAAE,cA6+BhB,CAAC"}
|
|
@@ -116,6 +116,11 @@ export const zh = {
|
|
|
116
116
|
title: '关闭聊天',
|
|
117
117
|
},
|
|
118
118
|
},
|
|
119
|
+
headerLogo: {
|
|
120
|
+
attributes: {
|
|
121
|
+
alt: '聊天标志',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
119
124
|
newChatButton: {
|
|
120
125
|
attributes: {
|
|
121
126
|
'aria-label': '新聊天',
|
|
@@ -253,6 +258,9 @@ export const zh = {
|
|
|
253
258
|
attachmentImageSimilarTitle: {
|
|
254
259
|
value: '查找与此图片相似的产品:',
|
|
255
260
|
},
|
|
261
|
+
attachmentImageName: {
|
|
262
|
+
value: '图片',
|
|
263
|
+
},
|
|
256
264
|
topicDriftScopeMessage: {
|
|
257
265
|
value: '我在这里为您的购物提供帮助',
|
|
258
266
|
},
|
|
@@ -303,6 +311,9 @@ export const zh = {
|
|
|
303
311
|
dropOverlayText: {
|
|
304
312
|
value: '拖放图片以上传',
|
|
305
313
|
},
|
|
314
|
+
poweredByText: {
|
|
315
|
+
value: '由 Athos Commerce 提供支持。',
|
|
316
|
+
},
|
|
306
317
|
disclaimerText: {
|
|
307
318
|
value: 'AI 驱动的助手,有时可能会出错。请避免分享个人信息。',
|
|
308
319
|
},
|
|
@@ -333,37 +344,37 @@ export const zh = {
|
|
|
333
344
|
chatAttachmentContext: {
|
|
334
345
|
closeButton: {
|
|
335
346
|
attributes: {
|
|
336
|
-
'aria-label': '
|
|
347
|
+
'aria-label': (data) => `关闭${data?.title ?? ''}`,
|
|
337
348
|
},
|
|
338
349
|
},
|
|
339
350
|
openItemButton: {
|
|
340
351
|
attributes: {
|
|
341
|
-
'aria-label': '
|
|
352
|
+
'aria-label': (data) => `打开${data?.item?.name ?? ''}`,
|
|
342
353
|
},
|
|
343
354
|
},
|
|
344
355
|
loadingIndicator: {
|
|
345
356
|
attributes: {
|
|
346
|
-
'aria-label': '
|
|
357
|
+
'aria-label': (data) => `正在加载${data?.item?.name ?? ''}`,
|
|
347
358
|
},
|
|
348
359
|
},
|
|
349
360
|
removeButton: {
|
|
350
361
|
attributes: {
|
|
351
|
-
'aria-label': '
|
|
362
|
+
'aria-label': (data) => `移除${data?.item?.name ?? ''}`,
|
|
352
363
|
},
|
|
353
364
|
},
|
|
354
365
|
uploadFailedText: {
|
|
355
|
-
value: '
|
|
366
|
+
value: (data) => `文件上传失败 - ${data?.item?.name ?? ''}`,
|
|
356
367
|
},
|
|
357
368
|
},
|
|
358
369
|
chatInspirationResultMessage: {
|
|
359
370
|
searchQueryButton: {
|
|
360
371
|
attributes: {
|
|
361
|
-
'aria-label': '
|
|
372
|
+
'aria-label': (data) => `搜索“${data?.searchTerm ?? ''}”`,
|
|
362
373
|
},
|
|
363
374
|
},
|
|
364
375
|
openProductButton: {
|
|
365
376
|
attributes: {
|
|
366
|
-
'aria-label': '
|
|
377
|
+
'aria-label': (data) => `打开${data?.productName || '产品'}`,
|
|
367
378
|
},
|
|
368
379
|
},
|
|
369
380
|
},
|
|
@@ -434,20 +445,20 @@ export const zh = {
|
|
|
434
445
|
},
|
|
435
446
|
productAttachmentButton: {
|
|
436
447
|
attributes: {
|
|
437
|
-
'aria-label': '
|
|
438
|
-
title: '
|
|
448
|
+
'aria-label': (data) => `查看${data?.attachment?.name ?? ''}的详情`,
|
|
449
|
+
title: (data) => `查看${data?.attachment?.name ?? ''}的详情`,
|
|
439
450
|
},
|
|
440
451
|
},
|
|
441
452
|
facetAttachment: {
|
|
442
453
|
attributes: {
|
|
443
|
-
'aria-label': '
|
|
444
|
-
title: '
|
|
454
|
+
'aria-label': (data) => (data?.filterOptions?.length ? `筛选条件:${data.filterOptions[0].facetKey} = ${data.filterOptions[0].label}` : ''),
|
|
455
|
+
title: (data) => (data?.filterOptions?.length ? `筛选条件:${data.filterOptions[0].facetKey} = ${data.filterOptions[0].label}` : ''),
|
|
445
456
|
},
|
|
446
457
|
},
|
|
447
458
|
facetOverflow: {
|
|
448
459
|
attributes: {
|
|
449
|
-
'aria-label':
|
|
450
|
-
title:
|
|
460
|
+
'aria-label': (data) => `另有 ${data?.hiddenFacetCount ?? 0} 个筛选条件`,
|
|
461
|
+
title: (data) => `还有 ${data?.hiddenFacetCount ?? 0} 个筛选条件`,
|
|
451
462
|
},
|
|
452
463
|
},
|
|
453
464
|
},
|
|
@@ -465,14 +476,24 @@ export const zh = {
|
|
|
465
476
|
},
|
|
466
477
|
viewProductButton: {
|
|
467
478
|
attributes: {
|
|
468
|
-
'aria-label': '
|
|
479
|
+
'aria-label': (data) => `查看${data?.productName ?? ''}的详情`,
|
|
469
480
|
},
|
|
470
481
|
},
|
|
471
482
|
},
|
|
472
|
-
|
|
483
|
+
chatQuickview: {
|
|
473
484
|
loadingText: {
|
|
474
485
|
value: '正在加载产品详情...',
|
|
475
486
|
},
|
|
487
|
+
quickview: {
|
|
488
|
+
attributes: {
|
|
489
|
+
'aria-label': '快速预览',
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
closeButton: {
|
|
493
|
+
attributes: {
|
|
494
|
+
'aria-label': '关闭快速预览',
|
|
495
|
+
},
|
|
496
|
+
},
|
|
476
497
|
backToComparisonButton: {
|
|
477
498
|
value: '返回比较',
|
|
478
499
|
attributes: {
|
|
@@ -488,31 +509,15 @@ export const zh = {
|
|
|
488
509
|
addToCartButton: {
|
|
489
510
|
value: '加入购物车',
|
|
490
511
|
},
|
|
512
|
+
moreInfoButton: {
|
|
513
|
+
value: '更多信息',
|
|
514
|
+
},
|
|
491
515
|
similarButton: {
|
|
492
516
|
value: '相似产品',
|
|
493
517
|
},
|
|
494
518
|
discussButton: {
|
|
495
519
|
value: '咨询',
|
|
496
520
|
},
|
|
497
|
-
inStockText: {
|
|
498
|
-
value: '有货',
|
|
499
|
-
},
|
|
500
|
-
outOfStockText: {
|
|
501
|
-
value: '缺货',
|
|
502
|
-
},
|
|
503
|
-
unavailableText: {
|
|
504
|
-
value: '不可用',
|
|
505
|
-
},
|
|
506
|
-
variantsGroup: {
|
|
507
|
-
attributes: {
|
|
508
|
-
'aria-label': '款式选择',
|
|
509
|
-
},
|
|
510
|
-
},
|
|
511
|
-
productInformationTable: {
|
|
512
|
-
attributes: {
|
|
513
|
-
'aria-label': '产品信息',
|
|
514
|
-
},
|
|
515
|
-
},
|
|
516
521
|
},
|
|
517
522
|
chatResult: {
|
|
518
523
|
similarButton: {
|
|
@@ -951,6 +956,12 @@ export const zh = {
|
|
|
951
956
|
moreInfoButton: {
|
|
952
957
|
value: '更多信息',
|
|
953
958
|
},
|
|
959
|
+
similarButton: {
|
|
960
|
+
value: '相似产品',
|
|
961
|
+
},
|
|
962
|
+
discussButton: {
|
|
963
|
+
value: '咨询',
|
|
964
|
+
},
|
|
954
965
|
loadingText: {
|
|
955
966
|
value: '加载中…',
|
|
956
967
|
},
|
|
@@ -23,6 +23,7 @@ export default (config, services) => {
|
|
|
23
23
|
profiler: services?.profiler || new Profiler(),
|
|
24
24
|
logger: services?.logger || new Logger({ mode: config.mode }),
|
|
25
25
|
tracker: services?.tracker || new Tracker(config.client.globals),
|
|
26
|
+
quickviewManager: services?.quickviewManager,
|
|
26
27
|
}, config.context);
|
|
27
28
|
return cntrlr;
|
|
28
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@athoscommerce/snap-preact",
|
|
3
|
-
"version": "1.13.3-beta.
|
|
3
|
+
"version": "1.13.3-beta.191+a41cd1db4",
|
|
4
4
|
"description": "Snap Preact",
|
|
5
5
|
"main": "dist/cjs/src/index.js",
|
|
6
6
|
"module": "dist/esm/src/index.js",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"storybook": "storybook dev -c ./components/.storybook -p 6006"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@athoscommerce/snap-client": "1.13.3-beta.
|
|
32
|
-
"@athoscommerce/snap-controller": "1.13.3-beta.
|
|
33
|
-
"@athoscommerce/snap-event-manager": "1.13.3-beta.
|
|
34
|
-
"@athoscommerce/snap-logger": "1.13.3-beta.
|
|
35
|
-
"@athoscommerce/snap-platforms": "1.13.3-beta.
|
|
36
|
-
"@athoscommerce/snap-profiler": "1.13.3-beta.
|
|
37
|
-
"@athoscommerce/snap-store-mobx": "1.13.3-beta.
|
|
38
|
-
"@athoscommerce/snap-toolbox": "1.13.3-beta.
|
|
39
|
-
"@athoscommerce/snap-tracker": "1.13.3-beta.
|
|
40
|
-
"@athoscommerce/snap-url-manager": "1.13.3-beta.
|
|
31
|
+
"@athoscommerce/snap-client": "1.13.3-beta.191+a41cd1db4",
|
|
32
|
+
"@athoscommerce/snap-controller": "1.13.3-beta.191+a41cd1db4",
|
|
33
|
+
"@athoscommerce/snap-event-manager": "1.13.3-beta.191+a41cd1db4",
|
|
34
|
+
"@athoscommerce/snap-logger": "1.13.3-beta.191+a41cd1db4",
|
|
35
|
+
"@athoscommerce/snap-platforms": "1.13.3-beta.191+a41cd1db4",
|
|
36
|
+
"@athoscommerce/snap-profiler": "1.13.3-beta.191+a41cd1db4",
|
|
37
|
+
"@athoscommerce/snap-store-mobx": "1.13.3-beta.191+a41cd1db4",
|
|
38
|
+
"@athoscommerce/snap-toolbox": "1.13.3-beta.191+a41cd1db4",
|
|
39
|
+
"@athoscommerce/snap-tracker": "1.13.3-beta.191+a41cd1db4",
|
|
40
|
+
"@athoscommerce/snap-url-manager": "1.13.3-beta.191+a41cd1db4",
|
|
41
41
|
"@emotion/react": "11.13.0",
|
|
42
42
|
"acorn": "8.16.0",
|
|
43
43
|
"classnames": "^2.3.2",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"./webpack": "./webpack/index.js",
|
|
109
109
|
"./eslintplugin": "./eslint/src/index.cjs"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "a41cd1db40c6cfd858e3d7d3bf961c35854a3bef"
|
|
112
112
|
}
|