@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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { LinkProps } from '../missing-type-exports';
3
- export declare type Props = Merge<LinkProps, {
3
+ export type Props = Merge<LinkProps, {
4
4
  parent: {
5
5
  id: string;
6
6
  title: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { DrawerProps, ItemListProps } from '../missing-type-exports';
3
- declare type Props = Merge<ItemListProps, DrawerProps>;
3
+ type Props = Merge<ItemListProps, DrawerProps>;
4
4
  declare const DrawerList: React.FC<Props>;
5
5
  export default DrawerList;
@@ -1,6 +1,6 @@
1
1
  import { ItemRenderer } from '@telia-ace/widget-ui';
2
2
  import React from 'react';
3
- declare type Props = {
3
+ type Props = {
4
4
  trigger: React.ReactElement;
5
5
  header?: React.ReactElement;
6
6
  items?: any[];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { DropdownProps, ItemListProps } from '../missing-type-exports';
3
- export declare type Props = Merge<DropdownProps, ItemListProps>;
3
+ export type Props = Merge<DropdownProps, ItemListProps>;
4
4
  declare const DropdownList: React.FC<Props>;
5
5
  export default DropdownList;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FavoriteActions } from '../hooks';
3
- declare type Props = {
3
+ type Props = {
4
4
  isFavorite: boolean;
5
5
  actions: FavoriteActions;
6
6
  id: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  onFeedback?: (feedback: 'positive' | 'negative') => void;
4
4
  positive?: string;
5
5
  negative?: string;
@@ -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
- declare type Routing = {
6
+ type Routing = {
7
7
  guide?: string;
8
8
  page?: string;
9
9
  };
10
- declare type ParamMappers = {
10
+ type ParamMappers = {
11
11
  guide?: (guide: Guide) => Params;
12
12
  page?: () => Params;
13
13
  };
14
- export declare type Props = {
14
+ export type Props = {
15
15
  paramMappers?: ParamMappers;
16
16
  routing?: Routing;
17
17
  pageLabel?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  loading: boolean | undefined;
4
4
  };
5
5
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
@@ -1,6 +1,6 @@
1
1
  import { DateFormats } from '@telia-ace/widget-ui';
2
2
  import React from 'react';
3
- export declare type Props = {
3
+ export type Props = {
4
4
  className?: string;
5
5
  modified?: string;
6
6
  published?: string;
@@ -1,7 +1,7 @@
1
1
  import { Notification } from '@telia-ace/knowledge-widget-core';
2
2
  import { Symbol } from '@telia-ace/widget-ui';
3
3
  import React from 'react';
4
- declare type Props = {
4
+ type Props = {
5
5
  className?: string;
6
6
  showHeader?: boolean;
7
7
  loading: boolean;
@@ -1,3 +1,3 @@
1
- declare type ArrowKey = 'up' | 'down' | 'left' | 'right';
1
+ type ArrowKey = 'up' | 'down' | 'left' | 'right';
2
2
  declare const useArrowKeys: () => ArrowKey | null;
3
3
  export default useArrowKeys;
@@ -1,4 +1,4 @@
1
- export declare type FavoriteActions = {
1
+ export type FavoriteActions = {
2
2
  addFavorite: (guideId: string) => Promise<string[]>;
3
3
  clearFavorites: () => Promise<string[]>;
4
4
  removeFavorite: (guideId: string) => Promise<string[]>;
@@ -1,6 +1,6 @@
1
1
  import { DrawerAnimationType, HtmlParseInstruction, ItemRenderer } from '@telia-ace/widget-ui';
2
2
  import { ReactElement } from 'react';
3
- export declare type LinkProps = Merge<React.ComponentProps<'a'>, {
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 declare type DrawerProps = {
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 declare type ListProps = Merge<React.ComponentProps<'ul'>, {
23
+ export type ListProps = Merge<React.ComponentProps<'ul'>, {
24
24
  renderItem: ItemRenderer;
25
25
  items: any[];
26
26
  renderLi?: boolean;
27
27
  }>;
28
- export declare type HtmlProps = Merge<React.ComponentProps<'div'>, {
28
+ export type HtmlProps = Merge<React.ComponentProps<'div'>, {
29
29
  html: string;
30
30
  htmlParseInstruction?: HtmlParseInstruction;
31
31
  }>;
32
- export declare type ParagraphProps = Merge<HtmlProps, {
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 declare type ItemListProps = Merge<ListProps, ParagraphProps> & {
38
+ export type ItemListProps = Merge<ListProps, ParagraphProps> & {
39
39
  customHeader?: any;
40
40
  ulProps?: any;
41
41
  };
42
- export declare type DropdownProps = {
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.29",
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.23",
25
- "@telia-ace/widget-routing": "^1.0.18",
26
- "@telia-ace/widget-ui": "^1.0.24",
27
- "@telia-ace/widget-utilities": "^1.0.6",
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.8",
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",