vue-datocms 8.1.8 → 8.1.9

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
@@ -125,7 +125,7 @@ const ContentLink = vue.defineComponent({
125
125
  },
126
126
  /**
127
127
  * Enable click-to-edit on mount. Pass true for default behavior or an object with scrollToNearestTarget.
128
- * If undefined, click-to-edit is disabled and editors can use Alt/Option key for temporary activation.
128
+ * If undefined or false, click-to-edit is disabled and editors can use Alt/Option key for temporary activation.
129
129
  */
130
130
  enableClickToEdit: {
131
131
  type: [Boolean, Object],
@@ -146,7 +146,7 @@ const ContentLink = vue.defineComponent({
146
146
  root: props.root
147
147
  });
148
148
  vue.onMounted(() => {
149
- if (props.enableClickToEdit !== void 0) {
149
+ if (props.enableClickToEdit) {
150
150
  enableClickToEditFn(
151
151
  props.enableClickToEdit === true ? void 0 : props.enableClickToEdit
152
152
  );
package/dist/index.d.ts CHANGED
@@ -94,8 +94,8 @@ declare function useContentLink(options?: UseContentLinkOptions): UseContentLink
94
94
  type ContentLinkProps = Omit<UseContentLinkOptions, 'enabled'> & {
95
95
  /** Current pathname to sync with Web Previews plugin */
96
96
  currentPath?: string;
97
- /** Enable click-to-edit on mount. Pass true for default behavior or an object with scrollToNearestTarget. If undefined, click-to-edit is disabled. */
98
- enableClickToEdit?: true | {
97
+ /** Enable click-to-edit on mount. Pass true for default behavior or an object with scrollToNearestTarget. If undefined or false, click-to-edit is disabled. */
98
+ enableClickToEdit?: boolean | {
99
99
  scrollToNearestTarget: true;
100
100
  };
101
101
  /** Whether to strip stega encoding from text nodes after stamping. */
@@ -226,10 +226,10 @@ declare const ContentLink: vue.DefineComponent<{
226
226
  };
227
227
  /**
228
228
  * Enable click-to-edit on mount. Pass true for default behavior or an object with scrollToNearestTarget.
229
- * If undefined, click-to-edit is disabled and editors can use Alt/Option key for temporary activation.
229
+ * If undefined or false, click-to-edit is disabled and editors can use Alt/Option key for temporary activation.
230
230
  */
231
231
  enableClickToEdit: {
232
- type: PropType<true | {
232
+ type: PropType<boolean | {
233
233
  scrollToNearestTarget: true;
234
234
  }>;
235
235
  required: false;
@@ -276,10 +276,10 @@ declare const ContentLink: vue.DefineComponent<{
276
276
  };
277
277
  /**
278
278
  * Enable click-to-edit on mount. Pass true for default behavior or an object with scrollToNearestTarget.
279
- * If undefined, click-to-edit is disabled and editors can use Alt/Option key for temporary activation.
279
+ * If undefined or false, click-to-edit is disabled and editors can use Alt/Option key for temporary activation.
280
280
  */
281
281
  enableClickToEdit: {
282
- type: PropType<true | {
282
+ type: PropType<boolean | {
283
283
  scrollToNearestTarget: true;
284
284
  }>;
285
285
  required: false;
@@ -126,7 +126,7 @@ const ContentLink = defineComponent({
126
126
  },
127
127
  /**
128
128
  * Enable click-to-edit on mount. Pass true for default behavior or an object with scrollToNearestTarget.
129
- * If undefined, click-to-edit is disabled and editors can use Alt/Option key for temporary activation.
129
+ * If undefined or false, click-to-edit is disabled and editors can use Alt/Option key for temporary activation.
130
130
  */
131
131
  enableClickToEdit: {
132
132
  type: [Boolean, Object],
@@ -147,7 +147,7 @@ const ContentLink = defineComponent({
147
147
  root: props.root
148
148
  });
149
149
  onMounted(() => {
150
- if (props.enableClickToEdit !== void 0) {
150
+ if (props.enableClickToEdit) {
151
151
  enableClickToEditFn(
152
152
  props.enableClickToEdit === true ? void 0 : props.enableClickToEdit
153
153
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-datocms",
3
- "version": "8.1.8",
3
+ "version": "8.1.9",
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": [