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

@pluralsight/react-utils

Package Overview
Dependencies
Maintainers
0
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-3bc036 to 0.7.1-next-3c7795

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

202

package.json
{
"name": "@pluralsight/react-utils",
"version": "0.7.1-next-3bc036",
"description": "A set of React custom hooks for Pando.",
"main": "src/index.ts",
"module": "src/index.ts",
"exports": {
".": {
"import": "./src/index.ts",
"require": "./src/index.ts"
},
"./types": {
"types": "./src/types.ts"
}
},
"typesVersions": {
"*": {
"types": [
"src/types.ts"
]
}
},
"sideEffects": false,
"browserslist": "> 0.25%, not dead",
"scripts": {
"build": "bun run clean && bun run compile:types && bun run bundle && bun run clean:allUnused",
"bundle": "rollup --config rollup.config.mjs",
"clean": "bun run clean:bundles && bun run clean:types",
"clean:bundles": "rm -rf ./npm/browser && rm -rf ./npm/node",
"clean:types": "rm -rf ./npm/types",
"clean:allUnused": "bun run clean:unusedFiles && bun run clean:unusedDirs",
"clean:unusedFiles": "rm -rf npm/types/index.js",
"clean:unusedDirs": "bun run clean:unusedDirs:ru && bun run 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)\"",
"lint:js": "eslint --max-warnings 0 \"./**/*.@(ts|tsx)\"",
"lint:ts": "tsc --project tsconfig.json --noEmit",
"test": "jest --passWithNoTests"
},
"dependencies": {
"tslib": "latest"
},
"devDependencies": {
"@babel/preset-react": "^7.18.6",
"@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",
"@types/react": "latest",
"@types/react-dom": "latest",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"rollup": "^4.0.2",
"rollup-plugin-node-externals": "^6.0.1"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"keywords": [
"pluralsight",
"pluralsight design",
"pluralsight react utils",
"react",
"utils",
"react-utils",
"custom hooks",
"hooks",
"react hooks"
],
"publishConfig": {
"access": "public",
"main": "npm/node/index.js",
"module": "npm/browser/index.js",
"types": "npm/types/src/index.d.ts",
"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"
}
},
"typesVersions": {
"*": {
"types": [
"npm/types/src/types.d.ts"
]
}
}
},
"files": [
"npm/**/*"
],
"author": "Design System Team",
"bugs": {
"url": "https://github.com/pluralsight/pando/issues"
},
"homepage": "https://design.pluralsight.com/",
"repository": {
"type": "git",
"url": "https://github.com/pluralsight/pando.git",
"directory": "packages/react-utils"
},
"license": "Apache 2.0",
"packageManager": "bun@1.0.6"
}
"name": "@pluralsight/react-utils",
"version": "0.7.1-next-3c7795",
"description": "A set of React custom hooks for Pando.",
"browserslist": "> 0.25%, not dead",
"sideEffects": false,
"type": "module",
"main": "build/legacy/index.cjs",
"module": "build/legacy/index.js",
"publishConfig": {
"access": "public"
},
"files": [
"build/**/*",
"src/**/*"
],
"dependencies": {
"tslib": "latest"
},
"devDependencies": {
"@babel/preset-react": "^7.18.6",
"@babel/runtime": "^7.20.13",
"@microsoft/api-extractor": "^7.38.3",
"@types/react": "latest",
"@types/react-dom": "latest",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"tsup": "^8.0.1",
"@pando/configs": "0.0.0"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
},
"keywords": [
"pluralsight",
"pluralsight design",
"pluralsight react utils",
"react",
"utils",
"react-utils",
"custom hooks",
"hooks",
"react hooks"
],
"author": "Design System Team",
"bugs": {
"url": "https://github.com/pluralsight/pando/issues"
},
"homepage": "https://design.pluralsight.com/",
"repository": {
"type": "git",
"url": "https://github.com/pluralsight/pando.git",
"directory": "packages/react-utils"
},
"license": "Apache 2.0",
"scripts": {
"build": "tsup --experimental-dts",
"clean": "rm -rf ./build",
"lint:js": "eslint --max-warnings 0 \"./**/*.@(ts|tsx)\"",
"lint:ts": "tsc --project tsconfig.lint.json --noEmit",
"test": "jest --passWithNoTests"
},
"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