Socket
Socket
Sign inDemoInstall

@sanity/types

Package Overview
Dependencies
Maintainers
24
Versions
912
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/types - npm Package Compare versions

Comparing version 2.3.9-canary.32 to 2.4.0

17

lib/assets/types.d.ts

@@ -1,2 +0,2 @@

import React from 'react';
/// <reference types="react" />
import { Reference } from '../reference';

@@ -86,19 +86,8 @@ import { SanityDocument } from '../documents';

}
export declare type AssetFromSource = {
kind: 'assetDocumentId' | 'file' | 'base64' | 'url';
value: string | File;
assetDocumentProps?: ImageAsset;
};
export interface AssetSourceComponentProps {
selectedAssets: Asset[];
selectionType: 'single' | 'multiple';
onClose: () => void;
onSelect: (assetFromSource: AssetFromSource) => void;
}
export interface AssetSource {
name: string;
title: string;
component: React.ComponentType<AssetSourceComponentProps>;
icon?: React.ComponentType<void>;
component: React.ComponentType;
icon?: React.ComponentType;
}
//# sourceMappingURL=types.d.ts.map

2

lib/reference/types.d.ts

@@ -19,3 +19,3 @@ import { Path } from '../paths';

parentPath: Path;
}) => ReferenceFilterSearchOptions;
}) => ReferenceFilterSearchOptions | Promise<ReferenceFilterSearchOptions>;
export declare type ReferenceOptions = {

@@ -22,0 +22,0 @@ filter: ReferenceFilterResolver;

{
"name": "@sanity/types",
"version": "2.3.9-canary.32+b5227d2e67",
"version": "2.4.0",
"description": "Type definitions for common Sanity data structures",

@@ -37,3 +37,3 @@ "main": "lib/index.js",

"homepage": "https://www.sanity.io/",
"gitHead": "b5227d2e67064a4f9e9da6b4c8a8a73bd7e5c8c8"
"gitHead": "87053ba9970d6555fa09ea721479a9dbabd25a66"
}

@@ -195,2 +195,11 @@ /// <reference types="react" />

}
declare module 'part:@sanity/components/scroll' {
export {
ScrollContainer,
ScrollMonitor,
ScrollContextValue,
ScrollEventHandler,
useOnScroll,
} from './build-snapshot/__legacy/@sanity/components/scroll'
}
declare module 'part:@sanity/components/selects/custom' {

@@ -197,0 +206,0 @@ export {default} from './build-snapshot/__legacy/@sanity/components/selects/CustomSelect'

@@ -1,2 +0,1 @@

import React from 'react'
import {Reference} from '../reference'

@@ -109,20 +108,7 @@ import {SanityDocument} from '../documents'

export type AssetFromSource = {
kind: 'assetDocumentId' | 'file' | 'base64' | 'url'
value: string | File
assetDocumentProps?: ImageAsset
}
export interface AssetSourceComponentProps {
selectedAssets: Asset[]
selectionType: 'single' | 'multiple'
onClose: () => void
onSelect: (assetFromSource: AssetFromSource) => void
}
export interface AssetSource {
name: string
title: string
component: React.ComponentType<AssetSourceComponentProps>
icon?: React.ComponentType<void>
component: React.ComponentType
icon?: React.ComponentType
}

@@ -23,3 +23,3 @@ import {Path} from '../paths'

parentPath: Path
}) => ReferenceFilterSearchOptions
}) => ReferenceFilterSearchOptions | Promise<ReferenceFilterSearchOptions>

@@ -26,0 +26,0 @@ export type ReferenceOptions =

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc