@dxos/plugin-status-bar 0.8.4-main.74a063c4e0 → 0.8.4-main.765dc60934
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/StatusBarActions-4BKTPZD2.mjs +8 -0
- package/dist/lib/neutral/StatusBarActions-4BKTPZD2.mjs.map +7 -0
- package/dist/lib/neutral/StatusBarPanel-7MSGZVNG.mjs +20 -0
- package/dist/lib/neutral/StatusBarPanel-7MSGZVNG.mjs.map +7 -0
- package/dist/lib/neutral/StatusBarPlugin.mjs +17 -0
- package/dist/lib/neutral/StatusBarPlugin.mjs.map +7 -0
- package/dist/lib/neutral/VersionNumber-I6NWZVLO.mjs +7 -0
- package/dist/lib/neutral/VersionNumber-I6NWZVLO.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +7 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-BHLVVHW4.mjs +19 -0
- package/dist/lib/neutral/chunk-BHLVVHW4.mjs.map +7 -0
- package/dist/lib/neutral/chunk-H63AWCK5.mjs +71 -0
- package/dist/lib/neutral/chunk-H63AWCK5.mjs.map +7 -0
- package/dist/lib/neutral/chunk-KSMKTIOP.mjs +70 -0
- package/dist/lib/neutral/chunk-KSMKTIOP.mjs.map +7 -0
- package/dist/lib/{browser → neutral/components}/index.mjs +1 -51
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +11 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +7 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +7 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +11 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-LRBTL7UM.mjs +27 -0
- package/dist/lib/neutral/react-surface-LRBTL7UM.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +24 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/types/src/StatusBarPlugin.d.ts +1 -0
- package/dist/types/src/StatusBarPlugin.d.ts.map +1 -1
- package/dist/types/src/StatusBarPlugin.test.d.ts +2 -0
- package/dist/types/src/StatusBarPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/StatusBar/StatusBar.stories.d.ts +0 -1
- package/dist/types/src/components/StatusBar/StatusBar.stories.d.ts.map +1 -1
- package/dist/types/src/containers/StatusBarActions/StatusBarActions.d.ts.map +1 -1
- package/dist/types/src/containers/StatusBarActions/StatusBarActions.stories.d.ts +7 -0
- package/dist/types/src/containers/StatusBarActions/StatusBarActions.stories.d.ts.map +1 -0
- package/dist/types/src/containers/StatusBarPanel/StatusBarPanel.d.ts.map +1 -1
- package/dist/types/src/containers/VersionNumber/VersionNumber.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +3 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +11 -12
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +65 -27
- package/src/StatusBarPlugin.test.ts +23 -0
- package/src/StatusBarPlugin.ts +3 -2
- package/src/components/StatusBar/StatusBar.stories.tsx +1 -1
- package/src/components/StatusBar/StatusBar.tsx +2 -2
- package/src/containers/StatusBarActions/StatusBarActions.stories.tsx +62 -0
- package/src/containers/StatusBarActions/StatusBarActions.tsx +17 -14
- package/src/containers/VersionNumber/VersionNumber.tsx +37 -26
- package/src/index.ts +1 -2
- package/src/meta.ts +2 -1
- package/src/plugin.ts +9 -0
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/node-esm/index.mjs +0 -100
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
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.765dc60934",
|
|
4
4
|
"description": "Status bar plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,28 +8,65 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/dxos/dxos"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
|
-
"#capabilities":
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
"#capabilities": {
|
|
17
|
+
"source": "./src/capabilities/index.ts",
|
|
18
|
+
"types": "./dist/types/src/capabilities/index.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/capabilities/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"#components": {
|
|
22
|
+
"source": "./src/components/index.ts",
|
|
23
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
24
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"#containers": {
|
|
27
|
+
"source": "./src/containers/index.ts",
|
|
28
|
+
"types": "./dist/types/src/containers/index.d.ts",
|
|
29
|
+
"default": "./dist/lib/neutral/containers/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"#meta": {
|
|
32
|
+
"source": "./src/meta.ts",
|
|
33
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
34
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
35
|
+
},
|
|
36
|
+
"#plugin": {
|
|
37
|
+
"source": "./src/StatusBarPlugin.ts",
|
|
38
|
+
"types": "./dist/types/src/StatusBarPlugin.d.ts",
|
|
39
|
+
"default": "./dist/lib/neutral/StatusBarPlugin.mjs"
|
|
40
|
+
},
|
|
41
|
+
"#translations": {
|
|
42
|
+
"source": "./src/translations.ts",
|
|
43
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
44
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
45
|
+
}
|
|
20
46
|
},
|
|
21
47
|
"exports": {
|
|
22
48
|
".": {
|
|
23
49
|
"source": "./src/index.ts",
|
|
24
50
|
"types": "./dist/types/src/index.d.ts",
|
|
25
|
-
"
|
|
26
|
-
|
|
51
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./components": {
|
|
54
|
+
"source": "./src/components/index.ts",
|
|
55
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
56
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./plugin": {
|
|
59
|
+
"source": "./src/plugin.ts",
|
|
60
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
61
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./translations": {
|
|
64
|
+
"source": "./src/translations.ts",
|
|
65
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
66
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
27
67
|
}
|
|
28
68
|
},
|
|
29
69
|
"types": "dist/types/src/index.d.ts",
|
|
30
|
-
"typesVersions": {
|
|
31
|
-
"*": {}
|
|
32
|
-
},
|
|
33
70
|
"files": [
|
|
34
71
|
"dist",
|
|
35
72
|
"src"
|
|
@@ -40,33 +77,34 @@
|
|
|
40
77
|
"date-fns": "^3.6.0",
|
|
41
78
|
"effect": "3.20.0",
|
|
42
79
|
"react-resize-detector": "^11.0.1",
|
|
43
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/react-client": "0.8.4-main.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
80
|
+
"@dxos/app-framework": "0.8.4-main.765dc60934",
|
|
81
|
+
"@dxos/app-toolkit": "0.8.4-main.765dc60934",
|
|
82
|
+
"@dxos/async": "0.8.4-main.765dc60934",
|
|
83
|
+
"@dxos/operation": "0.8.4-main.765dc60934",
|
|
84
|
+
"@dxos/plugin-observability": "0.8.4-main.765dc60934",
|
|
85
|
+
"@dxos/react-ui-form": "0.8.4-main.765dc60934",
|
|
86
|
+
"@dxos/react-client": "0.8.4-main.765dc60934",
|
|
87
|
+
"@dxos/echo": "0.8.4-main.765dc60934",
|
|
88
|
+
"@dxos/util": "0.8.4-main.765dc60934",
|
|
89
|
+
"@dxos/schema": "0.8.4-main.765dc60934"
|
|
53
90
|
},
|
|
54
91
|
"devDependencies": {
|
|
55
92
|
"@types/react": "~19.2.7",
|
|
56
93
|
"@types/react-dom": "~19.2.3",
|
|
57
94
|
"react": "~19.2.3",
|
|
58
95
|
"react-dom": "~19.2.3",
|
|
59
|
-
"vite": "^
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
96
|
+
"vite": "^8.0.13",
|
|
97
|
+
"@dxos/plugin-testing": "0.8.4-main.765dc60934",
|
|
98
|
+
"@dxos/react-ui": "0.8.4-main.765dc60934",
|
|
99
|
+
"@dxos/storybook-utils": "0.8.4-main.765dc60934",
|
|
100
|
+
"@dxos/ui-theme": "0.8.4-main.765dc60934"
|
|
63
101
|
},
|
|
64
102
|
"peerDependencies": {
|
|
65
103
|
"effect": "3.20.0",
|
|
66
104
|
"react": "~19.2.3",
|
|
67
105
|
"react-dom": "~19.2.3",
|
|
68
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
69
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
106
|
+
"@dxos/react-ui": "0.8.4-main.765dc60934",
|
|
107
|
+
"@dxos/ui-theme": "0.8.4-main.765dc60934"
|
|
70
108
|
},
|
|
71
109
|
"publishConfig": {
|
|
72
110
|
"access": "public"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, test } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
8
|
+
|
|
9
|
+
import { StatusBarPlugin } from '#plugin';
|
|
10
|
+
|
|
11
|
+
import { meta } from './meta';
|
|
12
|
+
|
|
13
|
+
const moduleId = (name: string) => `${meta.id}.module.${name}`;
|
|
14
|
+
|
|
15
|
+
describe('StatusBarPlugin', () => {
|
|
16
|
+
test('modules activate on the expected events', async ({ expect }) => {
|
|
17
|
+
await using harness = await createComposerTestApp({
|
|
18
|
+
plugins: [StatusBarPlugin()],
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
expect(harness.manager.getActive()).toContain(moduleId('ReactSurface'));
|
|
22
|
+
});
|
|
23
|
+
});
|
package/src/StatusBarPlugin.ts
CHANGED
|
@@ -7,11 +7,12 @@ import { AppPlugin } from '@dxos/app-toolkit';
|
|
|
7
7
|
|
|
8
8
|
import { ReactSurface } from '#capabilities';
|
|
9
9
|
import { meta } from '#meta';
|
|
10
|
-
|
|
11
|
-
import { translations } from './translations';
|
|
10
|
+
import { translations } from '#translations';
|
|
12
11
|
|
|
13
12
|
export const StatusBarPlugin = Plugin.define(meta).pipe(
|
|
14
13
|
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
15
14
|
AppPlugin.addTranslationsModule({ translations }),
|
|
16
15
|
Plugin.make,
|
|
17
16
|
);
|
|
17
|
+
|
|
18
|
+
export default StatusBarPlugin;
|
|
@@ -73,7 +73,7 @@ const StatusBarButton = forwardRef<HTMLButtonElement, StatusBarButtonProps>(
|
|
|
73
73
|
type StartContentProps = ThemedClassName<PropsWithChildren<{}>>;
|
|
74
74
|
|
|
75
75
|
const StartContent = forwardRef<HTMLDivElement, StartContentProps>(({ classNames, children }, forwardedRef) => (
|
|
76
|
-
<div
|
|
76
|
+
<div className={mx('flex-grow flex items-center space-x-2', classNames)} ref={forwardedRef}>
|
|
77
77
|
{children}
|
|
78
78
|
</div>
|
|
79
79
|
));
|
|
@@ -85,7 +85,7 @@ const StartContent = forwardRef<HTMLDivElement, StartContentProps>(({ classNames
|
|
|
85
85
|
type EndContentProps = ThemedClassName<PropsWithChildren<{}>>;
|
|
86
86
|
|
|
87
87
|
const EndContent = forwardRef<HTMLDivElement, EndContentProps>(({ classNames, children }, forwardedRef) => (
|
|
88
|
-
<div
|
|
88
|
+
<div className={mx('flex-grow flex items-center justify-end', classNames)} ref={forwardedRef}>
|
|
89
89
|
{children}
|
|
90
90
|
</div>
|
|
91
91
|
));
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
6
|
+
|
|
7
|
+
import { Config } from '@dxos/react-client';
|
|
8
|
+
import { withClientProvider } from '@dxos/react-client/testing';
|
|
9
|
+
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
10
|
+
|
|
11
|
+
import { translations } from '#translations';
|
|
12
|
+
|
|
13
|
+
import { StatusBarActions } from './StatusBarActions';
|
|
14
|
+
|
|
15
|
+
const meta: Meta<typeof StatusBarActions> = {
|
|
16
|
+
title: 'plugins/plugin-status-bar/containers/StatusBarActions',
|
|
17
|
+
component: StatusBarActions,
|
|
18
|
+
decorators: [
|
|
19
|
+
withTheme(),
|
|
20
|
+
withLayout({
|
|
21
|
+
layout: 'centered',
|
|
22
|
+
classNames: 'w-[calc(var(--dx-complementary-sidebar-size)_-_var(--dx-rail-content))]',
|
|
23
|
+
}),
|
|
24
|
+
withClientProvider({
|
|
25
|
+
config: new Config({
|
|
26
|
+
version: 1,
|
|
27
|
+
runtime: {
|
|
28
|
+
client: {
|
|
29
|
+
storage: {
|
|
30
|
+
persistent: false,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
app: {
|
|
34
|
+
build: {
|
|
35
|
+
version: '0.8.3-beta.b78990fdd5',
|
|
36
|
+
timestamp: '2024-06-01T12:00:00.000Z',
|
|
37
|
+
commitHash: 'b78990fdd5',
|
|
38
|
+
},
|
|
39
|
+
env: {
|
|
40
|
+
DX_ENVIRONMENT: 'development',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
services: {
|
|
44
|
+
edge: {
|
|
45
|
+
url: 'https://edge-dev.dxos.org',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
}),
|
|
50
|
+
}),
|
|
51
|
+
],
|
|
52
|
+
parameters: {
|
|
53
|
+
layout: 'centered',
|
|
54
|
+
translations,
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export default meta;
|
|
59
|
+
|
|
60
|
+
type Story = StoryObj<typeof meta>;
|
|
61
|
+
|
|
62
|
+
export const Default: Story = {};
|
|
@@ -20,20 +20,23 @@ export const StatusBarActions = (_props: StatusBarActionsProps) => {
|
|
|
20
20
|
|
|
21
21
|
return (
|
|
22
22
|
<Popover.Root open={open} onOpenChange={setOpen}>
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
<div className='h-full flex items-center px-2 gap-2'>
|
|
24
|
+
<EnvironmentLabel />
|
|
25
|
+
<VersionNumber />
|
|
26
|
+
<div className='grow' />
|
|
27
|
+
<StatusBar.Button asChild>
|
|
28
|
+
<a href='https://dxos.org/discord' target='_blank' rel='noopener noreferrer'>
|
|
29
|
+
<Icon icon='ph--discord-logo--regular' />
|
|
30
|
+
<StatusBar.Text classNames='hidden sm:block'>{t('discord.label')}</StatusBar.Text>
|
|
31
|
+
</a>
|
|
32
|
+
</StatusBar.Button>
|
|
33
|
+
<StatusBar.Button asChild>
|
|
34
|
+
<a href='https://github.com/dxos/dxos' target='_blank' rel='noopener noreferrer'>
|
|
35
|
+
<Icon icon='ph--github-logo--regular' />
|
|
36
|
+
<StatusBar.Text classNames='hidden sm:block'>{t('github.label')}</StatusBar.Text>
|
|
37
|
+
</a>
|
|
38
|
+
</StatusBar.Button>
|
|
39
|
+
</div>
|
|
37
40
|
</Popover.Root>
|
|
38
41
|
);
|
|
39
42
|
};
|
|
@@ -22,7 +22,6 @@ export const VersionNumber = (_props: VersionNumberProps) => {
|
|
|
22
22
|
const config = useConfig();
|
|
23
23
|
const { version, timestamp, commitHash } = config.values.runtime?.app?.build ?? {};
|
|
24
24
|
const [_, v] = version?.match(VERSION_REGEX) ?? [];
|
|
25
|
-
const isLabs = config.values.runtime?.app?.env?.DX_LABS;
|
|
26
25
|
|
|
27
26
|
const releaseUrl =
|
|
28
27
|
config.values.runtime?.app?.env?.DX_ENVIRONMENT === 'production'
|
|
@@ -34,15 +33,11 @@ export const VersionNumber = (_props: VersionNumberProps) => {
|
|
|
34
33
|
return (
|
|
35
34
|
<Popover.Root>
|
|
36
35
|
<Popover.Trigger asChild>
|
|
37
|
-
<StatusBar.Button classNames='text-xs'>{
|
|
36
|
+
<StatusBar.Button classNames='h-full text-xs'>{v}</StatusBar.Button>
|
|
38
37
|
</Popover.Trigger>
|
|
39
38
|
<Popover.Portal>
|
|
40
|
-
<Popover.Content
|
|
41
|
-
|
|
42
|
-
role='message'
|
|
43
|
-
classNames='z-[12] bg-warning-500 max-w-[min(calc(100vw-16px),40ch)]'
|
|
44
|
-
>
|
|
45
|
-
<Message.Root valence='warning' classNames='rounded-b-none p-5'>
|
|
39
|
+
<Popover.Content side='top' role='message' classNames='z-[12] max-w-[min(calc(100vw-16px),40ch)]'>
|
|
40
|
+
<Message.Root valence='info' classNames='p-2 rounded-b-none'>
|
|
46
41
|
<Message.Title>{t('warning.title')}</Message.Title>
|
|
47
42
|
<Message.Content>
|
|
48
43
|
{t('technology-preview.message')}
|
|
@@ -53,30 +48,46 @@ export const VersionNumber = (_props: VersionNumberProps) => {
|
|
|
53
48
|
</Link>
|
|
54
49
|
</Message.Content>
|
|
55
50
|
</Message.Root>
|
|
56
|
-
<div
|
|
51
|
+
<div className='flex flex-col ps-10 pe-4 py-2 gap-1 space-b-2 text-base-foreground'>
|
|
57
52
|
{timestamp && (
|
|
53
|
+
<div>
|
|
54
|
+
<p>
|
|
55
|
+
{t('released.message', {
|
|
56
|
+
released: formatDistance(new Date(timestamp), new Date(), { addSuffix: true }),
|
|
57
|
+
})}
|
|
58
|
+
</p>
|
|
59
|
+
<div>
|
|
60
|
+
<span className='dx-tag dx-tag--neutral -ml-1'>{version}</span>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
)}
|
|
64
|
+
<div>
|
|
58
65
|
<p>
|
|
59
|
-
{t('released.message', {
|
|
60
|
-
released: formatDistance(new Date(timestamp), new Date(), { addSuffix: true }),
|
|
61
|
-
})}
|
|
62
|
-
<br />
|
|
63
66
|
<Link href={releaseUrl} target='_blank' rel='noreferrer' variant='neutral'>
|
|
64
67
|
{t('see-release.label')}
|
|
65
|
-
<Icon icon='ph--arrow-square-out--bold' classNames='dx-icon-inline ms-1' />
|
|
68
|
+
<Icon icon='ph--arrow-square-out--bold' size={4} classNames='dx-icon-inline ms-1' />
|
|
66
69
|
</Link>
|
|
67
70
|
</p>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
71
|
+
<p>
|
|
72
|
+
<Trans
|
|
73
|
+
{...{
|
|
74
|
+
t,
|
|
75
|
+
i18nKey: 'powered-by-dxos.message',
|
|
76
|
+
components: {
|
|
77
|
+
dxos: (
|
|
78
|
+
<Link
|
|
79
|
+
classNames='text-green-500'
|
|
80
|
+
href='https://dxos.org'
|
|
81
|
+
target='_blank'
|
|
82
|
+
rel='noreferrer'
|
|
83
|
+
variant='neutral'
|
|
84
|
+
/>
|
|
85
|
+
),
|
|
86
|
+
},
|
|
87
|
+
}}
|
|
88
|
+
/>
|
|
89
|
+
</p>
|
|
90
|
+
</div>
|
|
80
91
|
</div>
|
|
81
92
|
<Popover.Arrow />
|
|
82
93
|
</Popover.Content>
|
package/src/index.ts
CHANGED
package/src/meta.ts
CHANGED
|
@@ -6,11 +6,12 @@ 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: 'org.dxos.plugin.
|
|
9
|
+
id: 'org.dxos.plugin.statusBar',
|
|
10
10
|
name: 'Status Bar',
|
|
11
11
|
description: trim`
|
|
12
12
|
Persistent bottom bar displaying workspace status information and quick actions.
|
|
13
13
|
Access connection state, notifications, and common commands without leaving your current context.
|
|
14
14
|
`,
|
|
15
15
|
icon: 'ph--info--regular',
|
|
16
|
+
tags: ['system'],
|
|
16
17
|
};
|
package/src/plugin.ts
ADDED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/StatusBar/StatusBar.tsx", "../../../src/meta.ts", "../../../src/StatusBarPlugin.ts", "../../../src/translations.ts"],
|
|
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\n//\n// Item\n//\n\ntype StatusBarItemProps = ThemedClassName<PropsWithChildren>;\n\nconst StatusBarItem = forwardRef<HTMLDivElement, StatusBarItemProps>(\n ({ classNames, children, ...props }, forwardedRef) => {\n return (\n <div {...props} role='status' className={mx('grid place-items-center', classNames)} ref={forwardedRef}>\n {children}\n </div>\n );\n },\n);\n\n//\n// Text\n//\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\n//\n// Button\n//\n\ntype StatusBarButtonProps = ThemedClassName<ComponentPropsWithRef<'button'> & { asChild?: boolean }>;\n\n/**\n * @deprecated\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 px-2 rounded-xs',\n 'select-none cursor-pointer dx-focus-ring text-description text-xs',\n 'hover:bg-neutral-100 active:bg-neutral-200 dark:hover:bg-neutral-700 dark:active:bg-neutral-600',\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\n//\n// Content\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\n//\n// EndContent\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\n//\n// StatusBar\n//\n\nexport const StatusBar = {\n Item: StatusBarItem,\n Text: StatusBarText,\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: 'org.dxos.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 { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\n\nimport { ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\n\nimport { translations } from './translations';\n\nexport const StatusBarPlugin = Plugin.define(meta).pipe(\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Status Bar',\n 'warning.title': 'WARNING',\n 'technology-preview.message': 'Composer is currently in beta.',\n 'learn-more.label': 'Learn more',\n 'released.message': 'This version was released {{released}}.',\n 'see-release.label': 'See release on GitHub',\n 'powered-by-dxos.message': 'Powered by <dxos>DXOS</dxos>',\n 'discord.label': 'Discord',\n 'github.label': 'GitHub',\n 'feedback.label': 'Feedback',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
-
"mappings": ";AAIA,SAASA,YAAY;AACrB,OAAOC,SAA6EC,kBAAkB;AAGtG,SAASC,UAAU;AAQnB,IAAMC,gBAAgBC,2BACpB,CAAC,EAAEC,YAAYC,UAAU,GAAGC,MAAAA,GAASC,iBAAAA;AACnC,SACE,sBAAA,cAACC,OAAAA;IAAK,GAAGF;IAAOG,MAAK;IAASC,WAAWC,GAAG,2BAA2BP,UAAAA;IAAaQ,KAAKL;KACtFF,QAAAA;AAGP,CAAA;AASF,IAAMQ,gBAAgBV,2BAAgD,CAAC,EAAEC,YAAYC,SAAQ,GAAIE,iBAC/F,sBAAA,cAACO,QAAAA;EAAKJ,WAAWC,GAAGP,UAAAA;EAAaQ,KAAKL;GACnCF,QAAAA,CAAAA;AAaL,IAAMU,kBAAkBZ,2BACtB,CAAC,EAAEC,YAAYC,UAAUW,SAAS,GAAGV,MAAAA,GAASC,iBAAAA;AAC5C,QAAMU,UAAUN,GACd,8DACA,qEACA,mGACAP,UAAAA;AAGF,SAAOY,UACL,sBAAA,cAACE,MAAAA;IAAKT,MAAK;IAASG,KAAKL;IAAcG,WAAWO;IAAU,GAAGX;KAC5DD,QAAAA,IAGH,sBAAA,cAACc,UAAAA;IAAOT,WAAWO;IAASL,KAAKL;IAAe,GAAGD;KAChDD,QAAAA;AAGP,CAAA;AASF,IAAMe,eAAejB,2BAA8C,CAAC,EAAEC,YAAYC,SAAQ,GAAIE,iBAC5F,sBAAA,cAACC,OAAAA;EAAIC,MAAK;EAAOC,WAAWC,GAAG,yCAAyCP,UAAAA;EAAaQ,KAAKL;GACvFF,QAAAA,CAAAA;AAUL,IAAMgB,aAAalB,2BAA4C,CAAC,EAAEC,YAAYC,SAAQ,GAAIE,iBACxF,sBAAA,cAACC,OAAAA;EAAIC,MAAK;EAAOC,WAAWC,GAAG,2CAA2CP,UAAAA;EAAaQ,KAAKL;GACzFF,QAAAA,CAAAA;AAQE,IAAMiB,YAAY;EACvBC,MAAMrB;EACNsB,MAAMX;EACNY,QAAQV;EACRK;EACAC;AACF;;;ACjGA,SAASK,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;AACR;;;ACXA,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAE1B,SAASC,oBAAoB;AAC7B,SAASC,QAAAA,aAAY;;;ACFrB,SAASC,QAAAA,aAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,MAAKC,EAAE,GAAG;QACT,eAAe;QACf,iBAAiB;QACjB,8BAA8B;QAC9B,oBAAoB;QACpB,oBAAoB;QACpB,qBAAqB;QACrB,2BAA2B;QAC3B,iBAAiB;QACjB,gBAAgB;QAChB,kBAAkB;MACpB;IACF;EACF;;;;ADZK,IAAMC,kBAAkBC,OAAOC,OAAOC,KAAAA,EAAMC,KACjDC,UAAUC,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACpDH,UAAUI,sBAAsB;EAAEC;AAAa,CAAA,GAC/CT,OAAOU,IAAI;",
|
|
6
|
-
"names": ["Slot", "React", "forwardRef", "mx", "StatusBarItem", "forwardRef", "classNames", "children", "props", "forwardedRef", "div", "role", "className", "mx", "ref", "StatusBarText", "span", "StatusBarButton", "asChild", "classes", "Slot", "button", "StartContent", "EndContent", "StatusBar", "Item", "Text", "Button", "trim", "meta", "id", "name", "description", "trim", "icon", "Plugin", "AppPlugin", "ReactSurface", "meta", "meta", "translations", "meta", "id", "StatusBarPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addSurfaceModule", "activate", "ReactSurface", "addTranslationsModule", "translations", "make"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/components/StatusBar/StatusBar.tsx":{"bytes":7772,"imports":[{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/StatusBar/index.ts":{"bytes":487,"imports":[{"path":"src/components/StatusBar/StatusBar.tsx","kind":"import-statement","original":"./StatusBar"}],"format":"esm"},"src/components/index.ts":{"bytes":477,"imports":[{"path":"src/components/StatusBar/index.ts","kind":"import-statement","original":"./StatusBar"}],"format":"esm"},"src/meta.ts":{"bytes":1555,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":2429,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/StatusBarPlugin.ts":{"bytes":1956,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":654,"imports":[{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/StatusBarPlugin.ts","kind":"import-statement","original":"./StatusBarPlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6859},"dist/lib/browser/index.mjs":{"imports":[{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["StatusBar","StatusBarPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/components/StatusBar/StatusBar.tsx":{"bytesInOutput":1918},"src/components/StatusBar/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":350},"src/StatusBarPlugin.ts":{"bytesInOutput":351},"src/translations.ts":{"bytesInOutput":606}},"bytes":3447}}}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
|
|
3
|
-
// src/components/StatusBar/StatusBar.tsx
|
|
4
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
5
|
-
import React, { forwardRef } from "react";
|
|
6
|
-
import { mx } from "@dxos/ui-theme";
|
|
7
|
-
var StatusBarItem = /* @__PURE__ */ forwardRef(({ classNames, children, ...props }, forwardedRef) => {
|
|
8
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
9
|
-
...props,
|
|
10
|
-
role: "status",
|
|
11
|
-
className: mx("grid place-items-center", classNames),
|
|
12
|
-
ref: forwardedRef
|
|
13
|
-
}, children);
|
|
14
|
-
});
|
|
15
|
-
var StatusBarText = /* @__PURE__ */ forwardRef(({ classNames, children }, forwardedRef) => /* @__PURE__ */ React.createElement("span", {
|
|
16
|
-
className: mx(classNames),
|
|
17
|
-
ref: forwardedRef
|
|
18
|
-
}, children));
|
|
19
|
-
var StatusBarButton = /* @__PURE__ */ forwardRef(({ classNames, children, asChild, ...props }, forwardedRef) => {
|
|
20
|
-
const classes = mx("flex items-center justify-center gap-2 p-1 px-2 rounded-xs", "select-none cursor-pointer dx-focus-ring text-description text-xs", "hover:bg-neutral-100 active:bg-neutral-200 dark:hover:bg-neutral-700 dark:active:bg-neutral-600", classNames);
|
|
21
|
-
return asChild ? /* @__PURE__ */ React.createElement(Slot, {
|
|
22
|
-
role: "button",
|
|
23
|
-
ref: forwardedRef,
|
|
24
|
-
className: classes,
|
|
25
|
-
...props
|
|
26
|
-
}, children) : /* @__PURE__ */ React.createElement("button", {
|
|
27
|
-
className: classes,
|
|
28
|
-
ref: forwardedRef,
|
|
29
|
-
...props
|
|
30
|
-
}, children);
|
|
31
|
-
});
|
|
32
|
-
var StartContent = /* @__PURE__ */ forwardRef(({ classNames, children }, forwardedRef) => /* @__PURE__ */ React.createElement("div", {
|
|
33
|
-
role: "none",
|
|
34
|
-
className: mx("flex-grow flex items-center space-x-2", classNames),
|
|
35
|
-
ref: forwardedRef
|
|
36
|
-
}, children));
|
|
37
|
-
var EndContent = /* @__PURE__ */ forwardRef(({ classNames, children }, forwardedRef) => /* @__PURE__ */ React.createElement("div", {
|
|
38
|
-
role: "none",
|
|
39
|
-
className: mx("flex-grow flex items-center justify-end", classNames),
|
|
40
|
-
ref: forwardedRef
|
|
41
|
-
}, children));
|
|
42
|
-
var StatusBar = {
|
|
43
|
-
Item: StatusBarItem,
|
|
44
|
-
Text: StatusBarText,
|
|
45
|
-
Button: StatusBarButton,
|
|
46
|
-
StartContent,
|
|
47
|
-
EndContent
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// src/meta.ts
|
|
51
|
-
import { trim } from "@dxos/util";
|
|
52
|
-
var meta = {
|
|
53
|
-
id: "org.dxos.plugin.status-bar",
|
|
54
|
-
name: "Status Bar",
|
|
55
|
-
description: trim`
|
|
56
|
-
Persistent bottom bar displaying workspace status information and quick actions.
|
|
57
|
-
Access connection state, notifications, and common commands without leaving your current context.
|
|
58
|
-
`,
|
|
59
|
-
icon: "ph--info--regular"
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
// src/StatusBarPlugin.ts
|
|
63
|
-
import { Plugin } from "@dxos/app-framework";
|
|
64
|
-
import { AppPlugin } from "@dxos/app-toolkit";
|
|
65
|
-
import { ReactSurface } from "#capabilities";
|
|
66
|
-
import { meta as meta3 } from "#meta";
|
|
67
|
-
|
|
68
|
-
// src/translations.ts
|
|
69
|
-
import { meta as meta2 } from "#meta";
|
|
70
|
-
var translations = [
|
|
71
|
-
{
|
|
72
|
-
"en-US": {
|
|
73
|
-
[meta2.id]: {
|
|
74
|
-
"plugin.name": "Status Bar",
|
|
75
|
-
"warning.title": "WARNING",
|
|
76
|
-
"technology-preview.message": "Composer is currently in beta.",
|
|
77
|
-
"learn-more.label": "Learn more",
|
|
78
|
-
"released.message": "This version was released {{released}}.",
|
|
79
|
-
"see-release.label": "See release on GitHub",
|
|
80
|
-
"powered-by-dxos.message": "Powered by <dxos>DXOS</dxos>",
|
|
81
|
-
"discord.label": "Discord",
|
|
82
|
-
"github.label": "GitHub",
|
|
83
|
-
"feedback.label": "Feedback"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
];
|
|
88
|
-
|
|
89
|
-
// src/StatusBarPlugin.ts
|
|
90
|
-
var StatusBarPlugin = Plugin.define(meta3).pipe(AppPlugin.addSurfaceModule({
|
|
91
|
-
activate: ReactSurface
|
|
92
|
-
}), AppPlugin.addTranslationsModule({
|
|
93
|
-
translations
|
|
94
|
-
}), Plugin.make);
|
|
95
|
-
export {
|
|
96
|
-
StatusBar,
|
|
97
|
-
StatusBarPlugin,
|
|
98
|
-
meta
|
|
99
|
-
};
|
|
100
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/StatusBar/StatusBar.tsx", "../../../src/meta.ts", "../../../src/StatusBarPlugin.ts", "../../../src/translations.ts"],
|
|
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\n//\n// Item\n//\n\ntype StatusBarItemProps = ThemedClassName<PropsWithChildren>;\n\nconst StatusBarItem = forwardRef<HTMLDivElement, StatusBarItemProps>(\n ({ classNames, children, ...props }, forwardedRef) => {\n return (\n <div {...props} role='status' className={mx('grid place-items-center', classNames)} ref={forwardedRef}>\n {children}\n </div>\n );\n },\n);\n\n//\n// Text\n//\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\n//\n// Button\n//\n\ntype StatusBarButtonProps = ThemedClassName<ComponentPropsWithRef<'button'> & { asChild?: boolean }>;\n\n/**\n * @deprecated\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 px-2 rounded-xs',\n 'select-none cursor-pointer dx-focus-ring text-description text-xs',\n 'hover:bg-neutral-100 active:bg-neutral-200 dark:hover:bg-neutral-700 dark:active:bg-neutral-600',\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\n//\n// Content\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\n//\n// EndContent\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\n//\n// StatusBar\n//\n\nexport const StatusBar = {\n Item: StatusBarItem,\n Text: StatusBarText,\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: 'org.dxos.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 { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\n\nimport { ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\n\nimport { translations } from './translations';\n\nexport const StatusBarPlugin = Plugin.define(meta).pipe(\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Status Bar',\n 'warning.title': 'WARNING',\n 'technology-preview.message': 'Composer is currently in beta.',\n 'learn-more.label': 'Learn more',\n 'released.message': 'This version was released {{released}}.',\n 'see-release.label': 'See release on GitHub',\n 'powered-by-dxos.message': 'Powered by <dxos>DXOS</dxos>',\n 'discord.label': 'Discord',\n 'github.label': 'GitHub',\n 'feedback.label': 'Feedback',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
-
"mappings": ";;;AAIA,SAASA,YAAY;AACrB,OAAOC,SAA6EC,kBAAkB;AAGtG,SAASC,UAAU;AAQnB,IAAMC,gBAAgBC,2BACpB,CAAC,EAAEC,YAAYC,UAAU,GAAGC,MAAAA,GAASC,iBAAAA;AACnC,SACE,sBAAA,cAACC,OAAAA;IAAK,GAAGF;IAAOG,MAAK;IAASC,WAAWC,GAAG,2BAA2BP,UAAAA;IAAaQ,KAAKL;KACtFF,QAAAA;AAGP,CAAA;AASF,IAAMQ,gBAAgBV,2BAAgD,CAAC,EAAEC,YAAYC,SAAQ,GAAIE,iBAC/F,sBAAA,cAACO,QAAAA;EAAKJ,WAAWC,GAAGP,UAAAA;EAAaQ,KAAKL;GACnCF,QAAAA,CAAAA;AAaL,IAAMU,kBAAkBZ,2BACtB,CAAC,EAAEC,YAAYC,UAAUW,SAAS,GAAGV,MAAAA,GAASC,iBAAAA;AAC5C,QAAMU,UAAUN,GACd,8DACA,qEACA,mGACAP,UAAAA;AAGF,SAAOY,UACL,sBAAA,cAACE,MAAAA;IAAKT,MAAK;IAASG,KAAKL;IAAcG,WAAWO;IAAU,GAAGX;KAC5DD,QAAAA,IAGH,sBAAA,cAACc,UAAAA;IAAOT,WAAWO;IAASL,KAAKL;IAAe,GAAGD;KAChDD,QAAAA;AAGP,CAAA;AASF,IAAMe,eAAejB,2BAA8C,CAAC,EAAEC,YAAYC,SAAQ,GAAIE,iBAC5F,sBAAA,cAACC,OAAAA;EAAIC,MAAK;EAAOC,WAAWC,GAAG,yCAAyCP,UAAAA;EAAaQ,KAAKL;GACvFF,QAAAA,CAAAA;AAUL,IAAMgB,aAAalB,2BAA4C,CAAC,EAAEC,YAAYC,SAAQ,GAAIE,iBACxF,sBAAA,cAACC,OAAAA;EAAIC,MAAK;EAAOC,WAAWC,GAAG,2CAA2CP,UAAAA;EAAaQ,KAAKL;GACzFF,QAAAA,CAAAA;AAQE,IAAMiB,YAAY;EACvBC,MAAMrB;EACNsB,MAAMX;EACNY,QAAQV;EACRK;EACAC;AACF;;;ACjGA,SAASK,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;AACR;;;ACXA,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAE1B,SAASC,oBAAoB;AAC7B,SAASC,QAAAA,aAAY;;;ACFrB,SAASC,QAAAA,aAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,MAAKC,EAAE,GAAG;QACT,eAAe;QACf,iBAAiB;QACjB,8BAA8B;QAC9B,oBAAoB;QACpB,oBAAoB;QACpB,qBAAqB;QACrB,2BAA2B;QAC3B,iBAAiB;QACjB,gBAAgB;QAChB,kBAAkB;MACpB;IACF;EACF;;;;ADZK,IAAMC,kBAAkBC,OAAOC,OAAOC,KAAAA,EAAMC,KACjDC,UAAUC,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACpDH,UAAUI,sBAAsB;EAAEC;AAAa,CAAA,GAC/CT,OAAOU,IAAI;",
|
|
6
|
-
"names": ["Slot", "React", "forwardRef", "mx", "StatusBarItem", "forwardRef", "classNames", "children", "props", "forwardedRef", "div", "role", "className", "mx", "ref", "StatusBarText", "span", "StatusBarButton", "asChild", "classes", "Slot", "button", "StartContent", "EndContent", "StatusBar", "Item", "Text", "Button", "trim", "meta", "id", "name", "description", "trim", "icon", "Plugin", "AppPlugin", "ReactSurface", "meta", "meta", "translations", "meta", "id", "StatusBarPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addSurfaceModule", "activate", "ReactSurface", "addTranslationsModule", "translations", "make"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/components/StatusBar/StatusBar.tsx":{"bytes":7772,"imports":[{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/StatusBar/index.ts":{"bytes":487,"imports":[{"path":"src/components/StatusBar/StatusBar.tsx","kind":"import-statement","original":"./StatusBar"}],"format":"esm"},"src/components/index.ts":{"bytes":477,"imports":[{"path":"src/components/StatusBar/index.ts","kind":"import-statement","original":"./StatusBar"}],"format":"esm"},"src/meta.ts":{"bytes":1555,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":2429,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/StatusBarPlugin.ts":{"bytes":1956,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":654,"imports":[{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/StatusBarPlugin.ts","kind":"import-statement","original":"./StatusBarPlugin"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6861},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["StatusBar","StatusBarPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/components/StatusBar/StatusBar.tsx":{"bytesInOutput":1918},"src/components/StatusBar/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":350},"src/StatusBarPlugin.ts":{"bytesInOutput":351},"src/translations.ts":{"bytesInOutput":606}},"bytes":3540}}}
|