@cntrl-site/sdk-nextjs 0.14.6 → 0.15.0

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
@@ -86,7 +86,7 @@ const Item = ({ item, sectionId }) => {
86
86
  .item-${item.id} {
87
87
  position: ${sticky ? 'sticky' : 'absolute'};
88
88
  width: ${sizingAxis.x === sdk_1.ArticleItemSizingType.Manual ? `${area.width * 100}vw` : 'max-content'};
89
- height: ${sizingAxis.y === sdk_1.ArticleItemSizingType.Manual ? `w${area.height * 100}vw` : 'unset'};
89
+ height: ${sizingAxis.y === sdk_1.ArticleItemSizingType.Manual ? `${area.height * 100}vw` : 'unset'};
90
90
  transform: scale(${scale});
91
91
  top: ${sticky ? `${(0, getAnchoredItemTop_1.getAnchoredItemTop)(area.top - sticky.from, sectionHeight, area.anchorSide)}` : 0};
92
92
  transform-origin: ${ScaleAnchorMap_1.ScaleAnchorMap[scaleAnchor]};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk-nextjs",
3
- "version": "0.14.6",
3
+ "version": "0.15.0",
4
4
  "description": "SDK for Next.js",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/index.ts",
@@ -113,7 +113,7 @@ export const Item: FC<ItemProps<TArticleItemAny>> = ({ item, sectionId}) => {
113
113
  .item-${item.id} {
114
114
  position: ${sticky ? 'sticky' : 'absolute'};
115
115
  width: ${sizingAxis.x === SizingType.Manual ? `${area.width * 100}vw` : 'max-content'};
116
- height: ${sizingAxis.y === SizingType.Manual ? `w${area.height * 100}vw` : 'unset'};
116
+ height: ${sizingAxis.y === SizingType.Manual ? `${area.height * 100}vw` : 'unset'};
117
117
  transform: scale(${scale});
118
118
  top: ${sticky ? `${getAnchoredItemTop(area.top - sticky.from, sectionHeight, area.anchorSide)}` : 0};
119
119
  transform-origin: ${ScaleAnchorMap[scaleAnchor]};