package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {
  2. "_from": "scroll-into-view-if-needed@^2.2.28",
  3. "_id": "scroll-into-view-if-needed@2.2.31",
  4. "_inBundle": false,
  5. "_integrity": "sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==",
  6. "_location": "/scroll-into-view-if-needed",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "range",
  10. "registry": true,
  11. "raw": "scroll-into-view-if-needed@^2.2.28",
  12. "name": "scroll-into-view-if-needed",
  13. "escapedName": "scroll-into-view-if-needed",
  14. "rawSpec": "^2.2.28",
  15. "saveSpec": null,
  16. "fetchSpec": "^2.2.28"
  17. },
  18. "_requiredBy": [
  19. "/@wangeditor/core"
  20. ],
  21. "_resolved": "https://registry.npmmirror.com/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.31.tgz",
  22. "_shasum": "d3c482959dc483e37962d1521254e3295d0d1587",
  23. "_spec": "scroll-into-view-if-needed@^2.2.28",
  24. "_where": "E:\\qinduan\\mallbackinfrontend\\node_modules\\@wangeditor\\core",
  25. "author": {
  26. "name": "Cody Olsen"
  27. },
  28. "browserify": {
  29. "transform": [
  30. "loose-envify"
  31. ]
  32. },
  33. "bugs": {
  34. "url": "https://github.com/scroll-into-view/scroll-into-view-if-needed/issues"
  35. },
  36. "bundleDependencies": false,
  37. "bundlesize": [
  38. {
  39. "path": "./umd/scroll-into-view-if-needed.min.js",
  40. "maxSize": "3.3 kB",
  41. "compression": "none"
  42. }
  43. ],
  44. "dependencies": {
  45. "compute-scroll-into-view": "^1.0.20"
  46. },
  47. "deprecated": false,
  48. "description": "Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center",
  49. "devDependencies": {
  50. "@babel/cli": "^7.19.3",
  51. "@babel/core": "^7.20.5",
  52. "@babel/plugin-external-helpers": "^7.18.6",
  53. "@babel/preset-env": "^7.20.2",
  54. "@babel/preset-typescript": "^7.18.6",
  55. "@sanity/semantic-release-preset": "^2.0.2",
  56. "babel-eslint": "^10.1.0",
  57. "babel-plugin-add-module-exports": "^1.0.4",
  58. "babel-plugin-dev-expression": "^0.2.3",
  59. "concurrently": "^7.6.0",
  60. "cross-env": "^7.0.3",
  61. "eslint": "^8.28.0",
  62. "eslint-config-prettier": "^8.5.0",
  63. "eslint-plugin-import": "^2.26.0",
  64. "eslint-plugin-react": "^7.31.11",
  65. "flowgen": "^1.20.1",
  66. "husky": "^7.0.4",
  67. "lint-staged": "^12.5.0",
  68. "prettier": "^2.8.0",
  69. "prettier-plugin-packagejson": "^2.3.0",
  70. "rimraf": "^3.0.2",
  71. "rollup": "^2.79.1",
  72. "rollup-plugin-babel": "^4.4.0",
  73. "rollup-plugin-commonjs": "^10.1.0",
  74. "rollup-plugin-node-resolve": "^5.2.0",
  75. "rollup-plugin-replace": "^2.2.0",
  76. "rollup-plugin-terser": "^7.0.2",
  77. "tslint": "^5.20.1",
  78. "tslint-config-prettier": "^1.18.0",
  79. "typescript": "^4.9.3"
  80. },
  81. "exports": {
  82. ".": {
  83. "types": "./typings/index.d.ts",
  84. "source": "./src/index.ts",
  85. "import": "./es/index.js",
  86. "require": "./index.js",
  87. "default": "./es/index.js"
  88. },
  89. "./package.json": "./package.json"
  90. },
  91. "files": [
  92. "es",
  93. "typings",
  94. "umd"
  95. ],
  96. "homepage": "https://scroll-into-view.dev",
  97. "keywords": [
  98. "behavior-smooth",
  99. "if-needed",
  100. "polyfill",
  101. "ponyfill",
  102. "scroll",
  103. "scroll-into-view",
  104. "scrollIntoView",
  105. "scrollIntoViewIfNeeded",
  106. "scrollMode",
  107. "smooth",
  108. "smoothscroll",
  109. "typescript"
  110. ],
  111. "license": "MIT",
  112. "main": "index.js",
  113. "module": "es/index.js",
  114. "name": "scroll-into-view-if-needed",
  115. "prettier": {
  116. "semi": false,
  117. "singleQuote": true,
  118. "overrides": [
  119. {
  120. "files": ".babelrc",
  121. "options": {
  122. "parser": "json"
  123. }
  124. }
  125. ]
  126. },
  127. "repository": {
  128. "type": "git",
  129. "url": "git+https://github.com/scroll-into-view/scroll-into-view-if-needed.git"
  130. },
  131. "scripts": {
  132. "build": "npm run build:d.ts && npm run build:cjs && npm run build:es && npm run build:umd && npm run build:umd.min",
  133. "build:cjs": "cross-env BABEL_ENV=cjs babel src -d . --extensions '.ts'",
  134. "build:d.ts": "tsc --emitDeclarationOnly",
  135. "build:es": "cross-env BABEL_ENV=es babel src -d es --extensions '.ts'",
  136. "build:umd": "cross-env BABEL_ENV=umd NODE_ENV=development rollup -c -f umd -o umd/scroll-into-view-if-needed.js",
  137. "build:umd.min": "cross-env BABEL_ENV=umd NODE_ENV=production rollup -c -f umd -o umd/scroll-into-view-if-needed.min.js",
  138. "clean": "rimraf 'umd' 'es' 'typings'",
  139. "dev": "concurrently 'tsc --noEmit --watch' 'tsc --noEmit -p tests/typescript --watch' 'npm run build:cjs --watch' 'npm run build:es --watch' 'npm run build:umd --watch' 'npm run build:umd.min --watch'",
  140. "lint": "eslint ./integration-examples",
  141. "prebuild": "npm run clean",
  142. "precommit": "lint-staged",
  143. "prepublishOnly": "npm run build",
  144. "typecheck": "tsc --noEmit && tsc --noEmit -p tests/typescript"
  145. },
  146. "sideEffects": false,
  147. "typings": "typings/index.d.ts",
  148. "version": "2.2.31"
  149. }