@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
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@babel/types",
3
+ "version": "7.26.9",
4
+ "description": "Babel Types is a Lodash-esque utility library for AST nodes",
5
+ "author": "The Babel Team (https://babel.dev/team)",
6
+ "homepage": "https://babel.dev/docs/en/next/babel-types",
7
+ "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20types%22+is%3Aopen",
8
+ "license": "MIT",
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/babel/babel.git",
15
+ "directory": "packages/babel-types"
16
+ },
17
+ "main": "./lib/index.js",
18
+ "dependencies": {
19
+ "@babel/helper-string-parser": "^7.25.9",
20
+ "@babel/helper-validator-identifier": "^7.25.9"
21
+ },
22
+ "devDependencies": {
23
+ "@babel/generator": "^7.26.9",
24
+ "@babel/parser": "^7.26.9",
25
+ "glob": "^7.2.0"
26
+ },
27
+ "engines": {
28
+ "node": ">=6.9.0"
29
+ },
30
+ "type": "commonjs",
31
+ "types": "./lib/index-legacy.d.ts",
32
+ "typesVersions": {
33
+ ">=4.1": {
34
+ "lib/index-legacy.d.ts": [
35
+ "lib/index.d.ts"
36
+ ]
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,525 @@
1
+ import { AlignedPlacement } from '@floating-ui/utils';
2
+ import { Alignment } from '@floating-ui/utils';
3
+ import { Axis } from '@floating-ui/utils';
4
+ import { ClientRectObject } from '@floating-ui/utils';
5
+ import { Coords } from '@floating-ui/utils';
6
+ import { Dimensions } from '@floating-ui/utils';
7
+ import { ElementRects } from '@floating-ui/utils';
8
+ import { Length } from '@floating-ui/utils';
9
+ import { Padding } from '@floating-ui/utils';
10
+ import { Placement } from '@floating-ui/utils';
11
+ import { Rect } from '@floating-ui/utils';
12
+ import { rectToClientRect } from '@floating-ui/utils';
13
+ import { Side } from '@floating-ui/utils';
14
+ import { SideObject } from '@floating-ui/utils';
15
+ import { Strategy } from '@floating-ui/utils';
16
+ import { VirtualElement } from '@floating-ui/utils';
17
+
18
+ export { AlignedPlacement }
19
+
20
+ export { Alignment }
21
+
22
+ /**
23
+ * Provides data to position an inner element of the floating element so that it
24
+ * appears centered to the reference element.
25
+ * @see https://floating-ui.com/docs/arrow
26
+ */
27
+ export declare const arrow: (options: ArrowOptions | Derivable<ArrowOptions>) => Middleware;
28
+
29
+ export declare interface ArrowOptions {
30
+ /**
31
+ * The arrow element to be positioned.
32
+ * @default undefined
33
+ */
34
+ element: any;
35
+ /**
36
+ * The padding between the arrow element and the floating element edges.
37
+ * Useful when the floating element has rounded corners.
38
+ * @default 0
39
+ */
40
+ padding?: Padding;
41
+ }
42
+
43
+ /**
44
+ * Optimizes the visibility of the floating element by choosing the placement
45
+ * that has the most space available automatically, without needing to specify a
46
+ * preferred placement. Alternative to `flip`.
47
+ * @see https://floating-ui.com/docs/autoPlacement
48
+ */
49
+ export declare const autoPlacement: (options?: AutoPlacementOptions | Derivable<AutoPlacementOptions>) => Middleware;
50
+
51
+ export declare interface AutoPlacementOptions extends DetectOverflowOptions {
52
+ /**
53
+ * The axis that runs along the alignment of the floating element. Determines
54
+ * whether to check for most space along this axis.
55
+ * @default false
56
+ */
57
+ crossAxis?: boolean;
58
+ /**
59
+ * Choose placements with a particular alignment.
60
+ * @default undefined
61
+ */
62
+ alignment?: Alignment | null;
63
+ /**
64
+ * Whether to choose placements with the opposite alignment if the preferred
65
+ * alignment does not fit.
66
+ * @default true
67
+ */
68
+ autoAlignment?: boolean;
69
+ /**
70
+ * Which placements are allowed to be chosen. Placements must be within the
71
+ * `alignment` option if explicitly set.
72
+ * @default allPlacements (variable)
73
+ */
74
+ allowedPlacements?: Array<Placement>;
75
+ }
76
+
77
+ export { Axis }
78
+
79
+ export declare type Boundary = any;
80
+
81
+ export { ClientRectObject }
82
+
83
+ export declare type ComputePosition = (reference: unknown, floating: unknown, config: ComputePositionConfig) => Promise<ComputePositionReturn>;
84
+
85
+ /**
86
+ * Computes the `x` and `y` coordinates that will place the floating element
87
+ * next to a given reference element.
88
+ *
89
+ * This export does not have any `platform` interface logic. You will need to
90
+ * write one for the platform you are using Floating UI with.
91
+ */
92
+ export declare const computePosition: ComputePosition;
93
+
94
+ export declare interface ComputePositionConfig {
95
+ /**
96
+ * Object to interface with the current platform.
97
+ */
98
+ platform: Platform;
99
+ /**
100
+ * Where to place the floating element relative to the reference element.
101
+ */
102
+ placement?: Placement;
103
+ /**
104
+ * The strategy to use when positioning the floating element.
105
+ */
106
+ strategy?: Strategy;
107
+ /**
108
+ * Array of middleware objects to modify the positioning or provide data for
109
+ * rendering.
110
+ */
111
+ middleware?: Array<Middleware | null | undefined | false>;
112
+ }
113
+
114
+ export declare interface ComputePositionReturn extends Coords {
115
+ /**
116
+ * The final chosen placement of the floating element.
117
+ */
118
+ placement: Placement;
119
+ /**
120
+ * The strategy used to position the floating element.
121
+ */
122
+ strategy: Strategy;
123
+ /**
124
+ * Object containing data returned from all middleware, keyed by their name.
125
+ */
126
+ middlewareData: MiddlewareData;
127
+ }
128
+
129
+ export { Coords }
130
+
131
+ /**
132
+ * Function option to derive middleware options from state.
133
+ */
134
+ export declare type Derivable<T> = (state: MiddlewareState) => T;
135
+
136
+ /**
137
+ * Resolves with an object of overflow side offsets that determine how much the
138
+ * element is overflowing a given clipping boundary on each side.
139
+ * - positive = overflowing the boundary by that number of pixels
140
+ * - negative = how many pixels left before it will overflow
141
+ * - 0 = lies flush with the boundary
142
+ * @see https://floating-ui.com/docs/detectOverflow
143
+ */
144
+ export declare function detectOverflow(state: MiddlewareState, options?: DetectOverflowOptions | Derivable<DetectOverflowOptions>): Promise<SideObject>;
145
+
146
+ export declare interface DetectOverflowOptions {
147
+ /**
148
+ * The clipping element(s) or area in which overflow will be checked.
149
+ * @default 'clippingAncestors'
150
+ */
151
+ boundary?: Boundary;
152
+ /**
153
+ * The root clipping area in which overflow will be checked.
154
+ * @default 'viewport'
155
+ */
156
+ rootBoundary?: RootBoundary;
157
+ /**
158
+ * The element in which overflow is being checked relative to a boundary.
159
+ * @default 'floating'
160
+ */
161
+ elementContext?: ElementContext;
162
+ /**
163
+ * Whether to check for overflow using the alternate element's boundary
164
+ * (`clippingAncestors` boundary only).
165
+ * @default false
166
+ */
167
+ altBoundary?: boolean;
168
+ /**
169
+ * Virtual padding for the resolved overflow detection offsets.
170
+ * @default 0
171
+ */
172
+ padding?: Padding;
173
+ }
174
+
175
+ export { Dimensions }
176
+
177
+ export declare type ElementContext = 'reference' | 'floating';
178
+
179
+ export { ElementRects }
180
+
181
+ export declare interface Elements {
182
+ reference: ReferenceElement;
183
+ floating: FloatingElement;
184
+ }
185
+
186
+ /**
187
+ * Optimizes the visibility of the floating element by flipping the `placement`
188
+ * in order to keep it in view when the preferred placement(s) will overflow the
189
+ * clipping boundary. Alternative to `autoPlacement`.
190
+ * @see https://floating-ui.com/docs/flip
191
+ */
192
+ export declare const flip: (options?: FlipOptions | Derivable<FlipOptions>) => Middleware;
193
+
194
+ export declare interface FlipOptions extends DetectOverflowOptions {
195
+ /**
196
+ * The axis that runs along the side of the floating element. Determines
197
+ * whether overflow along this axis is checked to perform a flip.
198
+ * @default true
199
+ */
200
+ mainAxis?: boolean;
201
+ /**
202
+ * The axis that runs along the alignment of the floating element. Determines
203
+ * whether overflow along this axis is checked to perform a flip.
204
+ * @default true
205
+ */
206
+ crossAxis?: boolean;
207
+ /**
208
+ * Placements to try sequentially if the preferred `placement` does not fit.
209
+ * @default [oppositePlacement] (computed)
210
+ */
211
+ fallbackPlacements?: Array<Placement>;
212
+ /**
213
+ * What strategy to use when no placements fit.
214
+ * @default 'bestFit'
215
+ */
216
+ fallbackStrategy?: 'bestFit' | 'initialPlacement';
217
+ /**
218
+ * Whether to allow fallback to the perpendicular axis of the preferred
219
+ * placement, and if so, which side direction along the axis to prefer.
220
+ * @default 'none' (disallow fallback)
221
+ */
222
+ fallbackAxisSideDirection?: 'none' | 'start' | 'end';
223
+ /**
224
+ * Whether to flip to placements with the opposite alignment if they fit
225
+ * better.
226
+ * @default true
227
+ */
228
+ flipAlignment?: boolean;
229
+ }
230
+
231
+ export declare type FloatingElement = any;
232
+
233
+ /**
234
+ * Provides data to hide the floating element in applicable situations, such as
235
+ * when it is not in the same clipping context as the reference element.
236
+ * @see https://floating-ui.com/docs/hide
237
+ */
238
+ export declare const hide: (options?: HideOptions | Derivable<HideOptions>) => Middleware;
239
+
240
+ export declare interface HideOptions extends DetectOverflowOptions {
241
+ /**
242
+ * The strategy used to determine when to hide the floating element.
243
+ */
244
+ strategy?: 'referenceHidden' | 'escaped';
245
+ }
246
+
247
+ /**
248
+ * Provides improved positioning for inline reference elements that can span
249
+ * over multiple lines, such as hyperlinks or range selections.
250
+ * @see https://floating-ui.com/docs/inline
251
+ */
252
+ export declare const inline: (options?: InlineOptions | Derivable<InlineOptions>) => Middleware;
253
+
254
+ export declare interface InlineOptions {
255
+ /**
256
+ * Viewport-relative `x` coordinate to choose a `ClientRect`.
257
+ * @default undefined
258
+ */
259
+ x?: number;
260
+ /**
261
+ * Viewport-relative `y` coordinate to choose a `ClientRect`.
262
+ * @default undefined
263
+ */
264
+ y?: number;
265
+ /**
266
+ * Represents the padding around a disjoined rect when choosing it.
267
+ * @default 2
268
+ */
269
+ padding?: Padding;
270
+ }
271
+
272
+ export { Length }
273
+
274
+ /**
275
+ * Built-in `limiter` that will stop `shift()` at a certain point.
276
+ */
277
+ export declare const limitShift: (options?: LimitShiftOptions | Derivable<LimitShiftOptions>) => {
278
+ options: any;
279
+ fn: (state: MiddlewareState) => Coords;
280
+ };
281
+
282
+ declare type LimitShiftOffset = number | {
283
+ /**
284
+ * Offset the limiting of the axis that runs along the alignment of the
285
+ * floating element.
286
+ */
287
+ mainAxis?: number;
288
+ /**
289
+ * Offset the limiting of the axis that runs along the side of the
290
+ * floating element.
291
+ */
292
+ crossAxis?: number;
293
+ };
294
+
295
+ export declare interface LimitShiftOptions {
296
+ /**
297
+ * Offset when limiting starts. `0` will limit when the opposite edges of the
298
+ * reference and floating elements are aligned.
299
+ * - positive = start limiting earlier
300
+ * - negative = start limiting later
301
+ */
302
+ offset?: LimitShiftOffset | Derivable<LimitShiftOffset>;
303
+ /**
304
+ * Whether to limit the axis that runs along the alignment of the floating
305
+ * element.
306
+ */
307
+ mainAxis?: boolean;
308
+ /**
309
+ * Whether to limit the axis that runs along the side of the floating element.
310
+ */
311
+ crossAxis?: boolean;
312
+ }
313
+
314
+ export declare type Middleware = {
315
+ name: string;
316
+ options?: any;
317
+ fn: (state: MiddlewareState) => Promisable<MiddlewareReturn>;
318
+ };
319
+
320
+ /**
321
+ * @deprecated use `MiddlewareState` instead.
322
+ */
323
+ export declare type MiddlewareArguments = MiddlewareState;
324
+
325
+ export declare interface MiddlewareData {
326
+ [key: string]: any;
327
+ arrow?: Partial<Coords> & {
328
+ centerOffset: number;
329
+ alignmentOffset?: number;
330
+ };
331
+ autoPlacement?: {
332
+ index?: number;
333
+ overflows: Array<{
334
+ placement: Placement;
335
+ overflows: Array<number>;
336
+ }>;
337
+ };
338
+ flip?: {
339
+ index?: number;
340
+ overflows: Array<{
341
+ placement: Placement;
342
+ overflows: Array<number>;
343
+ }>;
344
+ };
345
+ hide?: {
346
+ referenceHidden?: boolean;
347
+ escaped?: boolean;
348
+ referenceHiddenOffsets?: SideObject;
349
+ escapedOffsets?: SideObject;
350
+ };
351
+ offset?: Coords & {
352
+ placement: Placement;
353
+ };
354
+ shift?: Coords & {
355
+ enabled: {
356
+ [key in Axis]: boolean;
357
+ };
358
+ };
359
+ }
360
+
361
+ export declare interface MiddlewareReturn extends Partial<Coords> {
362
+ data?: {
363
+ [key: string]: any;
364
+ };
365
+ reset?: boolean | {
366
+ placement?: Placement;
367
+ rects?: boolean | ElementRects;
368
+ };
369
+ }
370
+
371
+ export declare interface MiddlewareState extends Coords {
372
+ initialPlacement: Placement;
373
+ placement: Placement;
374
+ strategy: Strategy;
375
+ middlewareData: MiddlewareData;
376
+ elements: Elements;
377
+ rects: ElementRects;
378
+ platform: Platform;
379
+ }
380
+
381
+ /**
382
+ * Modifies the placement by translating the floating element along the
383
+ * specified axes.
384
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
385
+ * object may be passed.
386
+ * @see https://floating-ui.com/docs/offset
387
+ */
388
+ export declare const offset: (options?: OffsetOptions) => Middleware;
389
+
390
+ export declare type OffsetOptions = OffsetValue | Derivable<OffsetValue>;
391
+
392
+ declare type OffsetValue = number | {
393
+ /**
394
+ * The axis that runs along the side of the floating element. Represents
395
+ * the distance (gutter or margin) between the reference and floating
396
+ * element.
397
+ * @default 0
398
+ */
399
+ mainAxis?: number;
400
+ /**
401
+ * The axis that runs along the alignment of the floating element.
402
+ * Represents the skidding between the reference and floating element.
403
+ * @default 0
404
+ */
405
+ crossAxis?: number;
406
+ /**
407
+ * The same axis as `crossAxis` but applies only to aligned placements
408
+ * and inverts the `end` alignment. When set to a number, it overrides the
409
+ * `crossAxis` value.
410
+ *
411
+ * A positive number will move the floating element in the direction of
412
+ * the opposite edge to the one that is aligned, while a negative number
413
+ * the reverse.
414
+ * @default null
415
+ */
416
+ alignmentAxis?: number | null;
417
+ };
418
+
419
+ export { Padding }
420
+
421
+ export { Placement }
422
+
423
+ /**
424
+ * Platform interface methods to work with the current platform.
425
+ * @see https://floating-ui.com/docs/platform
426
+ */
427
+ export declare interface Platform {
428
+ getElementRects: (args: {
429
+ reference: ReferenceElement;
430
+ floating: FloatingElement;
431
+ strategy: Strategy;
432
+ }) => Promisable<ElementRects>;
433
+ getClippingRect: (args: {
434
+ element: any;
435
+ boundary: Boundary;
436
+ rootBoundary: RootBoundary;
437
+ strategy: Strategy;
438
+ }) => Promisable<Rect>;
439
+ getDimensions: (element: any) => Promisable<Dimensions>;
440
+ convertOffsetParentRelativeRectToViewportRelativeRect?: (args: {
441
+ elements?: Elements;
442
+ rect: Rect;
443
+ offsetParent: any;
444
+ strategy: Strategy;
445
+ }) => Promisable<Rect>;
446
+ getOffsetParent?: (element: any) => Promisable<any>;
447
+ isElement?: (value: any) => Promisable<boolean>;
448
+ getDocumentElement?: (element: any) => Promisable<any>;
449
+ getClientRects?: (element: any) => Promisable<Array<ClientRectObject>>;
450
+ isRTL?: (element: any) => Promisable<boolean>;
451
+ getScale?: (element: any) => Promisable<{
452
+ x: number;
453
+ y: number;
454
+ }>;
455
+ }
456
+
457
+ declare type Promisable<T> = T | Promise<T>;
458
+
459
+ export { Rect }
460
+
461
+ export { rectToClientRect }
462
+
463
+ export declare type ReferenceElement = any;
464
+
465
+ export declare type RootBoundary = 'viewport' | 'document' | Rect;
466
+
467
+ /**
468
+ * Optimizes the visibility of the floating element by shifting it in order to
469
+ * keep it in view when it will overflow the clipping boundary.
470
+ * @see https://floating-ui.com/docs/shift
471
+ */
472
+ export declare const shift: (options?: ShiftOptions | Derivable<ShiftOptions>) => Middleware;
473
+
474
+ export declare interface ShiftOptions extends DetectOverflowOptions {
475
+ /**
476
+ * The axis that runs along the alignment of the floating element. Determines
477
+ * whether overflow along this axis is checked to perform shifting.
478
+ * @default true
479
+ */
480
+ mainAxis?: boolean;
481
+ /**
482
+ * The axis that runs along the side of the floating element. Determines
483
+ * whether overflow along this axis is checked to perform shifting.
484
+ * @default false
485
+ */
486
+ crossAxis?: boolean;
487
+ /**
488
+ * Accepts a function that limits the shifting done in order to prevent
489
+ * detachment.
490
+ */
491
+ limiter?: {
492
+ fn: (state: MiddlewareState) => Coords;
493
+ options?: any;
494
+ };
495
+ }
496
+
497
+ export { Side }
498
+
499
+ export { SideObject }
500
+
501
+ /**
502
+ * Provides data that allows you to change the size of the floating element —
503
+ * for instance, prevent it from overflowing the clipping boundary or match the
504
+ * width of the reference element.
505
+ * @see https://floating-ui.com/docs/size
506
+ */
507
+ export declare const size: (options?: SizeOptions | Derivable<SizeOptions>) => Middleware;
508
+
509
+ export declare interface SizeOptions extends DetectOverflowOptions {
510
+ /**
511
+ * Function that is called to perform style mutations to the floating element
512
+ * to change its size.
513
+ * @default undefined
514
+ */
515
+ apply?(args: MiddlewareState & {
516
+ availableWidth: number;
517
+ availableHeight: number;
518
+ }): void | Promise<void>;
519
+ }
520
+
521
+ export { Strategy }
522
+
523
+ export { VirtualElement }
524
+
525
+ export { }
@@ -1,40 +1,30 @@
1
1
  {
2
2
  "name": "@floating-ui/core",
3
- "version": "0.3.1",
4
- "@rollingversions": {
5
- "baseVersion": [
6
- 0,
7
- 0,
8
- 0
9
- ]
10
- },
3
+ "version": "1.6.9",
11
4
  "description": "Positioning library for floating elements: tooltips, popovers, dropdowns, and more",
12
5
  "publishConfig": {
13
6
  "access": "public"
14
7
  },
15
- "main": "dist/floating-ui.core.cjs",
16
- "module": "dist/floating-ui.core.esm.js",
17
- "unpkg": "dist/floating-ui.core.min.js",
18
- "type": "module",
8
+ "main": "./dist/floating-ui.core.umd.js",
9
+ "module": "./dist/floating-ui.core.esm.js",
10
+ "unpkg": "./dist/floating-ui.core.umd.min.js",
11
+ "types": "./dist/floating-ui.core.d.ts",
19
12
  "exports": {
13
+ "./package.json": "./package.json",
20
14
  ".": {
21
- "import": "./dist/floating-ui.core.esm.js",
22
- "require": "./dist/floating-ui.core.cjs"
23
- },
24
- "./package.json": "./package.json"
15
+ "import": {
16
+ "types": "./dist/floating-ui.core.d.mts",
17
+ "default": "./dist/floating-ui.core.mjs"
18
+ },
19
+ "types": "./dist/floating-ui.core.d.ts",
20
+ "module": "./dist/floating-ui.core.esm.js",
21
+ "default": "./dist/floating-ui.core.umd.js"
22
+ }
25
23
  },
26
24
  "sideEffects": false,
27
25
  "files": [
28
- "dist/",
29
- "index.d.ts",
30
- "src/**/*.d.ts"
26
+ "dist"
31
27
  ],
32
- "browserslist": "> 0.5%, not dead, not IE 11",
33
- "scripts": {
34
- "test": "jest test",
35
- "dev": "rollup -c -w",
36
- "build": "NODE_ENV=build rollup -c"
37
- },
38
28
  "author": "atomiks",
39
29
  "license": "MIT",
40
30
  "bugs": "https://github.com/floating-ui/floating-ui",
@@ -52,19 +42,22 @@
52
42
  "popup",
53
43
  "positioning"
54
44
  ],
45
+ "dependencies": {
46
+ "@floating-ui/utils": "^0.2.9"
47
+ },
55
48
  "devDependencies": {
56
- "@atomico/rollup-plugin-sizes": "^1.1.4",
57
- "@babel/preset-env": "^7.16.4",
58
- "@babel/preset-typescript": "^7.16.0",
59
- "@rollup/plugin-babel": "^5.3.0",
60
- "@rollup/plugin-node-resolve": "^13.0.6",
61
- "@rollup/plugin-replace": "^3.0.0",
62
- "@types/jest": "^27.0.3",
63
- "babel-plugin-annotate-pure-calls": "^0.4.0",
64
- "jest": "^27.3.1",
65
- "rollup": "^2.60.1",
66
- "rollup-plugin-terser": "^7.0.2",
67
- "ts-jest": "^27.0.7",
68
- "typescript": "^4.5.2"
49
+ "config": "0.0.0"
50
+ },
51
+ "scripts": {
52
+ "test": "vitest run",
53
+ "test:watch": "vitest watch",
54
+ "lint": "eslint .",
55
+ "format": "prettier --write .",
56
+ "clean": "rimraf dist out-tsc",
57
+ "dev": "rollup -c -w",
58
+ "build": "rollup -c",
59
+ "build:api": "build-api --tsc tsconfig.lib.json",
60
+ "publint": "publint",
61
+ "typecheck": "tsc -b"
69
62
  }
70
- }
63
+ }