@telia-ace/knowledge-widget-ui 1.3.31-rc.0 → 1.3.32
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/components/dialog-list.d.ts +2 -1
- package/components/dropdown-actions.d.ts +3 -2
- package/components/favorite-button.d.ts +2 -1
- package/components/feedback.d.ts +2 -1
- package/components/guide-list.d.ts +5 -4
- package/components/loader.d.ts +4 -3
- package/components/metadata.d.ts +3 -2
- package/components/notification-list.d.ts +4 -3
- package/index.d.ts +2 -1
- package/package.json +4 -4
- package/styles.d.ts +7 -8
- package/utils/embedded-link-mapper.d.ts +1 -0
- package/utils/guide-render-instructions.d.ts +1 -0
- package/components/dialog-link.d.ts +0 -13
- package/components/drawer-list.d.ts +0 -5
- package/components/dropdown-list.d.ts +0 -5
- package/missing-type-exports.d.ts +0 -47
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ItemRenderer } from '
|
|
2
|
-
import React from 'react';
|
|
1
|
+
import { ItemRenderer } from '../../../../ui/src/index.ts';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
3
4
|
type Props = {
|
|
4
5
|
trigger: React.ReactElement;
|
|
5
6
|
header?: React.ReactElement;
|
package/components/feedback.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Guide } from '
|
|
2
|
-
import { DispatchAction, ItemRenderer } from '
|
|
3
|
-
import { Params } from '
|
|
4
|
-
import React from 'react';
|
|
1
|
+
import { Guide } from '../../../core/src/index.ts';
|
|
2
|
+
import { DispatchAction, ItemRenderer } from '../../../../ui/src/index.ts';
|
|
3
|
+
import { Params } from '../../../../utilities/src/index.ts';
|
|
4
|
+
import { default as React } from 'react';
|
|
5
5
|
import { Props as MetadataProps } from './metadata';
|
|
6
|
+
|
|
6
7
|
type Routing = {
|
|
7
8
|
guide?: string;
|
|
8
9
|
page?: string;
|
package/components/loader.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
2
3
|
type Props = {
|
|
3
4
|
loading: boolean | undefined;
|
|
4
5
|
};
|
|
5
|
-
export declare const Wrapper: import(
|
|
6
|
-
theme?: import(
|
|
6
|
+
export declare const Wrapper: import('@emotion/styled').StyledComponent<{
|
|
7
|
+
theme?: import('@emotion/react').Theme | undefined;
|
|
7
8
|
as?: React.ElementType<any> | undefined;
|
|
8
9
|
} & {
|
|
9
10
|
'data-loading': boolean;
|
package/components/metadata.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Notification } from '
|
|
2
|
-
import { Symbol } from '
|
|
3
|
-
import React from 'react';
|
|
1
|
+
import { Notification } from '../../../core/src/index.ts';
|
|
2
|
+
import { Symbol } from '../../../../ui/src/index.ts';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
|
|
4
5
|
type Props = {
|
|
5
6
|
className?: string;
|
|
6
7
|
showHeader?: boolean;
|
package/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { AccordionListItem, DialogLink, DialogList, DrawerList, DropdownActions,
|
|
|
2
2
|
import { FavoriteActions, useArrowKeys, useDebounce, useFavorites, useHover } from './hooks';
|
|
3
3
|
import { loadingOpacity, SmallCaret, StyledHeaderText, StyledListButton } from './styles';
|
|
4
4
|
import { guideRenderInstructions } from './utils';
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
export * from '../../../ui/src/index.ts';
|
|
6
7
|
export { useFavorites, useDebounce, useArrowKeys, useHover, guideRenderInstructions, Metadata, NotificationList, AccordionListItem, GuideList, DialogLink, DialogList, FavoriteButton, Feedback, Loader, LoaderWrapper, DrawerList, DropdownActions, DropdownList, SmallCaret, StyledHeaderText, StyledListButton, loadingOpacity, };
|
|
7
8
|
export type { FavoriteActions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.32",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@telia-ace/knowledge-widget-core": "^1.3.
|
|
14
|
-
"@telia-ace/widget-ui": "^1.3.
|
|
15
|
-
"@telia-ace/widget-utilities": "^1.3.
|
|
13
|
+
"@telia-ace/knowledge-widget-core": "^1.3.32",
|
|
14
|
+
"@telia-ace/widget-ui": "^1.3.32",
|
|
15
|
+
"@telia-ace/widget-utilities": "^1.3.32",
|
|
16
16
|
"@webprovisions/platform": "^1.1.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
package/styles.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const loadingOpacity: (p: {
|
|
3
2
|
'data-loading': boolean;
|
|
4
|
-
}) => import(
|
|
5
|
-
export declare const SmallCaret: import(
|
|
6
|
-
ref?: import(
|
|
3
|
+
}) => import('@emotion/react').SerializedStyles;
|
|
4
|
+
export declare const SmallCaret: import('@emotion/styled').StyledComponent<any, {}, {
|
|
5
|
+
ref?: import('react').Ref<any> | undefined;
|
|
7
6
|
}>;
|
|
8
|
-
export declare const StyledHeaderText: import(
|
|
9
|
-
ref?: import(
|
|
7
|
+
export declare const StyledHeaderText: import('@emotion/styled').StyledComponent<any, {}, {
|
|
8
|
+
ref?: import('react').Ref<any> | undefined;
|
|
10
9
|
}>;
|
|
11
|
-
export declare const StyledListButton: import(
|
|
12
|
-
ref?: import(
|
|
10
|
+
export declare const StyledListButton: import('@emotion/styled').StyledComponent<any, {}, {
|
|
11
|
+
ref?: import('react').Ref<any> | undefined;
|
|
13
12
|
}>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { LinkProps } from '../missing-type-exports';
|
|
3
|
-
export type Props = Merge<LinkProps, {
|
|
4
|
-
parent: {
|
|
5
|
-
id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
};
|
|
8
|
-
type: 'guide' | 'link' | 'default';
|
|
9
|
-
connection?: string;
|
|
10
|
-
connectionKey?: string;
|
|
11
|
-
}>;
|
|
12
|
-
declare const DialogLink: React.FC<Props>;
|
|
13
|
-
export default DialogLink;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { DrawerAnimationType, HtmlParseInstruction, ItemRenderer } from '@telia-ace/widget-ui';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
export type LinkProps = Merge<React.ComponentProps<'a'>, {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
routeName?: string;
|
|
6
|
-
params?: {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
9
|
-
to?: string;
|
|
10
|
-
}>;
|
|
11
|
-
export type DrawerProps = {
|
|
12
|
-
header?: string | React.ReactNode;
|
|
13
|
-
className?: string;
|
|
14
|
-
animation?: {
|
|
15
|
-
type: DrawerAnimationType;
|
|
16
|
-
duration?: number;
|
|
17
|
-
};
|
|
18
|
-
trigger: React.ReactElement;
|
|
19
|
-
fullScreen?: boolean;
|
|
20
|
-
closeButtonAriaLabel?: string;
|
|
21
|
-
onToggle?: (visible: boolean) => void;
|
|
22
|
-
};
|
|
23
|
-
export type ListProps = Merge<React.ComponentProps<'ul'>, {
|
|
24
|
-
renderItem: ItemRenderer;
|
|
25
|
-
items: any[];
|
|
26
|
-
renderLi?: boolean;
|
|
27
|
-
}>;
|
|
28
|
-
export type HtmlProps = Merge<React.ComponentProps<'div'>, {
|
|
29
|
-
html: string;
|
|
30
|
-
htmlParseInstruction?: HtmlParseInstruction;
|
|
31
|
-
}>;
|
|
32
|
-
export type ParagraphProps = Merge<HtmlProps, {
|
|
33
|
-
text?: string;
|
|
34
|
-
html?: string;
|
|
35
|
-
header?: string;
|
|
36
|
-
symbol?: Symbol;
|
|
37
|
-
}>;
|
|
38
|
-
export type ItemListProps = Merge<ListProps, ParagraphProps> & {
|
|
39
|
-
customHeader?: any;
|
|
40
|
-
ulProps?: any;
|
|
41
|
-
};
|
|
42
|
-
export type DropdownProps = {
|
|
43
|
-
className?: string;
|
|
44
|
-
children?: any;
|
|
45
|
-
trigger: ReactElement;
|
|
46
|
-
closeButtonAriaLabel?: string;
|
|
47
|
-
};
|