@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260425064141 → 0.8.1-dev.20260427052110

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.
@@ -3,7 +3,7 @@ import {
3
3
  Button_default,
4
4
  ServiceClient_default,
5
5
  ToastService_default
6
- } from "./chunk-WMUACDXV.mjs";
6
+ } from "./chunk-MCGXO6OE.mjs";
7
7
 
8
8
  // src/components/pageRenderingEngine/nodes/LinkNodeButton.tsx
9
9
  import { useCallback, useState } from "react";
@@ -274,10 +274,6 @@ var ServiceClient = class {
274
274
  }
275
275
  handleFetchError(error) {
276
276
  console.log(error);
277
- const serverApiError = error;
278
- if (serverApiError) {
279
- return serverApiError.data;
280
- }
281
277
  return {
282
278
  message: "There is some error. Please try after sometime.",
283
279
  isSuccessful: false
package/dist/index.js CHANGED
@@ -631,10 +631,6 @@ var init_ServiceClient = __esm({
631
631
  }
632
632
  handleFetchError(error) {
633
633
  console.log(error);
634
- const serverApiError = error;
635
- if (serverApiError) {
636
- return serverApiError.data;
637
- }
638
634
  return {
639
635
  message: "There is some error. Please try after sometime.",
640
636
  isSuccessful: false
@@ -4523,6 +4519,14 @@ var PathUtility = class {
4523
4519
  const segments = path.split("/").filter(Boolean);
4524
4520
  return segments.length > 0 ? segments[0] : "";
4525
4521
  }
4522
+ getFileNameFromUrl(url) {
4523
+ if (!url || url.indexOf("/") === -1) {
4524
+ return url;
4525
+ }
4526
+ const parts = url.split("/");
4527
+ const filename = parts[parts.length - 1];
4528
+ return filename;
4529
+ }
4526
4530
  };
4527
4531
  var PathUtility_default = new PathUtility();
4528
4532
 
@@ -6519,36 +6523,33 @@ var DataForm = (props) => {
6519
6523
  );
6520
6524
  }
6521
6525
  return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react56.default.Fragment, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
6522
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
6526
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6523
6527
  "div",
6524
6528
  {
6525
6529
  className: sectionRow.grow ? "grow" : "",
6526
- children: [
6527
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { children: field.controlType }),
6528
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6529
- InputControl_default,
6530
- {
6531
- name: field.name,
6532
- controlType: field.controlType,
6533
- value: getNestedProperty2(
6534
- formState.inputValues,
6535
- field.name
6536
- ),
6537
- callback: handleInputChange,
6538
- dataSourceDependsOn: field.dataSourceDependsOn,
6539
- dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
6540
- dataSource: field.dataSource,
6541
- dataset: field.dataset,
6542
- dataKeyFieldName: field.dataKeyFieldName,
6543
- dataTextFieldName: field.dataTextFieldName,
6544
- attributes: field.attributes,
6545
- serviceClient: props.serviceClient,
6546
- assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
6547
- entityType: field.entityType,
6548
- uploadInSharedLocation: field.uploadInSharedLocation
6549
- }
6550
- )
6551
- ]
6530
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6531
+ InputControl_default,
6532
+ {
6533
+ name: field.name,
6534
+ controlType: field.controlType,
6535
+ value: getNestedProperty2(
6536
+ formState.inputValues,
6537
+ field.name
6538
+ ),
6539
+ callback: handleInputChange,
6540
+ dataSourceDependsOn: field.dataSourceDependsOn,
6541
+ dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
6542
+ dataSource: field.dataSource,
6543
+ dataset: field.dataset,
6544
+ dataKeyFieldName: field.dataKeyFieldName,
6545
+ dataTextFieldName: field.dataTextFieldName,
6546
+ attributes: field.attributes,
6547
+ serviceClient: props.serviceClient,
6548
+ assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
6549
+ entityType: field.entityType,
6550
+ uploadInSharedLocation: field.uploadInSharedLocation
6551
+ }
6552
+ )
6552
6553
  },
6553
6554
  field.name
6554
6555
  );
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  ServiceClient_default,
8
8
  ToastService_default,
9
9
  buttonClasses
10
- } from "./chunk-WMUACDXV.mjs";
10
+ } from "./chunk-MCGXO6OE.mjs";
11
11
 
12
12
  // src/components/controls/view/ViewControl.tsx
13
13
  import React10 from "react";
@@ -2051,7 +2051,7 @@ function Hyperlink(props) {
2051
2051
  // src/components/pageRenderingEngine/nodes/LinkNode.tsx
2052
2052
  import dynamic2 from "next/dynamic";
2053
2053
  import { Fragment as Fragment3, jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
2054
- var LinkNodeButton = dynamic2(() => import("./LinkNodeButton-3AK5H5ZU.mjs"), {
2054
+ var LinkNodeButton = dynamic2(() => import("./LinkNodeButton-SSV4NINC.mjs"), {
2055
2055
  ssr: false
2056
2056
  });
2057
2057
  var LinkNode = (props) => {
@@ -3385,6 +3385,14 @@ var PathUtility = class {
3385
3385
  const segments = path.split("/").filter(Boolean);
3386
3386
  return segments.length > 0 ? segments[0] : "";
3387
3387
  }
3388
+ getFileNameFromUrl(url) {
3389
+ if (!url || url.indexOf("/") === -1) {
3390
+ return url;
3391
+ }
3392
+ const parts = url.split("/");
3393
+ const filename = parts[parts.length - 1];
3394
+ return filename;
3395
+ }
3388
3396
  };
3389
3397
  var PathUtility_default = new PathUtility();
3390
3398
 
@@ -5369,36 +5377,33 @@ var DataForm = (props) => {
5369
5377
  );
5370
5378
  }
5371
5379
  return /* @__PURE__ */ jsx66(React48.Fragment, { children: isVisible && /* @__PURE__ */ jsx66("div", { className: "lg:flex gap-14 flex-1 mb-4 ", children: sectionRow.elements.map((field, index) => {
5372
- return /* @__PURE__ */ jsxs38(
5380
+ return /* @__PURE__ */ jsx66(
5373
5381
  "div",
5374
5382
  {
5375
5383
  className: sectionRow.grow ? "grow" : "",
5376
- children: [
5377
- /* @__PURE__ */ jsx66("div", { children: field.controlType }),
5378
- /* @__PURE__ */ jsx66(
5379
- InputControl_default,
5380
- {
5381
- name: field.name,
5382
- controlType: field.controlType,
5383
- value: getNestedProperty2(
5384
- formState.inputValues,
5385
- field.name
5386
- ),
5387
- callback: handleInputChange,
5388
- dataSourceDependsOn: field.dataSourceDependsOn,
5389
- dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
5390
- dataSource: field.dataSource,
5391
- dataset: field.dataset,
5392
- dataKeyFieldName: field.dataKeyFieldName,
5393
- dataTextFieldName: field.dataTextFieldName,
5394
- attributes: field.attributes,
5395
- serviceClient: props.serviceClient,
5396
- assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
5397
- entityType: field.entityType,
5398
- uploadInSharedLocation: field.uploadInSharedLocation
5399
- }
5400
- )
5401
- ]
5384
+ children: /* @__PURE__ */ jsx66(
5385
+ InputControl_default,
5386
+ {
5387
+ name: field.name,
5388
+ controlType: field.controlType,
5389
+ value: getNestedProperty2(
5390
+ formState.inputValues,
5391
+ field.name
5392
+ ),
5393
+ callback: handleInputChange,
5394
+ dataSourceDependsOn: field.dataSourceDependsOn,
5395
+ dependentValue: field.dataSourceDependsOn ? formState.inputValues[field.dataSourceDependsOn] : "",
5396
+ dataSource: field.dataSource,
5397
+ dataset: field.dataset,
5398
+ dataKeyFieldName: field.dataKeyFieldName,
5399
+ dataTextFieldName: field.dataTextFieldName,
5400
+ attributes: field.attributes,
5401
+ serviceClient: props.serviceClient,
5402
+ assetsUploadPath: props.dataItem ? props.dataItem["assetsUploadPath"] : null,
5403
+ entityType: field.entityType,
5404
+ uploadInSharedLocation: field.uploadInSharedLocation
5405
+ }
5406
+ )
5402
5407
  },
5403
5408
  field.name
5404
5409
  );
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.20260425064141",
3
+ "version": "0.8.1-dev.20260427052110",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -49,7 +49,7 @@
49
49
  "load-tsconfig": "^0.2.5",
50
50
  "magic-string": "^0.30.21",
51
51
  "mlly": "^1.8.0",
52
- "moment-timezone": "^0.6.1",
52
+ "moment-timezone": "^0.6.2",
53
53
  "ms": "^2.1.3",
54
54
  "mz": "^2.7.0",
55
55
  "next": "^15.5.15",