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 dca650b0 207f0894

+127 -1
+5
.changeset/shy-clouds-care.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: 01f52ae21e7ff6f9a6fb111ece227515f8a1b7f7 6 + - commit: c16939706eec90b8e0dc0482be7f7baf45d225a6
+46
packages/definitions/leaflet/lexicons/pub/leaflet/blocks/orderedList.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "pub.leaflet.blocks.orderedList", 4 + "defs": { 5 + "main": { 6 + "type": "object", 7 + "required": ["children"], 8 + "properties": { 9 + "startIndex": { 10 + "type": "integer", 11 + "description": "The starting number for this ordered list. Defaults to 1 if not specified." 12 + }, 13 + "children": { 14 + "type": "array", 15 + "items": { 16 + "type": "ref", 17 + "ref": "#listItem" 18 + } 19 + } 20 + } 21 + }, 22 + "listItem": { 23 + "type": "object", 24 + "required": ["content"], 25 + "properties": { 26 + "content": { 27 + "type": "union", 28 + "refs": ["pub.leaflet.blocks.text", "pub.leaflet.blocks.header", "pub.leaflet.blocks.image"] 29 + }, 30 + "children": { 31 + "type": "array", 32 + "description": "Nested ordered list items. Mutually exclusive with unorderedListChildren; if both are present, children takes precedence.", 33 + "items": { 34 + "type": "ref", 35 + "ref": "#listItem" 36 + } 37 + }, 38 + "unorderedListChildren": { 39 + "type": "ref", 40 + "description": "A nested unordered list. Mutually exclusive with children; if both are present, children takes precedence.", 41 + "ref": "pub.leaflet.blocks.unorderedList" 42 + } 43 + } 44 + } 45 + } 46 + }
+6
packages/definitions/leaflet/lexicons/pub/leaflet/blocks/unorderedList.json
··· 25 25 }, 26 26 "children": { 27 27 "type": "array", 28 + "description": "Nested unordered list items. Mutually exclusive with orderedListChildren; if both are present, children takes precedence.", 28 29 "items": { 29 30 "type": "ref", 30 31 "ref": "#listItem" 31 32 } 33 + }, 34 + "orderedListChildren": { 35 + "type": "ref", 36 + "description": "Nested ordered list items. Mutually exclusive with children; if both are present, children takes precedence.", 37 + "ref": "pub.leaflet.blocks.orderedList" 32 38 } 33 39 } 34 40 }
+1
packages/definitions/leaflet/lexicons/pub/leaflet/pages/canvas.json
··· 31 31 "pub.leaflet.blocks.header", 32 32 "pub.leaflet.blocks.image", 33 33 "pub.leaflet.blocks.unorderedList", 34 + "pub.leaflet.blocks.orderedList", 34 35 "pub.leaflet.blocks.website", 35 36 "pub.leaflet.blocks.math", 36 37 "pub.leaflet.blocks.code",
+1
packages/definitions/leaflet/lexicons/pub/leaflet/pages/linearDocument.json
··· 31 31 "pub.leaflet.blocks.header", 32 32 "pub.leaflet.blocks.image", 33 33 "pub.leaflet.blocks.unorderedList", 34 + "pub.leaflet.blocks.orderedList", 34 35 "pub.leaflet.blocks.website", 35 36 "pub.leaflet.blocks.math", 36 37 "pub.leaflet.blocks.code",
+1
packages/definitions/leaflet/lib/lexicons/index.ts
··· 7 7 export * as PubLeafletBlocksIframe from './types/pub/leaflet/blocks/iframe.ts'; 8 8 export * as PubLeafletBlocksImage from './types/pub/leaflet/blocks/image.ts'; 9 9 export * as PubLeafletBlocksMath from './types/pub/leaflet/blocks/math.ts'; 10 + export * as PubLeafletBlocksOrderedList from './types/pub/leaflet/blocks/orderedList.ts'; 10 11 export * as PubLeafletBlocksPage from './types/pub/leaflet/blocks/page.ts'; 11 12 export * as PubLeafletBlocksPoll from './types/pub/leaflet/blocks/poll.ts'; 12 13 export * as PubLeafletBlocksText from './types/pub/leaflet/blocks/text.ts';
+52
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/blocks/orderedList.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + 4 + import * as PubLeafletBlocksHeader from './header.ts'; 5 + import * as PubLeafletBlocksImage from './image.ts'; 6 + import * as PubLeafletBlocksText from './text.ts'; 7 + import * as PubLeafletBlocksUnorderedList from './unorderedList.ts'; 8 + 9 + const _listItemSchema = /*#__PURE__*/ v.object({ 10 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.blocks.orderedList#listItem')), 11 + /** 12 + * Nested ordered list items. Mutually exclusive with unorderedListChildren; if both are present, children takes precedence. 13 + */ 14 + get children() { 15 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(listItemSchema)); 16 + }, 17 + get content() { 18 + return /*#__PURE__*/ v.variant([ 19 + PubLeafletBlocksHeader.mainSchema, 20 + PubLeafletBlocksImage.mainSchema, 21 + PubLeafletBlocksText.mainSchema, 22 + ]); 23 + }, 24 + /** 25 + * A nested unordered list. Mutually exclusive with children; if both are present, children takes precedence. 26 + */ 27 + get unorderedListChildren() { 28 + return /*#__PURE__*/ v.optional(PubLeafletBlocksUnorderedList.mainSchema); 29 + }, 30 + }); 31 + const _mainSchema = /*#__PURE__*/ v.object({ 32 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.blocks.orderedList')), 33 + get children() { 34 + return /*#__PURE__*/ v.array(listItemSchema); 35 + }, 36 + /** 37 + * The starting number for this ordered list. Defaults to 1 if not specified. 38 + */ 39 + startIndex: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 40 + }); 41 + 42 + type listItem$schematype = typeof _listItemSchema; 43 + type main$schematype = typeof _mainSchema; 44 + 45 + export interface listItemSchema extends listItem$schematype {} 46 + export interface mainSchema extends main$schematype {} 47 + 48 + export const listItemSchema = _listItemSchema as listItemSchema; 49 + export const mainSchema = _mainSchema as mainSchema; 50 + 51 + export interface ListItem extends v.InferInput<typeof listItemSchema> {} 52 + export interface Main extends v.InferInput<typeof mainSchema> {}
+10
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/blocks/unorderedList.ts
··· 3 3 4 4 import * as PubLeafletBlocksHeader from './header.ts'; 5 5 import * as PubLeafletBlocksImage from './image.ts'; 6 + import * as PubLeafletBlocksOrderedList from './orderedList.ts'; 6 7 import * as PubLeafletBlocksText from './text.ts'; 7 8 8 9 const _listItemSchema = /*#__PURE__*/ v.object({ 9 10 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('pub.leaflet.blocks.unorderedList#listItem')), 11 + /** 12 + * Nested unordered list items. Mutually exclusive with orderedListChildren; if both are present, children takes precedence. 13 + */ 10 14 get children() { 11 15 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(listItemSchema)); 12 16 }, ··· 16 20 PubLeafletBlocksImage.mainSchema, 17 21 PubLeafletBlocksText.mainSchema, 18 22 ]); 23 + }, 24 + /** 25 + * Nested ordered list items. Mutually exclusive with children; if both are present, children takes precedence. 26 + */ 27 + get orderedListChildren() { 28 + return /*#__PURE__*/ v.optional(PubLeafletBlocksOrderedList.mainSchema); 19 29 }, 20 30 }); 21 31 const _mainSchema = /*#__PURE__*/ v.object({
+2
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/pages/canvas.ts
··· 10 10 import * as PubLeafletBlocksIframe from '../blocks/iframe.ts'; 11 11 import * as PubLeafletBlocksImage from '../blocks/image.ts'; 12 12 import * as PubLeafletBlocksMath from '../blocks/math.ts'; 13 + import * as PubLeafletBlocksOrderedList from '../blocks/orderedList.ts'; 13 14 import * as PubLeafletBlocksPage from '../blocks/page.ts'; 14 15 import * as PubLeafletBlocksPoll from '../blocks/poll.ts'; 15 16 import * as PubLeafletBlocksText from '../blocks/text.ts'; ··· 29 30 PubLeafletBlocksIframe.mainSchema, 30 31 PubLeafletBlocksImage.mainSchema, 31 32 PubLeafletBlocksMath.mainSchema, 33 + PubLeafletBlocksOrderedList.mainSchema, 32 34 PubLeafletBlocksPage.mainSchema, 33 35 PubLeafletBlocksPoll.mainSchema, 34 36 PubLeafletBlocksText.mainSchema,
+2
packages/definitions/leaflet/lib/lexicons/types/pub/leaflet/pages/linearDocument.ts
··· 10 10 import * as PubLeafletBlocksIframe from '../blocks/iframe.ts'; 11 11 import * as PubLeafletBlocksImage from '../blocks/image.ts'; 12 12 import * as PubLeafletBlocksMath from '../blocks/math.ts'; 13 + import * as PubLeafletBlocksOrderedList from '../blocks/orderedList.ts'; 13 14 import * as PubLeafletBlocksPage from '../blocks/page.ts'; 14 15 import * as PubLeafletBlocksPoll from '../blocks/poll.ts'; 15 16 import * as PubLeafletBlocksText from '../blocks/text.ts'; ··· 34 35 PubLeafletBlocksIframe.mainSchema, 35 36 PubLeafletBlocksImage.mainSchema, 36 37 PubLeafletBlocksMath.mainSchema, 38 + PubLeafletBlocksOrderedList.mainSchema, 37 39 PubLeafletBlocksPage.mainSchema, 38 40 PubLeafletBlocksPoll.mainSchema, 39 41 PubLeafletBlocksText.mainSchema,