Socket
Socket
Sign inDemoInstall

@sanity/ui

Package Overview
Dependencies
Maintainers
41
Versions
407
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 1.9.0 to 1.9.3

src/primitives/tooltip/__workshop__/customPortal.tsx

10

package.json
{
"name": "@sanity/ui",
"version": "1.9.0",
"version": "1.9.3",
"sideEffects": false,

@@ -47,4 +47,4 @@ "types": "./dist/index.d.ts",

"watch": "pkg watch --strict",
"workshop:build": "node -r esbuild-register -r tsconfig-paths/register scripts/build",
"workshop:dev": "node -r esbuild-register -r tsconfig-paths/register scripts/dev",
"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"

@@ -70,3 +70,3 @@ },

"@sanity/semantic-release-preset": "^4.1.4",
"@sanity/ui-workshop": "^1.2.11",
"@sanity/ui-workshop": "^2.0.0",
"@testing-library/dom": "^9.3.1",

@@ -89,4 +89,2 @@ "@testing-library/jest-dom": "^5.17.0",

"cz-conventional-changelog": "^3.3.0",
"esbuild": "^0.19.2",
"esbuild-register": "^3.4.2",
"eslint": "^8.48.0",

@@ -93,0 +91,0 @@ "eslint-config-prettier": "^9.0.0",

@@ -13,3 +13,18 @@ import {defineScope} from '@sanity/ui-workshop'

},
{
name: 'resizableBoundary',
title: 'Resizable Boundary',
component: lazy(() => import('./resizableBoundary')),
},
{
name: 'overflowBoundary',
title: 'Overflowing Boundary',
component: lazy(() => import('./overflowingBoundary')),
},
{
name: 'customPortalStory',
title: 'Custom Portal',
component: lazy(() => import('./customPortal')),
},
],
})

1

src/primitives/tooltip/constants.ts
import {Placement} from '@floating-ui/react-dom'
export const DEFAULT_TOOLTIP_PADDING = 4
export const DEFAULT_FALLBACK_PLACEMENTS: Record<Placement, Placement[]> = {

@@ -4,0 +5,0 @@ top: ['bottom', 'left', 'right'],

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

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