@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.
- package/README.md +130 -77
- package/dist/index.d.ts +203 -110
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2790 -2064
- package/dist/index.js.map +1 -1
- package/package.json +36 -34
- package/dist/index.cjs +0 -2094
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -143
- package/src/blocks/callout/block.tsx +0 -56
- package/src/blocks/callout/content.tsx +0 -41
- package/src/blocks/callout/preview.tsx +0 -15
- package/src/blocks/code/block.tsx +0 -18
- package/src/blocks/code/content.tsx +0 -18
- package/src/blocks/code/preview.tsx +0 -17
- package/src/blocks/horizontal-rule/block.tsx +0 -5
- package/src/blocks/horizontal-rule/content.tsx +0 -8
- package/src/blocks/horizontal-rule/preview.tsx +0 -5
- package/src/blocks/image/block.tsx +0 -23
- package/src/blocks/image/content.tsx +0 -31
- package/src/blocks/image/preview.tsx +0 -23
- package/src/blocks/video/block.tsx +0 -21
- package/src/blocks/video/content.tsx +0 -37
- package/src/blocks/video/preview.tsx +0 -21
- package/src/components/content-panel.tsx +0 -58
- package/src/components/decorators.tsx +0 -53
- package/src/components/document-types.tsx +0 -49
- package/src/components/field.tsx +0 -530
- package/src/components/guide-content.tsx +0 -117
- package/src/components/guides.tsx +0 -36
- package/src/components/pane-header.tsx +0 -26
- package/src/components/sidebar-group.tsx +0 -30
- package/src/components/sidebar-tab.tsx +0 -78
- package/src/contexts/handbook-context.tsx +0 -84
- package/src/getting-started/document-types.tsx +0 -104
- package/src/getting-started/how-to-use.tsx +0 -95
- package/src/getting-started/overview.tsx +0 -65
- package/src/hooks/use-container-width.ts +0 -41
- package/src/hooks/use-handbook-configuration.ts +0 -74
- package/src/hooks/use-is-handbook-editor.ts +0 -18
- package/src/icons/book-open-text.tsx +0 -22
- package/src/icons/book-text.tsx +0 -19
- package/src/icons/code.tsx +0 -18
- package/src/icons/image.tsx +0 -19
- package/src/icons/info.tsx +0 -19
- package/src/icons/layout-grid.tsx +0 -20
- package/src/icons/lightbulb.tsx +0 -19
- package/src/icons/list-plus.tsx +0 -21
- package/src/icons/message-circle-question-mark.tsx +0 -19
- package/src/icons/minus.tsx +0 -17
- package/src/icons/triangle-alert.tsx +0 -19
- package/src/icons/video.tsx +0 -18
- package/src/index.ts +0 -145
- package/src/layouts/content.tsx +0 -13
- package/src/layouts/sidebar.tsx +0 -15
- package/src/layouts/tool.tsx +0 -205
- package/src/lib/handbook-structure.ts +0 -47
- package/src/lib/icons.ts +0 -16
- package/src/lib/utils.ts +0 -69
- package/src/schemas/annotations/link.ts +0 -19
- package/src/schemas/blocks/callout.ts +0 -69
- package/src/schemas/blocks/code.ts +0 -46
- package/src/schemas/blocks/horizontal-rule.ts +0 -31
- package/src/schemas/blocks/image.ts +0 -40
- package/src/schemas/blocks/video.ts +0 -34
- package/src/schemas/guide-content.ts +0 -58
- package/src/schemas/types/guide.ts +0 -48
- package/src/schemas/types/handbook.ts +0 -86
- 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.
|
|
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": "
|
|
61
|
-
"@sanity/plugin-kit": "
|
|
62
|
-
"@sanity/
|
|
63
|
-
"@types/node": "
|
|
64
|
-
"@types/react": "19.2.
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
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
|
-
"
|
|
75
|
-
"
|
|
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": ">=
|
|
81
|
+
"node": ">=20.19 <22 || >=22.12"
|
|
81
82
|
},
|
|
82
83
|
"sanityPlugin": {
|
|
83
84
|
"verifyPackage": {
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
85
|
+
"tsconfig": false,
|
|
86
|
+
"scripts": false,
|
|
87
|
+
"oxlint": false,
|
|
88
|
+
"oxfmt": false
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
91
|
}
|