@telia-ace/widget-ui 1.0.35 → 1.1.1-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 (96) hide show
  1. package/components/button.d.ts +4 -0
  2. package/components/grid.d.ts +7 -0
  3. package/{dist/components → components}/html.d.ts +1 -1
  4. package/components/input.d.ts +10 -0
  5. package/{dist/components → components}/item-list.d.ts +1 -1
  6. package/{dist/components → components}/link.d.ts +1 -1
  7. package/{dist/components → components}/list.d.ts +1 -1
  8. package/{dist/components → components}/modal/modal.d.ts +1 -1
  9. package/{dist/components → components}/paragraph.d.ts +1 -1
  10. package/{dist/components → components}/route-link.d.ts +1 -1
  11. package/{dist/components → components}/tab-stop.d.ts +1 -1
  12. package/components/text-link.d.ts +8 -0
  13. package/components/text.d.ts +4 -0
  14. package/components/widget-link.d.ts +10 -0
  15. package/index.js +777 -0
  16. package/index.mjs +8717 -0
  17. package/package.json +18 -46
  18. package/{dist/styles.d.ts → styles.d.ts} +1 -1
  19. package/{dist/utils → utils}/animations.d.ts +2 -2
  20. package/{dist/utils → utils}/create-empty-component.d.ts +1 -2
  21. package/{dist/utils → utils}/embedded-link-mapper.d.ts +1 -2
  22. package/{dist/utils → utils}/generic-hash-link.d.ts +1 -1
  23. package/{dist/utils → utils}/render-instructions.d.ts +3 -3
  24. package/LICENSE.txt +0 -6
  25. package/README.md +0 -3
  26. package/dist/components/button.d.ts +0 -4
  27. package/dist/components/grid.d.ts +0 -7
  28. package/dist/components/input.d.ts +0 -10
  29. package/dist/components/text-link.d.ts +0 -8
  30. package/dist/components/text.d.ts +0 -4
  31. package/dist/components/widget-link.d.ts +0 -10
  32. package/dist/index.js +0 -3223
  33. package/dist/index.js.map +0 -1
  34. /package/{dist/components → components}/anchor-link.d.ts +0 -0
  35. /package/{dist/components → components}/checkbox.d.ts +0 -0
  36. /package/{dist/components → components}/drawer/drawer.d.ts +0 -0
  37. /package/{dist/components → components}/drawer/index.d.ts +0 -0
  38. /package/{dist/components → components}/dropdown/dropdown.d.ts +0 -0
  39. /package/{dist/components → components}/dropdown/index.d.ts +0 -0
  40. /package/{dist/components → components}/dropdown/use-position.d.ts +0 -0
  41. /package/{dist/components → components}/empty.d.ts +0 -0
  42. /package/{dist/components → components}/icon.d.ts +0 -0
  43. /package/{dist/components → components}/index.d.ts +0 -0
  44. /package/{dist/components → components}/item-tree.d.ts +0 -0
  45. /package/{dist/components → components}/lightbox.d.ts +0 -0
  46. /package/{dist/components → components}/loader.d.ts +0 -0
  47. /package/{dist/components → components}/modal/confirm.d.ts +0 -0
  48. /package/{dist/components → components}/modal/index.d.ts +0 -0
  49. /package/{dist/components → components}/not-found.d.ts +0 -0
  50. /package/{dist/components → components}/overlay.d.ts +0 -0
  51. /package/{dist/components → components}/portal.d.ts +0 -0
  52. /package/{dist/components → components}/symbol-badge.d.ts +0 -0
  53. /package/{dist/components → components}/timestamp.d.ts +0 -0
  54. /package/{dist/components → components}/tooltip.d.ts +0 -0
  55. /package/{dist/components → components}/transition-component.d.ts +0 -0
  56. /package/{dist/components → components}/typography.d.ts +0 -0
  57. /package/{dist/components → components}/widget-overlay-outlet.d.ts +0 -0
  58. /package/{dist/components → components}/zoomable-img.d.ts +0 -0
  59. /package/{dist/contexts → contexts}/index.d.ts +0 -0
  60. /package/{dist/create-react-component.d.ts → create-react-component.d.ts} +0 -0
  61. /package/{dist/hooks → hooks}/index.d.ts +0 -0
  62. /package/{dist/hooks → hooks}/use-action.d.ts +0 -0
  63. /package/{dist/hooks → hooks}/use-children.d.ts +0 -0
  64. /package/{dist/hooks → hooks}/use-columns.d.ts +0 -0
  65. /package/{dist/hooks → hooks}/use-component-descriptor.d.ts +0 -0
  66. /package/{dist/hooks → hooks}/use-component-node.d.ts +0 -0
  67. /package/{dist/hooks → hooks}/use-component-platform.d.ts +0 -0
  68. /package/{dist/hooks → hooks}/use-component.d.ts +0 -0
  69. /package/{dist/hooks → hooks}/use-container.d.ts +0 -0
  70. /package/{dist/hooks → hooks}/use-context.d.ts +0 -0
  71. /package/{dist/hooks → hooks}/use-conversation.d.ts +0 -0
  72. /package/{dist/hooks → hooks}/use-dispatch.d.ts +0 -0
  73. /package/{dist/hooks → hooks}/use-event-listener.d.ts +0 -0
  74. /package/{dist/hooks → hooks}/use-events.d.ts +0 -0
  75. /package/{dist/hooks → hooks}/use-is-mounted.d.ts +0 -0
  76. /package/{dist/hooks → hooks}/use-is-tabbing.d.ts +0 -0
  77. /package/{dist/hooks → hooks}/use-key-press.d.ts +0 -0
  78. /package/{dist/hooks → hooks}/use-layout.d.ts +0 -0
  79. /package/{dist/hooks → hooks}/use-previous.d.ts +0 -0
  80. /package/{dist/hooks → hooks}/use-properties.d.ts +0 -0
  81. /package/{dist/hooks → hooks}/use-render-state.d.ts +0 -0
  82. /package/{dist/hooks → hooks}/use-route-data.d.ts +0 -0
  83. /package/{dist/hooks → hooks}/use-router.d.ts +0 -0
  84. /package/{dist/hooks → hooks}/use-scroll.d.ts +0 -0
  85. /package/{dist/hooks → hooks}/use-settings.d.ts +0 -0
  86. /package/{dist/hooks → hooks}/use-toggle.d.ts +0 -0
  87. /package/{dist/hooks → hooks}/use-transition-end.d.ts +0 -0
  88. /package/{dist/hooks → hooks}/use-unique-menu.d.ts +0 -0
  89. /package/{dist/hooks → hooks}/use-widget-event.d.ts +0 -0
  90. /package/{dist/index.d.ts → index.d.ts} +0 -0
  91. /package/{dist/utils → utils}/browser.d.ts +0 -0
  92. /package/{dist/utils → utils}/convert-to-string-attributes.d.ts +0 -0
  93. /package/{dist/utils → utils}/filter-css-props.d.ts +0 -0
  94. /package/{dist/utils → utils}/heading-styles.d.ts +0 -0
  95. /package/{dist/utils → utils}/index.d.ts +0 -0
  96. /package/{dist/utils → utils}/process-html-string.d.ts +0 -0
package/package.json CHANGED
@@ -1,55 +1,27 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-ui",
3
- "version": "1.0.35",
4
- "description": "UI components used by ACE Widgets.",
5
- "license": "SEE LICENSE IN LICENSE.txt",
6
- "author": "Telia Company AB",
7
- "keywords": [
8
- "telia"
9
- ],
10
- "main": "dist/index.js",
11
- "sourceMain": "src/index.ts",
12
- "type": "module",
13
- "types": "dist/index.d.ts",
14
- "files": [
15
- "LICENSE.txt",
16
- "README.md",
17
- "dist/"
18
- ],
19
- "publishConfig": {
20
- "access": "public"
3
+ "version": "1.1.1-rc.0",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./index.mjs",
9
+ "require": "./index.js"
10
+ }
21
11
  },
22
- "sideEffects": false,
23
12
  "dependencies": {
24
- "@telia-ace/widget-core": "1.0.28",
25
- "@telia-ace/widget-routing": "1.0.29",
26
- "@telia-ace/widget-utilities": "1.0.17",
27
- "@webprovisions/platform": "^1.1.3",
13
+ "@telia-ace/widget-core": "^1.1.1-rc.0",
14
+ "@telia-ace/widget-routing": "^1.1.1-rc.0",
15
+ "@telia-ace/widget-utilities": "^1.1.1-rc.0",
16
+ "@webprovisions/platform": "^1.1.4",
28
17
  "htmr": "1.0.2"
29
18
  },
30
19
  "peerDependencies": {
31
- "@emotion/react": "^11.10.5",
32
- "@emotion/styled": "^11.10.5",
33
- "react": "^18.2.0",
34
- "react-dom": "^18.2.0",
35
- "react-router-dom": "^5.3.4",
36
- "react-transition-group": "^4.4.5"
37
- },
38
- "devDependencies": {
39
- "@emotion/react": "^11.10.5",
40
- "@emotion/styled": "^11.10.5",
41
- "@telia-ace/widget-developer-tools": "1.0.23",
42
- "@types/react": "^18.0.27",
43
- "@types/react-dom": "^18.0.10",
44
- "@types/react-router-dom": "^5.3.3",
45
- "@types/react-transition-group": "^4.4.5",
46
- "react": "^18.2.0",
47
- "react-dom": "^18.2.0",
48
- "react-router-dom": "^5.3.4",
49
- "react-transition-group": "^4.4.5"
50
- },
51
- "scripts": {
52
- "clean": "rimraf ./dist",
53
- "build": "rimraf ./dist && tsc -emitDeclarationOnly && vite build"
20
+ "react": "18.2.0",
21
+ "@emotion/styled": "11.11.0",
22
+ "@emotion/react": "11.11.1",
23
+ "react-transition-group": "4.4.5",
24
+ "react-dom": "18.2.0",
25
+ "react-router-dom": "5.3.4"
54
26
  }
55
27
  }
@@ -25,7 +25,7 @@ export declare const paddedBorderTabStyle: (p: {
25
25
  theme: Partial<Theme>;
26
26
  }) => import("@emotion/react").SerializedStyles;
27
27
  export declare const CloseButton: import("@emotion/styled").StyledComponent<any, {}, {}>;
28
- export declare const StyledText: import("@emotion/styled").StyledComponent<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & import("react").RefAttributes<HTMLSpanElement> & {
28
+ export declare const StyledText: import("@emotion/styled").StyledComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement> & {
29
29
  theme?: Theme | undefined;
30
30
  }, {}, {}>;
31
31
  export declare const list: (p: {
@@ -11,7 +11,7 @@ export declare const transitionComposer: {
11
11
  compose: (status: TransitionStatus | undefined, definitions: {
12
12
  enter: TransitionStateSettings;
13
13
  exit: TransitionStateSettings;
14
- }) => false | import("@emotion/react").SerializedStyles | "" | undefined;
15
- composeViewTransition: (status: TransitionStatus, type: string, direction?: 'forth' | 'back') => false | import("@emotion/react").SerializedStyles | "" | undefined;
14
+ }) => false | "" | import("@emotion/react").SerializedStyles | undefined;
15
+ composeViewTransition: (status: TransitionStatus, type: string, direction?: 'forth' | 'back') => false | "" | import("@emotion/react").SerializedStyles | undefined;
16
16
  get: (title: string) => any;
17
17
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Container } from '@webprovisions/platform';
3
- declare const createEmptyComponent: (container: Container, props: any) => JSX.Element | null;
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
- /// <reference types="react" />
2
1
  import { Container } from '@webprovisions/platform';
3
- declare const embeddedLinkMapper: (container: Container) => ({ children, ...props }: any) => JSX.Element;
2
+ declare const embeddedLinkMapper: (container: Container) => ({ children, ...props }: any) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
4
3
  export default embeddedLinkMapper;
@@ -5,4 +5,4 @@ export type Props = Merge<React.ComponentProps<'a'>, {
5
5
  smooth?: boolean;
6
6
  scroll?: Function;
7
7
  }>;
8
- export declare const genericHashLink: (props: Props, As: any) => JSX.Element;
8
+ export declare const genericHashLink: (props: Props, As: any) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -1,9 +1,9 @@
1
1
  import { Container } from '@webprovisions/platform';
2
2
  import React from 'react';
3
- export declare const imageLightboxRenderer: (htmlBody: string) => (attrs: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => JSX.Element;
3
+ export declare const imageLightboxRenderer: (htmlBody: string) => (attrs: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
4
4
  export declare const defaultRenderInstructions: (container: Container, htmlBody: string) => {
5
5
  transform: {
6
- a: ({ children, ...props }: any) => JSX.Element;
7
- img: (attrs: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => JSX.Element;
6
+ a: ({ children, ...props }: any) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
7
+ img: (attrs: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
8
8
  };
9
9
  };
package/LICENSE.txt DELETED
@@ -1,6 +0,0 @@
1
- Copyright © 2021, Telia Company AB. All rights reserved.
2
-
3
- THIS PACKAGE AND CONTAINING SOFTWARE IS PART OF
4
- THE HUMANY SERVICE. BY USING THIS SOFTWARE YOU
5
- AGREE TO THE FOLLOWING TERMS AND CONDITIONS:
6
- http://www.humany.com/legal
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # `@telia-ace/widget-ui`
2
-
3
- Generic UI components for ACE widgets.
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export type Props = React.ComponentProps<'button'>;
3
- declare const _default: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & React.RefAttributes<HTMLButtonElement>>;
4
- export default _default;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export type Props = Merge<React.ComponentProps<'div'>, {
3
- columns: number;
4
- gap: string;
5
- }>;
6
- declare const _default: React.ForwardRefExoticComponent<Pick<Props, "columns" | "gap" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
7
- export default _default;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export type Props = Merge<React.ComponentProps<'input'>, {
3
- onChange?: (value: string) => void;
4
- onEnter?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
5
- onEscape?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
6
- onFocusChange?: (focused: boolean) => void;
7
- selectAllOnFocus?: boolean;
8
- }>;
9
- declare const _default: React.ForwardRefExoticComponent<Pick<Props, "color" | "height" | "translate" | "width" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "name" | "key" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled" | "list" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "enterKeyHint" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "src" | "onEnter" | "onEscape" | "onFocusChange" | "selectAllOnFocus"> & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
10
- export default _default;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { Props as LinkProps } from './link';
3
- export type Props = Merge<LinkProps, {
4
- text: string;
5
- description?: string;
6
- }>;
7
- declare const _default: React.ForwardRefExoticComponent<Pick<Props, "text" | "key" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement> | "disabled" | "to" | "routeName" | "params" | "as" | "description"> & React.RefAttributes<HTMLAnchorElement>>;
8
- export default _default;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export type Props = React.ComponentProps<'span'>;
3
- declare const Text: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & React.RefAttributes<HTMLSpanElement>>;
4
- export default Text;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { Props as LinkProps } from './link';
3
- export type Props = Merge<LinkProps, {
4
- widgetName: string;
5
- activationOptions?: {
6
- [key: string]: any;
7
- };
8
- }>;
9
- declare const _default: React.ForwardRefExoticComponent<Pick<Props, "key" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement> | "disabled" | "to" | "routeName" | "params" | "as" | "widgetName" | "activationOptions"> & React.RefAttributes<HTMLAnchorElement>>;
10
- export default _default;