@dxos/plugin-status-bar 0.8.4-main.72ec0f3 → 0.8.4-main.8360d9e660
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/lib/browser/StatusBarActions-63FMNXUX.mjs +10 -0
- package/dist/lib/browser/StatusBarActions-63FMNXUX.mjs.map +7 -0
- package/dist/lib/browser/StatusBarPanel-KWQL4TTQ.mjs +25 -0
- package/dist/lib/browser/StatusBarPanel-KWQL4TTQ.mjs.map +7 -0
- package/dist/lib/browser/VersionNumber-NSVK34RP.mjs +9 -0
- package/dist/lib/browser/VersionNumber-NSVK34RP.mjs.map +7 -0
- package/dist/lib/browser/chunk-CBR3FWPA.mjs +49 -0
- package/dist/lib/browser/chunk-CBR3FWPA.mjs.map +7 -0
- package/dist/lib/browser/chunk-DJN2GTOY.mjs +16 -0
- package/dist/lib/browser/chunk-DJN2GTOY.mjs.map +7 -0
- package/dist/lib/browser/chunk-MAM2WQN4.mjs +75 -0
- package/dist/lib/browser/chunk-MAM2WQN4.mjs.map +7 -0
- package/dist/lib/browser/chunk-WUIMMP5N.mjs +77 -0
- package/dist/lib/browser/chunk-WUIMMP5N.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +15 -25
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-ZVKPLSAI.mjs +45 -0
- package/dist/lib/browser/react-surface-ZVKPLSAI.mjs.map +7 -0
- package/dist/lib/node-esm/StatusBarActions-LI4FUZ4F.mjs +11 -0
- package/dist/lib/node-esm/StatusBarActions-LI4FUZ4F.mjs.map +7 -0
- package/dist/lib/node-esm/StatusBarPanel-O22JVKD4.mjs +26 -0
- package/dist/lib/node-esm/StatusBarPanel-O22JVKD4.mjs.map +7 -0
- package/dist/lib/node-esm/VersionNumber-6PD7SUMF.mjs +10 -0
- package/dist/lib/node-esm/VersionNumber-6PD7SUMF.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-5H2TCCFW.mjs +18 -0
- package/dist/lib/node-esm/chunk-5H2TCCFW.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7KTRYBWS.mjs +78 -0
- package/dist/lib/node-esm/chunk-7KTRYBWS.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-B4UMHTV6.mjs +51 -0
- package/dist/lib/node-esm/chunk-B4UMHTV6.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-YVIPBYHG.mjs +76 -0
- package/dist/lib/node-esm/chunk-YVIPBYHG.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +15 -25
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-QSB537IH.mjs +46 -0
- package/dist/lib/node-esm/react-surface-QSB537IH.mjs.map +7 -0
- package/dist/types/src/StatusBarPlugin.d.ts +2 -1
- package/dist/types/src/StatusBarPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/components/{StatusBar.d.ts → StatusBar/StatusBar.d.ts} +3 -3
- package/dist/types/src/components/StatusBar/StatusBar.d.ts.map +1 -0
- package/dist/types/src/components/StatusBar/StatusBar.stories.d.ts.map +1 -0
- package/dist/types/src/components/StatusBar/index.d.ts +2 -0
- package/dist/types/src/components/StatusBar/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +0 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/StatusBarActions/StatusBarActions.d.ts +4 -0
- package/dist/types/src/containers/StatusBarActions/StatusBarActions.d.ts.map +1 -0
- package/dist/types/src/containers/StatusBarActions/index.d.ts +3 -0
- package/dist/types/src/containers/StatusBarActions/index.d.ts.map +1 -0
- package/dist/types/src/containers/StatusBarPanel/StatusBarPanel.d.ts +4 -0
- package/dist/types/src/containers/StatusBarPanel/StatusBarPanel.d.ts.map +1 -0
- package/dist/types/src/containers/StatusBarPanel/index.d.ts +3 -0
- package/dist/types/src/containers/StatusBarPanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/VersionNumber/VersionNumber.d.ts +4 -0
- package/dist/types/src/containers/VersionNumber/VersionNumber.d.ts.map +1 -0
- package/dist/types/src/containers/VersionNumber/index.d.ts +3 -0
- package/dist/types/src/containers/VersionNumber/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +5 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +30 -26
- package/src/StatusBarPlugin.ts +7 -13
- package/src/capabilities/index.ts +1 -3
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +39 -0
- package/src/components/{StatusBar.stories.tsx → StatusBar/StatusBar.stories.tsx} +3 -3
- package/src/components/{StatusBar.tsx → StatusBar/StatusBar.tsx} +4 -4
- package/src/components/StatusBar/index.ts +5 -0
- package/src/components/index.ts +0 -2
- package/src/{components/StatusBarPanel.tsx → containers/StatusBarActions/StatusBarActions.tsx} +6 -16
- package/src/containers/StatusBarActions/index.ts +7 -0
- package/src/containers/StatusBarPanel/StatusBarPanel.tsx +21 -0
- package/src/containers/StatusBarPanel/index.ts +7 -0
- package/src/{components → containers/VersionNumber}/VersionNumber.tsx +9 -8
- package/src/containers/VersionNumber/index.ts +7 -0
- package/src/containers/index.ts +9 -0
- package/src/meta.ts +3 -3
- package/src/translations.ts +1 -1
- package/dist/lib/browser/chunk-EY5IFRNW.mjs +0 -251
- package/dist/lib/browser/chunk-EY5IFRNW.mjs.map +0 -7
- package/dist/lib/browser/react-surface-JLUMVT7Q.mjs +0 -39
- package/dist/lib/browser/react-surface-JLUMVT7Q.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-X4F44ADI.mjs +0 -253
- package/dist/lib/node-esm/chunk-X4F44ADI.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-O34EDFRO.mjs +0 -40
- package/dist/lib/node-esm/react-surface-O34EDFRO.mjs.map +0 -7
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/components/StatusBar.d.ts.map +0 -1
- package/dist/types/src/components/StatusBar.stories.d.ts.map +0 -1
- package/dist/types/src/components/StatusBarPanel.d.ts +0 -4
- package/dist/types/src/components/StatusBarPanel.d.ts.map +0 -1
- package/dist/types/src/components/VersionNumber.d.ts +0 -3
- package/dist/types/src/components/VersionNumber.d.ts.map +0 -1
- package/src/capabilities/react-surface.tsx +0 -35
- /package/dist/types/src/components/{StatusBar.stories.d.ts → StatusBar/StatusBar.stories.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-status-bar",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.8360d9e660",
|
|
4
4
|
"description": "Status bar plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"sideEffects": true,
|
|
@@ -25,38 +29,38 @@
|
|
|
25
29
|
"src"
|
|
26
30
|
],
|
|
27
31
|
"dependencies": {
|
|
28
|
-
"@fluentui/react-tabster": "
|
|
29
|
-
"@preact-signals/safe-react": "^0.9.0",
|
|
30
|
-
"@preact/signals-core": "^1.12.1",
|
|
32
|
+
"@fluentui/react-tabster": "9.26.11",
|
|
31
33
|
"@radix-ui/react-slot": "1.1.2",
|
|
32
34
|
"date-fns": "^3.3.1",
|
|
33
|
-
"effect": "3.
|
|
35
|
+
"effect": "3.19.16",
|
|
34
36
|
"react-resize-detector": "^11.0.1",
|
|
35
|
-
"@dxos/app-
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/react-client": "0.8.4-main.
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
37
|
+
"@dxos/app-toolkit": "0.8.4-main.8360d9e660",
|
|
38
|
+
"@dxos/app-framework": "0.8.4-main.8360d9e660",
|
|
39
|
+
"@dxos/operation": "0.8.4-main.8360d9e660",
|
|
40
|
+
"@dxos/async": "0.8.4-main.8360d9e660",
|
|
41
|
+
"@dxos/echo": "0.8.4-main.8360d9e660",
|
|
42
|
+
"@dxos/react-client": "0.8.4-main.8360d9e660",
|
|
43
|
+
"@dxos/plugin-observability": "0.8.4-main.8360d9e660",
|
|
44
|
+
"@dxos/react-ui-form": "0.8.4-main.8360d9e660",
|
|
45
|
+
"@dxos/util": "0.8.4-main.8360d9e660",
|
|
46
|
+
"@dxos/schema": "0.8.4-main.8360d9e660"
|
|
43
47
|
},
|
|
44
48
|
"devDependencies": {
|
|
45
|
-
"@types/react": "~19.2.
|
|
46
|
-
"@types/react-dom": "~19.2.
|
|
47
|
-
"react": "~19.2.
|
|
48
|
-
"react-dom": "~19.2.
|
|
49
|
-
"vite": "7.1.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
52
|
-
"@dxos/
|
|
49
|
+
"@types/react": "~19.2.7",
|
|
50
|
+
"@types/react-dom": "~19.2.3",
|
|
51
|
+
"react": "~19.2.3",
|
|
52
|
+
"react-dom": "~19.2.3",
|
|
53
|
+
"vite": "^7.1.11",
|
|
54
|
+
"@dxos/storybook-utils": "0.8.4-main.8360d9e660",
|
|
55
|
+
"@dxos/react-ui": "0.8.4-main.8360d9e660",
|
|
56
|
+
"@dxos/ui-theme": "0.8.4-main.8360d9e660"
|
|
53
57
|
},
|
|
54
58
|
"peerDependencies": {
|
|
55
|
-
"effect": "
|
|
56
|
-
"react": "
|
|
57
|
-
"react-dom": "
|
|
58
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
59
|
-
"@dxos/
|
|
59
|
+
"effect": "3.19.16",
|
|
60
|
+
"react": "~19.2.3",
|
|
61
|
+
"react-dom": "~19.2.3",
|
|
62
|
+
"@dxos/react-ui": "0.8.4-main.8360d9e660",
|
|
63
|
+
"@dxos/ui-theme": "0.8.4-main.8360d9e660"
|
|
60
64
|
},
|
|
61
65
|
"publishConfig": {
|
|
62
66
|
"access": "public"
|
package/src/StatusBarPlugin.ts
CHANGED
|
@@ -2,21 +2,15 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
6
7
|
|
|
7
8
|
import { ReactSurface } from './capabilities';
|
|
8
9
|
import { meta } from './meta';
|
|
9
10
|
import { translations } from './translations';
|
|
10
11
|
|
|
11
|
-
export const StatusBarPlugin =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}),
|
|
17
|
-
defineModule({
|
|
18
|
-
id: `${meta.id}/module/react-surface`,
|
|
19
|
-
activatesOn: Events.SetupReactSurface,
|
|
20
|
-
activate: ReactSurface,
|
|
21
|
-
}),
|
|
22
|
-
]);
|
|
12
|
+
export const StatusBarPlugin = Plugin.define(meta).pipe(
|
|
13
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
14
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
15
|
+
Plugin.make,
|
|
16
|
+
);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
|
+
import { Surface } from '@dxos/app-framework/ui';
|
|
10
|
+
|
|
11
|
+
import { StatusBarActions, StatusBarPanel, VersionNumber } from '../../containers';
|
|
12
|
+
import { meta } from '../../meta';
|
|
13
|
+
|
|
14
|
+
export default Capability.makeModule(() =>
|
|
15
|
+
Effect.succeed(
|
|
16
|
+
Capability.contributes(Capabilities.ReactSurface, [
|
|
17
|
+
Surface.create({
|
|
18
|
+
id: `${meta.id}.status-bar`,
|
|
19
|
+
role: 'status-bar',
|
|
20
|
+
component: () => <StatusBarPanel />,
|
|
21
|
+
}),
|
|
22
|
+
Surface.create({
|
|
23
|
+
id: `${meta.id}.status-bar--r0-footer`,
|
|
24
|
+
role: 'status-bar--r0-footer',
|
|
25
|
+
component: () => <Surface.Surface role='status' />,
|
|
26
|
+
}),
|
|
27
|
+
Surface.create({
|
|
28
|
+
id: `${meta.id}.status-bar--r1-footer`,
|
|
29
|
+
role: 'status-bar--r1-footer',
|
|
30
|
+
component: () => <StatusBarActions />,
|
|
31
|
+
}),
|
|
32
|
+
Surface.create({
|
|
33
|
+
id: `${meta.id}.header-end`,
|
|
34
|
+
role: 'header-end',
|
|
35
|
+
component: () => <VersionNumber />,
|
|
36
|
+
}),
|
|
37
|
+
]),
|
|
38
|
+
),
|
|
39
|
+
);
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import { Icon } from '@dxos/react-ui';
|
|
9
9
|
import { withTheme } from '@dxos/react-ui/testing';
|
|
10
10
|
|
|
11
|
-
import { StatusBar } from './
|
|
11
|
+
import { StatusBar } from './index';
|
|
12
12
|
|
|
13
13
|
export const DefaultStory = () => (
|
|
14
14
|
<div>
|
|
@@ -32,10 +32,10 @@ export const DefaultStory = () => (
|
|
|
32
32
|
);
|
|
33
33
|
|
|
34
34
|
const meta = {
|
|
35
|
-
title: 'plugins/plugin-status/StatusBar',
|
|
35
|
+
title: 'plugins/plugin-status-bar/components/StatusBar',
|
|
36
36
|
component: StatusBar as any,
|
|
37
37
|
render: DefaultStory,
|
|
38
|
-
decorators: [withTheme],
|
|
38
|
+
decorators: [withTheme()],
|
|
39
39
|
} satisfies Meta<typeof StatusBar>;
|
|
40
40
|
|
|
41
41
|
export default meta;
|
|
@@ -6,7 +6,7 @@ import { Slot } from '@radix-ui/react-slot';
|
|
|
6
6
|
import React, { type ComponentPropsWithRef, type PropsWithChildren, type ReactNode, forwardRef } from 'react';
|
|
7
7
|
|
|
8
8
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
9
|
-
import { mx } from '@dxos/
|
|
9
|
+
import { mx } from '@dxos/ui-theme';
|
|
10
10
|
|
|
11
11
|
type StatusBarTextProps = ThemedClassName<{ children: ReactNode }>;
|
|
12
12
|
|
|
@@ -21,9 +21,9 @@ type StatusBarButtonProps = ThemedClassName<ComponentPropsWithRef<'button'> & {
|
|
|
21
21
|
const StatusBarButton = forwardRef<HTMLButtonElement, StatusBarButtonProps>(
|
|
22
22
|
({ classNames, children, asChild, ...props }, forwardedRef) => {
|
|
23
23
|
const classes = mx(
|
|
24
|
-
'flex items-center justify-center gap-2 p-1
|
|
24
|
+
'flex items-center justify-center gap-2 p-1 px-2 rounded-xs',
|
|
25
25
|
'select-none cursor-pointer dx-focus-ring text-description text-xs',
|
|
26
|
-
'hover:bg-neutral-
|
|
26
|
+
'hover:bg-neutral-100 active:bg-neutral-200 dark:hover:bg-neutral-700 dark:active:bg-neutral-600',
|
|
27
27
|
classNames,
|
|
28
28
|
);
|
|
29
29
|
|
|
@@ -47,7 +47,7 @@ const StatusBarItem = forwardRef<HTMLDivElement, StatusBarItemProps>(
|
|
|
47
47
|
({ classNames, children, ...props }, forwardedRef) => (
|
|
48
48
|
<div
|
|
49
49
|
role='menuitem'
|
|
50
|
-
className={mx('flex items-center justify-center gap-2 p-1
|
|
50
|
+
className={mx('flex items-center justify-center gap-2 p-1 px-2 rounded-xs select-none', classNames)}
|
|
51
51
|
ref={forwardedRef}
|
|
52
52
|
{...props}
|
|
53
53
|
>
|
package/src/components/index.ts
CHANGED
package/src/{components/StatusBarPanel.tsx → containers/StatusBarActions/StatusBarActions.tsx}
RENAMED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
import React, { useState } from 'react';
|
|
6
6
|
|
|
7
|
-
import { Surface } from '@dxos/app-framework/react';
|
|
8
7
|
import { useConfig } from '@dxos/react-client';
|
|
9
8
|
import { Icon, Popover, useTranslation } from '@dxos/react-ui';
|
|
10
9
|
|
|
11
|
-
import {
|
|
10
|
+
import { StatusBar } from '../../components';
|
|
11
|
+
import { meta } from '../../meta';
|
|
12
|
+
import VersionNumber from '../VersionNumber';
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
import { VersionNumber } from './VersionNumber';
|
|
14
|
+
export type StatusBarActionsProps = {};
|
|
15
15
|
|
|
16
|
-
export const StatusBarActions = () => {
|
|
16
|
+
export const StatusBarActions = (_props: StatusBarActionsProps) => {
|
|
17
17
|
const { t } = useTranslation(meta.id);
|
|
18
18
|
const [open, setOpen] = useState(false);
|
|
19
19
|
|
|
@@ -37,16 +37,6 @@ export const StatusBarActions = () => {
|
|
|
37
37
|
);
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
export const StatusBarPanel = () => {
|
|
41
|
-
return (
|
|
42
|
-
<>
|
|
43
|
-
<StatusBarActions />
|
|
44
|
-
<span role='separator' className='grow' />
|
|
45
|
-
<Surface role='status' />
|
|
46
|
-
</>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
40
|
const ENV_LABELS: Record<string, string> = {
|
|
51
41
|
'edge-dev': 'Dev',
|
|
52
42
|
'edge-main': 'Main',
|
|
@@ -68,7 +58,7 @@ const EnvironmentLabel = () => {
|
|
|
68
58
|
|
|
69
59
|
return (
|
|
70
60
|
<StatusBar.Item>
|
|
71
|
-
<StatusBar.Text classNames='text-xs text-subdued border border-separator rounded-full
|
|
61
|
+
<StatusBar.Text classNames='text-xs text-subdued border border-separator rounded-full px-1'>
|
|
72
62
|
<span title={edgeEnv}>{edgeEnv[0]}</span>
|
|
73
63
|
</StatusBar.Text>
|
|
74
64
|
</StatusBar.Item>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import React from 'react';
|
|
6
|
+
|
|
7
|
+
import { Surface } from '@dxos/app-framework/ui';
|
|
8
|
+
|
|
9
|
+
import StatusBarActionsDefault from '../StatusBarActions';
|
|
10
|
+
|
|
11
|
+
export type StatusBarPanelProps = {};
|
|
12
|
+
|
|
13
|
+
export const StatusBarPanel = (_props: StatusBarPanelProps) => {
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
<StatusBarActionsDefault />
|
|
17
|
+
<span role='separator' className='grow' />
|
|
18
|
+
<Surface.Surface role='status' />
|
|
19
|
+
</>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
@@ -8,15 +8,16 @@ import React from 'react';
|
|
|
8
8
|
import { useConfig } from '@dxos/react-client';
|
|
9
9
|
import { Icon, Link, Message, Popover, Trans, useTranslation } from '@dxos/react-ui';
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { StatusBar } from '../../components';
|
|
12
|
+
import { meta } from '../../meta';
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
export type VersionNumberProps = {};
|
|
14
15
|
|
|
15
16
|
const repo = 'https://github.com/dxos/dxos';
|
|
16
17
|
|
|
17
18
|
const VERSION_REGEX = /([\d.]+)/;
|
|
18
19
|
|
|
19
|
-
export const VersionNumber = () => {
|
|
20
|
+
export const VersionNumber = (_props: VersionNumberProps) => {
|
|
20
21
|
const { t } = useTranslation(meta.id);
|
|
21
22
|
const config = useConfig();
|
|
22
23
|
const { version, timestamp, commitHash } = config.values.runtime?.app?.build ?? {};
|
|
@@ -39,20 +40,20 @@ export const VersionNumber = () => {
|
|
|
39
40
|
<Popover.Content
|
|
40
41
|
side='top'
|
|
41
42
|
role='message'
|
|
42
|
-
classNames='z-[12] bg-warning-500 max-
|
|
43
|
+
classNames='z-[12] bg-warning-500 max-w-[min(calc(100vw-16px),40ch)]'
|
|
43
44
|
>
|
|
44
|
-
<Message.Root valence='warning' classNames='rounded-
|
|
45
|
+
<Message.Root valence='warning' classNames='rounded-b-none p-5'>
|
|
45
46
|
<Message.Title>{t('warning title')}</Message.Title>
|
|
46
47
|
<Message.Content>
|
|
47
48
|
{t('technology preview message')}
|
|
48
49
|
<br />
|
|
49
50
|
<Link href={previewUrl} target='_blank' rel='noreferrer' variant='neutral'>
|
|
50
51
|
{t('learn more label')}
|
|
51
|
-
<Icon icon='ph--arrow-square-out--bold' classNames='inline
|
|
52
|
+
<Icon icon='ph--arrow-square-out--bold' classNames='dx-icon-inline ms-1' />
|
|
52
53
|
</Link>
|
|
53
54
|
</Message.Content>
|
|
54
55
|
</Message.Root>
|
|
55
|
-
<div role='none' className='
|
|
56
|
+
<div role='none' className='py-4 px-5 space-b-2 text-base-surface-text'>
|
|
56
57
|
{timestamp && (
|
|
57
58
|
<p>
|
|
58
59
|
{t('released message', {
|
|
@@ -61,7 +62,7 @@ export const VersionNumber = () => {
|
|
|
61
62
|
<br />
|
|
62
63
|
<Link href={releaseUrl} target='_blank' rel='noreferrer' variant='neutral'>
|
|
63
64
|
{t('see release label')}
|
|
64
|
-
<Icon icon='ph--arrow-square-out--bold' classNames='inline
|
|
65
|
+
<Icon icon='ph--arrow-square-out--bold' classNames='dx-icon-inline ms-1' />
|
|
65
66
|
</Link>
|
|
66
67
|
</p>
|
|
67
68
|
)}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type ComponentType, lazy } from 'react';
|
|
6
|
+
|
|
7
|
+
export const StatusBarActions: ComponentType<any> = lazy(() => import('./StatusBarActions'));
|
|
8
|
+
export const StatusBarPanel: ComponentType<any> = lazy(() => import('./StatusBarPanel'));
|
|
9
|
+
export const VersionNumber: ComponentType<any> = lazy(() => import('./VersionNumber'));
|
package/src/meta.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { type
|
|
5
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
6
6
|
import { trim } from '@dxos/util';
|
|
7
7
|
|
|
8
|
-
export const meta:
|
|
9
|
-
id: 'dxos.
|
|
8
|
+
export const meta: Plugin.Meta = {
|
|
9
|
+
id: 'org.dxos.plugin.status-bar',
|
|
10
10
|
name: 'Status Bar',
|
|
11
11
|
description: trim`
|
|
12
12
|
Persistent bottom bar displaying workspace status information and quick actions.
|
package/src/translations.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const translations = [
|
|
|
14
14
|
'warning title': 'WARNING',
|
|
15
15
|
'technology preview message': 'Composer is currently in beta.',
|
|
16
16
|
'learn more label': 'Learn more',
|
|
17
|
-
'released message': 'This version released {{released}}.',
|
|
17
|
+
'released message': 'This version was released {{released}}.',
|
|
18
18
|
'see release label': 'See release on GitHub',
|
|
19
19
|
'powered by dxos message': 'Powered by <dxos>DXOS</dxos>',
|
|
20
20
|
'discord label': 'Discord',
|