index.ts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. // Core API ------------------------------------------------------------------
  2. export const version = __VERSION__
  3. export {
  4. // core
  5. type Ref,
  6. reactive,
  7. ref,
  8. readonly,
  9. computed,
  10. // utilities
  11. unref,
  12. proxyRefs,
  13. isRef,
  14. toRef,
  15. toValue,
  16. toRefs,
  17. isProxy,
  18. isReactive,
  19. isReadonly,
  20. isShallow,
  21. // advanced
  22. customRef,
  23. triggerRef,
  24. shallowRef,
  25. shallowReactive,
  26. shallowReadonly,
  27. markRaw,
  28. toRaw,
  29. // effect
  30. stop,
  31. ReactiveEffect,
  32. onEffectCleanup,
  33. // effect scope
  34. effectScope,
  35. EffectScope,
  36. getCurrentScope,
  37. onScopeDispose,
  38. // baseWatch
  39. onWatcherCleanup,
  40. getCurrentWatcher,
  41. } from '@vue/reactivity'
  42. export { nextTick } from './scheduler'
  43. export {
  44. getCurrentInstance,
  45. type ComponentInternalInstance,
  46. type Component,
  47. type ObjectComponent,
  48. type FunctionalComponent,
  49. type SetupFn,
  50. } from './component'
  51. export { renderEffect } from './renderEffect'
  52. export {
  53. watch,
  54. watchEffect,
  55. watchPostEffect,
  56. watchSyncEffect,
  57. type WatchEffect,
  58. type WatchOptions,
  59. type WatchOptionsBase,
  60. type WatchCallback,
  61. type WatchSource,
  62. type WatchStopHandle,
  63. } from './apiWatch'
  64. export {
  65. withDirectives,
  66. type Directive,
  67. type DirectiveBinding,
  68. type DirectiveHook,
  69. type ObjectDirective,
  70. type FunctionDirective,
  71. type DirectiveArguments,
  72. type DirectiveModifiers,
  73. } from './directives'
  74. export { template, children, next } from './dom/template'
  75. export { insert, prepend, remove, createTextNode } from './dom/element'
  76. export { setStyle } from './dom/style'
  77. export {
  78. setText,
  79. setHtml,
  80. setClass,
  81. setAttr,
  82. setDOMProp,
  83. setDynamicProp,
  84. setDynamicProps,
  85. } from './dom/prop'
  86. export { on, delegate, delegateEvents, setDynamicEvents } from './dom/event'
  87. export { setRef } from './dom/templateRef'
  88. export { defineComponent } from './apiDefineComponent'
  89. export {
  90. type InjectionKey,
  91. inject,
  92. provide,
  93. hasInjectionContext,
  94. } from './apiInject'
  95. export {
  96. onBeforeMount,
  97. onMounted,
  98. onBeforeUpdate,
  99. onUpdated,
  100. onBeforeUnmount,
  101. onUnmounted,
  102. // onActivated,
  103. // onDeactivated,
  104. // onRenderTracked,
  105. // onRenderTriggered,
  106. onErrorCaptured,
  107. // onServerPrefetch,
  108. } from './apiLifecycle'
  109. export { useAttrs, useSlots } from './apiSetupHelpers'
  110. export {
  111. createVaporApp,
  112. type App,
  113. type AppConfig,
  114. type AppContext,
  115. } from './apiCreateVaporApp'
  116. export { createIf } from './apiCreateIf'
  117. export { createFor } from './apiCreateFor'
  118. export { createComponent } from './apiCreateComponent'
  119. export { resolveComponent, resolveDirective } from './helpers/resolveAssets'
  120. // **Internal** DOM-only runtime directive helpers
  121. export {
  122. vModelText,
  123. vModelCheckbox,
  124. vModelRadio,
  125. vModelSelect,
  126. vModelDynamic,
  127. } from './directives/vModel'
  128. export { vShow } from './directives/vShow'