@next-bricks/data-view 0.9.5 → 0.11.0
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/dist/bricks.json +9 -2
- package/dist/chunks/{1646.d0a1030e.js → 1646.e05a2000.js} +2 -2
- package/dist/chunks/{1646.d0a1030e.js.map → 1646.e05a2000.js.map} +1 -1
- package/dist/chunks/3494.81c25a14.js +2 -0
- package/dist/chunks/{7822.de12dc71.js.map → 3494.81c25a14.js.map} +1 -1
- package/dist/chunks/{4131.aab247a9.js → 4131.2914a18d.js} +2 -2
- package/dist/chunks/4131.2914a18d.js.map +1 -0
- package/dist/chunks/4717.9d6d3900.js +2 -0
- package/dist/chunks/4717.9d6d3900.js.map +1 -0
- package/dist/chunks/4770.570722fa.js +2 -0
- package/dist/chunks/{4770.d23b88f6.js.map → 4770.570722fa.js.map} +1 -1
- package/dist/chunks/{5114.742a2d22.js → 5114.5c6a5b4e.js} +2 -2
- package/dist/chunks/{5114.742a2d22.js.map → 5114.5c6a5b4e.js.map} +1 -1
- package/dist/chunks/6622.6f1e539b.js +2 -0
- package/dist/chunks/6622.6f1e539b.js.map +1 -0
- package/dist/chunks/7746.abcc7ffd.js +2 -0
- package/dist/chunks/{7746.dd1e6648.js.map → 7746.abcc7ffd.js.map} +1 -1
- package/dist/chunks/7822.94e0694c.js +2 -0
- package/dist/chunks/{3494.0610767d.js.map → 7822.94e0694c.js.map} +1 -1
- package/dist/chunks/9549.7e545750.js +2 -0
- package/dist/chunks/9549.7e545750.js.map +1 -0
- package/dist/chunks/app-wall-card-item.52bfd72b.js +3 -0
- package/dist/chunks/{app-wall-card-item.a3492828.js.map → app-wall-card-item.52bfd72b.js.map} +1 -1
- package/dist/chunks/app-wall-relation-line.d12ab574.js +3 -0
- package/dist/chunks/{app-wall-relation-line.9feb3b3f.js.map → app-wall-relation-line.d12ab574.js.map} +1 -1
- package/dist/chunks/app-wall.4204fd25.js +2 -0
- package/dist/chunks/{app-wall.aa916383.js.map → app-wall.4204fd25.js.map} +1 -1
- package/dist/chunks/battery-chart.de6dbc15.js +2 -0
- package/dist/chunks/{battery-chart.c7b33cfd.js.map → battery-chart.de6dbc15.js.map} +1 -1
- package/dist/chunks/brick-notification.3fa76af0.js +2 -0
- package/dist/chunks/brick-notification.3fa76af0.js.map +1 -0
- package/dist/chunks/cabinet-app-layer.263dc258.js +3 -0
- package/dist/chunks/{cabinet-app-layer.e21662e2.js.map → cabinet-app-layer.263dc258.js.map} +1 -1
- package/dist/chunks/cabinet-button.b31f664b.js +2 -0
- package/dist/chunks/{cabinet-button.8d0c43bb.js.map → cabinet-button.b31f664b.js.map} +1 -1
- package/dist/chunks/cabinet-container.a76fdd0e.js +3 -0
- package/dist/chunks/{cabinet-container.7d8f63ed.js.map → cabinet-container.a76fdd0e.js.map} +1 -1
- package/dist/chunks/cabinet-graph.e8dfa2f5.js +2 -0
- package/dist/chunks/{cabinet-graph.094c8bf0.js.map → cabinet-graph.e8dfa2f5.js.map} +1 -1
- package/dist/chunks/cabinet-node.4a9b5457.js +3 -0
- package/dist/chunks/{cabinet-node.bad8b93f.js.map → cabinet-node.4a9b5457.js.map} +1 -1
- package/dist/chunks/cabinet-thumbnail.c5035211.js +3 -0
- package/dist/chunks/{cabinet-thumbnail.33d08f9c.js.map → cabinet-thumbnail.c5035211.js.map} +1 -1
- package/dist/chunks/complex-search.131739bd.js +2 -0
- package/dist/chunks/{complex-search.0cc7e2a7.js.map → complex-search.131739bd.js.map} +1 -1
- package/dist/chunks/dropdown-menu.f7a23665.js +3 -0
- package/dist/chunks/{dropdown-menu.def63513.js.map → dropdown-menu.f7a23665.js.map} +1 -1
- package/dist/chunks/gauge-chart.b3d54688.js +2 -0
- package/dist/chunks/{gauge-chart.ebf65ada.js.map → gauge-chart.b3d54688.js.map} +1 -1
- package/dist/chunks/gear-background.5961b01f.js +2 -0
- package/dist/chunks/{gear-background.c727f136.js.map → gear-background.5961b01f.js.map} +1 -1
- package/dist/chunks/graph-layout-grid.e57ec367.js +2 -0
- package/dist/chunks/{graph-layout-grid.01486b61.js.map → graph-layout-grid.e57ec367.js.map} +1 -1
- package/dist/chunks/graph-node.9ef5f1e2.js +2 -0
- package/dist/chunks/{graph-node.7e008e6d.js.map → graph-node.9ef5f1e2.js.map} +1 -1
- package/dist/chunks/graph-text.7c41b025.js +2 -0
- package/dist/chunks/{graph-text.39e92f45.js.map → graph-text.7c41b025.js.map} +1 -1
- package/dist/chunks/grid-background.4f194b65.js +2 -0
- package/dist/chunks/{grid-background.c0611eb6.js.map → grid-background.4f194b65.js.map} +1 -1
- package/dist/chunks/lights-component-title.075a8e4f.js +2 -0
- package/dist/chunks/lights-component-title.075a8e4f.js.map +1 -0
- package/dist/chunks/loading-panel.235559c2.js +2 -0
- package/dist/chunks/{loading-panel.77c4428a.js.map → loading-panel.235559c2.js.map} +1 -1
- package/dist/chunks/main.c4d65463.js +2 -0
- package/dist/chunks/{main.73ecee17.js.map → main.c4d65463.js.map} +1 -1
- package/dist/chunks/modern-style-component-title.bc2ee704.js +2 -0
- package/dist/chunks/{modern-style-component-title.7f261750.js.map → modern-style-component-title.bc2ee704.js.map} +1 -1
- package/dist/chunks/modern-style-page-title.63ce36d4.js +2 -0
- package/dist/chunks/{modern-style-page-title.e3cbe6a7.js.map → modern-style-page-title.63ce36d4.js.map} +1 -1
- package/dist/chunks/modern-style-treemap.5473a85d.js +3 -0
- package/dist/chunks/{modern-style-treemap.67186c49.js.map → modern-style-treemap.5473a85d.js.map} +1 -1
- package/dist/chunks/particle-animation.96787333.js +2 -0
- package/dist/chunks/{particle-animation.01eed207.js.map → particle-animation.96787333.js.map} +1 -1
- package/dist/chunks/radar-chart.1b7e91a4.js +2 -0
- package/dist/chunks/{radar-chart.6e054c16.js.map → radar-chart.1b7e91a4.js.map} +1 -1
- package/dist/chunks/tabs-drawer.5070d5a0.js +3 -0
- package/dist/chunks/{tabs-drawer.712a1e6e.js.map → tabs-drawer.5070d5a0.js.map} +1 -1
- package/dist/chunks/tabs-page-title.34271921.js +3 -0
- package/dist/chunks/tabs-page-title.34271921.js.LICENSE.txt +5 -0
- package/dist/chunks/tabs-page-title.34271921.js.map +1 -0
- package/dist/chunks/title-text.9b21db4c.js +2 -0
- package/dist/chunks/title-text.9b21db4c.js.map +1 -0
- package/dist/chunks/top-title-bar.7745b624.js +2 -0
- package/dist/chunks/top-title-bar.7745b624.js.map +1 -0
- package/dist/index.958cbcba.js +2 -0
- package/dist/index.958cbcba.js.map +1 -0
- package/dist/manifest.json +97 -6
- package/dist/types.json +153 -0
- package/dist-types/bootstrap.d.ts +4 -0
- package/dist-types/brick-notification/index.d.ts +26 -0
- package/dist-types/brick-notification/index.spec.d.ts +1 -0
- package/dist-types/lights-component-title/index.d.ts +19 -0
- package/dist-types/lights-component-title/index.spec.d.ts +1 -0
- package/dist-types/tabs-page-title/index.d.ts +37 -0
- package/dist-types/tabs-page-title/index.spec.d.ts +1 -0
- package/dist-types/title-text/index.d.ts +8 -22
- package/dist-types/top-title-bar/index.d.ts +26 -0
- package/dist-types/top-title-bar/index.spec.d.ts +1 -0
- package/docs/brick-notification.md +23 -0
- package/docs/lights-component-title.md +21 -0
- package/docs/tabs-page-title.md +98 -0
- package/docs/top-title-bar.md +29 -0
- package/package.json +3 -3
- package/dist/chunks/3494.0610767d.js +0 -2
- package/dist/chunks/4131.aab247a9.js.map +0 -1
- package/dist/chunks/4717.ace78c3e.js +0 -2
- package/dist/chunks/4717.ace78c3e.js.map +0 -1
- package/dist/chunks/4770.d23b88f6.js +0 -2
- package/dist/chunks/7746.dd1e6648.js +0 -2
- package/dist/chunks/7822.de12dc71.js +0 -2
- package/dist/chunks/7890.885a981b.js +0 -2
- package/dist/chunks/7890.885a981b.js.map +0 -1
- package/dist/chunks/9549.78bc7312.js +0 -2
- package/dist/chunks/9549.78bc7312.js.map +0 -1
- package/dist/chunks/app-wall-card-item.a3492828.js +0 -3
- package/dist/chunks/app-wall-relation-line.9feb3b3f.js +0 -3
- package/dist/chunks/app-wall.aa916383.js +0 -2
- package/dist/chunks/battery-chart.c7b33cfd.js +0 -2
- package/dist/chunks/cabinet-app-layer.e21662e2.js +0 -3
- package/dist/chunks/cabinet-button.8d0c43bb.js +0 -2
- package/dist/chunks/cabinet-container.7d8f63ed.js +0 -3
- package/dist/chunks/cabinet-graph.094c8bf0.js +0 -2
- package/dist/chunks/cabinet-node.bad8b93f.js +0 -3
- package/dist/chunks/cabinet-thumbnail.33d08f9c.js +0 -3
- package/dist/chunks/complex-search.0cc7e2a7.js +0 -2
- package/dist/chunks/dropdown-menu.def63513.js +0 -3
- package/dist/chunks/gauge-chart.ebf65ada.js +0 -2
- package/dist/chunks/gear-background.c727f136.js +0 -2
- package/dist/chunks/graph-layout-grid.01486b61.js +0 -2
- package/dist/chunks/graph-node.7e008e6d.js +0 -2
- package/dist/chunks/graph-text.39e92f45.js +0 -2
- package/dist/chunks/grid-background.c0611eb6.js +0 -2
- package/dist/chunks/loading-panel.77c4428a.js +0 -2
- package/dist/chunks/main.73ecee17.js +0 -2
- package/dist/chunks/modern-style-component-title.7f261750.js +0 -2
- package/dist/chunks/modern-style-page-title.e3cbe6a7.js +0 -2
- package/dist/chunks/modern-style-treemap.67186c49.js +0 -3
- package/dist/chunks/particle-animation.01eed207.js +0 -2
- package/dist/chunks/radar-chart.6e054c16.js +0 -2
- package/dist/chunks/tabs-drawer.712a1e6e.js +0 -3
- package/dist/chunks/title-text.26debb34.js +0 -2
- package/dist/chunks/title-text.26debb34.js.map +0 -1
- package/dist/index.c15c6055.js +0 -2
- package/dist/index.c15c6055.js.map +0 -1
- /package/dist/chunks/{app-wall-card-item.a3492828.js.LICENSE.txt → app-wall-card-item.52bfd72b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{app-wall-relation-line.9feb3b3f.js.LICENSE.txt → app-wall-relation-line.d12ab574.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{cabinet-app-layer.e21662e2.js.LICENSE.txt → cabinet-app-layer.263dc258.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{cabinet-container.7d8f63ed.js.LICENSE.txt → cabinet-container.a76fdd0e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{cabinet-node.bad8b93f.js.LICENSE.txt → cabinet-node.4a9b5457.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{cabinet-thumbnail.33d08f9c.js.LICENSE.txt → cabinet-thumbnail.c5035211.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{dropdown-menu.def63513.js.LICENSE.txt → dropdown-menu.f7a23665.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{modern-style-treemap.67186c49.js.LICENSE.txt → modern-style-treemap.5473a85d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{tabs-drawer.712a1e6e.js.LICENSE.txt → tabs-drawer.5070d5a0.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
+
type TitleBarType = "normal" | "sample" | "square";
|
|
4
|
+
interface TopTitleBarProps {
|
|
5
|
+
text: string;
|
|
6
|
+
type?: TitleBarType;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 大屏标题栏三种样式构件
|
|
10
|
+
* @author jiezhou
|
|
11
|
+
*/
|
|
12
|
+
declare class TopTitleBar extends ReactNextElement implements TopTitleBarProps {
|
|
13
|
+
/**
|
|
14
|
+
* 标题文本
|
|
15
|
+
* @default -
|
|
16
|
+
*/
|
|
17
|
+
accessor text: string;
|
|
18
|
+
/**
|
|
19
|
+
* 标题类型
|
|
20
|
+
* @default normal
|
|
21
|
+
*/
|
|
22
|
+
accessor type: TitleBarType;
|
|
23
|
+
render(): JSX.Element;
|
|
24
|
+
}
|
|
25
|
+
export declare function TopTitleBarComponent(props: TopTitleBarProps): JSX.Element;
|
|
26
|
+
export { TopTitleBar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
大屏通知提示构件
|
|
2
|
+
|
|
3
|
+
## Examples
|
|
4
|
+
|
|
5
|
+
### Basic
|
|
6
|
+
|
|
7
|
+
```yaml preview
|
|
8
|
+
- brick: data-view.brick-notification
|
|
9
|
+
properties:
|
|
10
|
+
message: This is the content of the notification.
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Icon
|
|
14
|
+
|
|
15
|
+
```yaml preview
|
|
16
|
+
- brick: data-view.brick-notification
|
|
17
|
+
properties:
|
|
18
|
+
message: This is the content of the notification.
|
|
19
|
+
icon:
|
|
20
|
+
icon: smile
|
|
21
|
+
lib: antd
|
|
22
|
+
theme: outlined
|
|
23
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
构件 `data-view.lights-component-title`
|
|
2
|
+
|
|
3
|
+
## Examples
|
|
4
|
+
|
|
5
|
+
### Basic
|
|
6
|
+
|
|
7
|
+
```yaml preview
|
|
8
|
+
- brick: div
|
|
9
|
+
properties:
|
|
10
|
+
style:
|
|
11
|
+
width: 100%
|
|
12
|
+
height: 100%
|
|
13
|
+
background: "#000000FF"
|
|
14
|
+
slots:
|
|
15
|
+
"":
|
|
16
|
+
type: bricks
|
|
17
|
+
bricks:
|
|
18
|
+
- brick: data-view.lights-component-title
|
|
19
|
+
properties:
|
|
20
|
+
componentTitle: 标题内容
|
|
21
|
+
```
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
构件 tabs-page-title
|
|
2
|
+
|
|
3
|
+
## Examples
|
|
4
|
+
|
|
5
|
+
### Basic
|
|
6
|
+
|
|
7
|
+
```yaml preview
|
|
8
|
+
- brick: data-view.tabs-page-title
|
|
9
|
+
properties:
|
|
10
|
+
slots:
|
|
11
|
+
"":
|
|
12
|
+
type: bricks
|
|
13
|
+
bricks:
|
|
14
|
+
- brick: data-view.title-text
|
|
15
|
+
properties:
|
|
16
|
+
text: 大标题
|
|
17
|
+
type: gradient
|
|
18
|
+
start:
|
|
19
|
+
type: bricks
|
|
20
|
+
bricks:
|
|
21
|
+
- brick: data-view.brick-notification
|
|
22
|
+
properties:
|
|
23
|
+
message: This is the content of the notification.
|
|
24
|
+
end:
|
|
25
|
+
type: bricks
|
|
26
|
+
bricks:
|
|
27
|
+
- brick: div
|
|
28
|
+
properties:
|
|
29
|
+
textContent: "2022/11/30 17:25 星期四"
|
|
30
|
+
style:
|
|
31
|
+
font-size: 16px
|
|
32
|
+
color: "#fff"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### TabList
|
|
36
|
+
|
|
37
|
+
```yaml preview
|
|
38
|
+
- brick: data-view.tabs-page-title
|
|
39
|
+
properties:
|
|
40
|
+
tabList:
|
|
41
|
+
- text: 标签1
|
|
42
|
+
key: key1
|
|
43
|
+
- text: 标签2
|
|
44
|
+
key: key2
|
|
45
|
+
- text: 标签3
|
|
46
|
+
key: key3
|
|
47
|
+
- text: 标签4
|
|
48
|
+
key: key4
|
|
49
|
+
- text: 标签5
|
|
50
|
+
key: key5
|
|
51
|
+
- text: 标签6
|
|
52
|
+
key: key6
|
|
53
|
+
activeKey: key2
|
|
54
|
+
slots:
|
|
55
|
+
"":
|
|
56
|
+
type: bricks
|
|
57
|
+
bricks:
|
|
58
|
+
- brick: data-view.title-text
|
|
59
|
+
properties:
|
|
60
|
+
text: 大标题
|
|
61
|
+
type: gradient
|
|
62
|
+
key1:
|
|
63
|
+
type: bricks
|
|
64
|
+
bricks:
|
|
65
|
+
- brick: div
|
|
66
|
+
properties:
|
|
67
|
+
textContent: 标签一内容
|
|
68
|
+
key2:
|
|
69
|
+
type: bricks
|
|
70
|
+
bricks:
|
|
71
|
+
- brick: div
|
|
72
|
+
properties:
|
|
73
|
+
textContent: 标签二内容
|
|
74
|
+
key3:
|
|
75
|
+
type: bricks
|
|
76
|
+
bricks:
|
|
77
|
+
- brick: div
|
|
78
|
+
properties:
|
|
79
|
+
textContent: 标签三内容
|
|
80
|
+
key4:
|
|
81
|
+
type: bricks
|
|
82
|
+
bricks:
|
|
83
|
+
- brick: div
|
|
84
|
+
properties:
|
|
85
|
+
textContent: 标签四内容
|
|
86
|
+
key5:
|
|
87
|
+
type: bricks
|
|
88
|
+
bricks:
|
|
89
|
+
- brick: div
|
|
90
|
+
properties:
|
|
91
|
+
textContent: 标签五内容
|
|
92
|
+
key6:
|
|
93
|
+
type: bricks
|
|
94
|
+
bricks:
|
|
95
|
+
- brick: div
|
|
96
|
+
properties:
|
|
97
|
+
textContent: 标签六内容
|
|
98
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
构件 `data-view.top-title-bar`
|
|
2
|
+
|
|
3
|
+
## Examples
|
|
4
|
+
|
|
5
|
+
### Basic
|
|
6
|
+
|
|
7
|
+
```yaml preview
|
|
8
|
+
- brick: data-view.top-title-bar
|
|
9
|
+
properties:
|
|
10
|
+
text: 实时数据可视化大屏
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Smaple
|
|
14
|
+
|
|
15
|
+
```yaml preview
|
|
16
|
+
- brick: data-view.top-title-bar
|
|
17
|
+
properties:
|
|
18
|
+
text: 实时数据可视化大屏
|
|
19
|
+
type: sample
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Square
|
|
23
|
+
|
|
24
|
+
```yaml preview
|
|
25
|
+
- brick: data-view.top-title-bar
|
|
26
|
+
properties:
|
|
27
|
+
text: 实时数据可视化大屏
|
|
28
|
+
type: square
|
|
29
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/data-view",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/data-view",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"postpublish": "mv package.json.bak package.json"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@next-core/build-next-bricks": "^1.
|
|
37
|
+
"@next-core/build-next-bricks": "^1.13.0",
|
|
38
38
|
"@next-core/test-next": "^1.0.6",
|
|
39
39
|
"@types/d3-hierarchy": "^3.1.2",
|
|
40
40
|
"@types/three": "^0.150.1"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "2473585d600a9df03bfb59ba823ea1303f3dd4bb"
|
|
43
43
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[3494,7822,4795],{4795:(e,t,r)=>{function n(e,t,r,n,a,u,c){try{var i=e[u](c),s=i.value}catch(e){return void r(e)}i.done?t(s):Promise.resolve(s).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,u){var c=e.apply(t,r);function i(e){n(c,a,u,i,s,"next",e)}function s(e){n(c,a,u,i,s,"throw",e)}i(void 0)}))}}r.d(t,{Z:()=>a})},7822:(e,t,r)=>{r.r(t),r.d(t,{ReactUseBrick:()=>c,ReactUseMultipleBricks:()=>i,useCurrentApp:()=>o,useCurrentTheme:()=>s,useRecentApps:()=>l});var n=r(4795),a=r(8657),u=r(205);function c(e){var{useBrick:t,data:r}=e,[c,i]=(0,a.useState)(null),s=(0,a.useRef)(),[l,o]=(0,a.useState)(),d=(0,a.useRef)(0);(0,a.useEffect)((()=>{function e(){return(e=(0,n.Z)((function*(){try{i(yield u.__secret_internals.renderUseBrick(t,r)),o(++d.current)}catch(e){console.error("Render useBrick failed:",t,"with data:",r),(0,u.handleHttpError)(e)}}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[r,t]);var f=(0,a.useCallback)((e=>{e?s.current=u.__secret_internals.mountUseBrick(c,e):(u.__secret_internals.unmountUseBrick(c,s.current),s.current=void 0)}),[c]);if(!c)return null;var{tagName:v}=c;if(null===v)return null;var p=v;return a.createElement(p,{key:l,ref:f})}function i(e){var{useBrick:t,data:r}=e;return Array.isArray(t)?a.createElement(a.Fragment,null,t.map(((e,t)=>a.createElement(c,{key:t,useBrick:e,data:r})))):a.createElement(c,{useBrick:t,data:r})}function s(){var[e,t]=(0,a.useState)(u.getCurrentTheme);return(0,a.useEffect)((()=>{var e=e=>{t(e.detail)};return window.addEventListener("theme.change",e),()=>{window.removeEventListener("theme.change",e)}}),[]),e}function l(){var[e,t]=a.useState((()=>(0,u.getRuntime)().getRecentApps()));return a.useEffect((()=>{var e=e=>{t(e.detail)};return window.addEventListener("app.change",e),()=>window.removeEventListener("app.change",e)}),[]),e}function o(){return l().currentApp}}}]);
|
|
2
|
-
//# sourceMappingURL=3494.0610767d.js.map
|