@sanity/overlays
Advanced tools
Comparing version 2.3.16 to 2.3.17
@@ -39,2 +39,16 @@ <!-- markdownlint-disable --><!-- textlint-disable --> | ||
## [2.3.17](https://github.com/sanity-io/visual-editing/compare/overlays-v2.3.16...overlays-v2.3.17) (2024-02-16) | ||
### Bug Fixes | ||
* console warn about deprecation ([3c0d1e5](https://github.com/sanity-io/visual-editing/commit/3c0d1e5a4c7f109b60ec931b099b5e218999392b)) | ||
### Dependencies | ||
* The following workspace dependencies were updated | ||
* dependencies | ||
* @sanity/visual-editing bumped from 1.3.0 to 1.3.1 | ||
## [2.3.11](https://github.com/sanity-io/visual-editing/compare/overlays-v2.3.10...overlays-v2.3.11) (2024-02-05) | ||
@@ -41,0 +55,0 @@ |
@@ -1,1 +0,1 @@ | ||
import{createOverlayController as a,enableVisualEditing as e}from"@sanity/visual-editing";const i=a,t=e,r=e;export{i as createOverlayController,r as enableOverlays,t as enableVisualEditing};//# sourceMappingURL=index.js.map | ||
import{createOverlayController as e,enableVisualEditing as i}from"@sanity/visual-editing";const a=i=>(t(),e(i)),n=e=>(t(),i(e)),s=e=>(t(),i(e));function t(){console.warn("@sanity/overlays is deprecated. Use @sanity/visual-editing instead.")}export{a as createOverlayController,s as enableOverlays,n as enableVisualEditing};//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sanity/overlays", | ||
"version": "2.3.16", | ||
"version": "2.3.17", | ||
"keywords": [ | ||
@@ -110,6 +110,6 @@ "sanity.io", | ||
"dependencies": { | ||
"@sanity/visual-editing": "1.3.0" | ||
"@sanity/visual-editing": "1.3.1" | ||
}, | ||
"devDependencies": { | ||
"@sanity/pkg-utils": "^4.2.0", | ||
"@sanity/pkg-utils": "^4.2.2", | ||
"@types/react": "^18.2.55", | ||
@@ -116,0 +116,0 @@ "@types/react-dom": "^18.2.19", |
@@ -15,3 +15,8 @@ import { | ||
*/ | ||
export const createOverlayController = _createOverlayController | ||
export const createOverlayController: typeof _createOverlayController = ( | ||
options, | ||
) => { | ||
warn() | ||
return _createOverlayController(options) | ||
} | ||
@@ -21,3 +26,6 @@ /** | ||
*/ | ||
export const enableVisualEditing = _enableVisualEditing | ||
export const enableVisualEditing: typeof _enableVisualEditing = (options) => { | ||
warn() | ||
return _enableVisualEditing(options) | ||
} | ||
@@ -32,3 +40,6 @@ /** | ||
*/ | ||
export const enableOverlays = _enableVisualEditing | ||
export const enableOverlays: typeof _enableVisualEditing = (options) => { | ||
warn() | ||
return _enableVisualEditing(options) | ||
} | ||
@@ -60,1 +71,8 @@ /** | ||
export type ElementState = _ElementState | ||
function warn() { | ||
// eslint-disable-next-line no-console | ||
console.warn( | ||
'@sanity/overlays is deprecated. Use @sanity/visual-editing instead.', | ||
) | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
48398
124
+ Added@sanity/visual-editing@1.3.1(transitive)
+ Addedvalibot@0.28.1(transitive)
- Removed@sanity/visual-editing@1.3.0(transitive)
Updated@sanity/visual-editing@1.3.1