motion-v 1.0.0-beta.1 → 1.0.0-beta.2
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/cjs/index.js
CHANGED
|
@@ -9202,7 +9202,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
9202
9202
|
setup(__props) {
|
|
9203
9203
|
const props = __props;
|
|
9204
9204
|
const { axis } = vue.toRefs(props);
|
|
9205
|
-
|
|
9205
|
+
let order2 = [];
|
|
9206
9206
|
let isReordering = false;
|
|
9207
9207
|
function warning2() {
|
|
9208
9208
|
heyListen.invariant(Boolean(props.values), "Reorder.Group must be provided a values prop");
|
|
@@ -9210,6 +9210,9 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
9210
9210
|
vue.onUpdated(() => {
|
|
9211
9211
|
isReordering = false;
|
|
9212
9212
|
});
|
|
9213
|
+
vue.onBeforeUpdate(() => {
|
|
9214
|
+
order2 = [];
|
|
9215
|
+
});
|
|
9213
9216
|
reorderContextProvider({
|
|
9214
9217
|
axis,
|
|
9215
9218
|
registerItem: (value, layout) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, toRefs, onUpdated, useAttrs, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
1
|
+
import { defineComponent, toRefs, onUpdated, onBeforeUpdate, useAttrs, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { Motion } from "../motion/index.mjs";
|
|
3
3
|
import { invariant } from "hey-listen";
|
|
4
4
|
import { reorderContextProvider } from "./context.mjs";
|
|
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
setup(__props) {
|
|
88
88
|
const props = __props;
|
|
89
89
|
const { axis } = toRefs(props);
|
|
90
|
-
|
|
90
|
+
let order = [];
|
|
91
91
|
let isReordering = false;
|
|
92
92
|
function warning() {
|
|
93
93
|
invariant(Boolean(props.values), "Reorder.Group must be provided a values prop");
|
|
@@ -95,6 +95,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
onUpdated(() => {
|
|
96
96
|
isReordering = false;
|
|
97
97
|
});
|
|
98
|
+
onBeforeUpdate(() => {
|
|
99
|
+
order = [];
|
|
100
|
+
});
|
|
98
101
|
reorderContextProvider({
|
|
99
102
|
axis,
|
|
100
103
|
registerItem: (value, layout) => {
|
package/dist/nuxt/index.cjs
CHANGED
package/dist/nuxt/index.mjs
CHANGED
package/dist/resolver/index.cjs
CHANGED
package/dist/resolver/index.mjs
CHANGED