@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-status-bar/src/components/StatusBar.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-status-bar/src/components/StatusBar.tsx":{"bytes":8429,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-status-bar/src/meta.ts":{"bytes":1237,"imports":[],"format":"esm"},"packages/plugins/plugin-status-bar/src/components/VersionNumber.tsx":{"bytes":11430,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"date-fns/formatDistance","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-status-bar/src/components/StatusBar.tsx","kind":"import-statement","original":"./StatusBar"},{"path":"packages/plugins/plugin-status-bar/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-status-bar/src/components/StatusBarPanel.tsx":{"bytes":9015,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-status-bar/src/components/StatusBar.tsx","kind":"import-statement","original":"./StatusBar"},{"path":"packages/plugins/plugin-status-bar/src/components/VersionNumber.tsx","kind":"import-statement","original":"./VersionNumber"},{"path":"packages/plugins/plugin-status-bar/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-status-bar/src/components/index.ts":{"bytes":697,"imports":[{"path":"packages/plugins/plugin-status-bar/src/components/StatusBar.tsx","kind":"import-statement","original":"./StatusBar"},{"path":"packages/plugins/plugin-status-bar/src/components/StatusBarPanel.tsx","kind":"import-statement","original":"./StatusBarPanel"},{"path":"packages/plugins/plugin-status-bar/src/components/VersionNumber.tsx","kind":"import-statement","original":"./VersionNumber"}],"format":"esm"},"packages/plugins/plugin-status-bar/src/capabilities/react-surface.tsx":{"bytes":3838,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-status-bar/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-status-bar/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-status-bar/src/capabilities/index.ts":{"bytes":796,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-status-bar/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-status-bar/src/translations.ts":{"bytes":3755,"imports":[{"path":"packages/plugins/plugin-status-bar/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-status-bar/src/StatusBarPlugin.ts":{"bytes":2804,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-status-bar/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-status-bar/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-status-bar/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-status-bar/src/index.ts":{"bytes":667,"imports":[{"path":"packages/plugins/plugin-status-bar/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-status-bar/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-status-bar/src/StatusBarPlugin.ts","kind":"import-statement","original":"./StatusBarPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-status-bar/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3585},"packages/plugins/plugin-status-bar/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-status-bar/dist/lib/browser/chunk-P5BV6L2J.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-status-bar/dist/lib/browser/react-surface-FCB6CYVQ.mjs","kind":"dynamic-import"}],"exports":["STATUS_BAR_PLUGIN","StatusBar","StatusBarActions","StatusBarPanel","StatusBarPlugin","VersionNumber","meta"],"entryPoint":"packages/plugins/plugin-status-bar/src/index.ts","inputs":{"packages/plugins/plugin-status-bar/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-status-bar/src/StatusBarPlugin.ts":{"bytesInOutput":478},"packages/plugins/plugin-status-bar/src/capabilities/index.ts":{"bytesInOutput":115},"packages/plugins/plugin-status-bar/src/translations.ts":{"bytesInOutput":608}},"bytes":1747},"packages/plugins/plugin-status-bar/dist/lib/browser/react-surface-FCB6CYVQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1838},"packages/plugins/plugin-status-bar/dist/lib/browser/react-surface-FCB6CYVQ.mjs":{"imports":[{"path":"packages/plugins/plugin-status-bar/dist/lib/browser/chunk-P5BV6L2J.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-status-bar/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-status-bar/src/capabilities/react-surface.tsx":{"bytesInOutput":896}},"bytes":1171},"packages/plugins/plugin-status-bar/dist/lib/browser/chunk-P5BV6L2J.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15137},"packages/plugins/plugin-status-bar/dist/lib/browser/chunk-P5BV6L2J.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"date-fns/formatDistance","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["STATUS_BAR_PLUGIN","StatusBar","StatusBarActions","StatusBarPanel","VersionNumber","meta"],"inputs":{"packages/plugins/plugin-status-bar/src/components/StatusBar.tsx":{"bytesInOutput":2549},"packages/plugins/plugin-status-bar/src/meta.ts":{"bytesInOutput":202},"packages/plugins/plugin-status-bar/src/components/VersionNumber.tsx":{"bytesInOutput":3481},"packages/plugins/plugin-status-bar/src/components/StatusBarPanel.tsx":{"bytesInOutput":2943},"packages/plugins/plugin-status-bar/src/components/index.ts":{"bytesInOutput":0}},"bytes":9591}}}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StatusBarActions,
|
|
3
|
+
StatusBarPanel,
|
|
4
|
+
VersionNumber,
|
|
5
|
+
meta
|
|
6
|
+
} from "./chunk-P5BV6L2J.mjs";
|
|
7
|
+
|
|
8
|
+
// packages/plugins/plugin-status-bar/src/capabilities/react-surface.tsx
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { Capabilities, contributes, createSurface, Surface } from "@dxos/app-framework";
|
|
11
|
+
var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
12
|
+
createSurface({
|
|
13
|
+
id: `${meta.id}/status-bar`,
|
|
14
|
+
role: "status-bar",
|
|
15
|
+
component: () => /* @__PURE__ */ React.createElement(StatusBarPanel, null)
|
|
16
|
+
}),
|
|
17
|
+
createSurface({
|
|
18
|
+
id: `${meta.id}/status-bar--r0-footer`,
|
|
19
|
+
role: "status-bar--r0-footer",
|
|
20
|
+
component: () => /* @__PURE__ */ React.createElement(Surface, {
|
|
21
|
+
role: "status"
|
|
22
|
+
})
|
|
23
|
+
}),
|
|
24
|
+
createSurface({
|
|
25
|
+
id: `${meta.id}/status-bar--r1-footer`,
|
|
26
|
+
role: "status-bar--r1-footer",
|
|
27
|
+
component: () => /* @__PURE__ */ React.createElement(StatusBarActions, null)
|
|
28
|
+
}),
|
|
29
|
+
createSurface({
|
|
30
|
+
id: `${meta.id}/header-end`,
|
|
31
|
+
role: "header-end",
|
|
32
|
+
component: () => /* @__PURE__ */ React.createElement(VersionNumber, null)
|
|
33
|
+
})
|
|
34
|
+
]);
|
|
35
|
+
export {
|
|
36
|
+
react_surface_default as default
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=react-surface-FCB6CYVQ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface, Surface } from '@dxos/app-framework';\n\nimport { StatusBarActions, StatusBarPanel, VersionNumber } from '../components';\nimport { meta } from '../meta';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${meta.id}/status-bar`,\n role: 'status-bar',\n component: () => <StatusBarPanel />,\n }),\n createSurface({\n id: `${meta.id}/status-bar--r0-footer`,\n role: 'status-bar--r0-footer',\n component: () => <Surface role='status' />,\n }),\n createSurface({\n id: `${meta.id}/status-bar--r1-footer`,\n role: 'status-bar--r1-footer',\n component: () => <StatusBarActions />,\n }),\n createSurface({\n id: `${meta.id}/header-end`,\n role: 'header-end',\n component: () => <VersionNumber />,\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,eAAeC,eAAe;AAKlE,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,WAAW,MAAM,sBAAA,cAACC,gBAAAA,IAAAA;EACpB,CAAA;EACAL,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,WAAW,MAAM,sBAAA,cAACE,SAAAA;MAAQH,MAAK;;EACjC,CAAA;EACAH,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,WAAW,MAAM,sBAAA,cAACG,kBAAAA,IAAAA;EACpB,CAAA;EACAP,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,WAAW,MAAM,sBAAA,cAACI,eAAAA,IAAAA;EACpB,CAAA;CACD;",
|
|
6
|
+
"names": ["React", "Capabilities", "contributes", "createSurface", "Surface", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "meta", "role", "component", "StatusBarPanel", "Surface", "StatusBarActions", "VersionNumber"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var chunk_4IGLOCOS_exports = {};
|
|
30
|
+
__export(chunk_4IGLOCOS_exports, {
|
|
31
|
+
STATUS_BAR_PLUGIN: () => STATUS_BAR_PLUGIN,
|
|
32
|
+
StatusBar: () => StatusBar,
|
|
33
|
+
StatusBarActions: () => StatusBarActions,
|
|
34
|
+
StatusBarPanel: () => StatusBarPanel,
|
|
35
|
+
VersionNumber: () => VersionNumber,
|
|
36
|
+
meta: () => meta
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(chunk_4IGLOCOS_exports);
|
|
39
|
+
var import_tracking = require("@preact-signals/safe-react/tracking");
|
|
40
|
+
var import_react_slot = require("@radix-ui/react-slot");
|
|
41
|
+
var import_react = __toESM(require("react"));
|
|
42
|
+
var import_react_ui_theme = require("@dxos/react-ui-theme");
|
|
43
|
+
var import_tracking2 = require("@preact-signals/safe-react/tracking");
|
|
44
|
+
var import_formatDistance = require("date-fns/formatDistance");
|
|
45
|
+
var import_react2 = __toESM(require("react"));
|
|
46
|
+
var import_react_client = require("@dxos/react-client");
|
|
47
|
+
var import_react_ui = require("@dxos/react-ui");
|
|
48
|
+
var import_tracking3 = require("@preact-signals/safe-react/tracking");
|
|
49
|
+
var import_react3 = __toESM(require("react"));
|
|
50
|
+
var import_app_framework = require("@dxos/app-framework");
|
|
51
|
+
var import_react_client2 = require("@dxos/react-client");
|
|
52
|
+
var import_react_ui2 = require("@dxos/react-ui");
|
|
53
|
+
var StatusBarText = /* @__PURE__ */ (0, import_react.forwardRef)(({ classNames, children }, forwardedRef) => {
|
|
54
|
+
var _effect = (0, import_tracking.useSignals)();
|
|
55
|
+
try {
|
|
56
|
+
return /* @__PURE__ */ import_react.default.createElement("span", {
|
|
57
|
+
className: (0, import_react_ui_theme.mx)(classNames),
|
|
58
|
+
ref: forwardedRef
|
|
59
|
+
}, children);
|
|
60
|
+
} finally {
|
|
61
|
+
_effect.f();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
var StatusBarButton = /* @__PURE__ */ (0, import_react.forwardRef)(({ classNames, children, asChild, ...props }, forwardedRef) => {
|
|
65
|
+
var _effect = (0, import_tracking.useSignals)();
|
|
66
|
+
try {
|
|
67
|
+
const classes = (0, import_react_ui_theme.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);
|
|
68
|
+
return asChild ? /* @__PURE__ */ import_react.default.createElement(import_react_slot.Slot, {
|
|
69
|
+
role: "button",
|
|
70
|
+
ref: forwardedRef,
|
|
71
|
+
className: classes,
|
|
72
|
+
...props
|
|
73
|
+
}, children) : /* @__PURE__ */ import_react.default.createElement("button", {
|
|
74
|
+
className: classes,
|
|
75
|
+
ref: forwardedRef,
|
|
76
|
+
...props
|
|
77
|
+
}, children);
|
|
78
|
+
} finally {
|
|
79
|
+
_effect.f();
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
var StatusBarItem = /* @__PURE__ */ (0, import_react.forwardRef)(({ classNames, children, ...props }, forwardedRef) => {
|
|
83
|
+
var _effect = (0, import_tracking.useSignals)();
|
|
84
|
+
try {
|
|
85
|
+
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
86
|
+
role: "menuitem",
|
|
87
|
+
className: (0, import_react_ui_theme.mx)("flex items-center justify-center gap-2 p-1 px-2 rounded-sm select-none", classNames),
|
|
88
|
+
ref: forwardedRef,
|
|
89
|
+
...props
|
|
90
|
+
}, children);
|
|
91
|
+
} finally {
|
|
92
|
+
_effect.f();
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
var StartContent = /* @__PURE__ */ (0, import_react.forwardRef)(({ classNames, children }, forwardedRef) => {
|
|
96
|
+
var _effect = (0, import_tracking.useSignals)();
|
|
97
|
+
try {
|
|
98
|
+
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
99
|
+
role: "none",
|
|
100
|
+
className: (0, import_react_ui_theme.mx)("flex-grow flex items-center space-x-2", classNames),
|
|
101
|
+
ref: forwardedRef
|
|
102
|
+
}, children);
|
|
103
|
+
} finally {
|
|
104
|
+
_effect.f();
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
var EndContent = /* @__PURE__ */ (0, import_react.forwardRef)(({ classNames, children }, forwardedRef) => {
|
|
108
|
+
var _effect = (0, import_tracking.useSignals)();
|
|
109
|
+
try {
|
|
110
|
+
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
111
|
+
role: "none",
|
|
112
|
+
className: (0, import_react_ui_theme.mx)("flex-grow flex items-center justify-end", classNames),
|
|
113
|
+
ref: forwardedRef
|
|
114
|
+
}, children);
|
|
115
|
+
} finally {
|
|
116
|
+
_effect.f();
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
var StatusBar = {
|
|
120
|
+
Text: StatusBarText,
|
|
121
|
+
Item: StatusBarItem,
|
|
122
|
+
Button: StatusBarButton,
|
|
123
|
+
StartContent,
|
|
124
|
+
EndContent
|
|
125
|
+
};
|
|
126
|
+
var STATUS_BAR_PLUGIN = "dxos.org/plugin/status-bar";
|
|
127
|
+
var meta = {
|
|
128
|
+
id: STATUS_BAR_PLUGIN,
|
|
129
|
+
name: "Status Bar",
|
|
130
|
+
description: "Display a bar with status and actions.",
|
|
131
|
+
icon: "ph--info--regular"
|
|
132
|
+
};
|
|
133
|
+
var repo = "https://github.com/dxos/dxos";
|
|
134
|
+
var VERSION_REGEX = /([\d.]+)/;
|
|
135
|
+
var VersionNumber = () => {
|
|
136
|
+
var _effect = (0, import_tracking2.useSignals)();
|
|
137
|
+
try {
|
|
138
|
+
const { t } = (0, import_react_ui.useTranslation)(STATUS_BAR_PLUGIN);
|
|
139
|
+
const config = (0, import_react_client.useConfig)();
|
|
140
|
+
const { version, timestamp, commitHash } = config.values.runtime?.app?.build ?? {};
|
|
141
|
+
const [_, v] = version?.match(VERSION_REGEX) ?? [];
|
|
142
|
+
const isLabs = config.values.runtime?.app?.env?.DX_LABS;
|
|
143
|
+
const releaseUrl = config.values.runtime?.app?.env?.DX_ENVIRONMENT === "production" ? `${repo}/releases/tag/v${version}` : `${repo}/commit/${commitHash}`;
|
|
144
|
+
const previewUrl = "https://docs.dxos.org/composer#technology-preview";
|
|
145
|
+
return /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Popover.Root, null, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Popover.Trigger, {
|
|
146
|
+
asChild: true
|
|
147
|
+
}, /* @__PURE__ */ import_react2.default.createElement(StatusBar.Button, {
|
|
148
|
+
classNames: "text-xs"
|
|
149
|
+
}, isLabs ? version : v)), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Popover.Portal, null, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Popover.Content, {
|
|
150
|
+
side: "top",
|
|
151
|
+
role: "message",
|
|
152
|
+
classNames: "z-[12] bg-warning-500 max-is-[min(calc(100vw-16px),40ch)]"
|
|
153
|
+
}, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Message.Root, {
|
|
154
|
+
valence: "warning",
|
|
155
|
+
className: "rounded-be-none p-5"
|
|
156
|
+
}, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Message.Title, null, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Icon, {
|
|
157
|
+
icon: "ph--warning--duotone",
|
|
158
|
+
size: 6,
|
|
159
|
+
classNames: "inline mie-2"
|
|
160
|
+
}), /* @__PURE__ */ import_react2.default.createElement("span", null, t("warning title"))), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Message.Body, null, t("technology preview message"), /* @__PURE__ */ import_react2.default.createElement("br", null), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Link, {
|
|
161
|
+
href: previewUrl,
|
|
162
|
+
target: "_blank",
|
|
163
|
+
rel: "noreferrer",
|
|
164
|
+
variant: "neutral"
|
|
165
|
+
}, t("learn more label"), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Icon, {
|
|
166
|
+
icon: "ph--arrow-square-out--bold",
|
|
167
|
+
classNames: "inline mis-1"
|
|
168
|
+
})))), /* @__PURE__ */ import_react2.default.createElement("div", {
|
|
169
|
+
role: "none",
|
|
170
|
+
className: "plb-4 pli-5 space-b-2 text-baseText"
|
|
171
|
+
}, timestamp && /* @__PURE__ */ import_react2.default.createElement("p", null, t("released message", {
|
|
172
|
+
released: (0, import_formatDistance.formatDistance)(new Date(timestamp), /* @__PURE__ */ new Date(), {
|
|
173
|
+
addSuffix: true
|
|
174
|
+
})
|
|
175
|
+
}), /* @__PURE__ */ import_react2.default.createElement("br", null), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Link, {
|
|
176
|
+
href: releaseUrl,
|
|
177
|
+
target: "_blank",
|
|
178
|
+
rel: "noreferrer",
|
|
179
|
+
variant: "neutral"
|
|
180
|
+
}, t("see release label"), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Icon, {
|
|
181
|
+
icon: "ph--arrow-square-out--bold",
|
|
182
|
+
classNames: "inline mis-1"
|
|
183
|
+
}))), /* @__PURE__ */ import_react2.default.createElement("p", null, /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Trans, {
|
|
184
|
+
t,
|
|
185
|
+
i18nKey: "powered by dxos message",
|
|
186
|
+
components: {
|
|
187
|
+
dxos: /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Link, {
|
|
188
|
+
href: "https://dxos.org",
|
|
189
|
+
target: "_blank",
|
|
190
|
+
rel: "noreferrer",
|
|
191
|
+
variant: "neutral"
|
|
192
|
+
})
|
|
193
|
+
}
|
|
194
|
+
}))), /* @__PURE__ */ import_react2.default.createElement(import_react_ui.Popover.Arrow, null))));
|
|
195
|
+
} finally {
|
|
196
|
+
_effect.f();
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
var StatusBarActions = () => {
|
|
200
|
+
var _effect = (0, import_tracking3.useSignals)();
|
|
201
|
+
try {
|
|
202
|
+
const { t } = (0, import_react_ui2.useTranslation)(STATUS_BAR_PLUGIN);
|
|
203
|
+
const [open, setOpen] = (0, import_react3.useState)(false);
|
|
204
|
+
return /* @__PURE__ */ import_react3.default.createElement(import_react_ui2.Popover.Root, {
|
|
205
|
+
open,
|
|
206
|
+
onOpenChange: setOpen
|
|
207
|
+
}, /* @__PURE__ */ import_react3.default.createElement(EnvironmentLabel, null), /* @__PURE__ */ import_react3.default.createElement(VersionNumber, null), /* @__PURE__ */ import_react3.default.createElement(StatusBar.Button, {
|
|
208
|
+
asChild: true
|
|
209
|
+
}, /* @__PURE__ */ import_react3.default.createElement("a", {
|
|
210
|
+
href: "https://dxos.org/discord",
|
|
211
|
+
target: "_blank",
|
|
212
|
+
rel: "noopener noreferrer"
|
|
213
|
+
}, /* @__PURE__ */ import_react3.default.createElement(import_react_ui2.Icon, {
|
|
214
|
+
icon: "ph--discord-logo--regular",
|
|
215
|
+
size: 4
|
|
216
|
+
}), /* @__PURE__ */ import_react3.default.createElement(StatusBar.Text, {
|
|
217
|
+
classNames: "hidden sm:block"
|
|
218
|
+
}, t("discord label")))), /* @__PURE__ */ import_react3.default.createElement(StatusBar.Button, {
|
|
219
|
+
asChild: true
|
|
220
|
+
}, /* @__PURE__ */ import_react3.default.createElement("a", {
|
|
221
|
+
href: "https://github.com/dxos/dxos",
|
|
222
|
+
target: "_blank",
|
|
223
|
+
rel: "noopener noreferrer"
|
|
224
|
+
}, /* @__PURE__ */ import_react3.default.createElement(import_react_ui2.Icon, {
|
|
225
|
+
icon: "ph--github-logo--regular",
|
|
226
|
+
size: 4
|
|
227
|
+
}), /* @__PURE__ */ import_react3.default.createElement(StatusBar.Text, {
|
|
228
|
+
classNames: "hidden sm:block"
|
|
229
|
+
}, t("github label")))));
|
|
230
|
+
} finally {
|
|
231
|
+
_effect.f();
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
var StatusBarPanel = () => {
|
|
235
|
+
var _effect = (0, import_tracking3.useSignals)();
|
|
236
|
+
try {
|
|
237
|
+
return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, /* @__PURE__ */ import_react3.default.createElement(StatusBarActions, null), /* @__PURE__ */ import_react3.default.createElement("span", {
|
|
238
|
+
role: "separator",
|
|
239
|
+
className: "grow"
|
|
240
|
+
}), /* @__PURE__ */ import_react3.default.createElement(import_app_framework.Surface, {
|
|
241
|
+
role: "status"
|
|
242
|
+
}));
|
|
243
|
+
} finally {
|
|
244
|
+
_effect.f();
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
var ENV_LABELS = {
|
|
248
|
+
"edge-dev": "Dev",
|
|
249
|
+
"edge-main": "Main",
|
|
250
|
+
"edge-labs": "Labs",
|
|
251
|
+
"edge-production": "Production"
|
|
252
|
+
};
|
|
253
|
+
var EnvironmentLabel = () => {
|
|
254
|
+
var _effect = (0, import_tracking3.useSignals)();
|
|
255
|
+
try {
|
|
256
|
+
const config = (0, import_react_client2.useConfig)();
|
|
257
|
+
const edgeUrl = config.values.runtime?.services?.edge?.url;
|
|
258
|
+
if (!edgeUrl) {
|
|
259
|
+
return null;
|
|
260
|
+
}
|
|
261
|
+
const part = new URL(edgeUrl).host.split(".")[0];
|
|
262
|
+
const edgeEnv = ENV_LABELS[part];
|
|
263
|
+
if (!edgeEnv) {
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
return /* @__PURE__ */ import_react3.default.createElement(StatusBar.Item, null, /* @__PURE__ */ import_react3.default.createElement(StatusBar.Text, {
|
|
267
|
+
classNames: "text-xs text-subdued border border-separator rounded-full px-1"
|
|
268
|
+
}, /* @__PURE__ */ import_react3.default.createElement("span", {
|
|
269
|
+
title: edgeEnv
|
|
270
|
+
}, edgeEnv[0])));
|
|
271
|
+
} finally {
|
|
272
|
+
_effect.f();
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
276
|
+
0 && (module.exports = {
|
|
277
|
+
STATUS_BAR_PLUGIN,
|
|
278
|
+
StatusBar,
|
|
279
|
+
StatusBarActions,
|
|
280
|
+
StatusBarPanel,
|
|
281
|
+
VersionNumber,
|
|
282
|
+
meta
|
|
283
|
+
});
|
|
284
|
+
//# sourceMappingURL=chunk-4IGLOCOS.cjs.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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAAqB;AACrB,mBAAsG;AAGtG,4BAAmB;;AEJnB,4BAA+B;AAC/B,IAAAA,gBAAkB;AAElB,0BAA0B;AAC1B,sBAAoE;;ACJpE,IAAAA,gBAAgC;AAEhC,2BAAwB;AACxB,IAAAC,uBAA0B;AAC1B,IAAAC,mBAA8C;AHI9C,IAAMC,gBAAgBC,6CAAgD,CAAC,EAAEC,YAAYC,SAAQ,GAAIC,iBAAAA;;;WAC/F,6BAAAC,QAAA,cAACC,QAAAA;MAAKC,eAAWC,0BAAGN,UAAAA;MAAaO,KAAKL;OACnCD,QAAAA;;;;;AAML,IAAMO,kBAAkBT,6CACtB,CAAC,EAAEC,YAAYC,UAAUQ,SAAS,GAAGC,MAAAA,GAASR,iBAAAA;;;AAC5C,UAAMS,cAAUL,0BACd,8DACA,qEACA,kGACAN,UAAAA;AAGF,WAAOS,UACL,6BAAAN,QAAA,cAACS,wBAAAA;MAAKC,MAAK;MAASN,KAAKL;MAAcG,WAAWM;MAAU,GAAGD;OAC5DT,QAAAA,IAGH,6BAAAE,QAAA,cAACW,UAAAA;MAAOT,WA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", "children", "forwardedRef", "React", "span", "className", "mx", "ref", "StatusBarButton", "asChild", "props", "classes", "Slot", "role", "button", "StatusBarItem", "div", "StartContent", "EndContent", "StatusBar", "Text", "Item", "Button", "STATUS_BAR_PLUGIN", "meta", "id", "name", "description", "icon", "repo", "VERSION_REGEX", "VersionNumber", "t", "useTranslation", "config", "useConfig", "version", "timestamp", "commitHash", "values", "runtime", "app", "build", "_", "v", "match", "isLabs", "env", "DX_LABS", "releaseUrl", "DX_ENVIRONMENT", "previewUrl", "Popover", "Root", "Trigger", "Portal", "Content", "side", "Message", "valence", "Title", "Icon", "size", "Body", "br", "Link", "href", "target", "rel", "variant", "p", "released", "formatDistance", "Date", "addSuffix", "Trans", "i18nKey", "components", "dxos", "Arrow", "StatusBarActions", "open", "setOpen", "useState", "onOpenChange", "EnvironmentLabel", "a", "StatusBarPanel", "Surface", "ENV_LABELS", "edgeUrl", "services", "edge", "url", "part", "URL", "host", "split", "edgeEnv", "title"]
|
|
7
|
+
}
|