@histoire/vendors 0.8.4 → 0.9.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 (254) hide show
  1. package/dist/client/b-floating-vue.d.ts +3 -0
  2. package/dist/client/{floating-vue.js → b-floating-vue.js} +13 -18
  3. package/dist/client/b-iconify.d.ts +1 -0
  4. package/dist/client/{iconify.js → b-iconify.js} +0 -0
  5. package/dist/client/b-pinia.d.ts +1 -0
  6. package/dist/client/{pinia.js → b-pinia.js} +41 -8
  7. package/dist/client/b-scroll.d.ts +2 -0
  8. package/dist/client/{scroll.js → b-scroll.js} +1 -1
  9. package/dist/client/b-vue-router.d.ts +1 -0
  10. package/dist/client/{vue-router.js → b-vue-router.js} +279 -158
  11. package/dist/client/b-vue-use.d.ts +1 -0
  12. package/dist/client/{vue-use.js → b-vue-use.js} +1070 -603
  13. package/dist/client/b-vue.d.ts +1 -0
  14. package/dist/client/{vue.js → b-vue.js} +1 -1
  15. package/dist/client/node_modules/@babel/parser/package.json +46 -0
  16. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +214 -0
  17. package/dist/client/node_modules/@floating-ui/core/index.d.ts +1 -0
  18. package/dist/client/node_modules/@floating-ui/core/package.json +70 -0
  19. package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +1 -0
  20. package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +4 -0
  21. package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +2 -0
  22. package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +9 -0
  23. package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +4 -0
  24. package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +11 -0
  25. package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +6 -0
  26. package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +9 -0
  27. package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +10 -0
  28. package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +2 -0
  29. package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +5 -0
  30. package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +21 -0
  31. package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +32 -0
  32. package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +6 -0
  33. package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +148 -0
  34. package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +2 -0
  35. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +2 -0
  36. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +5 -0
  37. package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +2 -0
  38. package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +2 -0
  39. package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +2 -0
  40. package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +2 -0
  41. package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +2 -0
  42. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +2 -0
  43. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +1 -0
  44. package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +2 -0
  45. package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +2 -0
  46. package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +2 -0
  47. package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +1 -0
  48. package/dist/client/node_modules/@floating-ui/dom/index.d.ts +1 -0
  49. package/dist/client/node_modules/@floating-ui/dom/package.json +75 -0
  50. package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +7 -0
  51. package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +2 -0
  52. package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +27 -0
  53. package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +1 -0
  54. package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +6 -0
  55. package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +2 -0
  56. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +6 -0
  57. package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +1 -0
  58. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +2 -0
  59. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +1 -0
  60. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +2 -0
  61. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +1 -0
  62. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +2 -0
  63. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +1 -0
  64. package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +1 -0
  65. package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +2 -0
  66. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +1 -0
  67. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +1 -0
  68. package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -0
  69. package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -0
  70. package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +15 -0
  71. package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +3 -0
  72. package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +2 -0
  73. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +680 -0
  74. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +347 -0
  75. package/dist/client/node_modules/@iconify/vue/offline/package.json +14 -0
  76. package/dist/client/node_modules/@iconify/vue/package.json +61 -0
  77. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +176 -0
  78. package/dist/client/node_modules/@types/web-bluetooth/package.json +40 -0
  79. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1198 -0
  80. package/dist/client/node_modules/@vue/compiler-core/package.json +43 -0
  81. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +66 -0
  82. package/dist/client/node_modules/@vue/compiler-dom/package.json +43 -0
  83. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +321 -0
  84. package/dist/client/node_modules/@vue/compiler-sfc/package.json +59 -0
  85. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +6 -0
  86. package/dist/client/node_modules/@vue/compiler-ssr/package.json +34 -0
  87. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +108 -0
  88. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +1 -0
  89. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +77 -0
  90. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +5 -0
  91. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +179 -0
  92. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +6 -0
  93. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +4 -0
  94. package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +2 -0
  95. package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +15 -0
  96. package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +18 -0
  97. package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +47 -0
  98. package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +20 -0
  99. package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +2 -0
  100. package/dist/client/node_modules/@vue/devtools-api/package.json +37 -0
  101. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +347 -0
  102. package/dist/client/node_modules/@vue/reactivity/package.json +41 -0
  103. package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +33 -0
  104. package/dist/client/node_modules/@vue/reactivity-transform/package.json +41 -0
  105. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +2018 -0
  106. package/dist/client/node_modules/@vue/runtime-core/package.json +38 -0
  107. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1522 -0
  108. package/dist/client/node_modules/@vue/runtime-dom/package.json +42 -0
  109. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +100 -0
  110. package/dist/client/node_modules/@vue/server-renderer/package.json +41 -0
  111. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +356 -0
  112. package/dist/client/node_modules/@vue/shared/package.json +33 -0
  113. package/dist/client/node_modules/@vueuse/core/index.d.ts +4305 -0
  114. package/dist/client/node_modules/@vueuse/core/metadata.d.ts +1 -0
  115. package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/index.d.ts +874 -0
  116. package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/package.json +50 -0
  117. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/index.d.ts +22 -0
  118. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
  119. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
  120. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
  121. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +47 -0
  122. package/dist/client/node_modules/@vueuse/core/package.json +59 -0
  123. package/dist/client/node_modules/@vueuse/metadata/index.d.ts +75 -0
  124. package/dist/client/node_modules/@vueuse/metadata/package.json +39 -0
  125. package/dist/client/node_modules/compute-scroll-into-view/package.json +90 -0
  126. package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +19 -0
  127. package/dist/client/node_modules/csstype/index.d.ts +38372 -0
  128. package/dist/client/node_modules/csstype/package.json +57 -0
  129. package/dist/client/node_modules/estree-walker/dist/esm/package.json +1 -0
  130. package/dist/client/node_modules/estree-walker/package.json +37 -0
  131. package/dist/client/node_modules/estree-walker/src/package.json +1 -0
  132. package/dist/client/node_modules/estree-walker/types/async.d.ts +53 -0
  133. package/dist/client/node_modules/estree-walker/types/index.d.ts +56 -0
  134. package/dist/client/node_modules/estree-walker/types/sync.d.ts +53 -0
  135. package/dist/client/node_modules/estree-walker/types/walker.d.ts +37 -0
  136. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +25 -0
  137. package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +25 -0
  138. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +375 -0
  139. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +367 -0
  140. package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +48 -0
  141. package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +9 -0
  142. package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +28 -0
  143. package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +6 -0
  144. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +25 -0
  145. package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +28 -0
  146. package/dist/client/node_modules/floating-vue/dist/config.d.ts +11 -0
  147. package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +13 -0
  148. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +27 -0
  149. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +1 -0
  150. package/dist/client/node_modules/floating-vue/dist/index.d.ts +415 -0
  151. package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +1 -0
  152. package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +2 -0
  153. package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +12 -0
  154. package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +1 -0
  155. package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +1 -0
  156. package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +3 -0
  157. package/dist/client/node_modules/floating-vue/package.json +71 -0
  158. package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +1 -0
  159. package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +5 -0
  160. package/dist/client/node_modules/magic-string/index.d.ts +221 -0
  161. package/dist/client/node_modules/magic-string/package.json +52 -0
  162. package/dist/client/node_modules/nanoid/async/index.d.ts +56 -0
  163. package/dist/client/node_modules/nanoid/async/package.json +12 -0
  164. package/dist/client/node_modules/nanoid/index.d.ts +91 -0
  165. package/dist/client/node_modules/nanoid/non-secure/index.d.ts +33 -0
  166. package/dist/client/node_modules/nanoid/non-secure/package.json +6 -0
  167. package/dist/client/node_modules/nanoid/package.json +60 -0
  168. package/dist/client/node_modules/nanoid/url-alphabet/package.json +6 -0
  169. package/dist/client/node_modules/picocolors/package.json +25 -0
  170. package/dist/client/node_modules/picocolors/picocolors.d.ts +5 -0
  171. package/dist/client/node_modules/pinia/dist/pinia.d.ts +963 -0
  172. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +22 -0
  173. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
  174. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
  175. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
  176. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +47 -0
  177. package/dist/client/node_modules/pinia/package.json +101 -0
  178. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +106 -0
  179. package/dist/client/node_modules/postcss/lib/comment.d.ts +56 -0
  180. package/dist/client/node_modules/postcss/lib/container.d.ts +442 -0
  181. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +239 -0
  182. package/dist/client/node_modules/postcss/lib/declaration.d.ts +124 -0
  183. package/dist/client/node_modules/postcss/lib/document.d.ts +57 -0
  184. package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +5 -0
  185. package/dist/client/node_modules/postcss/lib/input.d.ts +150 -0
  186. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +176 -0
  187. package/dist/client/node_modules/postcss/lib/list.d.ts +51 -0
  188. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +37 -0
  189. package/dist/client/node_modules/postcss/lib/node.d.ts +478 -0
  190. package/dist/client/node_modules/postcss/lib/parse.d.ts +5 -0
  191. package/dist/client/node_modules/postcss/lib/postcss.d.ts +473 -0
  192. package/dist/client/node_modules/postcss/lib/previous-map.d.ts +72 -0
  193. package/dist/client/node_modules/postcss/lib/processor.d.ts +102 -0
  194. package/dist/client/node_modules/postcss/lib/result.d.ts +196 -0
  195. package/dist/client/node_modules/postcss/lib/root.d.ts +73 -0
  196. package/dist/client/node_modules/postcss/lib/rule.d.ts +104 -0
  197. package/dist/client/node_modules/postcss/lib/stringifier.d.ts +37 -0
  198. package/dist/client/node_modules/postcss/lib/stringify.d.ts +5 -0
  199. package/dist/client/node_modules/postcss/lib/warning.d.ts +138 -0
  200. package/dist/client/node_modules/postcss/package.json +85 -0
  201. package/dist/client/node_modules/scroll-into-view-if-needed/package.json +144 -0
  202. package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +13 -0
  203. package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +19 -0
  204. package/dist/client/node_modules/source-map/package.json +73 -0
  205. package/dist/client/node_modules/source-map/source-map.d.ts +98 -0
  206. package/dist/client/node_modules/source-map-js/package.json +71 -0
  207. package/dist/client/node_modules/source-map-js/source-map.d.ts +115 -0
  208. package/dist/client/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
  209. package/dist/client/node_modules/sourcemap-codec/package.json +53 -0
  210. package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +1 -0
  211. package/dist/client/node_modules/vue/compiler-sfc/package.json +5 -0
  212. package/dist/client/node_modules/vue/dist/vue.d.ts +9 -0
  213. package/dist/client/node_modules/vue/macros-global.d.ts +19 -0
  214. package/dist/client/node_modules/vue/macros.d.ts +110 -0
  215. package/dist/client/node_modules/vue/package.json +75 -0
  216. package/dist/client/node_modules/vue/ref-macros.d.ts +2 -0
  217. package/dist/client/node_modules/vue/server-renderer/index.d.ts +1 -0
  218. package/dist/client/node_modules/vue/server-renderer/package.json +5 -0
  219. package/dist/client/node_modules/vue-resize/package.json +77 -0
  220. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +1491 -0
  221. package/dist/client/node_modules/vue-router/package.json +114 -0
  222. package/dist/client/vue.runtime.esm-bundler.js +24 -19
  223. package/entries.js +7 -7
  224. package/floating-vue.d.ts +3 -0
  225. package/iconify.d.ts +3 -0
  226. package/package.json +14 -5
  227. package/pinia.d.ts +3 -0
  228. package/rollup.config.mjs +117 -0
  229. package/scroll.d.ts +3 -0
  230. package/src/client/b-floating-vue.ts +3 -0
  231. package/src/client/b-iconify.ts +1 -0
  232. package/src/client/b-pinia.ts +1 -0
  233. package/src/client/b-scroll.ts +2 -0
  234. package/src/client/b-vue-router.ts +1 -0
  235. package/src/client/b-vue-use.ts +1 -0
  236. package/src/client/b-vue.ts +1 -0
  237. package/vue-router.d.ts +3 -0
  238. package/vue-use.d.ts +3 -0
  239. package/vue.d.ts +3 -0
  240. package/dist/client/floating-vue.d.ts +0 -2
  241. package/dist/client/iconify.d.ts +0 -1
  242. package/dist/client/pinia.d.ts +0 -1
  243. package/dist/client/scroll.d.ts +0 -1
  244. package/dist/client/vue-router.d.ts +0 -1
  245. package/dist/client/vue-use.d.ts +0 -1
  246. package/dist/client/vue.d.ts +0 -1
  247. package/rollup.config.js +0 -37
  248. package/src/client/floating-vue.ts +0 -2
  249. package/src/client/iconify.ts +0 -1
  250. package/src/client/pinia.ts +0 -1
  251. package/src/client/scroll.ts +0 -1
  252. package/src/client/vue-router.ts +0 -1
  253. package/src/client/vue-use.ts +0 -1
  254. package/src/client/vue.ts +0 -1
@@ -0,0 +1,347 @@
1
+ import { IfAny } from '@vue/shared';
2
+
3
+ declare type BaseTypes = string | number | boolean;
4
+
5
+ declare type Builtin = Primitive | Function | Date | Error | RegExp;
6
+
7
+ declare type CollectionTypes = IterableCollections | WeakCollections;
8
+
9
+ export declare function computed<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T>;
10
+
11
+ export declare function computed<T>(options: WritableComputedOptions<T>, debugOptions?: DebuggerOptions): WritableComputedRef<T>;
12
+
13
+ export declare type ComputedGetter<T> = (...args: any[]) => T;
14
+
15
+ export declare interface ComputedRef<T = any> extends WritableComputedRef<T> {
16
+ readonly value: T;
17
+ [ComputedRefSymbol]: true;
18
+ }
19
+
20
+ declare class ComputedRefImpl<T> {
21
+ private readonly _setter;
22
+ dep?: Dep;
23
+ private _value;
24
+ readonly effect: ReactiveEffect<T>;
25
+ readonly __v_isRef = true;
26
+ readonly [ReactiveFlags.IS_READONLY]: boolean;
27
+ _dirty: boolean;
28
+ _cacheable: boolean;
29
+ constructor(getter: ComputedGetter<T>, _setter: ComputedSetter<T>, isReadonly: boolean, isSSR: boolean);
30
+ get value(): T;
31
+ set value(newValue: T);
32
+ }
33
+
34
+ declare const ComputedRefSymbol: unique symbol;
35
+
36
+ export declare type ComputedSetter<T> = (v: T) => void;
37
+
38
+ export declare function customRef<T>(factory: CustomRefFactory<T>): Ref<T>;
39
+
40
+ export declare type CustomRefFactory<T> = (track: () => void, trigger: () => void) => {
41
+ get: () => T;
42
+ set: (value: T) => void;
43
+ };
44
+
45
+ export declare type DebuggerEvent = {
46
+ effect: ReactiveEffect;
47
+ } & DebuggerEventExtraInfo;
48
+
49
+ export declare type DebuggerEventExtraInfo = {
50
+ target: object;
51
+ type: TrackOpTypes | TriggerOpTypes;
52
+ key: any;
53
+ newValue?: any;
54
+ oldValue?: any;
55
+ oldTarget?: Map<any, any> | Set<any>;
56
+ };
57
+
58
+ export declare interface DebuggerOptions {
59
+ onTrack?: (event: DebuggerEvent) => void;
60
+ onTrigger?: (event: DebuggerEvent) => void;
61
+ }
62
+
63
+ export declare type DeepReadonly<T> = T extends Builtin ? T : T extends Map<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends WeakMap<infer K, infer V> ? WeakMap<DeepReadonly<K>, DeepReadonly<V>> : T extends Set<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends ReadonlySet<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends WeakSet<infer U> ? WeakSet<DeepReadonly<U>> : T extends Promise<infer U> ? Promise<DeepReadonly<U>> : T extends Ref<infer U> ? Readonly<Ref<DeepReadonly<U>>> : T extends {} ? {
64
+ readonly [K in keyof T]: DeepReadonly<T[K]>;
65
+ } : Readonly<T>;
66
+
67
+ export declare function deferredComputed<T>(getter: () => T): ComputedRef<T>;
68
+
69
+ declare type Dep = Set<ReactiveEffect> & TrackedMarkers;
70
+
71
+ export declare function effect<T = any>(fn: () => T, options?: ReactiveEffectOptions): ReactiveEffectRunner;
72
+
73
+ export declare type EffectScheduler = (...args: any[]) => any;
74
+
75
+ export declare class EffectScope {
76
+ /* Excluded from this release type: active */
77
+ /* Excluded from this release type: effects */
78
+ /* Excluded from this release type: cleanups */
79
+ /* Excluded from this release type: parent */
80
+ /* Excluded from this release type: scopes */
81
+ /* Excluded from this release type: index */
82
+ constructor(detached?: boolean);
83
+ run<T>(fn: () => T): T | undefined;
84
+ /* Excluded from this release type: on */
85
+ /* Excluded from this release type: off */
86
+ stop(fromParent?: boolean): void;
87
+ }
88
+
89
+ export declare function effectScope(detached?: boolean): EffectScope;
90
+
91
+ export declare function enableTracking(): void;
92
+
93
+ export declare function getCurrentScope(): EffectScope | undefined;
94
+
95
+ export declare function isProxy(value: unknown): boolean;
96
+
97
+ export declare function isReactive(value: unknown): boolean;
98
+
99
+ export declare function isReadonly(value: unknown): boolean;
100
+
101
+ export declare function isRef<T>(r: Ref<T> | unknown): r is Ref<T>;
102
+
103
+ export declare function isShallow(value: unknown): boolean;
104
+
105
+ declare type IterableCollections = Map<any, any> | Set<any>;
106
+
107
+ export declare const ITERATE_KEY: unique symbol;
108
+
109
+ export declare function markRaw<T extends object>(value: T): T & {
110
+ [RawSymbol]?: true;
111
+ };
112
+
113
+ export declare function onScopeDispose(fn: () => void): void;
114
+
115
+ export declare function pauseTracking(): void;
116
+
117
+ declare type Primitive = string | number | boolean | bigint | symbol | undefined | null;
118
+
119
+ export declare function proxyRefs<T extends object>(objectWithRefs: T): ShallowUnwrapRef<T>;
120
+
121
+ declare const RawSymbol: unique symbol;
122
+
123
+ /**
124
+ * Creates a reactive copy of the original object.
125
+ *
126
+ * The reactive conversion is "deep"—it affects all nested properties. In the
127
+ * ES2015 Proxy based implementation, the returned proxy is **not** equal to the
128
+ * original object. It is recommended to work exclusively with the reactive
129
+ * proxy and avoid relying on the original object.
130
+ *
131
+ * A reactive object also automatically unwraps refs contained in it, so you
132
+ * don't need to use `.value` when accessing and mutating their value:
133
+ *
134
+ * ```js
135
+ * const count = ref(0)
136
+ * const obj = reactive({
137
+ * count
138
+ * })
139
+ *
140
+ * obj.count++
141
+ * obj.count // -> 1
142
+ * count.value // -> 1
143
+ * ```
144
+ */
145
+ export declare function reactive<T extends object>(target: T): UnwrapNestedRefs<T>;
146
+
147
+ export declare class ReactiveEffect<T = any> {
148
+ fn: () => T;
149
+ scheduler: EffectScheduler | null;
150
+ active: boolean;
151
+ deps: Dep[];
152
+ parent: ReactiveEffect | undefined;
153
+ /* Excluded from this release type: computed */
154
+ /* Excluded from this release type: allowRecurse */
155
+ /* Excluded from this release type: deferStop */
156
+ onStop?: () => void;
157
+ onTrack?: (event: DebuggerEvent) => void;
158
+ onTrigger?: (event: DebuggerEvent) => void;
159
+ constructor(fn: () => T, scheduler?: EffectScheduler | null, scope?: EffectScope);
160
+ run(): T | undefined;
161
+ stop(): void;
162
+ }
163
+
164
+ export declare interface ReactiveEffectOptions extends DebuggerOptions {
165
+ lazy?: boolean;
166
+ scheduler?: EffectScheduler;
167
+ scope?: EffectScope;
168
+ allowRecurse?: boolean;
169
+ onStop?: () => void;
170
+ }
171
+
172
+ export declare interface ReactiveEffectRunner<T = any> {
173
+ (): T;
174
+ effect: ReactiveEffect;
175
+ }
176
+
177
+ export declare const enum ReactiveFlags {
178
+ SKIP = "__v_skip",
179
+ IS_REACTIVE = "__v_isReactive",
180
+ IS_READONLY = "__v_isReadonly",
181
+ IS_SHALLOW = "__v_isShallow",
182
+ RAW = "__v_raw"
183
+ }
184
+
185
+ /**
186
+ * Creates a readonly copy of the original object. Note the returned copy is not
187
+ * made reactive, but `readonly` can be called on an already reactive object.
188
+ */
189
+ export declare function readonly<T extends object>(target: T): DeepReadonly<UnwrapNestedRefs<T>>;
190
+
191
+ export declare interface Ref<T = any> {
192
+ value: T;
193
+ /**
194
+ * Type differentiator only.
195
+ * We need this to be in public d.ts but don't want it to show up in IDE
196
+ * autocomplete, so we use a private Symbol instead.
197
+ */
198
+ [RefSymbol]: true;
199
+ }
200
+
201
+ export declare function ref<T extends object>(value: T): [T] extends [Ref] ? T : Ref<UnwrapRef<T>>;
202
+
203
+ export declare function ref<T>(value: T): Ref<UnwrapRef<T>>;
204
+
205
+ export declare function ref<T = any>(): Ref<T | undefined>;
206
+
207
+ declare const RefSymbol: unique symbol;
208
+
209
+ /**
210
+ * This is a special exported interface for other packages to declare
211
+ * additional types that should bail out for ref unwrapping. For example
212
+ * \@vue/runtime-dom can declare it like so in its d.ts:
213
+ *
214
+ * ``` ts
215
+ * declare module '@vue/reactivity' {
216
+ * export interface RefUnwrapBailTypes {
217
+ * runtimeDOMBailTypes: Node | Window
218
+ * }
219
+ * }
220
+ * ```
221
+ *
222
+ * Note that api-extractor somehow refuses to include `declare module`
223
+ * augmentations in its generated d.ts, so we have to manually append them
224
+ * to the final generated d.ts in our build process.
225
+ */
226
+ export declare interface RefUnwrapBailTypes {
227
+ }
228
+
229
+ export declare function resetTracking(): void;
230
+
231
+ export declare type ShallowReactive<T> = T & {
232
+ [ShallowReactiveMarker]?: true;
233
+ };
234
+
235
+ /**
236
+ * Return a shallowly-reactive copy of the original object, where only the root
237
+ * level properties are reactive. It also does not auto-unwrap refs (even at the
238
+ * root level).
239
+ */
240
+ export declare function shallowReactive<T extends object>(target: T): ShallowReactive<T>;
241
+
242
+ declare const ShallowReactiveMarker: unique symbol;
243
+
244
+ /**
245
+ * Returns a reactive-copy of the original object, where only the root level
246
+ * properties are readonly, and does NOT unwrap refs nor recursively convert
247
+ * returned properties.
248
+ * This is used for creating the props proxy object for stateful components.
249
+ */
250
+ export declare function shallowReadonly<T extends object>(target: T): Readonly<T>;
251
+
252
+ export declare type ShallowRef<T = any> = Ref<T> & {
253
+ [ShallowRefMarker]?: true;
254
+ };
255
+
256
+ export declare function shallowRef<T extends object>(value: T): T extends Ref ? T : ShallowRef<T>;
257
+
258
+ export declare function shallowRef<T>(value: T): ShallowRef<T>;
259
+
260
+ export declare function shallowRef<T = any>(): ShallowRef<T | undefined>;
261
+
262
+ declare const ShallowRefMarker: unique symbol;
263
+
264
+ export declare type ShallowUnwrapRef<T> = {
265
+ [K in keyof T]: T[K] extends Ref<infer V> ? V : T[K] extends Ref<infer V> | undefined ? unknown extends V ? undefined : V | undefined : T[K];
266
+ };
267
+
268
+ declare function stop_2(runner: ReactiveEffectRunner): void;
269
+ export { stop_2 as stop }
270
+
271
+ export declare function toRaw<T>(observed: T): T;
272
+
273
+ export declare type ToRef<T> = IfAny<T, Ref<T>, [T] extends [Ref] ? T : Ref<T>>;
274
+
275
+ export declare function toRef<T extends object, K extends keyof T>(object: T, key: K): ToRef<T[K]>;
276
+
277
+ export declare function toRef<T extends object, K extends keyof T>(object: T, key: K, defaultValue: T[K]): ToRef<Exclude<T[K], undefined>>;
278
+
279
+ export declare type ToRefs<T = any> = {
280
+ [K in keyof T]: ToRef<T[K]>;
281
+ };
282
+
283
+ export declare function toRefs<T extends object>(object: T): ToRefs<T>;
284
+
285
+ export declare function track(target: object, type: TrackOpTypes, key: unknown): void;
286
+
287
+ /**
288
+ * wasTracked and newTracked maintain the status for several levels of effect
289
+ * tracking recursion. One bit per level is used to define whether the dependency
290
+ * was/is tracked.
291
+ */
292
+ declare type TrackedMarkers = {
293
+ /**
294
+ * wasTracked
295
+ */
296
+ w: number;
297
+ /**
298
+ * newTracked
299
+ */
300
+ n: number;
301
+ };
302
+
303
+ export declare const enum TrackOpTypes {
304
+ GET = "get",
305
+ HAS = "has",
306
+ ITERATE = "iterate"
307
+ }
308
+
309
+ export declare function trigger(target: object, type: TriggerOpTypes, key?: unknown, newValue?: unknown, oldValue?: unknown, oldTarget?: Map<unknown, unknown> | Set<unknown>): void;
310
+
311
+ export declare const enum TriggerOpTypes {
312
+ SET = "set",
313
+ ADD = "add",
314
+ DELETE = "delete",
315
+ CLEAR = "clear"
316
+ }
317
+
318
+ export declare function triggerRef(ref: Ref): void;
319
+
320
+ export declare function unref<T>(ref: T | Ref<T>): T;
321
+
322
+ export declare type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>;
323
+
324
+ export declare type UnwrapRef<T> = T extends ShallowRef<infer V> ? V : T extends Ref<infer V> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
325
+
326
+ declare type UnwrapRefSimple<T> = T extends Function | CollectionTypes | BaseTypes | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
327
+ [RawSymbol]?: true;
328
+ } ? T : T extends Array<any> ? {
329
+ [K in keyof T]: UnwrapRefSimple<T[K]>;
330
+ } : T extends object & {
331
+ [ShallowReactiveMarker]?: never;
332
+ } ? {
333
+ [P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>;
334
+ } : T;
335
+
336
+ declare type WeakCollections = WeakMap<any, any> | WeakSet<any>;
337
+
338
+ export declare interface WritableComputedOptions<T> {
339
+ get: ComputedGetter<T>;
340
+ set: ComputedSetter<T>;
341
+ }
342
+
343
+ export declare interface WritableComputedRef<T> extends Ref<T> {
344
+ readonly effect: ReactiveEffect<T>;
345
+ }
346
+
347
+ export { }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@vue/reactivity",
3
+ "version": "3.2.37",
4
+ "description": "@vue/reactivity",
5
+ "main": "index.js",
6
+ "module": "dist/reactivity.esm-bundler.js",
7
+ "types": "dist/reactivity.d.ts",
8
+ "unpkg": "dist/reactivity.global.js",
9
+ "jsdelivr": "dist/reactivity.global.js",
10
+ "files": [
11
+ "index.js",
12
+ "dist"
13
+ ],
14
+ "sideEffects": false,
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/vuejs/core.git",
18
+ "directory": "packages/reactivity"
19
+ },
20
+ "buildOptions": {
21
+ "name": "VueReactivity",
22
+ "formats": [
23
+ "esm-bundler",
24
+ "esm-browser",
25
+ "cjs",
26
+ "global"
27
+ ]
28
+ },
29
+ "keywords": [
30
+ "vue"
31
+ ],
32
+ "author": "Evan You",
33
+ "license": "MIT",
34
+ "bugs": {
35
+ "url": "https://github.com/vuejs/core/issues"
36
+ },
37
+ "homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
38
+ "dependencies": {
39
+ "@vue/shared": "3.2.37"
40
+ }
41
+ }
@@ -0,0 +1,33 @@
1
+ import MagicString from 'magic-string';
2
+ import { ParserPlugin } from '@babel/parser';
3
+ import { Program } from '@babel/types';
4
+ import { SourceMap } from 'magic-string';
5
+
6
+ export declare interface RefTransformOptions {
7
+ filename?: string;
8
+ sourceMap?: boolean;
9
+ parserPlugins?: ParserPlugin[];
10
+ importHelpersFrom?: string;
11
+ }
12
+
13
+ export declare interface RefTransformResults {
14
+ code: string;
15
+ map: SourceMap | null;
16
+ rootRefs: string[];
17
+ importedHelpers: string[];
18
+ }
19
+
20
+ export declare function shouldTransform(src: string): boolean;
21
+
22
+ export declare function transform(src: string, { filename, sourceMap, parserPlugins, importHelpersFrom }?: RefTransformOptions): RefTransformResults;
23
+
24
+ export declare function transformAST(ast: Program, s: MagicString, offset?: number, knownRefs?: string[], knownProps?: Record<string, // public prop key
25
+ {
26
+ local: string;
27
+ default?: any;
28
+ }>): {
29
+ rootRefs: string[];
30
+ importedHelpers: string[];
31
+ };
32
+
33
+ export { }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@vue/reactivity-transform",
3
+ "version": "3.2.37",
4
+ "description": "@vue/reactivity-transform",
5
+ "main": "dist/reactivity-transform.cjs.js",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "buildOptions": {
10
+ "formats": [
11
+ "cjs"
12
+ ],
13
+ "prod": false
14
+ },
15
+ "types": "dist/reactivity-transform.d.ts",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/vuejs/core.git",
19
+ "directory": "packages/reactivity-transform"
20
+ },
21
+ "keywords": [
22
+ "vue"
23
+ ],
24
+ "author": "Evan You",
25
+ "license": "MIT",
26
+ "bugs": {
27
+ "url": "https://github.com/vuejs/core/issues"
28
+ },
29
+ "homepage": "https://github.com/vuejs/core/tree/dev/packages/reactivity-transform#readme",
30
+ "dependencies": {
31
+ "@babel/parser": "^7.16.4",
32
+ "@vue/compiler-core": "3.2.37",
33
+ "@vue/shared": "3.2.37",
34
+ "estree-walker": "^2.0.2",
35
+ "magic-string": "^0.25.7"
36
+ },
37
+ "devDependencies": {
38
+ "@babel/core": "^7.16.0",
39
+ "@babel/types": "^7.16.0"
40
+ }
41
+ }