@next-core/next-docs 1.2.280 → 1.2.283

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,30 @@
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.283](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.282...@next-core/next-docs@1.2.283) (2022-07-18)
7
+
8
+ **Note:** Version bump only for package @next-core/next-docs
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.2.282](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.281...@next-core/next-docs@1.2.282) (2022-07-18)
15
+
16
+ **Note:** Version bump only for package @next-core/next-docs
17
+
18
+
19
+
20
+
21
+
22
+ ## [1.2.281](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.280...@next-core/next-docs@1.2.281) (2022-07-15)
23
+
24
+ **Note:** Version bump only for package @next-core/next-docs
25
+
26
+
27
+
28
+
29
+
6
30
  ## [1.2.280](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.279...@next-core/next-docs@1.2.280) (2022-07-15)
7
31
 
8
32
  **Note:** Version bump only for package @next-core/next-docs
@@ -16,6 +16,6 @@ custom_edit_url: null
16
16
  **Signature:**
17
17
 
18
18
  ```typescript
19
- action: "history.push" | "history.replace" | "history.goBack" | "history.goForward" | "history.reload" | "history.pushQuery" | "history.replaceQuery" | "history.pushAnchor" | "history.block" | "history.unblock" | "segue.push" | "segue.replace" | "alias.push" | "alias.replace" | "localStorage.setItem" | "localStorage.removeItem" | "sessionStorage.setItem" | "sessionStorage.removeItem" | "legacy.go" | "location.reload" | "location.assign" | "window.open" | "event.preventDefault" | "console.log" | "console.error" | "console.warn" | "console.info" | "message.success" | "message.error" | "message.info" | "message.warn" | "handleHttpError" | "context.assign" | "context.replace" | "state.update" | "tpl.dispatchEvent" | "message.subscribe" | "message.unsubscribe" | "theme.setDarkTheme" | "theme.setLightTheme" | "theme.setTheme" | "mode.setDashboardMode" | "mode.setDefaultMode" | "menu.clearMenuTitleCache" | "menu.clearMenuCache" | "analytics.event";
19
+ action: "history.push" | "history.replace" | "history.goBack" | "history.goForward" | "history.reload" | "history.pushQuery" | "history.replaceQuery" | "history.pushAnchor" | "history.block" | "history.unblock" | "segue.push" | "segue.replace" | "alias.push" | "alias.replace" | "localStorage.setItem" | "localStorage.removeItem" | "sessionStorage.setItem" | "sessionStorage.removeItem" | "legacy.go" | "location.reload" | "location.assign" | "window.open" | "event.preventDefault" | "console.log" | "console.error" | "console.warn" | "console.info" | "message.success" | "message.error" | "message.info" | "message.warn" | "handleHttpError" | "context.assign" | "context.replace" | "state.update" | "tpl.dispatchEvent" | "message.subscribe" | "message.unsubscribe" | "theme.setDarkTheme" | "theme.setLightTheme" | "theme.setTheme" | "mode.setDashboardMode" | "mode.setDefaultMode" | "menu.clearMenuTitleCache" | "menu.clearMenuCache" | "preview.debug" | "analytics.event";
20
20
  ```
21
21
 
@@ -23,7 +23,7 @@ export interface BuiltinBrickEventHandler
23
23
 
24
24
  | Property | Type | Description |
25
25
  | --- | --- | --- |
26
- | [action](./brick-types.builtinbrickeventhandler.action.md) | "history.push" \| "history.replace" \| "history.goBack" \| "history.goForward" \| "history.reload" \| "history.pushQuery" \| "history.replaceQuery" \| "history.pushAnchor" \| "history.block" \| "history.unblock" \| "segue.push" \| "segue.replace" \| "alias.push" \| "alias.replace" \| "localStorage.setItem" \| "localStorage.removeItem" \| "sessionStorage.setItem" \| "sessionStorage.removeItem" \| "legacy.go" \| "location.reload" \| "location.assign" \| "window.open" \| "event.preventDefault" \| "console.log" \| "console.error" \| "console.warn" \| "console.info" \| "message.success" \| "message.error" \| "message.info" \| "message.warn" \| "handleHttpError" \| "context.assign" \| "context.replace" \| "state.update" \| "tpl.dispatchEvent" \| "message.subscribe" \| "message.unsubscribe" \| "theme.setDarkTheme" \| "theme.setLightTheme" \| "theme.setTheme" \| "mode.setDashboardMode" \| "mode.setDefaultMode" \| "menu.clearMenuTitleCache" \| "menu.clearMenuCache" \| "analytics.event" | 处理动作名。 |
26
+ | [action](./brick-types.builtinbrickeventhandler.action.md) | "history.push" \| "history.replace" \| "history.goBack" \| "history.goForward" \| "history.reload" \| "history.pushQuery" \| "history.replaceQuery" \| "history.pushAnchor" \| "history.block" \| "history.unblock" \| "segue.push" \| "segue.replace" \| "alias.push" \| "alias.replace" \| "localStorage.setItem" \| "localStorage.removeItem" \| "sessionStorage.setItem" \| "sessionStorage.removeItem" \| "legacy.go" \| "location.reload" \| "location.assign" \| "window.open" \| "event.preventDefault" \| "console.log" \| "console.error" \| "console.warn" \| "console.info" \| "message.success" \| "message.error" \| "message.info" \| "message.warn" \| "handleHttpError" \| "context.assign" \| "context.replace" \| "state.update" \| "tpl.dispatchEvent" \| "message.subscribe" \| "message.unsubscribe" \| "theme.setDarkTheme" \| "theme.setLightTheme" \| "theme.setTheme" \| "mode.setDashboardMode" \| "mode.setDefaultMode" \| "menu.clearMenuTitleCache" \| "menu.clearMenuCache" \| "preview.debug" \| "analytics.event" | 处理动作名。 |
27
27
  | [args](./brick-types.builtinbrickeventhandler.args.md) | unknown\[\] | 传递的参数列表 |
28
28
  | [callback](./brick-types.builtinbrickeventhandler.callback.md) | [BrickEventHandlerCallback](./brick-types.brickeventhandlercallback.md) | 事件处理回调。 |
29
29
  | [if](./brick-types.builtinbrickeventhandler.if.md) | string \| boolean | 根据条件决定是否执行该动作。 |
@@ -24,7 +24,8 @@ export interface Contract
24
24
  | [endpoint](./brick-types.contract.endpoint.md) | { method: "POST" \| "post" \| "PUT" \| "put" \| "GET" \| "get" \| "DELETE" \| "delete" \| "LIST" \| "list" \| "PATCH" \| "patch" \| "HEAD" \| "head"; uri: string; ext\_fields?: [ExtField](./brick-types.extfield.md)<!-- -->\[\]; } | |
25
25
  | [name](./brick-types.contract.name.md) | string | |
26
26
  | [namespaceId](./brick-types.contract.namespaceid.md) | string | |
27
- | [response](./brick-types.contract.response.md) | { wrapper?: boolean; type?: "file" \| "object"; } | |
27
+ | [request](./brick-types.contract.request.md) | [ContractRequest](./brick-types.contractrequest.md) | |
28
+ | [response](./brick-types.contract.response.md) | [ContractResponse](./brick-types.contractresponse.md) | |
28
29
  | [serviceName](./brick-types.contract.servicename.md) | string | |
29
30
  | [version](./brick-types.contract.version.md) | string | |
30
31
 
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: brick-types.contract.request
3
+ title: Contract.request
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; [Contract](./brick-types.contract.md) &gt; [request](./brick-types.contract.request.md)
11
+
12
+ ## Contract.request property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ request?: ContractRequest;
18
+ ```
19
+
20
+ **Reference:** [ContractRequest](./brick-types.contractrequest.md)
21
+
@@ -14,9 +14,8 @@ custom_edit_url: null
14
14
  **Signature:**
15
15
 
16
16
  ```typescript
17
- response: {
18
- wrapper?: boolean;
19
- type?: "file" | "object";
20
- };
17
+ response?: ContractResponse;
21
18
  ```
22
19
 
20
+ **Reference:** [ContractResponse](./brick-types.contractresponse.md)
21
+
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: brick-types.contractfield
3
+ title: ContractField
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; [ContractField](./brick-types.contractfield.md)
11
+
12
+ ## ContractField interface
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ export declare type ContractField = ContractFieldItem | ContractFieldRefItem;
18
+ ```
19
+
20
+ **Reference:** [ContractFieldItem](./brick-types.contractfielditem.md)<!-- -->, [ContractFieldRefItem](./brick-types.contractfieldrefitem.md)
21
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: brick-types.contractfielditem.description
3
+ title: ContractFieldItem.description
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; [ContractFieldItem](./brick-types.contractfielditem.md) &gt; [description](./brick-types.contractfielditem.description.md)
11
+
12
+ ## ContractFieldItem.description property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ description: string;
18
+ ```
19
+
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: brick-types.contractfielditem.fields
3
+ title: ContractFieldItem.fields
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; [ContractFieldItem](./brick-types.contractfielditem.md) &gt; [fields](./brick-types.contractfielditem.fields.md)
11
+
12
+ ## ContractFieldItem.fields property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ fields?: (ContractFieldItem | ContractFieldRefItem)[];
18
+ ```
19
+
20
+ **Reference:** [ContractFieldItem](./brick-types.contractfielditem.md)<!-- -->, [ContractFieldRefItem](./brick-types.contractfieldrefitem.md)
21
+
@@ -0,0 +1,28 @@
1
+ ---
2
+ id: brick-types.contractfielditem
3
+ title: ContractFieldItem
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; [ContractFieldItem](./brick-types.contractfielditem.md)
11
+
12
+ ## ContractFieldItem interface
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ export interface ContractFieldItem
18
+ ```
19
+
20
+ ## Properties
21
+
22
+ | Property | Type | Description |
23
+ | --- | --- | --- |
24
+ | [description](./brick-types.contractfielditem.description.md) | string | |
25
+ | [fields](./brick-types.contractfielditem.fields.md) | ([ContractFieldItem](./brick-types.contractfielditem.md) \| [ContractFieldRefItem](./brick-types.contractfieldrefitem.md)<!-- -->)\[\] | |
26
+ | [name](./brick-types.contractfielditem.name.md) | string | |
27
+ | [type](./brick-types.contractfielditem.type.md) | string | |
28
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: brick-types.contractfielditem.name
3
+ title: ContractFieldItem.name
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; [ContractFieldItem](./brick-types.contractfielditem.md) &gt; [name](./brick-types.contractfielditem.name.md)
11
+
12
+ ## ContractFieldItem.name property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ name: string;
18
+ ```
19
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: brick-types.contractfielditem.type
3
+ title: ContractFieldItem.type
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; [ContractFieldItem](./brick-types.contractfielditem.md) &gt; [type](./brick-types.contractfielditem.type.md)
11
+
12
+ ## ContractFieldItem.type property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ type: string;
18
+ ```
19
+
@@ -0,0 +1,25 @@
1
+ ---
2
+ id: brick-types.contractfieldrefitem
3
+ title: ContractFieldRefItem
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; [ContractFieldRefItem](./brick-types.contractfieldrefitem.md)
11
+
12
+ ## ContractFieldRefItem interface
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ export interface ContractFieldRefItem
18
+ ```
19
+
20
+ ## Properties
21
+
22
+ | Property | Type | Description |
23
+ | --- | --- | --- |
24
+ | [ref](./brick-types.contractfieldrefitem.ref.md) | string | |
25
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: brick-types.contractfieldrefitem.ref
3
+ title: ContractFieldRefItem.ref
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; [ContractFieldRefItem](./brick-types.contractfieldrefitem.md) &gt; [ref](./brick-types.contractfieldrefitem.ref.md)
11
+
12
+ ## ContractFieldRefItem.ref property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ ref: string;
18
+ ```
19
+
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: brick-types.contractrequest
3
+ title: ContractRequest
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; [ContractRequest](./brick-types.contractrequest.md)
11
+
12
+ ## ContractRequest interface
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ export declare type ContractRequest = Omit<ContractResponse, "wrapper">;
18
+ ```
19
+
20
+ **Reference:** [ContractResponse](./brick-types.contractresponse.md)
21
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: brick-types.contractresponse.default
3
+ title: ContractResponse.default
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; [ContractResponse](./brick-types.contractresponse.md) &gt; [default](./brick-types.contractresponse.default.md)
11
+
12
+ ## ContractResponse.default property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ default?: Record<string, any>;
18
+ ```
19
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: brick-types.contractresponse.description
3
+ title: ContractResponse.description
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; [ContractResponse](./brick-types.contractresponse.md) &gt; [description](./brick-types.contractresponse.description.md)
11
+
12
+ ## ContractResponse.description property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ description?: string;
18
+ ```
19
+
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: brick-types.contractresponse.fields
3
+ title: ContractResponse.fields
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; [ContractResponse](./brick-types.contractresponse.md) &gt; [fields](./brick-types.contractresponse.fields.md)
11
+
12
+ ## ContractResponse.fields property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ fields?: ContractField[];
18
+ ```
19
+
20
+ **Reference:** [ContractField](./brick-types.contractfield.md)
21
+
@@ -0,0 +1,30 @@
1
+ ---
2
+ id: brick-types.contractresponse
3
+ title: ContractResponse
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; [ContractResponse](./brick-types.contractresponse.md)
11
+
12
+ ## ContractResponse interface
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ export interface ContractResponse
18
+ ```
19
+
20
+ ## Properties
21
+
22
+ | Property | Type | Description |
23
+ | --- | --- | --- |
24
+ | [default](./brick-types.contractresponse.default.md) | Record&lt;string, any&gt; | |
25
+ | [description](./brick-types.contractresponse.description.md) | string | |
26
+ | [fields](./brick-types.contractresponse.fields.md) | [ContractField](./brick-types.contractfield.md)<!-- -->\[\] | |
27
+ | [required](./brick-types.contractresponse.required.md) | string\[\] | |
28
+ | [type](./brick-types.contractresponse.type.md) | "file" \| "object" | |
29
+ | [wrapper](./brick-types.contractresponse.wrapper.md) | boolean | |
30
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: brick-types.contractresponse.required
3
+ title: ContractResponse.required
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; [ContractResponse](./brick-types.contractresponse.md) &gt; [required](./brick-types.contractresponse.required.md)
11
+
12
+ ## ContractResponse.required property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ required?: string[];
18
+ ```
19
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: brick-types.contractresponse.type
3
+ title: ContractResponse.type
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; [ContractResponse](./brick-types.contractresponse.md) &gt; [type](./brick-types.contractresponse.type.md)
11
+
12
+ ## ContractResponse.type property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ type?: "file" | "object";
18
+ ```
19
+
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: brick-types.contractresponse.wrapper
3
+ title: ContractResponse.wrapper
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; [ContractResponse](./brick-types.contractresponse.md) &gt; [wrapper](./brick-types.contractresponse.wrapper.md)
11
+
12
+ ## ContractResponse.wrapper property
13
+
14
+ **Signature:**
15
+
16
+ ```typescript
17
+ wrapper?: boolean;
18
+ ```
19
+
@@ -42,6 +42,11 @@ The core types of Brick Next.
42
42
  | [BuiltinBrickEventHandler](./brick-types.builtinbrickeventhandler.md) | 系统内置的事件处理器。 |
43
43
  | [ContextConf](./brick-types.contextconf.md) | 上下文(数据)配置 |
44
44
  | [Contract](./brick-types.contract.md) | |
45
+ | [ContractField](./brick-types.contractfield.md) | |
46
+ | [ContractFieldItem](./brick-types.contractfielditem.md) | |
47
+ | [ContractFieldRefItem](./brick-types.contractfieldrefitem.md) | |
48
+ | [ContractRequest](./brick-types.contractrequest.md) | |
49
+ | [ContractResponse](./brick-types.contractresponse.md) | |
45
50
  | [CustomBrickEventHandler](./brick-types.custombrickeventhandler.md) | 使用指定构件进行事件处理的配置。 |
46
51
  | [CustomTemplate](./brick-types.customtemplate.md) | 自定义模板配置。 |
47
52
  | [CustomTemplateConstructor](./brick-types.customtemplateconstructor.md) | 自定义模板构造声明。 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/next-docs",
3
- "version": "1.2.280",
3
+ "version": "1.2.283",
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.122.13",
25
- "@next-core/brick-types": "^2.64.3",
24
+ "@next-core/brick-kit": "^2.123.1",
25
+ "@next-core/brick-types": "^2.65.0",
26
26
  "fs-extra": "^10.1.0"
27
27
  },
28
- "gitHead": "0d6a08eafd7c0969db0495a29bd1a99fb3913c07"
28
+ "gitHead": "63f396f1adcbdef549ce922cc9df40f983dd7f84"
29
29
  }