@sanity/assist 1.2.4 → 1.2.6
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 +3 -0
- package/dist/index.cjs.mjs +6 -0
- package/package.json +23 -19
package/README.md
CHANGED
|
@@ -242,6 +242,9 @@ defineField({
|
|
|
242
242
|
This will add a "Generate caption" action to the configured field.
|
|
243
243
|
"Generate caption" action will automatically run whenever the image changes.
|
|
244
244
|
|
|
245
|
+
`captionField` can be a nested field, if the image has object field, ie `captionField: 'wrapper.caption'`.
|
|
246
|
+
Fields within array items are not supported.
|
|
247
|
+
|
|
245
248
|
## Third party sub-processors
|
|
246
249
|
|
|
247
250
|
This version of the feature uses OpenAI.com as a third-party sub-processor. Their security posture has been vetted by Sanity's security team, and approved for use.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/assist",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"source": "./src/index.ts",
|
|
24
24
|
"require": "./dist/index.js",
|
|
25
|
+
"node": {
|
|
26
|
+
"module": "./dist/index.esm.js",
|
|
27
|
+
"import": "./dist/index.cjs.mjs"
|
|
28
|
+
},
|
|
25
29
|
"import": "./dist/index.esm.js",
|
|
26
30
|
"default": "./dist/index.esm.js"
|
|
27
31
|
},
|
|
@@ -60,32 +64,32 @@
|
|
|
60
64
|
"rxjs-exhaustmap-with-trailing": "^2.1.1"
|
|
61
65
|
},
|
|
62
66
|
"devDependencies": {
|
|
63
|
-
"@commitlint/cli": "^17.
|
|
64
|
-
"@commitlint/config-conventional": "^17.
|
|
65
|
-
"@rollup/plugin-image": "^3.0.
|
|
66
|
-
"@sanity/pkg-utils": "^2.
|
|
67
|
-
"@sanity/plugin-kit": "^3.1.
|
|
68
|
-
"@sanity/semantic-release-preset": "^4.1.
|
|
69
|
-
"@types/react": "^18.
|
|
70
|
-
"@types/styled-components": "^5.1.
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
72
|
-
"@typescript-eslint/parser": "^5.
|
|
67
|
+
"@commitlint/cli": "^17.7.2",
|
|
68
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
69
|
+
"@rollup/plugin-image": "^3.0.3",
|
|
70
|
+
"@sanity/pkg-utils": "^2.4.10",
|
|
71
|
+
"@sanity/plugin-kit": "^3.1.10",
|
|
72
|
+
"@sanity/semantic-release-preset": "^4.1.4",
|
|
73
|
+
"@types/react": "^18.2.27",
|
|
74
|
+
"@types/styled-components": "^5.1.28",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
76
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
73
77
|
"date-fns": "^2.30.0",
|
|
74
|
-
"eslint": "^8.
|
|
75
|
-
"eslint-config-prettier": "^8.
|
|
78
|
+
"eslint": "^8.51.0",
|
|
79
|
+
"eslint-config-prettier": "^8.10.0",
|
|
76
80
|
"eslint-config-sanity": "^6.0.0",
|
|
77
81
|
"eslint-plugin-prettier": "^4.2.1",
|
|
78
|
-
"eslint-plugin-react": "^7.
|
|
82
|
+
"eslint-plugin-react": "^7.33.2",
|
|
79
83
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
80
84
|
"npm-run-all": "^4.1.5",
|
|
81
85
|
"react": "^18.2.0",
|
|
82
86
|
"react-dom": "^18.2.0",
|
|
83
87
|
"rimraf": "^4.4.0",
|
|
84
|
-
"sanity": "^3.
|
|
85
|
-
"semantic-release": "^21.
|
|
86
|
-
"styled-components": "^5.3.
|
|
87
|
-
"typescript": "^5.
|
|
88
|
-
"vitest": "^0.
|
|
88
|
+
"sanity": "^3.17.0",
|
|
89
|
+
"semantic-release": "^21.1.2",
|
|
90
|
+
"styled-components": "^5.3.11",
|
|
91
|
+
"typescript": "^5.2.2",
|
|
92
|
+
"vitest": "^0.34.6"
|
|
89
93
|
},
|
|
90
94
|
"peerDependencies": {
|
|
91
95
|
"react": "^18",
|