@mgdis/mg-components 5.9.1 → 5.10.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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mg-action-more_31.cjs.entry.js +31 -225
- package/dist/cjs/mg-components.cjs.js +1 -1
- package/dist/cjs/mg-item-more.cjs.entry.js +1 -16
- package/dist/cjs/{mg-menu.conf-9afe6571.js → mg-menu.conf-1942ac70.js} +0 -5
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +1 -3
- package/dist/collection/components/atoms/mg-button/mg-button.js +2 -7
- package/dist/collection/components/atoms/mg-card/mg-card.js +13 -4
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +0 -2
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +0 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +10 -5
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +0 -2
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +0 -3
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +1 -13
- package/dist/collection/components/molecules/inputs/MgInput.js +0 -6
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +0 -6
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +0 -5
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +0 -12
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +0 -3
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +0 -9
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +0 -13
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +1 -12
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +1 -5
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +0 -5
- package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +0 -11
- package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +0 -18
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +0 -8
- package/dist/collection/components/molecules/mg-details/mg-details.js +0 -3
- package/dist/collection/components/molecules/mg-form/mg-form.js +0 -8
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +0 -2
- package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +0 -5
- package/dist/collection/components/molecules/mg-message/mg-message.js +2 -7
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +1 -6
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +0 -6
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +5 -15
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +1 -8
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -4
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +0 -12
- package/dist/collection/locales/index.js +0 -1
- package/dist/collection/utils/behaviors.utils.js +0 -10
- package/dist/collection/utils/components.utils.js +1 -10
- package/dist/collection/utils/locale.utils.js +0 -4
- package/dist/collection/utils/unit.test.utils.js +0 -5
- package/dist/components/MgInput.js +0 -6
- package/dist/components/components.utils.js +1 -10
- package/dist/components/index2.js +0 -5
- package/dist/components/mg-action-more.js +0 -8
- package/dist/components/mg-badge2.js +1 -3
- package/dist/components/mg-button2.js +2 -7
- package/dist/components/mg-card2.js +13 -4
- package/dist/components/mg-character-left2.js +0 -2
- package/dist/components/mg-details.js +0 -3
- package/dist/components/mg-divider.js +0 -1
- package/dist/components/mg-form.js +0 -8
- package/dist/components/mg-icon2.js +10 -5
- package/dist/components/mg-illustrated-message.js +0 -2
- package/dist/components/mg-input-checkbox.js +0 -6
- package/dist/components/mg-input-date.js +0 -5
- package/dist/components/mg-input-numeric.js +0 -12
- package/dist/components/mg-input-password.js +0 -3
- package/dist/components/mg-input-radio.js +0 -9
- package/dist/components/mg-input-select2.js +0 -13
- package/dist/components/mg-input-text2.js +1 -12
- package/dist/components/mg-input-textarea.js +1 -5
- package/dist/components/mg-input-title2.js +0 -2
- package/dist/components/mg-input-toggle.js +0 -5
- package/dist/components/mg-item-more.js +0 -15
- package/dist/components/mg-menu-item2.js +0 -18
- package/dist/components/mg-menu2.js +0 -11
- package/dist/components/mg-message.js +2 -7
- package/dist/components/mg-modal.js +1 -6
- package/dist/components/mg-pagination.js +0 -6
- package/dist/components/mg-panel.js +5 -15
- package/dist/components/mg-popover2.js +1 -8
- package/dist/components/mg-skip-links.js +1 -4
- package/dist/components/mg-tabs.js +0 -12
- package/dist/components/mg-tag.js +0 -3
- package/dist/components/mg-tooltip2.js +1 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mg-action-more_31.entry.js +31 -225
- package/dist/esm/mg-components.js +1 -1
- package/dist/esm/mg-item-more.entry.js +1 -16
- package/dist/esm/{mg-menu.conf-881fbd82.js → mg-menu.conf-2cc1bb67.js} +0 -5
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-67ce7cb8.entry.js → p-a56a3157.entry.js} +1 -1
- package/dist/mg-components/{p-9a93b7af.entry.js → p-eb32bb18.entry.js} +1 -1
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +0 -2
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +0 -5
- package/dist/types/components/atoms/mg-card/mg-card.d.ts +10 -3
- package/dist/types/components/atoms/mg-character-left/mg-character-left.d.ts +0 -2
- package/dist/types/components/atoms/mg-divider/mg-divider.d.ts +0 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +6 -3
- package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +0 -2
- package/dist/types/components/atoms/mg-tag/mg-tag.d.ts +0 -3
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +0 -12
- package/dist/types/components/molecules/inputs/MgInput.d.ts +0 -1
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +0 -5
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +0 -5
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +0 -12
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +0 -3
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -8
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +0 -9
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +0 -11
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +0 -4
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +0 -5
- package/dist/types/components/molecules/menu/mg-menu/mg-menu.d.ts +0 -11
- package/dist/types/components/molecules/menu/mg-menu-item/mg-menu-item.d.ts +0 -18
- package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +0 -5
- package/dist/types/components/molecules/mg-details/mg-details.d.ts +0 -3
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +0 -8
- package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.d.ts +0 -2
- package/dist/types/components/molecules/mg-item-more/mg-item-more.d.ts +0 -5
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +1 -6
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +0 -5
- package/dist/types/components/molecules/mg-pagination/mg-pagination.d.ts +0 -5
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +0 -10
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +0 -7
- package/dist/types/components/molecules/mg-skip-links/mg-skip-links.d.ts +0 -3
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +0 -11
- package/dist/types/locales/index.d.ts +0 -1
- package/dist/types/utils/behaviors.utils.d.ts +0 -9
- package/dist/types/utils/components.utils.d.ts +1 -9
- package/dist/types/utils/locale.utils.d.ts +0 -4
- package/dist/types/utils/unit.test.utils.d.ts +0 -7
- package/package.json +11 -12
- /package/dist/mg-components/{p-367f92d2.js → p-73156ac9.js} +0 -0
|
@@ -15,7 +15,6 @@ export declare class OverflowBehavior {
|
|
|
15
15
|
**********/
|
|
16
16
|
/**
|
|
17
17
|
* Disconnect ResizeObserver
|
|
18
|
-
*
|
|
19
18
|
* @returns {void}
|
|
20
19
|
*/
|
|
21
20
|
disconnect: () => void;
|
|
@@ -24,28 +23,24 @@ export declare class OverflowBehavior {
|
|
|
24
23
|
************/
|
|
25
24
|
/**
|
|
26
25
|
* run overflow behavior
|
|
27
|
-
*
|
|
28
26
|
* @param {number} width width of the container. Optional.
|
|
29
27
|
* @returns {void}
|
|
30
28
|
*/
|
|
31
29
|
private run;
|
|
32
30
|
/**
|
|
33
31
|
* Get interactive children filtred by authorized nodeName ['MG-MENU-ITEM', 'MG-BUTTON']
|
|
34
|
-
*
|
|
35
32
|
* @param {Element} element element to parse
|
|
36
33
|
* @returns {Element[]} children
|
|
37
34
|
*/
|
|
38
35
|
private getInteractiveItems;
|
|
39
36
|
/**
|
|
40
37
|
* Update displayed items in container from a given available space
|
|
41
|
-
*
|
|
42
38
|
* @param {number} availableWidth available width in container to display child items
|
|
43
39
|
* @returns {void}
|
|
44
40
|
*/
|
|
45
41
|
private updateDisplayedItems;
|
|
46
42
|
/**
|
|
47
43
|
* Utility method to know if item overflow partialy or totaly in the container
|
|
48
|
-
*
|
|
49
44
|
* @param {number} cumulateWidth previous sibling elements cumulate width + item width
|
|
50
45
|
* @param {HTMLElement} item item HTML element
|
|
51
46
|
* @param {number} availableWidth container available width
|
|
@@ -54,14 +49,12 @@ export declare class OverflowBehavior {
|
|
|
54
49
|
private isOverflowElement;
|
|
55
50
|
/**
|
|
56
51
|
* Utility method to know if a given element is the 'MORE' element
|
|
57
|
-
*
|
|
58
52
|
* @param {Element} element element to match with 'MORE' element
|
|
59
53
|
* @returns {boolean} truthy if element is the 'MORE' element
|
|
60
54
|
*/
|
|
61
55
|
private isMoreElement;
|
|
62
56
|
/**
|
|
63
57
|
* Toggle display item element
|
|
64
|
-
*
|
|
65
58
|
* @param {HTMLElement} item item to control
|
|
66
59
|
* @param {boolean} isHidden is item hidden
|
|
67
60
|
* @returns {void}
|
|
@@ -69,7 +62,6 @@ export declare class OverflowBehavior {
|
|
|
69
62
|
private toggleItem;
|
|
70
63
|
/**
|
|
71
64
|
* Toggle element's hidde attribute
|
|
72
|
-
*
|
|
73
65
|
* @param {Element} element element to toggle
|
|
74
66
|
* @param {boolean} isHidden element is hidden
|
|
75
67
|
* @returns {void}
|
|
@@ -77,7 +69,6 @@ export declare class OverflowBehavior {
|
|
|
77
69
|
private toggleElement;
|
|
78
70
|
/**
|
|
79
71
|
* Remove hidden attributes on all items
|
|
80
|
-
*
|
|
81
72
|
* @returns {void}
|
|
82
73
|
*/
|
|
83
74
|
private restoreItems;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Create random ID
|
|
3
|
-
*
|
|
4
3
|
* @param {string} prefix add prefix to created ID
|
|
5
4
|
* @param {number} length ID length
|
|
6
5
|
* @returns {string} ID
|
|
@@ -15,42 +14,36 @@ export declare class ClassList {
|
|
|
15
14
|
constructor(classlist?: string[]);
|
|
16
15
|
/**
|
|
17
16
|
* Add class
|
|
18
|
-
*
|
|
19
17
|
* @param {string} className class name to add
|
|
20
18
|
* @returns {void}
|
|
21
19
|
*/
|
|
22
20
|
add: (className: string) => void;
|
|
23
21
|
/**
|
|
24
22
|
* Delete class
|
|
25
|
-
*
|
|
26
23
|
* @param {string} className class name to delete
|
|
27
24
|
* @returns {void}
|
|
28
25
|
*/
|
|
29
26
|
delete: (className: string) => void;
|
|
30
27
|
/**
|
|
31
28
|
* Check if class exist in list
|
|
32
|
-
*
|
|
33
29
|
* @param {string} className class name to check
|
|
34
30
|
* @returns {boolean} class name is in the list
|
|
35
31
|
*/
|
|
36
32
|
has: (className: string) => boolean;
|
|
37
33
|
/**
|
|
38
34
|
* Join classes seperated by spaces
|
|
39
|
-
*
|
|
40
35
|
* @returns {string} joined values
|
|
41
36
|
*/
|
|
42
37
|
join: () => string;
|
|
43
38
|
}
|
|
44
39
|
/**
|
|
45
40
|
* Check if all items are string
|
|
46
|
-
*
|
|
47
41
|
* @param {unknown} items items to check
|
|
48
42
|
* @returns {boolean} all items are string
|
|
49
43
|
*/
|
|
50
44
|
export declare const allItemsAreString: (items: unknown) => items is string[];
|
|
51
45
|
/**
|
|
52
46
|
* Check if element is a heading
|
|
53
|
-
*
|
|
54
47
|
* @param {Element} element slotted element
|
|
55
48
|
* @param {string[]} tagNames allowed tag names list
|
|
56
49
|
* @returns {boolean} element is a heading
|
|
@@ -61,14 +54,13 @@ export declare const isTagName: (element: Element, tagNames: string[]) => boolea
|
|
|
61
54
|
*/
|
|
62
55
|
export declare const focusableElements = "a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier]";
|
|
63
56
|
/**
|
|
64
|
-
*
|
|
57
|
+
* Get windows
|
|
65
58
|
* @param {Window} localWindow the window we are lookink for other windows
|
|
66
59
|
* @returns {Window[]} The list of windows found
|
|
67
60
|
*/
|
|
68
61
|
export declare const getWindows: (localWindow: Window) => Window[];
|
|
69
62
|
/**
|
|
70
63
|
* Get parent windows
|
|
71
|
-
*
|
|
72
64
|
* @param {Window} localWindow the window we are lookink for parents
|
|
73
65
|
* @param {Window[]} windows The list of allready found windows
|
|
74
66
|
* @returns {Window[]} The list of windows found
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Format number to the locale currency
|
|
3
|
-
*
|
|
4
3
|
* @param {number} number number to format
|
|
5
4
|
* @param {string} locale locale to apply
|
|
6
5
|
* @param {string} currency currency to apply
|
|
@@ -9,7 +8,6 @@
|
|
|
9
8
|
export declare const localeCurrency: (number: number, locale: string, currency: string) => string;
|
|
10
9
|
/**
|
|
11
10
|
* Format number to locale
|
|
12
|
-
*
|
|
13
11
|
* @param {number} number number to format
|
|
14
12
|
* @param {string} locale locale to apply
|
|
15
13
|
* @returns {string} formatted number
|
|
@@ -21,7 +19,6 @@ export declare const localeNumber: (number: number, locale: string) => string;
|
|
|
21
19
|
export declare const dateRegExp: RegExp;
|
|
22
20
|
/**
|
|
23
21
|
* Locale date format
|
|
24
|
-
*
|
|
25
22
|
* @param {string} date date to format
|
|
26
23
|
* @param {string} locale locale to apply
|
|
27
24
|
* @returns {string} formatted date
|
|
@@ -30,7 +27,6 @@ export declare const localeDate: (date: string, locale: string) => string;
|
|
|
30
27
|
/**
|
|
31
28
|
* Get locale and messages
|
|
32
29
|
* We load the defined locale but for now we only support the first subtag for messages
|
|
33
|
-
*
|
|
34
30
|
* @param {HTMLElement} element element we need to get the language
|
|
35
31
|
* @param {unknown} messages messages to use
|
|
36
32
|
* @param {string} defaultLocale default messages locale
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { MockCustomEvent } from '@stencil/core/mock-doc';
|
|
2
2
|
/**
|
|
3
3
|
* Clone Deep function
|
|
4
|
-
*
|
|
5
4
|
* @param {unknown} obj object to clone
|
|
6
5
|
* @returns {unknown} cloned json
|
|
7
6
|
*/
|
|
8
7
|
export declare const cloneDeep: (obj: unknown) => unknown;
|
|
9
8
|
/**
|
|
10
9
|
* Utility function that mocks the `MutationObserver` API. Recommended to execute inside `beforeEach`.
|
|
11
|
-
*
|
|
12
10
|
* @param mutationObserverMock - Parameter that is sent to the `Object.defineProperty`
|
|
13
11
|
* overwrite method. `jest.fn()` mock functions can be passed here if the goal is to not only
|
|
14
12
|
* mock the mutation observer, but its methods.
|
|
@@ -37,7 +35,6 @@ type SetupMutationObserverMockParams = {
|
|
|
37
35
|
export declare const setupMutationObserverMock: ({ disconnect, observe, takeRecords }: SetupMutationObserverMockParams) => typeof MutationObserver;
|
|
38
36
|
/**
|
|
39
37
|
* Utility function that mocks the `ResizeObserver` API. Recommended to execute inside `beforeEach`.
|
|
40
|
-
*
|
|
41
38
|
* @param resizeObserverMock - Parameter that is sent to the `Object.defineProperty`
|
|
42
39
|
* overwrite method. `jest.fn()` mock functions can be passed here if the goal is to not only
|
|
43
40
|
* mock the resize observer, but its methods.
|
|
@@ -70,7 +67,6 @@ type setupResizeObserverMockParams = {
|
|
|
70
67
|
export declare const setupResizeObserverMock: ({ disconnect, observe }: setupResizeObserverMockParams) => typeof ResizeObserver;
|
|
71
68
|
/**
|
|
72
69
|
* Utility function that mocks the `SubmitEvent` API. Recommended to execute inside `beforeEach`.
|
|
73
|
-
*
|
|
74
70
|
* @returns {void}
|
|
75
71
|
* @example
|
|
76
72
|
* ```
|
|
@@ -80,7 +76,6 @@ export declare const setupResizeObserverMock: ({ disconnect, observe }: setupRes
|
|
|
80
76
|
export declare const setupSubmitEventMock: () => typeof MockCustomEvent;
|
|
81
77
|
/**
|
|
82
78
|
* force popover id when component use randomed identifier
|
|
83
|
-
*
|
|
84
79
|
* @param {Element} component element wich include mg-popover
|
|
85
80
|
* @param {string} id new fixed id
|
|
86
81
|
* @param {string} interactiveElement element where attribute 'aria-controls' is set
|
|
@@ -93,14 +88,12 @@ export declare const forcePopoverId: (component: Element, id: string, interactiv
|
|
|
93
88
|
* this is due to internal function isHTMLElement(), so we can not mock it directly.
|
|
94
89
|
* this function check if test DOM element mockHTMLElement instance is 'instanceof HTMLElement'
|
|
95
90
|
* so we only override the console.error side effect for this error
|
|
96
|
-
*
|
|
97
91
|
* @returns {void}
|
|
98
92
|
*/
|
|
99
93
|
export declare const mockConsoleError: () => void;
|
|
100
94
|
/**
|
|
101
95
|
* Add missing window.frames property to test context
|
|
102
96
|
* usefull for component with iframe listeners, ex: mg-popover
|
|
103
|
-
*
|
|
104
97
|
* @returns {void}
|
|
105
98
|
*/
|
|
106
99
|
export declare const mockWindowFrames: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mgdis/mg-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
4
4
|
"description": "MG Components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/core": "^7.20.12",
|
|
32
32
|
"@babel/plugin-transform-react-jsx": "^7.20.13",
|
|
33
|
+
"@playwright/test": "^1.33.0",
|
|
33
34
|
"@pxtrn/storybook-addon-docs-stencil": "^6.4.1",
|
|
34
|
-
"@stencil/eslint-plugin": "^0.4.0",
|
|
35
35
|
"@stencil/sass": "^1.5.2",
|
|
36
36
|
"@storybook/addon-a11y": "^6.5.16",
|
|
37
37
|
"@storybook/addon-actions": "^6.5.16",
|
|
@@ -43,31 +43,29 @@
|
|
|
43
43
|
"@types/jest": "npm:@types/jest@^26",
|
|
44
44
|
"@types/jest-image-snapshot": "^4.3.2",
|
|
45
45
|
"@types/node": "^18.14.0",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
47
|
-
"@typescript-eslint/parser": "^4.33.0",
|
|
48
46
|
"babel-loader": "^8.3.0",
|
|
49
47
|
"babel-plugin-jsx-pragmatic": "^1.0.2",
|
|
50
48
|
"chromatic": "^6.15.0",
|
|
51
49
|
"css-loader": "^5.2.7",
|
|
52
|
-
"eslint": "^
|
|
53
|
-
"eslint-plugin-
|
|
54
|
-
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
55
|
-
"eslint-plugin-react": "^7.32.2",
|
|
56
|
-
"eslint-plugin-storybook": "^0.6.10",
|
|
50
|
+
"eslint": "^8.39.0",
|
|
51
|
+
"eslint-plugin-storybook": "^0.6.11",
|
|
57
52
|
"jest": "npm:jest@^26",
|
|
58
53
|
"jest-cli": "npm:jest-cli@^26",
|
|
59
54
|
"jest-image-snapshot": "^4.5.1",
|
|
60
55
|
"jest-junit": "^15.0.0",
|
|
61
56
|
"jsx-dom": "^8.0.4",
|
|
62
57
|
"npm-run-all": "^4.1.5",
|
|
58
|
+
"playwright-config": "^1.0.0",
|
|
63
59
|
"prettier": "^2.8.4",
|
|
64
60
|
"puppeteer": "^13.7.0",
|
|
65
61
|
"sass": "^1.58.0",
|
|
66
62
|
"sass-loader": "^10.4.1",
|
|
67
63
|
"style-loader": "^2.0.0",
|
|
68
64
|
"ts-node": "^10.9.1",
|
|
69
|
-
"
|
|
70
|
-
"
|
|
65
|
+
"typescript": "^4.9.5",
|
|
66
|
+
"@mgdis/linting-stencil": "1.0.0",
|
|
67
|
+
"eslint-config-stencil": "1.0.0",
|
|
68
|
+
"tsconfig": "1.0.0"
|
|
71
69
|
},
|
|
72
70
|
"license": "BSD-3-Clause",
|
|
73
71
|
"scripts": {
|
|
@@ -82,10 +80,11 @@
|
|
|
82
80
|
"test": "TZ=UTC stencil test --spec --e2e",
|
|
83
81
|
"test:unit": "TZ=UTC stencil test --spec --collectCoverage",
|
|
84
82
|
"test:e2e": "stencil test --e2e",
|
|
83
|
+
"test:e2e:playwright": "pnpm dlx playwright test",
|
|
85
84
|
"test:watch": "stencil test --spec --e2e --watchAll",
|
|
86
85
|
"generate": "stencil generate",
|
|
87
86
|
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
|
|
88
87
|
"storybook:build": "NODE_OPTIONS=--openssl-legacy-provider build-storybook",
|
|
89
|
-
"coverage": "TZ=UTC stencil test --spec --collectCoverage --reporters=\"default\" --reporters=\"jest-junit\""
|
|
88
|
+
"coverage": "TZ=UTC stencil test --spec --no-build --collectCoverage --reporters=\"default\" --reporters=\"jest-junit\""
|
|
90
89
|
}
|
|
91
90
|
}
|
|
File without changes
|