@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260713042706 → 0.8.1-dev.20260713051007

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260713042706",
3
+ "version": "0.8.1-dev.20260713051007",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,45 +0,0 @@
1
- "use client";
2
-
3
- // src/components/pageRenderingEngine/nodes/EnterAnimationClient.tsx
4
- import React, { useEffect, useRef } from "react";
5
- import { Fragment, jsx } from "react/jsx-runtime";
6
- function EnterAnimationClient({ hasEnterAnimation, children }) {
7
- const ref = useRef(null);
8
- console.log("render");
9
- useEffect(() => {
10
- console.log("effect");
11
- console.log("ref", ref.current);
12
- if (!hasEnterAnimation) {
13
- console.log("no animation");
14
- return;
15
- }
16
- if (!ref.current) {
17
- console.log("no ref");
18
- return;
19
- }
20
- console.log("observer started");
21
- }, []);
22
- useEffect(() => {
23
- if (!hasEnterAnimation || !ref.current) return;
24
- const observer = new IntersectionObserver(
25
- (entries) => {
26
- entries.forEach((entry) => {
27
- if (entry.isIntersecting) {
28
- entry.target.classList.add("visible");
29
- observer.unobserve(entry.target);
30
- }
31
- });
32
- },
33
- { threshold: 0.1 }
34
- );
35
- observer.observe(ref.current);
36
- return () => observer.disconnect();
37
- }, [hasEnterAnimation]);
38
- if (!children) return null;
39
- return /* @__PURE__ */ jsx(Fragment, { children: children && // enforce passing the ref to Wrapper
40
- //@ts-ignore
41
- React.cloneElement(children, { ref }) });
42
- }
43
- export {
44
- EnterAnimationClient as default
45
- };