@next-core/next-docs 1.2.325 → 1.2.328
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 +24 -0
- package/dist/brick-types.extendedhistory.md +3 -3
- package/dist/brick-types.extendedhistory.push.md +1 -1
- package/dist/brick-types.extendedhistory.reload.md +1 -1
- package/dist/brick-types.extendedhistory.replace.md +1 -1
- package/dist/brick-types.updateanchorfunction.md +1 -1
- package/dist/brick-types.updatequeryfunction.md +1 -1
- package/package.json +4 -4
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.328](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.327...@next-core/next-docs@1.2.328) (2022-09-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @next-core/next-docs
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.2.327](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.326...@next-core/next-docs@1.2.327) (2022-09-07)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @next-core/next-docs
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.2.326](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.325...@next-core/next-docs@1.2.326) (2022-09-07)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @next-core/next-docs
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [1.2.325](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.324...@next-core/next-docs@1.2.325) (2022-09-06)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @next-core/next-docs
|
|
@@ -23,11 +23,11 @@ export interface ExtendedHistory
|
|
|
23
23
|
|
|
24
24
|
| Property | Type | Description |
|
|
25
25
|
| --- | --- | --- |
|
|
26
|
-
| [push](./brick-types.extendedhistory.push.md) |
|
|
26
|
+
| [push](./brick-types.extendedhistory.push.md) | (location: LocationDescriptor<PluginHistoryState>, state?: PluginHistoryState, callback?: (blocked: boolean) => void) => void | 推入一条记录。 |
|
|
27
27
|
| [pushAnchor](./brick-types.extendedhistory.pushanchor.md) | [UpdateAnchorFunction](./brick-types.updateanchorfunction.md) | 设置指定的 anchor (URL hash)地址,此方法默认不会触发页面重新渲染。 往浏览器会话历史栈中推入一条新记录。 |
|
|
28
28
|
| [pushQuery](./brick-types.extendedhistory.pushquery.md) | [UpdateQueryFunction](./brick-types.updatequeryfunction.md) | 更新指定的 query 参数,会保留当前其它 query 参数,往浏览器会话历史栈中推入一条新记录。 |
|
|
29
|
-
| [reload](./brick-types.extendedhistory.reload.md) | () => void | 重载当前会话,即触发页面重新渲染。与 location.reload() 不同,它不会触发浏览器页面的重载。 |
|
|
30
|
-
| [replace](./brick-types.extendedhistory.replace.md) |
|
|
29
|
+
| [reload](./brick-types.extendedhistory.reload.md) | (callback?: (blocked: boolean) => void) => void | 重载当前会话,即触发页面重新渲染。与 location.reload() 不同,它不会触发浏览器页面的重载。 |
|
|
30
|
+
| [replace](./brick-types.extendedhistory.replace.md) | (location: LocationDescriptor<PluginHistoryState>, state?: PluginHistoryState, callback?: (blocked: boolean) => void) => void | 替换一条记录。 |
|
|
31
31
|
| [replaceQuery](./brick-types.extendedhistory.replacequery.md) | [UpdateQueryFunction](./brick-types.updatequeryfunction.md) | 更新指定的 query 参数,会保留当前其它 query 参数,替换浏览器会话历史栈中最新的一条记录。 |
|
|
32
32
|
| [unblock](./brick-types.extendedhistory.unblock.md) | () => void | 取消之前设置的阻止页面离开信息的设置。 |
|
|
33
33
|
|
|
@@ -16,6 +16,6 @@ custom_edit_url: null
|
|
|
16
16
|
**Signature:**
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
export declare type UpdateAnchorFunction = (hash: string, state?: PluginHistoryState) => void;
|
|
19
|
+
export declare type UpdateAnchorFunction = (hash: string, state?: PluginHistoryState, callback?: (blocked: boolean) => void) => void;
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -16,7 +16,7 @@ custom_edit_url: null
|
|
|
16
16
|
**Signature:**
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
export declare type UpdateQueryFunction = (query: Record<string, unknown>, options?: UpdateQueryOptions) => void;
|
|
19
|
+
export declare type UpdateQueryFunction = (query: Record<string, unknown>, options?: UpdateQueryOptions, callback?: (blocked: boolean) => void) => void;
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
**Reference:** [UpdateQueryOptions](./brick-types.updatequeryoptions.md)
|
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.328",
|
|
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.138.0",
|
|
25
|
+
"@next-core/brick-types": "^2.75.0",
|
|
26
26
|
"fs-extra": "^10.1.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "7b723430f782cf0818a3c2c708c9f621b1c1894f"
|
|
29
29
|
}
|