@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260711052655 → 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/dist/{EnterAnimationClient-R3GFCNRS.mjs → EnterAnimationClient-ZN3NLFNO.mjs} +14 -0
- package/dist/index.js +16 -0
- package/dist/index.mjs +20 -18
- package/package.json +1 -1
- package/dist/EnterAnimationClient-2NFKY4B5.mjs +0 -31
- package/dist/InputControlClient-BO7WPPVX.mjs +0 -766
- package/dist/LinkNodeButton-XA7Z5IDR.mjs +0 -171
- package/dist/Pagination-NCJCOYHF.mjs +0 -181
- package/dist/chunk-DBHUCH4B.mjs +0 -109
- package/dist/chunk-NT56SZOV.mjs +0 -982
- package/dist/chunk-UFKPTMM7.mjs +0 -199
- package/dist/chunk-YL6E76X2.mjs +0 -212
|
@@ -7,6 +7,20 @@ import React, { useEffect, useRef } from "react";
|
|
|
7
7
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
8
8
|
function EnterAnimationClient({ hasEnterAnimation, children }) {
|
|
9
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
|
+
}, []);
|
|
10
24
|
useEffect(() => {
|
|
11
25
|
if (!hasEnterAnimation || !ref.current) return;
|
|
12
26
|
const observer = new IntersectionObserver(
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
"use strict";
|
|
2
4
|
var __create = Object.create;
|
|
3
5
|
var __defProp = Object.defineProperty;
|
|
@@ -4318,6 +4320,20 @@ __export(EnterAnimationClient_exports, {
|
|
|
4318
4320
|
});
|
|
4319
4321
|
function EnterAnimationClient({ hasEnterAnimation, children }) {
|
|
4320
4322
|
const ref = (0, import_react52.useRef)(null);
|
|
4323
|
+
console.log("render");
|
|
4324
|
+
(0, import_react52.useEffect)(() => {
|
|
4325
|
+
console.log("effect");
|
|
4326
|
+
console.log("ref", ref.current);
|
|
4327
|
+
if (!hasEnterAnimation) {
|
|
4328
|
+
console.log("no animation");
|
|
4329
|
+
return;
|
|
4330
|
+
}
|
|
4331
|
+
if (!ref.current) {
|
|
4332
|
+
console.log("no ref");
|
|
4333
|
+
return;
|
|
4334
|
+
}
|
|
4335
|
+
console.log("observer started");
|
|
4336
|
+
}, []);
|
|
4321
4337
|
(0, import_react52.useEffect)(() => {
|
|
4322
4338
|
if (!hasEnterAnimation || !ref.current) return;
|
|
4323
4339
|
const observer = new IntersectionObserver(
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
OdataBuilder
|
|
3
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X3YSXTD2.mjs";
|
|
4
6
|
import {
|
|
5
7
|
AssetUtility_default,
|
|
6
8
|
BooleanSelect_default,
|
|
@@ -18,22 +20,22 @@ import {
|
|
|
18
20
|
SelectWithSearchInput_default,
|
|
19
21
|
TimeInput_default,
|
|
20
22
|
VideoView_default
|
|
21
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6NCGSAPP.mjs";
|
|
22
24
|
import {
|
|
23
25
|
Constants,
|
|
24
26
|
Hyperlink,
|
|
25
27
|
Icon_default,
|
|
26
28
|
InputControlType_default
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5GHPW7SJ.mjs";
|
|
28
30
|
import {
|
|
29
31
|
ServiceClient_default
|
|
30
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-WEV5U33G.mjs";
|
|
31
33
|
import {
|
|
32
34
|
Button_default,
|
|
33
35
|
ClientButton_default,
|
|
34
36
|
ToastService_default
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-JKP4XOZB.mjs";
|
|
38
|
+
import "./chunk-IMNQO57B.mjs";
|
|
37
39
|
|
|
38
40
|
// src/components/controls/view/ViewControl.tsx
|
|
39
41
|
import React13 from "react";
|
|
@@ -77,7 +79,7 @@ var NumberView_default = NumberView;
|
|
|
77
79
|
|
|
78
80
|
// src/components/controls/view/DateView.tsx
|
|
79
81
|
import dynamic from "next/dynamic";
|
|
80
|
-
var DateView = dynamic(() => import("./DateViewClient-
|
|
82
|
+
var DateView = dynamic(() => import("./DateViewClient-VLTRN47D.mjs"), {
|
|
81
83
|
ssr: false
|
|
82
84
|
});
|
|
83
85
|
var DateView_default = DateView;
|
|
@@ -132,7 +134,7 @@ import React3 from "react";
|
|
|
132
134
|
// src/components/DeviceAssetSelector.tsx
|
|
133
135
|
import dynamic2 from "next/dynamic";
|
|
134
136
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
135
|
-
var HlsPlayer = dynamic2(() => import("./HlsPlayer-
|
|
137
|
+
var HlsPlayer = dynamic2(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
136
138
|
var FORMAT_CLASSES = {
|
|
137
139
|
center: "justify-center",
|
|
138
140
|
left: "justify-start",
|
|
@@ -367,7 +369,7 @@ var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
|
367
369
|
|
|
368
370
|
// src/components/controls/view/DateTimeVew.tsx
|
|
369
371
|
import dynamic3 from "next/dynamic";
|
|
370
|
-
var DateTimeView = dynamic3(() => import("./DateTimeViewClient-
|
|
372
|
+
var DateTimeView = dynamic3(() => import("./DateTimeViewClient-R3M6ISVK.mjs"), {
|
|
371
373
|
ssr: false
|
|
372
374
|
});
|
|
373
375
|
var DateTimeVew_default = DateTimeView;
|
|
@@ -409,7 +411,7 @@ var ViewControl_default = ViewControl;
|
|
|
409
411
|
|
|
410
412
|
// src/components/controls/edit/InputControl.tsx
|
|
411
413
|
import dynamic4 from "next/dynamic";
|
|
412
|
-
var InputControl = dynamic4(() => import("./InputControlClient-
|
|
414
|
+
var InputControl = dynamic4(() => import("./InputControlClient-HSPSCMLF.mjs"), {
|
|
413
415
|
ssr: false
|
|
414
416
|
});
|
|
415
417
|
var InputControl_default = InputControl;
|
|
@@ -505,7 +507,7 @@ import React14 from "react";
|
|
|
505
507
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
506
508
|
import dynamic5 from "next/dynamic";
|
|
507
509
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
508
|
-
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-
|
|
510
|
+
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
509
511
|
var getNestedValue = (obj, path) => {
|
|
510
512
|
if (!obj || !path) return void 0;
|
|
511
513
|
return path.split(".").reduce((current, key) => {
|
|
@@ -613,7 +615,7 @@ var ImageNode_default = ImageNode;
|
|
|
613
615
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
614
616
|
import dynamic6 from "next/dynamic";
|
|
615
617
|
import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
616
|
-
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-
|
|
618
|
+
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-LX3KKGZY.mjs"), {
|
|
617
619
|
ssr: false
|
|
618
620
|
});
|
|
619
621
|
function getNestedValue2(obj, path) {
|
|
@@ -1048,7 +1050,7 @@ var QuoteNode_default = QuoteNode;
|
|
|
1048
1050
|
import React20 from "react";
|
|
1049
1051
|
import dynamic7 from "next/dynamic";
|
|
1050
1052
|
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1051
|
-
var CopyButton = dynamic7(() => import("./CopyButton-
|
|
1053
|
+
var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
|
|
1052
1054
|
ssr: false,
|
|
1053
1055
|
// optional: fallback UI while loading
|
|
1054
1056
|
loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
@@ -1191,7 +1193,7 @@ import React22 from "react";
|
|
|
1191
1193
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1192
1194
|
import dynamic8 from "next/dynamic";
|
|
1193
1195
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1194
|
-
var IframeClient = dynamic8(() => import("./IframeClient-
|
|
1196
|
+
var IframeClient = dynamic8(() => import("./IframeClient-RGJFZ5P2.mjs"), {
|
|
1195
1197
|
ssr: false
|
|
1196
1198
|
});
|
|
1197
1199
|
var EmbedNode = (props) => {
|
|
@@ -1406,7 +1408,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
1406
1408
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1407
1409
|
import dynamic9 from "next/dynamic";
|
|
1408
1410
|
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1409
|
-
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-
|
|
1411
|
+
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
1410
1412
|
var deviceToMediaQuery = (device) => {
|
|
1411
1413
|
switch (device) {
|
|
1412
1414
|
case "lg":
|
|
@@ -2221,11 +2223,11 @@ var DocumentNode_default = DocumentNode;
|
|
|
2221
2223
|
|
|
2222
2224
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2223
2225
|
import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2224
|
-
var Pagination = dynamic10(() => import("./Pagination-
|
|
2225
|
-
var Slider = dynamic10(() => import("./Slider-
|
|
2226
|
+
var Pagination = dynamic10(() => import("./Pagination-T7YN2OMV.mjs"), { ssr: true });
|
|
2227
|
+
var Slider = dynamic10(() => import("./Slider-554BKC7N.mjs"), {
|
|
2226
2228
|
ssr: false
|
|
2227
2229
|
});
|
|
2228
|
-
var EnterAnimationClient = dynamic10(() => import("./EnterAnimationClient-
|
|
2230
|
+
var EnterAnimationClient = dynamic10(() => import("./EnterAnimationClient-ZN3NLFNO.mjs"), {
|
|
2229
2231
|
ssr: false
|
|
2230
2232
|
});
|
|
2231
2233
|
function toCamelCase(str) {
|
package/package.json
CHANGED
|
@@ -1,31 +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
|
-
useEffect(() => {
|
|
9
|
-
if (!hasEnterAnimation || !ref.current) return;
|
|
10
|
-
const observer = new IntersectionObserver(
|
|
11
|
-
(entries) => {
|
|
12
|
-
entries.forEach((entry) => {
|
|
13
|
-
if (entry.isIntersecting) {
|
|
14
|
-
entry.target.classList.add("visible");
|
|
15
|
-
observer.unobserve(entry.target);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
},
|
|
19
|
-
{ threshold: 0.1 }
|
|
20
|
-
);
|
|
21
|
-
observer.observe(ref.current);
|
|
22
|
-
return () => observer.disconnect();
|
|
23
|
-
}, [hasEnterAnimation]);
|
|
24
|
-
if (!children) return null;
|
|
25
|
-
return /* @__PURE__ */ jsx(Fragment, { children: children && // enforce passing the ref to Wrapper
|
|
26
|
-
//@ts-ignore
|
|
27
|
-
React.cloneElement(children, { ref }) });
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
EnterAnimationClient as default
|
|
31
|
-
};
|