Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/ui

Package Overview
Dependencies
Maintainers
47
Versions
440
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/ui - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3-canary.0

src/core/lib/createGlobalScopedContext.ts

3

dist/index.d.ts

@@ -5,2 +5,3 @@ /// <reference types="react" />

import {Component} from 'react'
import {Context} from 'react'
import {CSSObject} from '@sanity/ui/theme'

@@ -722,3 +723,3 @@ import {DetailedHTMLProps} from 'react'

*/
export declare const DialogContext: React.Context<DialogContextValue>
export declare const DialogContext: Context<DialogContextValue>

@@ -725,0 +726,0 @@ /**

{
"name": "@sanity/ui",
"version": "2.1.2",
"version": "2.1.3-canary.0",
"keywords": [

@@ -40,3 +40,2 @@ "sanity",

"module": "./dist/index.esm.js",
"source": "./exports/index.ts",
"types": "./dist/index.d.ts",

@@ -56,28 +55,2 @@ "typesVersions": {

],
"scripts": {
"build": "run-s clean pkg:build pkg:check figma:pkg:build",
"clean": "rimraf .workshop dist",
"commit": "cz",
"cypress:dev": "run-p dev cypress:open",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"dev": "run-p storybook:dev workshop:dev",
"figma:pkg:build": "cd figma && pnpm build",
"format": "prettier --write --cache --ignore-unknown .",
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx --quiet",
"pkg:build": "pkg build --strict",
"pkg:check": "pkg --strict",
"prepare": "husky install",
"prepublishOnly": "pnpm build",
"release": "semantic-release",
"storybook:build": "storybook build",
"storybook:dev": "storybook dev -p 6006",
"test": "jest",
"test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
"ts:check": "tsc",
"watch": "pkg watch --strict",
"workshop:build": "workshop build",
"workshop:dev": "workshop dev",
"workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
},
"commitlint": {

@@ -125,19 +98,19 @@ "extends": [

"@juggle/resize-observer": "^3.4.0",
"@sanity/pkg-utils": "^6.1.0",
"@sanity/pkg-utils": "^6.4.1",
"@sanity/semantic-release-preset": "^4.1.7",
"@sanity/ui-workshop": "^2.0.12",
"@storybook/addon-a11y": "^8.0.6",
"@storybook/addon-docs": "^8.0.6",
"@storybook/addon-essentials": "^8.0.6",
"@storybook/addon-interactions": "^8.0.6",
"@storybook/addon-links": "^8.0.6",
"@storybook/addon-storysource": "^8.0.6",
"@storybook/addon-themes": "^8.0.6",
"@storybook/blocks": "^8.0.6",
"@storybook/addon-a11y": "^8.0.7",
"@storybook/addon-docs": "^8.0.7",
"@storybook/addon-essentials": "^8.0.7",
"@storybook/addon-interactions": "^8.0.7",
"@storybook/addon-links": "^8.0.7",
"@storybook/addon-storysource": "^8.0.7",
"@storybook/addon-themes": "^8.0.7",
"@storybook/blocks": "^8.0.7",
"@storybook/jest": "^0.2.3",
"@storybook/manager-api": "^8.0.6",
"@storybook/react": "^8.0.6",
"@storybook/react-vite": "^8.0.6",
"@storybook/manager-api": "^8.0.7",
"@storybook/react": "^8.0.7",
"@storybook/react-vite": "^8.0.7",
"@storybook/testing-library": "^0.2.2",
"@storybook/theming": "^8.0.6",
"@storybook/theming": "^8.0.7",
"@testing-library/dom": "^9.3.4",

@@ -178,3 +151,3 @@ "@testing-library/jest-dom": "^5.17.0",

"prettier": "^3.2.5",
"prettier-plugin-packagejson": "^2.4.14",
"prettier-plugin-packagejson": "^2.5.0",
"react": "^18.2.0",

@@ -187,6 +160,6 @@ "react-dom": "^18.2.0",

"start-server-and-test": "^2.0.3",
"storybook": "^8.0.6",
"storybook": "^8.0.7",
"styled-components": "^6.1.8",
"tsconfig-paths": "^4.2.0",
"typescript": "5.4.2",
"typescript": "5.4.5",
"vite": "^5.2.8",

@@ -206,8 +179,31 @@ "vite-tsconfig-paths": "^4.3.2"

"publishConfig": {
"access": "public",
"provenance": true
"access": "public"
},
"esm.sh": {
"bundle": false
},
"scripts": {
"build": "run-s clean pkg:build pkg:check figma:pkg:build",
"clean": "rimraf .workshop dist",
"commit": "cz",
"cypress:dev": "run-p dev cypress:open",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"dev": "run-p storybook:dev workshop:dev",
"figma:pkg:build": "cd figma && pnpm build",
"format": "prettier --write --cache --ignore-unknown .",
"lint": "eslint . --ext .cjs,.js,.jsx,.mjs,.ts,.tsx --quiet",
"pkg:build": "pkg build --strict",
"pkg:check": "pkg --strict",
"release": "semantic-release",
"storybook:build": "storybook build",
"storybook:dev": "storybook dev -p 6006",
"test": "jest",
"test:browser": "start-server-and-test 'run-s workshop:build workshop:start' http://localhost:1337 'run-s cypress:run'",
"ts:check": "tsc",
"watch": "pkg watch --strict",
"workshop:build": "workshop build",
"workshop:dev": "workshop dev",
"workshop:start": "http-server -a localhost -c-0 -p 1337 -s -P http://localhost:1337/index.html? dist"
}
}
}

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

import {createContext} from 'react'
import {globalScope} from '../../lib/globalScope'
import {createGlobalScopedContext} from '../../lib/createGlobalScopedContext'
import {DialogPosition} from '../../types'

@@ -17,7 +16,7 @@

globalScope[key] = globalScope[key] || createContext<DialogContextValue>({version: 0.0})
/**
* @internal
*/
export const DialogContext: React.Context<DialogContextValue> = globalScope[key]
export const DialogContext = createGlobalScopedContext<DialogContextValue>(key, {
version: 0.0,
})

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

import {Context, createContext} from 'react'
import {globalScope} from '../lib/globalScope'
import {createGlobalScopedContext} from '../lib/createGlobalScopedContext'
import {ThemeContextValue} from './types'

@@ -7,7 +6,5 @@

globalScope[key] = globalScope[key] || createContext<ThemeContextValue | null>(null)
/**
* @internal
*/
export const ThemeContext: Context<ThemeContextValue | null> = globalScope[key]
export const ThemeContext = createGlobalScopedContext<ThemeContextValue | null>(key, null)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

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