@stacksjs/socials 0.70.257 → 0.70.258

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 (2) hide show
  1. package/dist/types.d.ts +21 -12
  2. package/package.json +3 -3
package/dist/types.d.ts CHANGED
@@ -139,20 +139,29 @@ export declare interface TimelineQuery {
139
139
  cursor?: string
140
140
  limit?: number
141
141
  }
142
+ /**
143
+ * One post in a timeline, normalized to the same shape by every driver.
144
+ *
145
+ * Named rather than left inline in {@link TimelineResult} so a consumer can
146
+ * type a single item - a mapper, a row renderer, a test fixture - without
147
+ * restating the ten fields or reaching for `TimelineResult['items'][number]`.
148
+ * Apps were redeclaring this verbatim because there was nothing to import.
149
+ */
150
+ export declare interface TimelineItem {
151
+ uri: string
152
+ authorHandle: string
153
+ authorName?: string
154
+ authorAvatar?: string
155
+ postUrl?: string
156
+ body: string
157
+ postedAt: string
158
+ likeCount: number
159
+ repostCount: number
160
+ replyCount: number
161
+ }
142
162
  export declare interface TimelineResult {
143
163
  cursor?: string
144
- items: Array<{
145
- uri: string
146
- authorHandle: string
147
- authorName?: string
148
- authorAvatar?: string
149
- postUrl?: string
150
- body: string
151
- postedAt: string
152
- likeCount: number
153
- repostCount: number
154
- replyCount: number
155
- }>
164
+ items: TimelineItem[]
156
165
  }
157
166
  export declare interface SocialPublishingDriver {
158
167
  provider: SocialPublishingProvider
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/socials",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.257",
5
+ "version": "0.70.258",
6
6
  "description": "A simple and elegant social authentication package for Stacks.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "better-dx": "^0.2.17",
54
- "@stacksjs/error-handling": "0.70.257",
55
- "@stacksjs/router": "0.70.257"
54
+ "@stacksjs/error-handling": "0.70.258",
55
+ "@stacksjs/router": "0.70.258"
56
56
  }
57
57
  }