@telia-ace/widget-ui 1.3.59 → 1.3.60-rc.0

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.
Files changed (64) hide show
  1. package/components/anchor-link.d.ts +0 -1
  2. package/components/button.d.ts +0 -1
  3. package/components/checkbox.d.ts +0 -1
  4. package/components/drawer/drawer.d.ts +0 -1
  5. package/components/drawer/index.d.ts +0 -1
  6. package/components/dropdown/dropdown.d.ts +0 -1
  7. package/components/dropdown/index.d.ts +0 -1
  8. package/components/empty.d.ts +0 -1
  9. package/components/grid.d.ts +1 -5
  10. package/components/html.d.ts +1 -5
  11. package/components/icon.d.ts +0 -1
  12. package/components/input.d.ts +1 -8
  13. package/components/item-list.d.ts +1 -2
  14. package/components/item-tree.d.ts +0 -1
  15. package/components/lightbox.d.ts +0 -1
  16. package/components/link.d.ts +1 -10
  17. package/components/list.d.ts +1 -6
  18. package/components/loader.d.ts +0 -1
  19. package/components/modal/confirm.d.ts +0 -1
  20. package/components/modal/index.d.ts +0 -1
  21. package/components/modal/modal.d.ts +1 -8
  22. package/components/not-found.d.ts +0 -1
  23. package/components/overlay.d.ts +0 -1
  24. package/components/paragraph.d.ts +1 -10
  25. package/components/portal.d.ts +0 -1
  26. package/components/route-link.d.ts +1 -10
  27. package/components/symbol-badge.d.ts +0 -1
  28. package/components/tab-stop.d.ts +0 -1
  29. package/components/text-link.d.ts +1 -13
  30. package/components/text.d.ts +0 -1
  31. package/components/timestamp.d.ts +0 -1
  32. package/components/tooltip.d.ts +0 -1
  33. package/components/transition-component.d.ts +0 -1
  34. package/components/typography.d.ts +0 -1
  35. package/components/widget-link.d.ts +1 -15
  36. package/components/widget-overlay-outlet.d.ts +0 -1
  37. package/components/zoomable-img.d.ts +0 -1
  38. package/contexts/index.d.ts +2 -3
  39. package/create-react-component.d.ts +1 -2
  40. package/hooks/use-action.d.ts +0 -1
  41. package/hooks/use-children.d.ts +1 -2
  42. package/hooks/use-component-descriptor.d.ts +1 -1
  43. package/hooks/use-component-node.d.ts +1 -2
  44. package/hooks/use-component-platform.d.ts +1 -2
  45. package/hooks/use-component.d.ts +0 -1
  46. package/hooks/use-context.d.ts +1 -2
  47. package/hooks/use-events.d.ts +0 -1
  48. package/hooks/use-layout.d.ts +1 -2
  49. package/hooks/use-properties.d.ts +1 -2
  50. package/hooks/use-render-state.d.ts +1 -2
  51. package/hooks/use-route-data.d.ts +1 -2
  52. package/hooks/use-router.d.ts +1 -2
  53. package/hooks/use-settings.d.ts +1 -2
  54. package/hooks/use-widget-event.d.ts +0 -1
  55. package/index.d.ts +0 -1
  56. package/package.json +4 -4
  57. package/styles.d.ts +0 -1
  58. package/utils/animations.d.ts +0 -1
  59. package/utils/create-empty-component.d.ts +0 -1
  60. package/utils/embedded-link-mapper.d.ts +0 -1
  61. package/utils/generic-hash-link.d.ts +0 -1
  62. package/utils/heading-styles.d.ts +0 -1
  63. package/utils/process-html-string.d.ts +1 -1
  64. package/utils/render-instructions.d.ts +0 -1
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { GenericHashLinkProps } from '../utils';
3
-
4
3
  declare const AnchorLink: React.FC<GenericHashLinkProps>;
5
4
  export default AnchorLink;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = React.ComponentProps<'button'>;
4
3
  declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
4
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = Merge<React.ComponentProps<'input'>, {
4
3
  onChange?: (value: string, checked: boolean) => void;
5
4
  onEnter?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare enum AnimationType {
4
3
  SlideInLeft = "slide-in-left",
5
4
  SlideInRight = "slide-in-right",
@@ -1,4 +1,3 @@
1
1
  import { default as Drawer, AnimationType } from './drawer';
2
-
3
2
  export { AnimationType };
4
3
  export default Drawer;
@@ -1,5 +1,4 @@
1
1
  import { default as React, ReactElement } from 'react';
2
-
3
2
  export type Props = {
4
3
  className?: string;
5
4
  children?: any;
@@ -1,5 +1,4 @@
1
1
  import { default as Dropdown } from './dropdown';
2
-
3
2
  export type { Props } from './dropdown';
4
3
  export { default as useCursorPosition } from './use-position';
5
4
  export default Dropdown;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = {};
4
3
  declare const Empty: React.FC<Props>;
5
4
  export default Empty;
@@ -1,11 +1,7 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = Merge<React.ComponentProps<'div'>, {
4
3
  columns: number;
5
4
  gap: string;
6
5
  }>;
7
- declare const _default: React.ForwardRefExoticComponent<Omit<Merge<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
8
- columns: number;
9
- gap: string;
10
- }>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
7
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type HtmlParseInstruction = {
4
3
  transform: {
5
4
  [htmlTag: string]: (props: any) => JSX.Element;
@@ -9,8 +8,5 @@ export type Props = Merge<React.ComponentProps<'div'>, {
9
8
  html: string;
10
9
  htmlParseInstruction?: HtmlParseInstruction;
11
10
  }>;
12
- declare const _default: React.ForwardRefExoticComponent<Omit<Merge<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
13
- html: string;
14
- htmlParseInstruction?: HtmlParseInstruction;
15
- }>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
12
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = Merge<React.HTMLProps<HTMLElement>, {
4
3
  className?: string;
5
4
  faIcon: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = Merge<React.ComponentProps<'input'>, {
4
3
  onChange?: (value: string) => void;
5
4
  onEnter?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
@@ -7,11 +6,5 @@ export type Props = Merge<React.ComponentProps<'input'>, {
7
6
  onFocusChange?: (focused: boolean) => void;
8
7
  selectAllOnFocus?: boolean;
9
8
  }>;
10
- declare const _default: React.ForwardRefExoticComponent<Omit<Merge<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
11
- onChange?: (value: string) => void;
12
- onEnter?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
13
- onEscape?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
14
- onFocusChange?: (focused: boolean) => void;
15
- selectAllOnFocus?: boolean;
16
- }>, "ref"> & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
9
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
17
10
  export default _default;
@@ -1,11 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as ListProps } from './list';
3
3
  import { Props as ParagraphProps } from './paragraph';
4
-
5
4
  export type ItemListProps = {
6
5
  customHeader?: any;
7
6
  ulProps?: any;
8
7
  };
9
8
  export type Props = Merge<ListProps, ParagraphProps> & ItemListProps;
10
- declare const _default: React.ForwardRefExoticComponent<any>;
9
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
10
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = {
4
3
  className?: string;
5
4
  tree?: any[];
@@ -1,5 +1,4 @@
1
1
  import { default as React, FC } from 'react';
2
-
3
2
  export type Props = {
4
3
  attrs: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
5
4
  htmlBody: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React, ElementType } from 'react';
2
-
3
2
  export type Props = Merge<React.ComponentProps<'a'>, {
4
3
  disabled?: boolean;
5
4
  routeName?: string;
@@ -9,13 +8,5 @@ export type Props = Merge<React.ComponentProps<'a'>, {
9
8
  to?: string;
10
9
  as?: ElementType<any>;
11
10
  }>;
12
- declare const _default: React.ForwardRefExoticComponent<Omit<Merge<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
13
- disabled?: boolean;
14
- routeName?: string;
15
- params?: {
16
- [key: string]: any;
17
- };
18
- to?: string;
19
- as?: ElementType<any>;
20
- }>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
11
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
21
12
  export default _default;
@@ -1,14 +1,9 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type ItemRenderer = (item: any, index: number, items: any[], defaultRenderer?: ItemRenderer) => React.ReactNode;
4
3
  export type Props = Merge<React.ComponentProps<'ul'>, {
5
4
  renderItem: ItemRenderer;
6
5
  items: any[];
7
6
  renderLi?: boolean;
8
7
  }>;
9
- declare const _default: React.ForwardRefExoticComponent<Omit<Merge<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {
10
- renderItem: ItemRenderer;
11
- items: any[];
12
- renderLi?: boolean;
13
- }>, "ref"> & React.RefAttributes<HTMLUListElement>>;
8
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLUListElement>>;
14
9
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  type Props = {
4
3
  className?: string;
5
4
  loading: boolean | undefined;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as ModalProps } from './modal';
3
-
4
3
  type Props = Merge<{
5
4
  header?: string;
6
5
  text?: string;
@@ -1,5 +1,4 @@
1
1
  import { default as Modal } from './modal';
2
-
3
2
  export { default as Confirm } from './confirm';
4
3
  export type { Props as ModalProps } from './modal';
5
4
  export default Modal;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = Merge<{
4
3
  trigger: React.ReactElement;
5
4
  className?: string;
@@ -7,11 +6,5 @@ export type Props = Merge<{
7
6
  close?: boolean;
8
7
  children?: React.ReactNode;
9
8
  }, React.ComponentProps<'div'>>;
10
- declare const Modal: React.ForwardRefExoticComponent<Omit<Merge<{
11
- trigger: React.ReactElement;
12
- className?: string;
13
- onOverlayClick?: (e: React.MouseEvent) => void;
14
- close?: boolean;
15
- children?: React.ReactNode;
16
- }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "ref"> & React.RefAttributes<any>>;
9
+ declare const Modal: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<any>>;
17
10
  export default Modal;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = {
4
3
  header?: string;
5
4
  link?: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = {
4
3
  duration?: number;
5
4
  visible: boolean;
@@ -1,19 +1,10 @@
1
1
  import { Props as HtmlProps } from './html';
2
2
  import { Symbol } from './symbol-badge';
3
-
4
3
  export type Props = Merge<HtmlProps, {
5
4
  text?: string;
6
5
  html?: string;
7
6
  header?: string;
8
7
  symbol?: Symbol;
9
8
  }>;
10
- declare const _default: import('react').ForwardRefExoticComponent<Omit<Merge<Merge<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
11
- html: string;
12
- htmlParseInstruction?: import('./html').HtmlParseInstruction;
13
- }>, {
14
- text?: string;
15
- html?: string;
16
- header?: string;
17
- symbol?: Symbol;
18
- }>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
9
+ declare const _default: import('react').ForwardRefExoticComponent<Omit<Props, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
19
10
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  export type Props = {
4
3
  elementId?: string;
5
4
  parent?: Element | HTMLElement;
@@ -1,5 +1,4 @@
1
1
  import { default as React, ElementType } from 'react';
2
-
3
2
  export type Props = Merge<React.ComponentProps<'a'>, {
4
3
  disabled?: boolean;
5
4
  name?: string;
@@ -9,13 +8,5 @@ export type Props = Merge<React.ComponentProps<'a'>, {
9
8
  to?: string;
10
9
  as?: ElementType<any>;
11
10
  }>;
12
- declare const _default: React.ForwardRefExoticComponent<Omit<Merge<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
13
- disabled?: boolean;
14
- name?: string;
15
- params?: {
16
- [key: string]: any;
17
- };
18
- to?: string;
19
- as?: ElementType<any>;
20
- }>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
11
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
21
12
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Symbol = {
4
3
  type: 'Uri' | 'Svg' | 'FontAwesome' | 'Text' | string;
5
4
  content: string;
@@ -1,6 +1,5 @@
1
1
  import { Container } from '@webprovisions/platform';
2
2
  import { Component } from 'react';
3
-
4
3
  export type Props = {
5
4
  container: Container;
6
5
  };
@@ -1,20 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as LinkProps } from './link';
3
-
4
3
  export type Props = Merge<LinkProps, {
5
4
  text: string;
6
5
  description?: string;
7
6
  }>;
8
- declare const _default: React.ForwardRefExoticComponent<Omit<Merge<Merge<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
9
- disabled?: boolean;
10
- routeName?: string;
11
- params?: {
12
- [key: string]: any;
13
- };
14
- to?: string;
15
- as?: React.ElementType<any>;
16
- }>, {
17
- text: string;
18
- description?: string;
19
- }>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
7
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
20
8
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = React.ComponentProps<'span'>;
4
3
  declare const Text: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
5
4
  export default Text;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare enum DateFormats {
4
3
  HH_MM = "hh:mm",
5
4
  YYYY_MM_DD = "yyyy-mm-dd",
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = {
4
3
  className?: string;
5
4
  content: React.ReactNode;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = {
4
3
  in: boolean;
5
4
  timeout?: number | {
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
4
3
  export type Props = {
5
4
  variant: TypographyVariant;
@@ -1,24 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as LinkProps } from './link';
3
-
4
3
  export type Props = Merge<LinkProps, {
5
4
  widgetName: string;
6
5
  activationOptions?: {
7
6
  [key: string]: any;
8
7
  };
9
8
  }>;
10
- declare const _default: React.ForwardRefExoticComponent<Omit<Merge<Merge<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
11
- disabled?: boolean;
12
- routeName?: string;
13
- params?: {
14
- [key: string]: any;
15
- };
16
- to?: string;
17
- as?: React.ElementType<any>;
18
- }>, {
19
- widgetName: string;
20
- activationOptions?: {
21
- [key: string]: any;
22
- };
23
- }>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
9
+ declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
24
10
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { default as React, ReactNode } from 'react';
2
-
3
2
  type Props = {
4
3
  portalId: string;
5
4
  className?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { ZoomableImage } from './lightbox';
3
-
4
3
  export type Props = {
5
4
  zoomState: number;
6
5
  image: ZoomableImage;
@@ -1,7 +1,6 @@
1
- import { ComponentDescriptor, ComponentNodeProperties } from '../../../core/src/index.ts';
2
- import { RoutingService } from '../../../routing/src/index.ts';
1
+ import { ComponentDescriptor, ComponentNodeProperties } from '@telia-ace/widget-core';
2
+ import { RoutingService } from '@telia-ace/widget-routing';
3
3
  import { Container } from '@webprovisions/platform';
4
-
5
4
  export declare const ContainerContext: import('react').Context<Container>;
6
5
  export declare const ColumnContext: import('react').Context<number>;
7
6
  export declare const ComponentNodeContext: import('react').Context<ComponentDescriptor>;
@@ -1,6 +1,5 @@
1
- import { ExtendComponentHandler, ExtendComponentOptions, ReactComponent } from '../../core/src/index.ts';
1
+ import { ExtendComponentHandler, ExtendComponentOptions, ReactComponent } from '@telia-ace/widget-core';
2
2
  import { Container } from '@webprovisions/platform';
3
-
4
3
  /**
5
4
  * Registers a React component on the component platform.
6
5
  * @param container Container to register the component on.
@@ -1,5 +1,4 @@
1
1
  import { Container } from '@webprovisions/platform';
2
-
3
2
  export type Action = (action: string, value?: any) => void;
4
3
  export declare const useAction: (passedOrigin?: string, passedContainer?: Container) => Action;
5
4
  export default useAction;
@@ -1,5 +1,4 @@
1
- import { ComponentDescriptor } from '../../../core/src/index.ts';
2
-
1
+ import { ComponentDescriptor } from '@telia-ace/widget-core';
3
2
  export type SetPropertiesAction<T> = (key: string, value: Partial<T>) => void;
4
3
  declare const useChildren: () => ComponentDescriptor[];
5
4
  export default useChildren;
@@ -1,2 +1,2 @@
1
- declare const useComponentDescriptor: () => import('../../../core/src/index.ts').ComponentDescriptor;
1
+ declare const useComponentDescriptor: () => import('@telia-ace/widget-core').ComponentDescriptor;
2
2
  export default useComponentDescriptor;
@@ -1,5 +1,4 @@
1
- import { ComponentNode } from '../../../core/src/index.ts';
2
-
1
+ import { ComponentNode } from '@telia-ace/widget-core';
3
2
  /**
4
3
  * Provides the `ComponentNode` for the current context.
5
4
  */
@@ -1,5 +1,4 @@
1
- import { ComponentPlatform } from '../../../core/src/index.ts';
1
+ import { ComponentPlatform } from '@telia-ace/widget-core';
2
2
  import { Container } from '@webprovisions/platform';
3
-
4
3
  declare const useComponentPlatform: (passedContainer?: Container) => ComponentPlatform | null;
5
4
  export default useComponentPlatform;
@@ -1,4 +1,3 @@
1
1
  import { Container } from '@webprovisions/platform';
2
-
3
2
  declare const useComponent: (passedType?: string, passedContainer?: Container) => void | any | null;
4
3
  export default useComponent;
@@ -1,4 +1,3 @@
1
- import { ComponentNodeContext } from '../../../core/src/index.ts';
2
-
1
+ import { ComponentNodeContext } from '@telia-ace/widget-core';
3
2
  declare const useContext: <T extends ComponentNodeContext>(id?: string) => T;
4
3
  export default useContext;
@@ -1,4 +1,3 @@
1
1
  import { Container, EventManager } from '@webprovisions/platform';
2
-
3
2
  declare const useEvents: (passedContainer?: Container) => EventManager;
4
3
  export default useEvents;
@@ -1,4 +1,3 @@
1
- import { ComponentNodeLayout } from '../../../core/src/index.ts';
2
-
1
+ import { ComponentNodeLayout } from '@telia-ace/widget-core';
3
2
  declare const useLayout: (id?: string) => ComponentNodeLayout;
4
3
  export default useLayout;
@@ -1,5 +1,4 @@
1
- import { ComponentNodeProperties } from '../../../core/src/index.ts';
2
-
1
+ import { ComponentNodeProperties } from '@telia-ace/widget-core';
3
2
  type DataProperties = {
4
3
  loading?: boolean;
5
4
  };
@@ -1,5 +1,4 @@
1
- import { WidgetRenderState } from '../../../core/src/index.ts';
1
+ import { WidgetRenderState } from '@telia-ace/widget-core';
2
2
  import { Container } from '@webprovisions/platform';
3
-
4
3
  declare const useRenderState: (passedContainer?: Container) => WidgetRenderState | undefined;
5
4
  export default useRenderState;
@@ -1,5 +1,4 @@
1
- import { RouteData } from '../../../routing/src/index.ts';
1
+ import { RouteData } from '@telia-ace/widget-routing';
2
2
  import { Container } from '@webprovisions/platform';
3
-
4
3
  declare const useRouteData: (passedContainer?: Container) => RouteData;
5
4
  export default useRouteData;
@@ -1,4 +1,3 @@
1
- import { RoutingService } from '../../../routing/src/index.ts';
2
-
1
+ import { RoutingService } from '@telia-ace/widget-routing';
3
2
  declare const useRouter: () => RoutingService | null;
4
3
  export default useRouter;
@@ -1,4 +1,3 @@
1
- import { WidgetSettings } from '../../../core/src/index.ts';
2
-
1
+ import { WidgetSettings } from '@telia-ace/widget-core';
3
2
  declare const useSettings: () => WidgetSettings | null;
4
3
  export default useSettings;
@@ -1,4 +1,3 @@
1
1
  import { Container, EventListener } from '@webprovisions/platform';
2
-
3
2
  declare const useWidgetEvent: (event: string, callback: EventListener, dependencies?: any[], passedContainer?: Container) => ((data: any) => void);
4
3
  export default useWidgetEvent;
package/index.d.ts CHANGED
@@ -4,7 +4,6 @@ import { default as createReactComponent } from './create-react-component';
4
4
  import { DispatchAction, useAction, useChildren, useColumns, useComponent, useComponentDescriptor, useComponentNode, useComponentPlatform, useContainer, useContext, useConversation, useDispatch, useEventListener, useEvents, useIsMounted, useIsTabbing, useKeyPress, useLayout, usePrevious, useProperties, useRenderState, useRouteData, useRouter, useScroll, useSettings, useToggle, useTransitionEnd, useUniqueMenu, useWidgetEvent } from './hooks';
5
5
  import { borderTabStyle, buttonCss, contentBox, genericHtml, invertedHoverButton, itemList, linkTabStyle, list, paddedBorderTabStyle, StyledText } from './styles';
6
6
  import { browser, Browsers, convertToStringAttributes, createEmptyComponent, defaultRenderInstructions, embeddedLinkMapper, filterCssProps, filterCssPropsStyle, genericHashLink, GenericHashLinkProps, headingElement, imageLightboxRenderer, processHtmlString, transitionComposer, TransitionStateSettings } from './utils';
7
-
8
7
  export { AnchorLink, borderTabStyle, Button, buttonCss, Checkbox, ColumnContext, ComponentNodeContext, ComponentPropertyContext, ConversationContext, Confirm, ContainerContext, contentBox, createEmptyComponent, createReactComponent, DateFormats, Drawer, DrawerAnimationType, Dropdown, filterCssProps, filterCssPropsStyle, Grid, headingElement, Html, Icon, Input, genericHtml, invertedHoverButton, ItemList, ItemTree, Lightbox, Link, linkTabStyle, List, paddedBorderTabStyle, RoutingContext, SymbolBadge, Text, TextLink, TransitionComponent, transitionComposer, Typography, useChildren, useColumns, useComponent, useIsTabbing, useComponentDescriptor, useComponentNode, useComponentPlatform, useContainer, useContext, useDispatch, useIsMounted, useLayout, useProperties, useRenderState, useRouteData, useRouter, useScroll, useTransitionEnd, useAction, useEventListener, useEvents, useKeyPress, usePrevious, useSettings, useToggle, useConversation, useUniqueMenu, useWidgetEvent, Empty, Modal, NotFound, Overlay, Paragraph, Portal, RouteLink, TabStop, Timestamp, Tooltip, WidgetLink, WidgetOverlayOutlet, itemList, list, StyledText, browser, convertToStringAttributes, defaultRenderInstructions, embeddedLinkMapper, genericHashLink, processHtmlString, imageLightboxRenderer, };
9
8
  export type { ButtonProps, CheckboxProps, DropdownProps, EmptyProps, GridProps, HtmlIconProps, HtmlParseInstruction, HtmlProps, IconProps, InputProps, ItemListProps, ItemRenderer, ItemTreeProps, LightboxProps, LinkProps, ListProps, ModalProps, NotFoundProps, OverlayProps, ParagraphProps, PortalProps, RouteLinkProps, Symbol, SymbolBadgeProps, TabStopProps, TextLinkProps, TextProps, TimestampProps, TooltipProps, TransitionComponentProps, TypographyProps, WidgetLinkProps, Browsers, GenericHashLinkProps, TransitionStateSettings, };
10
9
  export type { DispatchAction };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-ui",
3
- "version": "1.3.59",
3
+ "version": "1.3.60-rc.0",
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/widget-core": "^1.3.59",
14
- "@telia-ace/widget-routing": "^1.3.59",
15
- "@telia-ace/widget-utilities": "^1.3.59",
13
+ "@telia-ace/widget-core": "^1.3.60-rc.0",
14
+ "@telia-ace/widget-routing": "^1.3.60-rc.0",
15
+ "@telia-ace/widget-utilities": "^1.3.60-rc.0",
16
16
  "@webprovisions/platform": "^1.1.4",
17
17
  "htmr": "1.0.2"
18
18
  },
package/styles.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Theme } from '@emotion/react';
2
-
3
2
  type InvertedHoverButtonSettings = {
4
3
  primaryColor: string;
5
4
  secondaryColor: string;
@@ -1,5 +1,4 @@
1
1
  import { TransitionStatus } from 'react-transition-group/Transition';
2
-
3
2
  export type CssTransitions = {
4
3
  [key: string]: any;
5
4
  };
@@ -1,4 +1,3 @@
1
1
  import { Container } from '@webprovisions/platform';
2
-
3
2
  declare const createEmptyComponent: (container: Container, props: any) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
4
3
  export default createEmptyComponent;
@@ -1,4 +1,3 @@
1
1
  import { Container } from '@webprovisions/platform';
2
-
3
2
  declare const embeddedLinkMapper: (container: Container) => ({ children, ...props }: any) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
4
3
  export default embeddedLinkMapper;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export type Props = Merge<React.ComponentProps<'a'>, {
4
3
  disabled?: string;
5
4
  to?: string;
@@ -1,5 +1,4 @@
1
1
  import { Theme } from '@emotion/react';
2
-
3
2
  export declare const headingElement: (p: {
4
3
  theme: Theme;
5
4
  }) => (element: string, style: any) => import('@emotion/react').SerializedStyles;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Converts a html chunk to managed React nodes.
3
3
  */
4
- export default function parseHtmlString(html: any, instruction: any): import('react').ReactNode;
4
+ export default function parseHtmlString(html: any, instruction: any): any;
@@ -1,6 +1,5 @@
1
1
  import { Container } from '@webprovisions/platform';
2
2
  import { default as React } from 'react';
3
-
4
3
  export declare const imageLightboxRenderer: (htmlBody: string) => (attrs: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
5
4
  export declare const defaultRenderInstructions: (container: Container, htmlBody: string) => {
6
5
  transform: {