@histoire/vendors 0.17.17 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/client/b-floating-vue.js +2175 -2150
  2. package/dist/client/b-iconify.js +663 -850
  3. package/dist/client/b-pinia.js +130 -68
  4. package/dist/client/b-scroll.js +3 -52
  5. package/dist/client/b-vue-router.js +385 -237
  6. package/dist/client/b-vue-use.js +4578 -3115
  7. package/dist/client/b-vue.js +1 -1
  8. package/dist/client/index.js +162 -20
  9. package/dist/client/node_modules/@babel/helper-string-parser/package.json +31 -0
  10. package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +31 -0
  11. package/dist/client/node_modules/@babel/parser/package.json +10 -6
  12. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +167 -188
  13. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2786 -0
  14. package/dist/client/node_modules/@babel/types/lib/index.d.ts +3286 -0
  15. package/dist/client/node_modules/@babel/types/package.json +39 -0
  16. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +525 -0
  17. package/dist/client/node_modules/@floating-ui/core/package.json +32 -39
  18. package/dist/client/node_modules/@floating-ui/dom/package.json +23 -24
  19. package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +31 -0
  20. package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +11 -7
  21. package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +1 -1
  22. package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +121 -20
  23. package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +1 -1
  24. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingRect.d.ts +12 -0
  25. package/dist/client/node_modules/@floating-ui/dom/src/utils/getCssDimensions.d.ts +4 -0
  26. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +1 -1
  27. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNearestOverflowAncestor.d.ts +1 -0
  28. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOverflowAncestors.d.ts +3 -0
  29. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScale.d.ts +7 -0
  30. package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -2
  31. package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -1
  32. package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +3 -1
  33. package/dist/client/node_modules/@floating-ui/dom/src/utils/unwrapElement.d.ts +2 -0
  34. package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +1 -0
  35. package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +1 -2
  36. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -0
  37. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
  38. package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
  39. package/dist/client/node_modules/@floating-ui/utils/dom/package.json +6 -0
  40. package/dist/client/node_modules/@floating-ui/utils/package.json +70 -0
  41. package/dist/client/node_modules/@iconify/types/package.json +23 -0
  42. package/dist/client/node_modules/@iconify/types/provider.d.ts +44 -0
  43. package/dist/client/node_modules/@iconify/types/types.d.ts +272 -0
  44. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +122 -327
  45. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +36 -269
  46. package/dist/client/node_modules/@iconify/vue/package.json +64 -60
  47. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
  48. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +2 -0
  49. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
  50. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
  51. package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +3 -2
  52. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +33 -14
  53. package/dist/client/node_modules/@types/web-bluetooth/package.json +12 -12
  54. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +218 -125
  55. package/dist/client/node_modules/@vue/compiler-core/package.json +20 -5
  56. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +6 -3
  57. package/dist/client/node_modules/@vue/compiler-dom/package.json +17 -3
  58. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +35 -25
  59. package/dist/client/node_modules/@vue/compiler-sfc/package.json +27 -18
  60. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +2 -2
  61. package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
  62. package/dist/client/node_modules/@vue/devtools-api/package.json +1 -1
  63. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +268 -166
  64. package/dist/client/node_modules/@vue/reactivity/package.json +16 -2
  65. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +728 -529
  66. package/dist/client/node_modules/@vue/runtime-core/package.json +17 -3
  67. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +195 -86
  68. package/dist/client/node_modules/@vue/runtime-dom/package.json +22 -4
  69. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +4 -8
  70. package/dist/client/node_modules/@vue/server-renderer/package.json +18 -4
  71. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +45 -30
  72. package/dist/client/node_modules/@vue/shared/package.json +15 -1
  73. package/dist/client/node_modules/@vueuse/core/index.d.ts +2323 -666
  74. package/dist/client/node_modules/@vueuse/core/package.json +22 -12
  75. package/dist/client/node_modules/@vueuse/metadata/index.d.ts +7 -5
  76. package/dist/client/node_modules/@vueuse/metadata/package.json +14 -7
  77. package/dist/client/node_modules/@vueuse/shared/index.d.ts +451 -280
  78. package/dist/client/node_modules/@vueuse/shared/package.json +17 -6
  79. package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +75 -0
  80. package/dist/client/node_modules/compute-scroll-into-view/package.json +35 -45
  81. package/dist/client/node_modules/entities/lib/decode.d.ts +211 -0
  82. package/dist/client/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
  83. package/dist/client/node_modules/entities/lib/encode.d.ts +22 -0
  84. package/dist/client/node_modules/entities/lib/escape.d.ts +43 -0
  85. package/dist/client/node_modules/entities/lib/esm/decode.d.ts +211 -0
  86. package/dist/client/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
  87. package/dist/client/node_modules/entities/lib/esm/encode.d.ts +22 -0
  88. package/dist/client/node_modules/entities/lib/esm/escape.d.ts +43 -0
  89. package/dist/client/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
  90. package/dist/client/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
  91. package/dist/client/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
  92. package/dist/client/node_modules/entities/lib/esm/index.d.ts +96 -0
  93. package/dist/client/node_modules/entities/lib/esm/package.json +1 -0
  94. package/dist/client/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
  95. package/dist/client/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
  96. package/dist/client/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
  97. package/dist/client/node_modules/entities/lib/index.d.ts +96 -0
  98. package/dist/client/node_modules/entities/package.json +90 -0
  99. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.d.ts +398 -0
  100. package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +398 -0
  101. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +225 -105
  102. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +471 -364
  103. package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +14 -25
  104. package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +392 -6
  105. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.d.ts +398 -0
  106. package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +49 -10
  107. package/dist/client/node_modules/floating-vue/dist/config.d.ts +1 -1
  108. package/dist/client/node_modules/floating-vue/dist/index.d.ts +2071 -247
  109. package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +2 -0
  110. package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +1 -1
  111. package/dist/client/node_modules/floating-vue/package.json +42 -33
  112. package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +250 -229
  113. package/dist/client/node_modules/magic-string/package.json +24 -26
  114. package/dist/client/node_modules/nanoid/package.json +1 -1
  115. package/dist/client/node_modules/picocolors/package.json +2 -2
  116. package/dist/client/node_modules/picocolors/types.d.ts +51 -0
  117. package/dist/client/node_modules/pinia/dist/pinia.d.ts +116 -37
  118. package/dist/client/node_modules/pinia/package.json +7 -11
  119. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +22 -19
  120. package/dist/client/node_modules/postcss/lib/comment.d.ts +6 -5
  121. package/dist/client/node_modules/postcss/lib/container.d.ts +72 -82
  122. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +1 -1
  123. package/dist/client/node_modules/postcss/lib/declaration.d.ts +16 -13
  124. package/dist/client/node_modules/postcss/lib/document.d.ts +4 -4
  125. package/dist/client/node_modules/postcss/lib/input.d.ts +28 -16
  126. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
  127. package/dist/client/node_modules/postcss/lib/list.d.ts +5 -2
  128. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
  129. package/dist/client/node_modules/postcss/lib/node.d.ts +19 -14
  130. package/dist/client/node_modules/postcss/lib/postcss.d.ts +25 -8
  131. package/dist/client/node_modules/postcss/lib/processor.d.ts +1 -1
  132. package/dist/client/node_modules/postcss/lib/result.d.ts +10 -11
  133. package/dist/client/node_modules/postcss/lib/root.d.ts +4 -4
  134. package/dist/client/node_modules/postcss/lib/rule.d.ts +22 -13
  135. package/dist/client/node_modules/postcss/package.json +4 -4
  136. package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +79 -0
  137. package/dist/client/node_modules/scroll-into-view-if-needed/package.json +28 -67
  138. package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
  139. package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
  140. package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +1 -0
  141. package/dist/client/node_modules/source-map-js/package.json +1 -1
  142. package/dist/client/node_modules/source-map-js/source-map.d.ts +88 -99
  143. package/dist/client/node_modules/vue/dist/vue.d.ts +0 -4
  144. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +2 -1
  145. package/dist/client/node_modules/vue/jsx.d.ts +2 -1
  146. package/dist/client/node_modules/vue/package.json +13 -14
  147. package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +1 -1
  148. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +410 -81
  149. package/dist/client/node_modules/vue-router/package.json +66 -37
  150. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +4 -0
  151. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +4 -0
  152. package/dist/client/vue.runtime.esm-bundler.js +6458 -4714
  153. package/package.json +17 -17
  154. package/rollup.config.mjs +6 -6
  155. package/dist/client/index2.js +0 -168
  156. package/dist/client/node_modules/@floating-ui/core/index.d.ts +0 -1
  157. package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +0 -1
  158. package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +0 -4
  159. package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +0 -2
  160. package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +0 -9
  161. package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +0 -4
  162. package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +0 -11
  163. package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +0 -6
  164. package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +0 -9
  165. package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +0 -10
  166. package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +0 -2
  167. package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +0 -5
  168. package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +0 -21
  169. package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +0 -32
  170. package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +0 -6
  171. package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +0 -148
  172. package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +0 -2
  173. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +0 -2
  174. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +0 -5
  175. package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +0 -2
  176. package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +0 -2
  177. package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +0 -2
  178. package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +0 -2
  179. package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +0 -2
  180. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +0 -2
  181. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +0 -1
  182. package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +0 -2
  183. package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +0 -2
  184. package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +0 -2
  185. package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +0 -1
  186. package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +0 -1
  187. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +0 -6
  188. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +0 -1
  189. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +0 -1
  190. package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +0 -43
  191. package/dist/client/node_modules/@vue/reactivity-transform/package.json +0 -41
  192. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +0 -47
  193. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/index.d.ts +0 -22
  194. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  195. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  196. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  197. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/package.json +0 -47
  198. package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +0 -19
  199. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +0 -25
  200. package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +0 -25
  201. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +0 -25
  202. package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +0 -1
  203. package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +0 -5
  204. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
  205. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  206. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  207. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  208. package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +0 -13
  209. package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +0 -19
  210. package/dist/client/node_modules/vue/macros-global.d.ts +0 -19
  211. package/dist/client/node_modules/vue/macros.d.ts +0 -112
  212. package/dist/client/node_modules/vue/ref-macros.d.ts +0 -2
  213. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
  214. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
  215. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
  216. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@floating-ui/dom",
3
- "version": "0.1.10",
3
+ "version": "1.1.1",
4
4
  "@rollingversions": {
5
5
  "baseVersion": [
6
6
  0,
7
- 0,
7
+ 1,
8
8
  0
9
9
  ]
10
10
  },
@@ -12,14 +12,22 @@
12
12
  "publishConfig": {
13
13
  "access": "public"
14
14
  },
15
- "main": "dist/floating-ui.dom.cjs",
16
- "module": "dist/floating-ui.dom.esm.js",
17
- "unpkg": "dist/floating-ui.dom.min.js",
18
- "type": "module",
15
+ "main": "./dist/floating-ui.dom.umd.js",
16
+ "module": "./dist/floating-ui.dom.esm.js",
17
+ "unpkg": "./dist/floating-ui.dom.umd.min.js",
18
+ "types": "./index.d.ts",
19
19
  "exports": {
20
20
  ".": {
21
- "import": "./dist/floating-ui.dom.esm.js",
22
- "require": "./dist/floating-ui.dom.cjs"
21
+ "types": "./index.d.ts",
22
+ "import": {
23
+ "browser": {
24
+ "development": "./dist/floating-ui.dom.browser.mjs",
25
+ "default": "./dist/floating-ui.dom.browser.min.mjs"
26
+ },
27
+ "default": "./dist/floating-ui.dom.mjs"
28
+ },
29
+ "module": "./dist/floating-ui.dom.esm.js",
30
+ "default": "./dist/floating-ui.dom.umd.js"
23
31
  },
24
32
  "./package.json": "./package.json"
25
33
  },
@@ -29,11 +37,10 @@
29
37
  "index.d.ts",
30
38
  "src/**/*.d.ts"
31
39
  ],
32
- "browserslist": "> 0.5%, not dead, not IE 11",
33
40
  "scripts": {
34
- "dev": "rollup -c -w",
41
+ "dev": "parcel test/visual/index.html",
35
42
  "build": "NODE_ENV=build rollup -c",
36
- "test": "jest test"
43
+ "test": "jest test/unit"
37
44
  },
38
45
  "author": "atomiks",
39
46
  "license": "MIT",
@@ -53,23 +60,15 @@
53
60
  "positioning"
54
61
  ],
55
62
  "dependencies": {
56
- "@floating-ui/core": "^0.3.0"
63
+ "@floating-ui/core": "^1.1.0"
57
64
  },
58
65
  "devDependencies": {
59
- "@babel/preset-env": "^7.16.4",
60
- "@babel/preset-typescript": "^7.16.0",
61
66
  "@playwright/test": "^1.16.3",
62
- "@rollup/plugin-replace": "^3.0.0",
63
- "@types/jest": "^27.0.3",
64
- "babel-plugin-annotate-pure-calls": "^0.4.0",
67
+ "@types/react": "^18.0.1",
65
68
  "concurrently": "^6.4.0",
66
- "jest": "^27.3.1",
67
- "react": "^17.0.2",
68
- "react-dom": "^17.0.2",
69
+ "react": "^18.0.0",
70
+ "react-dom": "^18.0.0",
69
71
  "react-router-dom": "^6.1.1",
70
- "rollup-plugin-terser": "^7.0.2",
71
- "serve": "^13.0.2",
72
- "ts-jest": "^27.0.7",
73
- "typescript": "^4.5.2"
72
+ "serve": "^13.0.2"
74
73
  }
75
74
  }
@@ -0,0 +1,31 @@
1
+ import type { FloatingElement, ReferenceElement } from './types';
2
+ export interface Options {
3
+ /**
4
+ * Whether to update the position when an overflow ancestor is scrolled.
5
+ * @default true
6
+ */
7
+ ancestorScroll: boolean;
8
+ /**
9
+ * Whether to update the position when an overflow ancestor is resized. This
10
+ * uses the native `resize` event.
11
+ * @default true
12
+ */
13
+ ancestorResize: boolean;
14
+ /**
15
+ * Whether to update the position when either the reference or floating
16
+ * elements resized. This uses a `ResizeObserver`.
17
+ * @default true
18
+ */
19
+ elementResize: boolean;
20
+ /**
21
+ * Whether to update on every animation frame if necessary. Optimized for
22
+ * performance so updates are only called when necessary, but use sparingly.
23
+ * @default false
24
+ */
25
+ animationFrame: boolean;
26
+ }
27
+ /**
28
+ * Automatically updates the position of the floating element when necessary.
29
+ * @see https://floating-ui.com/docs/autoUpdate
30
+ */
31
+ export declare function autoUpdate(reference: ReferenceElement, floating: FloatingElement, update: () => void, options?: Partial<Options>): () => void;
@@ -1,7 +1,11 @@
1
- import { ClientRectObject, ComputePositionConfig } from '@floating-ui/core';
2
- export declare const computePosition: (reference: Element | {
3
- getBoundingClientRect(): ClientRectObject;
4
- contextElement?: Element;
5
- }, floating: HTMLElement, options?: Partial<ComputePositionConfig>) => Promise<import("@floating-ui/core").ComputePositionReturn>;
6
- export { arrow, autoPlacement, flip, hide, offset, shift, limitShift, size, inline, detectOverflow, } from '@floating-ui/core';
7
- export { getScrollParents } from './utils/getScrollParents';
1
+ import type { ComputePositionConfig, FloatingElement, ReferenceElement } from './types';
2
+ /**
3
+ * Computes the `x` and `y` coordinates that will place the floating element
4
+ * next to a reference element when it is given a certain CSS positioning
5
+ * strategy.
6
+ */
7
+ export declare const computePosition: (reference: ReferenceElement, floating: FloatingElement, options?: Partial<ComputePositionConfig>) => Promise<import("@floating-ui/core").ComputePositionReturn>;
8
+ export { autoUpdate } from './autoUpdate';
9
+ export { platform } from './platform';
10
+ export { getOverflowAncestors } from './utils/getOverflowAncestors';
11
+ export { arrow, autoPlacement, detectOverflow, flip, hide, inline, limitShift, offset, shift, size, } from '@floating-ui/core';
@@ -1,2 +1,2 @@
1
- import type { Platform } from '@floating-ui/core';
1
+ import type { Platform } from './types';
2
2
  export declare const platform: Platform;
@@ -1,27 +1,128 @@
1
- import type { Middleware, MiddlewareArguments, SideObject } from '@floating-ui/core';
2
- import type { Options as DetectOverflowOptions } from '@floating-ui/core/src/detectOverflow';
3
- import type { Options as AutoPlacementOptions } from '@floating-ui/core/src/middleware/autoPlacement';
4
- import type { Options as SizeOptions } from '@floating-ui/core/src/middleware/size';
5
- import type { Options as FlipOptions } from '@floating-ui/core/src/middleware/flip';
6
- import type { Options as ShiftOptions } from '@floating-ui/core/src/middleware/shift';
7
- export declare type NodeScroll = {
1
+ import type { AutoPlacementOptions, ClientRectObject, ComputePositionConfig as CoreComputePositionConfig, DetectOverflowOptions as CoreDetectOverflowOptions, Dimensions, ElementRects, FlipOptions, HideOptions, Middleware as CoreMiddleware, MiddlewareArguments as CoreMiddlewareArguments, MiddlewareReturn, Padding, Rect, RootBoundary, ShiftOptions, SideObject, SizeOptions as CoreSizeOptions, Strategy } from '@floating-ui/core';
2
+ type Promisable<T> = T | Promise<T>;
3
+ export interface Platform {
4
+ getElementRects: (args: {
5
+ reference: ReferenceElement;
6
+ floating: FloatingElement;
7
+ strategy: Strategy;
8
+ }) => Promisable<ElementRects>;
9
+ getClippingRect: (args: {
10
+ element: Element;
11
+ boundary: Boundary;
12
+ rootBoundary: RootBoundary;
13
+ strategy: Strategy;
14
+ }) => Promisable<Rect>;
15
+ getDimensions: (element: Element) => Promisable<Dimensions>;
16
+ convertOffsetParentRelativeRectToViewportRelativeRect?: (args: {
17
+ rect: Rect;
18
+ offsetParent: Element;
19
+ strategy: Strategy;
20
+ }) => Promisable<Rect>;
21
+ getOffsetParent?: (element: Element) => Promisable<Element | Window>;
22
+ isElement?: (value: unknown) => Promisable<boolean>;
23
+ getDocumentElement?: (element: Element) => Promisable<HTMLElement>;
24
+ getClientRects?: (element: Element) => Promisable<Array<ClientRectObject>>;
25
+ isRTL?: (element: Element) => Promisable<boolean>;
26
+ getScale?: (element: HTMLElement) => Promisable<{
27
+ x: number;
28
+ y: number;
29
+ }>;
30
+ }
31
+ export interface NodeScroll {
8
32
  scrollLeft: number;
9
33
  scrollTop: number;
34
+ }
35
+ export type Boundary = 'clippingAncestors' | Element | Array<Element>;
36
+ export type DetectOverflowOptions = Omit<CoreDetectOverflowOptions, 'boundary'> & {
37
+ boundary: Boundary;
10
38
  };
11
- export declare type DOMDetectOverflowOptions = Omit<DetectOverflowOptions, 'boundary'> & {
12
- boundary: 'clippingParents' | Element | Array<Element>;
39
+ export type SizeOptions = Omit<CoreSizeOptions, 'apply'> & {
40
+ /**
41
+ * Function that is called to perform style mutations to the floating element
42
+ * to change its size.
43
+ * @default undefined
44
+ */
45
+ apply(args: MiddlewareArguments & {
46
+ availableWidth: number;
47
+ availableHeight: number;
48
+ }): Promisable<void>;
13
49
  };
14
- declare const autoPlacement: (options?: Partial<AutoPlacementOptions & DOMDetectOverflowOptions>) => Middleware;
15
- declare const shift: (options?: Partial<ShiftOptions & DOMDetectOverflowOptions>) => Middleware;
16
- declare const flip: (options?: Partial<FlipOptions & DOMDetectOverflowOptions>) => Middleware;
17
- declare const size: (options?: Partial<SizeOptions & DOMDetectOverflowOptions>) => Middleware;
50
+ export type ComputePositionConfig = Omit<CoreComputePositionConfig, 'middleware' | 'platform'> & {
51
+ middleware?: Array<Middleware | null | undefined | false>;
52
+ platform?: Platform;
53
+ };
54
+ /**
55
+ * Custom positioning reference element.
56
+ * @see https://floating-ui.com/docs/virtual-elements
57
+ */
58
+ export interface VirtualElement {
59
+ getBoundingClientRect(): ClientRectObject;
60
+ contextElement?: Element;
61
+ }
62
+ export type ReferenceElement = Element | VirtualElement;
63
+ export type FloatingElement = HTMLElement;
64
+ export interface Elements {
65
+ reference: ReferenceElement;
66
+ floating: FloatingElement;
67
+ }
68
+ export type MiddlewareArguments = Omit<CoreMiddlewareArguments, 'elements'> & {
69
+ elements: Elements;
70
+ };
71
+ export type Middleware = Omit<CoreMiddleware, 'fn'> & {
72
+ fn(args: MiddlewareArguments): Promisable<MiddlewareReturn>;
73
+ };
74
+ /**
75
+ * Automatically chooses the `placement` which has the most space available.
76
+ * @see https://floating-ui.com/docs/autoPlacement
77
+ */
78
+ declare const autoPlacement: (options?: Partial<AutoPlacementOptions & DetectOverflowOptions>) => Middleware;
79
+ /**
80
+ * Shifts the floating element in order to keep it in view when it will overflow
81
+ * a clipping boundary.
82
+ * @see https://floating-ui.com/docs/shift
83
+ */
84
+ declare const shift: (options?: Partial<ShiftOptions & DetectOverflowOptions>) => Middleware;
85
+ /**
86
+ * Changes the placement of the floating element to one that will fit if the
87
+ * initially specified `placement` does not.
88
+ * @see https://floating-ui.com/docs/flip
89
+ */
90
+ declare const flip: (options?: Partial<FlipOptions & DetectOverflowOptions>) => Middleware;
91
+ /**
92
+ * Provides data to change the size of the floating element. For instance,
93
+ * prevent it from overflowing its clipping boundary or match the width of the
94
+ * reference element.
95
+ * @see https://floating-ui.com/docs/size
96
+ */
97
+ declare const size: (options?: Partial<SizeOptions & DetectOverflowOptions>) => Middleware;
98
+ /**
99
+ * Positions an inner element of the floating element such that it is centered
100
+ * to the reference element.
101
+ * @see https://floating-ui.com/docs/arrow
102
+ */
18
103
  declare const arrow: (options: {
19
- element: HTMLElement;
20
- padding?: number | SideObject;
104
+ element: Element;
105
+ padding?: Padding;
21
106
  }) => Middleware;
22
- declare const detectOverflow: (middlewareArguments: MiddlewareArguments, options?: Partial<DOMDetectOverflowOptions>) => Promise<SideObject>;
23
- export { autoPlacement, shift, arrow, size, flip, detectOverflow };
24
- export { hide, offset, limitShift, inline } from '@floating-ui/core';
25
- export type { Platform, Placement, Strategy, Middleware, } from '@floating-ui/core';
107
+ /**
108
+ * Provides data to hide the floating element in applicable situations, such as
109
+ * when it is not in the same clipping context as the reference element.
110
+ * @see https://floating-ui.com/docs/hide
111
+ */
112
+ declare const hide: (options?: Partial<HideOptions & DetectOverflowOptions>) => Middleware;
113
+ /**
114
+ * Resolves with an object of overflow side offsets that determine how much the
115
+ * element is overflowing a given clipping boundary.
116
+ * - positive = overflowing the boundary by that number of pixels
117
+ * - negative = how many pixels left before it will overflow
118
+ * - 0 = lies flush with the boundary
119
+ * @see https://floating-ui.com/docs/detectOverflow
120
+ */
121
+ declare const detectOverflow: (middlewareArguments: MiddlewareArguments, options?: Partial<DetectOverflowOptions>) => Promise<SideObject>;
122
+ export { arrow, autoPlacement, detectOverflow, flip, hide, shift, size };
26
123
  export { computePosition } from './';
27
- export { getScrollParents } from './utils/getScrollParents';
124
+ export { autoUpdate, Options as AutoUpdateOptions } from './autoUpdate';
125
+ export { platform } from './platform';
126
+ export { getOverflowAncestors } from './utils/getOverflowAncestors';
127
+ export type { AlignedPlacement, Alignment, Axis, ClientRectObject, ComputePositionReturn, Coords, Dimensions, ElementContext, ElementRects, Length, MiddlewareData, MiddlewareReturn, Padding, Placement, Rect, RootBoundary, Side, SideObject, Strategy, } from '@floating-ui/core';
128
+ export { inline, limitShift, offset } from '@floating-ui/core';
@@ -1,2 +1,2 @@
1
1
  import type { ClientRectObject, VirtualElement } from '@floating-ui/core';
2
- export declare function getBoundingClientRect(element: Element | VirtualElement, includeScale?: boolean): ClientRectObject;
2
+ export declare function getBoundingClientRect(element: Element | VirtualElement, includeScale?: boolean, isFixedStrategy?: boolean, offsetParent?: Element | Window): ClientRectObject;
@@ -0,0 +1,12 @@
1
+ import type { Boundary, Rect, RootBoundary, Strategy } from '@floating-ui/core';
2
+ import { Platform, ReferenceElement } from '../types';
3
+ type PlatformWithCache = Platform & {
4
+ _c: Map<ReferenceElement, Element[]>;
5
+ };
6
+ export declare function getClippingRect(this: PlatformWithCache, { element, boundary, rootBoundary, strategy, }: {
7
+ element: Element;
8
+ boundary: Boundary;
9
+ rootBoundary: RootBoundary;
10
+ strategy: Strategy;
11
+ }): Rect;
12
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { Dimensions } from '@floating-ui/core';
2
+ export declare function getCssDimensions(element: HTMLElement): Dimensions & {
3
+ fallback: boolean;
4
+ };
@@ -1,2 +1,2 @@
1
1
  import type { Dimensions } from '@floating-ui/core';
2
- export declare function getDimensions(element: HTMLElement): Dimensions;
2
+ export declare function getDimensions(element: Element): Dimensions;
@@ -0,0 +1 @@
1
+ export declare function getNearestOverflowAncestor(node: Node): HTMLElement;
@@ -0,0 +1,3 @@
1
+ type OverflowAncestors = Array<Element | Window | VisualViewport>;
2
+ export declare function getOverflowAncestors(node: Node, list?: OverflowAncestors): OverflowAncestors;
3
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { Coords } from '@floating-ui/core';
2
+ import type { VirtualElement } from '../types';
3
+ export declare const FALLBACK_SCALE: {
4
+ x: number;
5
+ y: number;
6
+ };
7
+ export declare function getScale(element: Element | VirtualElement): Coords;
@@ -1,2 +1,2 @@
1
- import type { Rect } from '@floating-ui/core';
2
- export declare function getViewportRect(element: Element): Rect;
1
+ import type { Rect, Strategy } from '@floating-ui/core';
2
+ export declare function getViewportRect(element: Element, strategy: Strategy): Rect;
@@ -1 +1 @@
1
- export default function getWindowScrollBarX(element: Element): number;
1
+ export declare function getWindowScrollBarX(element: Element): number;
@@ -10,6 +10,8 @@ export declare function isHTMLElement(value: any): value is HTMLElement;
10
10
  export declare function isElement(value: any): value is Element;
11
11
  export declare function isNode(value: any): value is Node;
12
12
  export declare function isShadowRoot(node: Node): node is ShadowRoot;
13
- export declare function isScrollParent(element: HTMLElement): boolean;
13
+ export declare function isOverflowElement(element: Element): boolean;
14
14
  export declare function isTableElement(element: Element): boolean;
15
15
  export declare function isContainingBlock(element: Element): boolean;
16
+ export declare function isLayoutViewport(): boolean;
17
+ export declare function isLastTraversableNode(node: Node): boolean;
@@ -0,0 +1,2 @@
1
+ import type { VirtualElement } from '../types';
2
+ export declare function unwrapElement(element: Element | VirtualElement): Element | undefined;
@@ -0,0 +1 @@
1
+ export declare function getUAString(): string;
@@ -1,2 +1 @@
1
- export declare function isWindow(value: any): value is Window;
2
- export declare function getWindow(node: Node | Window): Window;
1
+ export declare function getWindow(node: Node): Window;
@@ -0,0 +1,103 @@
1
+ export declare type AlignedPlacement = `${Side}-${Alignment}`;
2
+
3
+ export declare type Alignment = 'start' | 'end';
4
+
5
+ export declare const alignments: Alignment[];
6
+
7
+ export declare type Axis = 'x' | 'y';
8
+
9
+ export declare function clamp(start: number, value: number, end: number): number;
10
+
11
+ export declare type ClientRectObject = Prettify<Rect & SideObject>;
12
+
13
+ export declare type Coords = {
14
+ [key in Axis]: number;
15
+ };
16
+
17
+ export declare const createCoords: (v: number) => {
18
+ x: number;
19
+ y: number;
20
+ };
21
+
22
+ export declare type Dimensions = {
23
+ [key in Length]: number;
24
+ };
25
+
26
+ export declare interface ElementRects {
27
+ reference: Rect;
28
+ floating: Rect;
29
+ }
30
+
31
+ export declare function evaluate<T, P>(value: T | ((param: P) => T), param: P): T;
32
+
33
+ export declare function expandPaddingObject(padding: Partial<SideObject>): SideObject;
34
+
35
+ export declare const floor: (x: number) => number;
36
+
37
+ export declare function getAlignment(placement: Placement): Alignment | undefined;
38
+
39
+ export declare function getAlignmentAxis(placement: Placement): Axis;
40
+
41
+ export declare function getAlignmentSides(placement: Placement, rects: ElementRects, rtl?: boolean): [Side, Side];
42
+
43
+ export declare function getAxisLength(axis: Axis): Length;
44
+
45
+ export declare function getExpandedPlacements(placement: Placement): Array<Placement>;
46
+
47
+ export declare function getOppositeAlignmentPlacement<T extends string>(placement: T): T;
48
+
49
+ export declare function getOppositeAxis(axis: Axis): Axis;
50
+
51
+ export declare function getOppositeAxisPlacements(placement: Placement, flipAlignment: boolean, direction: 'none' | Alignment, rtl?: boolean): Placement[];
52
+
53
+ export declare function getOppositePlacement<T extends string>(placement: T): T;
54
+
55
+ export declare function getPaddingObject(padding: Padding): SideObject;
56
+
57
+ export declare function getSide(placement: Placement): Side;
58
+
59
+ export declare function getSideAxis(placement: Placement): Axis;
60
+
61
+ export declare type Length = 'width' | 'height';
62
+
63
+ export declare const max: (...values: number[]) => number;
64
+
65
+ export declare const min: (...values: number[]) => number;
66
+
67
+ export declare type Padding = number | Prettify<Partial<SideObject>>;
68
+
69
+ export declare type Placement = Prettify<Side | AlignedPlacement>;
70
+
71
+ export declare const placements: Placement[];
72
+
73
+ declare type Prettify<T> = {
74
+ [K in keyof T]: T[K];
75
+ } & {};
76
+
77
+ export declare type Rect = Prettify<Coords & Dimensions>;
78
+
79
+ export declare function rectToClientRect(rect: Rect): ClientRectObject;
80
+
81
+ export declare const round: (x: number) => number;
82
+
83
+ export declare type Side = 'top' | 'right' | 'bottom' | 'left';
84
+
85
+ export declare type SideObject = {
86
+ [key in Side]: number;
87
+ };
88
+
89
+ export declare const sides: Side[];
90
+
91
+ export declare type Strategy = 'absolute' | 'fixed';
92
+
93
+ /**
94
+ * Custom positioning reference element.
95
+ * @see https://floating-ui.com/docs/virtual-elements
96
+ */
97
+ export declare interface VirtualElement {
98
+ getBoundingClientRect(): ClientRectObject;
99
+ getClientRects?(): Array<ClientRectObject>;
100
+ contextElement?: any;
101
+ }
102
+
103
+ export { }
@@ -0,0 +1,47 @@
1
+ declare function getComputedStyle_2(element: Element): CSSStyleDeclaration;
2
+ export { getComputedStyle_2 as getComputedStyle }
3
+
4
+ export declare function getContainingBlock(element: Element): HTMLElement | null;
5
+
6
+ export declare function getDocumentElement(node: Node | Window): HTMLElement;
7
+
8
+ export declare function getFrameElement(win: Window): Element | null;
9
+
10
+ export declare function getNearestOverflowAncestor(node: Node): HTMLElement;
11
+
12
+ export declare function getNodeName(node: Node | Window): string;
13
+
14
+ export declare function getNodeScroll(element: Element | Window): {
15
+ scrollLeft: number;
16
+ scrollTop: number;
17
+ };
18
+
19
+ export declare function getOverflowAncestors(node: Node, list?: OverflowAncestors, traverseIframes?: boolean): OverflowAncestors;
20
+
21
+ export declare function getParentNode(node: Node): Node;
22
+
23
+ export declare function getWindow(node: any): typeof window;
24
+
25
+ export declare function isContainingBlock(elementOrCss: Element | CSSStyleDeclaration): boolean;
26
+
27
+ export declare function isElement(value: unknown): value is Element;
28
+
29
+ export declare function isHTMLElement(value: unknown): value is HTMLElement;
30
+
31
+ export declare function isLastTraversableNode(node: Node): boolean;
32
+
33
+ export declare function isNode(value: unknown): value is Node;
34
+
35
+ export declare function isOverflowElement(element: Element): boolean;
36
+
37
+ export declare function isShadowRoot(value: unknown): value is ShadowRoot;
38
+
39
+ export declare function isTableElement(element: Element): boolean;
40
+
41
+ export declare function isTopLayer(element: Element): boolean;
42
+
43
+ export declare function isWebKit(): boolean;
44
+
45
+ declare type OverflowAncestors = Array<Element | Window | VisualViewport>;
46
+
47
+ export { }
@@ -0,0 +1,47 @@
1
+ declare function getComputedStyle_2(element: Element): CSSStyleDeclaration;
2
+ export { getComputedStyle_2 as getComputedStyle }
3
+
4
+ export declare function getContainingBlock(element: Element): HTMLElement | null;
5
+
6
+ export declare function getDocumentElement(node: Node | Window): HTMLElement;
7
+
8
+ export declare function getFrameElement(win: Window): Element | null;
9
+
10
+ export declare function getNearestOverflowAncestor(node: Node): HTMLElement;
11
+
12
+ export declare function getNodeName(node: Node | Window): string;
13
+
14
+ export declare function getNodeScroll(element: Element | Window): {
15
+ scrollLeft: number;
16
+ scrollTop: number;
17
+ };
18
+
19
+ export declare function getOverflowAncestors(node: Node, list?: OverflowAncestors, traverseIframes?: boolean): OverflowAncestors;
20
+
21
+ export declare function getParentNode(node: Node): Node;
22
+
23
+ export declare function getWindow(node: any): typeof window;
24
+
25
+ export declare function isContainingBlock(elementOrCss: Element | CSSStyleDeclaration): boolean;
26
+
27
+ export declare function isElement(value: unknown): value is Element;
28
+
29
+ export declare function isHTMLElement(value: unknown): value is HTMLElement;
30
+
31
+ export declare function isLastTraversableNode(node: Node): boolean;
32
+
33
+ export declare function isNode(value: unknown): value is Node;
34
+
35
+ export declare function isOverflowElement(element: Element): boolean;
36
+
37
+ export declare function isShadowRoot(value: unknown): value is ShadowRoot;
38
+
39
+ export declare function isTableElement(element: Element): boolean;
40
+
41
+ export declare function isTopLayer(element: Element): boolean;
42
+
43
+ export declare function isWebKit(): boolean;
44
+
45
+ declare type OverflowAncestors = Array<Element | Window | VisualViewport>;
46
+
47
+ export { }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "main": "floating-ui.utils.dom.umd.js",
4
+ "module": "floating-ui.utils.dom.esm.js",
5
+ "types": "floating-ui.utils.dom.d.ts"
6
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@floating-ui/utils",
3
+ "version": "0.2.9",
4
+ "description": "Utilities for Floating UI",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "main": "./dist/floating-ui.utils.umd.js",
9
+ "module": "./dist/floating-ui.utils.esm.js",
10
+ "types": "./dist/floating-ui.utils.d.ts",
11
+ "sideEffects": false,
12
+ "files": [
13
+ "dist",
14
+ "dom"
15
+ ],
16
+ "exports": {
17
+ "./package.json": "./package.json",
18
+ ".": {
19
+ "import": {
20
+ "types": "./dist/floating-ui.utils.d.mts",
21
+ "default": "./dist/floating-ui.utils.mjs"
22
+ },
23
+ "types": "./dist/floating-ui.utils.d.ts",
24
+ "module": "./dist/floating-ui.utils.esm.js",
25
+ "default": "./dist/floating-ui.utils.umd.js"
26
+ },
27
+ "./dom": {
28
+ "import": {
29
+ "types": "./dist/floating-ui.utils.dom.d.mts",
30
+ "default": "./dist/floating-ui.utils.dom.mjs"
31
+ },
32
+ "types": "./dist/floating-ui.utils.dom.d.ts",
33
+ "module": "./dist/floating-ui.utils.dom.esm.js",
34
+ "default": "./dist/floating-ui.utils.dom.umd.js"
35
+ }
36
+ },
37
+ "author": "atomiks",
38
+ "license": "MIT",
39
+ "bugs": "https://github.com/floating-ui/floating-ui",
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "https://github.com/floating-ui/floating-ui.git",
43
+ "directory": "packages/utils"
44
+ },
45
+ "homepage": "https://floating-ui.com",
46
+ "keywords": [
47
+ "tooltip",
48
+ "popover",
49
+ "dropdown",
50
+ "menu",
51
+ "popup",
52
+ "positioning"
53
+ ],
54
+ "devDependencies": {
55
+ "@testing-library/jest-dom": "^6.1.6",
56
+ "config": "0.0.0"
57
+ },
58
+ "scripts": {
59
+ "lint": "eslint .",
60
+ "format": "prettier --write .",
61
+ "clean": "rimraf dist out-tsc dom react",
62
+ "test": "vitest run --globals",
63
+ "test:watch": "vitest watch --globals",
64
+ "dev": "rollup -c -w",
65
+ "build": "rollup -c",
66
+ "build:api": "build-api --tsc tsconfig.lib.json --aec api-extractor.json --aec api-extractor.dom.json --aec api-extractor.react.json",
67
+ "publint": "publint",
68
+ "typecheck": "tsc -b"
69
+ }
70
+ }