Skip to content

Commit 058702d

Browse files
authored
Merge branch 'main' into feat/update_release_please_action
2 parents 7684d13 + a3d6d2f commit 058702d

File tree

12 files changed

+1664
-2725
lines changed

12 files changed

+1664
-2725
lines changed

package-lock.json

-115
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/foundation/plugin.ts

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
import { targetLocales } from '../locales.js';
22

33
export type Plugin = {
4+
// name defines the name of the plugin
45
name: string;
5-
translations?: Record<(typeof targetLocales)[number], string>;
6+
// src defines the path to the plugins source file
67
src: string;
7-
icon: string;
8-
requireDoc?: boolean;
8+
// kind defines the type of the plugin
9+
kind: PluginKind;
10+
// activeByDefault configures if the plugin should be active by default
11+
// this is will be user when users resets the plugins
12+
activeByDefault: boolean;
13+
// icon stores the icon name of the Material Icon
14+
icon?: string;
15+
// active shows if the plugin currently is active
916
active?: boolean;
10-
position: ('top' | 'middle' | 'bottom') | number;
17+
// requireDoc shows if the plugin requires a document to be loaded
18+
requireDoc?: boolean;
19+
// position defines the position of menu plugins
20+
position?: MenuPosition
21+
translations?: Record<(typeof targetLocales)[number], string>;
1122
};
23+
1224
export type PluginSet = { menu: Plugin[]; editor: Plugin[] };
25+
export type PluginKind = 'editor' | 'menu' | 'validator';
26+
export const menuPosition = ['top', 'middle', 'bottom'] as const;
27+
export type MenuPosition = (typeof menuPosition)[number];
28+

packages/openscd/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"test:manual": "web-test-runner --manual",
6161
"test:watch": "web-test-runner --watch",
6262
"test:unit": "web-test-runner --watch --group unit",
63+
"test:unit:headless": "web-test-runner --watch --group unit --concurrency 1 --headless",
6364
"test:integration": "web-test-runner --watch --group integration",
6465
"doc:clean": "npx rimraf doc",
6566
"doc:typedoc": "typedoc --plugin none --out doc --entryPointStrategy expand ./src",

0 commit comments

Comments
 (0)