@sebgroup/green-core 2.33.0 → 2.34.0
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/README.md +24 -0
- package/bin/context-cli/framework.d.ts +3 -0
- package/bin/context-cli/framework.js +23 -0
- package/bin/context-cli/index.d.ts +2 -0
- package/bin/context-cli/index.js +363 -0
- package/bin/context-cli/parse-args.d.ts +22 -0
- package/bin/context-cli/parse-args.js +46 -0
- package/bin/mcp-server/errors.d.ts +2 -7
- package/bin/mcp-server/handlers.d.ts +86 -0
- package/bin/mcp-server/handlers.js +356 -0
- package/bin/mcp-server/search.js +8 -1
- package/bin/mcp-server/tools.d.ts +13 -1
- package/bin/mcp-server/tools.js +8 -303
- package/components/table/table.component.js +2 -2
- package/custom-elements.json +3182 -2916
- package/gds-element.js +1 -1
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/react/index.d.ts +7 -7
- package/generated/react/index.js +7 -7
- package/package.json +3 -2
- package/utils/helpers/custom-element-scoping.js +1 -1
- package/utils/testing/index.js +6 -2
package/gds-element.js
CHANGED
|
@@ -12,7 +12,7 @@ class GdsElement extends LitElement {
|
|
|
12
12
|
/**
|
|
13
13
|
* The semantic version of this element. Can be used for troubleshooting to verify the version being used.
|
|
14
14
|
*/
|
|
15
|
-
this.semanticVersion = "2.
|
|
15
|
+
this.semanticVersion = "2.34.0";
|
|
16
16
|
this._isUsingTransitionalStyles = false;
|
|
17
17
|
this._dynamicStylesController = new DynamicStylesController(this);
|
|
18
18
|
}
|
package/generated/mcp/icons.json
CHANGED
package/generated/mcp/index.json
CHANGED
|
@@ -43,17 +43,12 @@ export * from './theme/index.js';
|
|
|
43
43
|
export * from './video/index.js';
|
|
44
44
|
export * from './card-pattern-01/index.js';
|
|
45
45
|
export * from './breadcrumb/index.js';
|
|
46
|
+
export * from './checkbox-group/index.js';
|
|
46
47
|
export * from './icons/icon-details/index.js';
|
|
47
|
-
export * from './formatted-account/index.js';
|
|
48
48
|
export * from './filter-chip/index.js';
|
|
49
|
-
export * from './
|
|
49
|
+
export * from './formatted-account/index.js';
|
|
50
50
|
export * from './formatted-date/index.js';
|
|
51
51
|
export * from './formatted-number/index.js';
|
|
52
|
-
export * from './radio-group/index.js';
|
|
53
|
-
export * from './segment/index.js';
|
|
54
|
-
export * from './sensitive-account/index.js';
|
|
55
|
-
export * from './sensitive-date/index.js';
|
|
56
|
-
export * from './sensitive-number/index.js';
|
|
57
52
|
export * from './icons/icon-ai/index.js';
|
|
58
53
|
export * from './icons/icon-airplane-up/index.js';
|
|
59
54
|
export * from './icons/icon-archive/index.js';
|
|
@@ -390,6 +385,11 @@ export * from './icons/icon-youtube/index.js';
|
|
|
390
385
|
export * from './icons/icon-zap/index.js';
|
|
391
386
|
export * from './icons/icon-zoom-in/index.js';
|
|
392
387
|
export * from './icons/icon-zoom-out/index.js';
|
|
388
|
+
export * from './radio-group/index.js';
|
|
389
|
+
export * from './segment/index.js';
|
|
390
|
+
export * from './sensitive-account/index.js';
|
|
391
|
+
export * from './sensitive-number/index.js';
|
|
392
|
+
export * from './sensitive-date/index.js';
|
|
393
393
|
export * from './menu-item/index.js';
|
|
394
394
|
export * from './menu-heading/index.js';
|
|
395
395
|
export * from './option/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -43,17 +43,12 @@ export * from "./theme/index.js";
|
|
|
43
43
|
export * from "./video/index.js";
|
|
44
44
|
export * from "./card-pattern-01/index.js";
|
|
45
45
|
export * from "./breadcrumb/index.js";
|
|
46
|
+
export * from "./checkbox-group/index.js";
|
|
46
47
|
export * from "./icons/icon-details/index.js";
|
|
47
|
-
export * from "./formatted-account/index.js";
|
|
48
48
|
export * from "./filter-chip/index.js";
|
|
49
|
-
export * from "./
|
|
49
|
+
export * from "./formatted-account/index.js";
|
|
50
50
|
export * from "./formatted-date/index.js";
|
|
51
51
|
export * from "./formatted-number/index.js";
|
|
52
|
-
export * from "./radio-group/index.js";
|
|
53
|
-
export * from "./segment/index.js";
|
|
54
|
-
export * from "./sensitive-account/index.js";
|
|
55
|
-
export * from "./sensitive-date/index.js";
|
|
56
|
-
export * from "./sensitive-number/index.js";
|
|
57
52
|
export * from "./icons/icon-ai/index.js";
|
|
58
53
|
export * from "./icons/icon-airplane-up/index.js";
|
|
59
54
|
export * from "./icons/icon-archive/index.js";
|
|
@@ -390,6 +385,11 @@ export * from "./icons/icon-youtube/index.js";
|
|
|
390
385
|
export * from "./icons/icon-zap/index.js";
|
|
391
386
|
export * from "./icons/icon-zoom-in/index.js";
|
|
392
387
|
export * from "./icons/icon-zoom-out/index.js";
|
|
388
|
+
export * from "./radio-group/index.js";
|
|
389
|
+
export * from "./segment/index.js";
|
|
390
|
+
export * from "./sensitive-account/index.js";
|
|
391
|
+
export * from "./sensitive-number/index.js";
|
|
392
|
+
export * from "./sensitive-date/index.js";
|
|
393
393
|
export * from "./menu-item/index.js";
|
|
394
394
|
export * from "./menu-heading/index.js";
|
|
395
395
|
export * from "./option/index.js";
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-core",
|
|
3
3
|
"description": "A carefully crafted set of Web Components, laying the foundation of the Green Design System.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.34.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bin": {
|
|
9
|
-
"green-core-mcp": "./bin/mcp-server/index.js"
|
|
9
|
+
"green-core-mcp": "./bin/mcp-server/index.js",
|
|
10
|
+
"green-core-context": "./bin/context-cli/index.js"
|
|
10
11
|
},
|
|
11
12
|
"author": "SEB Open Source <opensource@seb.se> (https://github.com/seb-oss)",
|
|
12
13
|
"contributors": [],
|
package/utils/testing/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "../../chunks/chunk.QU3DSPNU.js";
|
|
2
2
|
import { html, render } from "lit";
|
|
3
3
|
import { page, userEvent } from "@vitest/browser/context";
|
|
4
|
+
const CLICK_TIMEOUT_MS = 3e3;
|
|
4
5
|
async function fixture(template) {
|
|
5
6
|
const container = document.createElement("div");
|
|
6
7
|
document.body.appendChild(container);
|
|
@@ -27,9 +28,12 @@ async function clickOnElement(el, _position = "center", _offsetX = 0, _offsetY =
|
|
|
27
28
|
const rect = el.getBoundingClientRect();
|
|
28
29
|
const position = getClickPosition(rect, _position, _offsetX, _offsetY);
|
|
29
30
|
try {
|
|
30
|
-
await withTimeout(userEvent.click(el, { position }),
|
|
31
|
+
await withTimeout(userEvent.click(el, { position }), CLICK_TIMEOUT_MS);
|
|
31
32
|
} catch (error) {
|
|
32
|
-
await withTimeout(
|
|
33
|
+
await withTimeout(
|
|
34
|
+
userEvent.click(el, { position, force: true }),
|
|
35
|
+
CLICK_TIMEOUT_MS
|
|
36
|
+
);
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
async function withTimeout(promise, ms) {
|