@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 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) &gt; [@next-core/brick-kit](./brick-kit.md) &gt; [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
- | [getMockRule](./brick-kit.getmockrule.md) | |
67
+ | [getMockId](./brick-kit.getmockid.md) | |
68
68
  | [SingleBrickAsComponent](./brick-kit.singlebrickascomponent.md) | 可以渲染单个 <code>useBrick</code> 的 React 组件。 |
69
69
 
@@ -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 配置。 |
@@ -23,6 +23,5 @@ export interface MockRule
23
23
 
24
24
  | Property | Type | Description |
25
25
  | --- | --- | --- |
26
- | [mockId](./brick-types.mockrule.mockid.md) | string | mock id |
27
26
  | [uri](./brick-types.mockrule.uri.md) | string | uri地址 |
28
27
 
@@ -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) &gt; [@next-core/brick-types](./brick-types.md) &gt; [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.mockrule.mockid
3
- title: MockRule.mockId
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) &gt; [@next-core/brick-types](./brick-types.md) &gt; [MockRule](./brick-types.mockrule.md) &gt; [mockId](./brick-types.mockrule.mockid.md)
10
+ [API Reference](./index.md) &gt; [@next-core/brick-types](./brick-types.md) &gt; [Mocks](./brick-types.mocks.md) &gt; [mockId](./brick-types.mocks.mockid.md)
11
11
 
12
- ## MockRule.mockId property
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) &gt; [@next-core/brick-types](./brick-types.md) &gt; [Mocks](./brick-types.mocks.md) &gt; [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) | [MockRule](./brick-types.mockrule.md)<!-- -->\[\] | 应用启用mock服务列表 |
30
+ | [mocks](./brick-types.storyboardmeta.mocks.md) | [Mocks](./brick-types.mocks.md) | 应用启用mock服务列表 |
31
31
 
@@ -16,8 +16,8 @@ custom_edit_url: null
16
16
  **Signature:**
17
17
 
18
18
  ```typescript
19
- mocks?: MockRule[];
19
+ mocks?: Mocks;
20
20
  ```
21
21
 
22
- **Reference:** [MockRule](./brick-types.mockrule.md)
22
+ **Reference:** [Mocks](./brick-types.mocks.md)
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/next-docs",
3
- "version": "1.2.180",
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.96.0",
25
- "@next-core/brick-types": "^2.52.0",
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": "8650ce8fb30ead44ab81fd547bd716d7d2164dfe"
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) &gt; [@next-core/brick-kit](./brick-kit.md) &gt; [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
-