a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(leaflet): pull latest Leaflet lexicons

Mary 40a9d9e8 a6191a0d

+120 -17
+5
.changeset/hungry-dogs-listen.md
··· 1 + --- 2 + "@atcute/leaflet": patch 3 + --- 4 + 5 + pull latest Leaflet lexicons
+1 -1
packages/definitions/leaflet/lexicons/README.md
··· 3 3 this directory contains lexicon documents pulled from the following sources: 4 4 5 5 - https://github.com/hyperlink-academy/leaflet.git 6 - - commit: 6c8a991cb6ed1a96137433e8c543e9afc8356b45 6 + - commit: bf05dcf7dbad4be3f8a94b796720df4e6a27250a
+2 -1
packages/definitions/leaflet/lexicons/pub/leaflet/authFullPermissions.json
··· 17 17 "pub.leaflet.comment", 18 18 "pub.leaflet.poll.definition", 19 19 "pub.leaflet.poll.vote", 20 - "pub.leaflet.graph.subscription" 20 + "pub.leaflet.graph.subscription", 21 + "pub.leaflet.interactions.recommend" 21 22 ] 22 23 } 23 24 ]
+22
packages/definitions/leaflet/lexicons/pub/leaflet/content.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "pub.leaflet.content", 4 + "revision": 1, 5 + "description": "A lexicon for long form rich media documents", 6 + "defs": { 7 + "main": { 8 + "type": "object", 9 + "description": "Content format for leaflet documents", 10 + "required": ["pages"], 11 + "properties": { 12 + "pages": { 13 + "type": "array", 14 + "items": { 15 + "type": "union", 16 + "refs": ["pub.leaflet.pages.linearDocument", "pub.leaflet.pages.canvas"] 17 + } 18 + } 19 + } 20 + } 21 + } 22 + }
+4 -4
packages/definitions/leaflet/lexicons/pub/leaflet/document.json
··· 14 14 "properties": { 15 15 "title": { 16 16 "type": "string", 17 - "maxLength": 1280, 18 - "maxGraphemes": 128 17 + "maxLength": 5000, 18 + "maxGraphemes": 500 19 19 }, 20 20 "postRef": { 21 21 "type": "ref", ··· 23 23 }, 24 24 "description": { 25 25 "type": "string", 26 - "maxLength": 3000, 27 - "maxGraphemes": 300 26 + "maxLength": 30000, 27 + "maxGraphemes": 3000 28 28 }, 29 29 "publishedAt": { 30 30 "type": "string",
+25
packages/definitions/leaflet/lexicons/pub/leaflet/interactions/recommend.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "pub.leaflet.interactions.recommend", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "key": "tid", 8 + "description": "Record representing a recommend on a document", 9 + "record": { 10 + "type": "object", 11 + "required": ["subject", "createdAt"], 12 + "properties": { 13 + "subject": { 14 + "type": "string", 15 + "format": "at-uri" 16 + }, 17 + "createdAt": { 18 + "type": "string", 19 + "format": "datetime" 20 + } 21 + } 22 + } 23 + } 24 + } 25 + }
+1 -1
packages/definitions/leaflet/lexicons/pub/leaflet/publication.json
··· 54 54 }, 55 55 "showPrevNext": { 56 56 "type": "boolean", 57 - "default": false 57 + "default": true 58 58 } 59 59 } 60 60 },
+2
packages/definitions/leaflet/lib/lexicons/index.ts
··· 13 13 export * as PubLeafletBlocksUnorderedList from './types/pub/leaflet/blocks/unorderedList.js'; 14 14 export * as PubLeafletBlocksWebsite from './types/pub/leaflet/blocks/website.js'; 15 15 export * as PubLeafletComment from './types/pub/leaflet/comment.js'; 16 + export * as PubLeafletContent from './types/pub/leaflet/content.js'; 16 17 export * as PubLeafletDocument from './types/pub/leaflet/document.js'; 17 18 export * as PubLeafletGraphSubscription from './types/pub/leaflet/graph/subscription.js'; 19 + export * as PubLeafletInteractionsRecommend from './types/pub/leaflet/interactions/recommend.js'; 18 20 export * as PubLeafletPagesCanvas from './types/pub/leaflet/pages/canvas.js'; 19 21 export * as PubLeafletPagesLinearDocument from './types/pub/leaflet/pages/linearDocument.js'; 20 22 export * as PubLeafletPollDefinition from './types/pub/leaflet/poll/definition.js';
+22
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/content.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + 4 + import * as PubLeafletPagesCanvas from './pages/canvas.js'; 5 + import * as PubLeafletPagesLinearDocument from './pages/linearDocument.js'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.object({ 8 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.content')), 9 + get pages() { 10 + return /*#__PURE__*/ v.array( 11 + /*#__PURE__*/ v.variant([PubLeafletPagesCanvas.mainSchema, PubLeafletPagesLinearDocument.mainSchema]), 12 + ); 13 + }, 14 + }); 15 + 16 + type main$schematype = typeof _mainSchema; 17 + 18 + export interface mainSchema extends main$schematype {} 19 + 20 + export const mainSchema = _mainSchema as mainSchema; 21 + 22 + export interface Main extends v.InferInput<typeof mainSchema> {}
+8 -8
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/document.ts
··· 18 18 */ 19 19 coverImage: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()), 20 20 /** 21 - * @maxLength 3000 22 - * @maxGraphemes 300 21 + * @maxLength 30000 22 + * @maxGraphemes 3000 23 23 */ 24 24 description: /*#__PURE__*/ v.optional( 25 25 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 26 - /*#__PURE__*/ v.stringLength(0, 3000), 27 - /*#__PURE__*/ v.stringGraphemes(0, 300), 26 + /*#__PURE__*/ v.stringLength(0, 30000), 27 + /*#__PURE__*/ v.stringGraphemes(0, 3000), 28 28 ]), 29 29 ), 30 30 get pages() { ··· 46 46 return /*#__PURE__*/ v.optional(PubLeafletPublication.themeSchema); 47 47 }, 48 48 /** 49 - * @maxLength 1280 50 - * @maxGraphemes 128 49 + * @maxLength 5000 50 + * @maxGraphemes 500 51 51 */ 52 52 title: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 53 - /*#__PURE__*/ v.stringLength(0, 1280), 54 - /*#__PURE__*/ v.stringGraphemes(0, 128), 53 + /*#__PURE__*/ v.stringLength(0, 5000), 54 + /*#__PURE__*/ v.stringGraphemes(0, 500), 55 55 ]), 56 56 }), 57 57 );
+26
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/interactions/recommend.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.record( 6 + /*#__PURE__*/ v.tidString(), 7 + /*#__PURE__*/ v.object({ 8 + $type: /*#__PURE__*/ v.literal('pub.leaflet.interactions.recommend'), 9 + createdAt: /*#__PURE__*/ v.datetimeString(), 10 + subject: /*#__PURE__*/ v.resourceUriString(), 11 + }), 12 + ); 13 + 14 + type main$schematype = typeof _mainSchema; 15 + 16 + export interface mainSchema extends main$schematype {} 17 + 18 + export const mainSchema = _mainSchema as mainSchema; 19 + 20 + export interface Main extends v.InferInput<typeof mainSchema> {} 21 + 22 + declare module '@atcute/lexicons/ambient' { 23 + interface Records { 24 + 'pub.leaflet.interactions.recommend': mainSchema; 25 + } 26 + }
+2 -2
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/publication.ts
··· 48 48 */ 49 49 showMentions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true), 50 50 /** 51 - * @default false 51 + * @default true 52 52 */ 53 - showPrevNext: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false), 53 + showPrevNext: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true), 54 54 }); 55 55 const _themeSchema = /*#__PURE__*/ v.object({ 56 56 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.publication#theme')),