JSPM

@react-spring/shared

9.0.0-canary.809.3.a66b280
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2293084
  • Score
    100M100P100Q198069F
  • License MIT

Globals and shared modules

Package Exports

  • @react-spring/shared
  • @react-spring/shared/colors
  • @react-spring/shared/deprecations
  • @react-spring/shared/globals
  • @react-spring/shared/index.js
  • @react-spring/shared/stringInterpolation
  • @react-spring/shared/types

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@react-spring/shared) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@react-spring/shared

This package contains modules which are not imported by the main module.

  • @react-spring/shared/colorMatchers Regular expressions for color strings

  • @react-spring/shared/colors The dictionary of named colors and their numeric values

  • @react-spring/shared/normalizeColor Converts named colors, hexadecimal colors, rgba strings, and hsla strings into their numeric values

  • @react-spring/shared/stringInterpolation Exports the createStringInterpolator function (with color support)

Main module

Import @react-spring/shared to access these named imports:

  • Globals object (updated with its assign method)
  • createInterpolator function
  • is functions (for runtime type checks)
  • Utility hooks (like useForceUpdate)
  • Every type in src/types