@dxos/plugin-status-bar 0.7.4 → 0.7.5-labs.071a3e2
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/index.mjs +156 -91
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +186 -114
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +156 -90
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/StatusBarPlugin.d.ts +1 -3
- package/dist/types/src/StatusBarPlugin.d.ts.map +1 -1
- package/dist/types/src/components/FeedbackForm.d.ts.map +1 -1
- package/dist/types/src/components/StatusBar.d.ts +10 -24
- package/dist/types/src/components/StatusBar.d.ts.map +1 -1
- package/dist/types/src/components/StatusBarPanel.d.ts +1 -0
- package/dist/types/src/components/StatusBarPanel.d.ts.map +1 -1
- package/dist/types/src/components/VersionNumber.d.ts +3 -0
- package/dist/types/src/components/VersionNumber.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +18 -24
- package/src/StatusBarPlugin.tsx +47 -24
- package/src/components/FeedbackForm.tsx +8 -27
- package/src/components/StatusBar.stories.tsx +2 -2
- package/src/components/StatusBar.tsx +8 -34
- package/src/components/StatusBarPanel.tsx +35 -26
- package/src/components/VersionNumber.tsx +86 -0
- package/src/index.ts +2 -5
- package/src/meta.ts +1 -1
- package/src/translations.ts +18 -2
- package/dist/lib/browser/chunk-4KDZC7WS.mjs +0 -14
- package/dist/lib/browser/chunk-4KDZC7WS.mjs.map +0 -7
- package/dist/lib/browser/meta.mjs +0 -9
- package/dist/lib/browser/meta.mjs.map +0 -7
- package/dist/lib/node/chunk-OGG3PMIV.cjs +0 -37
- package/dist/lib/node/chunk-OGG3PMIV.cjs.map +0 -7
- package/dist/lib/node/meta.cjs +0 -30
- package/dist/lib/node/meta.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-UVUSU6KS.mjs +0 -16
- package/dist/lib/node-esm/chunk-UVUSU6KS.mjs.map +0 -7
- package/dist/lib/node-esm/meta.mjs +0 -10
- package/dist/lib/node-esm/meta.mjs.map +0 -7
package/src/index.ts
CHANGED
package/src/meta.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type PluginMeta } from '@dxos/app-framework';
|
|
|
6
6
|
|
|
7
7
|
export const STATUS_BAR_PLUGIN = 'dxos.org/plugin/status-bar';
|
|
8
8
|
|
|
9
|
-
export
|
|
9
|
+
export const meta = {
|
|
10
10
|
id: STATUS_BAR_PLUGIN,
|
|
11
11
|
name: 'Status Bar',
|
|
12
12
|
description: 'Display a bar with status and actions.',
|
package/src/translations.ts
CHANGED
|
@@ -14,7 +14,15 @@ type StatusBarTranslationKeys =
|
|
|
14
14
|
| 'feedback text area placeholder'
|
|
15
15
|
| 'send feedback label'
|
|
16
16
|
| 'name label'
|
|
17
|
-
| 'name placeholder'
|
|
17
|
+
| 'name placeholder'
|
|
18
|
+
| 'warning title'
|
|
19
|
+
| 'technology preview message'
|
|
20
|
+
| 'learn more label'
|
|
21
|
+
| 'released message'
|
|
22
|
+
| 'see release label'
|
|
23
|
+
| 'powered by dxos message'
|
|
24
|
+
| 'discord label'
|
|
25
|
+
| 'feedback label';
|
|
18
26
|
|
|
19
27
|
type RequiredTranslation = { [key in StatusBarTranslationKeys]: string };
|
|
20
28
|
type TranslationEntry = { [STATUS_BAR_PLUGIN]: RequiredTranslation };
|
|
@@ -32,8 +40,16 @@ const translations: Record<Language, TranslationEntry> = {
|
|
|
32
40
|
'email input label': 'Email',
|
|
33
41
|
'email input placeholder': 'hello@example.com',
|
|
34
42
|
'feedback text area label': 'Feedback',
|
|
35
|
-
'feedback text area placeholder': '
|
|
43
|
+
'feedback text area placeholder': 'Please describe your issue or suggestion.',
|
|
36
44
|
'send feedback label': 'Send Feedback',
|
|
45
|
+
'warning title': 'WARNING',
|
|
46
|
+
'technology preview message': 'Composer is still in technology preview.',
|
|
47
|
+
'learn more label': 'Learn more',
|
|
48
|
+
'released message': 'This version released {{released}}.',
|
|
49
|
+
'see release label': 'See release on GitHub',
|
|
50
|
+
'powered by dxos message': 'Powered by <dxos>DXOS</dxos>',
|
|
51
|
+
'discord label': 'Discord',
|
|
52
|
+
'feedback label': 'Feedback',
|
|
37
53
|
}),
|
|
38
54
|
};
|
|
39
55
|
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// packages/plugins/plugin-status-bar/src/meta.ts
|
|
2
|
-
var STATUS_BAR_PLUGIN = "dxos.org/plugin/status-bar";
|
|
3
|
-
var meta_default = {
|
|
4
|
-
id: STATUS_BAR_PLUGIN,
|
|
5
|
-
name: "Status Bar",
|
|
6
|
-
description: "Display a bar with status and actions.",
|
|
7
|
-
icon: "ph--info--regular"
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
STATUS_BAR_PLUGIN,
|
|
12
|
-
meta_default
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=chunk-4KDZC7WS.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\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 default {\n id: STATUS_BAR_PLUGIN,\n name: 'Status Bar',\n description: 'Display a bar with status and actions.',\n icon: 'ph--info--regular',\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";AAMO,IAAMA,oBAAoB;AAEjC,IAAA,eAAe;EACbC,IAAID;EACJE,MAAM;EACNC,aAAa;EACbC,MAAM;AACR;",
|
|
6
|
-
"names": ["STATUS_BAR_PLUGIN", "id", "name", "description", "icon"]
|
|
7
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_OGG3PMIV_exports = {};
|
|
20
|
-
__export(chunk_OGG3PMIV_exports, {
|
|
21
|
-
STATUS_BAR_PLUGIN: () => STATUS_BAR_PLUGIN,
|
|
22
|
-
meta_default: () => meta_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(chunk_OGG3PMIV_exports);
|
|
25
|
-
var STATUS_BAR_PLUGIN = "dxos.org/plugin/status-bar";
|
|
26
|
-
var meta_default = {
|
|
27
|
-
id: STATUS_BAR_PLUGIN,
|
|
28
|
-
name: "Status Bar",
|
|
29
|
-
description: "Display a bar with status and actions.",
|
|
30
|
-
icon: "ph--info--regular"
|
|
31
|
-
};
|
|
32
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
-
0 && (module.exports = {
|
|
34
|
-
STATUS_BAR_PLUGIN,
|
|
35
|
-
meta_default
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=chunk-OGG3PMIV.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\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 default {\n id: STATUS_BAR_PLUGIN,\n name: 'Status Bar',\n description: 'Display a bar with status and actions.',\n icon: 'ph--info--regular',\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,oBAAoB;AAEjC,IAAA,eAAe;EACbC,IAAID;EACJE,MAAM;EACNC,aAAa;EACbC,MAAM;AACR;",
|
|
6
|
-
"names": ["STATUS_BAR_PLUGIN", "id", "name", "description", "icon"]
|
|
7
|
-
}
|
package/dist/lib/node/meta.cjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var meta_exports = {};
|
|
20
|
-
__export(meta_exports, {
|
|
21
|
-
STATUS_BAR_PLUGIN: () => import_chunk_OGG3PMIV.STATUS_BAR_PLUGIN,
|
|
22
|
-
default: () => import_chunk_OGG3PMIV.meta_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(meta_exports);
|
|
25
|
-
var import_chunk_OGG3PMIV = require("./chunk-OGG3PMIV.cjs");
|
|
26
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
-
0 && (module.exports = {
|
|
28
|
-
STATUS_BAR_PLUGIN
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=meta.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["meta.cjs"],
|
|
4
|
-
"sourcesContent": ["import {\n STATUS_BAR_PLUGIN,\n meta_default\n} from \"./chunk-OGG3PMIV.cjs\";\nexport {\n STATUS_BAR_PLUGIN,\n meta_default as default\n};\n//# sourceMappingURL=meta.cjs.map\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAGO;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
|
|
3
|
-
// packages/plugins/plugin-status-bar/src/meta.ts
|
|
4
|
-
var STATUS_BAR_PLUGIN = "dxos.org/plugin/status-bar";
|
|
5
|
-
var meta_default = {
|
|
6
|
-
id: STATUS_BAR_PLUGIN,
|
|
7
|
-
name: "Status Bar",
|
|
8
|
-
description: "Display a bar with status and actions.",
|
|
9
|
-
icon: "ph--info--regular"
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
STATUS_BAR_PLUGIN,
|
|
14
|
-
meta_default
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=chunk-UVUSU6KS.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\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 default {\n id: STATUS_BAR_PLUGIN,\n name: 'Status Bar',\n description: 'Display a bar with status and actions.',\n icon: 'ph--info--regular',\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";;;AAMO,IAAMA,oBAAoB;AAEjC,IAAA,eAAe;EACbC,IAAID;EACJE,MAAM;EACNC,aAAa;EACbC,MAAM;AACR;",
|
|
6
|
-
"names": ["STATUS_BAR_PLUGIN", "id", "name", "description", "icon"]
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
STATUS_BAR_PLUGIN,
|
|
4
|
-
meta_default
|
|
5
|
-
} from "./chunk-UVUSU6KS.mjs";
|
|
6
|
-
export {
|
|
7
|
-
STATUS_BAR_PLUGIN,
|
|
8
|
-
meta_default as default
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=meta.mjs.map
|