@buildinams/react-storyblok
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -75,6 +75,6 @@ "use strict"; | ||
return null; | ||
const { _editable } = item, itemRest = __rest(item, ["_editable"]); | ||
const { _uid, _editable } = item, itemRest = __rest(item, ["_uid", "_editable"]); | ||
const containerSpread = (0, useStoryblokPreviewSpread_1.useStoryblokPreviewSpread)(_editable); | ||
const additionalItemProps = propsPerItem === null || propsPerItem === void 0 ? void 0 : propsPerItem(item, index); | ||
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ index: index, containerSpread: containerSpread }, propsRest, itemRest, additionalItemProps), `${item.component}-${index}`)); | ||
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ index: index }, propsRest, itemRest, additionalItemProps, { containerSpread: containerSpread }), _uid || `${item.component}-${index}`)); | ||
}) })); | ||
@@ -81,0 +81,0 @@ }; |
@@ -121,6 +121,5 @@ import { ISbCache, ISbComponentType, ISbStoriesParams, ISbStoryData, ISbStoryParams } from "storyblok-js-client"; | ||
export interface Item { | ||
_editable?: string; | ||
_uid?: string; | ||
slug: string; | ||
component: string; | ||
_editable: string; | ||
} |
{ | ||
"name": "@buildinams/react-storyblok", | ||
"description": "Opinionated Reactjs Storyblok wrapper", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Build in Amsterdam <development@buildinamsterdam.com> (https://www.buildinamsterdam.com/)", |
@@ -208,6 +208,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
export interface Item { | ||
_editable?: string; | ||
_uid?: string; | ||
slug: string; | ||
component: string; | ||
_editable: string; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
107604
2034