@colibri-social/lexicons 2.23.0 → 2.24.0

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.
@@ -388,6 +388,12 @@
388
388
  "maxLength": 253,
389
389
  "description": "The domain of the client used when blueskyClient is custom."
390
390
  },
391
+ "inboxPresentation": {
392
+ "type": "string",
393
+ "maxLength": 32,
394
+ "knownValues": ["popover", "modal"],
395
+ "description": "How the inbox opens on desktop. popover anchors it to the inbox button, modal opens it in a large dialog."
396
+ },
391
397
  "developerMode": {
392
398
  "type": "boolean",
393
399
  "description": "Whether the client shows identifiers and links to inspect records."
@@ -33,6 +33,45 @@
33
33
  "type": "ref",
34
34
  "ref": "#embedVideo",
35
35
  "description": "Playable video."
36
+ },
37
+ "themeColor": {
38
+ "type": "string",
39
+ "maxLength": 7,
40
+ "description": "Accent color the page declares, as #rrggbb."
41
+ },
42
+ "layout": {
43
+ "type": "string",
44
+ "knownValues": ["summary", "largeImage", "player"],
45
+ "description": "Card layout the page asks for."
46
+ },
47
+ "provider": {
48
+ "type": "ref",
49
+ "ref": "#embedProvider",
50
+ "description": "Service that published the page."
51
+ },
52
+ "author": {
53
+ "type": "ref",
54
+ "ref": "#embedAuthor",
55
+ "description": "Author of the page or post."
56
+ },
57
+ "publishedAt": {
58
+ "type": "string",
59
+ "format": "datetime",
60
+ "description": "When the page or post was published."
61
+ },
62
+ "media": {
63
+ "type": "array",
64
+ "maxLength": 4,
65
+ "items": {
66
+ "type": "ref",
67
+ "ref": "#embedMedia"
68
+ },
69
+ "description": "Gallery of images and videos, in page order."
70
+ },
71
+ "post": {
72
+ "type": "ref",
73
+ "ref": "#embedPost",
74
+ "description": "Social post content, present when the link resolves to one."
36
75
  }
37
76
  }
38
77
  },
@@ -89,6 +128,241 @@
89
128
  }
90
129
  }
91
130
  },
131
+ "embedProvider": {
132
+ "type": "object",
133
+ "description": "The service behind a link preview.",
134
+ "required": ["name"],
135
+ "properties": {
136
+ "name": {
137
+ "type": "string",
138
+ "description": "Display name."
139
+ },
140
+ "url": {
141
+ "type": "string",
142
+ "format": "uri",
143
+ "description": "Home page."
144
+ },
145
+ "icon": {
146
+ "type": "string",
147
+ "format": "uri",
148
+ "description": "Icon URL served by this AppView's image proxy."
149
+ }
150
+ }
151
+ },
152
+ "embedAuthor": {
153
+ "type": "object",
154
+ "description": "The author of a link preview.",
155
+ "required": ["name"],
156
+ "properties": {
157
+ "name": {
158
+ "type": "string",
159
+ "description": "Display name."
160
+ },
161
+ "handle": {
162
+ "type": "string",
163
+ "description": "Account handle, without a leading @."
164
+ },
165
+ "url": {
166
+ "type": "string",
167
+ "format": "uri",
168
+ "description": "Profile or post URL."
169
+ },
170
+ "avatar": {
171
+ "type": "string",
172
+ "format": "uri",
173
+ "description": "Avatar URL served by this AppView's image proxy."
174
+ }
175
+ }
176
+ },
177
+ "embedMedia": {
178
+ "type": "object",
179
+ "description": "One gallery item.",
180
+ "required": ["kind", "url"],
181
+ "properties": {
182
+ "kind": {
183
+ "type": "string",
184
+ "knownValues": ["image", "video", "gifv"],
185
+ "description": "Media kind. gifv is a silent looping video."
186
+ },
187
+ "url": {
188
+ "type": "string",
189
+ "format": "uri",
190
+ "description": "URL served by this AppView's image or video proxy."
191
+ },
192
+ "previewUrl": {
193
+ "type": "string",
194
+ "format": "uri",
195
+ "description": "Poster image for a video, served by this AppView's image proxy."
196
+ },
197
+ "mimeType": {
198
+ "type": "string",
199
+ "description": "Content type of a video.",
200
+ "knownValues": ["video/mp4", "video/webm"]
201
+ },
202
+ "width": {
203
+ "type": "integer",
204
+ "description": "Intrinsic pixel width."
205
+ },
206
+ "height": {
207
+ "type": "integer",
208
+ "description": "Intrinsic pixel height."
209
+ },
210
+ "alt": {
211
+ "type": "string",
212
+ "description": "Alternative text."
213
+ }
214
+ }
215
+ },
216
+ "embedPost": {
217
+ "type": "object",
218
+ "description": "Content of a social post.",
219
+ "required": ["body"],
220
+ "properties": {
221
+ "body": {
222
+ "type": "array",
223
+ "items": {
224
+ "type": "ref",
225
+ "ref": "#richBlock"
226
+ },
227
+ "description": "Formatted post text."
228
+ },
229
+ "sensitive": {
230
+ "type": "boolean",
231
+ "description": "Whether the author marked the post as sensitive."
232
+ },
233
+ "contentWarning": {
234
+ "type": "string",
235
+ "description": "Content warning text."
236
+ },
237
+ "stats": {
238
+ "type": "ref",
239
+ "ref": "#embedStats",
240
+ "description": "Engagement counts."
241
+ },
242
+ "quote": {
243
+ "type": "ref",
244
+ "ref": "#embedQuote",
245
+ "description": "The post this post quotes."
246
+ },
247
+ "translatedFrom": {
248
+ "type": "string",
249
+ "description": "Source language code when body holds a translation."
250
+ }
251
+ }
252
+ },
253
+ "embedStats": {
254
+ "type": "object",
255
+ "description": "Engagement counts on a post.",
256
+ "properties": {
257
+ "replies": {
258
+ "type": "integer",
259
+ "minimum": 0,
260
+ "description": "Reply count."
261
+ },
262
+ "reposts": {
263
+ "type": "integer",
264
+ "minimum": 0,
265
+ "description": "Repost count."
266
+ },
267
+ "likes": {
268
+ "type": "integer",
269
+ "minimum": 0,
270
+ "description": "Like count."
271
+ },
272
+ "views": {
273
+ "type": "integer",
274
+ "minimum": 0,
275
+ "description": "View count."
276
+ }
277
+ }
278
+ },
279
+ "embedQuote": {
280
+ "type": "object",
281
+ "description": "A quoted post.",
282
+ "required": ["uri", "author", "body"],
283
+ "properties": {
284
+ "uri": {
285
+ "type": "string",
286
+ "format": "uri",
287
+ "description": "URL of the quoted post."
288
+ },
289
+ "author": {
290
+ "type": "ref",
291
+ "ref": "#embedAuthor",
292
+ "description": "Author of the quoted post."
293
+ },
294
+ "body": {
295
+ "type": "array",
296
+ "items": {
297
+ "type": "ref",
298
+ "ref": "#richBlock"
299
+ },
300
+ "description": "Formatted text of the quoted post."
301
+ },
302
+ "media": {
303
+ "type": "array",
304
+ "maxLength": 4,
305
+ "items": {
306
+ "type": "ref",
307
+ "ref": "#embedMedia"
308
+ },
309
+ "description": "Media on the quoted post."
310
+ },
311
+ "publishedAt": {
312
+ "type": "string",
313
+ "format": "datetime",
314
+ "description": "When the quoted post was published."
315
+ },
316
+ "translatedFrom": {
317
+ "type": "string",
318
+ "description": "Source language code when body holds a translation."
319
+ }
320
+ }
321
+ },
322
+ "richBlock": {
323
+ "type": "object",
324
+ "description": "A block of formatted text.",
325
+ "required": ["kind", "spans"],
326
+ "properties": {
327
+ "kind": {
328
+ "type": "string",
329
+ "knownValues": ["paragraph", "quote"],
330
+ "description": "Block kind."
331
+ },
332
+ "spans": {
333
+ "type": "array",
334
+ "items": {
335
+ "type": "ref",
336
+ "ref": "#richSpan"
337
+ },
338
+ "description": "Inline runs. A newline in text is a line break."
339
+ }
340
+ }
341
+ },
342
+ "richSpan": {
343
+ "type": "object",
344
+ "description": "An inline run of formatted text.",
345
+ "required": ["text"],
346
+ "properties": {
347
+ "text": {
348
+ "type": "string",
349
+ "description": "Plain text."
350
+ },
351
+ "bold": {
352
+ "type": "boolean",
353
+ "description": "Bold."
354
+ },
355
+ "italic": {
356
+ "type": "boolean",
357
+ "description": "Italic."
358
+ },
359
+ "href": {
360
+ "type": "string",
361
+ "format": "uri",
362
+ "description": "Link target."
363
+ }
364
+ }
365
+ },
92
366
  "gifView": {
93
367
  "type": "object",
94
368
  "description": "A GIF from the picker.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colibri-social/lexicons",
3
- "version": "2.23.0",
3
+ "version": "2.24.0",
4
4
  "description": "Colibri lexicon schemas and the types generated from them",
5
5
  "type": "module",
6
6
  "exports": {