Skip to content

Commit bcfe213

Browse files
committed
fix default text alignment
1 parent b8722ae commit bcfe213

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @code.store/arcxp-sdk-ts
22

3+
## 4.40.2
4+
5+
### Patch Changes
6+
7+
- fix default text alignment
8+
39
## 4.40.1
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code.store/arcxp-sdk-ts",
3-
"version": "4.40.1",
3+
"version": "4.40.2",
44
"description": "A strongly typed set of ArcXP API's and utilities reduce the amount of work required to develop with ArcXP, starting with reducing the boilerplate code you have to write.",
55
"type": "commonjs",
66
"main": "./dist/index.js",

src/content-elements/content-elements.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export const ContentElement = {
77
type: 'divider' as const,
88
};
99
},
10-
text: (content: string, alignment: Alignment = 'left') => {
10+
text: (content: string, alignment: Alignment | null = 'left') => {
1111
return {
1212
type: 'text' as const,
1313
content,
14-
alignment,
14+
alignment: alignment || undefined,
1515
};
1616
},
1717
quote: (items: CElement[], citation = '', subtype: 'blockquote' | 'pullquote' = 'pullquote') => {

0 commit comments

Comments
 (0)