@gem-sdk/core 1.23.0-staging.290 → 1.23.0-staging.293

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.
@@ -213,7 +213,7 @@ const useLivePageAnimation = (wrapperRef, settings, tag)=>{
213
213
  wrapperId.current = `animation-wrapper-${Math.random().toString(36).substr(2, 5)}`;
214
214
  wrapperRef.current.setAttribute('data-animationid', wrapperId.current);
215
215
  if (Object.keys(TAGS_SELECTOR).includes(tag)) animationElement.current = document.querySelector(`[data-animationid='${wrapperId.current}'] ${TAGS_SELECTOR?.[tag] ?? ''}`);
216
- else animationElement.current = document.querySelector(`[data-animationid='${wrapperId.current}'] > :first-child`);
216
+ else animationElement.current = document.querySelector(`[data-animationid='${wrapperId.current}'] > :first-of-type:not(script,link)`);
217
217
  return initResizeObserver();
218
218
  }, 100);
219
219
  }, [
@@ -211,7 +211,7 @@ const useLivePageAnimation = (wrapperRef, settings, tag)=>{
211
211
  wrapperId.current = `animation-wrapper-${Math.random().toString(36).substr(2, 5)}`;
212
212
  wrapperRef.current.setAttribute('data-animationid', wrapperId.current);
213
213
  if (Object.keys(TAGS_SELECTOR).includes(tag)) animationElement.current = document.querySelector(`[data-animationid='${wrapperId.current}'] ${TAGS_SELECTOR?.[tag] ?? ''}`);
214
- else animationElement.current = document.querySelector(`[data-animationid='${wrapperId.current}'] > :first-child`);
214
+ else animationElement.current = document.querySelector(`[data-animationid='${wrapperId.current}'] > :first-of-type:not(script,link)`);
215
215
  return initResizeObserver();
216
216
  }, 100);
217
217
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.23.0-staging.290",
3
+ "version": "1.23.0-staging.293",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",