@sanity/orderable-document-list 1.0.0-v3-studio.7 → 1.0.0

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.
Files changed (2) hide show
  1. package/README.md +6 -9
  2. package/package.json +36 -37
package/README.md CHANGED
@@ -1,12 +1,9 @@
1
1
  # @sanity/orderable-document-list
2
2
 
3
- > **NOTE**
4
- >
5
- > This is the **Sanity Studio v3 version** of @sanity/orderable-document-list.
6
- >
7
- > For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/orderable-document-list).
8
-
9
- ## What is it?
3
+ >This is a **Sanity Studio v2** plugin.
4
+ > For the v2 version, please refer to the [v2-branch](https://github.com/sanity-io/orderable-document-list/tree/studio-v2).
5
+ #
6
+ # What is it?
10
7
  Drag-and-drop Document Ordering without leaving the Editing surface.
11
8
 
12
9
  ![2022-04-26 12 23 39](https://user-images.githubusercontent.com/9684022/165289621-dbd9d841-028e-40c7-be14-7398fcdb1210.gif)
@@ -37,13 +34,13 @@ export default defineConfig({
37
34
  Run the following command in your studio directory
38
35
 
39
36
  ```sh
40
- npm install --save @sanity/orderable-document-list@studio-v3
37
+ npm install --save @sanity/orderable-document-list
41
38
  ```
42
39
 
43
40
  or
44
41
 
45
42
  ```sh
46
- yarn add @sanity/orderable-document-list@studio-v3
43
+ yarn add @sanity/orderable-document-list
47
44
  ```
48
45
 
49
46
  ## Usage
package/package.json CHANGED
@@ -1,10 +1,21 @@
1
1
  {
2
2
  "name": "@sanity/orderable-document-list",
3
- "version": "1.0.0-v3-studio.7",
3
+ "version": "1.0.0",
4
4
  "description": "Drag-and-drop Document Ordering without leaving the Editing surface",
5
- "author": "Sanity.io <hello@sanity.io>",
5
+ "keywords": [
6
+ "sanity",
7
+ "sanity-plugin"
8
+ ],
9
+ "homepage": "https://github.com/sanity-io/orderable-document-list#readme",
10
+ "bugs": {
11
+ "url": "https://github.com/sanity-io/orderable-document-list/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git@github.com:sanity-io/orderable-document-list.git"
16
+ },
6
17
  "license": "MIT",
7
- "source": "./src/index.ts",
18
+ "author": "Sanity.io <hello@sanity.io>",
8
19
  "exports": {
9
20
  ".": {
10
21
  "types": "./lib/src/index.d.ts",
@@ -12,10 +23,12 @@
12
23
  "import": "./lib/index.esm.js",
13
24
  "require": "./lib/index.js",
14
25
  "default": "./lib/index.esm.js"
15
- }
26
+ },
27
+ "./package.json": "./package.json"
16
28
  },
17
29
  "main": "./lib/index.js",
18
30
  "module": "./lib/index.esm.js",
31
+ "source": "./src/index.ts",
19
32
  "types": "./lib/src/index.d.ts",
20
33
  "files": [
21
34
  "src",
@@ -24,35 +37,27 @@
24
37
  "sanity.json"
25
38
  ],
26
39
  "scripts": {
27
- "clean": "rimraf lib",
28
40
  "prebuild": "npm run clean && plugin-kit verify-package --silent && pkg-utils",
29
- "build": "pkg-utils build",
30
- "watch": "pkg-utils watch",
31
- "link-watch": "plugin-kit link-watch",
32
- "prepublishOnly": "npm run build",
41
+ "build": "pkg-utils build --strict",
42
+ "clean": "rimraf lib",
33
43
  "compile": "tsc --noEmit",
44
+ "format": "prettier src -w",
45
+ "link-watch": "plugin-kit link-watch",
34
46
  "lint": "eslint .",
35
47
  "lint:fix": "eslint . --fix",
36
- "format": "prettier src -w",
37
- "prepare": "husky install"
48
+ "prepare": "husky install",
49
+ "prepublishOnly": "npm run build",
50
+ "watch": "pkg-utils watch"
38
51
  },
39
52
  "husky": {
40
53
  "hooks": {
41
54
  "pre-commit": "npm run lint:fix"
42
55
  }
43
56
  },
44
- "repository": {
45
- "type": "git",
46
- "url": "https://github.com/sanity-io/orderable-document-list.git"
47
- },
48
- "keywords": [
49
- "sanity",
50
- "sanity-plugin"
51
- ],
52
57
  "dependencies": {
53
58
  "@sanity/icons": "^1.2.1",
54
59
  "@sanity/incompatible-plugin": "^1.0.4",
55
- "@sanity/ui": "^1.0.0-beta.31",
60
+ "@sanity/ui": "1.0.0-beta.32",
56
61
  "lexorank": "^1.0.4",
57
62
  "prop-types": "^15.8.1",
58
63
  "react-beautiful-dnd": "^13.1.0"
@@ -60,10 +65,8 @@
60
65
  "devDependencies": {
61
66
  "@commitlint/cli": "^17.2.0",
62
67
  "@commitlint/config-conventional": "^17.2.0",
63
- "@parcel/packager-ts": "^2.6.0",
64
- "@parcel/transformer-typescript-types": "^2.6.0",
65
- "@sanity/pkg-utils": "^1.16.2",
66
- "@sanity/plugin-kit": "^2.0.6",
68
+ "@sanity/pkg-utils": "^1.17.2",
69
+ "@sanity/plugin-kit": "^2.1.4",
67
70
  "@sanity/semantic-release-preset": "^2.0.2",
68
71
  "@types/react-beautiful-dnd": "^13.1.2",
69
72
  "@typescript-eslint/eslint-plugin": "^5.42.0",
@@ -83,24 +86,20 @@
83
86
  "eslint-plugin-react-hooks": "^4.6.0",
84
87
  "husky": "^8.0.1",
85
88
  "lint-staged": "^13.0.3",
86
- "parcel": "^2.6.0",
87
89
  "prettier": "^2.7.1",
88
- "react": "^18.0.0",
89
- "react-dom": "^18.0.0",
90
+ "prettier-plugin-packagejson": "^2.3.0",
91
+ "react": "^18",
92
+ "react-dom": "^18",
90
93
  "rimraf": "^3.0.2",
91
- "sanity": "dev-preview || 3.0.0-rc.0",
94
+ "sanity": "3.0.0-rc.2",
92
95
  "typescript": "^4.8.4"
93
96
  },
94
97
  "peerDependencies": {
95
- "react": "^18.0.0",
96
- "sanity": "dev-preview || 3.0.0-rc.0"
98
+ "react": "^18",
99
+ "sanity": "dev-preview || 3.0.0-rc.2"
97
100
  },
98
- "bugs": {
99
- "url": "https://github.com/sanity-io/orderable-document-list/issues"
100
- },
101
- "homepage": "https://github.com/sanity-io/orderable-document-list#readme",
102
- "sanityExchangeUrl": "https://www.sanity.io/plugins/orderable-document-list",
103
101
  "engines": {
104
- "node": ">=14.0.0"
105
- }
102
+ "node": ">=14"
103
+ },
104
+ "sanityExchangeUrl": "https://www.sanity.io/plugins/orderable-document-list"
106
105
  }