vue-datocms 8.1.6 → 8.1.7

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/dist/index.cjs.js CHANGED
@@ -1469,6 +1469,7 @@ const VideoPlayer = vue.defineComponent({
1469
1469
  ]);
1470
1470
  import('@mux/mux-player');
1471
1471
  const muxPlayerRef = vue.ref();
1472
+ const { alt } = data;
1472
1473
  const computedProps = __spreadProps$2(__spreadValues$2({}, useVideoPlayer({ data })), {
1473
1474
  disableCookies,
1474
1475
  disableTracking,
@@ -1477,7 +1478,8 @@ const VideoPlayer = vue.defineComponent({
1477
1478
  return {
1478
1479
  muxPlayerRef,
1479
1480
  computedProps,
1480
- otherProps
1481
+ otherProps,
1482
+ alt
1481
1483
  };
1482
1484
  },
1483
1485
  mounted() {
@@ -1562,7 +1564,8 @@ const VideoPlayer = vue.defineComponent({
1562
1564
  render() {
1563
1565
  return vue.h("mux-player", __spreadValues$2(__spreadValues$2({
1564
1566
  ref: "muxPlayerRef",
1565
- "stream-type": "on-demand"
1567
+ "stream-type": "on-demand",
1568
+ "data-datocms-content-link-source": this.alt
1566
1569
  }, toHTMLAttrs(this.computedProps)), toHTMLAttrs(this.otherProps)));
1567
1570
  }
1568
1571
  });
package/dist/index.d.ts CHANGED
@@ -866,6 +866,8 @@ type Possibly<T> = Maybe$1<T> | undefined;
866
866
  type Video = {
867
867
  /** Title attribute (`title`) for the video */
868
868
  title?: Possibly<string>;
869
+ /** Alt attribute used for content link integration (passed as data-datocms-content-link-source) */
870
+ alt?: Possibly<string>;
869
871
  /** The height of the video */
870
872
  height?: Possibly<number>;
871
873
  /** The width of the video */
@@ -1212,6 +1214,7 @@ declare const VideoPlayer: vue.DefineComponent<{
1212
1214
  onCuePointChange: ((...args: any[]) => any) | undefined;
1213
1215
  onCuePointsChange: ((...args: any[]) => any) | undefined;
1214
1216
  };
1217
+ alt: Possibly<string>;
1215
1218
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("error" | "seeking" | "ended" | "pause" | "play" | "abort" | "canPlay" | "canPlayThrough" | "emptied" | "loadStart" | "loadedData" | "loadedMetadata" | "progress" | "durationChange" | "volumeChange" | "rateChange" | "resize" | "waiting" | "playing" | "timeUpdate" | "seeked" | "stalled" | "suspend" | "cuePointChange" | "cuePointsChange")[], "error" | "seeking" | "ended" | "pause" | "play" | "abort" | "canPlay" | "canPlayThrough" | "emptied" | "loadStart" | "loadedData" | "loadedMetadata" | "progress" | "durationChange" | "volumeChange" | "rateChange" | "resize" | "waiting" | "playing" | "timeUpdate" | "seeked" | "stalled" | "suspend" | "cuePointChange" | "cuePointsChange", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1216
1219
  _hlsConfig: {
1217
1220
  type: PropType<MuxPlayerElement["_hlsConfig"]>;
@@ -1470,6 +1470,7 @@ const VideoPlayer = defineComponent({
1470
1470
  ]);
1471
1471
  import('@mux/mux-player');
1472
1472
  const muxPlayerRef = ref();
1473
+ const { alt } = data;
1473
1474
  const computedProps = __spreadProps$2(__spreadValues$2({}, useVideoPlayer({ data })), {
1474
1475
  disableCookies,
1475
1476
  disableTracking,
@@ -1478,7 +1479,8 @@ const VideoPlayer = defineComponent({
1478
1479
  return {
1479
1480
  muxPlayerRef,
1480
1481
  computedProps,
1481
- otherProps
1482
+ otherProps,
1483
+ alt
1482
1484
  };
1483
1485
  },
1484
1486
  mounted() {
@@ -1563,7 +1565,8 @@ const VideoPlayer = defineComponent({
1563
1565
  render() {
1564
1566
  return h("mux-player", __spreadValues$2(__spreadValues$2({
1565
1567
  ref: "muxPlayerRef",
1566
- "stream-type": "on-demand"
1568
+ "stream-type": "on-demand",
1569
+ "data-datocms-content-link-source": this.alt
1567
1570
  }, toHTMLAttrs(this.computedProps)), toHTMLAttrs(this.otherProps)));
1568
1571
  }
1569
1572
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-datocms",
3
- "version": "8.1.6",
3
+ "version": "8.1.7",
4
4
  "type": "module",
5
5
  "description": "A set of components and utilities to work faster with DatoCMS in Vue.js environments",
6
6
  "keywords": [
@@ -42,7 +42,7 @@
42
42
  "toc": "doctoc --github src/components src/lib"
43
43
  },
44
44
  "dependencies": {
45
- "@datocms/content-link": "^0.3.9",
45
+ "@datocms/content-link": "^0.3.10",
46
46
  "datocms-listen": "^1.0.2",
47
47
  "hls.js": "^1.5.17",
48
48
  "datocms-structured-text-generic-html-renderer": "^5.0.0",