@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.
@@ -1,3 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLUListElement>>;
3
4
  export default _default;
@@ -1,5 +1,6 @@
1
- import { ItemRenderer } from '@telia-ace/widget-ui';
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;
@@ -1,5 +1,6 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { FavoriteActions } from '../hooks';
3
+
3
4
  type Props = {
4
5
  isFavorite: boolean;
5
6
  actions: FavoriteActions;
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export type Props = {
3
4
  onFeedback?: (feedback: 'positive' | 'negative') => void;
4
5
  positive?: string;
@@ -1,8 +1,9 @@
1
- import { Guide } from '@telia-ace/knowledge-widget-core';
2
- import { DispatchAction, ItemRenderer } from '@telia-ace/widget-ui';
3
- import { Params } from '@telia-ace/widget-utilities';
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;
@@ -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("@emotion/styled").StyledComponent<{
6
- theme?: import("@emotion/react").Theme | undefined;
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;
@@ -1,5 +1,6 @@
1
- import { DateFormats } from '@telia-ace/widget-ui';
2
- import React from 'react';
1
+ import { DateFormats } from '../../../../ui/src/index.ts';
2
+ import { default as React } from 'react';
3
+
3
4
  export type Props = {
4
5
  className?: string;
5
6
  modified?: string;
@@ -1,6 +1,7 @@
1
- import { Notification } from '@telia-ace/knowledge-widget-core';
2
- import { Symbol } from '@telia-ace/widget-ui';
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
- export * from '@telia-ace/widget-ui';
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.31-rc.0",
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.31-rc.0",
14
- "@telia-ace/widget-ui": "^1.3.31-rc.0",
15
- "@telia-ace/widget-utilities": "^1.3.31-rc.0",
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("@emotion/react").SerializedStyles;
5
- export declare const SmallCaret: import("@emotion/styled").StyledComponent<any, {}, {
6
- ref?: import("react").Ref<any> | undefined;
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("@emotion/styled").StyledComponent<any, {}, {
9
- ref?: import("react").Ref<any> | undefined;
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("@emotion/styled").StyledComponent<any, {}, {
12
- ref?: import("react").Ref<any> | undefined;
10
+ export declare const StyledListButton: import('@emotion/styled').StyledComponent<any, {}, {
11
+ ref?: import('react').Ref<any> | undefined;
13
12
  }>;
@@ -1,3 +1,4 @@
1
1
  import { Container } from '@webprovisions/platform';
2
+
2
3
  declare const embeddedLinkMapper: (container: Container) => ({ children, ...props }: any) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
3
4
  export default embeddedLinkMapper;
@@ -1,4 +1,5 @@
1
1
  import { Container } from '@webprovisions/platform';
2
+
2
3
  declare const guideRenderInstructions: (container: Container, dialog?: any[]) => {
3
4
  transform: {
4
5
  a: (attr: any) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -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,5 +0,0 @@
1
- import React from 'react';
2
- import { DrawerProps, ItemListProps } from '../missing-type-exports';
3
- type Props = Merge<ItemListProps, DrawerProps>;
4
- declare const DrawerList: React.FC<Props>;
5
- export default DrawerList;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { DropdownProps, ItemListProps } from '../missing-type-exports';
3
- export type Props = Merge<DropdownProps, ItemListProps>;
4
- declare const DropdownList: React.FC<Props>;
5
- export default DropdownList;
@@ -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
- };