From 5ca9fe72782b463bc5c8e02d3592a46fb2112d5b Mon Sep 17 00:00:00 2001 From: Taye Adeyemi Date: Mon, 4 Dec 2023 04:24:16 +0100 Subject: [PATCH] chore: v1.10.24 # Conflicts: # packages/@interactjs/arrange/package.json # packages/@interactjs/clone/package.json # packages/@interactjs/feedback/package.json # packages/@interactjs/iframes/package.json # packages/@interactjs/multi-target/package.json # packages/@interactjs/react/package.json # packages/@interactjs/rebound/package.json # packages/@interactjs/symbol-tree/package.json # packages/@interactjs/vue/package.json --- CHANGELOG.md | 57 +++++++++++-------- package.json | 2 +- packages/@interactjs/actions/package.json | 8 +-- packages/@interactjs/auto-scroll/package.json | 6 +- packages/@interactjs/auto-start/package.json | 8 +-- packages/@interactjs/core/package.json | 4 +- packages/@interactjs/dev-tools/package.json | 8 +-- packages/@interactjs/inertia/package.json | 12 ++-- packages/@interactjs/interact/package.json | 6 +- packages/@interactjs/interactjs/package.json | 42 +++++++------- packages/@interactjs/modifiers/package.json | 12 ++-- packages/@interactjs/offset/package.json | 8 +-- .../@interactjs/pointer-events/package.json | 8 +-- packages/@interactjs/reflow/package.json | 8 +-- packages/@interactjs/snappers/package.json | 6 +- packages/@interactjs/types/package.json | 30 +++++----- packages/@interactjs/utils/package.json | 6 +- packages/interactjs/package.json | 4 +- 18 files changed, 121 insertions(+), 114 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ebdf7246..746e1dbe9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.10.24 + +- chore: generate api docs + ## v1.10.23 - fix: transform nullish coalescing; fix symbol-tree build @@ -522,7 +526,7 @@ Full list of [changes on Github](https://github.com/taye/interact.js/compare/v1. ### resize.preserveAspectRatio ```javascript -interact(target).resizable({ preserveAspectRatio: true }); +interact(target).resizable({ preserveAspectRatio: true }) ``` See [PR #260](https://github.com/taye/interact.js/pull/260). @@ -665,10 +669,10 @@ Multiple interactions have been enabled by default. For example: ```javascript interact('.drag-element').draggable({ - enabled: true, - // max : Infinity, // default - // maxPerElement: 1, // default -}); + enabled: true, + // max : Infinity, // default + // maxPerElement: 1, // default +}) ``` will allow multiple `.drag-element` to be dragged simultaneously without having @@ -693,17 +697,17 @@ dimensions of the given grid. ```javascript interact(target).draggable({ snap: { - targets: [ {x: 300, y: 300} ], + targets: [{ x: 300, y: 300 }], relativePoints: [ - { x: 0, y: 0 }, // snap relative to the top left of the element - { x: 1, y: 1 }, // and also to the bottom right + { x: 0, y: 0 }, // snap relative to the top left of the element + { x: 1, y: 1 }, // and also to the bottom right ], // offset the snap target coordinates // can be an object with x/y or 'startCoords' - offset: { x: 50, y: 50 } - } -}); + offset: { x: 50, y: 50 }, + }, +}) ``` #### snap function interaction arg @@ -713,11 +717,13 @@ The current `Interaction` is now passed as the third parameter to snap functions ```js interact(target).draggable({ snap: { - targets: [function (x, y, interaction) { - if (!interaction.dropTarget) { - return { x: 0, y: 0 } - } - }], + targets: [ + function (x, y, interaction) { + if (!interaction.dropTarget) { + return { x: 0, y: 0 } + } + }, + ], }, }) ``` @@ -753,18 +759,18 @@ Methods for these settings on the `interact` object (`interact.snap()`, ### Space-separated string and array event list and eventType:listener object ```javascript -function logEventType (event) { - console.log(event.type, event.target); +function logEventType(event) { + console.log(event.type, event.target) } -interact(target).on('down tap dragstart gestureend', logEventType); +interact(target).on('down tap dragstart gestureend', logEventType) -interact(target).on(['move', 'resizestart'], logEventType); +interact(target).on(['move', 'resizestart'], logEventType) interact(target).on({ dragmove: logEvent, - keydown : logEvent -}); + keydown: logEvent, +}) ``` ### Interactable actionChecker @@ -774,13 +780,14 @@ an object. The object should have a `name` and can also have an `axis` property. For example, to resize horizontally: ```javascript -interact(target).resizeable(true) +interact(target) + .resizeable(true) .actionChecker(function (pointer, defaultAction, interactable, element) { return { name: 'resize', axis: 'x', - }; - }); + } + }) ``` ### Plain drop event objects diff --git a/package.json b/package.json index 40de920de..dbc173301 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/_dev", - "version": "1.10.23", + "version": "1.10.24", "private": true, "directories": { "bin": "./bin" diff --git a/packages/@interactjs/actions/package.json b/packages/@interactjs/actions/package.json index f3fd0aaef..c7f8cfbfa 100644 --- a/packages/@interactjs/actions/package.json +++ b/packages/@interactjs/actions/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/actions", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,11 +10,11 @@ "directory": "packages/@interactjs/actions" }, "peerDependencies": { - "@interactjs/core": "1.10.23", - "@interactjs/utils": "1.10.23" + "@interactjs/core": "1.10.24", + "@interactjs/utils": "1.10.24" }, "optionalDependencies": { - "@interactjs/interact": "1.10.23" + "@interactjs/interact": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/auto-scroll/package.json b/packages/@interactjs/auto-scroll/package.json index f8dc4e9f8..a7f6b9f65 100644 --- a/packages/@interactjs/auto-scroll/package.json +++ b/packages/@interactjs/auto-scroll/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/auto-scroll", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,10 +10,10 @@ "directory": "packages/@interactjs/auto-scroll" }, "peerDependencies": { - "@interactjs/utils": "1.10.23" + "@interactjs/utils": "1.10.24" }, "optionalDependencies": { - "@interactjs/interact": "1.10.23" + "@interactjs/interact": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/auto-start/package.json b/packages/@interactjs/auto-start/package.json index 81f9490b0..8d357c40e 100644 --- a/packages/@interactjs/auto-start/package.json +++ b/packages/@interactjs/auto-start/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/auto-start", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,11 +10,11 @@ "directory": "packages/@interactjs/auto-start" }, "peerDependencies": { - "@interactjs/core": "1.10.23", - "@interactjs/utils": "1.10.23" + "@interactjs/core": "1.10.24", + "@interactjs/utils": "1.10.24" }, "optionalDependencies": { - "@interactjs/interact": "1.10.23" + "@interactjs/interact": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/core/package.json b/packages/@interactjs/core/package.json index 6d58f3ec5..4a5e2ba55 100644 --- a/packages/@interactjs/core/package.json +++ b/packages/@interactjs/core/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/core", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,7 +10,7 @@ "directory": "packages/@interactjs/core" }, "peerDependencies": { - "@interactjs/utils": "1.10.23" + "@interactjs/utils": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/dev-tools/package.json b/packages/@interactjs/dev-tools/package.json index 08919dd01..37e19c048 100644 --- a/packages/@interactjs/dev-tools/package.json +++ b/packages/@interactjs/dev-tools/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/dev-tools", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,11 +10,11 @@ "directory": "packages/@interactjs/dev-tools" }, "peerDependencies": { - "@interactjs/modifiers": "1.10.23", - "@interactjs/utils": "1.10.23" + "@interactjs/modifiers": "1.10.24", + "@interactjs/utils": "1.10.24" }, "optionalDependencies": { - "@interactjs/interact": "1.10.23" + "@interactjs/interact": "1.10.24" }, "devDependencies": { "vue": "next" diff --git a/packages/@interactjs/inertia/package.json b/packages/@interactjs/inertia/package.json index b82b68340..bf9f98da6 100644 --- a/packages/@interactjs/inertia/package.json +++ b/packages/@interactjs/inertia/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/inertia", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,15 +10,15 @@ "directory": "packages/@interactjs/inertia" }, "dependencies": { - "@interactjs/offset": "1.10.23" + "@interactjs/offset": "1.10.24" }, "peerDependencies": { - "@interactjs/core": "1.10.23", - "@interactjs/modifiers": "1.10.23", - "@interactjs/utils": "1.10.23" + "@interactjs/core": "1.10.24", + "@interactjs/modifiers": "1.10.24", + "@interactjs/utils": "1.10.24" }, "optionalDependencies": { - "@interactjs/interact": "1.10.23" + "@interactjs/interact": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/interact/package.json b/packages/@interactjs/interact/package.json index 3517ae44a..be5c12364 100644 --- a/packages/@interactjs/interact/package.json +++ b/packages/@interactjs/interact/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/interact", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,8 +10,8 @@ "directory": "packages/@interactjs/interact" }, "dependencies": { - "@interactjs/core": "1.10.23", - "@interactjs/utils": "1.10.23" + "@interactjs/core": "1.10.24", + "@interactjs/utils": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/interactjs/package.json b/packages/@interactjs/interactjs/package.json index 772dfaea0..72f2e2319 100644 --- a/packages/@interactjs/interactjs/package.json +++ b/packages/@interactjs/interactjs/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/interactjs", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -9,26 +9,26 @@ "url": "https://github.com/taye/interact.js.git" }, "dependencies": { - "@interactjs/actions": "1.10.23", - "@interactjs/arrange": "1.10.23", - "@interactjs/auto-scroll": "1.10.23", - "@interactjs/auto-start": "1.10.23", - "@interactjs/clone": "1.10.23", - "@interactjs/core": "1.10.23", - "@interactjs/dev-tools": "1.10.23", - "@interactjs/feedback": "1.10.23", - "@interactjs/inertia": "1.10.23", - "@interactjs/interact": "1.10.23", - "@interactjs/modifiers": "1.10.23", - "@interactjs/multi-target": "1.10.23", - "@interactjs/offset": "1.10.23", - "@interactjs/pointer-events": "1.10.23", - "@interactjs/react": "1.10.23", - "@interactjs/rebound": "1.10.23", - "@interactjs/symbol-tree": "1.10.23", - "@interactjs/reflow": "1.10.23", - "@interactjs/utils": "1.10.23", - "@interactjs/vue": "1.10.23" + "@interactjs/actions": "1.10.24", + "@interactjs/arrange": "1.10.24", + "@interactjs/auto-scroll": "1.10.24", + "@interactjs/auto-start": "1.10.24", + "@interactjs/clone": "1.10.24", + "@interactjs/core": "1.10.24", + "@interactjs/dev-tools": "1.10.24", + "@interactjs/feedback": "1.10.24", + "@interactjs/inertia": "1.10.24", + "@interactjs/interact": "1.10.24", + "@interactjs/modifiers": "1.10.24", + "@interactjs/multi-target": "1.10.24", + "@interactjs/offset": "1.10.24", + "@interactjs/pointer-events": "1.10.24", + "@interactjs/react": "1.10.24", + "@interactjs/rebound": "1.10.24", + "@interactjs/symbol-tree": "1.10.24", + "@interactjs/reflow": "1.10.24", + "@interactjs/utils": "1.10.24", + "@interactjs/vue": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/modifiers/package.json b/packages/@interactjs/modifiers/package.json index 285aa7f38..fe2f62f33 100644 --- a/packages/@interactjs/modifiers/package.json +++ b/packages/@interactjs/modifiers/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/modifiers", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,15 +10,15 @@ "directory": "packages/@interactjs/modifiers" }, "dependencies": { - "@interactjs/snappers": "1.10.23" + "@interactjs/snappers": "1.10.24" }, "peerDependencies": { - "@interactjs/core": "1.10.23", - "@interactjs/rebound": "1.10.23", - "@interactjs/utils": "1.10.23" + "@interactjs/core": "1.10.24", + "@interactjs/rebound": "1.10.24", + "@interactjs/utils": "1.10.24" }, "optionalDependencies": { - "@interactjs/interact": "1.10.23" + "@interactjs/interact": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/offset/package.json b/packages/@interactjs/offset/package.json index 5225c151a..3ffffa36a 100644 --- a/packages/@interactjs/offset/package.json +++ b/packages/@interactjs/offset/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/offset", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,11 +10,11 @@ "directory": "packages/@interactjs/offset" }, "peerDependencies": { - "@interactjs/core": "1.10.23", - "@interactjs/utils": "1.10.23" + "@interactjs/core": "1.10.24", + "@interactjs/utils": "1.10.24" }, "optionalDependencies": { - "@interactjs/interact": "1.10.23" + "@interactjs/interact": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/pointer-events/package.json b/packages/@interactjs/pointer-events/package.json index c365470b1..d93355387 100644 --- a/packages/@interactjs/pointer-events/package.json +++ b/packages/@interactjs/pointer-events/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/pointer-events", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,11 +10,11 @@ "directory": "packages/@interactjs/pointer-events" }, "peerDependencies": { - "@interactjs/core": "1.10.23", - "@interactjs/utils": "1.10.23" + "@interactjs/core": "1.10.24", + "@interactjs/utils": "1.10.24" }, "optionalDependencies": { - "@interactjs/interact": "1.10.23" + "@interactjs/interact": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/reflow/package.json b/packages/@interactjs/reflow/package.json index 4175b09f8..71953d27f 100644 --- a/packages/@interactjs/reflow/package.json +++ b/packages/@interactjs/reflow/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/reflow", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,11 +10,11 @@ "directory": "packages/@interactjs/reflow" }, "peerDependencies": { - "@interactjs/core": "1.10.23", - "@interactjs/utils": "1.10.23" + "@interactjs/core": "1.10.24", + "@interactjs/utils": "1.10.24" }, "optionalDependencies": { - "@interactjs/interact": "1.10.23" + "@interactjs/interact": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/snappers/package.json b/packages/@interactjs/snappers/package.json index e37c533b9..f89891495 100644 --- a/packages/@interactjs/snappers/package.json +++ b/packages/@interactjs/snappers/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/snappers", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -10,10 +10,10 @@ "directory": "packages/@interactjs/snappers" }, "peerDependencies": { - "@interactjs/utils": "1.10.23" + "@interactjs/utils": "1.10.24" }, "optionalDependencies": { - "@interactjs/interact": "1.10.23" + "@interactjs/interact": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/types/package.json b/packages/@interactjs/types/package.json index defb425ff..cb0732493 100644 --- a/packages/@interactjs/types/package.json +++ b/packages/@interactjs/types/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/types", - "version": "1.10.23", + "version": "1.10.24", "main": "index", "module": "index", "type": "module", @@ -11,20 +11,20 @@ }, "typings": "typings.d.ts", "devDependencies": { - "@interactjs/actions": "1.10.23", - "@interactjs/arrange": "1.10.23", - "@interactjs/auto-scroll": "1.10.23", - "@interactjs/auto-start": "1.10.23", - "@interactjs/core": "1.10.23", - "@interactjs/dev-tools": "1.10.23", - "@interactjs/inertia": "1.10.23", - "@interactjs/interact": "1.10.23", - "@interactjs/interactjs": "1.10.23", - "@interactjs/modifiers": "1.10.23", - "@interactjs/pointer-events": "1.10.23", - "@interactjs/reflow": "1.10.23", - "@interactjs/snappers": "1.10.23", - "@interactjs/utils": "1.10.23" + "@interactjs/actions": "1.10.24", + "@interactjs/arrange": "1.10.24", + "@interactjs/auto-scroll": "1.10.24", + "@interactjs/auto-start": "1.10.24", + "@interactjs/core": "1.10.24", + "@interactjs/dev-tools": "1.10.24", + "@interactjs/inertia": "1.10.24", + "@interactjs/interact": "1.10.24", + "@interactjs/interactjs": "1.10.24", + "@interactjs/modifiers": "1.10.24", + "@interactjs/pointer-events": "1.10.24", + "@interactjs/reflow": "1.10.24", + "@interactjs/snappers": "1.10.24", + "@interactjs/utils": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/@interactjs/utils/package.json b/packages/@interactjs/utils/package.json index b7e4d8721..e50ac9217 100644 --- a/packages/@interactjs/utils/package.json +++ b/packages/@interactjs/utils/package.json @@ -1,6 +1,6 @@ { "name": "@interactjs/utils", - "version": "1.10.23", + "version": "1.10.24", "type": "module", "repository": { "type": "git", @@ -8,8 +8,8 @@ "directory": "packages/@interactjs/utils" }, "peerDependencies": { - "@interactjs/feedback": "1.10.23", - "@interactjs/symbol-tree": "1.10.23" + "@interactjs/feedback": "1.10.24", + "@interactjs/symbol-tree": "1.10.24" }, "publishConfig": { "access": "public" diff --git a/packages/interactjs/package.json b/packages/interactjs/package.json index 239ea48a2..00d76e6f7 100644 --- a/packages/interactjs/package.json +++ b/packages/interactjs/package.json @@ -1,6 +1,6 @@ { "name": "interactjs", - "version": "1.10.23", + "version": "1.10.24", "main": "dist/interact.min.js", "typings": "index.d.ts", "description": "Drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+)", @@ -38,7 +38,7 @@ "test": "cd ../; npm test" }, "dependencies": { - "@interactjs/types": "1.10.23" + "@interactjs/types": "1.10.24" }, "sideEffects": [ "**/index.js",