vue-datocms 8.1.7 → 8.1.8

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
@@ -140,10 +140,7 @@ const ContentLink = vue.defineComponent({
140
140
  }
141
141
  },
142
142
  setup(props) {
143
- const {
144
- enableClickToEdit: enableClickToEditFn,
145
- setCurrentPath
146
- } = useContentLink({
143
+ const { enableClickToEdit: enableClickToEditFn, setCurrentPath } = useContentLink({
147
144
  enabled: props.stripStega !== void 0 ? { stripStega: props.stripStega } : true,
148
145
  onNavigateTo: props.onNavigateTo,
149
146
  root: props.root
@@ -1565,7 +1562,7 @@ const VideoPlayer = vue.defineComponent({
1565
1562
  return vue.h("mux-player", __spreadValues$2(__spreadValues$2({
1566
1563
  ref: "muxPlayerRef",
1567
1564
  "stream-type": "on-demand",
1568
- "data-datocms-content-link-source": this.alt
1565
+ "data-datocms-content-link-source": this.alt && contentLink.decodeStega(this.alt) ? this.alt : void 0
1569
1566
  }, toHTMLAttrs(this.computedProps)), toHTMLAttrs(this.otherProps)));
1570
1567
  }
1571
1568
  });
@@ -1,5 +1,5 @@
1
1
  import { ref, watch, onMounted, onUnmounted, defineComponent, onBeforeUnmount, h, watchEffect, unref, reactive, computed, toRaw } from 'vue';
2
- import { createController } from '@datocms/content-link';
2
+ import { createController, decodeStega } from '@datocms/content-link';
3
3
  export { decodeStega, stripStega } from '@datocms/content-link';
4
4
  import hypenateStyleName from 'hyphenate-style-name';
5
5
  import { render, renderNodeRule, defaultMetaTransformer } from 'datocms-structured-text-generic-html-renderer';
@@ -141,10 +141,7 @@ const ContentLink = defineComponent({
141
141
  }
142
142
  },
143
143
  setup(props) {
144
- const {
145
- enableClickToEdit: enableClickToEditFn,
146
- setCurrentPath
147
- } = useContentLink({
144
+ const { enableClickToEdit: enableClickToEditFn, setCurrentPath } = useContentLink({
148
145
  enabled: props.stripStega !== void 0 ? { stripStega: props.stripStega } : true,
149
146
  onNavigateTo: props.onNavigateTo,
150
147
  root: props.root
@@ -1566,7 +1563,7 @@ const VideoPlayer = defineComponent({
1566
1563
  return h("mux-player", __spreadValues$2(__spreadValues$2({
1567
1564
  ref: "muxPlayerRef",
1568
1565
  "stream-type": "on-demand",
1569
- "data-datocms-content-link-source": this.alt
1566
+ "data-datocms-content-link-source": this.alt && decodeStega(this.alt) ? this.alt : void 0
1570
1567
  }, toHTMLAttrs(this.computedProps)), toHTMLAttrs(this.otherProps)));
1571
1568
  }
1572
1569
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-datocms",
3
- "version": "8.1.7",
3
+ "version": "8.1.8",
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": [