sanity-plugin-cloudinary 1.3.0 → 1.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 +51 -61
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
# sanity-plugin-cloudinary
|
|
2
2
|
|
|
3
|
-
> This is a **Sanity Studio v3** plugin.
|
|
4
|
-
> This combines the sanity-plugin-cloudinary AND sanity-plugin-asset-source-cloudinary plugins previously for V2,
|
|
5
|
-
> into a single plugin for V3.
|
|
6
|
-
>
|
|
7
|
-
> For the v2 versions of these, please refer to the
|
|
8
|
-
> [v2-branch for sanity-plugin-cloudinary](https://github.com/sanity-io/sanity-plugin-cloudinary/tree/studio-v2) and
|
|
9
|
-
> [sanity-plugin-asset-source-cloudinary](https://github.com/sanity-io/sanity-plugin-asset-source-cloudinary).
|
|
10
|
-
|
|
11
3
|
## Installation
|
|
12
4
|
|
|
13
5
|
```
|
|
@@ -118,35 +110,34 @@ If you use this type in an array, you will have additional array functions for a
|
|
|
118
110
|
|
|
119
111
|
<img width="571" alt="image" src="https://user-images.githubusercontent.com/835514/223700970-ee536da7-57b1-4ada-add7-57d7179f462e.png">
|
|
120
112
|
|
|
121
|
-
|
|
122
113
|
## Content
|
|
123
114
|
|
|
124
115
|
Here is an example of which data is stored on your document after selecting an asset.
|
|
125
116
|
|
|
126
117
|
```json
|
|
127
118
|
{
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
119
|
+
"public_id": "29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x",
|
|
120
|
+
"resource_type": "image",
|
|
121
|
+
"type": "upload",
|
|
122
|
+
"format": "jpg",
|
|
123
|
+
"version": 1616474653,
|
|
124
|
+
"url": "http://res.cloudinary.com/dzwiku20l/image/upload/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
|
|
125
|
+
"secure_url": "https://res.cloudinary.com/dzwiku20l/image/upload/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
|
|
126
|
+
"width": 2400,
|
|
127
|
+
"height": 1344,
|
|
128
|
+
"bytes": 547710,
|
|
129
|
+
"duration": null,
|
|
130
|
+
"tags": [],
|
|
131
|
+
"context": {
|
|
132
|
+
"custom": {
|
|
133
|
+
"alt": "alternative text for image"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"created_at": "2021-03-23T04:44:13Z",
|
|
137
|
+
"access_mode": "public",
|
|
138
|
+
"_version": 1,
|
|
139
|
+
"_type": "cloudinary.asset"
|
|
140
|
+
}
|
|
150
141
|
```
|
|
151
142
|
|
|
152
143
|
Note: The `_version` in the data here refers to the schema version of this plugin, should the way it stores the data from Cloudinary change in the future.
|
|
@@ -159,35 +150,35 @@ You can create a transformation when selecting the asset, and this information i
|
|
|
159
150
|
|
|
160
151
|
```json
|
|
161
152
|
{
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
153
|
+
"public_id": "29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x",
|
|
154
|
+
"resource_type": "image",
|
|
155
|
+
"type": "upload",
|
|
156
|
+
"format": "jpg",
|
|
157
|
+
"version": 1616474653,
|
|
158
|
+
"url": "http://res.cloudinary.com/dzwiku20l/image/upload/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
|
|
159
|
+
"secure_url": "https://res.cloudinary.com/dzwiku20l/image/upload/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
|
|
160
|
+
"width": 2400,
|
|
161
|
+
"height": 1344,
|
|
162
|
+
"bytes": 547710,
|
|
163
|
+
"duration": null,
|
|
164
|
+
"tags": null,
|
|
165
|
+
"context": {
|
|
166
|
+
"custom": {
|
|
167
|
+
"alt": "alternative text for image"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"created_at": "2021-03-23T04:44:13Z",
|
|
171
|
+
"derived": [
|
|
172
|
+
{
|
|
173
|
+
"url": "http://res.cloudinary.com/dzwiku20l/image/upload/a_45/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
|
|
174
|
+
"secure_url": "https://res.cloudinary.com/dzwiku20l/image/upload/a_45/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
|
|
175
|
+
"raw_transformation": "a_45"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"access_mode": "public",
|
|
179
|
+
"_version": 1,
|
|
180
|
+
"_type": "cloudinary.asset"
|
|
181
|
+
}
|
|
191
182
|
```
|
|
192
183
|
|
|
193
184
|
## Video
|
|
@@ -236,4 +227,3 @@ Run ["CI & Release" workflow](https://github.com/sanity-io/sanity-plugin-cloudin
|
|
|
236
227
|
Make sure to select the main branch and check "Release new version".
|
|
237
228
|
|
|
238
229
|
Semantic release will only release on configured branches, so it is safe to run release on any branch.
|
|
239
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sanity-plugin-cloudinary",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Cloudinary integration for Sanity Studio V3.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"react": "^18.3 || ^19",
|
|
88
88
|
"react-dom": "^18.3 || ^19",
|
|
89
|
-
"sanity": "^3",
|
|
90
|
-
"styled-components": "^
|
|
89
|
+
"sanity": "^3 || ^4.0.0-0",
|
|
90
|
+
"styled-components": "^6.0"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|
|
93
93
|
"node": ">=14"
|