@atcute/pckt 0.1.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.
- package/LICENSE +14 -0
- package/README.md +59 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/lexicons/index.d.ts +27 -0
- package/dist/lexicons/index.d.ts.map +1 -0
- package/dist/lexicons/index.js +27 -0
- package/dist/lexicons/index.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/blockquote.d.ts +17 -0
- package/dist/lexicons/types/blog/pckt/block/blockquote.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/blockquote.js +13 -0
- package/dist/lexicons/types/blog/pckt/block/blockquote.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/blueskyEmbed.d.ts +17 -0
- package/dist/lexicons/types/blog/pckt/block/blueskyEmbed.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/blueskyEmbed.js +13 -0
- package/dist/lexicons/types/blog/pckt/block/blueskyEmbed.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/bulletList.d.ts +17 -0
- package/dist/lexicons/types/blog/pckt/block/bulletList.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/bulletList.js +13 -0
- package/dist/lexicons/types/blog/pckt/block/bulletList.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/codeBlock.d.ts +35 -0
- package/dist/lexicons/types/blog/pckt/block/codeBlock.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/codeBlock.js +29 -0
- package/dist/lexicons/types/blog/pckt/block/codeBlock.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/hardBreak.d.ts +12 -0
- package/dist/lexicons/types/blog/pckt/block/hardBreak.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/hardBreak.js +6 -0
- package/dist/lexicons/types/blog/pckt/block/hardBreak.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/heading.d.ts +37 -0
- package/dist/lexicons/types/blog/pckt/block/heading.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/heading.js +32 -0
- package/dist/lexicons/types/blog/pckt/block/heading.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/horizontalRule.d.ts +12 -0
- package/dist/lexicons/types/blog/pckt/block/horizontalRule.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/horizontalRule.js +6 -0
- package/dist/lexicons/types/blog/pckt/block/horizontalRule.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/iframe.d.ts +22 -0
- package/dist/lexicons/types/blog/pckt/block/iframe.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/iframe.js +17 -0
- package/dist/lexicons/types/blog/pckt/block/iframe.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/image.d.ts +75 -0
- package/dist/lexicons/types/blog/pckt/block/image.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/image.js +71 -0
- package/dist/lexicons/types/blog/pckt/block/image.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/listItem.d.ts +19 -0
- package/dist/lexicons/types/blog/pckt/block/listItem.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/listItem.js +20 -0
- package/dist/lexicons/types/blog/pckt/block/listItem.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/mention.d.ts +16 -0
- package/dist/lexicons/types/blog/pckt/block/mention.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/mention.js +10 -0
- package/dist/lexicons/types/blog/pckt/block/mention.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/orderedList.d.ts +35 -0
- package/dist/lexicons/types/blog/pckt/block/orderedList.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/orderedList.js +29 -0
- package/dist/lexicons/types/blog/pckt/block/orderedList.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/paragraph.d.ts +19 -0
- package/dist/lexicons/types/blog/pckt/block/paragraph.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/paragraph.js +21 -0
- package/dist/lexicons/types/blog/pckt/block/paragraph.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/taskItem.d.ts +34 -0
- package/dist/lexicons/types/blog/pckt/block/taskItem.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/taskItem.js +27 -0
- package/dist/lexicons/types/blog/pckt/block/taskItem.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/taskList.d.ts +17 -0
- package/dist/lexicons/types/blog/pckt/block/taskList.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/taskList.js +13 -0
- package/dist/lexicons/types/blog/pckt/block/taskList.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/text.d.ts +28 -0
- package/dist/lexicons/types/blog/pckt/block/text.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/text.js +36 -0
- package/dist/lexicons/types/blog/pckt/block/text.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/website.d.ts +28 -0
- package/dist/lexicons/types/blog/pckt/block/website.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/block/website.js +22 -0
- package/dist/lexicons/types/blog/pckt/block/website.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/document.d.ts +78 -0
- package/dist/lexicons/types/blog/pckt/document.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/document.js +101 -0
- package/dist/lexicons/types/blog/pckt/document.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/bold.d.ts +12 -0
- package/dist/lexicons/types/blog/pckt/mark/bold.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/bold.js +6 -0
- package/dist/lexicons/types/blog/pckt/mark/bold.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/code.d.ts +12 -0
- package/dist/lexicons/types/blog/pckt/mark/code.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/code.js +6 -0
- package/dist/lexicons/types/blog/pckt/mark/code.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/italic.d.ts +12 -0
- package/dist/lexicons/types/blog/pckt/mark/italic.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/italic.js +6 -0
- package/dist/lexicons/types/blog/pckt/mark/italic.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/link.d.ts +45 -0
- package/dist/lexicons/types/blog/pckt/mark/link.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/link.js +41 -0
- package/dist/lexicons/types/blog/pckt/mark/link.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/strike.d.ts +12 -0
- package/dist/lexicons/types/blog/pckt/mark/strike.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/strike.js +6 -0
- package/dist/lexicons/types/blog/pckt/mark/strike.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/underline.d.ts +12 -0
- package/dist/lexicons/types/blog/pckt/mark/underline.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/mark/underline.js +6 -0
- package/dist/lexicons/types/blog/pckt/mark/underline.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/publication.d.ts +76 -0
- package/dist/lexicons/types/blog/pckt/publication.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/publication.js +80 -0
- package/dist/lexicons/types/blog/pckt/publication.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/theme.d.ts +59 -0
- package/dist/lexicons/types/blog/pckt/theme.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/theme.js +53 -0
- package/dist/lexicons/types/blog/pckt/theme.js.map +1 -0
- package/lib/index.ts +1 -0
- package/lib/lexicons/index.ts +26 -0
- package/lib/lexicons/types/blog/pckt/block/blockquote.ts +21 -0
- package/lib/lexicons/types/blog/pckt/block/blueskyEmbed.ts +21 -0
- package/lib/lexicons/types/blog/pckt/block/bulletList.ts +21 -0
- package/lib/lexicons/types/blog/pckt/block/codeBlock.ts +41 -0
- package/lib/lexicons/types/blog/pckt/block/hardBreak.ts +14 -0
- package/lib/lexicons/types/blog/pckt/block/heading.ts +45 -0
- package/lib/lexicons/types/blog/pckt/block/horizontalRule.ts +14 -0
- package/lib/lexicons/types/blog/pckt/block/iframe.ts +26 -0
- package/lib/lexicons/types/blog/pckt/block/image.ts +87 -0
- package/lib/lexicons/types/blog/pckt/block/listItem.ts +29 -0
- package/lib/lexicons/types/blog/pckt/block/mention.ts +18 -0
- package/lib/lexicons/types/blog/pckt/block/orderedList.ts +41 -0
- package/lib/lexicons/types/blog/pckt/block/paragraph.ts +31 -0
- package/lib/lexicons/types/blog/pckt/block/taskItem.ts +38 -0
- package/lib/lexicons/types/blog/pckt/block/taskList.ts +21 -0
- package/lib/lexicons/types/blog/pckt/block/text.ts +46 -0
- package/lib/lexicons/types/blog/pckt/block/website.ts +30 -0
- package/lib/lexicons/types/blog/pckt/document.ts +124 -0
- package/lib/lexicons/types/blog/pckt/mark/bold.ts +14 -0
- package/lib/lexicons/types/blog/pckt/mark/code.ts +14 -0
- package/lib/lexicons/types/blog/pckt/mark/italic.ts +14 -0
- package/lib/lexicons/types/blog/pckt/mark/link.ts +55 -0
- package/lib/lexicons/types/blog/pckt/mark/strike.ts +14 -0
- package/lib/lexicons/types/blog/pckt/mark/underline.ts +14 -0
- package/lib/lexicons/types/blog/pckt/publication.ts +101 -0
- package/lib/lexicons/types/blog/pckt/theme.ts +65 -0
- package/package.json +47 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as v from '@atcute/lexicons/validations';
|
|
2
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
3
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.theme')),
|
|
4
|
+
/**
|
|
5
|
+
* Dark mode color palette
|
|
6
|
+
*/
|
|
7
|
+
get dark() {
|
|
8
|
+
return paletteSchema;
|
|
9
|
+
},
|
|
10
|
+
/**
|
|
11
|
+
* Font family name (optional)
|
|
12
|
+
* @maxLength 100
|
|
13
|
+
*/
|
|
14
|
+
font: /*#__PURE__*/ v.optional(
|
|
15
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 100)])),
|
|
16
|
+
/**
|
|
17
|
+
* Light mode color palette
|
|
18
|
+
*/
|
|
19
|
+
get light() {
|
|
20
|
+
return paletteSchema;
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
const _paletteSchema = /*#__PURE__*/ v.object({
|
|
24
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.theme#palette')),
|
|
25
|
+
/**
|
|
26
|
+
* Accent color (hex value)
|
|
27
|
+
* @maxLength 7
|
|
28
|
+
*/
|
|
29
|
+
accent: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 7)]),
|
|
30
|
+
/**
|
|
31
|
+
* Background color (hex value)
|
|
32
|
+
* @maxLength 7
|
|
33
|
+
*/
|
|
34
|
+
background: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 7)]),
|
|
35
|
+
/**
|
|
36
|
+
* Link color (hex value)
|
|
37
|
+
* @maxLength 7
|
|
38
|
+
*/
|
|
39
|
+
link: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 7)]),
|
|
40
|
+
/**
|
|
41
|
+
* Surface hover color (hex value)
|
|
42
|
+
* @maxLength 7
|
|
43
|
+
*/
|
|
44
|
+
surfaceHover: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 7)]),
|
|
45
|
+
/**
|
|
46
|
+
* Primary text color (hex value)
|
|
47
|
+
* @maxLength 7
|
|
48
|
+
*/
|
|
49
|
+
text: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 7)]),
|
|
50
|
+
});
|
|
51
|
+
export const mainSchema = _mainSchema;
|
|
52
|
+
export const paletteSchema = _paletteSchema;
|
|
53
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../../../lib/lexicons/types/blog/pckt/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC3E;;OAEG;IACH,IAAI,IAAI;QACP,OAAO,aAAa,CAAC;IACtB,CAAC;IACD;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC7B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAC3F;IACD;;OAEG;IACH,IAAI,KAAK;QACR,OAAO,aAAa,CAAC;IACtB,CAAC;CACD,CAAC,CAAC;AACH,MAAM,cAAc,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACnF;;;OAGG;IACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACjG;;;OAGG;IACH,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACrG;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC/F;;;OAGG;IACH,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACvG;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAC/F,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,cAA+B,CAAC"}
|
package/lib/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lexicons/index.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * as BlogPcktBlockBlockquote from './types/blog/pckt/block/blockquote.js';
|
|
2
|
+
export * as BlogPcktBlockBlueskyEmbed from './types/blog/pckt/block/blueskyEmbed.js';
|
|
3
|
+
export * as BlogPcktBlockBulletList from './types/blog/pckt/block/bulletList.js';
|
|
4
|
+
export * as BlogPcktBlockCodeBlock from './types/blog/pckt/block/codeBlock.js';
|
|
5
|
+
export * as BlogPcktBlockHardBreak from './types/blog/pckt/block/hardBreak.js';
|
|
6
|
+
export * as BlogPcktBlockHeading from './types/blog/pckt/block/heading.js';
|
|
7
|
+
export * as BlogPcktBlockHorizontalRule from './types/blog/pckt/block/horizontalRule.js';
|
|
8
|
+
export * as BlogPcktBlockIframe from './types/blog/pckt/block/iframe.js';
|
|
9
|
+
export * as BlogPcktBlockImage from './types/blog/pckt/block/image.js';
|
|
10
|
+
export * as BlogPcktBlockListItem from './types/blog/pckt/block/listItem.js';
|
|
11
|
+
export * as BlogPcktBlockMention from './types/blog/pckt/block/mention.js';
|
|
12
|
+
export * as BlogPcktBlockOrderedList from './types/blog/pckt/block/orderedList.js';
|
|
13
|
+
export * as BlogPcktBlockParagraph from './types/blog/pckt/block/paragraph.js';
|
|
14
|
+
export * as BlogPcktBlockTaskItem from './types/blog/pckt/block/taskItem.js';
|
|
15
|
+
export * as BlogPcktBlockTaskList from './types/blog/pckt/block/taskList.js';
|
|
16
|
+
export * as BlogPcktBlockText from './types/blog/pckt/block/text.js';
|
|
17
|
+
export * as BlogPcktBlockWebsite from './types/blog/pckt/block/website.js';
|
|
18
|
+
export * as BlogPcktDocument from './types/blog/pckt/document.js';
|
|
19
|
+
export * as BlogPcktMarkBold from './types/blog/pckt/mark/bold.js';
|
|
20
|
+
export * as BlogPcktMarkCode from './types/blog/pckt/mark/code.js';
|
|
21
|
+
export * as BlogPcktMarkItalic from './types/blog/pckt/mark/italic.js';
|
|
22
|
+
export * as BlogPcktMarkLink from './types/blog/pckt/mark/link.js';
|
|
23
|
+
export * as BlogPcktMarkStrike from './types/blog/pckt/mark/strike.js';
|
|
24
|
+
export * as BlogPcktMarkUnderline from './types/blog/pckt/mark/underline.js';
|
|
25
|
+
export * as BlogPcktPublication from './types/blog/pckt/publication.js';
|
|
26
|
+
export * as BlogPcktTheme from './types/blog/pckt/theme.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as BlogPcktBlockParagraph from './paragraph.js';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.blockquote')),
|
|
7
|
+
/**
|
|
8
|
+
* Array of paragraph content
|
|
9
|
+
*/
|
|
10
|
+
get content() {
|
|
11
|
+
return /*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([BlogPcktBlockParagraph.mainSchema]));
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
type main$schematype = typeof _mainSchema;
|
|
16
|
+
|
|
17
|
+
export interface mainSchema extends main$schematype {}
|
|
18
|
+
|
|
19
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
20
|
+
|
|
21
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as ComAtprotoRepoStrongRef from '@atcute/atproto/types/repo/strongRef';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.blueskyEmbed')),
|
|
7
|
+
/**
|
|
8
|
+
* Strong reference to the Bluesky post
|
|
9
|
+
*/
|
|
10
|
+
get postRef() {
|
|
11
|
+
return ComAtprotoRepoStrongRef.mainSchema;
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
type main$schematype = typeof _mainSchema;
|
|
16
|
+
|
|
17
|
+
export interface mainSchema extends main$schematype {}
|
|
18
|
+
|
|
19
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
20
|
+
|
|
21
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as BlogPcktBlockListItem from './listItem.js';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.bulletList')),
|
|
7
|
+
/**
|
|
8
|
+
* Array of list items
|
|
9
|
+
*/
|
|
10
|
+
get content() {
|
|
11
|
+
return /*#__PURE__*/ v.array(BlogPcktBlockListItem.mainSchema);
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
type main$schematype = typeof _mainSchema;
|
|
16
|
+
|
|
17
|
+
export interface mainSchema extends main$schematype {}
|
|
18
|
+
|
|
19
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
20
|
+
|
|
21
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as BlogPcktBlockText from './text.js';
|
|
4
|
+
|
|
5
|
+
const _codeBlockAttrsSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.codeBlock#codeBlockAttrs')),
|
|
7
|
+
/**
|
|
8
|
+
* Programming language for syntax highlighting (e.g., 'javascript', 'python', 'php')
|
|
9
|
+
* @maxLength 50
|
|
10
|
+
*/
|
|
11
|
+
language: /*#__PURE__*/ v.optional(
|
|
12
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 50)]),
|
|
13
|
+
),
|
|
14
|
+
});
|
|
15
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
16
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.codeBlock')),
|
|
17
|
+
/**
|
|
18
|
+
* Code block attributes
|
|
19
|
+
*/
|
|
20
|
+
get attrs() {
|
|
21
|
+
return /*#__PURE__*/ v.optional(codeBlockAttrsSchema);
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* Array of text nodes containing the code
|
|
25
|
+
*/
|
|
26
|
+
get content() {
|
|
27
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlogPcktBlockText.mainSchema));
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
type codeBlockAttrs$schematype = typeof _codeBlockAttrsSchema;
|
|
32
|
+
type main$schematype = typeof _mainSchema;
|
|
33
|
+
|
|
34
|
+
export interface codeBlockAttrsSchema extends codeBlockAttrs$schematype {}
|
|
35
|
+
export interface mainSchema extends main$schematype {}
|
|
36
|
+
|
|
37
|
+
export const codeBlockAttrsSchema = _codeBlockAttrsSchema as codeBlockAttrsSchema;
|
|
38
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
39
|
+
|
|
40
|
+
export interface CodeBlockAttrs extends v.InferInput<typeof codeBlockAttrsSchema> {}
|
|
41
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
|
|
4
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.hardBreak')),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
type main$schematype = typeof _mainSchema;
|
|
9
|
+
|
|
10
|
+
export interface mainSchema extends main$schematype {}
|
|
11
|
+
|
|
12
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
13
|
+
|
|
14
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as BlogPcktBlockHardBreak from './hardBreak.js';
|
|
4
|
+
import * as BlogPcktBlockText from './text.js';
|
|
5
|
+
|
|
6
|
+
const _headingAttrsSchema = /*#__PURE__*/ v.object({
|
|
7
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.heading#headingAttrs')),
|
|
8
|
+
/**
|
|
9
|
+
* Heading level from 1 (most important) to 6 (least important)
|
|
10
|
+
* @minimum 1
|
|
11
|
+
* @maximum 6
|
|
12
|
+
*/
|
|
13
|
+
level: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 6)]),
|
|
14
|
+
});
|
|
15
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
16
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.heading')),
|
|
17
|
+
/**
|
|
18
|
+
* Heading attributes
|
|
19
|
+
*/
|
|
20
|
+
get attrs() {
|
|
21
|
+
return headingAttrsSchema;
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* Inline content of the heading (text with optional formatting)
|
|
25
|
+
*/
|
|
26
|
+
get content() {
|
|
27
|
+
return /*#__PURE__*/ v.optional(
|
|
28
|
+
/*#__PURE__*/ v.array(
|
|
29
|
+
/*#__PURE__*/ v.variant([BlogPcktBlockHardBreak.mainSchema, BlogPcktBlockText.mainSchema]),
|
|
30
|
+
),
|
|
31
|
+
);
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
type headingAttrs$schematype = typeof _headingAttrsSchema;
|
|
36
|
+
type main$schematype = typeof _mainSchema;
|
|
37
|
+
|
|
38
|
+
export interface headingAttrsSchema extends headingAttrs$schematype {}
|
|
39
|
+
export interface mainSchema extends main$schematype {}
|
|
40
|
+
|
|
41
|
+
export const headingAttrsSchema = _headingAttrsSchema as headingAttrsSchema;
|
|
42
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
43
|
+
|
|
44
|
+
export interface HeadingAttrs extends v.InferInput<typeof headingAttrsSchema> {}
|
|
45
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
|
|
4
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.horizontalRule')),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
type main$schematype = typeof _mainSchema;
|
|
9
|
+
|
|
10
|
+
export interface mainSchema extends main$schematype {}
|
|
11
|
+
|
|
12
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
13
|
+
|
|
14
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
|
|
4
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.iframe')),
|
|
6
|
+
/**
|
|
7
|
+
* Height of the embed in pixels
|
|
8
|
+
* @minimum 16
|
|
9
|
+
* @maximum 1600
|
|
10
|
+
*/
|
|
11
|
+
height: /*#__PURE__*/ v.optional(
|
|
12
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(16, 1600)]),
|
|
13
|
+
),
|
|
14
|
+
/**
|
|
15
|
+
* The URL of the content to embed
|
|
16
|
+
*/
|
|
17
|
+
url: /*#__PURE__*/ v.genericUriString(),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
type main$schematype = typeof _mainSchema;
|
|
21
|
+
|
|
22
|
+
export interface mainSchema extends main$schematype {}
|
|
23
|
+
|
|
24
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
25
|
+
|
|
26
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
|
|
4
|
+
const _aspectRatioSchema = /*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.image#aspectRatio')),
|
|
6
|
+
/**
|
|
7
|
+
* Height component of aspect ratio
|
|
8
|
+
* @minimum 1
|
|
9
|
+
*/
|
|
10
|
+
height: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1)]),
|
|
11
|
+
/**
|
|
12
|
+
* Width component of aspect ratio
|
|
13
|
+
* @minimum 1
|
|
14
|
+
*/
|
|
15
|
+
width: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1)]),
|
|
16
|
+
});
|
|
17
|
+
const _imageAttrsSchema = /*#__PURE__*/ v.object({
|
|
18
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.image#imageAttrs')),
|
|
19
|
+
/**
|
|
20
|
+
* Horizontal alignment of the image within its container
|
|
21
|
+
*/
|
|
22
|
+
align: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literalEnum(['center', 'left', 'right'])),
|
|
23
|
+
/**
|
|
24
|
+
* Alternative text description for accessibility and screen readers
|
|
25
|
+
* @maxLength 1000
|
|
26
|
+
* @maxGraphemes 300
|
|
27
|
+
*/
|
|
28
|
+
alt: /*#__PURE__*/ v.optional(
|
|
29
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
30
|
+
/*#__PURE__*/ v.stringLength(0, 1000),
|
|
31
|
+
/*#__PURE__*/ v.stringGraphemes(0, 300),
|
|
32
|
+
]),
|
|
33
|
+
),
|
|
34
|
+
/**
|
|
35
|
+
* Image aspect ratio for proper layout before loading
|
|
36
|
+
*/
|
|
37
|
+
get aspectRatio() {
|
|
38
|
+
return /*#__PURE__*/ v.optional(aspectRatioSchema);
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* AT Protocol blob reference (10MB max). Used when image is uploaded to PDS.
|
|
42
|
+
* @accept image/*
|
|
43
|
+
* @maxSize 10000000
|
|
44
|
+
*/
|
|
45
|
+
blob: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.blob()),
|
|
46
|
+
/**
|
|
47
|
+
* Image source URL or blob reference (blob:CID format for AT Protocol blobs)
|
|
48
|
+
* @maxLength 2000
|
|
49
|
+
*/
|
|
50
|
+
src: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 2000)]),
|
|
51
|
+
/**
|
|
52
|
+
* Optional image title displayed on hover
|
|
53
|
+
* @maxLength 500
|
|
54
|
+
* @maxGraphemes 200
|
|
55
|
+
*/
|
|
56
|
+
title: /*#__PURE__*/ v.optional(
|
|
57
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
58
|
+
/*#__PURE__*/ v.stringLength(0, 500),
|
|
59
|
+
/*#__PURE__*/ v.stringGraphemes(0, 200),
|
|
60
|
+
]),
|
|
61
|
+
),
|
|
62
|
+
});
|
|
63
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
64
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.image')),
|
|
65
|
+
/**
|
|
66
|
+
* Image attributes
|
|
67
|
+
*/
|
|
68
|
+
get attrs() {
|
|
69
|
+
return imageAttrsSchema;
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
type aspectRatio$schematype = typeof _aspectRatioSchema;
|
|
74
|
+
type imageAttrs$schematype = typeof _imageAttrsSchema;
|
|
75
|
+
type main$schematype = typeof _mainSchema;
|
|
76
|
+
|
|
77
|
+
export interface aspectRatioSchema extends aspectRatio$schematype {}
|
|
78
|
+
export interface imageAttrsSchema extends imageAttrs$schematype {}
|
|
79
|
+
export interface mainSchema extends main$schematype {}
|
|
80
|
+
|
|
81
|
+
export const aspectRatioSchema = _aspectRatioSchema as aspectRatioSchema;
|
|
82
|
+
export const imageAttrsSchema = _imageAttrsSchema as imageAttrsSchema;
|
|
83
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
84
|
+
|
|
85
|
+
export interface AspectRatio extends v.InferInput<typeof aspectRatioSchema> {}
|
|
86
|
+
export interface ImageAttrs extends v.InferInput<typeof imageAttrsSchema> {}
|
|
87
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as BlogPcktBlockBulletList from './bulletList.js';
|
|
4
|
+
import * as BlogPcktBlockOrderedList from './orderedList.js';
|
|
5
|
+
import * as BlogPcktBlockParagraph from './paragraph.js';
|
|
6
|
+
|
|
7
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
8
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.listItem')),
|
|
9
|
+
/**
|
|
10
|
+
* Array of block content (paragraphs or nested lists)
|
|
11
|
+
*/
|
|
12
|
+
get content() {
|
|
13
|
+
return /*#__PURE__*/ v.array(
|
|
14
|
+
/*#__PURE__*/ v.variant([
|
|
15
|
+
BlogPcktBlockBulletList.mainSchema,
|
|
16
|
+
BlogPcktBlockOrderedList.mainSchema,
|
|
17
|
+
BlogPcktBlockParagraph.mainSchema,
|
|
18
|
+
]),
|
|
19
|
+
);
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
type main$schematype = typeof _mainSchema;
|
|
24
|
+
|
|
25
|
+
export interface mainSchema extends main$schematype {}
|
|
26
|
+
|
|
27
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
28
|
+
|
|
29
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
|
|
4
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.mention')),
|
|
6
|
+
/**
|
|
7
|
+
* The DID of the mentioned user (e.g., did:plc:abc123xyz). This is the canonical reference that persists even if the user changes their handle, following app.bsky.richtext.facet#mention
|
|
8
|
+
*/
|
|
9
|
+
did: /*#__PURE__*/ v.didString(),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
type main$schematype = typeof _mainSchema;
|
|
13
|
+
|
|
14
|
+
export interface mainSchema extends main$schematype {}
|
|
15
|
+
|
|
16
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
17
|
+
|
|
18
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as BlogPcktBlockListItem from './listItem.js';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.orderedList')),
|
|
7
|
+
/**
|
|
8
|
+
* Optional attributes for the ordered list
|
|
9
|
+
*/
|
|
10
|
+
get attrs() {
|
|
11
|
+
return /*#__PURE__*/ v.optional(orderedListAttrsSchema);
|
|
12
|
+
},
|
|
13
|
+
/**
|
|
14
|
+
* Array of list items
|
|
15
|
+
*/
|
|
16
|
+
get content() {
|
|
17
|
+
return /*#__PURE__*/ v.array(BlogPcktBlockListItem.mainSchema);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
const _orderedListAttrsSchema = /*#__PURE__*/ v.object({
|
|
21
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.orderedList#orderedListAttrs')),
|
|
22
|
+
/**
|
|
23
|
+
* Starting number for the ordered list
|
|
24
|
+
* @minimum 1
|
|
25
|
+
*/
|
|
26
|
+
start: /*#__PURE__*/ v.optional(
|
|
27
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1)]),
|
|
28
|
+
),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
type main$schematype = typeof _mainSchema;
|
|
32
|
+
type orderedListAttrs$schematype = typeof _orderedListAttrsSchema;
|
|
33
|
+
|
|
34
|
+
export interface mainSchema extends main$schematype {}
|
|
35
|
+
export interface orderedListAttrsSchema extends orderedListAttrs$schematype {}
|
|
36
|
+
|
|
37
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
38
|
+
export const orderedListAttrsSchema = _orderedListAttrsSchema as orderedListAttrsSchema;
|
|
39
|
+
|
|
40
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
41
|
+
export interface OrderedListAttrs extends v.InferInput<typeof orderedListAttrsSchema> {}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as BlogPcktBlockHardBreak from './hardBreak.js';
|
|
4
|
+
import * as BlogPcktBlockMention from './mention.js';
|
|
5
|
+
import * as BlogPcktBlockText from './text.js';
|
|
6
|
+
|
|
7
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
8
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.paragraph')),
|
|
9
|
+
/**
|
|
10
|
+
* Array of inline content nodes (text, hard breaks, and mentions)
|
|
11
|
+
*/
|
|
12
|
+
get content() {
|
|
13
|
+
return /*#__PURE__*/ v.optional(
|
|
14
|
+
/*#__PURE__*/ v.array(
|
|
15
|
+
/*#__PURE__*/ v.variant([
|
|
16
|
+
BlogPcktBlockHardBreak.mainSchema,
|
|
17
|
+
BlogPcktBlockMention.mainSchema,
|
|
18
|
+
BlogPcktBlockText.mainSchema,
|
|
19
|
+
]),
|
|
20
|
+
),
|
|
21
|
+
);
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
type main$schematype = typeof _mainSchema;
|
|
26
|
+
|
|
27
|
+
export interface mainSchema extends main$schematype {}
|
|
28
|
+
|
|
29
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
30
|
+
|
|
31
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as BlogPcktBlockParagraph from './paragraph.js';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.taskItem')),
|
|
7
|
+
/**
|
|
8
|
+
* Task item attributes
|
|
9
|
+
*/
|
|
10
|
+
get attrs() {
|
|
11
|
+
return taskItemAttrsSchema;
|
|
12
|
+
},
|
|
13
|
+
/**
|
|
14
|
+
* Array of paragraph content
|
|
15
|
+
*/
|
|
16
|
+
get content() {
|
|
17
|
+
return /*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([BlogPcktBlockParagraph.mainSchema]));
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
const _taskItemAttrsSchema = /*#__PURE__*/ v.object({
|
|
21
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.taskItem#taskItemAttrs')),
|
|
22
|
+
/**
|
|
23
|
+
* Whether the task is checked or unchecked
|
|
24
|
+
*/
|
|
25
|
+
checked: /*#__PURE__*/ v.boolean(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
type main$schematype = typeof _mainSchema;
|
|
29
|
+
type taskItemAttrs$schematype = typeof _taskItemAttrsSchema;
|
|
30
|
+
|
|
31
|
+
export interface mainSchema extends main$schematype {}
|
|
32
|
+
export interface taskItemAttrsSchema extends taskItemAttrs$schematype {}
|
|
33
|
+
|
|
34
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
35
|
+
export const taskItemAttrsSchema = _taskItemAttrsSchema as taskItemAttrsSchema;
|
|
36
|
+
|
|
37
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
38
|
+
export interface TaskItemAttrs extends v.InferInput<typeof taskItemAttrsSchema> {}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as BlogPcktBlockTaskItem from './taskItem.js';
|
|
4
|
+
|
|
5
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
6
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.taskList')),
|
|
7
|
+
/**
|
|
8
|
+
* Array of task items
|
|
9
|
+
*/
|
|
10
|
+
get content() {
|
|
11
|
+
return /*#__PURE__*/ v.array(BlogPcktBlockTaskItem.mainSchema);
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
type main$schematype = typeof _mainSchema;
|
|
16
|
+
|
|
17
|
+
export interface mainSchema extends main$schematype {}
|
|
18
|
+
|
|
19
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
20
|
+
|
|
21
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
import * as BlogPcktMarkBold from '../mark/bold.js';
|
|
4
|
+
import * as BlogPcktMarkCode from '../mark/code.js';
|
|
5
|
+
import * as BlogPcktMarkItalic from '../mark/italic.js';
|
|
6
|
+
import * as BlogPcktMarkLink from '../mark/link.js';
|
|
7
|
+
import * as BlogPcktMarkStrike from '../mark/strike.js';
|
|
8
|
+
import * as BlogPcktMarkUnderline from '../mark/underline.js';
|
|
9
|
+
|
|
10
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
11
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.text')),
|
|
12
|
+
/**
|
|
13
|
+
* Optional array of formatting marks applied to this text (bold, italic, links, etc.)
|
|
14
|
+
*/
|
|
15
|
+
get marks() {
|
|
16
|
+
return /*#__PURE__*/ v.optional(
|
|
17
|
+
/*#__PURE__*/ v.array(
|
|
18
|
+
/*#__PURE__*/ v.variant([
|
|
19
|
+
BlogPcktMarkBold.mainSchema,
|
|
20
|
+
BlogPcktMarkCode.mainSchema,
|
|
21
|
+
BlogPcktMarkItalic.mainSchema,
|
|
22
|
+
BlogPcktMarkLink.mainSchema,
|
|
23
|
+
BlogPcktMarkStrike.mainSchema,
|
|
24
|
+
BlogPcktMarkUnderline.mainSchema,
|
|
25
|
+
]),
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* The actual text content
|
|
31
|
+
* @maxLength 10000
|
|
32
|
+
* @maxGraphemes 5000
|
|
33
|
+
*/
|
|
34
|
+
text: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [
|
|
35
|
+
/*#__PURE__*/ v.stringLength(0, 10000),
|
|
36
|
+
/*#__PURE__*/ v.stringGraphemes(0, 5000),
|
|
37
|
+
]),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
type main$schematype = typeof _mainSchema;
|
|
41
|
+
|
|
42
|
+
export interface mainSchema extends main$schematype {}
|
|
43
|
+
|
|
44
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
45
|
+
|
|
46
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
|
|
4
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.website')),
|
|
6
|
+
/**
|
|
7
|
+
* A brief description of the website or page
|
|
8
|
+
*/
|
|
9
|
+
description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
10
|
+
/**
|
|
11
|
+
* URL of the preview image
|
|
12
|
+
*/
|
|
13
|
+
previewImage: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
|
|
14
|
+
/**
|
|
15
|
+
* The URL of the website
|
|
16
|
+
*/
|
|
17
|
+
src: /*#__PURE__*/ v.genericUriString(),
|
|
18
|
+
/**
|
|
19
|
+
* The title of the website or page
|
|
20
|
+
*/
|
|
21
|
+
title: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
type main$schematype = typeof _mainSchema;
|
|
25
|
+
|
|
26
|
+
export interface mainSchema extends main$schematype {}
|
|
27
|
+
|
|
28
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
29
|
+
|
|
30
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|