@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260902122246 → 0.8.1-dev.20260903063823

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.js CHANGED
@@ -8684,9 +8684,10 @@ var DivContainer = async (props) => {
8684
8684
  let response = null;
8685
8685
  let childCollectionData = null;
8686
8686
  let shouldShowNoDataMessage = props.forceNoDataMessage === true;
8687
- if (dataBindingProperties && !shouldShowNoDataMessage) {
8687
+ const dataSource = dataBindingProperties?.dataSource?.trim();
8688
+ if (dataSource && !shouldShowNoDataMessage) {
8688
8689
  const serviceClient = new ServiceClient_default(props.apiBaseUrl, props.session);
8689
- endpoint = dataBindingProperties.dataSource;
8690
+ endpoint = dataSource;
8690
8691
  {
8691
8692
  }
8692
8693
  endpoint = endpoint.replace(/\{(\w+)\}/g, (_, key) => {
@@ -8804,6 +8805,11 @@ var DivContainer = async (props) => {
8804
8805
  const renderLink = result && props.node.dataBinding?.responseType === "array" ? true : false;
8805
8806
  const renderContainerChildren = () => {
8806
8807
  if (!hasReplicatedChildren) {
8808
+ if (Array.isArray(arrayResult)) {
8809
+ return props.node.children.flatMap(
8810
+ (node, childIndex) => node?.type === "div-container" ? [] : [renderNode(node, props, props.dataitem, `static-${childIndex}`)]
8811
+ );
8812
+ }
8807
8813
  return dataToRender.map(
8808
8814
  (item, idx) => item?.links?.view && renderLink ? renderChildren2(
8809
8815
  props.node.children,
package/dist/index.mjs CHANGED
@@ -2633,9 +2633,10 @@ var DivContainer = async (props) => {
2633
2633
  let response = null;
2634
2634
  let childCollectionData = null;
2635
2635
  let shouldShowNoDataMessage = props.forceNoDataMessage === true;
2636
- if (dataBindingProperties && !shouldShowNoDataMessage) {
2636
+ const dataSource = dataBindingProperties?.dataSource?.trim();
2637
+ if (dataSource && !shouldShowNoDataMessage) {
2637
2638
  const serviceClient = new ServiceClient_default(props.apiBaseUrl, props.session);
2638
- endpoint = dataBindingProperties.dataSource;
2639
+ endpoint = dataSource;
2639
2640
  {
2640
2641
  }
2641
2642
  endpoint = endpoint.replace(/\{(\w+)\}/g, (_, key) => {
@@ -2753,6 +2754,11 @@ var DivContainer = async (props) => {
2753
2754
  const renderLink = result && props.node.dataBinding?.responseType === "array" ? true : false;
2754
2755
  const renderContainerChildren = () => {
2755
2756
  if (!hasReplicatedChildren) {
2757
+ if (Array.isArray(arrayResult)) {
2758
+ return props.node.children.flatMap(
2759
+ (node, childIndex) => node?.type === "div-container" ? [] : [renderNode(node, props, props.dataitem, `static-${childIndex}`)]
2760
+ );
2761
+ }
2756
2762
  return dataToRender.map(
2757
2763
  (item, idx) => item?.links?.view && renderLink ? renderChildren(
2758
2764
  props.node.children,
package/dist/server.js CHANGED
@@ -8653,9 +8653,10 @@ var DivContainer = async (props) => {
8653
8653
  let response = null;
8654
8654
  let childCollectionData = null;
8655
8655
  let shouldShowNoDataMessage = props.forceNoDataMessage === true;
8656
- if (dataBindingProperties && !shouldShowNoDataMessage) {
8656
+ const dataSource = dataBindingProperties?.dataSource?.trim();
8657
+ if (dataSource && !shouldShowNoDataMessage) {
8657
8658
  const serviceClient = new ServiceClient_default(props.apiBaseUrl, props.session);
8658
- endpoint = dataBindingProperties.dataSource;
8659
+ endpoint = dataSource;
8659
8660
  {
8660
8661
  }
8661
8662
  endpoint = endpoint.replace(/\{(\w+)\}/g, (_, key) => {
@@ -8773,6 +8774,11 @@ var DivContainer = async (props) => {
8773
8774
  const renderLink = result && props.node.dataBinding?.responseType === "array" ? true : false;
8774
8775
  const renderContainerChildren = () => {
8775
8776
  if (!hasReplicatedChildren) {
8777
+ if (Array.isArray(arrayResult)) {
8778
+ return props.node.children.flatMap(
8779
+ (node, childIndex) => node?.type === "div-container" ? [] : [renderNode(node, props, props.dataitem, `static-${childIndex}`)]
8780
+ );
8781
+ }
8776
8782
  return dataToRender.map(
8777
8783
  (item, idx) => item?.links?.view && renderLink ? renderChildren2(
8778
8784
  props.node.children,
package/dist/server.mjs CHANGED
@@ -2601,9 +2601,10 @@ var DivContainer = async (props) => {
2601
2601
  let response = null;
2602
2602
  let childCollectionData = null;
2603
2603
  let shouldShowNoDataMessage = props.forceNoDataMessage === true;
2604
- if (dataBindingProperties && !shouldShowNoDataMessage) {
2604
+ const dataSource = dataBindingProperties?.dataSource?.trim();
2605
+ if (dataSource && !shouldShowNoDataMessage) {
2605
2606
  const serviceClient = new ServiceClient_default(props.apiBaseUrl, props.session);
2606
- endpoint = dataBindingProperties.dataSource;
2607
+ endpoint = dataSource;
2607
2608
  {
2608
2609
  }
2609
2610
  endpoint = endpoint.replace(/\{(\w+)\}/g, (_, key) => {
@@ -2721,6 +2722,11 @@ var DivContainer = async (props) => {
2721
2722
  const renderLink = result && props.node.dataBinding?.responseType === "array" ? true : false;
2722
2723
  const renderContainerChildren = () => {
2723
2724
  if (!hasReplicatedChildren) {
2725
+ if (Array.isArray(arrayResult)) {
2726
+ return props.node.children.flatMap(
2727
+ (node, childIndex) => node?.type === "div-container" ? [] : [renderNode(node, props, props.dataitem, `static-${childIndex}`)]
2728
+ );
2729
+ }
2724
2730
  return dataToRender.map(
2725
2731
  (item, idx) => item?.links?.view && renderLink ? renderChildren(
2726
2732
  props.node.children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clyrex-digital/clyrex-controls-dev",
3
- "version": "0.8.1-dev.20260902122246",
3
+ "version": "0.8.1-dev.20260903063823",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",