Skip to content

Commit

Permalink
change rename fallback text to match capi content type
Browse files Browse the repository at this point in the history
  • Loading branch information
leannecornish-ft committed Sep 3, 2024
1 parent 92ac385 commit 5280689
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,8 @@ interface Table extends Parent {
### CustomCodeComponent

```ts
interface FallbackText extends Node {
type: 'fallback-text'
interface CccFallbackText extends Node {
type: 'ccc-fallback-text'
children: Paragraph[]
}

Expand All @@ -746,7 +746,7 @@ interface CustomCodeComponent extends Node {
external attributesLastModified: string
/** Configuration data to be passed to the component. */
external attributes: Attributes
external children: (ImageSet | FallbackText)[]
external children: (ImageSet | CccFallbackText)[]
}
```

Expand Down
22 changes: 11 additions & 11 deletions content-tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ export declare namespace ContentTree {
children: [TableCaption, TableBody, TableFooter] | [TableCaption, TableBody] | [TableBody, TableFooter] | [TableBody];
columnSettings: TableColumnSettings[];
}
interface FallbackText extends Node {
type: 'fallback-text';
interface CccFallbackText extends Node {
type: 'ccc-fallback-text';
children: Paragraph[];
}
type Attributes = {
Expand All @@ -276,7 +276,7 @@ export declare namespace ContentTree {
attributesLastModified: string;
/** Configuration data to be passed to the component. */
attributes: Attributes;
children: (ImageSet | FallbackText)[];
children: (ImageSet | CccFallbackText)[];
}
namespace full {
type BodyBlock = Paragraph | Heading | ImageSet | BigNumber | CustomCodeComponent | Layout | List | Blockquote | Pullquote | ScrollyBlock | ThematicBreak | Table | Recommended | Tweet | Video | YoutubeVideo;
Expand Down Expand Up @@ -532,8 +532,8 @@ export declare namespace ContentTree {
children: [TableCaption, TableBody, TableFooter] | [TableCaption, TableBody] | [TableBody, TableFooter] | [TableBody];
columnSettings: TableColumnSettings[];
}
interface FallbackText extends Node {
type: 'fallback-text';
interface CccFallbackText extends Node {
type: 'ccc-fallback-text';
children: Paragraph[];
}
type Attributes = {
Expand All @@ -556,7 +556,7 @@ export declare namespace ContentTree {
attributesLastModified: string;
/** Configuration data to be passed to the component. */
attributes: Attributes;
children: (ImageSet | FallbackText)[];
children: (ImageSet | CccFallbackText)[];
}
}
namespace transit {
Expand Down Expand Up @@ -808,8 +808,8 @@ export declare namespace ContentTree {
children: [TableCaption, TableBody, TableFooter] | [TableCaption, TableBody] | [TableBody, TableFooter] | [TableBody];
columnSettings: TableColumnSettings[];
}
interface FallbackText extends Node {
type: 'fallback-text';
interface CccFallbackText extends Node {
type: 'ccc-fallback-text';
children: Paragraph[];
}
type Attributes = {
Expand Down Expand Up @@ -1080,8 +1080,8 @@ export declare namespace ContentTree {
children: [TableCaption, TableBody, TableFooter] | [TableCaption, TableBody] | [TableBody, TableFooter] | [TableBody];
columnSettings: TableColumnSettings[];
}
interface FallbackText extends Node {
type: 'fallback-text';
interface CccFallbackText extends Node {
type: 'ccc-fallback-text';
children: Paragraph[];
}
type Attributes = {
Expand All @@ -1104,7 +1104,7 @@ export declare namespace ContentTree {
attributesLastModified?: string;
/** Configuration data to be passed to the component. */
attributes?: Attributes;
children?: (ImageSet | FallbackText)[];
children?: (ImageSet | CccFallbackText)[];
}
}
}
34 changes: 17 additions & 17 deletions schemas/content-tree.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,22 @@
},
"type": "object"
},
"ContentTree.full.CccFallbackText": {
"properties": {
"children": {
"items": {
"$ref": "#/definitions/ContentTree.full.Paragraph"
},
"type": "array"
},
"data": {},
"type": {
"const": "ccc-fallback-text",
"type": "string"
}
},
"type": "object"
},
"ContentTree.full.CustomCodeComponent": {
"properties": {
"attributes": {
Expand All @@ -159,7 +175,7 @@
"$ref": "#/definitions/ContentTree.full.ImageSet"
},
{
"$ref": "#/definitions/ContentTree.full.FallbackText"
"$ref": "#/definitions/ContentTree.full.CccFallbackText"
}
]
},
Expand Down Expand Up @@ -210,22 +226,6 @@
},
"type": "object"
},
"ContentTree.full.FallbackText": {
"properties": {
"children": {
"items": {
"$ref": "#/definitions/ContentTree.full.Paragraph"
},
"type": "array"
},
"data": {},
"type": {
"const": "fallback-text",
"type": "string"
}
},
"type": "object"
},
"ContentTree.full.Heading": {
"properties": {
"children": {
Expand Down

0 comments on commit 5280689

Please sign in to comment.