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 8ed5ee91 45fdf38b

+48 -1
+5
.changeset/quiet-poets-walk.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: 760ce67207f97c48802cda8c5e3d593862044e76 6 + - commit: fd3b12273cc0e24fdba1b2fc729b48a8560ff15e
+24
packages/definitions/leaflet/lexicons/pub/leaflet/richtext/facet.json
··· 17 17 "type": "union", 18 18 "refs": [ 19 19 "#link", 20 + "#didMention", 21 + "#atMention", 20 22 "#code", 21 23 "#highlight", 22 24 "#underline", ··· 51 53 "properties": { 52 54 "uri": { 53 55 "type": "string" 56 + } 57 + } 58 + }, 59 + "didMention": { 60 + "type": "object", 61 + "description": "Facet feature for mentioning a did.", 62 + "required": ["did"], 63 + "properties": { 64 + "did": { 65 + "type": "string", 66 + "format": "did" 67 + } 68 + } 69 + }, 70 + "atMention": { 71 + "type": "object", 72 + "description": "Facet feature for mentioning an AT URI.", 73 + "required": ["atURI"], 74 + "properties": { 75 + "atURI": { 76 + "type": "string", 77 + "format": "uri" 54 78 } 55 79 } 56 80 },
+18
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/richtext/facet.ts
··· 1 1 import type {} from '@atcute/lexicons'; 2 2 import * as v from '@atcute/lexicons/validations'; 3 3 4 + const _atMentionSchema = /*#__PURE__*/ v.object({ 5 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.richtext.facet#atMention')), 6 + atURI: /*#__PURE__*/ v.genericUriString(), 7 + }); 4 8 const _boldSchema = /*#__PURE__*/ v.object({ 5 9 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.richtext.facet#bold')), 6 10 }); ··· 18 22 const _codeSchema = /*#__PURE__*/ v.object({ 19 23 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.richtext.facet#code')), 20 24 }); 25 + const _didMentionSchema = /*#__PURE__*/ v.object({ 26 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.richtext.facet#didMention')), 27 + did: /*#__PURE__*/ v.didString(), 28 + }); 21 29 const _highlightSchema = /*#__PURE__*/ v.object({ 22 30 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.richtext.facet#highlight')), 23 31 }); ··· 37 45 get features() { 38 46 return /*#__PURE__*/ v.array( 39 47 /*#__PURE__*/ v.variant([ 48 + atMentionSchema, 40 49 boldSchema, 41 50 codeSchema, 51 + didMentionSchema, 42 52 highlightSchema, 43 53 idSchema, 44 54 italicSchema, ··· 59 69 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.richtext.facet#underline')), 60 70 }); 61 71 72 + type atMention$schematype = typeof _atMentionSchema; 62 73 type bold$schematype = typeof _boldSchema; 63 74 type byteSlice$schematype = typeof _byteSliceSchema; 64 75 type code$schematype = typeof _codeSchema; 76 + type didMention$schematype = typeof _didMentionSchema; 65 77 type highlight$schematype = typeof _highlightSchema; 66 78 type id$schematype = typeof _idSchema; 67 79 type italic$schematype = typeof _italicSchema; ··· 70 82 type strikethrough$schematype = typeof _strikethroughSchema; 71 83 type underline$schematype = typeof _underlineSchema; 72 84 85 + export interface atMentionSchema extends atMention$schematype {} 73 86 export interface boldSchema extends bold$schematype {} 74 87 export interface byteSliceSchema extends byteSlice$schematype {} 75 88 export interface codeSchema extends code$schematype {} 89 + export interface didMentionSchema extends didMention$schematype {} 76 90 export interface highlightSchema extends highlight$schematype {} 77 91 export interface idSchema extends id$schematype {} 78 92 export interface italicSchema extends italic$schematype {} ··· 81 95 export interface strikethroughSchema extends strikethrough$schematype {} 82 96 export interface underlineSchema extends underline$schematype {} 83 97 98 + export const atMentionSchema = _atMentionSchema as atMentionSchema; 84 99 export const boldSchema = _boldSchema as boldSchema; 85 100 export const byteSliceSchema = _byteSliceSchema as byteSliceSchema; 86 101 export const codeSchema = _codeSchema as codeSchema; 102 + export const didMentionSchema = _didMentionSchema as didMentionSchema; 87 103 export const highlightSchema = _highlightSchema as highlightSchema; 88 104 export const idSchema = _idSchema as idSchema; 89 105 export const italicSchema = _italicSchema as italicSchema; ··· 92 108 export const strikethroughSchema = _strikethroughSchema as strikethroughSchema; 93 109 export const underlineSchema = _underlineSchema as underlineSchema; 94 110 111 + export interface AtMention extends v.InferInput<typeof atMentionSchema> {} 95 112 export interface Bold extends v.InferInput<typeof boldSchema> {} 96 113 export interface ByteSlice extends v.InferInput<typeof byteSliceSchema> {} 97 114 export interface Code extends v.InferInput<typeof codeSchema> {} 115 + export interface DidMention extends v.InferInput<typeof didMentionSchema> {} 98 116 export interface Highlight extends v.InferInput<typeof highlightSchema> {} 99 117 export interface Id extends v.InferInput<typeof idSchema> {} 100 118 export interface Italic extends v.InferInput<typeof italicSchema> {}