@cntrl-site/sdk-nextjs 1.4.3 → 1.4.4

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,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
+ </state>
5
+ </component>
@@ -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>
@@ -78,7 +78,7 @@ const Item = ({ item, sectionId, articleHeight, isParentVisible = true, isInGrou
78
78
  }
79
79
  const itemArticleOffset = sectionTop / window.innerWidth + stickyTop;
80
80
  const maxStickyTo = articleHeight - itemArticleOffset - height;
81
- const end = sticky.to
81
+ const end = sticky.to !== undefined
82
82
  ? Math.min(maxStickyTo, sticky.to)
83
83
  : articleHeight - itemArticleOffset - height;
84
84
  const wrapperHeight = end - sticky.from + height;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk-nextjs",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "SDK for Next.js",
5
5
  "author": "arsen@momdesign.nyc",
6
6
  "license": "MIT",
@@ -107,7 +107,7 @@ export const Item: FC<ItemWrapperProps> = ({ item, sectionId, articleHeight, isP
107
107
  }
108
108
  const itemArticleOffset = sectionTop / window.innerWidth + stickyTop;
109
109
  const maxStickyTo = articleHeight - itemArticleOffset - height;
110
- const end = sticky.to
110
+ const end = sticky.to !== undefined
111
111
  ? Math.min(maxStickyTo, sticky.to)
112
112
  : articleHeight - itemArticleOffset - height;
113
113
  const wrapperHeight = end - sticky.from + height;
Binary file
Binary file