@next-core/next-docs 1.2.180 → 1.2.181
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/CHANGELOG.md +8 -0
- package/dist/brick-kit.getmockid.md +19 -0
- package/dist/brick-kit.md +1 -1
- package/dist/brick-types.md +1 -0
- package/dist/brick-types.mockrule.md +0 -1
- package/dist/brick-types.mocks.md +26 -0
- package/dist/{brick-types.mockrule.mockid.md → brick-types.mocks.mockid.md} +4 -4
- package/dist/brick-types.mocks.mocklist.md +23 -0
- package/dist/brick-types.storyboardmeta.md +1 -1
- package/dist/brick-types.storyboardmeta.mocks.md +2 -2
- package/package.json +4 -4
- package/dist/brick-kit.getmockrule.md +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.2.181](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.180...@next-core/next-docs@1.2.181) (2021-12-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @next-core/next-docs
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.2.180](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.179...@next-core/next-docs@1.2.180) (2021-12-29)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @next-core/next-docs
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: brick-kit.getmockid
|
|
3
|
+
title: getMockId
|
|
4
|
+
hide_title: true
|
|
5
|
+
custom_edit_url: null
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
[API Reference](./index.md) > [@next-core/brick-kit](./brick-kit.md) > [getMockId](./brick-kit.getmockid.md)
|
|
11
|
+
|
|
12
|
+
## getMockId variable
|
|
13
|
+
|
|
14
|
+
**Signature:**
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
getMockId: (requestUrl: string) => string | undefined
|
|
18
|
+
```
|
|
19
|
+
|
package/dist/brick-kit.md
CHANGED
|
@@ -64,6 +64,6 @@ The core kit of Brick Next.
|
|
|
64
64
|
| --- | --- |
|
|
65
65
|
| [FeatureFlagsProvider](./brick-kit.featureflagsprovider.md) | |
|
|
66
66
|
| [ForwardRefSingleBrickAsComponent](./brick-kit.forwardrefsinglebrickascomponent.md) | |
|
|
67
|
-
| [
|
|
67
|
+
| [getMockId](./brick-kit.getmockid.md) | |
|
|
68
68
|
| [SingleBrickAsComponent](./brick-kit.singlebrickascomponent.md) | 可以渲染单个 <code>useBrick</code> 的 React 组件。 |
|
|
69
69
|
|
package/dist/brick-types.md
CHANGED
|
@@ -86,6 +86,7 @@ The core types of Brick Next.
|
|
|
86
86
|
| [MetaI18n](./brick-types.metai18n.md) | 应用定义的国际化配置表。 |
|
|
87
87
|
| [MicroApp](./brick-types.microapp.md) | 微应用基本信息。 |
|
|
88
88
|
| [MockRule](./brick-types.mockrule.md) | 应用启用mock服务 |
|
|
89
|
+
| [Mocks](./brick-types.mocks.md) | |
|
|
89
90
|
| [PluginHistory](./brick-types.pluginhistory.md) | 系统会话对象。 |
|
|
90
91
|
| [PluginRuntimeContext](./brick-types.pluginruntimecontext.md) | 系统运行时信息。 |
|
|
91
92
|
| [ProviderConf](./brick-types.providerconf.md) | Provider 配置。 |
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: brick-types.mocks
|
|
3
|
+
title: Mocks
|
|
4
|
+
hide_title: true
|
|
5
|
+
custom_edit_url: null
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
[API Reference](./index.md) > [@next-core/brick-types](./brick-types.md) > [Mocks](./brick-types.mocks.md)
|
|
11
|
+
|
|
12
|
+
## Mocks interface
|
|
13
|
+
|
|
14
|
+
**Signature:**
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
export interface Mocks
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Properties
|
|
21
|
+
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| [mockId](./brick-types.mocks.mockid.md) | string | mock id |
|
|
25
|
+
| [mockList](./brick-types.mocks.mocklist.md) | [MockRule](./brick-types.mockrule.md)<!-- -->\[\] | 使用mock规则列表 |
|
|
26
|
+
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
id: brick-types.
|
|
3
|
-
title:
|
|
2
|
+
id: brick-types.mocks.mockid
|
|
3
|
+
title: Mocks.mockId
|
|
4
4
|
hide_title: true
|
|
5
5
|
custom_edit_url: null
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
9
|
|
|
10
|
-
[API Reference](./index.md) > [@next-core/brick-types](./brick-types.md) > [
|
|
10
|
+
[API Reference](./index.md) > [@next-core/brick-types](./brick-types.md) > [Mocks](./brick-types.mocks.md) > [mockId](./brick-types.mocks.mockid.md)
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Mocks.mockId property
|
|
13
13
|
|
|
14
14
|
mock id
|
|
15
15
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: brick-types.mocks.mocklist
|
|
3
|
+
title: Mocks.mockList
|
|
4
|
+
hide_title: true
|
|
5
|
+
custom_edit_url: null
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
[API Reference](./index.md) > [@next-core/brick-types](./brick-types.md) > [Mocks](./brick-types.mocks.md) > [mockList](./brick-types.mocks.mocklist.md)
|
|
11
|
+
|
|
12
|
+
## Mocks.mockList property
|
|
13
|
+
|
|
14
|
+
使用mock规则列表
|
|
15
|
+
|
|
16
|
+
**Signature:**
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
mockList: MockRule[];
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Reference:** [MockRule](./brick-types.mockrule.md)
|
|
23
|
+
|
|
@@ -27,5 +27,5 @@ export interface StoryboardMeta
|
|
|
27
27
|
| [functions](./brick-types.storyboardmeta.functions.md) | [StoryboardFunction](./brick-types.storyboardfunction.md)<!-- -->\[\] | 应用定义的函数列表。 |
|
|
28
28
|
| [i18n](./brick-types.storyboardmeta.i18n.md) | [MetaI18n](./brick-types.metai18n.md) | 应用定义的国际化配置表。 |
|
|
29
29
|
| [menus](./brick-types.storyboardmeta.menus.md) | [MenuRawData](./brick-types.menurawdata.md)<!-- -->\[\] | |
|
|
30
|
-
| [mocks](./brick-types.storyboardmeta.mocks.md) | [
|
|
30
|
+
| [mocks](./brick-types.storyboardmeta.mocks.md) | [Mocks](./brick-types.mocks.md) | 应用启用mock服务列表 |
|
|
31
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/next-docs",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.181",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/next-docs",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@easyops-cn/brick-next-pipes": "^0.3.12",
|
|
24
|
-
"@next-core/brick-kit": "^2.
|
|
25
|
-
"@next-core/brick-types": "^2.
|
|
24
|
+
"@next-core/brick-kit": "^2.97.0",
|
|
25
|
+
"@next-core/brick-types": "^2.53.0",
|
|
26
26
|
"fs-extra": "^10.0.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "fca7b1155ba7b9a4694338f04d373d16570f524a"
|
|
29
29
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: brick-kit.getmockrule
|
|
3
|
-
title: getMockRule
|
|
4
|
-
hide_title: true
|
|
5
|
-
custom_edit_url: null
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
[API Reference](./index.md) > [@next-core/brick-kit](./brick-kit.md) > [getMockRule](./brick-kit.getmockrule.md)
|
|
11
|
-
|
|
12
|
-
## getMockRule variable
|
|
13
|
-
|
|
14
|
-
**Signature:**
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
getMockRule: (requestUrl: string) => MockRule
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
**Reference:** [MockRule](./brick-types.mockrule.md)
|
|
21
|
-
|