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

@pluralsight/react-utils

Package Overview
Dependencies
Maintainers
1
Versions
1213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluralsight/react-utils - npm Package Compare versions

Comparing version 0.7.1-next-2fd432 to 0.7.1-next-2fd5ac

build/legacy/_tsup-dts-rollup.d.cts

89

package.json
{
"name": "@pluralsight/react-utils",
"version": "0.7.1-next-2fd432",
"version": "0.7.1-next-2fd5ac",
"description": "A set of React custom hooks for Pando.",
"main": "npm/node/index.js",
"module": "npm/browser/index.js",
"exports": {
".": {
"import": "./npm/browser/index.js",
"require": "./npm/node/index.js",
"types": "./npm/types/src/index.d.ts"
},
"./types": {
"types": "./npm/types/src/types.d.ts"
}
"browserslist": "> 0.25%, not dead",
"sideEffects": false,
"type": "module",
"main": "build/legacy/index.cjs",
"module": "build/legacy/index.js",
"publishConfig": {
"access": "public"
},
"typesVersions": {
"*": {
"types": [
"npm/types/src/types.d.ts"
]
}
},
"sideEffects": false,
"browserslist": "> 0.25%, not dead",
"files": [
"build/**/*",
"src/**/*"
],
"dependencies": {

@@ -32,7 +23,3 @@ "tslib": "latest"

"@babel/runtime": "^7.20.13",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-replace": "^5.0.0",
"@microsoft/api-extractor": "^7.38.3",
"@types/react": "latest",

@@ -45,4 +32,4 @@ "@types/react-dom": "latest",

"react-dom": "18.2.0",
"rollup": "^3.2.2",
"rollup-plugin-node-externals": "^6.0.1"
"tsup": "^8.0.1",
"@pando/configs": "0.0.0"
},

@@ -64,8 +51,2 @@ "peerDependencies": {

],
"publishConfig": {
"access": "public"
},
"files": [
"npm/**/*"
],
"author": "Design System Team",

@@ -82,21 +63,31 @@ "bugs": {

"license": "Apache 2.0",
"packageManager": "pnpm@8.6.11",
"packageManager": "pnpm@8.15.1",
"scripts": {
"build": "pnpm clean && pnpm compile:types && pnpm bundle && pnpm clean:allUnused",
"bundle": "rollup --config rollup.config.mjs",
"clean": "pnpm clean:bundles && pnpm clean:types",
"clean:bundles": "rm -rf ./npm/browser && rm -rf ./npm/node",
"clean:types": "rm -rf ./npm/types",
"clean:allUnused": "pnpm clean:unusedFiles && pnpm clean:unusedDirs",
"clean:unusedFiles": "rm -rf npm/types/index.js",
"clean:unusedDirs": "pnpm clean:unusedDirs:ru && pnpm clean:unusedDirs:shared",
"clean:unusedDirs:ru": "rm -rf npm/types/react-utils",
"clean:unusedDirs:shared": "rm -rf npm/types/shared",
"compile:types": "tsc --project tsconfig.build.json",
"fix:js": "eslint --fix \"./**/*.@(ts|tsx)\"",
"build": "tsup --experimental-dts",
"clean": "rm -rf ./build",
"lint:js": "eslint --max-warnings 0 \"./**/*.@(ts|tsx)\"",
"lint:ts": "tsc --project tsconfig.json --noEmit",
"lint:ts": "tsc --project tsconfig.lint.json --noEmit",
"test": "jest --passWithNoTests"
},
"types": "npm/types/src/index.d.ts"
"types": "build/legacy/index.d.ts",
"exports": {
".": {
"import": {
"types": "./build/modern/index.d.ts",
"default": "./build/modern/index.js"
},
"require": {
"types": "./build/modern/index.d.cts",
"default": "./build/modern/index.cjs"
}
},
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
".": [
"npm/types/src/types.d.ts"
]
}
}
}

@@ -34,3 +34,3 @@ # React utils

There is no development sandbox for this specific project, but most of the time, we import the hooks into the [Headless Styles sandbox](https://github.com/pluralsight/pando/tree/main/packages/headless-styles/sandbox) which is [just as easy](https://github.com/pluralsight/pando/blob/main/packages/headless-styles/sandbox/src/components/Tabs.jsx#L2-L8).
There is no development sandbox for this specific project, but most of the time, we import the hooks into the [Headless Styles sandbox](https://github.com/ps-dev/pando/tree/main/packages/headless-styles/sandbox) which is [just as easy](https://github.com/ps-dev/pando/blob/main/packages/headless-styles/sandbox/src/components/Tabs.jsx#L2-L8).

@@ -40,3 +40,3 @@ From the **root directory of the project**, run:

```bash
pnpm start:sandbox
pnpm run start:sandbox
```

@@ -49,3 +49,3 @@

```bash
pnpm test
pnpm test packages/react-utils/tests
```

@@ -55,2 +55,2 @@

If you plan on contributing to this project, please take time to read our [CONTRIBUTING.md](https://github.com/pluralsight/pando/blob/main/CONTRIBUTING.md). Pull requests that do not adhere to the requirements in this doc will automatically be flagged and closed.
If you plan on contributing to this project, please take time to read our [CONTRIBUTING.md](https://github.com/ps-dev/pando/blob/main/CONTRIBUTING.md). Pull requests that do not adhere to the requirements in this doc will automatically be flagged and closed.

@@ -1,23 +0,9 @@

export { getCachedTheme, setCachedTheme } from './helpers/themeHelpers.ts'
export { getCachedTheme, setCachedTheme } from './helpers/themeHelpers'
// hooks
export { useAutoFormatDate } from './hooks/useAutoFormatDate.ts'
export { useEscToClose } from './hooks/useEscToClose.ts'
export { useFocusTrap } from './hooks/useFocusTrap.ts'
export { useIsIndeterminate } from './hooks/useIsIndeterminate.ts'
export { useMenuInteraction } from './hooks/menu/useMenuInteraction.ts'
export { usePreloadedImg } from './hooks/usePreloadedImg.ts'
export { useRovingTabIndex } from './hooks/useRovingTabIndex.ts'
export { useSubmenuInteraction } from './hooks/menu/useSubmenuInteraction.ts'
export { useTheme } from './hooks/useTheme.ts'
// Tabs
export { TabsProvider } from './hooks/useTabs/context.tsx'
export {
useTabList,
useTab,
usePanelList,
usePanel,
} from './hooks/useTabs/hooks.ts'
export { useAutoFormatDate } from './hooks/useAutoFormatDate'
export { useEscToClose } from './hooks/useEscToClose'
export { useFocusTrap } from './hooks/useFocusTrap'
export { useIsIndeterminate } from './hooks/useIsIndeterminate'
export { usePreloadedImg } from './hooks/usePreloadedImg'
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