@dxos/plugin-status-bar 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
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/components/index.mjs +50 -0
- package/dist/lib/browser/components/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +5 -81
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/components/index.mjs +52 -0
- package/dist/lib/node-esm/components/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +5 -81
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- 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.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.map +1 -1
- 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 +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- 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 +33 -21
- package/src/StatusBarPlugin.test.ts +23 -0
- package/src/StatusBarPlugin.ts +3 -2
- package/src/containers/StatusBarActions/StatusBarActions.stories.tsx +2 -1
- package/src/index.ts +7 -2
- package/src/meta.ts +1 -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.abd8ff62ef",
|
|
4
4
|
"description": "Status bar plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
|
+
"#plugin": "./src/StatusBarPlugin.ts",
|
|
16
17
|
"#capabilities": "./src/capabilities/index.ts",
|
|
17
18
|
"#components": "./src/components/index.ts",
|
|
18
19
|
"#containers": "./src/containers/index.ts",
|
|
19
|
-
"#meta": "./src/meta.ts"
|
|
20
|
+
"#meta": "./src/meta.ts",
|
|
21
|
+
"#translations": "./src/translations.ts"
|
|
20
22
|
},
|
|
21
23
|
"exports": {
|
|
22
24
|
".": {
|
|
@@ -24,12 +26,21 @@
|
|
|
24
26
|
"types": "./dist/types/src/index.d.ts",
|
|
25
27
|
"browser": "./dist/lib/browser/index.mjs",
|
|
26
28
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
29
|
+
},
|
|
30
|
+
"./components": {
|
|
31
|
+
"source": "./src/components/index.ts",
|
|
32
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
33
|
+
"browser": "./dist/lib/browser/components/index.mjs",
|
|
34
|
+
"node": "./dist/lib/node-esm/components/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./translations": {
|
|
37
|
+
"source": "./src/translations.ts",
|
|
38
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
39
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
40
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
27
41
|
}
|
|
28
42
|
},
|
|
29
43
|
"types": "dist/types/src/index.d.ts",
|
|
30
|
-
"typesVersions": {
|
|
31
|
-
"*": {}
|
|
32
|
-
},
|
|
33
44
|
"files": [
|
|
34
45
|
"dist",
|
|
35
46
|
"src"
|
|
@@ -40,33 +51,34 @@
|
|
|
40
51
|
"date-fns": "^3.6.0",
|
|
41
52
|
"effect": "3.20.0",
|
|
42
53
|
"react-resize-detector": "^11.0.1",
|
|
43
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/echo": "0.8.4-main.
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/react-client": "0.8.4-main.
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/react-ui-form": "0.8.4-main.
|
|
50
|
-
"@dxos/util": "0.8.4-main.
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
54
|
+
"@dxos/app-framework": "0.8.4-main.abd8ff62ef",
|
|
55
|
+
"@dxos/async": "0.8.4-main.abd8ff62ef",
|
|
56
|
+
"@dxos/echo": "0.8.4-main.abd8ff62ef",
|
|
57
|
+
"@dxos/plugin-observability": "0.8.4-main.abd8ff62ef",
|
|
58
|
+
"@dxos/react-client": "0.8.4-main.abd8ff62ef",
|
|
59
|
+
"@dxos/schema": "0.8.4-main.abd8ff62ef",
|
|
60
|
+
"@dxos/react-ui-form": "0.8.4-main.abd8ff62ef",
|
|
61
|
+
"@dxos/util": "0.8.4-main.abd8ff62ef",
|
|
62
|
+
"@dxos/operation": "0.8.4-main.abd8ff62ef",
|
|
63
|
+
"@dxos/app-toolkit": "0.8.4-main.abd8ff62ef"
|
|
53
64
|
},
|
|
54
65
|
"devDependencies": {
|
|
55
66
|
"@types/react": "~19.2.7",
|
|
56
67
|
"@types/react-dom": "~19.2.3",
|
|
57
68
|
"react": "~19.2.3",
|
|
58
69
|
"react-dom": "~19.2.3",
|
|
59
|
-
"vite": "^
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
70
|
+
"vite": "^8.0.10",
|
|
71
|
+
"@dxos/plugin-testing": "0.8.4-main.abd8ff62ef",
|
|
72
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
73
|
+
"@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
|
|
74
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
|
|
63
75
|
},
|
|
64
76
|
"peerDependencies": {
|
|
65
77
|
"effect": "3.20.0",
|
|
66
78
|
"react": "~19.2.3",
|
|
67
79
|
"react-dom": "~19.2.3",
|
|
68
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
69
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
80
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef",
|
|
81
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef"
|
|
70
82
|
},
|
|
71
83
|
"publishConfig": {
|
|
72
84
|
"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;
|
|
@@ -8,7 +8,8 @@ import { Config } from '@dxos/react-client';
|
|
|
8
8
|
import { withClientProvider } from '@dxos/react-client/testing';
|
|
9
9
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
10
10
|
|
|
11
|
-
import { translations } from '
|
|
11
|
+
import { translations } from '#translations';
|
|
12
|
+
|
|
12
13
|
import { StatusBarActions } from './StatusBarActions';
|
|
13
14
|
|
|
14
15
|
const meta: Meta<typeof StatusBarActions> = {
|
package/src/index.ts
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// TODO(wittjosiah): StatusBar should be factored out of plugin-status-bar into a shared UI package.
|
|
6
|
+
import { Plugin } from '@dxos/app-framework';
|
|
7
|
+
|
|
8
|
+
import { meta } from './meta';
|
|
9
|
+
|
|
6
10
|
export * from './meta';
|
|
7
|
-
|
|
11
|
+
|
|
12
|
+
export const StatusBarPlugin = Plugin.lazy(meta, () => import('#plugin'));
|
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: '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.
|