@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260707162731 → 0.8.1-dev.20260708070033
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/{InputControlClient-NJV6B65M.mjs → InputControlClient-646PQPKQ.mjs} +79 -6
- package/dist/{InputControlClient-TW664WIJ.mjs → InputControlClient-O4HBEUP4.mjs} +79 -6
- package/dist/{LinkNodeButton-FUL3J5HR.mjs → LinkNodeButton-66LEXGVY.mjs} +12 -12
- package/dist/{LinkNodeButton-IGJOGOKI.mjs → LinkNodeButton-GVOICN34.mjs} +10 -11
- package/dist/{LinkNodeButton-ZONM74OO.mjs → LinkNodeButton-WA5N3CBJ.mjs} +12 -12
- package/dist/{Pagination-FSYLYKUA.mjs → Pagination-4K7GMWUE.mjs} +2 -2
- package/dist/Pagination-OQT7Q2XO.mjs +183 -0
- package/dist/chunk-FI2KJBK2.mjs +110 -0
- package/dist/{chunk-47HD7QP7.mjs → chunk-FYGNBMII.mjs} +1 -1
- package/dist/chunk-OGGIS4AN.mjs +201 -0
- package/dist/{chunk-CM7LUGCH.mjs → chunk-UWFXFVUU.mjs} +2 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +575 -494
- package/dist/index.mjs +19 -19
- package/dist/server.js +11 -11
- package/dist/server.mjs +1 -1
- package/package.json +2 -2
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-OGGIS4AN.mjs";
|
|
4
6
|
import {
|
|
5
7
|
AssetUtility_default,
|
|
6
8
|
BooleanSelect_default,
|
|
@@ -17,22 +19,22 @@ import {
|
|
|
17
19
|
PhoneInput_default,
|
|
18
20
|
SelectWithSearchInput_default,
|
|
19
21
|
TimeInput_default
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7ZFZLN56.mjs";
|
|
21
23
|
import {
|
|
22
24
|
Constants,
|
|
23
25
|
Hyperlink,
|
|
24
26
|
Icon_default,
|
|
25
27
|
InputControlType_default
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FI2KJBK2.mjs";
|
|
27
29
|
import {
|
|
28
30
|
ServiceClient_default
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WEV5U33G.mjs";
|
|
30
32
|
import {
|
|
31
33
|
Button_default,
|
|
32
34
|
ClientButton_default,
|
|
33
35
|
ToastService_default
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-67IG5NBU.mjs";
|
|
37
|
+
import "./chunk-IMNQO57B.mjs";
|
|
36
38
|
|
|
37
39
|
// src/components/controls/view/ViewControl.tsx
|
|
38
40
|
import React13 from "react";
|
|
@@ -75,7 +77,7 @@ var NumberView_default = NumberView;
|
|
|
75
77
|
|
|
76
78
|
// src/components/controls/view/DateView.tsx
|
|
77
79
|
import dynamic from "next/dynamic";
|
|
78
|
-
var DateView = dynamic(() => import("./DateViewClient-
|
|
80
|
+
var DateView = dynamic(() => import("./DateViewClient-VLTRN47D.mjs"), {
|
|
79
81
|
ssr: false
|
|
80
82
|
});
|
|
81
83
|
var DateView_default = DateView;
|
|
@@ -130,7 +132,7 @@ import React3 from "react";
|
|
|
130
132
|
// src/components/DeviceAssetSelector.tsx
|
|
131
133
|
import dynamic2 from "next/dynamic";
|
|
132
134
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
133
|
-
var HlsPlayer = dynamic2(() => import("./HlsPlayer-
|
|
135
|
+
var HlsPlayer = dynamic2(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
134
136
|
var FORMAT_CLASSES = {
|
|
135
137
|
center: "justify-center",
|
|
136
138
|
left: "justify-start",
|
|
@@ -365,7 +367,7 @@ var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
|
365
367
|
|
|
366
368
|
// src/components/controls/view/DateTimeVew.tsx
|
|
367
369
|
import dynamic3 from "next/dynamic";
|
|
368
|
-
var DateTimeView = dynamic3(() => import("./DateTimeViewClient-
|
|
370
|
+
var DateTimeView = dynamic3(() => import("./DateTimeViewClient-R3M6ISVK.mjs"), {
|
|
369
371
|
ssr: false
|
|
370
372
|
});
|
|
371
373
|
var DateTimeVew_default = DateTimeView;
|
|
@@ -406,7 +408,7 @@ var ViewControl_default = ViewControl;
|
|
|
406
408
|
|
|
407
409
|
// src/components/controls/edit/InputControl.tsx
|
|
408
410
|
import dynamic4 from "next/dynamic";
|
|
409
|
-
var InputControl = dynamic4(() => import("./InputControlClient-
|
|
411
|
+
var InputControl = dynamic4(() => import("./InputControlClient-646PQPKQ.mjs"), {
|
|
410
412
|
ssr: false
|
|
411
413
|
});
|
|
412
414
|
var InputControl_default = InputControl;
|
|
@@ -502,7 +504,7 @@ import React14 from "react";
|
|
|
502
504
|
// src/components/pageRenderingEngine/nodes/ImageNode.tsx
|
|
503
505
|
import dynamic5 from "next/dynamic";
|
|
504
506
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
505
|
-
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-
|
|
507
|
+
var HlsPlayer2 = dynamic5(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
506
508
|
var getNestedValue = (obj, path) => {
|
|
507
509
|
if (!obj || !path) return void 0;
|
|
508
510
|
return path.split(".").reduce((current, key) => {
|
|
@@ -610,7 +612,7 @@ var ImageNode_default = ImageNode;
|
|
|
610
612
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
611
613
|
import dynamic6 from "next/dynamic";
|
|
612
614
|
import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
613
|
-
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-
|
|
615
|
+
var LinkNodeButton = dynamic6(() => import("./LinkNodeButton-WA5N3CBJ.mjs"), {
|
|
614
616
|
ssr: false
|
|
615
617
|
});
|
|
616
618
|
function getNestedValue2(obj, path) {
|
|
@@ -1045,7 +1047,7 @@ var QuoteNode_default = QuoteNode;
|
|
|
1045
1047
|
import React20 from "react";
|
|
1046
1048
|
import dynamic7 from "next/dynamic";
|
|
1047
1049
|
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1048
|
-
var CopyButton = dynamic7(() => import("./CopyButton-
|
|
1050
|
+
var CopyButton = dynamic7(() => import("./CopyButton-UPJPMJUB.mjs"), {
|
|
1049
1051
|
ssr: false,
|
|
1050
1052
|
// optional: fallback UI while loading
|
|
1051
1053
|
loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
@@ -1187,7 +1189,7 @@ import React22 from "react";
|
|
|
1187
1189
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1188
1190
|
import dynamic8 from "next/dynamic";
|
|
1189
1191
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1190
|
-
var IframeClient = dynamic8(() => import("./IframeClient-
|
|
1192
|
+
var IframeClient = dynamic8(() => import("./IframeClient-RGJFZ5P2.mjs"), {
|
|
1191
1193
|
ssr: false
|
|
1192
1194
|
});
|
|
1193
1195
|
var EmbedNode = (props) => {
|
|
@@ -1405,7 +1407,7 @@ import dynamic10 from "next/dynamic";
|
|
|
1405
1407
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1406
1408
|
import dynamic9 from "next/dynamic";
|
|
1407
1409
|
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1408
|
-
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-
|
|
1410
|
+
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-5AWFZ2P6.mjs"), { ssr: false });
|
|
1409
1411
|
var deviceToMediaQuery = (device) => {
|
|
1410
1412
|
switch (device) {
|
|
1411
1413
|
case "lg":
|
|
@@ -2220,8 +2222,8 @@ var DocumentNode_default = DocumentNode;
|
|
|
2220
2222
|
|
|
2221
2223
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2222
2224
|
import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2223
|
-
var Pagination = dynamic10(() => import("./Pagination-
|
|
2224
|
-
var Slider = dynamic10(() => import("./Slider-
|
|
2225
|
+
var Pagination = dynamic10(() => import("./Pagination-OQT7Q2XO.mjs"), { ssr: true });
|
|
2226
|
+
var Slider = dynamic10(() => import("./Slider-554BKC7N.mjs"), {
|
|
2225
2227
|
ssr: false
|
|
2226
2228
|
});
|
|
2227
2229
|
function toCamelCase(str) {
|
|
@@ -4223,5 +4225,3 @@ export {
|
|
|
4223
4225
|
ViewControl_default as ViewControl,
|
|
4224
4226
|
ViewControlTypes_default as ViewControlTypes
|
|
4225
4227
|
};
|
|
4226
|
-
ontrolTypes
|
|
4227
|
-
};
|
package/dist/server.js
CHANGED
|
@@ -1135,11 +1135,11 @@ var init_LinkNodeButton = __esm({
|
|
|
1135
1135
|
import_react5 = require("react");
|
|
1136
1136
|
init_Button();
|
|
1137
1137
|
init_ServiceClient();
|
|
1138
|
+
init_ToastService();
|
|
1138
1139
|
import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1139
1140
|
LinkNodeButton = (props) => {
|
|
1140
1141
|
const { node, dataitem, children, linkText, linkType, linkUrl } = props;
|
|
1141
1142
|
const [isLoading, setIsLoading] = (0, import_react5.useState)(false);
|
|
1142
|
-
const [error, setError] = (0, import_react5.useState)(null);
|
|
1143
1143
|
const extractFieldNames = (0, import_react5.useCallback)((template) => {
|
|
1144
1144
|
if (!template) return [];
|
|
1145
1145
|
const regex = /\{(\{\})?([a-zA-Z_$][a-zA-Z0-9_$]*)(?:\}\})?\}/g;
|
|
@@ -1193,11 +1193,10 @@ var init_LinkNodeButton = __esm({
|
|
|
1193
1193
|
}, []);
|
|
1194
1194
|
const onClick = (0, import_react5.useCallback)(async (e) => {
|
|
1195
1195
|
if (!node.postUrl) {
|
|
1196
|
-
|
|
1196
|
+
ToastService_default.showError("No POST URL configured for this button");
|
|
1197
1197
|
return;
|
|
1198
1198
|
}
|
|
1199
1199
|
setIsLoading(true);
|
|
1200
|
-
setError(null);
|
|
1201
1200
|
try {
|
|
1202
1201
|
const resolvedPostUrl = replaceTemplateVariables(node.postUrl);
|
|
1203
1202
|
let parsedPayload = {};
|
|
@@ -1216,10 +1215,12 @@ var init_LinkNodeButton = __esm({
|
|
|
1216
1215
|
console.log("API Response:", response);
|
|
1217
1216
|
if (response && !response.isSuccessful) {
|
|
1218
1217
|
const errorMessage = response.message || "API request failed";
|
|
1219
|
-
setError(errorMessage);
|
|
1220
1218
|
setIsLoading(false);
|
|
1221
1219
|
return { isSuccessful: false, message: errorMessage };
|
|
1222
1220
|
}
|
|
1221
|
+
if (response?.message) {
|
|
1222
|
+
ToastService_default.showSuccess(response.message);
|
|
1223
|
+
}
|
|
1223
1224
|
if (response && node.redirectUrl) {
|
|
1224
1225
|
const fieldNames = extractFieldNames(node.redirectUrl);
|
|
1225
1226
|
console.log("Field names in redirect URL:", fieldNames);
|
|
@@ -1257,19 +1258,18 @@ var init_LinkNodeButton = __esm({
|
|
|
1257
1258
|
if (resolvedRedirectUrl && !resolvedRedirectUrl.includes("{")) {
|
|
1258
1259
|
window.location.href = resolvedRedirectUrl;
|
|
1259
1260
|
}
|
|
1260
|
-
} else if (response && !response.result && response.message) {
|
|
1261
|
-
setError(response.message);
|
|
1262
|
-
throw new Error(response.message);
|
|
1263
1261
|
} else if (!response) {
|
|
1264
|
-
|
|
1262
|
+
const errorMessage = "No response from server";
|
|
1263
|
+
setIsLoading(false);
|
|
1264
|
+
return { isSuccessful: false, message: errorMessage };
|
|
1265
1265
|
}
|
|
1266
1266
|
setIsLoading(false);
|
|
1267
|
-
return { isSuccessful: true, response };
|
|
1267
|
+
return { isSuccessful: true, message: response?.message, result: response };
|
|
1268
1268
|
} catch (err) {
|
|
1269
1269
|
console.error("Button API call failed:", err);
|
|
1270
|
-
|
|
1270
|
+
const errorMessage = err.message || "An unexpected error occurred";
|
|
1271
1271
|
setIsLoading(false);
|
|
1272
|
-
return { isSuccessful: false, message:
|
|
1272
|
+
return { isSuccessful: false, message: errorMessage };
|
|
1273
1273
|
}
|
|
1274
1274
|
}, [node.postUrl, node.payload, node.redirectUrl, replaceTemplateVariables, extractFieldNames, getNestedValue7, props.apiBaseUrl, props.session]);
|
|
1275
1275
|
const renderButtonContent = () => {
|
package/dist/server.mjs
CHANGED
|
@@ -305,7 +305,7 @@ var ImageNode_default = ImageNode;
|
|
|
305
305
|
// src/components/pageRenderingEngine/nodes/LinkNode.tsx
|
|
306
306
|
import dynamic3 from "next/dynamic";
|
|
307
307
|
import { Fragment, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
308
|
-
var LinkNodeButton = dynamic3(() => import("./LinkNodeButton-
|
|
308
|
+
var LinkNodeButton = dynamic3(() => import("./LinkNodeButton-GVOICN34.mjs"), {
|
|
309
309
|
ssr: false
|
|
310
310
|
});
|
|
311
311
|
function getNestedValue2(obj, path) {
|
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.
|
|
3
|
+
"version": "0.8.1-dev.20260708070033",
|
|
4
4
|
"description": "Reusable React components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^26.1.
|
|
39
|
+
"@types/node": "^26.1.1",
|
|
40
40
|
"@types/react": "^19.2.17",
|
|
41
41
|
"@types/react-dom": "^19.2.3",
|
|
42
42
|
"tsup": "^8.5.1",
|