@ws-ui/shared 0.1.5 → 0.1.6

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 (83) hide show
  1. package/README.md +0 -0
  2. package/dist/components/AppLoader.d.ts +2 -2
  3. package/dist/components/ControlledSwitch.d.ts +0 -0
  4. package/dist/components/Dialog.d.ts +2 -2
  5. package/dist/components/Incase/index.d.ts +1 -1
  6. package/dist/components/Portal.d.ts +1 -1
  7. package/dist/components/Tips/components/CarouselTip.d.ts +2 -2
  8. package/dist/components/Tips/components/TextTip.d.ts +1 -1
  9. package/dist/components/Tips/components/VideoTip.d.ts +1 -1
  10. package/dist/components/Tips/components/index.d.ts +1 -1
  11. package/dist/components/Tips/index.d.ts +2 -2
  12. package/dist/components/Tips/interfaces.d.ts +0 -0
  13. package/dist/components/Tips/provider.d.ts +2 -2
  14. package/dist/components/Toast.d.ts +3 -3
  15. package/dist/components/Tooltip.d.ts +1 -1
  16. package/dist/components/Tree/components/IndentLines.d.ts +2 -2
  17. package/dist/components/Tree/components/Switcher.d.ts +2 -2
  18. package/dist/components/Tree/components/Tree.d.ts +1 -1
  19. package/dist/components/Tree/components/TreeNode.d.ts +1 -1
  20. package/dist/components/Tree/index.d.ts +0 -0
  21. package/dist/components/Tree/interfaces.d.ts +0 -0
  22. package/dist/components/Tree/styled.d.ts +1 -1
  23. package/dist/components/index.d.ts +0 -0
  24. package/dist/constants.d.ts +0 -0
  25. package/dist/datasource-themes.d.ts +0 -0
  26. package/dist/declarations/datasources/cache.d.ts +0 -0
  27. package/dist/declarations/datasources/dataclass.d.ts +0 -0
  28. package/dist/declarations/datasources/datasource.d.ts +0 -0
  29. package/dist/declarations/datasources/datastore.d.ts +0 -0
  30. package/dist/declarations/datasources/entitysel.d.ts +0 -0
  31. package/dist/declarations/datasources/interfaces/catalog.d.ts +0 -0
  32. package/dist/declarations/datasources/interfaces/dataclass-attribute.d.ts +0 -0
  33. package/dist/declarations/datasources/methods.d.ts +0 -0
  34. package/dist/declarations/datasources/rest.d.ts +0 -0
  35. package/dist/declarations/http-methods.d.ts +0 -0
  36. package/dist/declarations/index.d.ts +0 -0
  37. package/dist/declarations/webform/webform.d.ts +1 -1
  38. package/dist/hooks/index.d.ts +0 -0
  39. package/dist/hooks/use-didmounteffect.d.ts +0 -0
  40. package/dist/hooks/use-feature-flags.d.ts +0 -0
  41. package/dist/hooks/use-forwarded-ref.d.ts +0 -0
  42. package/dist/hooks/use-hotkeys.d.ts +0 -0
  43. package/dist/hooks/use-outside-click.d.ts +0 -0
  44. package/dist/hooks/use-previous.d.ts +0 -0
  45. package/dist/hooks/use-state-ref.d.ts +0 -0
  46. package/dist/hooks/useDoubleClick.d.ts +0 -0
  47. package/dist/hooks/useIdentity.d.ts +1 -1
  48. package/dist/hooks/useStateObject.d.ts +0 -0
  49. package/dist/index.cjs.js +75 -75
  50. package/dist/index.cjs.js.map +1 -1
  51. package/dist/index.d.ts +0 -0
  52. package/dist/index.es.js +6383 -6418
  53. package/dist/index.es.js.map +1 -1
  54. package/dist/services/api.d.ts +0 -0
  55. package/dist/services/common.d.ts +0 -0
  56. package/dist/services/explorer.d.ts +0 -0
  57. package/dist/services/functions.d.ts +0 -0
  58. package/dist/services/index.d.ts +0 -0
  59. package/dist/services/tracking.d.ts +0 -0
  60. package/dist/style.css +0 -0
  61. package/dist/tailwind.preset.js +0 -0
  62. package/dist/types/api.d.ts +0 -0
  63. package/dist/types/code-editor.d.ts +0 -0
  64. package/dist/types/explorer.d.ts +0 -0
  65. package/dist/types/index.d.ts +0 -0
  66. package/dist/types/shared.d.ts +0 -0
  67. package/dist/types/utils.d.ts +0 -0
  68. package/dist/types/webform-editor.d.ts +0 -0
  69. package/dist/types/welcome-tour.d.ts +0 -0
  70. package/dist/utils/code.d.ts +0 -0
  71. package/dist/utils/common.d.ts +0 -0
  72. package/dist/utils/datasources.d.ts +0 -0
  73. package/dist/utils/explorer.d.ts +0 -0
  74. package/dist/utils/index.d.ts +0 -0
  75. package/dist/utils/model.d.ts +0 -0
  76. package/dist/utils/parser.d.ts +0 -0
  77. package/dist/utils/subjects.d.ts +0 -0
  78. package/dist/utils/validation.d.ts +0 -0
  79. package/dist/utils/validation.test.d.ts +0 -0
  80. package/dist/utils/waiter/index.d.ts +0 -0
  81. package/dist/utils/waiter/waiter.test.d.ts +0 -0
  82. package/dist/vite.svg +0 -0
  83. package/package.json +8 -14
package/README.md CHANGED
File without changes
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  export declare const LogoSVG: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
5
  }, import("react").SVGProps<SVGSVGElement>, {}>;
6
6
  export interface StudioProps {
7
7
  }
8
8
  export declare const AppLoader: ({ message, version, }: {
9
9
  message: string;
10
10
  version: string;
11
- }) => import("react/jsx-runtime").JSX.Element;
11
+ }) => JSX.Element;
File without changes
@@ -3,7 +3,7 @@ import React, { CSSProperties, FC } from 'react';
3
3
  interface IOverlayProps {
4
4
  onClick: (ev: React.MouseEvent) => void;
5
5
  }
6
- export declare const Overlay: FC<React.PropsWithChildren<IOverlayProps>>;
6
+ export declare const Overlay: FC<IOverlayProps>;
7
7
  interface IDialogBodyProps {
8
8
  style?: CSSProperties;
9
9
  attributes?: {
@@ -17,5 +17,5 @@ interface IDialogProps {
17
17
  referenceElement: Element | VirtualElement | null | undefined;
18
18
  placement?: Placement;
19
19
  }
20
- export declare const Dialog: FC<React.PropsWithChildren<IDialogProps>>;
20
+ export declare const Dialog: FC<IDialogProps>;
21
21
  export {};
@@ -1,4 +1,4 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export declare function Incase(props: PropsWithChildren<{
3
3
  of: any;
4
- }>): import("react/jsx-runtime").JSX.Element | null;
4
+ }>): JSX.Element | null;
@@ -1,2 +1,2 @@
1
1
  import { FC } from 'react';
2
- export declare const Portal: FC<React.PropsWithChildren<unknown>>;
2
+ export declare const Portal: FC;
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { TTip } from '../interfaces';
3
- declare const CarouselTip: FC<React.PropsWithChildren<{
3
+ declare const CarouselTip: FC<{
4
4
  pages?: TTip[];
5
- }>>;
5
+ }>;
6
6
  export default CarouselTip;
@@ -3,5 +3,5 @@ interface ITextTipProps {
3
3
  body: string;
4
4
  isInsideCarousel?: boolean;
5
5
  }
6
- declare const TextTip: React.FC<React.PropsWithChildren<ITextTipProps>>;
6
+ declare const TextTip: React.FC<ITextTipProps>;
7
7
  export default TextTip;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { IVideoTip } from '../interfaces';
3
- declare const VideoTip: FC<React.PropsWithChildren<Partial<Omit<IVideoTip, 'type'>>>>;
3
+ declare const VideoTip: FC<Partial<Omit<IVideoTip, 'type'>>>;
4
4
  export default VideoTip;
@@ -1,3 +1,3 @@
1
1
  import { TTip } from '../interfaces';
2
- declare const renderTip: (tip: TTip, isInsideCarousel?: boolean) => import("react/jsx-runtime").JSX.Element;
2
+ declare const renderTip: (tip: TTip, isInsideCarousel?: boolean) => JSX.Element;
3
3
  export default renderTip;
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
- export declare const Tip: FC<React.PropsWithChildren<{
2
+ export declare const Tip: FC<{
3
3
  tipKey: string;
4
4
  side?: 'left' | 'right';
5
5
  alwaysOn?: boolean;
6
6
  asButton?: boolean;
7
- }>>;
7
+ }>;
File without changes
@@ -1,9 +1,9 @@
1
1
  import { FC } from 'react';
2
2
  import { TTip } from './interfaces';
3
- export declare const TipsProvider: FC<React.PropsWithChildren<{
3
+ export declare const TipsProvider: FC<{
4
4
  enabled?: boolean;
5
5
  baseUrl?: string;
6
- }>>;
6
+ }>;
7
7
  export declare const useTip: (key?: string) => {
8
8
  tip: TTip | null;
9
9
  toggleTips: () => void;
@@ -1,8 +1,8 @@
1
1
  import React, { FC } from 'react';
2
2
  export type ToastKind = 'warning' | 'info' | 'danger' | 'message' | 'error' | 'multi';
3
- export type ToastCustomIcon = FC<React.PropsWithChildren<{
3
+ export type ToastCustomIcon = FC<{
4
4
  className?: string;
5
- }>>;
5
+ }>;
6
6
  interface IToastProps {
7
7
  kind: ToastKind;
8
8
  message: string | IMultilineMessage[];
@@ -15,5 +15,5 @@ export interface IMultilineMessage {
15
15
  title: string;
16
16
  messages: string[];
17
17
  }
18
- export declare const Toast: React.FC<React.PropsWithChildren<IToastProps>>;
18
+ export declare const Toast: React.FC<IToastProps>;
19
19
  export {};
@@ -5,5 +5,5 @@ interface ITooltip {
5
5
  placement?: Placement;
6
6
  className?: string;
7
7
  }
8
- export declare const Tooltip: React.FC<React.PropsWithChildren<ITooltip>>;
8
+ export declare const Tooltip: React.FC<ITooltip>;
9
9
  export {};
@@ -1,8 +1,8 @@
1
1
  import { FC } from 'react';
2
- declare const IndentLines: FC<React.PropsWithChildren<{
2
+ declare const IndentLines: FC<{
3
3
  showLines?: boolean;
4
4
  depth: number;
5
5
  height?: number;
6
6
  width?: number;
7
- }>>;
7
+ }>;
8
8
  export default IndentLines;
@@ -1,8 +1,8 @@
1
1
  import { FC, MouseEventHandler } from 'react';
2
- declare const Switcher: FC<React.PropsWithChildren<{
2
+ declare const Switcher: FC<{
3
3
  show: boolean;
4
4
  expanded: boolean;
5
5
  variant?: 'arrow' | 'caret';
6
6
  onClick?: MouseEventHandler;
7
- }>>;
7
+ }>;
8
8
  export default Switcher;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { ITreeProps } from '../interfaces';
3
- declare const Tree: FC<React.PropsWithChildren<ITreeProps>>;
3
+ declare const Tree: FC<ITreeProps>;
4
4
  export default Tree;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { TreeNodeProps } from '../interfaces';
3
- declare const TreeNode: FC<React.PropsWithChildren<TreeNodeProps>>;
3
+ declare const TreeNode: FC<TreeNodeProps>;
4
4
  export default TreeNode;
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  import { FC } from 'react';
2
2
  import { ITreeIcon } from './interfaces';
3
- export declare const TreeIcon: FC<React.PropsWithChildren<ITreeIcon>>;
3
+ export declare const TreeIcon: FC<ITreeIcon>;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -63,7 +63,7 @@ declare namespace webforms {
63
63
 
64
64
  type Info = {
65
65
  displayName: string;
66
- icon?: React.FC<React.PropsWithChildren<unknown>>;
66
+ icon?: React.FC;
67
67
  exposed?: boolean;
68
68
  isCanvas?: boolean;
69
69
  events: EventMeta[];
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export declare const IdentityProvider: (props: PropsWithChildren<{
3
3
  value: string;
4
- }>) => import("react/jsx-runtime").JSX.Element;
4
+ }>) => JSX.Element;
5
5
  export declare const useIdentity: () => string;
File without changes