@cntrl-site/sdk-nextjs 0.8.7 → 0.8.8

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>
Binary file
Binary file
@@ -153,7 +153,7 @@ class RichTextConverter {
153
153
  }
154
154
  groupEntities(entities, styleGroups) {
155
155
  const entitiesGroups = [];
156
- if (!styleGroups)
156
+ if (!styleGroups || styleGroups.length === 0)
157
157
  return;
158
158
  if (entities.length === 0) {
159
159
  entitiesGroups.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk-nextjs",
3
- "version": "0.8.7",
3
+ "version": "0.8.8",
4
4
  "description": "SDK for Next.js",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/index.js",
@@ -185,7 +185,7 @@ export class RichTextConverter {
185
185
 
186
186
  private groupEntities(entities: RichText.Entity[], styleGroups?: StyleGroup[]): EntitiesGroup[] | undefined {
187
187
  const entitiesGroups: EntitiesGroup[] = [];
188
- if (!styleGroups) return;
188
+ if (!styleGroups || styleGroups.length === 0) return;
189
189
  if (entities.length === 0) {
190
190
  entitiesGroups.push({
191
191
  stylesGroup: styleGroups,
Binary file
Binary file