@hypercerts-org/lexicon 0.10.0 → 0.11.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/CHANGELOG.md +205 -0
- package/README.md +371 -388
- package/SCHEMAS.md +533 -75
- package/dist/exports.d.ts +900 -10
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +900 -10
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +2683 -1093
- package/dist/generated/lexicons.d.ts.map +1 -1
- package/dist/generated/types/app/bsky/richtext/facet.d.ts +44 -7
- package/dist/generated/types/app/bsky/richtext/facet.d.ts.map +1 -1
- package/dist/generated/types/app/certified/badge/award.d.ts +2 -3
- package/dist/generated/types/app/certified/badge/award.d.ts.map +1 -1
- package/dist/generated/types/app/certified/badge/definition.d.ts +3 -3
- package/dist/generated/types/app/certified/badge/definition.d.ts.map +1 -1
- package/dist/generated/types/app/certified/badge/response.d.ts +2 -2
- package/dist/generated/types/app/certified/badge/response.d.ts.map +1 -1
- package/dist/generated/types/app/certified/link/evm.d.ts +45 -0
- package/dist/generated/types/app/certified/link/evm.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +6 -3
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/collection.d.ts +11 -5
- package/dist/generated/types/org/hypercerts/collection.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/context/attachment.d.ts +5 -3
- package/dist/generated/types/org/hypercerts/context/attachment.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/context/evaluation.d.ts +6 -6
- package/dist/generated/types/org/hypercerts/context/evaluation.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/defs.d.ts +11 -0
- package/dist/generated/types/org/hypercerts/defs.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/funding/receipt.d.ts +17 -5
- package/dist/generated/types/org/hypercerts/funding/receipt.d.ts.map +1 -1
- package/dist/generated/types/pub/leaflet/blocks/blockquote.d.ts +13 -0
- package/dist/generated/types/pub/leaflet/blocks/blockquote.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/bskyPost.d.ts +13 -0
- package/dist/generated/types/pub/leaflet/blocks/bskyPost.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/button.d.ts +12 -0
- package/dist/generated/types/pub/leaflet/blocks/button.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/code.d.ts +13 -0
- package/dist/generated/types/pub/leaflet/blocks/code.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/header.d.ts +14 -0
- package/dist/generated/types/pub/leaflet/blocks/header.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/horizontalRule.d.ts +10 -0
- package/dist/generated/types/pub/leaflet/blocks/horizontalRule.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/iframe.d.ts +12 -0
- package/dist/generated/types/pub/leaflet/blocks/iframe.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/image.d.ts +21 -0
- package/dist/generated/types/pub/leaflet/blocks/image.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/math.d.ts +11 -0
- package/dist/generated/types/pub/leaflet/blocks/math.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/orderedList.d.ts +31 -0
- package/dist/generated/types/pub/leaflet/blocks/orderedList.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/page.d.ts +11 -0
- package/dist/generated/types/pub/leaflet/blocks/page.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/poll.d.ts +12 -0
- package/dist/generated/types/pub/leaflet/blocks/poll.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/text.d.ts +14 -0
- package/dist/generated/types/pub/leaflet/blocks/text.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/unorderedList.d.ts +29 -0
- package/dist/generated/types/pub/leaflet/blocks/unorderedList.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/blocks/website.d.ts +14 -0
- package/dist/generated/types/pub/leaflet/blocks/website.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts +54 -1
- package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -1
- package/dist/generated/types/pub/leaflet/richtext/facet.d.ts +97 -0
- package/dist/generated/types/pub/leaflet/richtext/facet.d.ts.map +1 -0
- package/dist/index.cjs +4486 -1807
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4407 -1804
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +927 -35
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +2683 -1093
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +927 -35
- package/dist/lexicons.mjs.map +1 -1
- package/dist/tests/validate-external-lexicons.test.d.ts +2 -0
- package/dist/tests/validate-external-lexicons.test.d.ts.map +1 -0
- package/dist/tests/validate-funding-receipt.test.d.ts +2 -0
- package/dist/tests/validate-funding-receipt.test.d.ts.map +1 -0
- package/dist/tests/validate-link-evm.test.d.ts +2 -0
- package/dist/tests/validate-link-evm.test.d.ts.map +1 -0
- package/dist/tests/validate-rights.test.d.ts +2 -0
- package/dist/tests/validate-rights.test.d.ts.map +1 -0
- package/dist/types/app/bsky/richtext/facet.d.ts +44 -7
- package/dist/types/app/bsky/richtext/facet.d.ts.map +1 -1
- package/dist/types/app/certified/badge/award.d.ts +2 -3
- package/dist/types/app/certified/badge/award.d.ts.map +1 -1
- package/dist/types/app/certified/badge/definition.d.ts +3 -3
- package/dist/types/app/certified/badge/definition.d.ts.map +1 -1
- package/dist/types/app/certified/badge/response.d.ts +2 -2
- package/dist/types/app/certified/badge/response.d.ts.map +1 -1
- package/dist/types/app/certified/link/evm.d.ts +45 -0
- package/dist/types/app/certified/link/evm.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/activity.d.ts +6 -3
- package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/types/org/hypercerts/collection.d.ts +11 -5
- package/dist/types/org/hypercerts/collection.d.ts.map +1 -1
- package/dist/types/org/hypercerts/context/attachment.d.ts +5 -3
- package/dist/types/org/hypercerts/context/attachment.d.ts.map +1 -1
- package/dist/types/org/hypercerts/context/evaluation.d.ts +6 -6
- package/dist/types/org/hypercerts/context/evaluation.d.ts.map +1 -1
- package/dist/types/org/hypercerts/defs.d.ts +11 -0
- package/dist/types/org/hypercerts/defs.d.ts.map +1 -1
- package/dist/types/org/hypercerts/funding/receipt.d.ts +17 -5
- package/dist/types/org/hypercerts/funding/receipt.d.ts.map +1 -1
- package/dist/types/pub/leaflet/blocks/blockquote.d.ts +13 -0
- package/dist/types/pub/leaflet/blocks/blockquote.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/bskyPost.d.ts +13 -0
- package/dist/types/pub/leaflet/blocks/bskyPost.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/button.d.ts +12 -0
- package/dist/types/pub/leaflet/blocks/button.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/code.d.ts +13 -0
- package/dist/types/pub/leaflet/blocks/code.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/header.d.ts +14 -0
- package/dist/types/pub/leaflet/blocks/header.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/horizontalRule.d.ts +10 -0
- package/dist/types/pub/leaflet/blocks/horizontalRule.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/iframe.d.ts +12 -0
- package/dist/types/pub/leaflet/blocks/iframe.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/image.d.ts +21 -0
- package/dist/types/pub/leaflet/blocks/image.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/math.d.ts +11 -0
- package/dist/types/pub/leaflet/blocks/math.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/orderedList.d.ts +31 -0
- package/dist/types/pub/leaflet/blocks/orderedList.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/page.d.ts +11 -0
- package/dist/types/pub/leaflet/blocks/page.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/poll.d.ts +12 -0
- package/dist/types/pub/leaflet/blocks/poll.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/text.d.ts +14 -0
- package/dist/types/pub/leaflet/blocks/text.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/unorderedList.d.ts +29 -0
- package/dist/types/pub/leaflet/blocks/unorderedList.d.ts.map +1 -0
- package/dist/types/pub/leaflet/blocks/website.d.ts +14 -0
- package/dist/types/pub/leaflet/blocks/website.d.ts.map +1 -0
- package/dist/types/pub/leaflet/pages/linearDocument.d.ts +54 -1
- package/dist/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -1
- package/dist/types/pub/leaflet/richtext/facet.d.ts +97 -0
- package/dist/types/pub/leaflet/richtext/facet.d.ts.map +1 -0
- package/lexicons/app/bsky/richtext/facet.json +51 -0
- package/lexicons/app/certified/badge/award.json +2 -2
- package/lexicons/app/certified/badge/definition.json +10 -2
- package/lexicons/app/certified/badge/response.json +2 -2
- package/lexicons/app/certified/link/evm.json +88 -0
- package/lexicons/org/hypercerts/claim/activity.json +8 -4
- package/lexicons/org/hypercerts/collection.json +19 -5
- package/lexicons/org/hypercerts/context/attachment.json +16 -5
- package/lexicons/org/hypercerts/context/evaluation.json +9 -6
- package/lexicons/org/hypercerts/defs.json +21 -0
- package/lexicons/org/hypercerts/funding/receipt.json +30 -10
- package/lexicons/pub/leaflet/blocks/blockquote.json +22 -0
- package/lexicons/pub/leaflet/blocks/bskyPost.json +19 -0
- package/lexicons/pub/leaflet/blocks/button.json +19 -0
- package/lexicons/pub/leaflet/blocks/code.json +21 -0
- package/lexicons/pub/leaflet/blocks/header.json +27 -0
- package/lexicons/pub/leaflet/blocks/horizontalRule.json +11 -0
- package/lexicons/pub/leaflet/blocks/iframe.json +21 -0
- package/lexicons/pub/leaflet/blocks/image.json +37 -0
- package/lexicons/pub/leaflet/blocks/math.json +15 -0
- package/lexicons/pub/leaflet/blocks/orderedList.json +54 -0
- package/lexicons/pub/leaflet/blocks/page.json +15 -0
- package/lexicons/pub/leaflet/blocks/poll.json +16 -0
- package/lexicons/pub/leaflet/blocks/text.json +26 -0
- package/lexicons/pub/leaflet/blocks/unorderedList.json +50 -0
- package/lexicons/pub/leaflet/blocks/website.json +27 -0
- package/lexicons/pub/leaflet/pages/linearDocument.json +98 -0
- package/lexicons/pub/leaflet/richtext/facet.json +149 -0
- package/package.json +3 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
5
|
+
export interface Main {
|
|
6
|
+
$type?: 'pub.leaflet.blocks.image';
|
|
7
|
+
image: BlobRef;
|
|
8
|
+
/** Alt text description of the image, for accessibility. */
|
|
9
|
+
alt?: string;
|
|
10
|
+
aspectRatio: AspectRatio;
|
|
11
|
+
}
|
|
12
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.image", "main">;
|
|
13
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
14
|
+
export interface AspectRatio {
|
|
15
|
+
$type?: 'pub.leaflet.blocks.image#aspectRatio';
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
}
|
|
19
|
+
export declare function isAspectRatio<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.image", "aspectRatio">;
|
|
20
|
+
export declare function validateAspectRatio<V>(v: V): ValidationResult<AspectRatio & V>;
|
|
21
|
+
//# sourceMappingURL=image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/blocks/image.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,0BAA0B,CAAA;IAClC,KAAK,EAAE,OAAO,CAAA;IACd,4DAA4D;IAC5D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,WAAW,CAAA;CACzB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,sCAAsC,CAAA;IAC9C,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
export interface Main {
|
|
6
|
+
$type?: 'pub.leaflet.blocks.math';
|
|
7
|
+
tex: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.math", "main">;
|
|
10
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
11
|
+
//# sourceMappingURL=math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/blocks/math.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util';
|
|
6
|
+
import type * as PubLeafletBlocksText from './text.js';
|
|
7
|
+
import type * as PubLeafletBlocksHeader from './header.js';
|
|
8
|
+
import type * as PubLeafletBlocksImage from './image.js';
|
|
9
|
+
import type * as PubLeafletBlocksUnorderedList from './unorderedList.js';
|
|
10
|
+
export interface Main {
|
|
11
|
+
$type?: 'pub.leaflet.blocks.orderedList';
|
|
12
|
+
/** The starting number for this ordered list. Defaults to 1 if not specified. */
|
|
13
|
+
startIndex?: number;
|
|
14
|
+
children: ListItem[];
|
|
15
|
+
}
|
|
16
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.orderedList", "main">;
|
|
17
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
18
|
+
export interface ListItem {
|
|
19
|
+
$type?: 'pub.leaflet.blocks.orderedList#listItem';
|
|
20
|
+
/** If present, this item is a checklist item. true = checked, false = unchecked. If absent, this is a normal list item. */
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
content: $Typed<PubLeafletBlocksText.Main> | $Typed<PubLeafletBlocksHeader.Main> | $Typed<PubLeafletBlocksImage.Main> | {
|
|
23
|
+
$type: string;
|
|
24
|
+
};
|
|
25
|
+
/** Nested ordered list items. Mutually exclusive with unorderedListChildren; if both are present, children takes precedence. */
|
|
26
|
+
children?: ListItem[];
|
|
27
|
+
unorderedListChildren?: PubLeafletBlocksUnorderedList.Main;
|
|
28
|
+
}
|
|
29
|
+
export declare function isListItem<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.orderedList", "listItem">;
|
|
30
|
+
export declare function validateListItem<V>(v: V): ValidationResult<ListItem & V>;
|
|
31
|
+
//# sourceMappingURL=orderedList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orderedList.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/blocks/orderedList.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AACtD,OAAO,KAAK,KAAK,sBAAsB,MAAM,aAAa,CAAA;AAC1D,OAAO,KAAK,KAAK,qBAAqB,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,KAAK,6BAA6B,MAAM,oBAAoB,CAAA;AAMxE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,gCAAgC,CAAA;IACxC,iFAAiF;IACjF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,QAAQ,EAAE,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,yCAAyC,CAAA;IACjD,2HAA2H;IAC3H,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,EACH,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,GACjC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,GACnC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,GAClC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,gIAAgI;IAChI,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,qBAAqB,CAAC,EAAE,6BAA6B,CAAC,IAAI,CAAA;CAC3D;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iGAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
export interface Main {
|
|
6
|
+
$type?: 'pub.leaflet.blocks.page';
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.page", "main">;
|
|
10
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
11
|
+
//# sourceMappingURL=page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/blocks/page.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,EAAE,EAAE,MAAM,CAAA;CACX;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
6
|
+
export interface Main {
|
|
7
|
+
$type?: 'pub.leaflet.blocks.poll';
|
|
8
|
+
pollRef: ComAtprotoRepoStrongRef.Main;
|
|
9
|
+
}
|
|
10
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.poll", "main">;
|
|
11
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
12
|
+
//# sourceMappingURL=poll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/blocks/poll.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,OAAO,EAAE,uBAAuB,CAAC,IAAI,CAAA;CACtC;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import type * as PubLeafletRichtextFacet from '../richtext/facet.js';
|
|
6
|
+
export interface Main {
|
|
7
|
+
$type?: 'pub.leaflet.blocks.text';
|
|
8
|
+
plaintext: string;
|
|
9
|
+
textSize?: 'default' | 'small' | 'large';
|
|
10
|
+
facets?: PubLeafletRichtextFacet.Main[];
|
|
11
|
+
}
|
|
12
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.text", "main">;
|
|
13
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
14
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/blocks/text.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,sBAAsB,CAAA;AAMpE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,CAAA;IACxC,MAAM,CAAC,EAAE,uBAAuB,CAAC,IAAI,EAAE,CAAA;CACxC;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util';
|
|
6
|
+
import type * as PubLeafletBlocksText from './text.js';
|
|
7
|
+
import type * as PubLeafletBlocksHeader from './header.js';
|
|
8
|
+
import type * as PubLeafletBlocksImage from './image.js';
|
|
9
|
+
import type * as PubLeafletBlocksOrderedList from './orderedList.js';
|
|
10
|
+
export interface Main {
|
|
11
|
+
$type?: 'pub.leaflet.blocks.unorderedList';
|
|
12
|
+
children: ListItem[];
|
|
13
|
+
}
|
|
14
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.unorderedList", "main">;
|
|
15
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
16
|
+
export interface ListItem {
|
|
17
|
+
$type?: 'pub.leaflet.blocks.unorderedList#listItem';
|
|
18
|
+
/** If present, this item is a checklist item. true = checked, false = unchecked. If absent, this is a normal list item. */
|
|
19
|
+
checked?: boolean;
|
|
20
|
+
content: $Typed<PubLeafletBlocksText.Main> | $Typed<PubLeafletBlocksHeader.Main> | $Typed<PubLeafletBlocksImage.Main> | {
|
|
21
|
+
$type: string;
|
|
22
|
+
};
|
|
23
|
+
/** Nested unordered list items. Mutually exclusive with orderedListChildren; if both are present, children takes precedence. */
|
|
24
|
+
children?: ListItem[];
|
|
25
|
+
orderedListChildren?: PubLeafletBlocksOrderedList.Main;
|
|
26
|
+
}
|
|
27
|
+
export declare function isListItem<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.unorderedList", "listItem">;
|
|
28
|
+
export declare function validateListItem<V>(v: V): ValidationResult<ListItem & V>;
|
|
29
|
+
//# sourceMappingURL=unorderedList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unorderedList.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/blocks/unorderedList.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AACtD,OAAO,KAAK,KAAK,sBAAsB,MAAM,aAAa,CAAA;AAC1D,OAAO,KAAK,KAAK,qBAAqB,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,KAAK,2BAA2B,MAAM,kBAAkB,CAAA;AAMpE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,QAAQ,EAAE,QAAQ,EAAE,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,2CAA2C,CAAA;IACnD,2HAA2H;IAC3H,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,EACH,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,GACjC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,GACnC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,GAClC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,gIAAgI;IAChI,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,mBAAmB,CAAC,EAAE,2BAA2B,CAAC,IAAI,CAAA;CACvD;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
5
|
+
export interface Main {
|
|
6
|
+
$type?: 'pub.leaflet.blocks.website';
|
|
7
|
+
previewImage?: BlobRef;
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
src: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.website", "main">;
|
|
13
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
14
|
+
//# sourceMappingURL=website.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/blocks/website.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,4BAA4B,CAAA;IACpC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
|
|
@@ -1,2 +1,55 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util';
|
|
6
|
+
import type * as PubLeafletBlocksIframe from '../blocks/iframe.js';
|
|
7
|
+
import type * as PubLeafletBlocksText from '../blocks/text.js';
|
|
8
|
+
import type * as PubLeafletBlocksBlockquote from '../blocks/blockquote.js';
|
|
9
|
+
import type * as PubLeafletBlocksHeader from '../blocks/header.js';
|
|
10
|
+
import type * as PubLeafletBlocksImage from '../blocks/image.js';
|
|
11
|
+
import type * as PubLeafletBlocksUnorderedList from '../blocks/unorderedList.js';
|
|
12
|
+
import type * as PubLeafletBlocksOrderedList from '../blocks/orderedList.js';
|
|
13
|
+
import type * as PubLeafletBlocksWebsite from '../blocks/website.js';
|
|
14
|
+
import type * as PubLeafletBlocksMath from '../blocks/math.js';
|
|
15
|
+
import type * as PubLeafletBlocksCode from '../blocks/code.js';
|
|
16
|
+
import type * as PubLeafletBlocksHorizontalRule from '../blocks/horizontalRule.js';
|
|
17
|
+
import type * as PubLeafletBlocksBskyPost from '../blocks/bskyPost.js';
|
|
18
|
+
import type * as PubLeafletBlocksPage from '../blocks/page.js';
|
|
19
|
+
import type * as PubLeafletBlocksPoll from '../blocks/poll.js';
|
|
20
|
+
import type * as PubLeafletBlocksButton from '../blocks/button.js';
|
|
21
|
+
export interface Main {
|
|
22
|
+
$type?: 'pub.leaflet.pages.linearDocument';
|
|
23
|
+
id?: string;
|
|
24
|
+
blocks: Block[];
|
|
25
|
+
}
|
|
26
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.pages.linearDocument", "main">;
|
|
27
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
28
|
+
export interface Block {
|
|
29
|
+
$type?: 'pub.leaflet.pages.linearDocument#block';
|
|
30
|
+
block: $Typed<PubLeafletBlocksIframe.Main> | $Typed<PubLeafletBlocksText.Main> | $Typed<PubLeafletBlocksBlockquote.Main> | $Typed<PubLeafletBlocksHeader.Main> | $Typed<PubLeafletBlocksImage.Main> | $Typed<PubLeafletBlocksUnorderedList.Main> | $Typed<PubLeafletBlocksOrderedList.Main> | $Typed<PubLeafletBlocksWebsite.Main> | $Typed<PubLeafletBlocksMath.Main> | $Typed<PubLeafletBlocksCode.Main> | $Typed<PubLeafletBlocksHorizontalRule.Main> | $Typed<PubLeafletBlocksBskyPost.Main> | $Typed<PubLeafletBlocksPage.Main> | $Typed<PubLeafletBlocksPoll.Main> | $Typed<PubLeafletBlocksButton.Main> | {
|
|
31
|
+
$type: string;
|
|
32
|
+
};
|
|
33
|
+
alignment?: 'lex:pub.leaflet.pages.linearDocument#textAlignLeft' | 'lex:pub.leaflet.pages.linearDocument#textAlignCenter' | 'lex:pub.leaflet.pages.linearDocument#textAlignRight' | 'lex:pub.leaflet.pages.linearDocument#textAlignJustify' | (string & {});
|
|
34
|
+
}
|
|
35
|
+
export declare function isBlock<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.pages.linearDocument", "block">;
|
|
36
|
+
export declare function validateBlock<V>(v: V): ValidationResult<Block & V>;
|
|
37
|
+
export declare const TEXTALIGNLEFT = "pub.leaflet.pages.linearDocument#textAlignLeft";
|
|
38
|
+
export declare const TEXTALIGNCENTER = "pub.leaflet.pages.linearDocument#textAlignCenter";
|
|
39
|
+
export declare const TEXTALIGNRIGHT = "pub.leaflet.pages.linearDocument#textAlignRight";
|
|
40
|
+
export declare const TEXTALIGNJUSTIFY = "pub.leaflet.pages.linearDocument#textAlignJustify";
|
|
41
|
+
export interface Quote {
|
|
42
|
+
$type?: 'pub.leaflet.pages.linearDocument#quote';
|
|
43
|
+
start: Position;
|
|
44
|
+
end: Position;
|
|
45
|
+
}
|
|
46
|
+
export declare function isQuote<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.pages.linearDocument", "quote">;
|
|
47
|
+
export declare function validateQuote<V>(v: V): ValidationResult<Quote & V>;
|
|
48
|
+
export interface Position {
|
|
49
|
+
$type?: 'pub.leaflet.pages.linearDocument#position';
|
|
50
|
+
block: number[];
|
|
51
|
+
offset: number;
|
|
52
|
+
}
|
|
53
|
+
export declare function isPosition<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.pages.linearDocument", "position">;
|
|
54
|
+
export declare function validatePosition<V>(v: V): ValidationResult<Position & V>;
|
|
2
55
|
//# sourceMappingURL=linearDocument.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linearDocument.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/pages/linearDocument.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"linearDocument.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/pages/linearDocument.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,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AC,CAAC,EAAE,CAAC,EAAE,CAAC,+BAEpC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,2CAA2C,CAAA;IACnD,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util';
|
|
6
|
+
/** Annotation of a sub-string within rich text. */
|
|
7
|
+
export interface Main {
|
|
8
|
+
$type?: 'pub.leaflet.richtext.facet';
|
|
9
|
+
index: ByteSlice;
|
|
10
|
+
features: ($Typed<Link> | $Typed<DidMention> | $Typed<AtMention> | $Typed<Code> | $Typed<Highlight> | $Typed<Underline> | $Typed<Strikethrough> | $Typed<Id> | $Typed<Bold> | $Typed<Italic> | $Typed<Footnote> | {
|
|
11
|
+
$type: string;
|
|
12
|
+
})[];
|
|
13
|
+
}
|
|
14
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "main">;
|
|
15
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
16
|
+
/** Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. */
|
|
17
|
+
export interface ByteSlice {
|
|
18
|
+
$type?: 'pub.leaflet.richtext.facet#byteSlice';
|
|
19
|
+
byteStart: number;
|
|
20
|
+
byteEnd: number;
|
|
21
|
+
}
|
|
22
|
+
export declare function isByteSlice<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "byteSlice">;
|
|
23
|
+
export declare function validateByteSlice<V>(v: V): ValidationResult<ByteSlice & V>;
|
|
24
|
+
/** Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. */
|
|
25
|
+
export interface Link {
|
|
26
|
+
$type?: 'pub.leaflet.richtext.facet#link';
|
|
27
|
+
uri: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function isLink<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "link">;
|
|
30
|
+
export declare function validateLink<V>(v: V): ValidationResult<Link & V>;
|
|
31
|
+
/** Facet feature for mentioning a did. */
|
|
32
|
+
export interface DidMention {
|
|
33
|
+
$type?: 'pub.leaflet.richtext.facet#didMention';
|
|
34
|
+
did: string;
|
|
35
|
+
}
|
|
36
|
+
export declare function isDidMention<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "didMention">;
|
|
37
|
+
export declare function validateDidMention<V>(v: V): ValidationResult<DidMention & V>;
|
|
38
|
+
/** Facet feature for mentioning an AT URI. */
|
|
39
|
+
export interface AtMention {
|
|
40
|
+
$type?: 'pub.leaflet.richtext.facet#atMention';
|
|
41
|
+
atURI: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function isAtMention<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "atMention">;
|
|
44
|
+
export declare function validateAtMention<V>(v: V): ValidationResult<AtMention & V>;
|
|
45
|
+
/** Facet feature for inline code. */
|
|
46
|
+
export interface Code {
|
|
47
|
+
$type?: 'pub.leaflet.richtext.facet#code';
|
|
48
|
+
}
|
|
49
|
+
export declare function isCode<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "code">;
|
|
50
|
+
export declare function validateCode<V>(v: V): ValidationResult<Code & V>;
|
|
51
|
+
/** Facet feature for highlighted text. */
|
|
52
|
+
export interface Highlight {
|
|
53
|
+
$type?: 'pub.leaflet.richtext.facet#highlight';
|
|
54
|
+
}
|
|
55
|
+
export declare function isHighlight<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "highlight">;
|
|
56
|
+
export declare function validateHighlight<V>(v: V): ValidationResult<Highlight & V>;
|
|
57
|
+
/** Facet feature for underline markup */
|
|
58
|
+
export interface Underline {
|
|
59
|
+
$type?: 'pub.leaflet.richtext.facet#underline';
|
|
60
|
+
}
|
|
61
|
+
export declare function isUnderline<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "underline">;
|
|
62
|
+
export declare function validateUnderline<V>(v: V): ValidationResult<Underline & V>;
|
|
63
|
+
/** Facet feature for strikethrough markup */
|
|
64
|
+
export interface Strikethrough {
|
|
65
|
+
$type?: 'pub.leaflet.richtext.facet#strikethrough';
|
|
66
|
+
}
|
|
67
|
+
export declare function isStrikethrough<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "strikethrough">;
|
|
68
|
+
export declare function validateStrikethrough<V>(v: V): ValidationResult<Strikethrough & V>;
|
|
69
|
+
/** Facet feature for an identifier. Used for linking to a segment */
|
|
70
|
+
export interface Id {
|
|
71
|
+
$type?: 'pub.leaflet.richtext.facet#id';
|
|
72
|
+
id?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare function isId<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "id">;
|
|
75
|
+
export declare function validateId<V>(v: V): ValidationResult<Id & V>;
|
|
76
|
+
/** Facet feature for bold text */
|
|
77
|
+
export interface Bold {
|
|
78
|
+
$type?: 'pub.leaflet.richtext.facet#bold';
|
|
79
|
+
}
|
|
80
|
+
export declare function isBold<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "bold">;
|
|
81
|
+
export declare function validateBold<V>(v: V): ValidationResult<Bold & V>;
|
|
82
|
+
/** Facet feature for italic text */
|
|
83
|
+
export interface Italic {
|
|
84
|
+
$type?: 'pub.leaflet.richtext.facet#italic';
|
|
85
|
+
}
|
|
86
|
+
export declare function isItalic<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "italic">;
|
|
87
|
+
export declare function validateItalic<V>(v: V): ValidationResult<Italic & V>;
|
|
88
|
+
/** Facet feature for a footnote reference */
|
|
89
|
+
export interface Footnote {
|
|
90
|
+
$type?: 'pub.leaflet.richtext.facet#footnote';
|
|
91
|
+
footnoteId: string;
|
|
92
|
+
contentPlaintext: string;
|
|
93
|
+
contentFacets?: Main[];
|
|
94
|
+
}
|
|
95
|
+
export declare function isFootnote<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "footnote">;
|
|
96
|
+
export declare function validateFootnote<V>(v: V): ValidationResult<Footnote & V>;
|
|
97
|
+
//# sourceMappingURL=facet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"facet.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/pub/leaflet/richtext/facet.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AAMzB,mDAAmD;AACnD,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,4BAA4B,CAAA;IACpC,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,CACN,MAAM,CAAC,IAAI,CAAC,GACZ,MAAM,CAAC,UAAU,CAAC,GAClB,MAAM,CAAC,SAAS,CAAC,GACjB,MAAM,CAAC,IAAI,CAAC,GACZ,MAAM,CAAC,SAAS,CAAC,GACjB,MAAM,CAAC,SAAS,CAAC,GACjB,MAAM,CAAC,aAAa,CAAC,GACrB,MAAM,CAAC,EAAE,CAAC,GACV,MAAM,CAAC,IAAI,CAAC,GACZ,MAAM,CAAC,M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