@alpaca-headless/alpaca-headless 1.0.3721 → 1.0.3723

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.
@@ -53,7 +53,7 @@ export function Picture(_a) {
53
53
  if (!mediaParams || !((sources === null || sources === void 0 ? void 0 : sources.length) && !video))
54
54
  return defaultImg;
55
55
  else {
56
- return (_jsxs("picture", Object.assign({}, otherProps, { children: [sources === null || sources === void 0 ? void 0 : sources.map((source) => (_jsx("source", Object.assign({}, getSourceAttrs(variants, mediaParams[source], field.descriptor ? true : false, source, defaultParams))))), defaultImg] })));
56
+ return (_jsxs("picture", Object.assign({}, otherProps, { children: [sources === null || sources === void 0 ? void 0 : sources.map((source, index) => (_jsx("source", Object.assign({}, getSourceAttrs(variants, mediaParams[source], field.descriptor ? true : false, source, defaultParams)), index))), defaultImg] })));
57
57
  }
58
58
  };
59
59
  const picture = (_jsxs(_Fragment, { children: [renderPicture(), renderJsonLinkedData && !video ? (_jsx("script", { type: "application/ld+json", dangerouslySetInnerHTML: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpaca-headless/alpaca-headless",
3
- "version": "1.0.3721",
3
+ "version": "1.0.3723",
4
4
  "type": "module",
5
5
  "description": "Alpaca Headless",
6
6
  "main": "dist/index.js",
@@ -98,8 +98,9 @@ export function Picture({
98
98
  else {
99
99
  return (
100
100
  <picture {...otherProps}>
101
- {sources?.map((source) => (
101
+ {sources?.map((source, index) => (
102
102
  <source
103
+ key={index}
103
104
  {...getSourceAttrs(
104
105
  variants,
105
106
  mediaParams[source],