@gem-sdk/pages 1.23.0-staging.409 → 1.23.0-staging.411

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.
@@ -474,7 +474,7 @@ const Toolbar = ()=>{
474
474
  ]);
475
475
  const setActiveComponent = react.useCallback(async ({ componentUid, productId, timeAwait = 500, forceReActive })=>{
476
476
  if (!componentUid) return;
477
- let $component = await waitForElementToExist(`${productId ? `[data-product-id="${productId}"] ` : ''}[data-uid="${componentUid}"]`, timeAwait);
477
+ let $component = await waitForElementToExist(`${productId ? `[data-product-id="${productId}"][data-uid="${componentUid}"], [data-product-id="${productId}"] [data-uid="${componentUid}"]` : `[data-uid="${componentUid}"]`}`, timeAwait);
478
478
  // check element fetch data: product, product list
479
479
  if (!$component) {
480
480
  const isLoading = document.querySelector(`.gp-loading-placeholder`);
@@ -470,7 +470,7 @@ const Toolbar = ()=>{
470
470
  ]);
471
471
  const setActiveComponent = useCallback(async ({ componentUid, productId, timeAwait = 500, forceReActive })=>{
472
472
  if (!componentUid) return;
473
- let $component = await waitForElementToExist(`${productId ? `[data-product-id="${productId}"] ` : ''}[data-uid="${componentUid}"]`, timeAwait);
473
+ let $component = await waitForElementToExist(`${productId ? `[data-product-id="${productId}"][data-uid="${componentUid}"], [data-product-id="${productId}"] [data-uid="${componentUid}"]` : `[data-uid="${componentUid}"]`}`, timeAwait);
474
474
  // check element fetch data: product, product list
475
475
  if (!$component) {
476
476
  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.23.0-staging.409",
3
+ "version": "1.23.0-staging.411",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",