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.
Files changed (2) hide show
  1. package/README.md +51 -61
  2. 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
- "public_id": "29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x",
129
- "resource_type": "image",
130
- "type": "upload",
131
- "format": "jpg",
132
- "version": 1616474653,
133
- "url": "http://res.cloudinary.com/dzwiku20l/image/upload/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
134
- "secure_url": "https://res.cloudinary.com/dzwiku20l/image/upload/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
135
- "width": 2400,
136
- "height": 1344,
137
- "bytes": 547710,
138
- "duration": null,
139
- "tags": [],
140
- "context": {
141
- "custom": {
142
- "alt": "alternative text for image"
143
- }
144
- },
145
- "created_at": "2021-03-23T04:44:13Z",
146
- "access_mode": "public",
147
- "_version": 1,
148
- "_type": "cloudinary.asset"
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
- "public_id": "29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x",
163
- "resource_type": "image",
164
- "type": "upload",
165
- "format": "jpg",
166
- "version": 1616474653,
167
- "url": "http://res.cloudinary.com/dzwiku20l/image/upload/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
168
- "secure_url": "https://res.cloudinary.com/dzwiku20l/image/upload/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
169
- "width": 2400,
170
- "height": 1344,
171
- "bytes": 547710,
172
- "duration": null,
173
- "tags": null,
174
- "context": {
175
- "custom": {
176
- "alt": "alternative text for image"
177
- }
178
- },
179
- "created_at": "2021-03-23T04:44:13Z",
180
- "derived": [
181
- {
182
- "url": "http://res.cloudinary.com/dzwiku20l/image/upload/a_45/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
183
- "secure_url": "https://res.cloudinary.com/dzwiku20l/image/upload/a_45/v1616474653/29b4a88182b4cb50330011d23a29bcb371bd5886-2400x1344_lzcx7x.jpg",
184
- "raw_transformation": "a_45"
185
- }
186
- ],
187
- "access_mode": "public",
188
- "_version": 1,
189
- "_type": "cloudinary.asset"
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.0",
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": "^5.0 || ^6.0"
89
+ "sanity": "^3 || ^4.0.0-0",
90
+ "styled-components": "^6.0"
91
91
  },
92
92
  "engines": {
93
93
  "node": ">=14"