@dxos/plugin-status-bar 0.8.2-main.fbd8ed0 → 0.8.2-staging.4d6ad0f
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/chunk-P5BV6L2J.mjs +253 -0
- package/dist/lib/browser/chunk-P5BV6L2J.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +16 -218
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-FCB6CYVQ.mjs +38 -0
- package/dist/lib/browser/react-surface-FCB6CYVQ.mjs.map +7 -0
- package/dist/lib/node/chunk-4IGLOCOS.cjs +284 -0
- package/dist/lib/node/chunk-4IGLOCOS.cjs.map +7 -0
- package/dist/lib/node/index.cjs +19 -218
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react-surface-KZY6SOXE.cjs +61 -0
- package/dist/lib/node/react-surface-KZY6SOXE.cjs.map +7 -0
- package/dist/lib/node-esm/chunk-5Q57YPD6.mjs +255 -0
- package/dist/lib/node-esm/chunk-5Q57YPD6.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +16 -219
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-YKOZ4BU7.mjs +39 -0
- package/dist/lib/node-esm/react-surface-YKOZ4BU7.mjs.map +7 -0
- package/dist/types/src/StatusBarPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +4 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/package.json +16 -15
- package/src/StatusBarPlugin.ts +23 -0
- package/src/capabilities/index.ts +7 -0
- package/src/capabilities/react-surface.tsx +34 -0
- package/src/components/index.ts +1 -0
- package/src/StatusBarPlugin.tsx +0 -56
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
// packages/plugins/plugin-status-bar/src/components/StatusBar.tsx
|
|
2
|
+
import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import React, { forwardRef } from "react";
|
|
5
|
+
import { mx } from "@dxos/react-ui-theme";
|
|
6
|
+
var StatusBarText = /* @__PURE__ */ forwardRef(({ classNames, children }, forwardedRef) => {
|
|
7
|
+
var _effect = _useSignals();
|
|
8
|
+
try {
|
|
9
|
+
return /* @__PURE__ */ React.createElement("span", {
|
|
10
|
+
className: mx(classNames),
|
|
11
|
+
ref: forwardedRef
|
|
12
|
+
}, children);
|
|
13
|
+
} finally {
|
|
14
|
+
_effect.f();
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
var StatusBarButton = /* @__PURE__ */ forwardRef(({ classNames, children, asChild, ...props }, forwardedRef) => {
|
|
18
|
+
var _effect = _useSignals();
|
|
19
|
+
try {
|
|
20
|
+
const classes = mx("flex items-center justify-center gap-2 p-1 px-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);
|
|
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
|
+
} finally {
|
|
32
|
+
_effect.f();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
var StatusBarItem = /* @__PURE__ */ forwardRef(({ classNames, children, ...props }, forwardedRef) => {
|
|
36
|
+
var _effect = _useSignals();
|
|
37
|
+
try {
|
|
38
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
39
|
+
role: "menuitem",
|
|
40
|
+
className: mx("flex items-center justify-center gap-2 p-1 px-2 rounded-sm select-none", classNames),
|
|
41
|
+
ref: forwardedRef,
|
|
42
|
+
...props
|
|
43
|
+
}, children);
|
|
44
|
+
} finally {
|
|
45
|
+
_effect.f();
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var StartContent = /* @__PURE__ */ forwardRef(({ classNames, children }, forwardedRef) => {
|
|
49
|
+
var _effect = _useSignals();
|
|
50
|
+
try {
|
|
51
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
52
|
+
role: "none",
|
|
53
|
+
className: mx("flex-grow flex items-center space-x-2", classNames),
|
|
54
|
+
ref: forwardedRef
|
|
55
|
+
}, children);
|
|
56
|
+
} finally {
|
|
57
|
+
_effect.f();
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
var EndContent = /* @__PURE__ */ forwardRef(({ classNames, children }, forwardedRef) => {
|
|
61
|
+
var _effect = _useSignals();
|
|
62
|
+
try {
|
|
63
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
64
|
+
role: "none",
|
|
65
|
+
className: mx("flex-grow flex items-center justify-end", classNames),
|
|
66
|
+
ref: forwardedRef
|
|
67
|
+
}, children);
|
|
68
|
+
} finally {
|
|
69
|
+
_effect.f();
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
var StatusBar = {
|
|
73
|
+
Text: StatusBarText,
|
|
74
|
+
Item: StatusBarItem,
|
|
75
|
+
Button: StatusBarButton,
|
|
76
|
+
StartContent,
|
|
77
|
+
EndContent
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// packages/plugins/plugin-status-bar/src/meta.ts
|
|
81
|
+
var STATUS_BAR_PLUGIN = "dxos.org/plugin/status-bar";
|
|
82
|
+
var meta = {
|
|
83
|
+
id: STATUS_BAR_PLUGIN,
|
|
84
|
+
name: "Status Bar",
|
|
85
|
+
description: "Display a bar with status and actions.",
|
|
86
|
+
icon: "ph--info--regular"
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
// packages/plugins/plugin-status-bar/src/components/VersionNumber.tsx
|
|
90
|
+
import { useSignals as _useSignals2 } from "@preact-signals/safe-react/tracking";
|
|
91
|
+
import { formatDistance } from "date-fns/formatDistance";
|
|
92
|
+
import React2 from "react";
|
|
93
|
+
import { useConfig } from "@dxos/react-client";
|
|
94
|
+
import { Link, Message, Popover, Trans, useTranslation, Icon } from "@dxos/react-ui";
|
|
95
|
+
var repo = "https://github.com/dxos/dxos";
|
|
96
|
+
var VERSION_REGEX = /([\d.]+)/;
|
|
97
|
+
var VersionNumber = () => {
|
|
98
|
+
var _effect = _useSignals2();
|
|
99
|
+
try {
|
|
100
|
+
const { t } = useTranslation(STATUS_BAR_PLUGIN);
|
|
101
|
+
const config = useConfig();
|
|
102
|
+
const { version, timestamp, commitHash } = config.values.runtime?.app?.build ?? {};
|
|
103
|
+
const [_, v] = version?.match(VERSION_REGEX) ?? [];
|
|
104
|
+
const isLabs = config.values.runtime?.app?.env?.DX_LABS;
|
|
105
|
+
const releaseUrl = config.values.runtime?.app?.env?.DX_ENVIRONMENT === "production" ? `${repo}/releases/tag/v${version}` : `${repo}/commit/${commitHash}`;
|
|
106
|
+
const previewUrl = "https://docs.dxos.org/composer#technology-preview";
|
|
107
|
+
return /* @__PURE__ */ React2.createElement(Popover.Root, null, /* @__PURE__ */ React2.createElement(Popover.Trigger, {
|
|
108
|
+
asChild: true
|
|
109
|
+
}, /* @__PURE__ */ React2.createElement(StatusBar.Button, {
|
|
110
|
+
classNames: "text-xs"
|
|
111
|
+
}, isLabs ? version : v)), /* @__PURE__ */ React2.createElement(Popover.Portal, null, /* @__PURE__ */ React2.createElement(Popover.Content, {
|
|
112
|
+
side: "top",
|
|
113
|
+
role: "message",
|
|
114
|
+
classNames: "z-[12] bg-warning-500 max-is-[min(calc(100vw-16px),40ch)]"
|
|
115
|
+
}, /* @__PURE__ */ React2.createElement(Message.Root, {
|
|
116
|
+
valence: "warning",
|
|
117
|
+
className: "rounded-be-none p-5"
|
|
118
|
+
}, /* @__PURE__ */ React2.createElement(Message.Title, null, /* @__PURE__ */ React2.createElement(Icon, {
|
|
119
|
+
icon: "ph--warning--duotone",
|
|
120
|
+
size: 6,
|
|
121
|
+
classNames: "inline mie-2"
|
|
122
|
+
}), /* @__PURE__ */ React2.createElement("span", null, t("warning title"))), /* @__PURE__ */ React2.createElement(Message.Body, null, t("technology preview message"), /* @__PURE__ */ React2.createElement("br", null), /* @__PURE__ */ React2.createElement(Link, {
|
|
123
|
+
href: previewUrl,
|
|
124
|
+
target: "_blank",
|
|
125
|
+
rel: "noreferrer",
|
|
126
|
+
variant: "neutral"
|
|
127
|
+
}, t("learn more label"), /* @__PURE__ */ React2.createElement(Icon, {
|
|
128
|
+
icon: "ph--arrow-square-out--bold",
|
|
129
|
+
classNames: "inline mis-1"
|
|
130
|
+
})))), /* @__PURE__ */ React2.createElement("div", {
|
|
131
|
+
role: "none",
|
|
132
|
+
className: "plb-4 pli-5 space-b-2 text-baseText"
|
|
133
|
+
}, timestamp && /* @__PURE__ */ React2.createElement("p", null, t("released message", {
|
|
134
|
+
released: formatDistance(new Date(timestamp), /* @__PURE__ */ new Date(), {
|
|
135
|
+
addSuffix: true
|
|
136
|
+
})
|
|
137
|
+
}), /* @__PURE__ */ React2.createElement("br", null), /* @__PURE__ */ React2.createElement(Link, {
|
|
138
|
+
href: releaseUrl,
|
|
139
|
+
target: "_blank",
|
|
140
|
+
rel: "noreferrer",
|
|
141
|
+
variant: "neutral"
|
|
142
|
+
}, t("see release label"), /* @__PURE__ */ React2.createElement(Icon, {
|
|
143
|
+
icon: "ph--arrow-square-out--bold",
|
|
144
|
+
classNames: "inline mis-1"
|
|
145
|
+
}))), /* @__PURE__ */ React2.createElement("p", null, /* @__PURE__ */ React2.createElement(Trans, {
|
|
146
|
+
t,
|
|
147
|
+
i18nKey: "powered by dxos message",
|
|
148
|
+
components: {
|
|
149
|
+
dxos: /* @__PURE__ */ React2.createElement(Link, {
|
|
150
|
+
href: "https://dxos.org",
|
|
151
|
+
target: "_blank",
|
|
152
|
+
rel: "noreferrer",
|
|
153
|
+
variant: "neutral"
|
|
154
|
+
})
|
|
155
|
+
}
|
|
156
|
+
}))), /* @__PURE__ */ React2.createElement(Popover.Arrow, null))));
|
|
157
|
+
} finally {
|
|
158
|
+
_effect.f();
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
// packages/plugins/plugin-status-bar/src/components/StatusBarPanel.tsx
|
|
163
|
+
import { useSignals as _useSignals3 } from "@preact-signals/safe-react/tracking";
|
|
164
|
+
import React3, { useState } from "react";
|
|
165
|
+
import { Surface } from "@dxos/app-framework";
|
|
166
|
+
import { useConfig as useConfig2 } from "@dxos/react-client";
|
|
167
|
+
import { Icon as Icon2, Popover as Popover2, useTranslation as useTranslation2 } from "@dxos/react-ui";
|
|
168
|
+
var StatusBarActions = () => {
|
|
169
|
+
var _effect = _useSignals3();
|
|
170
|
+
try {
|
|
171
|
+
const { t } = useTranslation2(STATUS_BAR_PLUGIN);
|
|
172
|
+
const [open, setOpen] = useState(false);
|
|
173
|
+
return /* @__PURE__ */ React3.createElement(Popover2.Root, {
|
|
174
|
+
open,
|
|
175
|
+
onOpenChange: setOpen
|
|
176
|
+
}, /* @__PURE__ */ React3.createElement(EnvironmentLabel, null), /* @__PURE__ */ React3.createElement(VersionNumber, null), /* @__PURE__ */ React3.createElement(StatusBar.Button, {
|
|
177
|
+
asChild: true
|
|
178
|
+
}, /* @__PURE__ */ React3.createElement("a", {
|
|
179
|
+
href: "https://dxos.org/discord",
|
|
180
|
+
target: "_blank",
|
|
181
|
+
rel: "noopener noreferrer"
|
|
182
|
+
}, /* @__PURE__ */ React3.createElement(Icon2, {
|
|
183
|
+
icon: "ph--discord-logo--regular",
|
|
184
|
+
size: 4
|
|
185
|
+
}), /* @__PURE__ */ React3.createElement(StatusBar.Text, {
|
|
186
|
+
classNames: "hidden sm:block"
|
|
187
|
+
}, t("discord label")))), /* @__PURE__ */ React3.createElement(StatusBar.Button, {
|
|
188
|
+
asChild: true
|
|
189
|
+
}, /* @__PURE__ */ React3.createElement("a", {
|
|
190
|
+
href: "https://github.com/dxos/dxos",
|
|
191
|
+
target: "_blank",
|
|
192
|
+
rel: "noopener noreferrer"
|
|
193
|
+
}, /* @__PURE__ */ React3.createElement(Icon2, {
|
|
194
|
+
icon: "ph--github-logo--regular",
|
|
195
|
+
size: 4
|
|
196
|
+
}), /* @__PURE__ */ React3.createElement(StatusBar.Text, {
|
|
197
|
+
classNames: "hidden sm:block"
|
|
198
|
+
}, t("github label")))));
|
|
199
|
+
} finally {
|
|
200
|
+
_effect.f();
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
var StatusBarPanel = () => {
|
|
204
|
+
var _effect = _useSignals3();
|
|
205
|
+
try {
|
|
206
|
+
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(StatusBarActions, null), /* @__PURE__ */ React3.createElement("span", {
|
|
207
|
+
role: "separator",
|
|
208
|
+
className: "grow"
|
|
209
|
+
}), /* @__PURE__ */ React3.createElement(Surface, {
|
|
210
|
+
role: "status"
|
|
211
|
+
}));
|
|
212
|
+
} finally {
|
|
213
|
+
_effect.f();
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
var ENV_LABELS = {
|
|
217
|
+
"edge-dev": "Dev",
|
|
218
|
+
"edge-main": "Main",
|
|
219
|
+
"edge-labs": "Labs",
|
|
220
|
+
"edge-production": "Production"
|
|
221
|
+
};
|
|
222
|
+
var EnvironmentLabel = () => {
|
|
223
|
+
var _effect = _useSignals3();
|
|
224
|
+
try {
|
|
225
|
+
const config = useConfig2();
|
|
226
|
+
const edgeUrl = config.values.runtime?.services?.edge?.url;
|
|
227
|
+
if (!edgeUrl) {
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
const part = new URL(edgeUrl).host.split(".")[0];
|
|
231
|
+
const edgeEnv = ENV_LABELS[part];
|
|
232
|
+
if (!edgeEnv) {
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
return /* @__PURE__ */ React3.createElement(StatusBar.Item, null, /* @__PURE__ */ React3.createElement(StatusBar.Text, {
|
|
236
|
+
classNames: "text-xs text-subdued border border-separator rounded-full px-1"
|
|
237
|
+
}, /* @__PURE__ */ React3.createElement("span", {
|
|
238
|
+
title: edgeEnv
|
|
239
|
+
}, edgeEnv[0])));
|
|
240
|
+
} finally {
|
|
241
|
+
_effect.f();
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
export {
|
|
246
|
+
StatusBar,
|
|
247
|
+
STATUS_BAR_PLUGIN,
|
|
248
|
+
meta,
|
|
249
|
+
VersionNumber,
|
|
250
|
+
StatusBarActions,
|
|
251
|
+
StatusBarPanel
|
|
252
|
+
};
|
|
253
|
+
//# sourceMappingURL=chunk-P5BV6L2J.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
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, forwardRef, type PropsWithChildren, type ReactNode } from 'react';\n\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { mx } from '@dxos/react-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 px-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 px-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 PluginMeta } from '@dxos/app-framework';\n\nexport const STATUS_BAR_PLUGIN = 'dxos.org/plugin/status-bar';\n\nexport const meta: PluginMeta = {\n id: STATUS_BAR_PLUGIN,\n name: 'Status Bar',\n description: 'Display a bar with status and actions.',\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 { Link, Message, Popover, Trans, useTranslation, Icon } from '@dxos/react-ui';\n\nimport { StatusBar } from './StatusBar';\nimport { STATUS_BAR_PLUGIN } from '../meta';\n\nconst repo = 'https://github.com/dxos/dxos';\n\nconst VERSION_REGEX = /([\\d.]+)/;\n\nexport const VersionNumber = () => {\n const { t } = useTranslation(STATUS_BAR_PLUGIN);\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' className='rounded-be-none p-5'>\n <Message.Title>\n <Icon icon='ph--warning--duotone' size={6} classNames='inline mie-2' />\n <span>{t('warning title')}</span>\n </Message.Title>\n <Message.Body>\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.Body>\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';\nimport { useConfig } from '@dxos/react-client';\nimport { Icon, Popover, useTranslation } from '@dxos/react-ui';\n\nimport { StatusBar } from './StatusBar';\nimport { VersionNumber } from './VersionNumber';\nimport { STATUS_BAR_PLUGIN } from '../meta';\n\nexport const StatusBarActions = () => {\n const { t } = useTranslation(STATUS_BAR_PLUGIN);\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 px-1'>\n <span title={edgeEnv}>{edgeEnv[0]}</span>\n </StatusBar.Text>\n </StatusBar.Item>\n );\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
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", "STATUS_BAR_PLUGIN", "meta", "id", "name", "description", "icon", "formatDistance", "React", "useConfig", "Link", "Message", "Popover", "Trans", "useTranslation", "Icon", "repo", "VERSION_REGEX", "VersionNumber", "t", "useTranslation", "STATUS_BAR_PLUGIN", "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", "className", "Title", "Icon", "icon", "size", "span", "Body", "br", "Link", "href", "target", "rel", "variant", "div", "p", "released", "formatDistance", "Date", "addSuffix", "Trans", "i18nKey", "components", "dxos", "Arrow", "React", "useState", "Surface", "useConfig", "Icon", "Popover", "useTranslation", "StatusBarActions", "t", "useTranslation", "STATUS_BAR_PLUGIN", "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
|
+
}
|
|
@@ -1,198 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
var StatusBarButton = /* @__PURE__ */ forwardRef(({ classNames, children, asChild, ...props }, forwardedRef) => {
|
|
10
|
-
const classes = mx("flex items-center justify-center gap-2 p-1 px-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 px-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
|
-
// packages/plugins/plugin-status-bar/src/components/StatusBarPanel.tsx
|
|
47
|
-
import React3, { useState } from "react";
|
|
48
|
-
import { Surface } from "@dxos/app-framework";
|
|
49
|
-
import { useConfig as useConfig2 } from "@dxos/react-client";
|
|
50
|
-
import { Icon as Icon2, Popover as Popover2, useTranslation as useTranslation2 } from "@dxos/react-ui";
|
|
51
|
-
|
|
52
|
-
// packages/plugins/plugin-status-bar/src/components/VersionNumber.tsx
|
|
53
|
-
import { formatDistance } from "date-fns/formatDistance";
|
|
54
|
-
import React2 from "react";
|
|
55
|
-
import { useConfig } from "@dxos/react-client";
|
|
56
|
-
import { Link, Message, Popover, Trans, useTranslation, Icon } from "@dxos/react-ui";
|
|
57
|
-
|
|
58
|
-
// packages/plugins/plugin-status-bar/src/meta.ts
|
|
59
|
-
var STATUS_BAR_PLUGIN = "dxos.org/plugin/status-bar";
|
|
60
|
-
var meta = {
|
|
61
|
-
id: STATUS_BAR_PLUGIN,
|
|
62
|
-
name: "Status Bar",
|
|
63
|
-
description: "Display a bar with status and actions.",
|
|
64
|
-
icon: "ph--info--regular"
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
// packages/plugins/plugin-status-bar/src/components/VersionNumber.tsx
|
|
68
|
-
var repo = "https://github.com/dxos/dxos";
|
|
69
|
-
var VERSION_REGEX = /([\d.]+)/;
|
|
70
|
-
var VersionNumber = () => {
|
|
71
|
-
const { t } = useTranslation(STATUS_BAR_PLUGIN);
|
|
72
|
-
const config = useConfig();
|
|
73
|
-
const { version, timestamp, commitHash } = config.values.runtime?.app?.build ?? {};
|
|
74
|
-
const [_, v] = version?.match(VERSION_REGEX) ?? [];
|
|
75
|
-
const isLabs = config.values.runtime?.app?.env?.DX_LABS;
|
|
76
|
-
const releaseUrl = config.values.runtime?.app?.env?.DX_ENVIRONMENT === "production" ? `${repo}/releases/tag/v${version}` : `${repo}/commit/${commitHash}`;
|
|
77
|
-
const previewUrl = "https://docs.dxos.org/composer#technology-preview";
|
|
78
|
-
return /* @__PURE__ */ React2.createElement(Popover.Root, null, /* @__PURE__ */ React2.createElement(Popover.Trigger, {
|
|
79
|
-
asChild: true
|
|
80
|
-
}, /* @__PURE__ */ React2.createElement(StatusBar.Button, {
|
|
81
|
-
classNames: "text-xs"
|
|
82
|
-
}, isLabs ? version : v)), /* @__PURE__ */ React2.createElement(Popover.Portal, null, /* @__PURE__ */ React2.createElement(Popover.Content, {
|
|
83
|
-
side: "top",
|
|
84
|
-
role: "message",
|
|
85
|
-
classNames: "z-[12] bg-warning-500 max-is-[min(calc(100vw-16px),40ch)]"
|
|
86
|
-
}, /* @__PURE__ */ React2.createElement(Message.Root, {
|
|
87
|
-
valence: "warning",
|
|
88
|
-
className: "rounded-be-none p-5"
|
|
89
|
-
}, /* @__PURE__ */ React2.createElement(Message.Title, null, /* @__PURE__ */ React2.createElement(Icon, {
|
|
90
|
-
icon: "ph--warning--duotone",
|
|
91
|
-
size: 6,
|
|
92
|
-
classNames: "inline mie-2"
|
|
93
|
-
}), /* @__PURE__ */ React2.createElement("span", null, t("warning title"))), /* @__PURE__ */ React2.createElement(Message.Body, null, t("technology preview message"), /* @__PURE__ */ React2.createElement("br", null), /* @__PURE__ */ React2.createElement(Link, {
|
|
94
|
-
href: previewUrl,
|
|
95
|
-
target: "_blank",
|
|
96
|
-
rel: "noreferrer",
|
|
97
|
-
variant: "neutral"
|
|
98
|
-
}, t("learn more label"), /* @__PURE__ */ React2.createElement(Icon, {
|
|
99
|
-
icon: "ph--arrow-square-out--bold",
|
|
100
|
-
classNames: "inline mis-1"
|
|
101
|
-
})))), /* @__PURE__ */ React2.createElement("div", {
|
|
102
|
-
role: "none",
|
|
103
|
-
className: "plb-4 pli-5 space-b-2 text-baseText"
|
|
104
|
-
}, timestamp && /* @__PURE__ */ React2.createElement("p", null, t("released message", {
|
|
105
|
-
released: formatDistance(new Date(timestamp), /* @__PURE__ */ new Date(), {
|
|
106
|
-
addSuffix: true
|
|
107
|
-
})
|
|
108
|
-
}), /* @__PURE__ */ React2.createElement("br", null), /* @__PURE__ */ React2.createElement(Link, {
|
|
109
|
-
href: releaseUrl,
|
|
110
|
-
target: "_blank",
|
|
111
|
-
rel: "noreferrer",
|
|
112
|
-
variant: "neutral"
|
|
113
|
-
}, t("see release label"), /* @__PURE__ */ React2.createElement(Icon, {
|
|
114
|
-
icon: "ph--arrow-square-out--bold",
|
|
115
|
-
classNames: "inline mis-1"
|
|
116
|
-
}))), /* @__PURE__ */ React2.createElement("p", null, /* @__PURE__ */ React2.createElement(Trans, {
|
|
117
|
-
t,
|
|
118
|
-
i18nKey: "powered by dxos message",
|
|
119
|
-
components: {
|
|
120
|
-
dxos: /* @__PURE__ */ React2.createElement(Link, {
|
|
121
|
-
href: "https://dxos.org",
|
|
122
|
-
target: "_blank",
|
|
123
|
-
rel: "noreferrer",
|
|
124
|
-
variant: "neutral"
|
|
125
|
-
})
|
|
126
|
-
}
|
|
127
|
-
}))), /* @__PURE__ */ React2.createElement(Popover.Arrow, null))));
|
|
128
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
STATUS_BAR_PLUGIN,
|
|
3
|
+
StatusBar,
|
|
4
|
+
StatusBarActions,
|
|
5
|
+
StatusBarPanel,
|
|
6
|
+
VersionNumber,
|
|
7
|
+
meta
|
|
8
|
+
} from "./chunk-P5BV6L2J.mjs";
|
|
129
9
|
|
|
130
|
-
// packages/plugins/plugin-status-bar/src/
|
|
131
|
-
|
|
132
|
-
const { t } = useTranslation2(STATUS_BAR_PLUGIN);
|
|
133
|
-
const [open, setOpen] = useState(false);
|
|
134
|
-
return /* @__PURE__ */ React3.createElement(Popover2.Root, {
|
|
135
|
-
open,
|
|
136
|
-
onOpenChange: setOpen
|
|
137
|
-
}, /* @__PURE__ */ React3.createElement(EnvironmentLabel, null), /* @__PURE__ */ React3.createElement(VersionNumber, null), /* @__PURE__ */ React3.createElement(StatusBar.Button, {
|
|
138
|
-
asChild: true
|
|
139
|
-
}, /* @__PURE__ */ React3.createElement("a", {
|
|
140
|
-
href: "https://dxos.org/discord",
|
|
141
|
-
target: "_blank",
|
|
142
|
-
rel: "noopener noreferrer"
|
|
143
|
-
}, /* @__PURE__ */ React3.createElement(Icon2, {
|
|
144
|
-
icon: "ph--discord-logo--regular",
|
|
145
|
-
size: 4
|
|
146
|
-
}), /* @__PURE__ */ React3.createElement(StatusBar.Text, {
|
|
147
|
-
classNames: "hidden sm:block"
|
|
148
|
-
}, t("discord label")))), /* @__PURE__ */ React3.createElement(StatusBar.Button, {
|
|
149
|
-
asChild: true
|
|
150
|
-
}, /* @__PURE__ */ React3.createElement("a", {
|
|
151
|
-
href: "https://github.com/dxos/dxos",
|
|
152
|
-
target: "_blank",
|
|
153
|
-
rel: "noopener noreferrer"
|
|
154
|
-
}, /* @__PURE__ */ React3.createElement(Icon2, {
|
|
155
|
-
icon: "ph--github-logo--regular",
|
|
156
|
-
size: 4
|
|
157
|
-
}), /* @__PURE__ */ React3.createElement(StatusBar.Text, {
|
|
158
|
-
classNames: "hidden sm:block"
|
|
159
|
-
}, t("github label")))));
|
|
160
|
-
};
|
|
161
|
-
var StatusBarPanel = () => {
|
|
162
|
-
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(StatusBarActions, null), /* @__PURE__ */ React3.createElement("span", {
|
|
163
|
-
role: "separator",
|
|
164
|
-
className: "grow"
|
|
165
|
-
}), /* @__PURE__ */ React3.createElement(Surface, {
|
|
166
|
-
role: "status"
|
|
167
|
-
}));
|
|
168
|
-
};
|
|
169
|
-
var ENV_LABELS = {
|
|
170
|
-
"edge-dev": "Dev",
|
|
171
|
-
"edge-main": "Main",
|
|
172
|
-
"edge-labs": "Labs",
|
|
173
|
-
"edge-production": "Production"
|
|
174
|
-
};
|
|
175
|
-
var EnvironmentLabel = () => {
|
|
176
|
-
const config = useConfig2();
|
|
177
|
-
const edgeUrl = config.values.runtime?.services?.edge?.url;
|
|
178
|
-
if (!edgeUrl) {
|
|
179
|
-
return null;
|
|
180
|
-
}
|
|
181
|
-
const part = new URL(edgeUrl).host.split(".")[0];
|
|
182
|
-
const edgeEnv = ENV_LABELS[part];
|
|
183
|
-
if (!edgeEnv) {
|
|
184
|
-
return null;
|
|
185
|
-
}
|
|
186
|
-
return /* @__PURE__ */ React3.createElement(StatusBar.Item, null, /* @__PURE__ */ React3.createElement(StatusBar.Text, {
|
|
187
|
-
classNames: "text-xs text-subdued border border-separator rounded-full px-1"
|
|
188
|
-
}, /* @__PURE__ */ React3.createElement("span", {
|
|
189
|
-
title: edgeEnv
|
|
190
|
-
}, edgeEnv[0])));
|
|
191
|
-
};
|
|
10
|
+
// packages/plugins/plugin-status-bar/src/StatusBarPlugin.ts
|
|
11
|
+
import { Capabilities, contributes, defineModule, definePlugin, Events } from "@dxos/app-framework";
|
|
192
12
|
|
|
193
|
-
// packages/plugins/plugin-status-bar/src/
|
|
194
|
-
import
|
|
195
|
-
|
|
13
|
+
// packages/plugins/plugin-status-bar/src/capabilities/index.ts
|
|
14
|
+
import { lazy } from "@dxos/app-framework";
|
|
15
|
+
var ReactSurface = lazy(() => import("./react-surface-FCB6CYVQ.mjs"));
|
|
196
16
|
|
|
197
17
|
// packages/plugins/plugin-status-bar/src/translations.ts
|
|
198
18
|
var entry = (translation) => ({
|
|
@@ -216,7 +36,7 @@ var translations_default = [
|
|
|
216
36
|
translations
|
|
217
37
|
];
|
|
218
38
|
|
|
219
|
-
// packages/plugins/plugin-status-bar/src/StatusBarPlugin.
|
|
39
|
+
// packages/plugins/plugin-status-bar/src/StatusBarPlugin.ts
|
|
220
40
|
var StatusBarPlugin = () => definePlugin(meta, [
|
|
221
41
|
defineModule({
|
|
222
42
|
id: `${meta.id}/module/translations`,
|
|
@@ -226,30 +46,7 @@ var StatusBarPlugin = () => definePlugin(meta, [
|
|
|
226
46
|
defineModule({
|
|
227
47
|
id: `${meta.id}/module/react-surface`,
|
|
228
48
|
activatesOn: Events.SetupReactSurface,
|
|
229
|
-
activate:
|
|
230
|
-
createSurface({
|
|
231
|
-
id: meta.id,
|
|
232
|
-
role: "status-bar",
|
|
233
|
-
component: () => /* @__PURE__ */ React4.createElement(StatusBarPanel, null)
|
|
234
|
-
}),
|
|
235
|
-
createSurface({
|
|
236
|
-
id: meta.id,
|
|
237
|
-
role: "status-bar--r0-footer",
|
|
238
|
-
component: () => /* @__PURE__ */ React4.createElement(Surface2, {
|
|
239
|
-
role: "status"
|
|
240
|
-
})
|
|
241
|
-
}),
|
|
242
|
-
createSurface({
|
|
243
|
-
id: meta.id,
|
|
244
|
-
role: "status-bar--r1-footer",
|
|
245
|
-
component: () => /* @__PURE__ */ React4.createElement(StatusBarActions, null)
|
|
246
|
-
}),
|
|
247
|
-
createSurface({
|
|
248
|
-
id: `${STATUS_BAR_PLUGIN}/header-end`,
|
|
249
|
-
role: "header-end",
|
|
250
|
-
component: () => /* @__PURE__ */ React4.createElement(VersionNumber, null)
|
|
251
|
-
})
|
|
252
|
-
])
|
|
49
|
+
activate: ReactSurface
|
|
253
50
|
})
|
|
254
51
|
]);
|
|
255
52
|
export {
|
|
@@ -258,6 +55,7 @@ export {
|
|
|
258
55
|
StatusBarActions,
|
|
259
56
|
StatusBarPanel,
|
|
260
57
|
StatusBarPlugin,
|
|
58
|
+
VersionNumber,
|
|
261
59
|
meta
|
|
262
60
|
};
|
|
263
61
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Slot } from '@radix-ui/react-slot';\nimport React, { type ComponentPropsWithRef, forwardRef, type PropsWithChildren, type ReactNode } from 'react';\n\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { mx } from '@dxos/react-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 px-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 px-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 React, { useState } from 'react';\n\nimport { Surface } from '@dxos/app-framework';\nimport { useConfig } from '@dxos/react-client';\nimport { Icon, Popover, useTranslation } from '@dxos/react-ui';\n\nimport { StatusBar } from './StatusBar';\nimport { VersionNumber } from './VersionNumber';\nimport { STATUS_BAR_PLUGIN } from '../meta';\n\nexport const StatusBarActions = () => {\n const { t } = useTranslation(STATUS_BAR_PLUGIN);\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 px-1'>\n <span title={edgeEnv}>{edgeEnv[0]}</span>\n </StatusBar.Text>\n </StatusBar.Item>\n );\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 { Link, Message, Popover, Trans, useTranslation, Icon } from '@dxos/react-ui';\n\nimport { StatusBar } from './StatusBar';\nimport { STATUS_BAR_PLUGIN } from '../meta';\n\nconst repo = 'https://github.com/dxos/dxos';\n\nconst VERSION_REGEX = /([\\d.]+)/;\n\nexport const VersionNumber = () => {\n const { t } = useTranslation(STATUS_BAR_PLUGIN);\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' className='rounded-be-none p-5'>\n <Message.Title>\n <Icon icon='ph--warning--duotone' size={6} classNames='inline mie-2' />\n <span>{t('warning title')}</span>\n </Message.Title>\n <Message.Body>\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.Body>\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 { type PluginMeta } from '@dxos/app-framework';\n\nexport const STATUS_BAR_PLUGIN = 'dxos.org/plugin/status-bar';\n\nexport const meta: PluginMeta = {\n id: STATUS_BAR_PLUGIN,\n name: 'Status Bar',\n description: 'Display a bar with status and actions.',\n icon: 'ph--info--regular',\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\n\nimport {\n Capabilities,\n contributes,\n createSurface,\n defineModule,\n definePlugin,\n Events,\n Surface,\n} from '@dxos/app-framework';\n\nimport { StatusBarActions, StatusBarPanel } from './components';\nimport { VersionNumber } from './components/VersionNumber';\nimport { meta, STATUS_BAR_PLUGIN } from './meta';\nimport translations from './translations';\n\nexport const StatusBarPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: meta.id,\n role: 'status-bar',\n component: () => <StatusBarPanel />,\n }),\n createSurface({\n id: meta.id,\n role: 'status-bar--r0-footer',\n component: () => <Surface role='status' />,\n }),\n createSurface({\n id: meta.id,\n role: 'status-bar--r1-footer',\n component: () => <StatusBarActions />,\n }),\n createSurface({\n id: `${STATUS_BAR_PLUGIN}/header-end`,\n role: 'header-end',\n component: () => <VersionNumber />,\n }),\n ]),\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type useTranslation } from '@dxos/react-ui';\n\nimport { STATUS_BAR_PLUGIN } from './meta';\n\n// TODO(wittjosiah): There's got to be a better way to do typesafe translations, this is too much boilerplate.\n\ntype StatusBarTranslationKeys =\n | 'plugin name'\n | 'warning title'\n | 'technology preview message'\n | 'learn more label'\n | 'released message'\n | 'see release label'\n | 'powered by dxos message'\n | 'discord label'\n | 'github label'\n | 'feedback label';\n\ntype RequiredTranslation = { [key in StatusBarTranslationKeys]: string };\ntype TranslationEntry = { [STATUS_BAR_PLUGIN]: RequiredTranslation };\ntype Language = string;\n\n// -- helpers.\nconst entry = (translation: RequiredTranslation): TranslationEntry => ({ [STATUS_BAR_PLUGIN]: translation });\nexport const mkTranslation = (t: ReturnType<typeof useTranslation>['t']) => (key: StatusBarTranslationKeys) => t(key);\n\nconst translations: Record<Language, TranslationEntry> = {\n 'en-US': entry({\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 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\nexport default [translations];\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/StatusBarPlugin.ts", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\n\nimport { ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\n\nexport const StatusBarPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type useTranslation } from '@dxos/react-ui';\n\nimport { STATUS_BAR_PLUGIN } from './meta';\n\n// TODO(wittjosiah): There's got to be a better way to do typesafe translations, this is too much boilerplate.\n\ntype StatusBarTranslationKeys =\n | 'plugin name'\n | 'warning title'\n | 'technology preview message'\n | 'learn more label'\n | 'released message'\n | 'see release label'\n | 'powered by dxos message'\n | 'discord label'\n | 'github label'\n | 'feedback label';\n\ntype RequiredTranslation = { [key in StatusBarTranslationKeys]: string };\ntype TranslationEntry = { [STATUS_BAR_PLUGIN]: RequiredTranslation };\ntype Language = string;\n\n// -- helpers.\nconst entry = (translation: RequiredTranslation): TranslationEntry => ({ [STATUS_BAR_PLUGIN]: translation });\nexport const mkTranslation = (t: ReturnType<typeof useTranslation>['t']) => (key: StatusBarTranslationKeys) => t(key);\n\nconst translations: Record<Language, TranslationEntry> = {\n 'en-US': entry({\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 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\nexport default [translations];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAc;;;ACA9E,SAASC,YAAY;AAEd,IAAMC,eAAeC,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACqB9C,IAAMC,QAAQ,CAACC,iBAAwD;EAAE,CAACC,iBAAAA,GAAoBD;AAAY;AAG1G,IAAME,eAAmD;EACvD,SAASC,MAAM;IACb,eAAe;IACf,iBAAiB;IACjB,8BAA8B;IAC9B,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,2BAA2B;IAC3B,iBAAiB;IACjB,gBAAgB;IAChB,kBAAkB;EACpB,CAAA;AACF;AAEA,IAAA,uBAAe;EAACD;;;;AFnCT,IAAME,kBAAkB,MAC7BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAUM;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "defineModule", "definePlugin", "Events", "lazy", "ReactSurface", "lazy", "entry", "translation", "STATUS_BAR_PLUGIN", "translations", "entry", "StatusBarPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupReactSurface", "ReactSurface"]
|
|
7
7
|
}
|