@apolitical/component-library 6.0.3-ac.0 → 6.0.3-ac.2

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.
@@ -8,6 +8,7 @@ export interface NodeTypes {
8
8
  [Formatting.ol]: string;
9
9
  [Formatting.li]: string;
10
10
  [Formatting.mention]: string;
11
+ [Formatting.h3]: string;
11
12
  [Formatting.heading]: {
12
13
  1: string;
13
14
  2: string;
@@ -39,9 +40,10 @@ export declare enum MdastNodes {
39
40
  delete = "delete",
40
41
  inlineCode = "inlineCode",
41
42
  thematicBreak = "thematicBreak",
42
- text = "text"
43
+ text = "text",
44
+ h3 = "heading_three"
43
45
  }
44
- export type MdastNodeType = MdastNodes.paragraph | MdastNodes.heading | MdastNodes.list | MdastNodes.listItem | MdastNodes.link | MdastNodes.mention | MdastNodes.image | MdastNodes.blockquote | MdastNodes.code | MdastNodes.html | MdastNodes.emphasis | MdastNodes.strong | MdastNodes.delete | MdastNodes.inlineCode | MdastNodes.thematicBreak | MdastNodes.text;
46
+ export type MdastNodeType = MdastNodes.paragraph | MdastNodes.heading | MdastNodes.list | MdastNodes.listItem | MdastNodes.link | MdastNodes.mention | MdastNodes.image | MdastNodes.blockquote | MdastNodes.code | MdastNodes.html | MdastNodes.emphasis | MdastNodes.strong | MdastNodes.delete | MdastNodes.inlineCode | MdastNodes.thematicBreak | MdastNodes.text | MdastNodes.h3;
45
47
  export declare const defaultNodeTypes: NodeTypes;
46
48
  export interface LeafType {
47
49
  text: string;
@@ -49,6 +51,7 @@ export interface LeafType {
49
51
  [Formatting.bold]?: boolean;
50
52
  [Formatting.italic]?: boolean;
51
53
  [Formatting.code]?: boolean;
54
+ [Formatting.h3]?: boolean;
52
55
  parentType?: string;
53
56
  }
54
57
  export interface BlockType {
@@ -83,6 +86,7 @@ export interface InputNodeTypes {
83
86
  [Marks.code]: string;
84
87
  [Formatting.hr]: string;
85
88
  [Formatting.image]: string;
89
+ [Formatting.h3]: string;
86
90
  }
87
91
  type RecursivePartial<T> = {
88
92
  [P in keyof T]?: RecursivePartial<T[P]>;
@@ -86,7 +86,7 @@ export declare enum Formatting {
86
86
  ul = "ul_list",
87
87
  strikethrough = "strikeThrough",
88
88
  span = "span",
89
- h3 = "h3"
89
+ h3 = "heading_three"
90
90
  }
91
91
  export declare enum Marks {
92
92
  delete = "delete_mark",
@@ -101,9 +101,9 @@ export interface BaseProps {
101
101
  };
102
102
  [key: string]: unknown;
103
103
  }
104
- export type BlockOptionType = Formatting.blockquote | Formatting.link | Formatting.li | Formatting.mention | Formatting.ol | Formatting.ul | Formatting.paragraph | Formatting.span;
104
+ export type BlockOptionType = Formatting.blockquote | Formatting.link | Formatting.li | Formatting.mention | Formatting.ol | Formatting.ul | Formatting.paragraph | Formatting.span | Formatting.h3;
105
105
  export interface TypeElement extends BaseElement {
106
- type: BlockOptionType;
106
+ type: BlockOptionType | MarkOptionType;
107
107
  }
108
108
  export interface MentionElement extends BaseElement {
109
109
  type: Formatting.mention;