@codingfactory/socialkit-vue 0.7.23 → 0.7.24

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.
Files changed (37) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/services/circles.d.ts +7 -0
  5. package/dist/services/circles.d.ts.map +1 -1
  6. package/dist/services/circles.js +34 -5
  7. package/dist/services/circles.js.map +1 -1
  8. package/dist/stores/__tests__/discussion.spec.d.ts +2 -0
  9. package/dist/stores/__tests__/discussion.spec.d.ts.map +1 -0
  10. package/dist/stores/__tests__/discussion.spec.js +768 -0
  11. package/dist/stores/__tests__/discussion.spec.js.map +1 -0
  12. package/dist/stores/circles.d.ts +144 -0
  13. package/dist/stores/circles.d.ts.map +1 -1
  14. package/dist/stores/circles.js +7 -1
  15. package/dist/stores/circles.js.map +1 -1
  16. package/dist/stores/content.d.ts.map +1 -1
  17. package/dist/stores/content.js +6 -3
  18. package/dist/stores/content.js.map +1 -1
  19. package/dist/stores/discussion.d.ts +714 -15
  20. package/dist/stores/discussion.d.ts.map +1 -1
  21. package/dist/stores/discussion.js +272 -65
  22. package/dist/stores/discussion.js.map +1 -1
  23. package/dist/types/content.d.ts +3 -2
  24. package/dist/types/content.d.ts.map +1 -1
  25. package/dist/types/content.js +2 -1
  26. package/dist/types/content.js.map +1 -1
  27. package/dist/types/discussion.d.ts +38 -0
  28. package/dist/types/discussion.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/src/index.ts +4 -0
  31. package/src/services/circles.ts +45 -5
  32. package/src/stores/__tests__/discussion.spec.ts +945 -0
  33. package/src/stores/circles.ts +7 -1
  34. package/src/stores/content.ts +6 -3
  35. package/src/stores/discussion.ts +333 -76
  36. package/src/types/content.ts +3 -2
  37. package/src/types/discussion.ts +43 -0
@@ -1881,7 +1881,13 @@ export function createCirclesStoreDefinition(config: CirclesStoreConfig) {
1881
1881
  return nextEntries
1882
1882
  } catch (error: unknown) {
1883
1883
  const message = getErrorMessage(error)
1884
- this.setManagementSectionError(circleId, 'audit', message)
1884
+ // On load-more failure, preserve existing entries — the service
1885
+ // already shows a toast, so replacing visible data with an error
1886
+ // state is destructive. Only set section error on refresh (empty
1887
+ // initial load) so the user sees a retry prompt.
1888
+ if (refresh || (this.auditLog[circleId] ?? []).length === 0) {
1889
+ this.setManagementSectionError(circleId, 'audit', message)
1890
+ }
1885
1891
  throw error
1886
1892
  } finally {
1887
1893
  this.setManagementSectionLoading(circleId, 'audit', false)
@@ -1085,9 +1085,12 @@ export function createContentStoreDefinition(config: ContentStoreConfig) {
1085
1085
  seen.add(key)
1086
1086
  return true
1087
1087
  })
1088
- const recentCreatedEntries = requestedMode === 'for_you'
1089
- ? buildRecentCreatedFeedEntries(seen)
1090
- : []
1088
+ // Preserve recently created posts across all feed modes so they
1089
+ // survive feed reloads that race with the async feed pipeline
1090
+ // (OnPostPublished queue job may not have created the feed_entries
1091
+ // row yet). Previously only for_you mode preserved these, which
1092
+ // caused posts to vanish from the feed in following mode.
1093
+ const recentCreatedEntries = buildRecentCreatedFeedEntries(seen)
1091
1094
  entries.value = [...pendingEntries, ...recentCreatedEntries, ...freshEntries]
1092
1095
  }
1093
1096