@clxmedia/clxforms-client 1.0.29 → 1.0.30

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.
@@ -88,6 +88,25 @@ const formatResponseValue = (response, question) => {
88
88
  return "🔹 *Not provided*";
89
89
  case "NUMBER":
90
90
  return `🔢 ${String(value)}`;
91
+ case "DATE":
92
+ if (value && typeof value === "object") {
93
+ const dateValue = value;
94
+ if (dateValue.iso_date_time) {
95
+ try {
96
+ const date = new Date(dateValue.iso_date_time);
97
+ const formattedDate = date.toLocaleDateString("en-US", {
98
+ year: "numeric",
99
+ month: "long",
100
+ day: "numeric",
101
+ });
102
+ return `📅 ${formattedDate}`;
103
+ }
104
+ catch (_c) {
105
+ return `📅 ${dateValue.iso_date_time}`;
106
+ }
107
+ }
108
+ }
109
+ return "🔹 *Date not provided*";
91
110
  case "SCHEDULE":
92
111
  if (value && typeof value === "object") {
93
112
  const schedule = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/clxforms-client",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "CLXperience Forms Client",
5
5
  "author": "Brandon Thompson <brandont@clxmedia.com>",
6
6
  "license": "MIT",