@gem-sdk/pages 1.36.20 → 1.38.7

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.
@@ -356,7 +356,7 @@ const Toolbar = ()=>{
356
356
  ]);
357
357
  const setActiveComponent = react.useCallback(async ({ componentUid, productId, timeAwait = 500, forceReActive })=>{
358
358
  if (!componentUid) return;
359
- let $component = await waitForElementToExist(`${productId ? `[data-product-id="${productId}"] ` : ''}[data-uid="${componentUid}"]`, timeAwait);
359
+ let $component = await waitForElementToExist(`${productId ? `[data-product-id="${productId}"][data-uid="${componentUid}"], [data-product-id="${productId}"] [data-uid="${componentUid}"]` : `[data-uid="${componentUid}"]`}`, timeAwait);
360
360
  // check element fetch data: product, product list
361
361
  if (!$component) {
362
362
  const isLoading = document.querySelector(`.gp-loading-placeholder`);
@@ -352,7 +352,7 @@ const Toolbar = ()=>{
352
352
  ]);
353
353
  const setActiveComponent = useCallback(async ({ componentUid, productId, timeAwait = 500, forceReActive })=>{
354
354
  if (!componentUid) return;
355
- let $component = await waitForElementToExist(`${productId ? `[data-product-id="${productId}"] ` : ''}[data-uid="${componentUid}"]`, timeAwait);
355
+ let $component = await waitForElementToExist(`${productId ? `[data-product-id="${productId}"][data-uid="${componentUid}"], [data-product-id="${productId}"] [data-uid="${componentUid}"]` : `[data-uid="${componentUid}"]`}`, timeAwait);
356
356
  // check element fetch data: product, product list
357
357
  if (!$component) {
358
358
  const isLoading = document.querySelector(`.gp-loading-placeholder`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.36.20",
3
+ "version": "1.38.7",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "next-seo": "^6.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "1.36.20",
28
+ "@gem-sdk/core": "1.38.0",
29
29
  "@gem-sdk/plugin-cookie-bar": "1.35.0",
30
30
  "@gem-sdk/plugin-quick-view": "1.35.0",
31
31
  "@gem-sdk/plugin-sticky-add-to-cart": "1.35.0"