@dxos/plugin-status-bar 0.8.4-main.3f58842 → 0.8.4-main.5ea62a8

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.
Files changed (30) hide show
  1. package/dist/lib/browser/{chunk-32FBOE6I.mjs → chunk-26XJZ3A4.mjs} +3 -3
  2. package/dist/lib/browser/{chunk-32FBOE6I.mjs.map → chunk-26XJZ3A4.mjs.map} +3 -3
  3. package/dist/lib/browser/index.mjs +3 -3
  4. package/dist/lib/browser/index.mjs.map +3 -3
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/{react-surface-P7CEMQU3.mjs → react-surface-JXHQF4JY.mjs} +3 -3
  7. package/dist/lib/{node-esm/react-surface-U7DLJKU6.mjs.map → browser/react-surface-JXHQF4JY.mjs.map} +3 -3
  8. package/dist/lib/node-esm/{chunk-IQXGCBGU.mjs → chunk-GH4EGFJM.mjs} +3 -3
  9. package/dist/lib/node-esm/{chunk-IQXGCBGU.mjs.map → chunk-GH4EGFJM.mjs.map} +3 -3
  10. package/dist/lib/node-esm/index.mjs +3 -3
  11. package/dist/lib/node-esm/index.mjs.map +3 -3
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/{react-surface-U7DLJKU6.mjs → react-surface-N5JM5C3Z.mjs} +3 -3
  14. package/dist/lib/{browser/react-surface-P7CEMQU3.mjs.map → node-esm/react-surface-N5JM5C3Z.mjs.map} +3 -3
  15. package/dist/types/src/capabilities/index.d.ts +1 -1
  16. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  17. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  18. package/dist/types/src/components/StatusBar.d.ts.map +1 -1
  19. package/dist/types/src/components/StatusBar.stories.d.ts +14 -4
  20. package/dist/types/src/components/StatusBar.stories.d.ts.map +1 -1
  21. package/dist/types/src/components/StatusBarPanel.d.ts.map +1 -1
  22. package/dist/types/src/components/VersionNumber.d.ts.map +1 -1
  23. package/dist/types/tsconfig.tsbuildinfo +1 -1
  24. package/package.json +17 -16
  25. package/src/StatusBarPlugin.ts +1 -1
  26. package/src/capabilities/react-surface.tsx +1 -1
  27. package/src/components/StatusBar.stories.tsx +7 -5
  28. package/src/components/StatusBar.tsx +1 -1
  29. package/src/components/StatusBarPanel.tsx +3 -2
  30. package/src/components/VersionNumber.tsx +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-status-bar",
3
- "version": "0.8.4-main.3f58842",
3
+ "version": "0.8.4-main.5ea62a8",
4
4
  "description": "Status bar plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -10,6 +10,7 @@
10
10
  "type": "module",
11
11
  "exports": {
12
12
  ".": {
13
+ "source": "./src/index.ts",
13
14
  "types": "./dist/types/src/index.d.ts",
14
15
  "browser": "./dist/lib/browser/index.mjs",
15
16
  "node": "./dist/lib/node-esm/index.mjs"
@@ -29,33 +30,33 @@
29
30
  "@preact/signals-core": "^1.9.0",
30
31
  "@radix-ui/react-slot": "1.1.2",
31
32
  "date-fns": "^3.3.1",
32
- "effect": "3.17.0",
33
+ "effect": "3.17.7",
33
34
  "react-resize-detector": "^11.0.1",
34
- "@dxos/app-framework": "0.8.4-main.3f58842",
35
- "@dxos/async": "0.8.4-main.3f58842",
36
- "@dxos/echo": "0.8.4-main.3f58842",
37
- "@dxos/echo-schema": "0.8.4-main.3f58842",
38
- "@dxos/plugin-observability": "0.8.4-main.3f58842",
39
- "@dxos/react-ui-form": "0.8.4-main.3f58842",
40
- "@dxos/react-client": "0.8.4-main.3f58842",
41
- "@dxos/schema": "0.8.4-main.3f58842"
35
+ "@dxos/app-framework": "0.8.4-main.5ea62a8",
36
+ "@dxos/async": "0.8.4-main.5ea62a8",
37
+ "@dxos/echo": "0.8.4-main.5ea62a8",
38
+ "@dxos/plugin-observability": "0.8.4-main.5ea62a8",
39
+ "@dxos/echo-schema": "0.8.4-main.5ea62a8",
40
+ "@dxos/react-ui-form": "0.8.4-main.5ea62a8",
41
+ "@dxos/react-client": "0.8.4-main.5ea62a8",
42
+ "@dxos/schema": "0.8.4-main.5ea62a8"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@types/react": "~18.2.0",
45
46
  "@types/react-dom": "~18.2.0",
46
47
  "react": "~18.2.0",
47
48
  "react-dom": "~18.2.0",
48
- "vite": "5.4.7",
49
- "@dxos/react-ui": "0.8.4-main.3f58842",
50
- "@dxos/storybook-utils": "0.8.4-main.3f58842",
51
- "@dxos/react-ui-theme": "0.8.4-main.3f58842"
49
+ "vite": "7.1.1",
50
+ "@dxos/react-ui": "0.8.4-main.5ea62a8",
51
+ "@dxos/storybook-utils": "0.8.4-main.5ea62a8",
52
+ "@dxos/react-ui-theme": "0.8.4-main.5ea62a8"
52
53
  },
53
54
  "peerDependencies": {
54
55
  "effect": "^3.13.3",
55
56
  "react": "~18.2.0",
56
57
  "react-dom": "~18.2.0",
57
- "@dxos/react-ui": "0.8.4-main.3f58842",
58
- "@dxos/react-ui-theme": "0.8.4-main.3f58842"
58
+ "@dxos/react-ui": "0.8.4-main.5ea62a8",
59
+ "@dxos/react-ui-theme": "0.8.4-main.5ea62a8"
59
60
  },
60
61
  "publishConfig": {
61
62
  "access": "public"
@@ -2,7 +2,7 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';
5
+ import { Capabilities, Events, contributes, defineModule, definePlugin } from '@dxos/app-framework';
6
6
 
7
7
  import { ReactSurface } from './capabilities';
8
8
  import { meta } from './meta';
@@ -4,7 +4,7 @@
4
4
 
5
5
  import React from 'react';
6
6
 
7
- import { Capabilities, contributes, createSurface, Surface } from '@dxos/app-framework';
7
+ import { Capabilities, Surface, contributes, createSurface } from '@dxos/app-framework';
8
8
 
9
9
  import { StatusBarActions, StatusBarPanel, VersionNumber } from '../components';
10
10
  import { meta } from '../meta';
@@ -4,7 +4,7 @@
4
4
 
5
5
  import '@dxos-theme';
6
6
 
7
- import { type Meta } from '@storybook/react-vite';
7
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
8
8
  import React from 'react';
9
9
 
10
10
  import { Icon } from '@dxos/react-ui';
@@ -33,9 +33,7 @@ export const DefaultStory = () => (
33
33
  </div>
34
34
  );
35
35
 
36
- export const Default = {};
37
-
38
- const meta: Meta<typeof StatusBar> = {
36
+ const meta = {
39
37
  title: 'plugins/plugin-status/StatusBar',
40
38
  component: StatusBar as any,
41
39
  render: DefaultStory,
@@ -43,6 +41,10 @@ const meta: Meta<typeof StatusBar> = {
43
41
  parameters: {
44
42
  chromatic: { disableSnapshot: false },
45
43
  },
46
- };
44
+ } satisfies Meta<typeof StatusBar>;
47
45
 
48
46
  export default meta;
47
+
48
+ type Story = StoryObj<typeof meta>;
49
+
50
+ export const Default: Story = {};
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { Slot } from '@radix-ui/react-slot';
6
- import React, { type ComponentPropsWithRef, forwardRef, type PropsWithChildren, type ReactNode } from 'react';
6
+ import React, { type ComponentPropsWithRef, type PropsWithChildren, type ReactNode, forwardRef } from 'react';
7
7
 
8
8
  import { type ThemedClassName } from '@dxos/react-ui';
9
9
  import { mx } from '@dxos/react-ui-theme';
@@ -8,9 +8,10 @@ import { Surface } from '@dxos/app-framework';
8
8
  import { useConfig } from '@dxos/react-client';
9
9
  import { Icon, Popover, useTranslation } from '@dxos/react-ui';
10
10
 
11
+ import { meta } from '../meta';
12
+
11
13
  import { StatusBar } from './StatusBar';
12
14
  import { VersionNumber } from './VersionNumber';
13
- import { meta } from '../meta';
14
15
 
15
16
  export const StatusBarActions = () => {
16
17
  const { t } = useTranslation(meta.id);
@@ -23,7 +24,7 @@ export const StatusBarActions = () => {
23
24
  <StatusBar.Button asChild>
24
25
  <a href='https://dxos.org/discord' target='_blank' rel='noopener noreferrer'>
25
26
  <Icon icon='ph--discord-logo--regular' size={4} />
26
- <StatusBar.Text classNames='hidden sm:block'>{t('discord label2')}</StatusBar.Text>
27
+ <StatusBar.Text classNames='hidden sm:block'>{t('discord label')}</StatusBar.Text>
27
28
  </a>
28
29
  </StatusBar.Button>
29
30
  <StatusBar.Button asChild>
@@ -6,11 +6,12 @@ import { formatDistance } from 'date-fns/formatDistance';
6
6
  import React from 'react';
7
7
 
8
8
  import { useConfig } from '@dxos/react-client';
9
- import { Link, Message, Popover, Trans, useTranslation, Icon } from '@dxos/react-ui';
9
+ import { Icon, Link, Message, Popover, Trans, useTranslation } from '@dxos/react-ui';
10
10
 
11
- import { StatusBar } from './StatusBar';
12
11
  import { meta } from '../meta';
13
12
 
13
+ import { StatusBar } from './StatusBar';
14
+
14
15
  const repo = 'https://github.com/dxos/dxos';
15
16
 
16
17
  const VERSION_REGEX = /([\d.]+)/;