unframer 2.16.2 → 2.17.1

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.
package/src/react.tsx CHANGED
@@ -172,20 +172,19 @@ export const WithFramerBreakpoints = forwardRef(function WithFramerBreakpoints<
172
172
  }
173
173
  }
174
174
  const parts = [...variants.values()].map(
175
- ({ className, breakpoints, variant }) => {
175
+ ({ className, breakpoints, variant }, i) => {
176
176
  const shouldShow =
177
177
  !currentBreakpoint || breakpoints.includes(currentBreakpoint)
178
178
  if (!shouldShow) {
179
179
  return null
180
180
  }
181
181
  return (
182
- <div key={variant} className={className}>
182
+ <div key={i} className={className}>
183
183
  {/* @ts-ignore */}
184
184
  <Component
185
185
  ref={ref}
186
- key={variant}
187
186
  // LayoutGroup is used internally
188
- layoutId={id + variant}
187
+ layoutId={variant}
189
188
  // layoutDependency={id}
190
189
  // layoutId={id + variant}
191
190
  // layoutId={breakpointName}
@@ -273,7 +272,6 @@ export function AdaptedLink({
273
272
  children,
274
273
  ...rest
275
274
  }) {
276
-
277
275
  const onlyForFramer = { children, nodeId, openInNewTab, smoothScroll }
278
276
  const routes = React.useContext(routesContext)
279
277
  const webPageId = href?.webPageId as string