Skip to content

Commit

Permalink
refactor: make attributes specific to ccc
Browse files Browse the repository at this point in the history
  • Loading branch information
leannecornish-ft committed Sep 11, 2024
1 parent 228232b commit 84847aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ interface Table extends Parent {
### CustomCodeComponent

```ts
type Attributes = {
type CustomCodeComponentAttributes = {
[key: string]: string | boolean | undefined
}

Expand All @@ -738,7 +738,7 @@ interface CustomCodeComponent extends Node {
/** Last date-time when the attributes for this block were modified, in ISO-8601 format. */
external attributesLastModified: string
/** Configuration data to be passed to the component. */
external attributes: Attributes
external attributes: CustomCodeComponentAttributes
}
```

Expand Down
14 changes: 7 additions & 7 deletions content-tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export declare namespace ContentTree {
children: [TableCaption, TableBody, TableFooter] | [TableCaption, TableBody] | [TableBody, TableFooter] | [TableBody];
columnSettings: TableColumnSettings[];
}
type Attributes = {
type CustomCodeComponentAttributes = {
[key: string]: string | boolean | undefined;
};
interface CustomCodeComponent extends Node {
Expand All @@ -269,7 +269,7 @@ export declare namespace ContentTree {
/** Last date-time when the attributes for this block were modified, in ISO-8601 format. */
attributesLastModified: string;
/** Configuration data to be passed to the component. */
attributes: Attributes;
attributes: CustomCodeComponentAttributes;
}
namespace full {
type BodyBlock = Paragraph | Heading | ImageSet | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo;
Expand Down Expand Up @@ -525,7 +525,7 @@ export declare namespace ContentTree {
children: [TableCaption, TableBody, TableFooter] | [TableCaption, TableBody] | [TableBody, TableFooter] | [TableBody];
columnSettings: TableColumnSettings[];
}
type Attributes = {
type CustomCodeComponentAttributes = {
[key: string]: string | boolean | undefined;
};
interface CustomCodeComponent extends Node {
Expand All @@ -542,7 +542,7 @@ export declare namespace ContentTree {
/** Last date-time when the attributes for this block were modified, in ISO-8601 format. */
attributesLastModified: string;
/** Configuration data to be passed to the component. */
attributes: Attributes;
attributes: CustomCodeComponentAttributes;
}
}
namespace transit {
Expand Down Expand Up @@ -794,7 +794,7 @@ export declare namespace ContentTree {
children: [TableCaption, TableBody, TableFooter] | [TableCaption, TableBody] | [TableBody, TableFooter] | [TableBody];
columnSettings: TableColumnSettings[];
}
type Attributes = {
type CustomCodeComponentAttributes = {
[key: string]: string | boolean | undefined;
};
interface CustomCodeComponent extends Node {
Expand Down Expand Up @@ -1060,7 +1060,7 @@ export declare namespace ContentTree {
children: [TableCaption, TableBody, TableFooter] | [TableCaption, TableBody] | [TableBody, TableFooter] | [TableBody];
columnSettings: TableColumnSettings[];
}
type Attributes = {
type CustomCodeComponentAttributes = {
[key: string]: string | boolean | undefined;
};
interface CustomCodeComponent extends Node {
Expand All @@ -1077,7 +1077,7 @@ export declare namespace ContentTree {
/** Last date-time when the attributes for this block were modified, in ISO-8601 format. */
attributesLastModified?: string;
/** Configuration data to be passed to the component. */
attributes?: Attributes;
attributes?: CustomCodeComponentAttributes;
}
}
}

0 comments on commit 84847aa

Please sign in to comment.