@livetiles/reach-plugin-types 0.5.0-preview.1234 → 0.5.0-preview.1236

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 (2) hide show
  1. package/lib/index.d.ts +22 -7
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3874,6 +3874,10 @@ declare module "libs/reach/util/common/src/reach-2/channels/types" {
3874
3874
  items: IChannelGroup[];
3875
3875
  totalCount: number;
3876
3876
  }
3877
+ export interface IChannelValidationErrorResponse {
3878
+ field: string;
3879
+ message: string;
3880
+ }
3877
3881
  }
3878
3882
  declare module "libs/reach/util/common/src/reach-2/hooks/useErrorHandler" {
3879
3883
  import { GraphQLError } from 'graphql';
@@ -3892,14 +3896,14 @@ declare module "libs/reach/util/common/src/reach-2/hooks/index" {
3892
3896
  }
3893
3897
  declare module "libs/reach/util/common/src/reach-2/channels/useChannelsQuery" {
3894
3898
  import { IPagedQueryParams } from "libs/reach/util/common/src/reach-2/types";
3895
- import { IChannel, IChannelDetails, IChannelGroup, IChannelGroupsQueryParams, IChannelGroupsQueryResponse, IChannelQueryResponse, ICreateChannelParams, IDeleteChannelParams, IDeleteChannelResponse, IRenameChannelParams, IRenameChannelResponse, IUpdateChannelGroupPermissionParams, IUpdateChannelGroupsParams, IUpdateChannelGroupsResponse } from "libs/reach/util/common/src/reach-2/channels/types";
3899
+ import { IChannel, IChannelDetails, IChannelGroup, IChannelGroupsQueryParams, IChannelGroupsQueryResponse, IChannelQueryResponse, IChannelValidationErrorResponse, ICreateChannelParams, IDeleteChannelParams, IDeleteChannelResponse, IRenameChannelParams, IRenameChannelResponse, IUpdateChannelGroupPermissionParams, IUpdateChannelGroupsParams, IUpdateChannelGroupsResponse } from "libs/reach/util/common/src/reach-2/channels/types";
3896
3900
  export const useChannelsQuery: () => {
3897
3901
  createChannel: (channel: ICreateChannelParams) => Promise<IChannel>;
3898
3902
  deleteChannel: (deleteChannelInput: IDeleteChannelParams) => Promise<IDeleteChannelResponse>;
3899
3903
  getChannels: (params: IPagedQueryParams) => Promise<IChannelQueryResponse>;
3900
3904
  getChannelDetails: (id: string) => Promise<IChannelDetails>;
3901
3905
  getChannelGroups: (params: IChannelGroupsQueryParams) => Promise<IChannelGroupsQueryResponse>;
3902
- renameChannel: (channel: IRenameChannelParams) => Promise<IRenameChannelResponse>;
3906
+ renameChannel: (channel: IRenameChannelParams) => Promise<IRenameChannelResponse | IChannelValidationErrorResponse>;
3903
3907
  updateChannelGroupPermission: (id: string, group: IUpdateChannelGroupPermissionParams) => Promise<IChannelGroup>;
3904
3908
  updateChannelGroups: (channel: IUpdateChannelGroupsParams) => Promise<IUpdateChannelGroupsResponse>;
3905
3909
  };
@@ -6710,19 +6714,21 @@ declare module "libs/reach/ui/common/src/reach-2/buttons/index" {
6710
6714
  export * from "libs/reach/ui/common/src/reach-2/buttons/StandardButton";
6711
6715
  }
6712
6716
  declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
6713
- import React, { SVGProps } from 'react';
6717
+ import React, { HTMLProps, SVGProps } from 'react';
6714
6718
  export type TagSize = 'Large' | 'Small';
6715
- interface TagProps {
6719
+ interface CustomTagProps {
6716
6720
  className?: string;
6721
+ counter?: number;
6717
6722
  error?: boolean;
6718
- icon?: SVGProps<SVGElement>;
6719
6723
  isHighlighted?: boolean;
6720
6724
  label: string;
6721
- onClick?: () => void;
6725
+ leftIcon?: SVGProps<SVGElement>;
6722
6726
  onClose?: () => void;
6727
+ rightIcon?: SVGProps<SVGElement>;
6723
6728
  size?: TagSize;
6724
6729
  }
6725
- const Tag: React.FC<TagProps>;
6730
+ type TagProps = CustomTagProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'size'>;
6731
+ const Tag: React.ForwardRefExoticComponent<Pick<TagProps, "cite" | "data" | "form" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "type" | "name" | "children" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "target" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "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" | "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" | "key" | "list" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "kind" | "srcLang" | "poster" | keyof CustomTagProps> & React.RefAttributes<HTMLDivElement>>;
6726
6732
  export default Tag;
6727
6733
  }
6728
6734
  declare module "libs/reach/ui/common/src/reach-2/utils" {
@@ -12618,6 +12624,14 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/common/AddG
12618
12624
  }>;
12619
12625
  export default AddGifPopover;
12620
12626
  }
12627
+ declare module "libs/reach/feature/content/src/reach-2/common/editor/common/ChooseChannels" {
12628
+ import { FC } from 'react';
12629
+ interface IChooseChannelProps {
12630
+ selectedChannelIds?: string[];
12631
+ }
12632
+ const ChooseChannels: FC<IChooseChannelProps>;
12633
+ export default ChooseChannels;
12634
+ }
12621
12635
  declare module "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor" {
12622
12636
  import { Editor } from '@tiptap/react';
12623
12637
  import { FC } from 'react';
@@ -12659,6 +12673,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
12659
12673
  export { default as AddEmojiPopover } from "libs/reach/feature/content/src/reach-2/common/editor/common/AddEmojiPopover";
12660
12674
  export { default as MentionsButton } from "libs/reach/feature/content/src/reach-2/common/editor/common/MentionsButton";
12661
12675
  export { default as AddGifPopover } from "libs/reach/feature/content/src/reach-2/common/editor/common/AddGifPopover";
12676
+ export { default as ChooseChannels } from "libs/reach/feature/content/src/reach-2/common/editor/common/ChooseChannels";
12662
12677
  export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
12663
12678
  export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor";
12664
12679
  export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor";
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.1234",
7
+ "version": "0.5.0-preview.1236",
8
8
  "dependencies": {}
9
9
  }