@livetiles/reach-plugin-types 0.5.0-preview.1035 → 0.5.0-preview.1037
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.
- package/lib/index.d.ts +121 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4256,11 +4256,53 @@ declare module "libs/reach/util/common/src/reach-2/ThemeContext" {
|
|
|
4256
4256
|
export const ThemeContextProvider: FC<{
|
|
4257
4257
|
children: ReactNode;
|
|
4258
4258
|
}>;
|
|
4259
|
+
export function useReach2Theme(): any;
|
|
4259
4260
|
}
|
|
4260
4261
|
declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls" {
|
|
4261
4262
|
export function usePageScrollDirectionForTogglingControls(disableOnLargeScreen?: boolean, maximumAllowedScreenWidth?: number, upThreshold?: number, downThreshold?: number): boolean;
|
|
4262
4263
|
export function useDirectionAwarePageScrollListener(onScrollDown: () => void, onScrollUp: () => void, shouldDisable?: (containerWidth: number) => boolean, upThreshold?: number, downThreshold?: number): void;
|
|
4263
4264
|
}
|
|
4265
|
+
declare module "libs/reach/util/common/src/reach-2/members/IMember" {
|
|
4266
|
+
export enum Role {
|
|
4267
|
+
Member = "Member",
|
|
4268
|
+
Owner = "Owner"
|
|
4269
|
+
}
|
|
4270
|
+
export enum SortOrder {
|
|
4271
|
+
ASC = "ASC",
|
|
4272
|
+
DESC = "DESC"
|
|
4273
|
+
}
|
|
4274
|
+
export interface IMember {
|
|
4275
|
+
displayName: string;
|
|
4276
|
+
hasPendingInvitation: boolean;
|
|
4277
|
+
id: string;
|
|
4278
|
+
lastLoginTime: string;
|
|
4279
|
+
mail: string;
|
|
4280
|
+
role: Role;
|
|
4281
|
+
userPrincipalName: string;
|
|
4282
|
+
}
|
|
4283
|
+
export interface IMembersQueryParams {
|
|
4284
|
+
order?: [{
|
|
4285
|
+
[key: string]: SortOrder;
|
|
4286
|
+
}] | null;
|
|
4287
|
+
searchText?: string | null;
|
|
4288
|
+
skip?: number | null;
|
|
4289
|
+
take?: number | null;
|
|
4290
|
+
}
|
|
4291
|
+
export interface IMembersPage {
|
|
4292
|
+
items: IMember[];
|
|
4293
|
+
pageInfo: {
|
|
4294
|
+
hasNextPage: boolean;
|
|
4295
|
+
hasPreviousPage: boolean;
|
|
4296
|
+
};
|
|
4297
|
+
totalCount: number;
|
|
4298
|
+
}
|
|
4299
|
+
}
|
|
4300
|
+
declare module "libs/reach/util/common/src/reach-2/members/useMembersQuery" {
|
|
4301
|
+
import { IMembersPage, IMembersQueryParams } from "libs/reach/util/common/src/reach-2/members/IMember";
|
|
4302
|
+
export const useMembersQuery: () => {
|
|
4303
|
+
getAllUsers: (params: IMembersQueryParams) => Promise<IMembersPage>;
|
|
4304
|
+
};
|
|
4305
|
+
}
|
|
4264
4306
|
declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
|
|
4265
4307
|
import { NestedGroup } from "libs/reach/util/common/src/user/index";
|
|
4266
4308
|
export interface NestedGroupInput {
|
|
@@ -4287,6 +4329,8 @@ declare module "libs/reach/util/common/src/reach-2/index" {
|
|
|
4287
4329
|
export * from "libs/reach/util/common/src/reach-2/ThemeContext";
|
|
4288
4330
|
export * from "libs/reach/util/common/src/reach-2/useNewExperienceStorage";
|
|
4289
4331
|
export * from "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls";
|
|
4332
|
+
export * from "libs/reach/util/common/src/reach-2/members/IMember";
|
|
4333
|
+
export * from "libs/reach/util/common/src/reach-2/members/useMembersQuery";
|
|
4290
4334
|
export * from "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery";
|
|
4291
4335
|
}
|
|
4292
4336
|
declare module "libs/reach/util/common/src/useReachClassNames" {
|
|
@@ -6145,6 +6189,8 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
|
|
|
6145
6189
|
export { ReactComponent as StarIcon } from './assets/star.svg';
|
|
6146
6190
|
export { ReactComponent as SubtitleActiveIcon } from './assets/subtitle-active.svg';
|
|
6147
6191
|
export { ReactComponent as SubtitleIcon } from './assets/subtitle.svg';
|
|
6192
|
+
export { ReactComponent as SystemError } from './assets/system-error.svg';
|
|
6193
|
+
export { ReactComponent as SystemSuccess } from './assets/system-success.svg';
|
|
6148
6194
|
export { ReactComponent as TagIcon } from './assets/tag.svg';
|
|
6149
6195
|
export { ReactComponent as TemplatesActiveIcon } from './assets/templates-active.svg';
|
|
6150
6196
|
export { ReactComponent as TemplatesIcon } from './assets/templates.svg';
|
|
@@ -6576,6 +6622,7 @@ declare module "libs/reach/ui/common/src/reach-2/select/Select" {
|
|
|
6576
6622
|
onAddItem?: (id: string) => void;
|
|
6577
6623
|
onInputChange?: (value: string) => void;
|
|
6578
6624
|
onItemsChange?: (items: T[]) => void;
|
|
6625
|
+
onItemSelected?: (item: T, index: number) => void;
|
|
6579
6626
|
onRemoveItem?: (id: string) => void;
|
|
6580
6627
|
options: T[] | SelectItemGroupProps<T>[];
|
|
6581
6628
|
placeholder?: string;
|
|
@@ -6589,7 +6636,7 @@ declare module "libs/reach/ui/common/src/reach-2/select/Select" {
|
|
|
6589
6636
|
size?: SelectSize;
|
|
6590
6637
|
values?: T[];
|
|
6591
6638
|
}
|
|
6592
|
-
const Select: <T extends SelectItemProps = SelectItemProps>({ allowCreation, className, disabled, emptyLabel, errorItems, errorLabel, forcePlaceholder, hideChevron, leftIcon, multiple, onAddItem, onInputChange, onItemsChange, onRemoveItem, options: preprocessedOptions, placeholder, popoverHeight, renderItem, searchable, selectedValuesOptions, size, values, }: SelectProps<T>) => JSX.Element;
|
|
6639
|
+
const Select: <T extends SelectItemProps = SelectItemProps>({ allowCreation, className, disabled, emptyLabel, errorItems, errorLabel, forcePlaceholder, hideChevron, leftIcon, multiple, onAddItem, onInputChange, onItemsChange, onItemSelected, onRemoveItem, options: preprocessedOptions, placeholder, popoverHeight, renderItem, searchable, selectedValuesOptions, size, values, }: SelectProps<T>) => JSX.Element;
|
|
6593
6640
|
export default Select;
|
|
6594
6641
|
}
|
|
6595
6642
|
declare module "libs/reach/ui/common/src/reach-2/select/UserSelect" {
|
|
@@ -12432,14 +12479,85 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
|
|
|
12432
12479
|
export { default as CommentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12433
12480
|
export * from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12434
12481
|
export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
|
|
12435
|
-
export
|
|
12482
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor";
|
|
12483
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor";
|
|
12436
12484
|
export { default as EnhancedRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12437
12485
|
export * from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12438
12486
|
export * from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12439
12487
|
}
|
|
12488
|
+
declare module "libs/reach/feature/content/src/reach-2/comments/index" {
|
|
12489
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/CommentDisplay";
|
|
12490
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/CommentEditorOverlay";
|
|
12491
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/CommentFormattingToolbar";
|
|
12492
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/CommentsList";
|
|
12493
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery";
|
|
12494
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/useTransformedCommentContent";
|
|
12495
|
+
}
|
|
12496
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Footer" {
|
|
12497
|
+
import { FC } from 'react';
|
|
12498
|
+
import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor";
|
|
12499
|
+
interface IFooterProps {
|
|
12500
|
+
editorCharacterLimit: number;
|
|
12501
|
+
getCharacterCount: () => number;
|
|
12502
|
+
onSave: () => void;
|
|
12503
|
+
onClickButton: (option: TextStylingOptions) => void;
|
|
12504
|
+
shouldShowTextFormatting: boolean;
|
|
12505
|
+
showTextStylingOptions: TextStylingOptions;
|
|
12506
|
+
}
|
|
12507
|
+
const Footer: FC<IFooterProps>;
|
|
12508
|
+
export default Footer;
|
|
12509
|
+
}
|
|
12510
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Header" {
|
|
12511
|
+
import { FC } from 'react';
|
|
12512
|
+
const Header: FC;
|
|
12513
|
+
export default Header;
|
|
12514
|
+
}
|
|
12515
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Main" {
|
|
12516
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
12517
|
+
import { Editor } from '@tiptap/react';
|
|
12518
|
+
import { FC } from 'react';
|
|
12519
|
+
import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor";
|
|
12520
|
+
interface IMainProps {
|
|
12521
|
+
editor: Editor;
|
|
12522
|
+
getMentionsSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
12523
|
+
setShowTextStylingOptions: (option: TextStylingOptions) => void;
|
|
12524
|
+
shouldShowOverlay: boolean;
|
|
12525
|
+
shouldShowTextFormatting: boolean;
|
|
12526
|
+
showTextStylingOptions: TextStylingOptions;
|
|
12527
|
+
}
|
|
12528
|
+
const Main: FC<IMainProps>;
|
|
12529
|
+
export default Main;
|
|
12530
|
+
}
|
|
12531
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor" {
|
|
12532
|
+
import { Comment } from "libs/reach/util/common/src/index";
|
|
12533
|
+
import { FC } from 'react';
|
|
12534
|
+
export enum TextStylingOptions {
|
|
12535
|
+
None = 0,
|
|
12536
|
+
EmojiOverlay = 1,
|
|
12537
|
+
MentionOverlay = 2,
|
|
12538
|
+
TextFormatting = 3
|
|
12539
|
+
}
|
|
12540
|
+
interface ICommentEditorProps {
|
|
12541
|
+
className?: string;
|
|
12542
|
+
comment?: Comment;
|
|
12543
|
+
parentItemId: string;
|
|
12544
|
+
placeholder?: string;
|
|
12545
|
+
}
|
|
12546
|
+
const CommentEditor: FC<ICommentEditorProps>;
|
|
12547
|
+
export default CommentEditor;
|
|
12548
|
+
}
|
|
12549
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentsList" {
|
|
12550
|
+
import { FC } from 'react';
|
|
12551
|
+
interface ICommentsListProps {
|
|
12552
|
+
itemId: string;
|
|
12553
|
+
}
|
|
12554
|
+
const CommentsList: FC<ICommentsListProps>;
|
|
12555
|
+
export default CommentsList;
|
|
12556
|
+
}
|
|
12440
12557
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/Footer" {
|
|
12441
12558
|
import { PostStreamItem } from "libs/reach/feature/content/src/stream/index";
|
|
12442
12559
|
interface IFooterProps {
|
|
12560
|
+
commentCount?: number;
|
|
12443
12561
|
item: PostStreamItem;
|
|
12444
12562
|
}
|
|
12445
12563
|
const Footer: React.FC<IFooterProps>;
|
|
@@ -12531,6 +12649,7 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/index" {
|
|
|
12531
12649
|
}
|
|
12532
12650
|
declare module "libs/reach/feature/content/src/reach-2/index" {
|
|
12533
12651
|
export * from "libs/reach/feature/content/src/reach-2/buttons/index";
|
|
12652
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/index";
|
|
12534
12653
|
export * from "libs/reach/feature/content/src/reach-2/common/index";
|
|
12535
12654
|
}
|
|
12536
12655
|
declare module "libs/reach/feature/content/src/index" {
|