@telia-ace/knowledge-widget-ui 1.0.29 → 1.0.30-next.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.
- package/dist/components/dialog-link.d.ts +1 -1
- package/dist/components/drawer-list.d.ts +1 -1
- package/dist/components/dropdown-actions.d.ts +1 -1
- package/dist/components/dropdown-list.d.ts +1 -1
- package/dist/components/favorite-button.d.ts +1 -1
- package/dist/components/feedback.d.ts +1 -1
- package/dist/components/guide-list.d.ts +3 -3
- package/dist/components/loader.d.ts +1 -1
- package/dist/components/metadata.d.ts +1 -1
- package/dist/components/notification-list.d.ts +1 -1
- package/dist/hooks/use-arrow-keys.d.ts +1 -1
- package/dist/hooks/use-favorites.d.ts +1 -1
- package/dist/missing-type-exports.d.ts +7 -7
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawerProps, ItemListProps } from '../missing-type-exports';
|
|
3
|
-
|
|
3
|
+
type Props = Merge<ItemListProps, DrawerProps>;
|
|
4
4
|
declare const DrawerList: React.FC<Props>;
|
|
5
5
|
export default DrawerList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownProps, ItemListProps } from '../missing-type-exports';
|
|
3
|
-
export
|
|
3
|
+
export type Props = Merge<DropdownProps, ItemListProps>;
|
|
4
4
|
declare const DropdownList: React.FC<Props>;
|
|
5
5
|
export default DropdownList;
|
|
@@ -3,15 +3,15 @@ import { DispatchAction, ItemRenderer } from '@telia-ace/widget-ui';
|
|
|
3
3
|
import { Params } from '@telia-ace/widget-utilities';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Props as MetadataProps } from './metadata';
|
|
6
|
-
|
|
6
|
+
type Routing = {
|
|
7
7
|
guide?: string;
|
|
8
8
|
page?: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type ParamMappers = {
|
|
11
11
|
guide?: (guide: Guide) => Params;
|
|
12
12
|
page?: () => Params;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type Props = {
|
|
15
15
|
paramMappers?: ParamMappers;
|
|
16
16
|
routing?: Routing;
|
|
17
17
|
pageLabel?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DrawerAnimationType, HtmlParseInstruction, ItemRenderer } from '@telia-ace/widget-ui';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type LinkProps = Merge<React.ComponentProps<'a'>, {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
routeName?: string;
|
|
6
6
|
params?: {
|
|
@@ -8,7 +8,7 @@ export declare type LinkProps = Merge<React.ComponentProps<'a'>, {
|
|
|
8
8
|
};
|
|
9
9
|
to?: string;
|
|
10
10
|
}>;
|
|
11
|
-
export
|
|
11
|
+
export type DrawerProps = {
|
|
12
12
|
header?: string | React.ReactNode;
|
|
13
13
|
className?: string;
|
|
14
14
|
animation?: {
|
|
@@ -20,26 +20,26 @@ export declare type DrawerProps = {
|
|
|
20
20
|
closeButtonAriaLabel?: string;
|
|
21
21
|
onToggle?: (visible: boolean) => void;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type ListProps = Merge<React.ComponentProps<'ul'>, {
|
|
24
24
|
renderItem: ItemRenderer;
|
|
25
25
|
items: any[];
|
|
26
26
|
renderLi?: boolean;
|
|
27
27
|
}>;
|
|
28
|
-
export
|
|
28
|
+
export type HtmlProps = Merge<React.ComponentProps<'div'>, {
|
|
29
29
|
html: string;
|
|
30
30
|
htmlParseInstruction?: HtmlParseInstruction;
|
|
31
31
|
}>;
|
|
32
|
-
export
|
|
32
|
+
export type ParagraphProps = Merge<HtmlProps, {
|
|
33
33
|
text?: string;
|
|
34
34
|
html?: string;
|
|
35
35
|
header?: string;
|
|
36
36
|
symbol?: Symbol;
|
|
37
37
|
}>;
|
|
38
|
-
export
|
|
38
|
+
export type ItemListProps = Merge<ListProps, ParagraphProps> & {
|
|
39
39
|
customHeader?: any;
|
|
40
40
|
ulProps?: any;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type DropdownProps = {
|
|
43
43
|
className?: string;
|
|
44
44
|
children?: any;
|
|
45
45
|
trigger: ReactElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30-next.1",
|
|
4
4
|
"description": "UI components used by ACE Knowledge Widgets.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@telia-ace/knowledge-widget-core": "^1.0.
|
|
25
|
-
"@telia-ace/widget-routing": "^1.0.
|
|
26
|
-
"@telia-ace/widget-ui": "^1.0.
|
|
27
|
-
"@telia-ace/widget-utilities": "^1.0.
|
|
24
|
+
"@telia-ace/knowledge-widget-core": "^1.0.24-next.1",
|
|
25
|
+
"@telia-ace/widget-routing": "^1.0.19-next.1",
|
|
26
|
+
"@telia-ace/widget-ui": "^1.0.25-next.1",
|
|
27
|
+
"@telia-ace/widget-utilities": "^1.0.7-next.1",
|
|
28
28
|
"@webprovisions/platform": "^1.1.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@emotion/react": "^11.10.5",
|
|
40
40
|
"@emotion/styled": "^11.10.5",
|
|
41
41
|
"@types/react": "^18.0.25",
|
|
42
|
-
"@types/react-dom": "^18.0.
|
|
42
|
+
"@types/react-dom": "^18.0.9",
|
|
43
43
|
"@types/react-router-dom": "^5.3.3",
|
|
44
44
|
"@types/react-transition-group": "^4.4.5",
|
|
45
45
|
"react": "^18.2.0",
|