actview 1.0.29 → 1.1.1
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.
- package/README.md +63 -63
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -0
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
# actview
|
|
2
|
-
|
|
3
|
-
**ActView 框架统一入口(聚合包)** —— 从 `actview` 一个包拿到全部核心 API。
|
|
4
|
-
|
|
5
|
-
`actview` 是面向使用者的聚合包:re-export `@actview/core` 的全部公开 API 与类型,`import { createApp, reactive } from 'actview'` 即可开始开发,无需分别安装/引用 `@actview/core`。
|
|
6
|
-
|
|
7
|
-
## 核心功能
|
|
8
|
-
|
|
9
|
-
- 统一 re-export `@actview/core` 的运行时 API(响应式、组件、生命周期、内置组件、SSR)
|
|
10
|
-
- 统一导出类型(`App` / `SetupContext` / `ComponentOptions`)
|
|
11
|
-
|
|
12
|
-
> 不含 `@actview/router`(路由是独立包,按需安装,对齐 Vue 生态中 vue-router 的模型)。
|
|
13
|
-
|
|
14
|
-
## 安装
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
pnpm add actview
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## 快速开始
|
|
21
|
-
|
|
22
|
-
```tsx
|
|
23
|
-
import { createApp, reactive, defineComponent, onMounted } from 'actview'
|
|
24
|
-
|
|
25
|
-
const App = defineComponent({
|
|
26
|
-
setup() {
|
|
27
|
-
const state = reactive({ count: 0 })
|
|
28
|
-
onMounted(() => console.log('mounted'))
|
|
29
|
-
return () => <div onClick={() => state.count++}>{state.count}</div>
|
|
30
|
-
},
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
createApp(<App />).mount('#app')
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## API(re-export 自 @actview/core)
|
|
37
|
-
|
|
38
|
-
| 分组 | 导出 |
|
|
39
|
-
|---|---|
|
|
40
|
-
| 应用 | `createApp` |
|
|
41
|
-
| 组件 | `defineComponent` |
|
|
42
|
-
| 响应式 | `reactive` / `shallowReactive` / `readonly` / `markRaw` / `ref` / `isRef` / `unref` / `toRef` / `toRefs` / `computed` / `watch` / `watchEffect` / `nextTick` |
|
|
43
|
-
| 生命周期 | `onMounted` / `onUpdated` / `onBeforeUnmount` / `onUnmounted` |
|
|
44
|
-
| 依赖注入 | `provide` / `useInjects` |
|
|
45
|
-
| 内置组件 | `Teleport` / `Transition` / `KeepAlive` / `ErrorBoundary` / `Suspense` / `lazy` |
|
|
46
|
-
| SSR / 其他 | `renderToString` / `getCurrentScope` |
|
|
47
|
-
| 类型 | `App` / `SetupContext` / `ComponentOptions` |
|
|
48
|
-
|
|
49
|
-
## 依赖关系
|
|
50
|
-
|
|
51
|
-
- `@actview/core`(全部 API 来源)
|
|
52
|
-
- `@actview/jsx`(类型契约;实际使用时还需在 `tsconfig` 配 `jsxImportSource: "@actview/jsx"`)
|
|
53
|
-
|
|
54
|
-
## 开发
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
pnpm build # tsup 打包 dist(薄壳,仅 re-export)
|
|
58
|
-
pnpm test # 走根目录 vitest
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## License
|
|
62
|
-
|
|
63
|
-
MIT
|
|
1
|
+
# actview
|
|
2
|
+
|
|
3
|
+
**ActView 框架统一入口(聚合包)** —— 从 `actview` 一个包拿到全部核心 API。
|
|
4
|
+
|
|
5
|
+
`actview` 是面向使用者的聚合包:re-export `@actview/core` 的全部公开 API 与类型,`import { createApp, reactive } from 'actview'` 即可开始开发,无需分别安装/引用 `@actview/core`。
|
|
6
|
+
|
|
7
|
+
## 核心功能
|
|
8
|
+
|
|
9
|
+
- 统一 re-export `@actview/core` 的运行时 API(响应式、组件、生命周期、内置组件、SSR)
|
|
10
|
+
- 统一导出类型(`App` / `SetupContext` / `ComponentOptions`)
|
|
11
|
+
|
|
12
|
+
> 不含 `@actview/router`(路由是独立包,按需安装,对齐 Vue 生态中 vue-router 的模型)。
|
|
13
|
+
|
|
14
|
+
## 安装
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pnpm add actview
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 快速开始
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
import { createApp, reactive, defineComponent, onMounted } from 'actview'
|
|
24
|
+
|
|
25
|
+
const App = defineComponent({
|
|
26
|
+
setup() {
|
|
27
|
+
const state = reactive({ count: 0 })
|
|
28
|
+
onMounted(() => console.log('mounted'))
|
|
29
|
+
return () => <div onClick={() => state.count++}>{state.count}</div>
|
|
30
|
+
},
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
createApp(<App />).mount('#app')
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## API(re-export 自 @actview/core)
|
|
37
|
+
|
|
38
|
+
| 分组 | 导出 |
|
|
39
|
+
|---|---|
|
|
40
|
+
| 应用 | `createApp` |
|
|
41
|
+
| 组件 | `defineComponent` |
|
|
42
|
+
| 响应式 | `reactive` / `shallowReactive` / `readonly` / `markRaw` / `ref` / `isRef` / `unref` / `toRef` / `toRefs` / `computed` / `watch` / `watchEffect` / `nextTick` |
|
|
43
|
+
| 生命周期 | `onMounted` / `onUpdated` / `onBeforeUnmount` / `onUnmounted` |
|
|
44
|
+
| 依赖注入 | `provide` / `useInjects` |
|
|
45
|
+
| 内置组件 | `Teleport` / `Transition` / `KeepAlive` / `ErrorBoundary` / `Suspense` / `lazy` |
|
|
46
|
+
| SSR / 其他 | `renderToString` / `getCurrentScope` |
|
|
47
|
+
| 类型 | `App` / `SetupContext` / `ComponentOptions` |
|
|
48
|
+
|
|
49
|
+
## 依赖关系
|
|
50
|
+
|
|
51
|
+
- `@actview/core`(全部 API 来源)
|
|
52
|
+
- `@actview/jsx`(类型契约;实际使用时还需在 `tsconfig` 配 `jsxImportSource: "@actview/jsx"`)
|
|
53
|
+
|
|
54
|
+
## 开发
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pnpm build # tsup 打包 dist(薄壳,仅 re-export)
|
|
58
|
+
pnpm test # 走根目录 vitest
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
MIT
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { App, ComponentOptions, ErrorBoundary, KeepAlive, SetupContext, Suspense, Teleport, Transition, TransitionGroup, computed, createApp, defineComponent, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, lazy, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, provide, reactive, readonly, ref, renderToString, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, toValue, triggerRef, unref, useInjects, watch, watchEffect } from '@actview/core';
|
|
1
|
+
export { App, ComponentOptions, ComputedOptions, ComputedRef, Context, ErrorBoundary, KeepAlive, Ref, SetupContext, Suspense, Teleport, Transition, TransitionGroup, WatchOptions, WatchSource, WritableComputedRef, computed, createApp, createContext, defineComponent, effectScope, getCurrentInstance, getCurrentScope, hydrate, isProxy, isReactive, isReadonly, isRef, isShallow, lazy, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, provide, rawRef, reactive, readonly, ref, renderToString, renderToStringAsync, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, toValue, triggerRef, unref, unrefs, useId, useInjects, useProp, useProps, useRootElement, watch, watchEffect } from '@actview/core';
|
package/dist/index.js
CHANGED
|
@@ -19,9 +19,11 @@ import {
|
|
|
19
19
|
triggerRef,
|
|
20
20
|
isRef,
|
|
21
21
|
unref,
|
|
22
|
+
unrefs,
|
|
22
23
|
toValue,
|
|
23
24
|
toRef,
|
|
24
25
|
toRefs,
|
|
26
|
+
rawRef,
|
|
25
27
|
watch,
|
|
26
28
|
watchEffect,
|
|
27
29
|
onWatcherCleanup,
|
|
@@ -40,7 +42,15 @@ import {
|
|
|
40
42
|
onRenderTriggered,
|
|
41
43
|
provide,
|
|
42
44
|
useInjects,
|
|
45
|
+
useId,
|
|
46
|
+
useRootElement,
|
|
47
|
+
useProp,
|
|
48
|
+
useProps,
|
|
49
|
+
getCurrentInstance,
|
|
50
|
+
createContext,
|
|
43
51
|
renderToString,
|
|
52
|
+
renderToStringAsync,
|
|
53
|
+
hydrate,
|
|
44
54
|
Teleport,
|
|
45
55
|
Transition,
|
|
46
56
|
TransitionGroup,
|
|
@@ -59,9 +69,12 @@ export {
|
|
|
59
69
|
TransitionGroup,
|
|
60
70
|
computed,
|
|
61
71
|
createApp,
|
|
72
|
+
createContext,
|
|
62
73
|
defineComponent,
|
|
63
74
|
effectScope,
|
|
75
|
+
getCurrentInstance,
|
|
64
76
|
getCurrentScope,
|
|
77
|
+
hydrate,
|
|
65
78
|
isProxy,
|
|
66
79
|
isReactive,
|
|
67
80
|
isReadonly,
|
|
@@ -84,10 +97,12 @@ export {
|
|
|
84
97
|
onUpdated,
|
|
85
98
|
onWatcherCleanup,
|
|
86
99
|
provide,
|
|
100
|
+
rawRef,
|
|
87
101
|
reactive,
|
|
88
102
|
readonly,
|
|
89
103
|
ref,
|
|
90
104
|
renderToString,
|
|
105
|
+
renderToStringAsync,
|
|
91
106
|
shallowReactive,
|
|
92
107
|
shallowReadonly,
|
|
93
108
|
shallowRef,
|
|
@@ -97,7 +112,12 @@ export {
|
|
|
97
112
|
toValue,
|
|
98
113
|
triggerRef,
|
|
99
114
|
unref,
|
|
115
|
+
unrefs,
|
|
116
|
+
useId,
|
|
100
117
|
useInjects,
|
|
118
|
+
useProp,
|
|
119
|
+
useProps,
|
|
120
|
+
useRootElement,
|
|
101
121
|
watch,
|
|
102
122
|
watchEffect
|
|
103
123
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "actview",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -8,9 +8,13 @@
|
|
|
8
8
|
"import": "./dist/index.js"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"@actview/core": "^1.0
|
|
13
|
-
"@actview/jsx": "^1.0
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"@actview/core": "^1.1.0",
|
|
13
|
+
"@actview/jsx": "^1.1.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@actview/core": "^1.1.0",
|
|
17
|
+
"@actview/jsx": "^1.1.0"
|
|
14
18
|
},
|
|
15
19
|
"files": [
|
|
16
20
|
"dist"
|