Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,28 @@ interface CustomCodeComponent extends Node {
- 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.
- The data Spark receives from entering a specific ID will be used to render dynamic fields (the `attributes`).

### InNumbers

```ts
/**
* A definition has a term and a related description. It is used to describe a term.
*/
interface Definition extends Node {
type: "definition"
term: string
description: string
}

/**
* InNumbers represents a set of numbers with related descriptions.
*/
interface InNumbers extends Parent {
type: "in-numbers"
/** The title for the InNumbers */
title?: string
children: [Definition, Definition, Definition]
}
```

## License

Expand Down
68 changes: 68 additions & 0 deletions content-tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,23 @@ export declare namespace ContentTree {
/** Configuration data to be passed to the component. */
attributes: CustomCodeComponentAttributes;
}
/**
* A definition has a term and a related description. It is used to describe a term.
*/
interface Definition extends Node {
type: "definition";
term: string;
description: string;
}
/**
* InNumbers represents a set of numbers with related descriptions.
*/
interface InNumbers extends Parent {
type: "in-numbers";
/** The title for the InNumbers */
title?: string;
children: [Definition, Definition, Definition];
}
namespace full {
type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text;
type LayoutWidth = "auto" | "in-line" | "inset-left" | "inset-right" | "full-bleed" | "full-grid" | "mid-grid" | "full-width";
Expand Down Expand Up @@ -572,6 +589,23 @@ export declare namespace ContentTree {
/** Configuration data to be passed to the component. */
attributes: CustomCodeComponentAttributes;
}
/**
* A definition has a term and a related description. It is used to describe a term.
*/
interface Definition extends Node {
type: "definition";
term: string;
description: string;
}
/**
* InNumbers represents a set of numbers with related descriptions.
*/
interface InNumbers extends Parent {
type: "in-numbers";
/** The title for the InNumbers */
title?: string;
children: [Definition, Definition, Definition];
}
}
namespace transit {
type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text;
Expand Down Expand Up @@ -845,6 +879,23 @@ export declare namespace ContentTree {
/** How the component should be presented in the article page according to the column layout system */
layoutWidth: LayoutWidth;
}
/**
* A definition has a term and a related description. It is used to describe a term.
*/
interface Definition extends Node {
type: "definition";
term: string;
description: string;
}
/**
* InNumbers represents a set of numbers with related descriptions.
*/
interface InNumbers extends Parent {
type: "in-numbers";
/** The title for the InNumbers */
title?: string;
children: [Definition, Definition, Definition];
}
}
namespace loose {
type BodyBlock = Paragraph | Heading | ImageSet | Flourish | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | RecommendedList | Tweet | Video | YoutubeVideo | Text;
Expand Down Expand Up @@ -1133,5 +1184,22 @@ export declare namespace ContentTree {
/** Configuration data to be passed to the component. */
attributes?: CustomCodeComponentAttributes;
}
/**
* A definition has a term and a related description. It is used to describe a term.
*/
interface Definition extends Node {
type: "definition";
term: string;
description: string;
}
/**
* InNumbers represents a set of numbers with related descriptions.
*/
interface InNumbers extends Parent {
type: "in-numbers";
/** The title for the InNumbers */
title?: string;
children: [Definition, Definition, Definition];
}
}
}