@lumx/core 4.4.0 → 4.4.1-alpha.1
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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SetupOptions } from '../../../testing';
|
|
2
|
+
/**
|
|
3
|
+
* Mounts the component and returns common DOM elements / data needed in multiple tests further down.
|
|
4
|
+
*/
|
|
5
|
+
export declare const setup: (propsOverride: any | undefined, { render, ...options }: SetupOptions<any>) => {
|
|
6
|
+
props: any;
|
|
7
|
+
avatar: HTMLElement;
|
|
8
|
+
wrapper: Partial<import("../../../testing").SetupResult>;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: (renderOptions: SetupOptions<any>) => void;
|
|
11
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/lumapps/design-system/issues"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@lumx/icons": "^4.4.
|
|
9
|
+
"@lumx/icons": "^4.4.1-alpha.1",
|
|
10
10
|
"classnames": "^2.3.2",
|
|
11
11
|
"focus-visible": "^5.0.2",
|
|
12
12
|
"lodash": "4.17.23",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
|
|
67
67
|
},
|
|
68
68
|
"sideEffects": false,
|
|
69
|
-
"version": "4.4.
|
|
69
|
+
"version": "4.4.1-alpha.1",
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
72
72
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -89,5 +89,6 @@
|
|
|
89
89
|
"vite": "^7.3.1",
|
|
90
90
|
"vite-tsconfig-paths": "^5.1.4",
|
|
91
91
|
"vitest": "^4.0.18"
|
|
92
|
-
}
|
|
92
|
+
},
|
|
93
|
+
"stableVersion": "4.4.0"
|
|
93
94
|
}
|
package/stories/types.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export type SetupStoriesOptions<TConfig extends {
|
|
|
32
32
|
overrides?: string;
|
|
33
33
|
decorators?: keyof StoryDecorators;
|
|
34
34
|
components?: Record<string, any>;
|
|
35
|
+
argsConverter?: (props: any) => any;
|
|
35
36
|
} = Record<string, never>> = SetupStoriesBaseOptions & (TConfig extends {
|
|
36
37
|
overrides: infer O extends string;
|
|
37
38
|
} ? {
|
|
@@ -44,5 +45,9 @@ export type SetupStoriesOptions<TConfig extends {
|
|
|
44
45
|
components: infer C;
|
|
45
46
|
} ? {
|
|
46
47
|
components: C;
|
|
48
|
+
} : unknown) & (TConfig extends {
|
|
49
|
+
argsConverter: infer A;
|
|
50
|
+
} ? {
|
|
51
|
+
argsConverter: A;
|
|
47
52
|
} : unknown);
|
|
48
53
|
export {};
|