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 cf9e31e9 74db1f1b

+69 -8
+5
.changeset/bright-deer-brush.md
··· 1 + --- 2 + '@atcute/leaflet': patch 3 + --- 4 + 5 + pull latest Leaflet lexicons
+1 -1
lexdocs/leaflet/README.md
··· 1 - https://github.com/hyperlink-academy/leaflet/tree/f76b379dfd8d0f853c24a95f9cae4166646d774f/lexicons/pub/leaflet/ 1 + https://github.com/hyperlink-academy/leaflet/tree/17ce1f5e113237e6aabef17f50b959b6ca7904c6/lexicons/pub/leaflet/
+4
lexdocs/leaflet/document.json
··· 17 17 "maxLength": 1280, 18 18 "maxGraphemes": 128 19 19 }, 20 + "postRef": { 21 + "type": "ref", 22 + "ref": "com.atproto.repo.strongRef" 23 + }, 20 24 "description": { 21 25 "type": "string", 22 26 "maxLength": 3000,
+21
lexdocs/leaflet/graph/subscription.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "pub.leaflet.graph.subscription", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "key": "tid", 8 + "description": "Record declaring a subscription to a publication", 9 + "record": { 10 + "type": "object", 11 + "required": ["publication"], 12 + "properties": { 13 + "publication": { 14 + "type": "string", 15 + "format": "at-uri" 16 + } 17 + } 18 + } 19 + } 20 + } 21 + }
+7 -7
packages/definitions/leaflet/lex.config.js
··· 4 4 files: ['../../../lexdocs/leaflet/**/*.json'], 5 5 outdir: 'lib/lexicons/', 6 6 mappings: [ 7 - // { 8 - // nsid: ['com.atproto.*'], 9 - // imports: (nsid) => { 10 - // const specifier = nsid.slice('com.atproto.'.length).replaceAll('.', '/'); 11 - // return { type: 'namespace', from: `@atcute/atproto/types/${specifier}` }; 12 - // }, 13 - // }, 7 + { 8 + nsid: ['com.atproto.*'], 9 + imports: (nsid) => { 10 + const specifier = nsid.slice('com.atproto.'.length).replaceAll('.', '/'); 11 + return { type: 'namespace', from: `@atcute/atproto/types/${specifier}` }; 12 + }, 13 + }, 14 14 ], 15 15 });
+1
packages/definitions/leaflet/lib/lexicons/index.ts
··· 3 3 export * as PubLeafletBlocksText from './types/pub/leaflet/blocks/text.js'; 4 4 export * as PubLeafletBlocksUnorderedList from './types/pub/leaflet/blocks/unorderedList.js'; 5 5 export * as PubLeafletDocument from './types/pub/leaflet/document.js'; 6 + export * as PubLeafletGraphSubscription from './types/pub/leaflet/graph/subscription.js'; 6 7 export * as PubLeafletPagesLinearDocument from './types/pub/leaflet/pages/linearDocument.js'; 7 8 export * as PubLeafletPublication from './types/pub/leaflet/publication.js'; 8 9 export * as PubLeafletRichtextFacet from './types/pub/leaflet/richtext/facet.js';
+4
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/document.ts
··· 1 1 import type {} from '@atcute/lexicons'; 2 2 import * as v from '@atcute/lexicons/validations'; 3 3 import type {} from '@atcute/lexicons/ambient'; 4 + import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef'; 4 5 import * as PubLeafletPagesLinearDocument from './pages/linearDocument.js'; 5 6 6 7 const _mainSchema = /*#__PURE__*/ v.record( ··· 16 17 ), 17 18 get pages() { 18 19 return /*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([PubLeafletPagesLinearDocument.mainSchema])); 20 + }, 21 + get postRef() { 22 + return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema); 19 23 }, 20 24 publication: /*#__PURE__*/ v.resourceUriString(), 21 25 publishedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
+25
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/graph/subscription.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.record( 6 + /*#__PURE__*/ v.tidString(), 7 + /*#__PURE__*/ v.object({ 8 + $type: /*#__PURE__*/ v.literal('pub.leaflet.graph.subscription'), 9 + publication: /*#__PURE__*/ v.resourceUriString(), 10 + }), 11 + ); 12 + 13 + type main$schematype = typeof _mainSchema; 14 + 15 + export interface mainSchema extends main$schematype {} 16 + 17 + export const mainSchema = _mainSchema as mainSchema; 18 + 19 + export interface Main extends v.InferInput<typeof mainSchema> {} 20 + 21 + declare module '@atcute/lexicons/ambient' { 22 + interface Records { 23 + 'pub.leaflet.graph.subscription': mainSchema; 24 + } 25 + }
+1
packages/definitions/leaflet/package.json
··· 30 30 "prepublish": "rm -rf dist; pnpm run build" 31 31 }, 32 32 "dependencies": { 33 + "@atcute/atproto": "workspace:^", 33 34 "@atcute/lexicons": "workspace:^" 34 35 }, 35 36 "devDependencies": {