@cntrl-site/sdk-nextjs 0.28.1 → 0.28.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="HtmlUnknownAttribute" enabled="true" level="WARNING" enabled_by_default="true">
5
+ <option name="myValues">
6
+ <value>
7
+ <list size="1">
8
+ <item index="0" class="java.lang.String" itemvalue="jsx" />
9
+ </list>
10
+ </value>
11
+ </option>
12
+ <option name="myCustomValuesEnabled" value="true" />
13
+ </inspection_tool>
14
+ </profile>
15
+ </component>
@@ -31,7 +31,8 @@ class RichTextConverter {
31
31
  const content = text.slice(block.start, block.end);
32
32
  const entities = (_a = block.entities.sort((a, b) => a.start - b.start)) !== null && _a !== void 0 ? _a : [];
33
33
  if (content.length === 0) {
34
- root.push((0, jsx_runtime_1.jsx)("div", { className: `rt_${richText.id}_br_${blockIndex}`, children: (0, jsx_runtime_1.jsx)("br", {}) }));
34
+ const id = `rt_${richText.id}_br_${blockIndex}`;
35
+ root.push((0, jsx_runtime_1.jsx)("div", { className: id, children: (0, jsx_runtime_1.jsx)("br", {}) }, id));
35
36
  layouts.forEach(l => {
36
37
  const lhForLayout = currentLineHeight[l.id];
37
38
  if (lhForLayout === undefined)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk-nextjs",
3
- "version": "0.28.1",
3
+ "version": "0.28.2",
4
4
  "description": "SDK for Next.js",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/index.ts",
@@ -59,7 +59,8 @@ export class RichTextConverter {
59
59
  const content = text.slice(block.start, block.end);
60
60
  const entities = block.entities!.sort((a, b) => a.start - b.start) ?? [];
61
61
  if (content.length === 0) {
62
- root.push(<div className={`rt_${richText.id}_br_${blockIndex}`}><br /></div>);
62
+ const id = `rt_${richText.id}_br_${blockIndex}`;
63
+ root.push(<div key={id} className={id}><br /></div>);
63
64
  layouts.forEach(l => {
64
65
  const lhForLayout = currentLineHeight[l.id];
65
66
  if (lhForLayout === undefined) return;