@ws-ui/shared 1.5.7 → 1.5.8

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 (54) hide show
  1. package/dist/components/AppLoader.d.ts +2 -3
  2. package/dist/components/ControlledSwitch.d.ts +0 -1
  3. package/dist/components/Dialog.d.ts +0 -1
  4. package/dist/components/Incase/index.d.ts +0 -1
  5. package/dist/components/Modal/Button.d.ts +0 -1
  6. package/dist/components/Modal/Icon.d.ts +0 -1
  7. package/dist/components/Modal/colors.d.ts +4 -3
  8. package/dist/components/Modal/index.d.ts +0 -1
  9. package/dist/components/Portal.d.ts +0 -1
  10. package/dist/components/Tips/components/CarouselTip.d.ts +0 -1
  11. package/dist/components/Tips/components/TextTip.d.ts +0 -1
  12. package/dist/components/Tips/components/VideoTip.d.ts +0 -1
  13. package/dist/components/Tips/components/index.d.ts +0 -1
  14. package/dist/components/Tips/index.d.ts +0 -1
  15. package/dist/components/Tips/provider.d.ts +0 -1
  16. package/dist/components/Toast.d.ts +0 -1
  17. package/dist/components/Tooltip.d.ts +0 -1
  18. package/dist/components/Tree/components/IndentLines.d.ts +0 -1
  19. package/dist/components/Tree/components/Switcher.d.ts +0 -1
  20. package/dist/components/Tree/components/Tree.d.ts +0 -1
  21. package/dist/components/Tree/components/TreeNode.d.ts +0 -1
  22. package/dist/components/Tree/index.d.ts +0 -1
  23. package/dist/components/Tree/interfaces.d.ts +0 -1
  24. package/dist/components/Tree/styled.d.ts +0 -1
  25. package/dist/constants.d.ts +0 -1
  26. package/dist/datasource-themes.d.ts +0 -1
  27. package/dist/declarations/webform/webform.d.ts +1 -0
  28. package/dist/hooks/use-didmounteffect.d.ts +0 -1
  29. package/dist/hooks/use-forwarded-ref.d.ts +0 -1
  30. package/dist/hooks/use-hotkeys.d.ts +0 -1
  31. package/dist/hooks/use-outside-click.d.ts +0 -1
  32. package/dist/hooks/use-state-ref.d.ts +0 -1
  33. package/dist/hooks/useDoubleClick.d.ts +0 -1
  34. package/dist/hooks/useIdentity.d.ts +0 -1
  35. package/dist/hooks/useStateObject.d.ts +0 -1
  36. package/dist/index.cjs.js +69 -82
  37. package/dist/index.cjs.js.map +1 -1
  38. package/dist/index.es.js +11247 -11027
  39. package/dist/index.es.js.map +1 -1
  40. package/dist/services/api.d.ts +9 -20
  41. package/dist/services/common.d.ts +2 -2
  42. package/dist/services/explorer.d.ts +2 -10
  43. package/dist/types/api.d.ts +0 -1
  44. package/dist/types/debugger.d.ts +0 -1
  45. package/dist/types/modal.d.ts +4 -5
  46. package/dist/types/shared.d.ts +0 -1
  47. package/dist/types/webform-editor.d.ts +0 -1
  48. package/dist/utils/code.d.ts +0 -1
  49. package/dist/utils/common.d.ts +0 -2
  50. package/dist/utils/explorer.d.ts +0 -1
  51. package/dist/utils/subjects.d.ts +2 -3
  52. package/package.json +25 -29
  53. package/dist/package.json +0 -70
  54. /package/dist/{style.css → shared.css} +0 -0
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  export declare const LogoSVG: import('@emotion/styled').StyledComponent<{
3
- theme?: import('@emotion/react').Theme | undefined;
4
- as?: import('react').ElementType<any> | undefined;
2
+ theme?: import('@emotion/react').Theme;
3
+ as?: React.ElementType;
5
4
  }, import('react').SVGProps<SVGSVGElement>, {}>;
6
5
  export interface StudioProps {
7
6
  }
@@ -1,5 +1,4 @@
1
1
  import { SwitchProps } from '@headlessui/react';
2
-
3
2
  export type SwitchSize = 'xs' | 'sm' | 'md' | 'lg';
4
3
  interface IControlledSwitchProps extends Omit<SwitchProps<'button'>, 'value' | 'size'> {
5
4
  onChange: (val: boolean) => void;
@@ -1,6 +1,5 @@
1
1
  import { Placement, VirtualElement } from '@popperjs/core';
2
2
  import { default as React, CSSProperties, FC } from 'react';
3
-
4
3
  interface IOverlayProps {
5
4
  onClick: (ev: React.MouseEvent) => void;
6
5
  }
@@ -1,5 +1,4 @@
1
1
  import { PropsWithChildren } from 'react';
2
-
3
2
  export declare function Incase(props: PropsWithChildren<{
4
3
  of: any;
5
4
  }>): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { ModalColor } from '../../types/modal';
3
-
4
3
  interface IButtonProps {
5
4
  color?: ModalColor;
6
5
  variant?: 'solid' | 'outlined';
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { ModalColor, ModalIcon } from '../../types/modal';
3
-
4
3
  interface IProps {
5
4
  name: ModalIcon;
6
5
  color?: ModalColor;
@@ -1,13 +1,14 @@
1
+ import { ModalColor } from '../../types/modal';
1
2
  declare const colorScheme: {
2
- primary: {
3
+ [ModalColor.PRIMARY]: {
3
4
  icon: string;
4
5
  button: string;
5
6
  };
6
- danger: {
7
+ [ModalColor.DANGER]: {
7
8
  icon: string;
8
9
  button: string;
9
10
  };
10
- warning: {
11
+ [ModalColor.WARNING]: {
11
12
  icon: string;
12
13
  button: string;
13
14
  };
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { IModal, ModalCloseReason } from '../../types/modal';
3
-
4
3
  interface ICloseModalParams {
5
4
  id: string;
6
5
  reason?: ModalCloseReason;
@@ -1,3 +1,2 @@
1
1
  import { FC } from 'react';
2
-
3
2
  export declare const Portal: FC;
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { TTip } from '../interfaces';
3
-
4
3
  declare const CarouselTip: FC<{
5
4
  pages?: TTip[];
6
5
  }>;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  interface ITextTipProps {
4
3
  body: string;
5
4
  isInsideCarousel?: boolean;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { IVideoTip } from '../interfaces';
3
-
4
3
  declare const VideoTip: FC<Partial<Omit<IVideoTip, 'type'>>>;
5
4
  export default VideoTip;
@@ -1,4 +1,3 @@
1
1
  import { TTip } from '../interfaces';
2
-
3
2
  declare const renderTip: (tip: TTip, isInsideCarousel?: boolean) => import("react/jsx-runtime").JSX.Element;
4
3
  export default renderTip;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  export declare const Tip: FC<{
4
3
  tipKey: string;
5
4
  side?: 'left' | 'right';
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { TTip } from './interfaces';
3
-
4
3
  export declare const TipsProvider: FC<{
5
4
  enabled?: boolean;
6
5
  baseUrl?: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React, FC } from 'react';
2
-
3
2
  export type ToastKind = 'warning' | 'info' | 'danger' | 'message' | 'error' | 'multi';
4
3
  export type ToastCustomIcon = FC<{
5
4
  className?: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { Placement } from '@popperjs/core';
3
-
4
3
  interface ITooltip {
5
4
  label: string;
6
5
  placement?: Placement;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  declare const IndentLines: FC<{
4
3
  showLines?: boolean;
5
4
  depth: number;
@@ -1,5 +1,4 @@
1
1
  import { FC, MouseEventHandler } from 'react';
2
-
3
2
  declare const Switcher: FC<{
4
3
  show: boolean;
5
4
  expanded: boolean;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { ITreeProps } from '../interfaces';
3
-
4
3
  declare const Tree: FC<ITreeProps>;
5
4
  export default Tree;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { TreeNodeProps } from '../interfaces';
3
-
4
3
  declare const TreeNode: FC<TreeNodeProps>;
5
4
  export default TreeNode;
@@ -2,7 +2,6 @@ import { default as Tree } from './components/Tree';
2
2
  import { default as TreeNode } from './components/TreeNode';
3
3
  import { default as IndentLines } from './components/IndentLines';
4
4
  import { default as Switcher } from './components/Switcher';
5
-
6
5
  export { TreeNode, Tree, IndentLines, Switcher };
7
6
  export * from './interfaces';
8
7
  export * from './styled';
@@ -1,5 +1,4 @@
1
1
  import { MouseEvent, ReactElement } from 'react';
2
-
3
2
  export type RenderNodeHandler<T = any> = (node: ITreeNodeData<T>, depth: number, state: NodeState, actions: TreeActions, searchQuery: string) => JSX.Element;
4
3
  export type NodeHandler = (node?: ITreeNodeData) => void;
5
4
  export type NodeState = {
@@ -1,4 +1,3 @@
1
1
  import { FC } from 'react';
2
2
  import { ITreeIcon } from './interfaces';
3
-
4
3
  export declare const TreeIcon: FC<ITreeIcon>;
@@ -1,5 +1,4 @@
1
1
  import { IEditor } from './types';
2
-
3
2
  interface IEditorList {
4
3
  Code: IEditor;
5
4
  WebForm: IEditor;
@@ -1,5 +1,4 @@
1
1
  import { CSSProperties } from 'react';
2
-
3
2
  export declare const DATASOURCE_THEMES: {
4
3
  [key: string]: CSSProperties;
5
4
  };
@@ -198,6 +198,7 @@ declare namespace webforms {
198
198
  value?: string;
199
199
  type?: string;
200
200
  };
201
+ step?: number;
201
202
  };
202
203
  state?: Partial<{
203
204
  action: WebformStateActionType;
@@ -1,3 +1,2 @@
1
1
  import { EffectCallback, DependencyList } from 'react';
2
-
3
2
  export declare function useDidMountEffect(effect: EffectCallback, deps?: DependencyList): void;
@@ -1,3 +1,2 @@
1
1
  import { ForwardedRef } from 'react';
2
-
3
2
  export declare function useForwardedRef<T>(ref: ForwardedRef<T>): import('react').MutableRefObject<T | null>;
@@ -1,6 +1,5 @@
1
1
  import { DependencyList } from 'react';
2
2
  import { KeyHandler } from 'hotkeys-js';
3
-
4
3
  type Options = {
5
4
  scope?: string;
6
5
  element?: HTMLElement | null;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const useOutsideClick: <T extends HTMLElement, R = void>(callback: (event: MouseEvent) => R) => import('react').MutableRefObject<T | null>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function useStateRef<T>(state: T): import('react').MutableRefObject<T>;
@@ -1,5 +1,4 @@
1
1
  import { MouseEvent } from 'react';
2
-
3
2
  type EventHandler<T = any> = (event: MouseEvent, ...params: T[]) => void;
4
3
  interface IOptions {
5
4
  timeout?: number;
@@ -1,5 +1,4 @@
1
1
  import { PropsWithChildren } from 'react';
2
-
3
2
  export declare const IdentityProvider: (props: PropsWithChildren<{
4
3
  value: string;
5
4
  }>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { SetStateAction } from 'react';
2
-
3
2
  export declare function useStateObject<T extends object>(initialState: T): {
4
3
  state: T;
5
4
  actions: InternalActions<T> & {