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

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 -6
  2. package/package.json +35 -36
package/README.md CHANGED
@@ -18,10 +18,10 @@ This plugin aims to be OS-like in that you can select and move multiple document
18
18
  A Sanity Studio with [Desk Structure](https://www.sanity.io/docs/structure-builder-introduction) configured:
19
19
 
20
20
  ```ts
21
- import {createConfig} from "sanity";
21
+ import {defineConfig} from "sanity";
22
22
  import {deskTool, StructureBuilder} from "sanity/desk";
23
23
 
24
- export default createConfig({
24
+ export default defineConfig({
25
25
  //...
26
26
  plugins: [
27
27
  deskTool({
@@ -54,11 +54,11 @@ The config parameter requires `type`, `S` and `context`. It also accepts `title`
54
54
  `S` and `context` are available in desk-tool structure callback, and should be forwarded as is:
55
55
 
56
56
  ```ts
57
- import {createConfig} from "sanity";
57
+ import {defineConfig} from "sanity";
58
58
  import {deskTool, StructureBuilder} from "sanity/desk";
59
59
  import {orderableDocumentListDeskItem} from '@sanity/orderable-document-list'
60
60
 
61
- export default createConfig({
61
+ export default defineConfig({
62
62
  //...
63
63
  plugins: [
64
64
  deskTool({
@@ -111,11 +111,11 @@ You cannot override the `name`, `type` or `initialValue` attributes.
111
111
 
112
112
  ```js
113
113
  // sanity.config.js
114
- import {createConfig} from "sanity";
114
+ import {defineConfig} from "sanity";
115
115
  import {deskTool, StructureBuilder} from "sanity/desk";
116
116
  import {orderableDocumentListDeskItem} from '@sanity/orderable-document-list'
117
117
 
118
- export default createConfig({
118
+ export default defineConfig({
119
119
  //...
120
120
  plugins: [
121
121
  deskTool({structure: (S, context) => {/* snip */}})
package/package.json CHANGED
@@ -1,10 +1,21 @@
1
1
  {
2
2
  "name": "@sanity/orderable-document-list",
3
- "version": "1.0.0-v3-studio.6",
3
+ "version": "1.0.0-v3-studio.8",
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": "https://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.0",
92
95
  "typescript": "^4.8.4"
93
96
  },
94
97
  "peerDependencies": {
95
- "react": "^18.0.0",
98
+ "react": "^18",
96
99
  "sanity": "dev-preview || 3.0.0-rc.0"
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
  }