@sirendesign/markup 1.0.11 → 1.0.12

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
@@ -37299,6 +37299,7 @@ const subscribeFeedback = (projectId, callback) => {
37299
37299
  return onSnapshot(q, (snapshot) => {
37300
37300
  console.log('Firestore snapshot received:', snapshot.size, 'documents');
37301
37301
  const feedbackItems = snapshot.docs.map((doc) => {
37302
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
37302
37303
  const data = doc.data();
37303
37304
  return {
37304
37305
  id: doc.id,
@@ -37322,8 +37323,8 @@ const subscribeFeedback = (projectId, callback) => {
37322
37323
  timestamp: new Date().toISOString(),
37323
37324
  deviceType: 'desktop',
37324
37325
  },
37325
- createdAt: data.createdAt.toDate().toISOString(),
37326
- updatedAt: data.createdAt.toDate().toISOString(),
37326
+ createdAt: ((_c = (_b = (_a = data.createdAt) === null || _a === void 0 ? void 0 : _a.toDate) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.toISOString()) || new Date().toISOString(),
37327
+ updatedAt: ((_f = (_e = (_d = data.updatedAt) === null || _d === void 0 ? void 0 : _d.toDate) === null || _e === void 0 ? void 0 : _e.call(_d)) === null || _f === void 0 ? void 0 : _f.toISOString()) || ((_j = (_h = (_g = data.createdAt) === null || _g === void 0 ? void 0 : _g.toDate) === null || _h === void 0 ? void 0 : _h.call(_g)) === null || _j === void 0 ? void 0 : _j.toISOString()) || new Date().toISOString(),
37327
37328
  createdBy: data.createdBy || {
37328
37329
  id: data.userId,
37329
37330
  name: 'User',