@next-core/next-docs 1.2.133 → 1.2.137

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,38 @@
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.137](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.136...@next-core/next-docs@1.2.137) (2021-10-27)
7
+
8
+ **Note:** Version bump only for package @next-core/next-docs
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.2.136](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.135...@next-core/next-docs@1.2.136) (2021-10-22)
15
+
16
+ **Note:** Version bump only for package @next-core/next-docs
17
+
18
+
19
+
20
+
21
+
22
+ ## [1.2.135](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.134...@next-core/next-docs@1.2.135) (2021-10-21)
23
+
24
+ **Note:** Version bump only for package @next-core/next-docs
25
+
26
+
27
+
28
+
29
+
30
+ ## [1.2.134](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.133...@next-core/next-docs@1.2.134) (2021-10-20)
31
+
32
+ **Note:** Version bump only for package @next-core/next-docs
33
+
34
+
35
+
36
+
37
+
6
38
  ## [1.2.133](https://github.com/easyops-cn/next-core/compare/@next-core/next-docs@1.2.132...@next-core/next-docs@1.2.133) (2021-10-20)
7
39
 
8
40
  **Note:** Version bump only for package @next-core/next-docs
@@ -16,7 +16,7 @@ custom_edit_url: null
16
16
  **Signature:**
17
17
 
18
18
  ```typescript
19
- hasInstalledApp(appId: string): boolean;
19
+ hasInstalledApp(appId: string, matchVersion?: string): boolean;
20
20
  ```
21
21
 
22
22
  ## Parameters
@@ -24,6 +24,7 @@ hasInstalledApp(appId: string): boolean;
24
24
  | Parameter | Type | Description |
25
25
  | --- | --- | --- |
26
26
  | appId | string | |
27
+ | matchVersion | string | |
27
28
 
28
29
  **Returns:**
29
30
 
@@ -32,7 +32,7 @@ export interface AbstractRuntime
32
32
  | [getFeatureFlags()](./brick-kit.abstractruntime.getfeatureflags.md) | 获取特性开关字典。 |
33
33
  | [getMicroApps(options)](./brick-kit.abstractruntime.getmicroapps.md) | 获取微应用列表。 |
34
34
  | [getMiscSettings()](./brick-kit.abstractruntime.getmiscsettings.md) | 获取杂项配置。 |
35
- | [hasInstalledApp(appId)](./brick-kit.abstractruntime.hasinstalledapp.md) | 查看是否已安装某应用。 |
35
+ | [hasInstalledApp(appId, matchVersion)](./brick-kit.abstractruntime.hasinstalledapp.md) | 查看是否已安装某应用。 |
36
36
  | [registerCustomProcessor(processorFullName, processorFunc)](./brick-kit.abstractruntime.registercustomprocessor.md) | 注册一个自定义加工函数。 |
37
37
  | [registerCustomTemplate(tplName, tplConstructor, appId)](./brick-kit.abstractruntime.registercustomtemplate.md) | 注册一个自定义模板。 |
38
38
  | [registerLazyBricks(bricks, factory)](./brick-kit.abstractruntime.registerlazybricks.md) | 注册懒加载的构件。 |
@@ -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" | "tpl.dispatchEvent" | "message.subscribe" | "message.unsubscribe" | "theme.setDarkTheme" | "theme.setLightTheme" | "mode.setDashboardMode" | "mode.setDefaultMode" | "menu.clearMenuTitleCache" | "menu.clearMenuCache";
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" | "tpl.dispatchEvent" | "message.subscribe" | "message.unsubscribe" | "theme.setDarkTheme" | "theme.setLightTheme" | "mode.setDashboardMode" | "mode.setDefaultMode" | "menu.clearMenuTitleCache" | "menu.clearMenuCache" | "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" \| "tpl.dispatchEvent" \| "message.subscribe" \| "message.unsubscribe" \| "theme.setDarkTheme" \| "theme.setLightTheme" \| "mode.setDashboardMode" \| "mode.setDefaultMode" \| "menu.clearMenuTitleCache" \| "menu.clearMenuCache" | 处理动作名。 |
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" \| "tpl.dispatchEvent" \| "message.subscribe" \| "message.unsubscribe" \| "theme.setDarkTheme" \| "theme.setLightTheme" \| "mode.setDashboardMode" \| "mode.setDefaultMode" \| "menu.clearMenuTitleCache" \| "menu.clearMenuCache" \| "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 | 根据条件决定是否执行该动作。 |
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: brick-types.microapp.currentversion
3
+ title: MicroApp.currentVersion
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; [MicroApp](./brick-types.microapp.md) &gt; [currentVersion](./brick-types.microapp.currentversion.md)
11
+
12
+ ## MicroApp.currentVersion property
13
+
14
+ 应用当前版本。
15
+
16
+ **Signature:**
17
+
18
+ ```typescript
19
+ currentVersion?: string;
20
+ ```
21
+
@@ -24,6 +24,7 @@ export interface MicroApp
24
24
  | Property | Type | Description |
25
25
  | --- | --- | --- |
26
26
  | [config](./brick-types.microapp.config.md) | Record&lt;string, unknown&gt; | 合并后的应用配置(运行时得出)。 |
27
+ | [currentVersion](./brick-types.microapp.currentversion.md) | string | 应用当前版本。 |
27
28
  | [defaultConfig](./brick-types.microapp.defaultconfig.md) | Record&lt;string, unknown&gt; | 应用的默认配置,在开发环境由应用开发者维护。 |
28
29
  | [homepage](./brick-types.microapp.homepage.md) | string | 应用主页地址,如 <code>/search</code>。 |
29
30
  | [iconBackground](./brick-types.microapp.iconbackground.md) | "circle" \| "square" | 应用图标在 Launchpad 中显示的背景形状。 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/next-docs",
3
- "version": "1.2.133",
3
+ "version": "1.2.137",
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.76.0",
25
- "@next-core/brick-types": "^2.41.0",
24
+ "@next-core/brick-kit": "^2.78.2",
25
+ "@next-core/brick-types": "^2.43.0",
26
26
  "fs-extra": "^10.0.0"
27
27
  },
28
- "gitHead": "704a65749721d9843552b58a2b52e56b7f1d6712"
28
+ "gitHead": "82ac9ac7a397fa3cf0c9be8b3539ae18f94df129"
29
29
  }