@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.esm.js CHANGED
@@ -37295,6 +37295,7 @@ const subscribeFeedback = (projectId, callback) => {
37295
37295
  return onSnapshot(q, (snapshot) => {
37296
37296
  console.log('Firestore snapshot received:', snapshot.size, 'documents');
37297
37297
  const feedbackItems = snapshot.docs.map((doc) => {
37298
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
37298
37299
  const data = doc.data();
37299
37300
  return {
37300
37301
  id: doc.id,
@@ -37318,8 +37319,8 @@ const subscribeFeedback = (projectId, callback) => {
37318
37319
  timestamp: new Date().toISOString(),
37319
37320
  deviceType: 'desktop',
37320
37321
  },
37321
- createdAt: data.createdAt.toDate().toISOString(),
37322
- updatedAt: data.createdAt.toDate().toISOString(),
37322
+ 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(),
37323
+ 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(),
37323
37324
  createdBy: data.createdBy || {
37324
37325
  id: data.userId,
37325
37326
  name: 'User',