@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260722054831 → 0.8.1-dev.20260722070133

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