@bluepic/embed 0.1.81 → 0.1.82

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.
@@ -33281,7 +33281,8 @@ const _hoisted_1$A = {
33281
33281
  mobile: { type: Boolean, default: !1 },
33282
33282
  field: {},
33283
33283
  allowCropImage: { type: Boolean },
33284
- aspectRatio: {}
33284
+ aspectRatio: {},
33285
+ resetCropOnChange: { type: Boolean, default: !0 }
33285
33286
  }, {
33286
33287
  modelValue: {
33287
33288
  required: !0
@@ -33314,7 +33315,15 @@ const _hoisted_1$A = {
33314
33315
  innerRotate: si.innerRotate
33315
33316
  };
33316
33317
  }
33317
- }), $e = m, Me = ref$1(!1), Ze = ref$1(!1), ne = computed(() => $e.allowCropImage ? 1 : 2), { uploadFiles: rr, uploadProgresses: gr, uploading: cr } = useUpload(
33318
+ });
33319
+ watch(ie, () => {
33320
+ $e.resetCropOnChange && (we.value = {
33321
+ scale: 1,
33322
+ innerPos: [0, 0],
33323
+ innerRotate: 0
33324
+ });
33325
+ });
33326
+ const $e = m, Me = ref$1(!1), Ze = ref$1(!1), ne = computed(() => $e.allowCropImage ? 1 : 2), { uploadFiles: rr, uploadProgresses: gr, uploading: cr } = useUpload(
33318
33327
  toRef($e, "width"),
33319
33328
  toRef($e, "height"),
33320
33329
  toRef($e, "convertTo"),
@@ -33595,7 +33604,7 @@ const _hoisted_1$A = {
33595
33604
  ])
33596
33605
  ], 2));
33597
33606
  }
33598
- }), ImageEdit_vue_vue_type_style_index_0_scoped_5fb759fc_lang = "", ImageEdit_vue_vue_type_style_index_1_lang = "", ImageEdit = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-5fb759fc"]]), _hoisted_1$y = ["src"], _hoisted_2$n = {
33607
+ }), ImageEdit_vue_vue_type_style_index_0_scoped_59560f7f_lang = "", ImageEdit_vue_vue_type_style_index_1_lang = "", ImageEdit = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-59560f7f"]]), _hoisted_1$y = ["src"], _hoisted_2$n = {
33599
33608
  key: 0,
33600
33609
  class: "actions"
33601
33610
  }, maxActions = 2, _sfc_main$J = /* @__PURE__ */ defineComponent({