@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,13 +1,31 @@
1
1
  import { IfAny } from '@vue/shared';
2
2
 
3
- export declare const enum ReactiveFlags {
3
+ export declare enum TrackOpTypes {
4
+ GET = "get",
5
+ HAS = "has",
6
+ ITERATE = "iterate"
7
+ }
8
+ export declare enum TriggerOpTypes {
9
+ SET = "set",
10
+ ADD = "add",
11
+ DELETE = "delete",
12
+ CLEAR = "clear"
13
+ }
14
+ export declare enum ReactiveFlags {
4
15
  SKIP = "__v_skip",
5
16
  IS_REACTIVE = "__v_isReactive",
6
17
  IS_READONLY = "__v_isReadonly",
7
18
  IS_SHALLOW = "__v_isShallow",
8
- RAW = "__v_raw"
19
+ RAW = "__v_raw",
20
+ IS_REF = "__v_isRef"
9
21
  }
22
+
10
23
  export type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>;
24
+ declare const ReactiveMarkerSymbol: unique symbol;
25
+ export interface ReactiveMarker {
26
+ [ReactiveMarkerSymbol]?: void;
27
+ }
28
+ export type Reactive<T> = UnwrapNestedRefs<T> & (T extends readonly any[] ? ReactiveMarker : {});
11
29
  /**
12
30
  * Returns a reactive proxy of the object.
13
31
  *
@@ -23,7 +41,7 @@ export type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>;
23
41
  * @param target - The source object.
24
42
  * @see {@link https://vuejs.org/api/reactivity-core.html#reactive}
25
43
  */
26
- export declare function reactive<T extends object>(target: T): UnwrapNestedRefs<T>;
44
+ export declare function reactive<T extends object>(target: T): Reactive<T>;
27
45
  declare const ShallowReactiveMarker: unique symbol;
28
46
  export type ShallowReactive<T> = T & {
29
47
  [ShallowReactiveMarker]?: true;
@@ -61,7 +79,7 @@ export type ShallowReactive<T> = T & {
61
79
  export declare function shallowReactive<T extends object>(target: T): ShallowReactive<T>;
62
80
  type Primitive = string | number | boolean | bigint | symbol | undefined | null;
63
81
  type Builtin = Primitive | Function | Date | Error | RegExp;
64
- export 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 {} ? {
82
+ export 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, unknown> ? Readonly<Ref<DeepReadonly<U>>> : T extends {} ? {
65
83
  readonly [K in keyof T]: DeepReadonly<T[K]>;
66
84
  } : Readonly<T>;
67
85
  /**
@@ -164,7 +182,7 @@ export declare function isShallow(value: unknown): boolean;
164
182
  * @param value - The value to check.
165
183
  * @see {@link https://vuejs.org/api/reactivity-utilities.html#isproxy}
166
184
  */
167
- export declare function isProxy(value: unknown): boolean;
185
+ export declare function isProxy(value: any): boolean;
168
186
  /**
169
187
  * Returns the raw, original object of a Vue-created proxy.
170
188
  *
@@ -215,58 +233,26 @@ export type Raw<T> = T & {
215
233
  * @see {@link https://vuejs.org/api/reactivity-advanced.html#markraw}
216
234
  */
217
235
  export declare function markRaw<T extends object>(value: T): Raw<T>;
218
-
219
- type CollectionTypes = IterableCollections | WeakCollections;
220
- type IterableCollections = Map<any, any> | Set<any>;
221
- type WeakCollections = WeakMap<any, any> | WeakSet<any>;
222
-
223
- export declare const enum TrackOpTypes {
224
- GET = "get",
225
- HAS = "has",
226
- ITERATE = "iterate"
227
- }
228
- export declare const enum TriggerOpTypes {
229
- SET = "set",
230
- ADD = "add",
231
- DELETE = "delete",
232
- CLEAR = "clear"
233
- }
234
-
235
- export declare class EffectScope {
236
- detached: boolean;
237
- constructor(detached?: boolean);
238
- get active(): boolean;
239
- run<T>(fn: () => T): T | undefined;
240
- stop(fromParent?: boolean): void;
241
- }
242
236
  /**
243
- * Creates an effect scope object which can capture the reactive effects (i.e.
244
- * computed and watchers) created within it so that these effects can be
245
- * disposed together. For detailed use cases of this API, please consult its
246
- * corresponding {@link https://github.com/vuejs/rfcs/blob/master/active-rfcs/0041-reactivity-effect-scope.md | RFC}.
237
+ * Returns a reactive proxy of the given value (if possible).
247
238
  *
248
- * @param detached - Can be used to create a "detached" effect scope.
249
- * @see {@link https://vuejs.org/api/reactivity-advanced.html#effectscope}
250
- */
251
- export declare function effectScope(detached?: boolean): EffectScope;
252
- /**
253
- * Returns the current active effect scope if there is one.
239
+ * If the given value is not an object, the original value itself is returned.
254
240
  *
255
- * @see {@link https://vuejs.org/api/reactivity-advanced.html#getcurrentscope}
241
+ * @param value - The value for which a reactive proxy shall be created.
256
242
  */
257
- export declare function getCurrentScope(): EffectScope | undefined;
243
+ export declare const toReactive: <T extends unknown>(value: T) => T;
258
244
  /**
259
- * Registers a dispose callback on the current active effect scope. The
260
- * callback will be invoked when the associated effect scope is stopped.
245
+ * Returns a readonly proxy of the given value (if possible).
261
246
  *
262
- * @param fn - The callback function to attach to the scope's cleanup.
263
- * @see {@link https://vuejs.org/api/reactivity-advanced.html#onscopedispose}
247
+ * If the given value is not an object, the original value itself is returned.
248
+ *
249
+ * @param value - The value for which a readonly proxy shall be created.
264
250
  */
265
- export declare function onScopeDispose(fn: () => void): void;
251
+ export declare const toReadonly: <T extends unknown>(value: T) => DeepReadonly<T>;
266
252
 
267
253
  export type EffectScheduler = (...args: any[]) => any;
268
254
  export type DebuggerEvent = {
269
- effect: ReactiveEffect;
255
+ effect: Subscriber;
270
256
  } & DebuggerEventExtraInfo;
271
257
  export type DebuggerEventExtraInfo = {
272
258
  target: object;
@@ -276,46 +262,55 @@ export type DebuggerEventExtraInfo = {
276
262
  oldValue?: any;
277
263
  oldTarget?: Map<any, any> | Set<any>;
278
264
  };
279
- export declare const ITERATE_KEY: unique symbol;
280
- export declare class ReactiveEffect<T = any> {
281
- fn: () => T;
282
- scheduler: EffectScheduler | null;
283
- active: boolean;
284
- deps: Dep[];
285
- parent: ReactiveEffect | undefined;
286
- onStop?: () => void;
287
- onTrack?: (event: DebuggerEvent) => void;
288
- onTrigger?: (event: DebuggerEvent) => void;
289
- constructor(fn: () => T, scheduler?: EffectScheduler | null, scope?: EffectScope);
290
- run(): T | undefined;
291
- stop(): void;
292
- }
293
265
  export interface DebuggerOptions {
294
266
  onTrack?: (event: DebuggerEvent) => void;
295
267
  onTrigger?: (event: DebuggerEvent) => void;
296
268
  }
297
269
  export interface ReactiveEffectOptions extends DebuggerOptions {
298
- lazy?: boolean;
299
270
  scheduler?: EffectScheduler;
300
- scope?: EffectScope;
301
271
  allowRecurse?: boolean;
302
272
  onStop?: () => void;
303
273
  }
274
+ export declare enum EffectFlags {
275
+ /**
276
+ * ReactiveEffect only
277
+ */
278
+ ACTIVE = 1,
279
+ RUNNING = 2,
280
+ TRACKING = 4,
281
+ NOTIFIED = 8,
282
+ DIRTY = 16,
283
+ ALLOW_RECURSE = 32,
284
+ PAUSED = 64
285
+ }
286
+ /**
287
+ * Subscriber is a type that tracks (or subscribes to) a list of deps.
288
+ */
289
+ interface Subscriber extends DebuggerOptions {
290
+ }
291
+ export declare class ReactiveEffect<T = any> implements Subscriber, ReactiveEffectOptions {
292
+ fn: () => T;
293
+ scheduler?: EffectScheduler;
294
+ onStop?: () => void;
295
+ onTrack?: (event: DebuggerEvent) => void;
296
+ onTrigger?: (event: DebuggerEvent) => void;
297
+ constructor(fn: () => T);
298
+ pause(): void;
299
+ resume(): void;
300
+ run(): T;
301
+ stop(): void;
302
+ trigger(): void;
303
+ get dirty(): boolean;
304
+ }
304
305
  export interface ReactiveEffectRunner<T = any> {
305
306
  (): T;
306
307
  effect: ReactiveEffect;
307
308
  }
308
- /**
309
- * Registers the given function to track reactive updates.
310
- *
311
- * The given function will be run once immediately. Every time any reactive
312
- * property that's accessed within it gets updated, the function will run again.
313
- *
314
- * @param fn - The function that will track reactive updates.
315
- * @param options - Allows to control the effect's behaviour.
316
- * @returns A runner that can be used to control the effect after creation.
317
- */
318
- export declare function effect<T = any>(fn: () => T, options?: ReactiveEffectOptions): ReactiveEffectRunner;
309
+ export interface ReactiveEffectRunner<T = any> {
310
+ (): T;
311
+ effect: ReactiveEffect;
312
+ }
313
+ export declare function effect<T = any>(fn: () => T, options?: ReactiveEffectOptions): ReactiveEffectRunner<T>;
319
314
  /**
320
315
  * Stops the effect associated with the given runner.
321
316
  *
@@ -335,47 +330,95 @@ export declare function enableTracking(): void;
335
330
  */
336
331
  export declare function resetTracking(): void;
337
332
  /**
338
- * Tracks access to a reactive property.
333
+ * Registers a cleanup function for the current active effect.
334
+ * The cleanup function is called right before the next effect run, or when the
335
+ * effect is stopped.
339
336
  *
340
- * This will check which effect is running at the moment and record it as dep
341
- * which records all effects that depend on the reactive property.
337
+ * Throws a warning if there is no current active effect. The warning can be
338
+ * suppressed by passing `true` to the second argument.
342
339
  *
343
- * @param target - Object holding the reactive property.
344
- * @param type - Defines the type of access to the reactive property.
345
- * @param key - Identifier of the reactive property to track.
340
+ * @param fn - the cleanup function to be registered
341
+ * @param failSilently - if `true`, will not throw warning when called without
342
+ * an active effect.
346
343
  */
347
- export declare function track(target: object, type: TrackOpTypes, key: unknown): void;
344
+ export declare function onEffectCleanup(fn: () => void, failSilently?: boolean): void;
345
+
346
+ declare const ComputedRefSymbol: unique symbol;
347
+ declare const WritableComputedRefSymbol: unique symbol;
348
+ interface BaseComputedRef<T, S = T> extends Ref<T, S> {
349
+ [ComputedRefSymbol]: true;
350
+ /**
351
+ * @deprecated computed no longer uses effect
352
+ */
353
+ effect: ComputedRefImpl;
354
+ }
355
+ export interface ComputedRef<T = any> extends BaseComputedRef<T> {
356
+ readonly value: T;
357
+ }
358
+ export interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {
359
+ [WritableComputedRefSymbol]: true;
360
+ }
361
+ export type ComputedGetter<T> = (oldValue?: T) => T;
362
+ export type ComputedSetter<T> = (newValue: T) => void;
363
+ export interface WritableComputedOptions<T, S = T> {
364
+ get: ComputedGetter<T>;
365
+ set: ComputedSetter<S>;
366
+ }
348
367
  /**
349
- * Finds all deps associated with the target (or a specific property) and
350
- * triggers the effects stored within.
351
- *
352
- * @param target - The reactive object.
353
- * @param type - Defines the type of the operation that needs to trigger effects.
354
- * @param key - Can be used to target a specific reactive property in the target object.
368
+ * @private exported by @vue/reactivity for Vue core use, but not exported from
369
+ * the main vue package
355
370
  */
356
- export declare function trigger(target: object, type: TriggerOpTypes, key?: unknown, newValue?: unknown, oldValue?: unknown, oldTarget?: Map<unknown, unknown> | Set<unknown>): void;
357
-
358
- type Dep = Set<ReactiveEffect> & TrackedMarkers;
371
+ export declare class ComputedRefImpl<T = any> implements Subscriber {
372
+ fn: ComputedGetter<T>;
373
+ private readonly setter;
374
+ effect: this;
375
+ onTrack?: (event: DebuggerEvent) => void;
376
+ onTrigger?: (event: DebuggerEvent) => void;
377
+ constructor(fn: ComputedGetter<T>, setter: ComputedSetter<T> | undefined, isSSR: boolean);
378
+ get value(): T;
379
+ set value(newValue: T);
380
+ }
359
381
  /**
360
- * wasTracked and newTracked maintain the status for several levels of effect
361
- * tracking recursion. One bit per level is used to define whether the dependency
362
- * was/is tracked.
382
+ * Takes a getter function and returns a readonly reactive ref object for the
383
+ * returned value from the getter. It can also take an object with get and set
384
+ * functions to create a writable ref object.
385
+ *
386
+ * @example
387
+ * ```js
388
+ * // Creating a readonly computed ref:
389
+ * const count = ref(1)
390
+ * const plusOne = computed(() => count.value + 1)
391
+ *
392
+ * console.log(plusOne.value) // 2
393
+ * plusOne.value++ // error
394
+ * ```
395
+ *
396
+ * ```js
397
+ * // Creating a writable computed ref:
398
+ * const count = ref(1)
399
+ * const plusOne = computed({
400
+ * get: () => count.value + 1,
401
+ * set: (val) => {
402
+ * count.value = val - 1
403
+ * }
404
+ * })
405
+ *
406
+ * plusOne.value = 1
407
+ * console.log(count.value) // 0
408
+ * ```
409
+ *
410
+ * @param getter - Function that produces the next value.
411
+ * @param debugOptions - For debugging. See {@link https://vuejs.org/guide/extras/reactivity-in-depth.html#computed-debugging}.
412
+ * @see {@link https://vuejs.org/api/reactivity-core.html#computed}
363
413
  */
364
- type TrackedMarkers = {
365
- /**
366
- * wasTracked
367
- */
368
- w: number;
369
- /**
370
- * newTracked
371
- */
372
- n: number;
373
- };
414
+ export declare function computed<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T>;
415
+ export declare function computed<T, S = T>(options: WritableComputedOptions<T, S>, debugOptions?: DebuggerOptions): WritableComputedRef<T, S>;
374
416
 
375
417
  declare const RefSymbol: unique symbol;
376
418
  declare const RawSymbol: unique symbol;
377
- export interface Ref<T = any> {
378
- value: T;
419
+ export interface Ref<T = any, S = T> {
420
+ get value(): T;
421
+ set value(_: S);
379
422
  /**
380
423
  * Type differentiator only.
381
424
  * We need this to be in public d.ts but don't want it to show up in IDE
@@ -397,11 +440,10 @@ export declare function isRef<T>(r: Ref<T> | unknown): r is Ref<T>;
397
440
  * @param value - The object to wrap in the ref.
398
441
  * @see {@link https://vuejs.org/api/reactivity-core.html#ref}
399
442
  */
400
- export declare function ref<T extends Ref>(value: T): T;
401
- export declare function ref<T>(value: T): Ref<UnwrapRef<T>>;
443
+ export declare function ref<T>(value: T): [T] extends [Ref] ? IfAny<T, Ref<T>, T> : Ref<UnwrapRef<T>, UnwrapRef<T> | T>;
402
444
  export declare function ref<T = any>(): Ref<T | undefined>;
403
445
  declare const ShallowRefMarker: unique symbol;
404
- export type ShallowRef<T = any> = Ref<T> & {
446
+ export type ShallowRef<T = any, S = T> = Ref<T, S> & {
405
447
  [ShallowRefMarker]?: true;
406
448
  };
407
449
  /**
@@ -421,8 +463,7 @@ export type ShallowRef<T = any> = Ref<T> & {
421
463
  * @param value - The "inner value" for the shallow ref.
422
464
  * @see {@link https://vuejs.org/api/reactivity-advanced.html#shallowref}
423
465
  */
424
- export declare function shallowRef<T extends object>(value: T): T extends Ref ? T : ShallowRef<T>;
425
- export declare function shallowRef<T>(value: T): ShallowRef<T>;
466
+ export declare function shallowRef<T>(value: T): Ref extends T ? T extends Ref ? IfAny<T, ShallowRef<T>, T> : ShallowRef<T> : ShallowRef<T>;
426
467
  export declare function shallowRef<T = any>(): ShallowRef<T | undefined>;
427
468
  /**
428
469
  * Force trigger effects that depends on a shallow ref. This is typically used
@@ -450,8 +491,8 @@ export declare function shallowRef<T = any>(): ShallowRef<T | undefined>;
450
491
  * @see {@link https://vuejs.org/api/reactivity-advanced.html#triggerref}
451
492
  */
452
493
  export declare function triggerRef(ref: Ref): void;
453
- export type MaybeRef<T = any> = T | Ref<T>;
454
- export type MaybeRefOrGetter<T = any> = MaybeRef<T> | (() => T);
494
+ export type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
495
+ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T);
455
496
  /**
456
497
  * Returns the inner value if the argument is a ref, otherwise return the
457
498
  * argument itself. This is a sugar function for
@@ -468,7 +509,7 @@ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | (() => T);
468
509
  * @param ref - Ref or plain value to be converted into the plain value.
469
510
  * @see {@link https://vuejs.org/api/reactivity-utilities.html#unref}
470
511
  */
471
- export declare function unref<T>(ref: MaybeRef<T>): T;
512
+ export declare function unref<T>(ref: MaybeRef<T> | ComputedRef<T>): T;
472
513
  /**
473
514
  * Normalizes values / refs / getters to values.
474
515
  * This is similar to {@link unref()}, except that it also normalizes getters.
@@ -487,11 +528,9 @@ export declare function unref<T>(ref: MaybeRef<T>): T;
487
528
  */
488
529
  export declare function toValue<T>(source: MaybeRefOrGetter<T>): T;
489
530
  /**
490
- * Returns a reactive proxy for the given object.
491
- *
492
- * If the object already is reactive, it's returned as-is. If not, a new
493
- * reactive proxy is created. Direct child properties that are refs are properly
494
- * handled, as well.
531
+ * Returns a proxy for the given object that shallowly unwraps properties that
532
+ * are refs. If the object already is reactive, it's returned as-is. If not, a
533
+ * new reactive proxy is created.
495
534
  *
496
535
  * @param objectWithRefs - Either an already-reactive object or a simple object
497
536
  * that contains refs.
@@ -568,7 +607,6 @@ export type ToRef<T> = IfAny<T, Ref<T>, [T] extends [Ref] ? T : Ref<T>>;
568
607
  export declare function toRef<T>(value: T): T extends () => infer R ? Readonly<Ref<R>> : T extends Ref ? T : Ref<UnwrapRef<T>>;
569
608
  export declare function toRef<T extends object, K extends keyof T>(object: T, key: K): ToRef<T[K]>;
570
609
  export declare function toRef<T extends object, K extends keyof T>(object: T, key: K, defaultValue: T[K]): ToRef<Exclude<T[K], undefined>>;
571
- type BaseTypes = string | number | boolean;
572
610
  /**
573
611
  * This is a special exported interface for other packages to declare
574
612
  * additional types that should bail out for ref unwrapping. For example
@@ -585,12 +623,13 @@ type BaseTypes = string | number | boolean;
585
623
  export interface RefUnwrapBailTypes {
586
624
  }
587
625
  export type ShallowUnwrapRef<T> = {
588
- [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];
626
+ [K in keyof T]: DistributeRef<T[K]>;
589
627
  };
590
- export type UnwrapRef<T> = T extends ShallowRef<infer V> ? V : T extends Ref<infer V> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
591
- type UnwrapRefSimple<T> = T extends Function | CollectionTypes | BaseTypes | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
628
+ type DistributeRef<T> = T extends Ref<infer V, unknown> ? V : T;
629
+ export type UnwrapRef<T> = T extends ShallowRef<infer V, unknown> ? V : T extends Ref<infer V, unknown> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
630
+ type UnwrapRefSimple<T> = T extends Builtin | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
592
631
  [RawSymbol]?: true;
593
- } ? T : T extends ReadonlyArray<any> ? {
632
+ } ? T : T extends Map<infer K, infer V> ? Map<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Map<any, any>>> : T extends WeakMap<infer K, infer V> ? WeakMap<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakMap<any, any>>> : T extends Set<infer V> ? Set<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Set<any>>> : T extends WeakSet<infer V> ? WeakSet<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakSet<any>>> : T extends ReadonlyArray<any> ? {
594
633
  [K in keyof T]: UnwrapRefSimple<T[K]>;
595
634
  } : T extends object & {
596
635
  [ShallowReactiveMarker]?: never;
@@ -598,55 +637,118 @@ type UnwrapRefSimple<T> = T extends Function | CollectionTypes | BaseTypes | Ref
598
637
  [P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>;
599
638
  } : T;
600
639
 
601
- declare const ComputedRefSymbol: unique symbol;
602
- export interface ComputedRef<T = any> extends WritableComputedRef<T> {
603
- readonly value: T;
604
- [ComputedRefSymbol]: true;
605
- }
606
- export interface WritableComputedRef<T> extends Ref<T> {
607
- readonly effect: ReactiveEffect<T>;
608
- }
609
- export type ComputedGetter<T> = (...args: any[]) => T;
610
- export type ComputedSetter<T> = (v: T) => void;
611
- export interface WritableComputedOptions<T> {
612
- get: ComputedGetter<T>;
613
- set: ComputedSetter<T>;
614
- }
640
+ export declare const ITERATE_KEY: unique symbol;
641
+ export declare const MAP_KEY_ITERATE_KEY: unique symbol;
642
+ export declare const ARRAY_ITERATE_KEY: unique symbol;
615
643
  /**
616
- * Takes a getter function and returns a readonly reactive ref object for the
617
- * returned value from the getter. It can also take an object with get and set
618
- * functions to create a writable ref object.
644
+ * Tracks access to a reactive property.
619
645
  *
620
- * @example
621
- * ```js
622
- * // Creating a readonly computed ref:
623
- * const count = ref(1)
624
- * const plusOne = computed(() => count.value + 1)
646
+ * This will check which effect is running at the moment and record it as dep
647
+ * which records all effects that depend on the reactive property.
625
648
  *
626
- * console.log(plusOne.value) // 2
627
- * plusOne.value++ // error
628
- * ```
649
+ * @param target - Object holding the reactive property.
650
+ * @param type - Defines the type of access to the reactive property.
651
+ * @param key - Identifier of the reactive property to track.
652
+ */
653
+ export declare function track(target: object, type: TrackOpTypes, key: unknown): void;
654
+ /**
655
+ * Finds all deps associated with the target (or a specific property) and
656
+ * triggers the effects stored within.
629
657
  *
630
- * ```js
631
- * // Creating a writable computed ref:
632
- * const count = ref(1)
633
- * const plusOne = computed({
634
- * get: () => count.value + 1,
635
- * set: (val) => {
636
- * count.value = val - 1
637
- * }
638
- * })
658
+ * @param target - The reactive object.
659
+ * @param type - Defines the type of the operation that needs to trigger effects.
660
+ * @param key - Can be used to target a specific reactive property in the target object.
661
+ */
662
+ export declare function trigger(target: object, type: TriggerOpTypes, key?: unknown, newValue?: unknown, oldValue?: unknown, oldTarget?: Map<unknown, unknown> | Set<unknown>): void;
663
+
664
+ export declare class EffectScope {
665
+ detached: boolean;
666
+ private _isPaused;
667
+ constructor(detached?: boolean);
668
+ get active(): boolean;
669
+ pause(): void;
670
+ /**
671
+ * Resumes the effect scope, including all child scopes and effects.
672
+ */
673
+ resume(): void;
674
+ run<T>(fn: () => T): T | undefined;
675
+ stop(fromParent?: boolean): void;
676
+ }
677
+ /**
678
+ * Creates an effect scope object which can capture the reactive effects (i.e.
679
+ * computed and watchers) created within it so that these effects can be
680
+ * disposed together. For detailed use cases of this API, please consult its
681
+ * corresponding {@link https://github.com/vuejs/rfcs/blob/master/active-rfcs/0041-reactivity-effect-scope.md | RFC}.
639
682
  *
640
- * plusOne.value = 1
641
- * console.log(count.value) // 0
642
- * ```
683
+ * @param detached - Can be used to create a "detached" effect scope.
684
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#effectscope}
685
+ */
686
+ export declare function effectScope(detached?: boolean): EffectScope;
687
+ /**
688
+ * Returns the current active effect scope if there is one.
643
689
  *
644
- * @param getter - Function that produces the next value.
645
- * @param debugOptions - For debugging. See {@link https://vuejs.org/guide/extras/reactivity-in-depth.html#computed-debugging}.
646
- * @see {@link https://vuejs.org/api/reactivity-core.html#computed}
690
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#getcurrentscope}
647
691
  */
648
- export declare function computed<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T>;
649
- export declare function computed<T>(options: WritableComputedOptions<T>, debugOptions?: DebuggerOptions): WritableComputedRef<T>;
692
+ export declare function getCurrentScope(): EffectScope | undefined;
693
+ /**
694
+ * Registers a dispose callback on the current active effect scope. The
695
+ * callback will be invoked when the associated effect scope is stopped.
696
+ *
697
+ * @param fn - The callback function to attach to the scope's cleanup.
698
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#onscopedispose}
699
+ */
700
+ export declare function onScopeDispose(fn: () => void, failSilently?: boolean): void;
650
701
 
651
- export declare function deferredComputed<T>(getter: () => T): ComputedRef<T>;
702
+ /**
703
+ * Track array iteration and return:
704
+ * - if input is reactive: a cloned raw array with reactive values
705
+ * - if input is non-reactive or shallowReactive: the original raw array
706
+ */
707
+ export declare function reactiveReadArray<T>(array: T[]): T[];
708
+ /**
709
+ * Track array iteration and return raw array
710
+ */
711
+ export declare function shallowReadArray<T>(arr: T[]): T[];
712
+
713
+ export declare enum WatchErrorCodes {
714
+ WATCH_GETTER = 2,
715
+ WATCH_CALLBACK = 3,
716
+ WATCH_CLEANUP = 4
717
+ }
718
+ export type WatchEffect = (onCleanup: OnCleanup) => void;
719
+ export type WatchSource<T = any> = Ref<T, any> | ComputedRef<T> | (() => T);
720
+ export type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
721
+ export type OnCleanup = (cleanupFn: () => void) => void;
722
+ export interface WatchOptions<Immediate = boolean> extends DebuggerOptions {
723
+ immediate?: Immediate;
724
+ deep?: boolean | number;
725
+ once?: boolean;
726
+ scheduler?: WatchScheduler;
727
+ onWarn?: (msg: string, ...args: any[]) => void;
728
+ }
729
+ export type WatchStopHandle = () => void;
730
+ export interface WatchHandle extends WatchStopHandle {
731
+ pause: () => void;
732
+ resume: () => void;
733
+ stop: () => void;
734
+ }
735
+ export type WatchScheduler = (job: () => void, isFirstRun: boolean) => void;
736
+ /**
737
+ * Returns the current active effect if there is one.
738
+ */
739
+ export declare function getCurrentWatcher(): ReactiveEffect<any> | undefined;
740
+ /**
741
+ * Registers a cleanup callback on the current active effect. This
742
+ * registered cleanup callback will be invoked right before the
743
+ * associated effect re-runs.
744
+ *
745
+ * @param cleanupFn - The callback function to attach to the effect's cleanup.
746
+ * @param failSilently - if `true`, will not throw warning when called without
747
+ * an active effect.
748
+ * @param owner - The effect that this cleanup function should be attached to.
749
+ * By default, the current active effect.
750
+ */
751
+ export declare function onWatcherCleanup(cleanupFn: () => void, failSilently?: boolean, owner?: ReactiveEffect | undefined): void;
752
+ export declare function watch(source: WatchSource | WatchSource[] | WatchEffect | object, cb?: WatchCallback | null, options?: WatchOptions): WatchHandle;
753
+ export declare function traverse(value: unknown, depth?: number, seen?: Set<unknown>): unknown;
652
754
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/reactivity",
3
- "version": "3.3.8",
3
+ "version": "3.5.13",
4
4
  "description": "@vue/reactivity",
5
5
  "main": "index.js",
6
6
  "module": "dist/reactivity.esm-bundler.js",
@@ -11,6 +11,20 @@
11
11
  "index.js",
12
12
  "dist"
13
13
  ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/reactivity.d.ts",
17
+ "node": {
18
+ "production": "./dist/reactivity.cjs.prod.js",
19
+ "development": "./dist/reactivity.cjs.js",
20
+ "default": "./index.js"
21
+ },
22
+ "module": "./dist/reactivity.esm-bundler.js",
23
+ "import": "./dist/reactivity.esm-bundler.js",
24
+ "require": "./index.js"
25
+ },
26
+ "./*": "./*"
27
+ },
14
28
  "sideEffects": false,
15
29
  "repository": {
16
30
  "type": "git",
@@ -36,6 +50,6 @@
36
50
  },
37
51
  "homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
38
52
  "dependencies": {
39
- "@vue/shared": "3.3.8"
53
+ "@vue/shared": "3.5.13"
40
54
  }
41
55
  }