@driftime/sanity-plugin-handbook 0.2.1 → 0.3.1

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 (69) hide show
  1. package/README.md +130 -77
  2. package/dist/index.d.ts +203 -110
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +2790 -2064
  5. package/dist/index.js.map +1 -1
  6. package/package.json +36 -34
  7. package/dist/index.cjs +0 -2094
  8. package/dist/index.cjs.map +0 -1
  9. package/dist/index.d.cts +0 -143
  10. package/src/blocks/callout/block.tsx +0 -56
  11. package/src/blocks/callout/content.tsx +0 -41
  12. package/src/blocks/callout/preview.tsx +0 -15
  13. package/src/blocks/code/block.tsx +0 -18
  14. package/src/blocks/code/content.tsx +0 -18
  15. package/src/blocks/code/preview.tsx +0 -17
  16. package/src/blocks/horizontal-rule/block.tsx +0 -5
  17. package/src/blocks/horizontal-rule/content.tsx +0 -8
  18. package/src/blocks/horizontal-rule/preview.tsx +0 -5
  19. package/src/blocks/image/block.tsx +0 -23
  20. package/src/blocks/image/content.tsx +0 -31
  21. package/src/blocks/image/preview.tsx +0 -23
  22. package/src/blocks/video/block.tsx +0 -21
  23. package/src/blocks/video/content.tsx +0 -37
  24. package/src/blocks/video/preview.tsx +0 -21
  25. package/src/components/content-panel.tsx +0 -58
  26. package/src/components/decorators.tsx +0 -53
  27. package/src/components/document-types.tsx +0 -49
  28. package/src/components/field.tsx +0 -530
  29. package/src/components/guide-content.tsx +0 -117
  30. package/src/components/guides.tsx +0 -36
  31. package/src/components/pane-header.tsx +0 -26
  32. package/src/components/sidebar-group.tsx +0 -30
  33. package/src/components/sidebar-tab.tsx +0 -78
  34. package/src/contexts/handbook-context.tsx +0 -84
  35. package/src/getting-started/document-types.tsx +0 -104
  36. package/src/getting-started/how-to-use.tsx +0 -95
  37. package/src/getting-started/overview.tsx +0 -65
  38. package/src/hooks/use-container-width.ts +0 -41
  39. package/src/hooks/use-handbook-configuration.ts +0 -74
  40. package/src/hooks/use-is-handbook-editor.ts +0 -18
  41. package/src/icons/book-open-text.tsx +0 -22
  42. package/src/icons/book-text.tsx +0 -19
  43. package/src/icons/code.tsx +0 -18
  44. package/src/icons/image.tsx +0 -19
  45. package/src/icons/info.tsx +0 -19
  46. package/src/icons/layout-grid.tsx +0 -20
  47. package/src/icons/lightbulb.tsx +0 -19
  48. package/src/icons/list-plus.tsx +0 -21
  49. package/src/icons/message-circle-question-mark.tsx +0 -19
  50. package/src/icons/minus.tsx +0 -17
  51. package/src/icons/triangle-alert.tsx +0 -19
  52. package/src/icons/video.tsx +0 -18
  53. package/src/index.ts +0 -145
  54. package/src/layouts/content.tsx +0 -13
  55. package/src/layouts/sidebar.tsx +0 -15
  56. package/src/layouts/tool.tsx +0 -205
  57. package/src/lib/handbook-structure.ts +0 -47
  58. package/src/lib/icons.ts +0 -16
  59. package/src/lib/utils.ts +0 -69
  60. package/src/schemas/annotations/link.ts +0 -19
  61. package/src/schemas/blocks/callout.ts +0 -69
  62. package/src/schemas/blocks/code.ts +0 -46
  63. package/src/schemas/blocks/horizontal-rule.ts +0 -31
  64. package/src/schemas/blocks/image.ts +0 -40
  65. package/src/schemas/blocks/video.ts +0 -34
  66. package/src/schemas/guide-content.ts +0 -58
  67. package/src/schemas/types/guide.ts +0 -48
  68. package/src/schemas/types/handbook.ts +0 -86
  69. package/src/types.ts +0 -101
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driftime/sanity-plugin-handbook",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "Schema-driven documentation and editorial guides, built right into Sanity Studio.",
5
5
  "keywords": [
6
6
  "sanity",
@@ -8,7 +8,8 @@
8
8
  ],
9
9
  "homepage": "https://github.com/driftime/sanity-plugin-handbook",
10
10
  "bugs": {
11
- "url": "https://github.com/driftime/sanity-plugin-handbook/issues"
11
+ "url": "https://github.com/driftime/sanity-plugin-handbook/issues",
12
+ "email": "kenny@driftime.com"
12
13
  },
13
14
  "license": "MIT",
14
15
  "author": {
@@ -21,69 +22,70 @@
21
22
  "url": "git+ssh://git@github.com/driftime/sanity-plugin-handbook.git"
22
23
  },
23
24
  "files": [
24
- "dist",
25
- "src"
25
+ "dist"
26
26
  ],
27
27
  "type": "module",
28
28
  "sideEffects": false,
29
- "main": "./dist/index.cjs",
30
29
  "types": "./dist/index.d.ts",
31
30
  "exports": {
32
31
  ".": {
33
32
  "source": "./src/index.ts",
34
- "import": "./dist/index.js",
35
- "require": "./dist/index.cjs",
36
33
  "default": "./dist/index.js"
37
34
  },
38
35
  "./package.json": "./package.json"
39
36
  },
40
37
  "publishConfig": {
41
- "access": "public",
42
38
  "exports": {
43
- ".": {
44
- "import": "./dist/index.js",
45
- "require": "./dist/index.cjs",
46
- "default": "./dist/index.js"
47
- },
39
+ ".": "./dist/index.js",
48
40
  "./package.json": "./package.json"
49
- }
41
+ },
42
+ "access": "public"
50
43
  },
51
44
  "scripts": {
45
+ "typecheck": "tsc",
52
46
  "check": "oxfmt --check && oxlint",
53
47
  "fix": "oxfmt && oxlint --fix",
54
48
  "dev": "plugin-kit link-watch",
55
49
  "watch": "pkg-utils watch --strict",
56
- "build": "plugin-kit verify-package --silent && pkg-utils build --strict --clean --check"
50
+ "build": "bun run check && bun run typecheck && plugin-kit verify-package --silent && pkg-utils build --strict --check --clean && node --check dist/index.js",
51
+ "prepublishOnly": "bun run build"
52
+ },
53
+ "dependencies": {
54
+ "@portabletext/react": "^7.0.1 || ^8.0.0",
55
+ "@sanity/icons": "^5.2.1",
56
+ "@sanity/ui": "^4.2.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@sanity/browserslist-config": "1.0.5",
60
- "@sanity/pkg-utils": "10.4.13",
61
- "@sanity/plugin-kit": "4.0.20",
62
- "@sanity/ui": "3.1.14",
63
- "@types/node": "25.5.2",
64
- "@types/react": "19.2.14",
65
- "oxfmt": "0.44.0",
66
- "oxlint": "1.59.0",
67
- "oxlint-tsgolint": "0.20.0",
68
- "react": "19.2.4",
69
- "react-dom": "19.2.4",
70
- "sanity": "5.20.0",
71
- "typescript": "6.0.2"
60
+ "@sanity/pkg-utils": "13.0.0",
61
+ "@sanity/plugin-kit": "10.0.9",
62
+ "@sanity/tsconfig": "2.2.1",
63
+ "@types/node": "26.5.0",
64
+ "@types/react": "19.2.18",
65
+ "@types/react-dom": "19.2.7",
66
+ "babel-plugin-react-compiler": "1.0.0",
67
+ "oxfmt": "0.67.0",
68
+ "oxlint": "1.82.0",
69
+ "oxlint-tsgolint": "7.0.2001",
70
+ "react": "19.2.8",
71
+ "react-dom": "19.2.8",
72
+ "sanity": "6.13.0",
73
+ "typescript": "7.0.2"
72
74
  },
73
75
  "peerDependencies": {
74
- "@sanity/ui": "2 || 3",
75
- "react": "18 || 19",
76
- "sanity": "3 || 4 || 5"
76
+ "react": "19",
77
+ "sanity": "6"
77
78
  },
78
79
  "browserslist": "extends @sanity/browserslist-config",
79
80
  "engines": {
80
- "node": ">=18"
81
+ "node": ">=20.19 <22 || >=22.12"
81
82
  },
82
83
  "sanityPlugin": {
83
84
  "verifyPackage": {
84
- "sanityV2Json": false,
85
- "eslintImports": false,
86
- "scripts": false
85
+ "tsconfig": false,
86
+ "scripts": false,
87
+ "oxlint": false,
88
+ "oxfmt": false
87
89
  }
88
90
  }
89
91
  }