You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@stimulus-components/sortable

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stimulus-components/sortable - npm Package Compare versions

Comparing version

to
5.0.2

index.html

@@ -10,2 +10,8 @@ # Changelog

## [5.0.2] - 2024-02-03
### Chore
- Allow more flexible peer dependency range for `@rails/request.js`.
## [5.0.1] - 2024-03-23

@@ -12,0 +18,0 @@

2

dist/types/index.d.ts

@@ -30,5 +30,5 @@ import { Controller } from "@hotwired/stimulus";

newIndex: any;
}): Promise<import("@rails/request.js").FetchResponse>;
}): Promise<any>;
get options(): Sortable.Options;
get defaultOptions(): Sortable.Options;
}
{
"name": "@stimulus-components/sortable",
"version": "5.0.1",
"version": "5.0.2",
"description": "A Stimulus controller to reorder lists with drag-and-drop.",

@@ -12,9 +12,9 @@ "keywords": [

],
"repository": "git@github.com:stimulus-components/stimulus-sortable.git",
"repository": "git@github.com:stimulus-components/stimulus-components.git",
"bugs": {
"url": "https://github.com/stimulus-components/stimulus-sortable/issues"
"url": "https://github.com/stimulus-components/stimulus-components/issues"
},
"author": "Guillaume Briday <guillaumebriday@gmail.com>",
"license": "MIT",
"homepage": "https://github.com/stimulus-components/stimulus-sortable",
"homepage": "https://github.com/stimulus-components/stimulus-components",
"private": false,

@@ -27,45 +27,13 @@ "publishConfig": {

"types": "dist/types/index.d.ts",
"peerDependencies": {
"@hotwired/stimulus": "^3",
"@rails/request.js": "~0.0.8",
"sortablejs": "^1.15.0"
},
"scripts": {
"lint": "tsc --noEmit && eslint --ext .js,.mjs,.ts . && prettier . --check",
"lintfix": "eslint --ext .js,.mjs,.ts . --fix && prettier . --write",
"types": "tsc --noEmit false --declaration true --emitDeclarationOnly true --outDir dist/types",
"dev": "vite",
"prod": "vite build --mode netlify",
"build": "vite build && yarn types",
"version": "yarn build",
"np": "np --no-2fa --no-tests"
},
"devDependencies": {
"@babel/core": "7.24.3",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.24.3",
"@babel/preset-typescript": "7.24.1",
"@hotwired/stimulus": "^3",
"@rails/request.js": "^0.0.9",
"@types/rails__request.js": "^0.0.0",
"@types/sortablejs": "^1.15.8",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"autoprefixer": "10.4.19",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-n": "16.6.2",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-standard": "5.0.0",
"np": "9.2.0",
"postcss": "8.4.38",
"prettier": "3.2.5",
"sortablejs": "^1.15.2",
"tailwindcss": "3.4.1",
"typescript": "^5.4.3",
"vite": "5.2.3"
},
"peerDependencies": {
"@hotwired/stimulus": "^3.0.0",
"@rails/request.js": "^0.0.8",
"sortablejs": "^1.15.0"
"build": "vite build && pnpm run types",
"version": "pnpm build"
}
}
}
# Stimulus Sortable
[![](https://img.shields.io/npm/dt/stimulus-sortable.svg)](https://www.npmjs.com/package/stimulus-sortable)
[![](https://img.shields.io/npm/v/stimulus-sortable.svg)](https://www.npmjs.com/package/stimulus-sortable)
[![](https://github.com/stimulus-components/stimulus-sortable/workflows/Lint/badge.svg)](https://github.com/stimulus-components/stimulus-sortable)
[![](https://img.shields.io/github/license/stimulus-components/stimulus-sortable.svg)](https://github.com/stimulus-components/stimulus-sortable)
## Getting started

@@ -9,0 +4,0 @@

@@ -6,8 +6,8 @@ import { Controller } from "@hotwired/stimulus"

export default class StimulusSortable extends Controller<HTMLElement> {
animationValue: number
resourceNameValue: string
paramNameValue: string
responseKindValue: Options["responseKind"]
sortable: Sortable
handleValue: string
declare animationValue: number
declare resourceNameValue: string
declare paramNameValue: string
declare responseKindValue: Options["responseKind"]
declare sortable: Sortable
declare handleValue: string

@@ -14,0 +14,0 @@ static values = {