@sonic-equipment/ui 0.0.47 → 0.0.48
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/config.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +22 -5
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ const configPerEnvironment = {
|
|
|
53
53
|
ALGOLIA_API_KEY: 'e31a3a53449eceb4d0f9273b9bcd9759',
|
|
54
54
|
ALGOLIA_APP_ID: '14CUFCVMAD',
|
|
55
55
|
ALGOLIA_HOST: 'bff.shop.sonic-equipment.com',
|
|
56
|
+
ALGOLIA_PROXY_HOST: 'https://shop.sonic-equipment.com/bff',
|
|
56
57
|
BFF_API_URL: 'https://bff.shop.sonic-equipment.com',
|
|
57
58
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
58
59
|
SHOP_API_URL: '',
|
|
@@ -61,6 +62,7 @@ const configPerEnvironment = {
|
|
|
61
62
|
ALGOLIA_API_KEY: 'e0edf30798a6b2e4e44fd25f0f2f9646',
|
|
62
63
|
ALGOLIA_APP_ID: 'testing9VXJ0U4GSV',
|
|
63
64
|
ALGOLIA_HOST: 'test-bff.shop.sonic-equipment.com',
|
|
65
|
+
ALGOLIA_PROXY_HOST: 'https://sonicequipment.commerce.insitesandbox.com/bff',
|
|
64
66
|
BFF_API_URL: 'https://test-bff.shop.sonic-equipment.com',
|
|
65
67
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
66
68
|
SHOP_API_URL: '',
|
|
@@ -1348,7 +1350,22 @@ function elementChildren(element, selector) {
|
|
|
1348
1350
|
if (selector === void 0) {
|
|
1349
1351
|
selector = '';
|
|
1350
1352
|
}
|
|
1351
|
-
|
|
1353
|
+
const children = [...element.children];
|
|
1354
|
+
if (element instanceof HTMLSlotElement) {
|
|
1355
|
+
children.push(...element.assignedElements());
|
|
1356
|
+
}
|
|
1357
|
+
if (!selector) {
|
|
1358
|
+
return children;
|
|
1359
|
+
}
|
|
1360
|
+
return children.filter(el => el.matches(selector));
|
|
1361
|
+
}
|
|
1362
|
+
function elementIsChildOf(el, parent) {
|
|
1363
|
+
const isChild = parent.contains(el);
|
|
1364
|
+
if (!isChild && parent instanceof HTMLSlotElement) {
|
|
1365
|
+
const children = [...element.assignedElements()];
|
|
1366
|
+
return children.includes(el);
|
|
1367
|
+
}
|
|
1368
|
+
return isChild;
|
|
1352
1369
|
}
|
|
1353
1370
|
function showWarning(text) {
|
|
1354
1371
|
try {
|
|
@@ -3857,7 +3874,7 @@ function onTouchStart(event) {
|
|
|
3857
3874
|
}
|
|
3858
3875
|
let targetEl = e.target;
|
|
3859
3876
|
if (params.touchEventsTarget === 'wrapper') {
|
|
3860
|
-
if (!swiper.wrapperEl
|
|
3877
|
+
if (!elementIsChildOf(targetEl, swiper.wrapperEl)) return;
|
|
3861
3878
|
}
|
|
3862
3879
|
if ('which' in e && e.which === 3) return;
|
|
3863
3880
|
if ('button' in e && e.button > 0) return;
|
|
@@ -5926,7 +5943,7 @@ const updateOnVirtualData = swiper => {
|
|
|
5926
5943
|
};
|
|
5927
5944
|
|
|
5928
5945
|
/**
|
|
5929
|
-
* Swiper React 11.1.
|
|
5946
|
+
* Swiper React 11.1.7
|
|
5930
5947
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
5931
5948
|
* https://swiperjs.com
|
|
5932
5949
|
*
|
|
@@ -5934,7 +5951,7 @@ const updateOnVirtualData = swiper => {
|
|
|
5934
5951
|
*
|
|
5935
5952
|
* Released under the MIT License
|
|
5936
5953
|
*
|
|
5937
|
-
* Released on: July
|
|
5954
|
+
* Released on: July 24, 2024
|
|
5938
5955
|
*/
|
|
5939
5956
|
|
|
5940
5957
|
|
|
@@ -7171,7 +7188,7 @@ function ProductListingPage({ pageUrl, searchClient: _searchClient, }) {
|
|
|
7171
7188
|
createSonicSearchClient({
|
|
7172
7189
|
apiKey: config.ALGOLIA_API_KEY,
|
|
7173
7190
|
appId: config.ALGOLIA_APP_ID,
|
|
7174
|
-
host: config.
|
|
7191
|
+
host: config.ALGOLIA_PROXY_HOST,
|
|
7175
7192
|
path: '/search',
|
|
7176
7193
|
}), [_searchClient]);
|
|
7177
7194
|
if (isError) {
|
package/dist/styles.css
CHANGED
|
@@ -991,7 +991,7 @@
|
|
|
991
991
|
}
|
|
992
992
|
|
|
993
993
|
/**
|
|
994
|
-
* Swiper 11.1.
|
|
994
|
+
* Swiper 11.1.7
|
|
995
995
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
996
996
|
* https://swiperjs.com
|
|
997
997
|
*
|
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
*
|
|
1000
1000
|
* Released under the MIT License
|
|
1001
1001
|
*
|
|
1002
|
-
* Released on: July
|
|
1002
|
+
* Released on: July 24, 2024
|
|
1003
1003
|
*/
|
|
1004
1004
|
|
|
1005
1005
|
/* FONT_START */
|