From 84847aa0a1714e30d7350cce606ce548697e1b35 Mon Sep 17 00:00:00 2001 From: "leanne.cornish" Date: Wed, 11 Sep 2024 10:19:12 +0100 Subject: [PATCH] refactor: make attributes specific to ccc --- README.md | 4 ++-- content-tree.d.ts | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b3c4d30..d474869 100644 --- a/README.md +++ b/README.md @@ -720,7 +720,7 @@ interface Table extends Parent { ### CustomCodeComponent ```ts -type Attributes = { +type CustomCodeComponentAttributes = { [key: string]: string | boolean | undefined } @@ -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 } ``` diff --git a/content-tree.d.ts b/content-tree.d.ts index 99464a0..9d99153 100644 --- a/content-tree.d.ts +++ b/content-tree.d.ts @@ -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 { @@ -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; @@ -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 { @@ -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 { @@ -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 { @@ -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 { @@ -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; } } }