@dxos/plugin-status-bar 0.8.4-main.69d29f4 → 0.8.4-main.6fa680abb7
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 +11 -14
- package/dist/lib/browser/index.mjs.map +3 -3
- 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 +11 -14
- package/dist/lib/node-esm/index.mjs.map +3 -3
- 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.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- 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/translations.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +19 -18
- package/src/StatusBarPlugin.ts +4 -3
- package/src/capabilities/react-surface/react-surface.tsx +13 -13
- package/src/components/{StatusBar.stories.tsx → StatusBar/StatusBar.stories.tsx} +3 -3
- package/src/components/{StatusBar.tsx → StatusBar/StatusBar.tsx} +3 -3
- 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 +1 -1
- package/src/translations.ts +1 -1
- package/dist/lib/browser/chunk-G3E35NNM.mjs +0 -195
- package/dist/lib/browser/chunk-G3E35NNM.mjs.map +0 -7
- package/dist/lib/browser/react-surface-MYYYPTEW.mjs +0 -40
- package/dist/lib/browser/react-surface-MYYYPTEW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RE6CUOP4.mjs +0 -197
- package/dist/lib/node-esm/chunk-RE6CUOP4.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-RNK64YYP.mjs +0 -41
- package/dist/lib/node-esm/react-surface-RNK64YYP.mjs.map +0 -7
- 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/dist/types/src/components/{StatusBar.d.ts → StatusBar/StatusBar.d.ts} +0 -0
- /package/dist/types/src/components/{StatusBar.stories.d.ts → StatusBar/StatusBar.stories.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-status-bar",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.6fa680abb7",
|
|
4
4
|
"description": "Status bar plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -32,34 +32,35 @@
|
|
|
32
32
|
"@fluentui/react-tabster": "9.26.11",
|
|
33
33
|
"@radix-ui/react-slot": "1.1.2",
|
|
34
34
|
"date-fns": "^3.3.1",
|
|
35
|
-
"effect": "3.19.
|
|
35
|
+
"effect": "3.19.16",
|
|
36
36
|
"react-resize-detector": "^11.0.1",
|
|
37
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/react-ui-form": "0.8.4-main.
|
|
45
|
-
"@dxos/
|
|
37
|
+
"@dxos/app-framework": "0.8.4-main.6fa680abb7",
|
|
38
|
+
"@dxos/app-toolkit": "0.8.4-main.6fa680abb7",
|
|
39
|
+
"@dxos/async": "0.8.4-main.6fa680abb7",
|
|
40
|
+
"@dxos/operation": "0.8.4-main.6fa680abb7",
|
|
41
|
+
"@dxos/echo": "0.8.4-main.6fa680abb7",
|
|
42
|
+
"@dxos/plugin-observability": "0.8.4-main.6fa680abb7",
|
|
43
|
+
"@dxos/react-client": "0.8.4-main.6fa680abb7",
|
|
44
|
+
"@dxos/react-ui-form": "0.8.4-main.6fa680abb7",
|
|
45
|
+
"@dxos/schema": "0.8.4-main.6fa680abb7",
|
|
46
|
+
"@dxos/util": "0.8.4-main.6fa680abb7"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@types/react": "~19.2.7",
|
|
49
50
|
"@types/react-dom": "~19.2.3",
|
|
50
51
|
"react": "~19.2.3",
|
|
51
52
|
"react-dom": "~19.2.3",
|
|
52
|
-
"vite": "7.1.
|
|
53
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
54
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
55
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
53
|
+
"vite": "^7.1.11",
|
|
54
|
+
"@dxos/react-ui": "0.8.4-main.6fa680abb7",
|
|
55
|
+
"@dxos/storybook-utils": "0.8.4-main.6fa680abb7",
|
|
56
|
+
"@dxos/ui-theme": "0.8.4-main.6fa680abb7"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
|
-
"effect": "3.19.
|
|
59
|
+
"effect": "3.19.16",
|
|
59
60
|
"react": "~19.2.3",
|
|
60
61
|
"react-dom": "~19.2.3",
|
|
61
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
62
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
62
|
+
"@dxos/react-ui": "0.8.4-main.6fa680abb7",
|
|
63
|
+
"@dxos/ui-theme": "0.8.4-main.6fa680abb7"
|
|
63
64
|
},
|
|
64
65
|
"publishConfig": {
|
|
65
66
|
"access": "public"
|
package/src/StatusBarPlugin.ts
CHANGED
|
@@ -2,14 +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
12
|
export const StatusBarPlugin = Plugin.define(meta).pipe(
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
14
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
14
15
|
Plugin.make,
|
|
15
16
|
);
|
|
@@ -5,32 +5,32 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import { Surface } from '@dxos/app-framework/
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
|
+
import { Surface } from '@dxos/app-framework/ui';
|
|
10
10
|
|
|
11
|
-
import { StatusBarActions, StatusBarPanel, VersionNumber } from '../../
|
|
11
|
+
import { StatusBarActions, StatusBarPanel, VersionNumber } from '../../containers';
|
|
12
12
|
import { meta } from '../../meta';
|
|
13
13
|
|
|
14
14
|
export default Capability.makeModule(() =>
|
|
15
15
|
Effect.succeed(
|
|
16
|
-
Capability.contributes(
|
|
17
|
-
|
|
18
|
-
id: `${meta.id}
|
|
16
|
+
Capability.contributes(Capabilities.ReactSurface, [
|
|
17
|
+
Surface.create({
|
|
18
|
+
id: `${meta.id}.status-bar`,
|
|
19
19
|
role: 'status-bar',
|
|
20
20
|
component: () => <StatusBarPanel />,
|
|
21
21
|
}),
|
|
22
|
-
|
|
23
|
-
id: `${meta.id}
|
|
22
|
+
Surface.create({
|
|
23
|
+
id: `${meta.id}.status-bar--r0-footer`,
|
|
24
24
|
role: 'status-bar--r0-footer',
|
|
25
|
-
component: () => <Surface role='status' />,
|
|
25
|
+
component: () => <Surface.Surface role='status' />,
|
|
26
26
|
}),
|
|
27
|
-
|
|
28
|
-
id: `${meta.id}
|
|
27
|
+
Surface.create({
|
|
28
|
+
id: `${meta.id}.status-bar--r1-footer`,
|
|
29
29
|
role: 'status-bar--r1-footer',
|
|
30
30
|
component: () => <StatusBarActions />,
|
|
31
31
|
}),
|
|
32
|
-
|
|
33
|
-
id: `${meta.id}
|
|
32
|
+
Surface.create({
|
|
33
|
+
id: `${meta.id}.header-end`,
|
|
34
34
|
role: 'header-end',
|
|
35
35
|
component: () => <VersionNumber />,
|
|
36
36
|
}),
|
|
@@ -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;
|
|
@@ -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
|
@@ -6,7 +6,7 @@ import { type Plugin } from '@dxos/app-framework';
|
|
|
6
6
|
import { trim } from '@dxos/util';
|
|
7
7
|
|
|
8
8
|
export const meta: Plugin.Meta = {
|
|
9
|
-
id: 'dxos.
|
|
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',
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
// src/components/StatusBar.tsx
|
|
2
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
-
import React, { forwardRef } from "react";
|
|
4
|
-
import { mx } from "@dxos/ui-theme";
|
|
5
|
-
var StatusBarText = /* @__PURE__ */ forwardRef(({ classNames, children }, forwardedRef) => /* @__PURE__ */ React.createElement("span", {
|
|
6
|
-
className: mx(classNames),
|
|
7
|
-
ref: forwardedRef
|
|
8
|
-
}, children));
|
|
9
|
-
var StatusBarButton = /* @__PURE__ */ forwardRef(({ classNames, children, asChild, ...props }, forwardedRef) => {
|
|
10
|
-
const classes = mx("flex items-center justify-center gap-2 p-1 pli-2 rounded-sm", "select-none cursor-pointer dx-focus-ring text-description text-xs", "hover:bg-neutral-75 active:bg-neutral-150 dark:hover:bg-neutral-750 dark:active:bg-neutral-700", classNames);
|
|
11
|
-
return asChild ? /* @__PURE__ */ React.createElement(Slot, {
|
|
12
|
-
role: "button",
|
|
13
|
-
ref: forwardedRef,
|
|
14
|
-
className: classes,
|
|
15
|
-
...props
|
|
16
|
-
}, children) : /* @__PURE__ */ React.createElement("button", {
|
|
17
|
-
className: classes,
|
|
18
|
-
ref: forwardedRef,
|
|
19
|
-
...props
|
|
20
|
-
}, children);
|
|
21
|
-
});
|
|
22
|
-
var StatusBarItem = /* @__PURE__ */ forwardRef(({ classNames, children, ...props }, forwardedRef) => /* @__PURE__ */ React.createElement("div", {
|
|
23
|
-
role: "menuitem",
|
|
24
|
-
className: mx("flex items-center justify-center gap-2 p-1 pli-2 rounded-sm select-none", classNames),
|
|
25
|
-
ref: forwardedRef,
|
|
26
|
-
...props
|
|
27
|
-
}, children));
|
|
28
|
-
var StartContent = /* @__PURE__ */ forwardRef(({ classNames, children }, forwardedRef) => /* @__PURE__ */ React.createElement("div", {
|
|
29
|
-
role: "none",
|
|
30
|
-
className: mx("flex-grow flex items-center space-x-2", classNames),
|
|
31
|
-
ref: forwardedRef
|
|
32
|
-
}, children));
|
|
33
|
-
var EndContent = /* @__PURE__ */ forwardRef(({ classNames, children }, forwardedRef) => /* @__PURE__ */ React.createElement("div", {
|
|
34
|
-
role: "none",
|
|
35
|
-
className: mx("flex-grow flex items-center justify-end", classNames),
|
|
36
|
-
ref: forwardedRef
|
|
37
|
-
}, children));
|
|
38
|
-
var StatusBar = {
|
|
39
|
-
Text: StatusBarText,
|
|
40
|
-
Item: StatusBarItem,
|
|
41
|
-
Button: StatusBarButton,
|
|
42
|
-
StartContent,
|
|
43
|
-
EndContent
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
// src/meta.ts
|
|
47
|
-
import { trim } from "@dxos/util";
|
|
48
|
-
var meta = {
|
|
49
|
-
id: "dxos.org/plugin/status-bar",
|
|
50
|
-
name: "Status Bar",
|
|
51
|
-
description: trim`
|
|
52
|
-
Persistent bottom bar displaying workspace status information and quick actions.
|
|
53
|
-
Access connection state, notifications, and common commands without leaving your current context.
|
|
54
|
-
`,
|
|
55
|
-
icon: "ph--info--regular"
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
// src/components/VersionNumber.tsx
|
|
59
|
-
import { formatDistance } from "date-fns/formatDistance";
|
|
60
|
-
import React2 from "react";
|
|
61
|
-
import { useConfig } from "@dxos/react-client";
|
|
62
|
-
import { Icon, Link, Message, Popover, Trans, useTranslation } from "@dxos/react-ui";
|
|
63
|
-
var repo = "https://github.com/dxos/dxos";
|
|
64
|
-
var VERSION_REGEX = /([\d.]+)/;
|
|
65
|
-
var VersionNumber = () => {
|
|
66
|
-
const { t } = useTranslation(meta.id);
|
|
67
|
-
const config = useConfig();
|
|
68
|
-
const { version, timestamp, commitHash } = config.values.runtime?.app?.build ?? {};
|
|
69
|
-
const [_, v] = version?.match(VERSION_REGEX) ?? [];
|
|
70
|
-
const isLabs = config.values.runtime?.app?.env?.DX_LABS;
|
|
71
|
-
const releaseUrl = config.values.runtime?.app?.env?.DX_ENVIRONMENT === "production" ? `${repo}/releases/tag/v${version}` : `${repo}/commit/${commitHash}`;
|
|
72
|
-
const previewUrl = "https://docs.dxos.org/composer#technology-preview";
|
|
73
|
-
return /* @__PURE__ */ React2.createElement(Popover.Root, null, /* @__PURE__ */ React2.createElement(Popover.Trigger, {
|
|
74
|
-
asChild: true
|
|
75
|
-
}, /* @__PURE__ */ React2.createElement(StatusBar.Button, {
|
|
76
|
-
classNames: "text-xs"
|
|
77
|
-
}, isLabs ? version : v)), /* @__PURE__ */ React2.createElement(Popover.Portal, null, /* @__PURE__ */ React2.createElement(Popover.Content, {
|
|
78
|
-
side: "top",
|
|
79
|
-
role: "message",
|
|
80
|
-
classNames: "z-[12] bg-warning-500 max-is-[min(calc(100vw-16px),40ch)]"
|
|
81
|
-
}, /* @__PURE__ */ React2.createElement(Message.Root, {
|
|
82
|
-
valence: "warning",
|
|
83
|
-
classNames: "rounded-be-none p-5"
|
|
84
|
-
}, /* @__PURE__ */ React2.createElement(Message.Title, null, t("warning title")), /* @__PURE__ */ React2.createElement(Message.Content, null, t("technology preview message"), /* @__PURE__ */ React2.createElement("br", null), /* @__PURE__ */ React2.createElement(Link, {
|
|
85
|
-
href: previewUrl,
|
|
86
|
-
target: "_blank",
|
|
87
|
-
rel: "noreferrer",
|
|
88
|
-
variant: "neutral"
|
|
89
|
-
}, t("learn more label"), /* @__PURE__ */ React2.createElement(Icon, {
|
|
90
|
-
icon: "ph--arrow-square-out--bold",
|
|
91
|
-
classNames: "inline mis-1"
|
|
92
|
-
})))), /* @__PURE__ */ React2.createElement("div", {
|
|
93
|
-
role: "none",
|
|
94
|
-
className: "plb-4 pli-5 space-b-2 text-baseText"
|
|
95
|
-
}, timestamp && /* @__PURE__ */ React2.createElement("p", null, t("released message", {
|
|
96
|
-
released: formatDistance(new Date(timestamp), /* @__PURE__ */ new Date(), {
|
|
97
|
-
addSuffix: true
|
|
98
|
-
})
|
|
99
|
-
}), /* @__PURE__ */ React2.createElement("br", null), /* @__PURE__ */ React2.createElement(Link, {
|
|
100
|
-
href: releaseUrl,
|
|
101
|
-
target: "_blank",
|
|
102
|
-
rel: "noreferrer",
|
|
103
|
-
variant: "neutral"
|
|
104
|
-
}, t("see release label"), /* @__PURE__ */ React2.createElement(Icon, {
|
|
105
|
-
icon: "ph--arrow-square-out--bold",
|
|
106
|
-
classNames: "inline mis-1"
|
|
107
|
-
}))), /* @__PURE__ */ React2.createElement("p", null, /* @__PURE__ */ React2.createElement(Trans, {
|
|
108
|
-
t,
|
|
109
|
-
i18nKey: "powered by dxos message",
|
|
110
|
-
components: {
|
|
111
|
-
dxos: /* @__PURE__ */ React2.createElement(Link, {
|
|
112
|
-
href: "https://dxos.org",
|
|
113
|
-
target: "_blank",
|
|
114
|
-
rel: "noreferrer",
|
|
115
|
-
variant: "neutral"
|
|
116
|
-
})
|
|
117
|
-
}
|
|
118
|
-
}))), /* @__PURE__ */ React2.createElement(Popover.Arrow, null))));
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
// src/components/StatusBarPanel.tsx
|
|
122
|
-
import React3, { useState } from "react";
|
|
123
|
-
import { Surface } from "@dxos/app-framework/react";
|
|
124
|
-
import { useConfig as useConfig2 } from "@dxos/react-client";
|
|
125
|
-
import { Icon as Icon2, Popover as Popover2, useTranslation as useTranslation2 } from "@dxos/react-ui";
|
|
126
|
-
var StatusBarActions = () => {
|
|
127
|
-
const { t } = useTranslation2(meta.id);
|
|
128
|
-
const [open, setOpen] = useState(false);
|
|
129
|
-
return /* @__PURE__ */ React3.createElement(Popover2.Root, {
|
|
130
|
-
open,
|
|
131
|
-
onOpenChange: setOpen
|
|
132
|
-
}, /* @__PURE__ */ React3.createElement(EnvironmentLabel, null), /* @__PURE__ */ React3.createElement(VersionNumber, null), /* @__PURE__ */ React3.createElement(StatusBar.Button, {
|
|
133
|
-
asChild: true
|
|
134
|
-
}, /* @__PURE__ */ React3.createElement("a", {
|
|
135
|
-
href: "https://dxos.org/discord",
|
|
136
|
-
target: "_blank",
|
|
137
|
-
rel: "noopener noreferrer"
|
|
138
|
-
}, /* @__PURE__ */ React3.createElement(Icon2, {
|
|
139
|
-
icon: "ph--discord-logo--regular",
|
|
140
|
-
size: 4
|
|
141
|
-
}), /* @__PURE__ */ React3.createElement(StatusBar.Text, {
|
|
142
|
-
classNames: "hidden sm:block"
|
|
143
|
-
}, t("discord label")))), /* @__PURE__ */ React3.createElement(StatusBar.Button, {
|
|
144
|
-
asChild: true
|
|
145
|
-
}, /* @__PURE__ */ React3.createElement("a", {
|
|
146
|
-
href: "https://github.com/dxos/dxos",
|
|
147
|
-
target: "_blank",
|
|
148
|
-
rel: "noopener noreferrer"
|
|
149
|
-
}, /* @__PURE__ */ React3.createElement(Icon2, {
|
|
150
|
-
icon: "ph--github-logo--regular",
|
|
151
|
-
size: 4
|
|
152
|
-
}), /* @__PURE__ */ React3.createElement(StatusBar.Text, {
|
|
153
|
-
classNames: "hidden sm:block"
|
|
154
|
-
}, t("github label")))));
|
|
155
|
-
};
|
|
156
|
-
var StatusBarPanel = () => {
|
|
157
|
-
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(StatusBarActions, null), /* @__PURE__ */ React3.createElement("span", {
|
|
158
|
-
role: "separator",
|
|
159
|
-
className: "grow"
|
|
160
|
-
}), /* @__PURE__ */ React3.createElement(Surface, {
|
|
161
|
-
role: "status"
|
|
162
|
-
}));
|
|
163
|
-
};
|
|
164
|
-
var ENV_LABELS = {
|
|
165
|
-
"edge-dev": "Dev",
|
|
166
|
-
"edge-main": "Main",
|
|
167
|
-
"edge-labs": "Labs",
|
|
168
|
-
"edge-production": "Production"
|
|
169
|
-
};
|
|
170
|
-
var EnvironmentLabel = () => {
|
|
171
|
-
const config = useConfig2();
|
|
172
|
-
const edgeUrl = config.values.runtime?.services?.edge?.url;
|
|
173
|
-
if (!edgeUrl) {
|
|
174
|
-
return null;
|
|
175
|
-
}
|
|
176
|
-
const part = new URL(edgeUrl).host.split(".")[0];
|
|
177
|
-
const edgeEnv = ENV_LABELS[part];
|
|
178
|
-
if (!edgeEnv) {
|
|
179
|
-
return null;
|
|
180
|
-
}
|
|
181
|
-
return /* @__PURE__ */ React3.createElement(StatusBar.Item, null, /* @__PURE__ */ React3.createElement(StatusBar.Text, {
|
|
182
|
-
classNames: "text-xs text-subdued border border-separator rounded-full pli-1"
|
|
183
|
-
}, /* @__PURE__ */ React3.createElement("span", {
|
|
184
|
-
title: edgeEnv
|
|
185
|
-
}, edgeEnv[0])));
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
export {
|
|
189
|
-
StatusBar,
|
|
190
|
-
meta,
|
|
191
|
-
VersionNumber,
|
|
192
|
-
StatusBarActions,
|
|
193
|
-
StatusBarPanel
|
|
194
|
-
};
|
|
195
|
-
//# sourceMappingURL=chunk-G3E35NNM.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/StatusBar.tsx", "../../../src/meta.ts", "../../../src/components/VersionNumber.tsx", "../../../src/components/StatusBarPanel.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Slot } from '@radix-ui/react-slot';\nimport React, { type ComponentPropsWithRef, type PropsWithChildren, type ReactNode, forwardRef } from 'react';\n\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\ntype StatusBarTextProps = ThemedClassName<{ children: ReactNode }>;\n\nconst StatusBarText = forwardRef<HTMLSpanElement, StatusBarTextProps>(({ classNames, children }, forwardedRef) => (\n <span className={mx(classNames)} ref={forwardedRef}>\n {children}\n </span>\n));\n\ntype StatusBarButtonProps = ThemedClassName<ComponentPropsWithRef<'button'> & { asChild?: boolean }>;\n\nconst StatusBarButton = forwardRef<HTMLButtonElement, StatusBarButtonProps>(\n ({ classNames, children, asChild, ...props }, forwardedRef) => {\n const classes = mx(\n 'flex items-center justify-center gap-2 p-1 pli-2 rounded-sm',\n 'select-none cursor-pointer dx-focus-ring text-description text-xs',\n 'hover:bg-neutral-75 active:bg-neutral-150 dark:hover:bg-neutral-750 dark:active:bg-neutral-700',\n classNames,\n );\n\n return asChild ? (\n <Slot role='button' ref={forwardedRef} className={classes} {...props}>\n {children}\n </Slot>\n ) : (\n <button className={classes} ref={forwardedRef} {...props}>\n {children}\n </button>\n );\n },\n);\n\nexport default StatusBarButton;\n\ntype StatusBarItemProps = ThemedClassName<ComponentPropsWithRef<'div'>>;\n\nconst StatusBarItem = forwardRef<HTMLDivElement, StatusBarItemProps>(\n ({ classNames, children, ...props }, forwardedRef) => (\n <div\n role='menuitem'\n className={mx('flex items-center justify-center gap-2 p-1 pli-2 rounded-sm select-none', classNames)}\n ref={forwardedRef}\n {...props}\n >\n {children}\n </div>\n ),\n);\n\ntype StartContentProps = ThemedClassName<PropsWithChildren<{}>>;\n\nconst StartContent = forwardRef<HTMLDivElement, StartContentProps>(({ classNames, children }, forwardedRef) => (\n <div role='none' className={mx('flex-grow flex items-center space-x-2', classNames)} ref={forwardedRef}>\n {children}\n </div>\n));\n\ntype EndContentProps = ThemedClassName<PropsWithChildren<{}>>;\n\nconst EndContent = forwardRef<HTMLDivElement, EndContentProps>(({ classNames, children }, forwardedRef) => (\n <div role='none' className={mx('flex-grow flex items-center justify-end', classNames)} ref={forwardedRef}>\n {children}\n </div>\n));\n\nexport const StatusBar = {\n Text: StatusBarText,\n Item: StatusBarItem,\n Button: StatusBarButton,\n StartContent,\n EndContent,\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/status-bar',\n name: 'Status Bar',\n description: trim`\n Persistent bottom bar displaying workspace status information and quick actions.\n Access connection state, notifications, and common commands without leaving your current context.\n `,\n icon: 'ph--info--regular',\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { formatDistance } from 'date-fns/formatDistance';\nimport React from 'react';\n\nimport { useConfig } from '@dxos/react-client';\nimport { Icon, Link, Message, Popover, Trans, useTranslation } from '@dxos/react-ui';\n\nimport { meta } from '../meta';\n\nimport { StatusBar } from './StatusBar';\n\nconst repo = 'https://github.com/dxos/dxos';\n\nconst VERSION_REGEX = /([\\d.]+)/;\n\nexport const VersionNumber = () => {\n const { t } = useTranslation(meta.id);\n const config = useConfig();\n const { version, timestamp, commitHash } = config.values.runtime?.app?.build ?? {};\n const [_, v] = version?.match(VERSION_REGEX) ?? [];\n const isLabs = config.values.runtime?.app?.env?.DX_LABS;\n\n const releaseUrl =\n config.values.runtime?.app?.env?.DX_ENVIRONMENT === 'production'\n ? `${repo}/releases/tag/v${version}`\n : `${repo}/commit/${commitHash}`;\n\n const previewUrl = 'https://docs.dxos.org/composer#technology-preview';\n\n return (\n <Popover.Root>\n <Popover.Trigger asChild>\n <StatusBar.Button classNames='text-xs'>{isLabs ? version : v}</StatusBar.Button>\n </Popover.Trigger>\n <Popover.Portal>\n <Popover.Content\n side='top'\n role='message'\n classNames='z-[12] bg-warning-500 max-is-[min(calc(100vw-16px),40ch)]'\n >\n <Message.Root valence='warning' classNames='rounded-be-none p-5'>\n <Message.Title>{t('warning title')}</Message.Title>\n <Message.Content>\n {t('technology preview message')}\n <br />\n <Link href={previewUrl} target='_blank' rel='noreferrer' variant='neutral'>\n {t('learn more label')}\n <Icon icon='ph--arrow-square-out--bold' classNames='inline mis-1' />\n </Link>\n </Message.Content>\n </Message.Root>\n <div role='none' className='plb-4 pli-5 space-b-2 text-baseText'>\n {timestamp && (\n <p>\n {t('released message', {\n released: formatDistance(new Date(timestamp), new Date(), { addSuffix: true }),\n })}\n <br />\n <Link href={releaseUrl} target='_blank' rel='noreferrer' variant='neutral'>\n {t('see release label')}\n <Icon icon='ph--arrow-square-out--bold' classNames='inline mis-1' />\n </Link>\n </p>\n )}\n <p>\n <Trans\n {...{\n t,\n i18nKey: 'powered by dxos message',\n components: {\n dxos: <Link href='https://dxos.org' target='_blank' rel='noreferrer' variant='neutral' />,\n },\n }}\n />\n </p>\n </div>\n <Popover.Arrow />\n </Popover.Content>\n </Popover.Portal>\n </Popover.Root>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useState } from 'react';\n\nimport { Surface } from '@dxos/app-framework/react';\nimport { useConfig } from '@dxos/react-client';\nimport { Icon, Popover, useTranslation } from '@dxos/react-ui';\n\nimport { meta } from '../meta';\n\nimport { StatusBar } from './StatusBar';\nimport { VersionNumber } from './VersionNumber';\n\nexport const StatusBarActions = () => {\n const { t } = useTranslation(meta.id);\n const [open, setOpen] = useState(false);\n\n return (\n <Popover.Root open={open} onOpenChange={setOpen}>\n <EnvironmentLabel />\n <VersionNumber />\n <StatusBar.Button asChild>\n <a href='https://dxos.org/discord' target='_blank' rel='noopener noreferrer'>\n <Icon icon='ph--discord-logo--regular' size={4} />\n <StatusBar.Text classNames='hidden sm:block'>{t('discord label')}</StatusBar.Text>\n </a>\n </StatusBar.Button>\n <StatusBar.Button asChild>\n <a href='https://github.com/dxos/dxos' target='_blank' rel='noopener noreferrer'>\n <Icon icon='ph--github-logo--regular' size={4} />\n <StatusBar.Text classNames='hidden sm:block'>{t('github label')}</StatusBar.Text>\n </a>\n </StatusBar.Button>\n </Popover.Root>\n );\n};\n\nexport const StatusBarPanel = () => {\n return (\n <>\n <StatusBarActions />\n <span role='separator' className='grow' />\n <Surface role='status' />\n </>\n );\n};\n\nconst ENV_LABELS: Record<string, string> = {\n 'edge-dev': 'Dev',\n 'edge-main': 'Main',\n 'edge-labs': 'Labs',\n 'edge-production': 'Production',\n};\n\nconst EnvironmentLabel = () => {\n const config = useConfig();\n const edgeUrl = config.values.runtime?.services?.edge?.url;\n if (!edgeUrl) {\n return null;\n }\n const part = new URL(edgeUrl).host.split('.')[0];\n const edgeEnv = ENV_LABELS[part];\n if (!edgeEnv) {\n return null;\n }\n\n return (\n <StatusBar.Item>\n <StatusBar.Text classNames='text-xs text-subdued border border-separator rounded-full pli-1'>\n <span title={edgeEnv}>{edgeEnv[0]}</span>\n </StatusBar.Text>\n </StatusBar.Item>\n );\n};\n"],
|
|
5
|
-
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,IAAIC,IAAIP,OAAAA,EAASQ,KAAKC,MAAM,GAAA,EAAK,CAAA;AAC9C,QAAMC,UAAUb,WAAWS,IAAAA;AAC3B,MAAI,CAACI,SAAS;AACZ,WAAO;EACT;AAEA,SACE,gBAAApC,OAAA,cAACM,UAAU+B,MAAI,MACb,gBAAArC,OAAA,cAACM,UAAUU,MAAI;IAACC,YAAW;KACzB,gBAAAjB,OAAA,cAACmB,QAAAA;IAAKmB,OAAOF;KAAUA,QAAQ,CAAA,CAAE,CAAA,CAAA;AAIzC;",
|
|
6
|
-
"names": ["Slot", "React", "forwardRef", "mx", "StatusBarText", "forwardRef", "classNames", "children", "forwardedRef", "span", "className", "mx", "ref", "StatusBarButton", "asChild", "props", "classes", "Slot", "role", "button", "StatusBarItem", "forwardRef", "classNames", "children", "props", "forwardedRef", "div", "role", "className", "mx", "ref", "StartContent", "EndContent", "StatusBar", "Text", "StatusBarText", "Item", "Button", "StatusBarButton", "trim", "meta", "id", "name", "description", "trim", "icon", "formatDistance", "React", "useConfig", "Icon", "Link", "Message", "Popover", "Trans", "useTranslation", "repo", "VERSION_REGEX", "VersionNumber", "t", "useTranslation", "meta", "id", "config", "useConfig", "version", "timestamp", "commitHash", "values", "runtime", "app", "build", "_", "v", "match", "isLabs", "env", "DX_LABS", "releaseUrl", "DX_ENVIRONMENT", "previewUrl", "React", "Popover", "Root", "Trigger", "asChild", "StatusBar", "Button", "classNames", "Portal", "Content", "side", "role", "Message", "valence", "Title", "br", "Link", "href", "target", "rel", "variant", "Icon", "icon", "div", "className", "p", "released", "formatDistance", "Date", "addSuffix", "Trans", "i18nKey", "components", "dxos", "Arrow", "React", "useState", "Surface", "useConfig", "Icon", "Popover", "useTranslation", "StatusBarActions", "t", "useTranslation", "meta", "id", "open", "setOpen", "useState", "React", "Popover", "Root", "onOpenChange", "EnvironmentLabel", "VersionNumber", "StatusBar", "Button", "asChild", "a", "href", "target", "rel", "Icon", "icon", "size", "Text", "classNames", "StatusBarPanel", "span", "role", "className", "Surface", "ENV_LABELS", "config", "useConfig", "edgeUrl", "values", "runtime", "services", "edge", "url", "part", "URL", "host", "split", "edgeEnv", "Item", "title"]
|
|
7
|
-
}
|