@telia-ace/widget-ui 0.0.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.
Files changed (71) hide show
  1. package/components/anchor-link.d.ts +5 -0
  2. package/components/button.d.ts +5 -0
  3. package/components/drawer/drawer.d.ts +23 -0
  4. package/components/drawer/index.d.ts +4 -0
  5. package/components/dropdown/dropdown.d.ts +10 -0
  6. package/components/dropdown/index.d.ts +5 -0
  7. package/components/dropdown/use-position.d.ts +5 -0
  8. package/components/empty.d.ts +5 -0
  9. package/components/index.d.ts +59 -0
  10. package/components/item-tree.d.ts +14 -0
  11. package/components/lightbox.d.ts +12 -0
  12. package/components/loader.d.ts +14 -0
  13. package/components/modal/index.d.ts +5 -0
  14. package/components/not-found.d.ts +10 -0
  15. package/components/overlay.d.ts +10 -0
  16. package/components/portal.d.ts +9 -0
  17. package/components/tab-stop.d.ts +19 -0
  18. package/components/text.d.ts +5 -0
  19. package/components/timestamp.d.ts +14 -0
  20. package/components/tooltip.d.ts +10 -0
  21. package/components/transition-component.d.ts +31 -0
  22. package/components/typography.d.ts +11 -0
  23. package/components/widget-overlay-outlet.d.ts +9 -0
  24. package/components/zoomable-img.d.ts +10 -0
  25. package/contexts/index.d.ts +12 -0
  26. package/create-react-component.d.ts +12 -0
  27. package/hooks/index.d.ts +29 -0
  28. package/hooks/use-action.d.ts +5 -0
  29. package/hooks/use-children.d.ts +5 -0
  30. package/hooks/use-columns.d.ts +2 -0
  31. package/hooks/use-component-descriptor.d.ts +2 -0
  32. package/hooks/use-component-node.d.ts +7 -0
  33. package/hooks/use-component-platform.d.ts +5 -0
  34. package/hooks/use-component.d.ts +4 -0
  35. package/hooks/use-container.d.ts +2 -0
  36. package/hooks/use-context.d.ts +4 -0
  37. package/hooks/use-conversation.d.ts +4 -0
  38. package/hooks/use-dispatch.d.ts +3 -0
  39. package/hooks/use-event-listener.d.ts +2 -0
  40. package/hooks/use-events.d.ts +4 -0
  41. package/hooks/use-is-mounted.d.ts +2 -0
  42. package/hooks/use-is-tabbing.d.ts +2 -0
  43. package/hooks/use-key-press.d.ts +2 -0
  44. package/hooks/use-layout.d.ts +4 -0
  45. package/hooks/use-previous.d.ts +2 -0
  46. package/hooks/use-properties.d.ts +7 -0
  47. package/hooks/use-render-state.d.ts +5 -0
  48. package/hooks/use-route-data.d.ts +5 -0
  49. package/hooks/use-router.d.ts +4 -0
  50. package/hooks/use-scroll.d.ts +2 -0
  51. package/hooks/use-settings.d.ts +4 -0
  52. package/hooks/use-toggle.d.ts +2 -0
  53. package/hooks/use-transition-end.d.ts +2 -0
  54. package/hooks/use-unique-menu.d.ts +2 -0
  55. package/hooks/use-widget-event.d.ts +4 -0
  56. package/index.d.ts +11 -0
  57. package/index.js +752 -0
  58. package/index.mjs +3577 -0
  59. package/package.json +27 -0
  60. package/styles.d.ts +40 -0
  61. package/utils/animations.d.ts +18 -0
  62. package/utils/browser.d.ts +12 -0
  63. package/utils/convert-to-string-attributes.d.ts +2 -0
  64. package/utils/create-empty-component.d.ts +4 -0
  65. package/utils/embedded-link-mapper.d.ts +4 -0
  66. package/utils/filter-css-props.d.ts +8 -0
  67. package/utils/heading-styles.d.ts +5 -0
  68. package/utils/index.d.ts +12 -0
  69. package/utils/process-html-string.d.ts +4 -0
  70. package/utils/render-instructions.d.ts +10 -0
  71. package/utils/tabbing-state.d.ts +2 -0
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { GenericHashLinkProps } from '../utils';
3
+
4
+ declare const AnchorLink: React.FC<GenericHashLinkProps>;
5
+ export default AnchorLink;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type Props = React.ComponentProps<'button'>;
4
+ declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare enum AnimationType {
4
+ SlideInLeft = "slide-in-left",
5
+ SlideInRight = "slide-in-right",
6
+ SlideInBottom = "slide-in-bottom",
7
+ SlideInTop = "slide-in-top"
8
+ }
9
+ export type Props = {
10
+ header?: string | React.ReactNode;
11
+ className?: string;
12
+ animation?: {
13
+ type: AnimationType;
14
+ duration?: number;
15
+ };
16
+ trigger: React.ReactElement;
17
+ fullScreen?: boolean;
18
+ closeButtonAriaLabel?: string;
19
+ onToggle?: (visible: boolean) => void;
20
+ children: React.ReactNode;
21
+ };
22
+ declare const Drawer: React.FC<Props>;
23
+ export default Drawer;
@@ -0,0 +1,4 @@
1
+ import { default as Drawer, AnimationType } from './drawer';
2
+
3
+ export { AnimationType };
4
+ export default Drawer;
@@ -0,0 +1,10 @@
1
+ import { default as React, ReactElement } from 'react';
2
+
3
+ export type Props = {
4
+ className?: string;
5
+ children?: any;
6
+ trigger: ReactElement;
7
+ closeButtonAriaLabel?: string;
8
+ };
9
+ declare const Dropdown: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
10
+ export default Dropdown;
@@ -0,0 +1,5 @@
1
+ import { default as Dropdown } from './dropdown';
2
+
3
+ export type { Props } from './dropdown';
4
+ export { default as useCursorPosition } from './use-position';
5
+ export default Dropdown;
@@ -0,0 +1,5 @@
1
+ export declare const usePosition: (visible: boolean, id: string, element?: HTMLDivElement) => [{
2
+ x: number;
3
+ y: number;
4
+ }, (event: React.MouseEvent, trigger?: HTMLElement) => void];
5
+ export default usePosition;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type Props = {};
4
+ declare const Empty: React.FC<Props>;
5
+ export default Empty;
@@ -0,0 +1,59 @@
1
+ export { default as AnchorLink } from './anchor-link';
2
+ export { default as Button } from './button';
3
+ export type { Props as ButtonProps } from './button';
4
+ export { default as Checkbox } from './checkbox';
5
+ export type { Props as CheckboxProps } from './checkbox';
6
+ export { AnimationType as DrawerAnimationType, default as Drawer, } from './drawer';
7
+ export { default as Dropdown } from './dropdown';
8
+ export type { Props as DropdownProps } from './dropdown';
9
+ export { default as Empty } from './empty';
10
+ export type { Props as EmptyProps } from './empty';
11
+ export { default as Grid } from './grid';
12
+ export type { Props as GridProps } from './grid';
13
+ export { default as Html } from './html';
14
+ export type { HtmlParseInstruction, Props as HtmlProps } from './html';
15
+ export { default as Icon } from './icon';
16
+ export type { Props as IconProps } from './icon';
17
+ export { default as Input } from './input';
18
+ export type { Props as InputProps } from './input';
19
+ export { default as ItemList } from './item-list';
20
+ export type { Props as ItemListProps } from './item-list';
21
+ export { default as ItemTree } from './item-tree';
22
+ export type { Props as ItemTreeProps } from './item-tree';
23
+ export { default as Lightbox } from './lightbox';
24
+ export type { Props as LightboxProps } from './lightbox';
25
+ export { default as Link } from './link';
26
+ export type { Props as LinkProps } from './link';
27
+ export { default as List } from './list';
28
+ export type { ItemRenderer, Props as ListProps } from './list';
29
+ export { Confirm, default as Modal } from './modal';
30
+ export type { ModalProps } from './modal';
31
+ export { default as NotFound } from './not-found';
32
+ export type { Props as NotFoundProps } from './not-found';
33
+ export { default as Overlay } from './overlay';
34
+ export type { Props as OverlayProps } from './overlay';
35
+ export { default as Paragraph } from './paragraph';
36
+ export type { Props as ParagraphProps } from './paragraph';
37
+ export { default as Portal } from './portal';
38
+ export type { Props as PortalProps } from './portal';
39
+ export { default as RouteLink } from './route-link';
40
+ export type { Props as RouteLinkProps } from './route-link';
41
+ export { default as SymbolBadge } from './symbol-badge';
42
+ export type { HtmlIconProps, Props as SymbolBadgeProps, Symbol, } from './symbol-badge';
43
+ export { default as TabStop } from './tab-stop';
44
+ export type { Props as TabStopProps } from './tab-stop';
45
+ export { default as Text } from './text';
46
+ export type { Props as TextProps } from './text';
47
+ export { default as TextLink } from './text-link';
48
+ export type { Props as TextLinkProps } from './text-link';
49
+ export { DateFormats, default as Timestamp } from './timestamp';
50
+ export type { Props as TimestampProps } from './timestamp';
51
+ export { default as Tooltip } from './tooltip';
52
+ export type { Props as TooltipProps } from './tooltip';
53
+ export { default as TransitionComponent } from './transition-component';
54
+ export type { Props as TransitionComponentProps } from './transition-component';
55
+ export { default as Typography } from './typography';
56
+ export type { Props as TypographyProps } from './typography';
57
+ export { default as WidgetLink } from './widget-link';
58
+ export type { Props as WidgetLinkProps } from './widget-link';
59
+ export { WidgetOverlayOutlet } from './widget-overlay-outlet';
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type Props = {
4
+ className?: string;
5
+ tree?: any[];
6
+ rootItem?: any;
7
+ renderUnselected?: boolean;
8
+ renderItem: (props: any, level: number, isSelected: boolean) => JSX.Element;
9
+ renderEmpty?: boolean;
10
+ ulProps?: any;
11
+ liProps?: any;
12
+ };
13
+ declare const ItemTree: React.FC<Props>;
14
+ export default ItemTree;
@@ -0,0 +1,12 @@
1
+ import { default as React, FC } from 'react';
2
+
3
+ export type Props = {
4
+ attrs: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
5
+ htmlBody: string;
6
+ children?: React.ReactNode;
7
+ };
8
+ export interface ZoomableImage {
9
+ src: string;
10
+ }
11
+ declare const Lightbox: FC<Props>;
12
+ export default Lightbox;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+
3
+ type Props = {
4
+ className?: string;
5
+ loading: boolean | undefined;
6
+ };
7
+ export declare const Wrapper: import('@emotion/styled').StyledComponent<{
8
+ theme?: import('@emotion/react').Theme | undefined;
9
+ as?: React.ElementType<any> | undefined;
10
+ } & {
11
+ 'data-loading': boolean;
12
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ declare const Loader: React.FC<Props>;
14
+ export default Loader;
@@ -0,0 +1,5 @@
1
+ import { default as Modal } from './modal';
2
+
3
+ export { default as Confirm } from './confirm';
4
+ export type { Props as ModalProps } from './modal';
5
+ export default Modal;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type Props = {
4
+ header?: string;
5
+ link?: string;
6
+ suggestionHeader?: string;
7
+ suggestion?: string;
8
+ };
9
+ declare const NotFound: React.FC<Props>;
10
+ export default NotFound;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type Props = {
4
+ duration?: number;
5
+ visible: boolean;
6
+ onClick?: (e: React.MouseEvent) => void;
7
+ children?: React.ReactNode;
8
+ };
9
+ declare const Overlay: React.FC<Props>;
10
+ export default Overlay;
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+
3
+ export type Props = {
4
+ elementId?: string;
5
+ parent?: Element | HTMLElement;
6
+ children?: any;
7
+ };
8
+ declare const Portal: FC<Props>;
9
+ export default Portal;
@@ -0,0 +1,19 @@
1
+ import { Container } from '@webprovisions/platform';
2
+ import { Component } from 'react';
3
+
4
+ export type Props = {
5
+ container: Container;
6
+ };
7
+ type State = Readonly<{
8
+ boundFocus: boolean;
9
+ }>;
10
+ declare class TabStop extends Component<Props, State> {
11
+ private node;
12
+ private onFocusListener;
13
+ readonly state: State;
14
+ componentWillMount(): void;
15
+ componentDidMount(): void;
16
+ componentWillUnmount(): void;
17
+ render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
18
+ }
19
+ export default TabStop;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type Props = React.ComponentProps<'span'>;
4
+ declare const Text: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
5
+ export default Text;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare enum DateFormats {
4
+ HH_MM = "hh:mm",
5
+ YYYY_MM_DD = "yyyy-mm-dd",
6
+ YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm"
7
+ }
8
+ export type Props = {
9
+ timestamp: string;
10
+ format?: DateFormats;
11
+ className?: string;
12
+ };
13
+ declare const Timestamp: React.FC<Props>;
14
+ export default Timestamp;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type Props = {
4
+ className?: string;
5
+ content: React.ReactNode;
6
+ sticky: boolean;
7
+ children?: React.ReactNode;
8
+ };
9
+ declare const Tooltip: React.FC<Props>;
10
+ export default Tooltip;
@@ -0,0 +1,31 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type Props = {
4
+ in: boolean;
5
+ timeout?: number | {
6
+ enter?: number;
7
+ exit?: number;
8
+ };
9
+ mountOnEnter?: boolean;
10
+ unmountOnExit?: boolean;
11
+ children?: any;
12
+ transitions?: string | {
13
+ enter: TransitionInfo;
14
+ exit: TransitionInfo;
15
+ };
16
+ };
17
+ type TransitionInfo = {
18
+ type: string;
19
+ easing?: string;
20
+ };
21
+ /**
22
+ * Wrapper component for Transition from 'react-transition-group'
23
+ * Controls animated enter/exit transitions of a child component bu dynamically creating
24
+ * css that is forwarded to the child component.
25
+ *
26
+ * TODO:
27
+ * Extend to accept more specific transitions (TransitionStateSettings) to enable different
28
+ * enter and exit animations, timings and easings
29
+ */
30
+ declare const TransitionComponent: React.FC<Props>;
31
+ export default TransitionComponent;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
4
+ export type Props = {
5
+ variant: TypographyVariant;
6
+ component?: React.ElementType;
7
+ className?: string;
8
+ children?: React.ReactNode;
9
+ };
10
+ declare const Typography: React.FC<Props>;
11
+ export default Typography;
@@ -0,0 +1,9 @@
1
+ import { default as React, ReactNode } from 'react';
2
+
3
+ type Props = {
4
+ portalId: string;
5
+ className?: string;
6
+ children?: ReactNode;
7
+ };
8
+ export declare const WidgetOverlayOutlet: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
9
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { ZoomableImage } from './lightbox';
3
+
4
+ export type Props = {
5
+ zoomState: number;
6
+ image: ZoomableImage;
7
+ changeZoom: (num: number) => void;
8
+ };
9
+ declare const ZoomImg: React.FC<Props & React.ComponentProps<'img'>>;
10
+ export default ZoomImg;
@@ -0,0 +1,12 @@
1
+ import { ComponentDescriptor, ComponentNodeProperties } from '../../../core/src/index.ts';
2
+ import { RoutingService } from '../../../routing/src/index.ts';
3
+ import { Container } from '@webprovisions/platform';
4
+
5
+ export declare const ContainerContext: import('react').Context<Container>;
6
+ export declare const ColumnContext: import('react').Context<number>;
7
+ export declare const ComponentNodeContext: import('react').Context<ComponentDescriptor>;
8
+ export declare const ComponentPropertyContext: import('react').Context<ComponentNodeProperties>;
9
+ export declare const RoutingContext: import('react').Context<RoutingService | null>;
10
+ export declare const ConversationContext: import('react').Context<{
11
+ id: string;
12
+ } | null>;
@@ -0,0 +1,12 @@
1
+ import { ExtendComponentHandler, ExtendComponentOptions, ReactComponent } from '../../core/src/index.ts';
2
+ import { Container } from '@webprovisions/platform';
3
+
4
+ /**
5
+ * Registers a React component on the component platform.
6
+ * @param container Container to register the component on.
7
+ * @param type Type name to resolve the component from configuration.
8
+ * @param reactComponent Promise resolving to the React component for rendering.
9
+ * @param fn Handler for controlling the component.
10
+ */
11
+ declare const createReactComponent: (container: Container, type: string, reactComponent: ReactComponent, fn?: ExtendComponentHandler, options?: ExtendComponentOptions) => Promise<void>;
12
+ export default createReactComponent;
@@ -0,0 +1,29 @@
1
+ export { default as useAction } from './use-action';
2
+ export { default as useChildren } from './use-children';
3
+ export { default as useColumns } from './use-columns';
4
+ export { default as useComponent } from './use-component';
5
+ export { default as useComponentDescriptor } from './use-component-descriptor';
6
+ export { default as useComponentNode } from './use-component-node';
7
+ export { default as useComponentPlatform } from './use-component-platform';
8
+ export { default as useContainer } from './use-container';
9
+ export { default as useContext } from './use-context';
10
+ export { default as useConversation } from './use-conversation';
11
+ export { default as useDispatch } from './use-dispatch';
12
+ export type { DispatchAction } from './use-dispatch';
13
+ export { default as useEventListener } from './use-event-listener';
14
+ export { default as useEvents } from './use-events';
15
+ export { default as useIsMounted } from './use-is-mounted';
16
+ export { default as useIsTabbing } from './use-is-tabbing';
17
+ export { default as useKeyPress } from './use-key-press';
18
+ export { default as useLayout } from './use-layout';
19
+ export { default as usePrevious } from './use-previous';
20
+ export { default as useProperties } from './use-properties';
21
+ export { default as useRenderState } from './use-render-state';
22
+ export { default as useRouteData } from './use-route-data';
23
+ export { default as useRouter } from './use-router';
24
+ export { default as useScroll } from './use-scroll';
25
+ export { default as useSettings } from './use-settings';
26
+ export { default as useToggle } from './use-toggle';
27
+ export { default as useTransitionEnd } from './use-transition-end';
28
+ export { default as useUniqueMenu } from './use-unique-menu';
29
+ export { default as useWidgetEvent } from './use-widget-event';
@@ -0,0 +1,5 @@
1
+ import { Container } from '@webprovisions/platform';
2
+
3
+ export type Action = (action: string, value?: any) => void;
4
+ export declare const useAction: (passedOrigin?: string, passedContainer?: Container) => Action;
5
+ export default useAction;
@@ -0,0 +1,5 @@
1
+ import { ComponentDescriptor } from '../../../core/src/index.ts';
2
+
3
+ export type SetPropertiesAction<T> = (key: string, value: Partial<T>) => void;
4
+ declare const useChildren: () => ComponentDescriptor[];
5
+ export default useChildren;
@@ -0,0 +1,2 @@
1
+ declare const useColumns: () => number;
2
+ export default useColumns;
@@ -0,0 +1,2 @@
1
+ declare const useComponentDescriptor: () => import('../../../core/src/index.ts').ComponentDescriptor;
2
+ export default useComponentDescriptor;
@@ -0,0 +1,7 @@
1
+ import { ComponentNode } from '../../../core/src/index.ts';
2
+
3
+ /**
4
+ * Provides the `ComponentNode` for the current context.
5
+ */
6
+ declare const useComponentNode: (id?: string) => ComponentNode | undefined;
7
+ export default useComponentNode;
@@ -0,0 +1,5 @@
1
+ import { ComponentPlatform } from '../../../core/src/index.ts';
2
+ import { Container } from '@webprovisions/platform';
3
+
4
+ declare const useComponentPlatform: (passedContainer?: Container) => ComponentPlatform | null;
5
+ export default useComponentPlatform;
@@ -0,0 +1,4 @@
1
+ import { Container } from '@webprovisions/platform';
2
+
3
+ declare const useComponent: (passedType?: string, passedContainer?: Container) => void | any | null;
4
+ export default useComponent;
@@ -0,0 +1,2 @@
1
+ declare const useContainer: () => import('@webprovisions/platform').Container;
2
+ export default useContainer;
@@ -0,0 +1,4 @@
1
+ import { ComponentNodeContext } from '../../../core/src/index.ts';
2
+
3
+ declare const useContext: <T extends ComponentNodeContext>(id?: string) => T;
4
+ export default useContext;
@@ -0,0 +1,4 @@
1
+ declare const useConversation: () => {
2
+ id: string;
3
+ } | null;
4
+ export default useConversation;
@@ -0,0 +1,3 @@
1
+ export type DispatchAction = (key: string, data?: any) => Promise<any>;
2
+ declare const useDispatch: () => DispatchAction;
3
+ export default useDispatch;
@@ -0,0 +1,2 @@
1
+ declare const _default: (eventName: string, handler: Function, element?: HTMLElement | Window, condition?: () => boolean) => void;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { Container, EventManager } from '@webprovisions/platform';
2
+
3
+ declare const useEvents: (passedContainer?: Container) => EventManager;
4
+ export default useEvents;
@@ -0,0 +1,2 @@
1
+ declare const useIsMounted: () => import('react').MutableRefObject<boolean>;
2
+ export default useIsMounted;
@@ -0,0 +1,2 @@
1
+ declare const useIsTabbing: () => boolean;
2
+ export default useIsTabbing;
@@ -0,0 +1,2 @@
1
+ declare const useKeyPress: (targetKey: string, action?: ((event: KeyboardEvent) => void) | undefined) => boolean;
2
+ export default useKeyPress;
@@ -0,0 +1,4 @@
1
+ import { ComponentNodeLayout } from '../../../core/src/index.ts';
2
+
3
+ declare const useLayout: (id?: string) => ComponentNodeLayout;
4
+ export default useLayout;
@@ -0,0 +1,2 @@
1
+ declare const usePrevious: <T>(value: T) => T | undefined;
2
+ export default usePrevious;
@@ -0,0 +1,7 @@
1
+ import { ComponentNodeProperties } from '../../../core/src/index.ts';
2
+
3
+ type DataProperties = {
4
+ loading?: boolean;
5
+ };
6
+ declare const useProperties: <T extends ComponentNodeProperties>() => Merge<DataProperties, T>;
7
+ export default useProperties;
@@ -0,0 +1,5 @@
1
+ import { WidgetRenderState } from '../../../core/src/index.ts';
2
+ import { Container } from '@webprovisions/platform';
3
+
4
+ declare const useRenderState: (passedContainer?: Container) => WidgetRenderState | undefined;
5
+ export default useRenderState;
@@ -0,0 +1,5 @@
1
+ import { RouteData } from '../../../routing/src/index.ts';
2
+ import { Container } from '@webprovisions/platform';
3
+
4
+ declare const useRouteData: (passedContainer?: Container) => RouteData;
5
+ export default useRouteData;
@@ -0,0 +1,4 @@
1
+ import { RoutingService } from '../../../routing/src/index.ts';
2
+
3
+ declare const useRouter: () => RoutingService | null;
4
+ export default useRouter;
@@ -0,0 +1,2 @@
1
+ declare const _default: (scrollable: boolean) => [string, React.MutableRefObject<any>];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { WidgetSettings } from '../../../core/src/index.ts';
2
+
3
+ declare const useSettings: () => WidgetSettings | null;
4
+ export default useSettings;
@@ -0,0 +1,2 @@
1
+ declare const useToggle: (initialValue?: boolean) => [boolean, (forced?: boolean) => void];
2
+ export default useToggle;
@@ -0,0 +1,2 @@
1
+ declare const _default: (handler: (...args: any[]) => void) => void;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const useUniqueMenu: (id: string, callback: () => void) => Function;
2
+ export default useUniqueMenu;
@@ -0,0 +1,4 @@
1
+ import { Container, EventListener } from '@webprovisions/platform';
2
+
3
+ declare const useWidgetEvent: (event: string, callback: EventListener, dependencies?: any[], passedContainer?: Container) => (data: any) => void;
4
+ export default useWidgetEvent;
package/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { AnchorLink, Button, ButtonProps, Checkbox, CheckboxProps, Confirm, DateFormats, Drawer, DrawerAnimationType, Dropdown, DropdownProps, Empty, EmptyProps, Grid, GridProps, Html, HtmlIconProps, HtmlParseInstruction, HtmlProps, Icon, IconProps, Input, InputProps, ItemList, ItemListProps, ItemRenderer, ItemTree, ItemTreeProps, Lightbox, LightboxProps, Link, LinkProps, List, ListProps, Modal, ModalProps, NotFound, NotFoundProps, Overlay, OverlayProps, Paragraph, ParagraphProps, Portal, PortalProps, RouteLink, RouteLinkProps, Symbol, SymbolBadge, SymbolBadgeProps, TabStop, TabStopProps, Text, TextLink, TextLinkProps, TextProps, Timestamp, TimestampProps, Tooltip, TooltipProps, TransitionComponent, TransitionComponentProps, Typography, TypographyProps, WidgetLink, WidgetLinkProps, WidgetOverlayOutlet } from './components';
2
+ import { ColumnContext, ComponentNodeContext, ComponentPropertyContext, ContainerContext, ConversationContext, RoutingContext } from './contexts';
3
+ import { default as createReactComponent } from './create-react-component';
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
+ import { borderTabStyle, buttonCss, contentBox, genericHtml, invertedHoverButton, itemList, linkTabStyle, list, paddedBorderTabStyle, StyledText } from './styles';
6
+ import { browser, Browsers, convertToStringAttributes, createEmptyComponent, defaultRenderInstructions, embeddedLinkMapper, filterCssProps, filterCssPropsStyle, genericHashLink, GenericHashLinkProps, headingElement, imageLightboxRenderer, processHtmlString, transitionComposer, TransitionStateSettings } from './utils';
7
+
8
+ 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
+ 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
+ export type { DispatchAction };
11
+ export { getHumanyIsTabbing, setHumanyIsTabbing } from './utils/tabbing-state';