sanity-plugin-media 2.0.0 → 2.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-media",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "This version of `sanity-plugin-media` is for Sanity Studio V3.",
5
5
  "keywords": [
6
6
  "sanity",
@@ -57,7 +57,7 @@
57
57
  "@hookform/resolvers": "2.0.0-beta.3",
58
58
  "@reduxjs/toolkit": "^1.9.0",
59
59
  "@sanity/incompatible-plugin": "^1.0.4",
60
- "@sanity/ui": "1.0.0-beta.32",
60
+ "@sanity/ui": "^1.0.0",
61
61
  "@tanem/react-nprogress": "^5.0.0",
62
62
  "copy-to-clipboard": "^3.3.1",
63
63
  "date-fns": "^2.27.0",
@@ -81,8 +81,8 @@
81
81
  "@commitlint/cli": "^17.2.0",
82
82
  "@commitlint/config-conventional": "^17.2.0",
83
83
  "@sanity/client": "^3.4.1",
84
- "@sanity/color": "^2.1.8",
85
- "@sanity/icons": "^1.2.5",
84
+ "@sanity/color": "^2.1.20",
85
+ "@sanity/icons": "^2.0.0",
86
86
  "@sanity/pkg-utils": "^1.17.2",
87
87
  "@sanity/plugin-kit": "^2.1.16",
88
88
  "@sanity/semantic-release-preset": "^2.0.2",
@@ -110,17 +110,17 @@
110
110
  "react": "^18",
111
111
  "react-dom": "^18",
112
112
  "rimraf": "^3.0.2",
113
- "sanity": "3.0.0-rc.2",
113
+ "sanity": "3.0.0-rc.3",
114
114
  "standard-version": "^9.5.0",
115
115
  "styled-components": "^5.3.3",
116
116
  "typescript": "^4.8.4"
117
117
  },
118
118
  "peerDependencies": {
119
- "@sanity/color": "^2.1.8",
120
- "@sanity/icons": "^1.2.8",
119
+ "@sanity/color": "^2.1.20",
120
+ "@sanity/icons": "^2.0.0",
121
121
  "react": "^18",
122
122
  "react-dom": "^18",
123
- "sanity": "dev-preview || 3.0.0-rc.2",
123
+ "sanity": "dev-preview || 3.0.0-rc.3",
124
124
  "styled-components": "^5.3.3"
125
125
  },
126
126
  "engines": {
@@ -1,13 +1,7 @@
1
1
  import type {SanityDocument} from '@sanity/client'
2
2
  import {Box, Button, Card, Stack, Text} from '@sanity/ui'
3
3
  import React from 'react'
4
- import {
5
- SanityPreview,
6
- SchemaType,
7
- useDocumentStore,
8
- useSchema,
9
- WithReferringDocuments
10
- } from 'sanity'
4
+ import {Preview, SchemaType, useDocumentStore, useSchema, WithReferringDocuments} from 'sanity'
11
5
  import {useIntentLink} from 'sanity/router'
12
6
 
13
7
  type Props = {
@@ -72,7 +66,7 @@ const ReferringDocument = (props: {doc: SanityDocument; schemaType?: SchemaType}
72
66
 
73
67
  return schemaType ? (
74
68
  <Button key={doc._id} mode="bleed" onClick={onClick} padding={2} style={{width: '100%'}}>
75
- <SanityPreview layout="default" schemaType={schemaType} value={doc} />
69
+ <Preview layout="default" schemaType={schemaType} value={doc} />
76
70
  </Button>
77
71
  ) : (
78
72
  <Box padding={2}>