@marktowin/prototype-core 1.2.1 → 1.2.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.
- package/LICENSE +21 -21
- package/README.md +38 -38
- package/dist/{App-C7SEyP1D.js → App-D757kd2K.js} +2285 -2252
- package/dist/{index-B6sdCuQy.js → index-GFBw9PYk.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/prototype/usePrototype.d.ts +9 -4
- package/dist/style.css +1 -1
- package/dist/types/prototype.d.ts +2 -0
- package/package.json +14 -16
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 MarkTina
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MarkTina
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# Prototype Core
|
|
2
|
-
|
|
3
|
-
面向移动端与 PC Web 产品原型的 Vue 评审内核,提供交互、全图、流程、流程编排、主题、i18n、注释、页面描述、健康检查和协作能力。
|
|
4
|
-
|
|
5
|
-
## 安装
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pnpm add @marktowin/prototype-core vue @lucide/vue
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 使用
|
|
12
|
-
|
|
13
|
-
```ts
|
|
14
|
-
import { mountPrototypeApp } from '@marktowin/prototype-core'
|
|
15
|
-
import '@marktowin/prototype-core/style.css'
|
|
16
|
-
import { product } from './product'
|
|
17
|
-
|
|
18
|
-
void mountPrototypeApp({
|
|
19
|
-
target: '#app',
|
|
20
|
-
product,
|
|
21
|
-
})
|
|
22
|
-
```
|
|
23
|
-
|
|
1
|
+
# Prototype Core
|
|
2
|
+
|
|
3
|
+
面向移动端与 PC Web 产品原型的 Vue 评审内核,提供交互、全图、流程、流程编排、主题、i18n、注释、页面描述、健康检查和协作能力。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @marktowin/prototype-core vue @lucide/vue
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 使用
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { mountPrototypeApp } from '@marktowin/prototype-core'
|
|
15
|
+
import '@marktowin/prototype-core/style.css'
|
|
16
|
+
import { product } from './product'
|
|
17
|
+
|
|
18
|
+
void mountPrototypeApp({
|
|
19
|
+
target: '#app',
|
|
20
|
+
product,
|
|
21
|
+
})
|
|
22
|
+
```
|
|
23
|
+
|
|
24
24
|
完整接入方式见 `examples/basic`。默认关闭访问认证并使用本地协作模式;需要云端协作时通过 `runtimeConfig` 显式注入配置。
|
|
25
25
|
|
|
26
26
|
人或 AI 在消费者项目中执行接入、新建页面、状态、流程、页面描述、协作配置与验收时,统一参照 [消费者原型实施操作手册](https://github.com/MarkTina/prototype-core/blob/main/AI-PROTOTYPE-GUIDE.md) 的“触发词 → 标准动作 → 完成判定”流程。
|
|
@@ -47,18 +47,18 @@ runtimeConfig: {
|
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
`__DEPLOY_ENV_STATUS__` 应由消费者构建配置根据 `DEPLOY_*` 是否存在生成,且只能包含布尔值。
|
|
50
|
-
|
|
51
|
-
## 开发
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
pnpm install
|
|
55
|
-
pnpm build
|
|
56
|
-
pnpm dev
|
|
57
|
-
pnpm pack:check
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## 发布
|
|
61
|
-
|
|
62
|
-
发布标签格式为 `v<package.version>`。GitHub Actions 会验证、构建、发布到 npmjs,并创建带 `.tgz` 的 GitHub Release。
|
|
63
|
-
|
|
64
|
-
本项目采用 [MIT](LICENSE) 许可证。
|
|
50
|
+
|
|
51
|
+
## 开发
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pnpm install
|
|
55
|
+
pnpm build
|
|
56
|
+
pnpm dev
|
|
57
|
+
pnpm pack:check
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## 发布
|
|
61
|
+
|
|
62
|
+
发布标签格式为 `v<package.version>`。GitHub Actions 会验证、构建、发布到 npmjs,并创建带 `.tgz` 的 GitHub Release。
|
|
63
|
+
|
|
64
|
+
本项目采用 [MIT](LICENSE) 许可证。
|