Skip to content

Commit 9c3c5cb

Browse files
committed
InNumbers component interface
1 parent af7397a commit 9c3c5cb

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,19 @@ interface CustomCodeComponent extends Node {
763763
- The basic interface in Spark to make reference to this system above (eg. the git repo URL or a public S3 bucket), and provide some data for it if necessary. This will be the Custom Component storyblock.
764764
- The data Spark receives from entering a specific ID will be used to render dynamic fields (the `attributes`).
765765

766+
### InNumbers
767+
768+
```ts
769+
/**
770+
* InNumbers represents a set of numbers with related descriptions
771+
*/
772+
interface InNumbers extends Parent {
773+
type: "in-numbers"
774+
/** The title for the InNumbers */
775+
title: string
776+
children: [BigNumber, BigNumber, BigNumber]
777+
}
778+
```
766779

767780
## License
768781

content-tree.d.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,15 @@ export declare namespace ContentTree {
279279
/** Configuration data to be passed to the component. */
280280
attributes: CustomCodeComponentAttributes;
281281
}
282+
interface InNumbersNumber extends Node {
283+
type: "in-numbers-number";
284+
numberLabel: string;
285+
description: string;
286+
}
287+
interface InNumbers extends Parent {
288+
type: "in-numbers";
289+
children: [Heading, InNumbersNumber, InNumbersNumber?, InNumbersNumber?];
290+
}
282291
namespace full {
283292
type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text;
284293
type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width";
@@ -560,6 +569,15 @@ export declare namespace ContentTree {
560569
/** Configuration data to be passed to the component. */
561570
attributes: CustomCodeComponentAttributes;
562571
}
572+
interface InNumbersNumber extends Node {
573+
type: "in-numbers-number";
574+
numberLabel: string;
575+
description: string;
576+
}
577+
interface InNumbers extends Parent {
578+
type: "in-numbers";
579+
children: [Heading, InNumbersNumber, InNumbersNumber?, InNumbersNumber?];
580+
}
563581
}
564582
namespace transit {
565583
type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text;
@@ -827,6 +845,15 @@ export declare namespace ContentTree {
827845
/** How the component should be presented in the article page according to the column layout system */
828846
layoutWidth: LayoutWidth;
829847
}
848+
interface InNumbersNumber extends Node {
849+
type: "in-numbers-number";
850+
numberLabel: string;
851+
description: string;
852+
}
853+
interface InNumbers extends Parent {
854+
type: "in-numbers";
855+
children: [Heading, InNumbersNumber, InNumbersNumber?, InNumbersNumber?];
856+
}
830857
}
831858
namespace loose {
832859
type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo | Text;
@@ -1109,5 +1136,14 @@ export declare namespace ContentTree {
11091136
/** Configuration data to be passed to the component. */
11101137
attributes?: CustomCodeComponentAttributes;
11111138
}
1139+
interface InNumbersNumber extends Node {
1140+
type: "in-numbers-number";
1141+
numberLabel: string;
1142+
description: string;
1143+
}
1144+
interface InNumbers extends Parent {
1145+
type: "in-numbers";
1146+
children: [Heading, InNumbersNumber, InNumbersNumber?, InNumbersNumber?];
1147+
}
11121148
}
11131149
}

0 commit comments

Comments
 (0)