Skip to content

Commit 934a61d

Browse files
committed
Merge branch 'release/3.0.4'
2 parents 986bb91 + 2b53fd8 commit 934a61d

File tree

8 files changed

+88
-80
lines changed

8 files changed

+88
-80
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format
44

55
## [Unreleased]
66

7+
## [v3.0.4](https://github.com/studiometa/js-toolkit/compare/3.0.3..3.0.4) (2025-05-12)
8+
9+
### Changed
10+
11+
- **useDrag:** enable static access to the drag service modes ([#628](https://github.com/studiometa/js-toolkit/pull/628), [8253e4c9](https://github.com/studiometa/js-toolkit/commit/8253e4c9))
12+
713
## [v3.0.3](https://github.com/studiometa/js-toolkit/compare/3.0.2..3.0.3) (2025-05-09)
814

915
### Changed

package-lock.json

Lines changed: 61 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@studiometa/js-toolkit-workspace",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"private": true,
55
"type": "module",
66
"workspaces": [
@@ -31,8 +31,8 @@
3131
},
3232
"devDependencies": {
3333
"@studiometa/prettier-config": "4.1.0",
34-
"@types/node": "22.15.12",
35-
"oxlint": "0.16.9",
34+
"@types/node": "22.15.17",
35+
"oxlint": "0.16.10",
3636
"prettier": "3.5.3",
3737
"typescript": "5.8.3"
3838
},

packages/demo/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@studiometa/js-toolkit-demo",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"private": true,
55
"type": "module",
66
"scripts": {
@@ -27,8 +27,8 @@
2727
"@studiometa/prettier-config": "4.1.0",
2828
"@studiometa/stylelint-config": "4.0.0",
2929
"@studiometa/tailwind-config": "2.1.0",
30-
"@studiometa/webpack-config": "6.3.3",
31-
"@studiometa/webpack-config-preset-prototyping": "6.3.3",
30+
"@studiometa/webpack-config": "6.3.4",
31+
"@studiometa/webpack-config-preset-prototyping": "6.3.4",
3232
"eslint": "9.26.0",
3333
"http-server": "14.1.1",
3434
"prettier": "3.5.3",

packages/docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@studiometa/js-toolkit-docs",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"type": "module",
55
"private": true,
66
"scripts": {
@@ -10,9 +10,9 @@
1010
},
1111
"devDependencies": {
1212
"@shikijs/vitepress-twoslash": "3.4.0",
13-
"@studiometa/tailwind-config": "^2.1.0",
14-
"tailwindcss": "^3.4.14",
15-
"vitepress": "^1.6.3",
13+
"@studiometa/tailwind-config": "2.1.0",
14+
"tailwindcss": "3.4.17",
15+
"vitepress": "1.6.3",
1616
"vitepress-plugin-llms": "1.1.3"
1717
}
1818
}

packages/js-toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@studiometa/js-toolkit",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"description": "A set of useful little bits of JavaScript to boost your project! 🚀",
55
"publishConfig": {
66
"access": "public"

packages/js-toolkit/services/DragService.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ export interface DragServiceOptions {
6868
let count = 0;
6969

7070
export class DragService extends AbstractService<DragServiceProps> {
71+
static MODES = {
72+
START: 'start',
73+
DRAG: 'drag',
74+
DROP: 'drop',
75+
INERTIA: 'inertia',
76+
STOP: 'stop',
77+
} as const;
78+
7179
static config: ServiceConfig = [
7280
[
7381
(instance) => (instance as DragService).props.target,
@@ -97,13 +105,7 @@ export class DragService extends AbstractService<DragServiceProps> {
97105
props = {
98106
target: null,
99107
mode: undefined,
100-
MODES: {
101-
START: 'start',
102-
DRAG: 'drag',
103-
DROP: 'drop',
104-
INERTIA: 'inertia',
105-
STOP: 'stop',
106-
},
108+
MODES: DragService.MODES,
107109
isGrabbing: false,
108110
hasInertia: false,
109111
x: 0,

packages/tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@studiometa/js-toolkit-tests",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"private": true,
55
"type": "module",
66
"scripts": {

0 commit comments

Comments
 (0)