@cntrl-site/sdk-nextjs 0.7.1 → 0.7.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.
Binary file
@@ -13,9 +13,6 @@ const useItemSticky = (top, parentOffsetTop, item) => {
13
13
  const layoutId = (0, useCurrentLayout_1.useCurrentLayout)();
14
14
  const sticky = (0, react_1.useMemo)(() => item.layoutParams[layoutId].sticky, [layoutId]);
15
15
  const stickyManager = (0, react_1.useMemo)(() => new StickyManager_1.StickyManager(sticky), [sticky]);
16
- (0, react_1.useEffect)(() => {
17
- setAdjustedTop(top);
18
- }, [layoutId, top]);
19
16
  const handleSticky = (0, react_1.useCallback)((scroll) => {
20
17
  setIsFixed(stickyManager.getIsSticky(scroll));
21
18
  setAdjustedTop(stickyManager.getPosition(scroll, top, parentOffsetTop));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk-nextjs",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "SDK for Next.js",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/index.js",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "homepage": "https://github.com/cntrl-site/sdk-nextjs#readme",
23
23
  "dependencies": {
24
- "@cntrl-site/sdk": "^0.6.2",
24
+ "@cntrl-site/sdk": "^0.6.3",
25
25
  "html-react-parser": "^3.0.1",
26
26
  "styled-jsx": "^5.0.2"
27
27
  },
@@ -12,10 +12,6 @@ export const useItemSticky = (top: number, parentOffsetTop: number, item: TArtic
12
12
  const sticky = useMemo(() => item.layoutParams[layoutId].sticky, [layoutId]);
13
13
  const stickyManager = useMemo(() => new StickyManager(sticky), [sticky]);
14
14
 
15
- useEffect(() => {
16
- setAdjustedTop(top);
17
- }, [layoutId, top]);
18
-
19
15
  const handleSticky = useCallback((scroll: number) => {
20
16
  setIsFixed(stickyManager.getIsSticky(scroll));
21
17
  setAdjustedTop(stickyManager.getPosition(
@@ -1,15 +0,0 @@
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