@sanity/preview-kit-compat
Advanced tools
Comparing version 1.4.17 to 1.4.18
@@ -39,2 +39,16 @@ <!-- markdownlint-disable --><!-- textlint-disable --> | ||
## [1.4.18](https://github.com/sanity-io/visual-editing/compare/preview-kit-compat-v1.4.17...preview-kit-compat-v1.4.18) (2024-04-19) | ||
### Bug Fixes | ||
* **deps:** update dependency @sanity/client to v6.15.19 ([#1374](https://github.com/sanity-io/visual-editing/issues/1374)) ([fde2034](https://github.com/sanity-io/visual-editing/commit/fde203405fe8899fd1bd241523853b732c095b37)) | ||
### Dependencies | ||
* The following workspace dependencies were updated | ||
* devDependencies | ||
* @repo/visual-editing-helpers bumped from 0.6.6 to 0.6.7 | ||
## [1.4.17](https://github.com/sanity-io/visual-editing/compare/preview-kit-compat-v1.4.16...preview-kit-compat-v1.4.17) (2024-04-17) | ||
@@ -41,0 +55,0 @@ |
@@ -1,3 +0,3 @@ | ||
import type { ContentSourceMapDocuments } from '@sanity/client/csm' | ||
import type { QueryParams } from '@sanity/client' | ||
import type {ContentSourceMapDocuments} from '@sanity/client/csm' | ||
import type {QueryParams} from '@sanity/client' | ||
@@ -26,5 +26,3 @@ /** | ||
*/ | ||
export declare function useQueryParams( | ||
params?: undefined | null | QueryParams, | ||
): QueryParams | ||
export declare function useQueryParams(params?: undefined | null | QueryParams): QueryParams | ||
@@ -31,0 +29,0 @@ /** |
{ | ||
"name": "@sanity/preview-kit-compat", | ||
"version": "1.4.17", | ||
"version": "1.4.18", | ||
"homepage": "https://github.com/sanity-io/visual-editing/tree/main/packages/preview-kit-compat#readme", | ||
@@ -35,9 +35,3 @@ "bugs": { | ||
"browserslist": "extends @sanity/browserslist-config", | ||
"prettier": { | ||
"plugins": [ | ||
"prettier-plugin-packagejson" | ||
], | ||
"semi": false, | ||
"singleQuote": true | ||
}, | ||
"prettier": "@sanity/prettier-config", | ||
"eslintConfig": { | ||
@@ -99,5 +93,5 @@ "parser": "@typescript-eslint/parser", | ||
"@repo/channels": "0.4.0", | ||
"@repo/visual-editing-helpers": "0.6.6", | ||
"@sanity/client": "^6.15.17", | ||
"@sanity/pkg-utils": "6.7.0", | ||
"@repo/visual-editing-helpers": "0.6.7", | ||
"@sanity/client": "^6.15.19", | ||
"@sanity/pkg-utils": "6.8.1", | ||
"@types/react": "^18.2.79", | ||
@@ -116,3 +110,3 @@ "@typescript-eslint/eslint-plugin": "^7.7.0", | ||
"peerDependencies": { | ||
"@sanity/client": "^6.15.17", | ||
"@sanity/client": "^6.15.19", | ||
"react": "^18.2.0" | ||
@@ -119,0 +113,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
import { type ChannelsNode, createChannelsNode } from '@repo/channels' | ||
import {type ChannelsNode, createChannelsNode} from '@repo/channels' | ||
import { | ||
@@ -7,4 +7,4 @@ type PresentationMsg, | ||
} from '@repo/visual-editing-helpers' | ||
import type { ContentSourceMapDocuments } from '@sanity/client/csm' | ||
import { useEffect, useState } from 'react' | ||
import type {ContentSourceMapDocuments} from '@sanity/client/csm' | ||
import {useEffect, useState} from 'react' | ||
@@ -20,5 +20,3 @@ /** | ||
): void { | ||
const [channel, setChannel] = useState< | ||
ChannelsNode<PreviewKitMsg, PresentationMsg> | undefined | ||
>() | ||
const [channel, setChannel] = useState<ChannelsNode<PreviewKitMsg, PresentationMsg> | undefined>() | ||
const [connected, setConnected] = useState(false) | ||
@@ -29,7 +27,3 @@ useEffect(() => { | ||
} | ||
const channel = createChannelsNode< | ||
VisualEditingConnectionIds, | ||
PreviewKitMsg, | ||
PresentationMsg | ||
>({ | ||
const channel = createChannelsNode<VisualEditingConnectionIds, PreviewKitMsg, PresentationMsg>({ | ||
id: 'preview-kit', | ||
@@ -36,0 +30,0 @@ connectTo: 'presentation', |
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
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
73511
132