@livetiles/reach-plugin-types 0.5.0-preview.970 → 0.5.0-preview.974
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 +88 -64
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5990,6 +5990,7 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
|
|
|
5990
5990
|
export { ReactComponent as PluginsActiveIcon } from './assets/plugins-active.svg';
|
|
5991
5991
|
export { ReactComponent as PluginsIcon } from './assets/plugins.svg';
|
|
5992
5992
|
export { ReactComponent as PublishIcon } from './assets/publish.svg';
|
|
5993
|
+
export { ReactComponent as RecentIcon } from './assets/recent.svg';
|
|
5993
5994
|
export { ReactComponent as ReorderIcon } from './assets/reorder.svg';
|
|
5994
5995
|
export { ReactComponent as ResourcesActiveIcon } from './assets/resources-active.svg';
|
|
5995
5996
|
export { ReactComponent as ResourcesIcon } from './assets/resources.svg';
|
|
@@ -6003,6 +6004,9 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
|
|
|
6003
6004
|
export { ReactComponent as ShareIcon } from './assets/share.svg';
|
|
6004
6005
|
export { ReactComponent as SideBarActiveIcon } from './assets/sidebar-active.svg';
|
|
6005
6006
|
export { ReactComponent as SideBarIcon } from './assets/sidebar.svg';
|
|
6007
|
+
export { ReactComponent as SortIcon } from './assets/sort.svg';
|
|
6008
|
+
export { ReactComponent as SortAscendingIcon } from './assets/sortAscending.svg';
|
|
6009
|
+
export { ReactComponent as SortDescendingIcon } from './assets/sortDescending.svg';
|
|
6006
6010
|
export { ReactComponent as StarActiveIcon } from './assets/star-active.svg';
|
|
6007
6011
|
export { ReactComponent as StarIcon } from './assets/star.svg';
|
|
6008
6012
|
export { ReactComponent as SubtitleActiveIcon } from './assets/subtitle-active.svg';
|
|
@@ -6029,15 +6033,6 @@ declare module "libs/reach/ui/common/src/reach-2/SearchBox" {
|
|
|
6029
6033
|
value: string;
|
|
6030
6034
|
}>;
|
|
6031
6035
|
}
|
|
6032
|
-
declare module "libs/reach/ui/common/src/reach-2/TextField" {
|
|
6033
|
-
import { FC, InputHTMLAttributes } from 'react';
|
|
6034
|
-
export interface ITextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
6035
|
-
label: string;
|
|
6036
|
-
errorMessage?: string;
|
|
6037
|
-
}
|
|
6038
|
-
const TextField: FC<ITextFieldProps>;
|
|
6039
|
-
export default TextField;
|
|
6040
|
-
}
|
|
6041
6036
|
declare module "libs/reach/ui/common/src/reach-2/assets/Assets" {
|
|
6042
6037
|
export { ReactComponent as Logo } from './logo.svg';
|
|
6043
6038
|
export { ReactComponent as Conversation } from './conversations.svg';
|
|
@@ -6358,21 +6353,25 @@ declare module "libs/reach/ui/common/src/reach-2/typography/Typography" {
|
|
|
6358
6353
|
const Typography: <T extends ElementType<any> = "span">(props: TTypographyOverridenProps<T>) => JSX.Element;
|
|
6359
6354
|
export default Typography;
|
|
6360
6355
|
}
|
|
6361
|
-
declare module "libs/reach/ui/common/src/reach-2/lists/
|
|
6362
|
-
import { FC,
|
|
6363
|
-
export
|
|
6356
|
+
declare module "libs/reach/ui/common/src/reach-2/lists/MenuItem" {
|
|
6357
|
+
import { FC, MouseEvent, SVGProps } from 'react';
|
|
6358
|
+
export interface MenuItemProps {
|
|
6364
6359
|
className?: string;
|
|
6365
6360
|
disabled?: boolean;
|
|
6366
6361
|
hasDivider?: boolean;
|
|
6367
|
-
icon?:
|
|
6362
|
+
icon?: SVGProps<SVGElement>;
|
|
6368
6363
|
isSelected?: boolean;
|
|
6369
6364
|
label: string;
|
|
6370
|
-
onClick:
|
|
6365
|
+
onClick: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
6371
6366
|
tailIcon?: JSX.Element;
|
|
6372
|
-
}
|
|
6367
|
+
}
|
|
6368
|
+
const MenuItem: FC<MenuItemProps>;
|
|
6369
|
+
export default MenuItem;
|
|
6370
|
+
}
|
|
6371
|
+
declare module "libs/reach/ui/common/src/reach-2/lists/MenuList" {
|
|
6372
|
+
import { FC } from 'react';
|
|
6373
6373
|
export interface MenuProps {
|
|
6374
6374
|
className?: string;
|
|
6375
|
-
items: MenuItem[];
|
|
6376
6375
|
title?: string;
|
|
6377
6376
|
}
|
|
6378
6377
|
const MenuList: FC<MenuProps>;
|
|
@@ -6457,8 +6456,8 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheetWithSt
|
|
|
6457
6456
|
}
|
|
6458
6457
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/Modal" {
|
|
6459
6458
|
import { FC } from 'react';
|
|
6460
|
-
import { ModalBottomSheetProps } from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet";
|
|
6461
6459
|
import { DialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/Dialog";
|
|
6460
|
+
import { ModalBottomSheetProps } from "libs/reach/ui/common/src/reach-2/surfaces/ModalBottomSheet";
|
|
6462
6461
|
interface ModalProps extends DialogProps, Omit<ModalBottomSheetProps, 'children'> {
|
|
6463
6462
|
onDismiss: () => void;
|
|
6464
6463
|
ref?: any;
|
|
@@ -6476,17 +6475,19 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/ConfirmationDialog" {
|
|
|
6476
6475
|
}>;
|
|
6477
6476
|
}
|
|
6478
6477
|
declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
|
|
6479
|
-
import { FC } from 'react';
|
|
6480
6478
|
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
6479
|
+
import { FC } from 'react';
|
|
6480
|
+
export type BasePopoverAlignType = 'start' | 'center' | 'end';
|
|
6481
|
+
export type BasePopoverSideType = 'top' | 'left' | 'bottom' | 'right';
|
|
6481
6482
|
export interface BasePopoverProps {
|
|
6482
|
-
align?:
|
|
6483
|
+
align?: BasePopoverAlignType;
|
|
6483
6484
|
alignOffset?: number;
|
|
6484
6485
|
anchor?: JSX.Element;
|
|
6485
6486
|
className?: string;
|
|
6486
6487
|
collisionPadding?: PopoverContentProps['collisionPadding'];
|
|
6487
6488
|
isOpen?: boolean;
|
|
6488
6489
|
onOpenChange?: (open: boolean) => void;
|
|
6489
|
-
side?:
|
|
6490
|
+
side?: BasePopoverSideType;
|
|
6490
6491
|
sideOffset?: number;
|
|
6491
6492
|
trigger?: JSX.Element;
|
|
6492
6493
|
}
|
|
@@ -6526,6 +6527,15 @@ declare module "libs/reach/ui/common/src/reach-2/tabs/TabGroup" {
|
|
|
6526
6527
|
export const TabGroup: FC<ITabGroupProps>;
|
|
6527
6528
|
export default TabGroup;
|
|
6528
6529
|
}
|
|
6530
|
+
declare module "libs/reach/ui/common/src/reach-2/table/Table" {
|
|
6531
|
+
import type { TableProps } from 'antd/es/table';
|
|
6532
|
+
import { FC } from 'react';
|
|
6533
|
+
export const columnSortIcon: ({ sortOrder, }: {
|
|
6534
|
+
sortOrder: 'ascend' | 'descend' | null;
|
|
6535
|
+
}) => JSX.Element;
|
|
6536
|
+
const Table: FC<TableProps>;
|
|
6537
|
+
export default Table;
|
|
6538
|
+
}
|
|
6529
6539
|
declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
|
|
6530
6540
|
import React from 'react';
|
|
6531
6541
|
interface TagProps {
|
|
@@ -6539,6 +6549,15 @@ declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
|
|
|
6539
6549
|
const Tag: React.FC<TagProps>;
|
|
6540
6550
|
export default Tag;
|
|
6541
6551
|
}
|
|
6552
|
+
declare module "libs/reach/ui/common/src/reach-2/TextField" {
|
|
6553
|
+
import { FC, InputHTMLAttributes } from 'react';
|
|
6554
|
+
export interface ITextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
6555
|
+
label: string;
|
|
6556
|
+
errorMessage?: string;
|
|
6557
|
+
}
|
|
6558
|
+
const TextField: FC<ITextFieldProps>;
|
|
6559
|
+
export default TextField;
|
|
6560
|
+
}
|
|
6542
6561
|
declare module "libs/reach/ui/common/src/reach-2/utils" {
|
|
6543
6562
|
export function getNormalizedPercentageBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): number;
|
|
6544
6563
|
export function useNormalizedBreakpointValuesBasedOnDeviceHeight(heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number): {
|
|
@@ -6551,18 +6570,21 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
|
6551
6570
|
export * from "libs/reach/ui/common/src/reach-2/DateTimeDisplay";
|
|
6552
6571
|
export * from "libs/reach/ui/common/src/reach-2/Icon";
|
|
6553
6572
|
export * from "libs/reach/ui/common/src/reach-2/SearchBox";
|
|
6554
|
-
export { default as TextField } from "libs/reach/ui/common/src/reach-2/TextField";
|
|
6555
6573
|
export * from "libs/reach/ui/common/src/reach-2/assets/index";
|
|
6556
6574
|
export * from "libs/reach/ui/common/src/reach-2/avatar/index";
|
|
6557
6575
|
export * from "libs/reach/ui/common/src/reach-2/buttons/index";
|
|
6558
6576
|
export * from "libs/reach/ui/common/src/reach-2/icons/index";
|
|
6559
6577
|
export * from "libs/reach/ui/common/src/reach-2/inputs/index";
|
|
6578
|
+
export { default as MenuItem } from "libs/reach/ui/common/src/reach-2/lists/MenuItem";
|
|
6560
6579
|
export { default as MenuList } from "libs/reach/ui/common/src/reach-2/lists/MenuList";
|
|
6561
6580
|
export * from "libs/reach/ui/common/src/reach-2/progress/index";
|
|
6562
6581
|
export * from "libs/reach/ui/common/src/reach-2/surfaces/index";
|
|
6563
6582
|
export { default as Card } from "libs/reach/ui/common/src/reach-2/surfaces/Card";
|
|
6564
6583
|
export { default as TabGroup } from "libs/reach/ui/common/src/reach-2/tabs/TabGroup";
|
|
6584
|
+
export { default as Table } from "libs/reach/ui/common/src/reach-2/table/Table";
|
|
6585
|
+
export { columnSortIcon } from "libs/reach/ui/common/src/reach-2/table/Table";
|
|
6565
6586
|
export { default as Tag } from "libs/reach/ui/common/src/reach-2/tags/Tag";
|
|
6587
|
+
export { default as TextField } from "libs/reach/ui/common/src/reach-2/TextField";
|
|
6566
6588
|
export { default as Typography } from "libs/reach/ui/common/src/reach-2/typography/Typography";
|
|
6567
6589
|
export type { ITypographyProps } from "libs/reach/ui/common/src/reach-2/typography/Typography";
|
|
6568
6590
|
export * from "libs/reach/ui/common/src/reach-2/utils";
|
|
@@ -8020,9 +8042,9 @@ declare module "libs/reach/feature/content/src/pages/utils" {
|
|
|
8020
8042
|
language: string;
|
|
8021
8043
|
};
|
|
8022
8044
|
export function getContentForPage(page: PageItem | PageNavigationNode, user: CurrentUser): {
|
|
8023
|
-
content: import("@livetiles/reach/util/common").TitleContent & {
|
|
8045
|
+
content: import("@livetiles/reach/util/common").PublishableItemContent | (import("@livetiles/reach/util/common").TitleContent & {
|
|
8024
8046
|
fileInfo?: import("@livetiles/reach/util/common").DocumentFileInfo;
|
|
8025
|
-
};
|
|
8047
|
+
});
|
|
8026
8048
|
language: string;
|
|
8027
8049
|
};
|
|
8028
8050
|
export function getLanguageForPage(page: PageItem | PageNavigationNode, user: CurrentUser): string;
|
|
@@ -11434,9 +11456,24 @@ declare module "libs/reach/feature/content/src/public-user/index" {
|
|
|
11434
11456
|
declare module "libs/reach/feature/content/src/search/index" {
|
|
11435
11457
|
export * from "libs/reach/feature/content/src/search/GlobalSearchButton";
|
|
11436
11458
|
}
|
|
11437
|
-
declare module "libs/reach/feature/content/src/reach-2/
|
|
11459
|
+
declare module "libs/reach/feature/content/src/reach-2/buttons/ButtonWithMenu" {
|
|
11460
|
+
import { BasePopoverAlignType, BasePopoverSideType } from "libs/reach/ui/common/src/index";
|
|
11438
11461
|
import { FC } from 'react';
|
|
11462
|
+
export interface ButtonWithMenuProps {
|
|
11463
|
+
align?: BasePopoverAlignType;
|
|
11464
|
+
alignOffset?: number;
|
|
11465
|
+
button: (onClick: () => void) => JSX.Element;
|
|
11466
|
+
className?: string;
|
|
11467
|
+
drawerHeight?: number;
|
|
11468
|
+
side?: BasePopoverSideType;
|
|
11469
|
+
sideOffset?: number;
|
|
11470
|
+
}
|
|
11471
|
+
const ButtonWithMenu: FC<ButtonWithMenuProps>;
|
|
11472
|
+
export default ButtonWithMenu;
|
|
11473
|
+
}
|
|
11474
|
+
declare module "libs/reach/feature/content/src/reach-2/common/feedback/ItemFeedbackMetadataContextProvider" {
|
|
11439
11475
|
import { FeedbackSettings, ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
11476
|
+
import { FC } from 'react';
|
|
11440
11477
|
import { ItemStatisticsContextProps } from "libs/reach/feature/content/src/feedback/ItemStatisticsContext";
|
|
11441
11478
|
interface ItemFeedbackMetadataContextProps {
|
|
11442
11479
|
isLiked: boolean;
|
|
@@ -11454,15 +11491,17 @@ declare module "libs/reach/feature/content/src/reach-2/common/feedback/ItemFeedb
|
|
|
11454
11491
|
}
|
|
11455
11492
|
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/BookmarkButton" {
|
|
11456
11493
|
import { FC } from 'react';
|
|
11457
|
-
|
|
11458
|
-
itemId: string;
|
|
11459
|
-
showText?: boolean;
|
|
11460
|
-
className?: string;
|
|
11494
|
+
interface BookmarkListItemProps {
|
|
11461
11495
|
activeLabel?: string;
|
|
11496
|
+
className?: string;
|
|
11497
|
+
iconSize?: number;
|
|
11498
|
+
itemId: string;
|
|
11499
|
+
isListItem?: boolean;
|
|
11462
11500
|
label?: string;
|
|
11463
11501
|
labelGap?: number;
|
|
11464
|
-
|
|
11465
|
-
}
|
|
11502
|
+
showText?: boolean;
|
|
11503
|
+
}
|
|
11504
|
+
export const BookmarkButton: FC<BookmarkListItemProps>;
|
|
11466
11505
|
}
|
|
11467
11506
|
declare module "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor" {
|
|
11468
11507
|
import { FC } from 'react';
|
|
@@ -11847,21 +11886,9 @@ declare module "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery
|
|
|
11847
11886
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
11848
11887
|
};
|
|
11849
11888
|
}
|
|
11850
|
-
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ContextMenuButton" {
|
|
11851
|
-
import { FC } from 'react';
|
|
11852
|
-
export const ContextMenuButton: FC<{
|
|
11853
|
-
buttons: (dismiss: () => void) => JSX.Element;
|
|
11854
|
-
className?: string;
|
|
11855
|
-
disabled?: boolean;
|
|
11856
|
-
drawerHeight?: number;
|
|
11857
|
-
onDismiss?: () => void;
|
|
11858
|
-
size?: number;
|
|
11859
|
-
}>;
|
|
11860
|
-
export const ContextMenuOptionsStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
11861
|
-
}
|
|
11862
11889
|
declare module "libs/reach/feature/content/src/reach-2/comments/CommentHeader" {
|
|
11863
|
-
import { FC } from 'react';
|
|
11864
11890
|
import { Account } from "libs/reach/util/common/src/index";
|
|
11891
|
+
import { FC } from 'react';
|
|
11865
11892
|
export const CommentHeader: FC<{
|
|
11866
11893
|
sender: Account;
|
|
11867
11894
|
receivedDateTime: string;
|
|
@@ -11985,27 +12012,22 @@ declare module "libs/reach/feature/content/src/reach-2/comments/CommentsList" {
|
|
|
11985
12012
|
itemId: string;
|
|
11986
12013
|
}>;
|
|
11987
12014
|
}
|
|
11988
|
-
declare module "libs/reach/feature/content/src/reach-2/
|
|
12015
|
+
declare module "libs/reach/feature/content/src/reach-2/listItems/CopyLinkListItem" {
|
|
11989
12016
|
import { FC } from 'react';
|
|
11990
|
-
|
|
12017
|
+
interface CopyLinkListItemProps {
|
|
11991
12018
|
permalink: string;
|
|
11992
|
-
className?: string;
|
|
11993
|
-
}>;
|
|
11994
|
-
}
|
|
11995
|
-
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton" {
|
|
11996
|
-
import { SVGProps } from 'react';
|
|
11997
|
-
interface IShareButtonProps {
|
|
11998
|
-
className?: string;
|
|
11999
|
-
onClick: () => void;
|
|
12000
|
-
secondarySVG?: SVGProps<SVGElement>;
|
|
12001
12019
|
}
|
|
12002
|
-
|
|
12020
|
+
const CopyLinkListItem: FC<CopyLinkListItemProps>;
|
|
12021
|
+
export default CopyLinkListItem;
|
|
12022
|
+
}
|
|
12023
|
+
declare module "libs/reach/feature/content/src/reach-2/listItems/index" {
|
|
12024
|
+
export { default as CopyLinkListItem } from "libs/reach/feature/content/src/reach-2/listItems/CopyLinkListItem";
|
|
12003
12025
|
}
|
|
12004
12026
|
declare module "libs/reach/feature/content/src/reach-2/common/detail/DetailViewContextMenu" {
|
|
12005
12027
|
import { FC } from 'react';
|
|
12006
12028
|
export const DetailViewContextMenu: FC<{
|
|
12007
|
-
permalink: string;
|
|
12008
12029
|
className?: string;
|
|
12030
|
+
permalink: string;
|
|
12009
12031
|
}>;
|
|
12010
12032
|
}
|
|
12011
12033
|
declare module "libs/reach/feature/content/src/reach-2/common/detail/useReadTimeCalculator" {
|
|
@@ -12042,12 +12064,6 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLike
|
|
|
12042
12064
|
className?: string;
|
|
12043
12065
|
}>;
|
|
12044
12066
|
}
|
|
12045
|
-
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButtonWithCallout" {
|
|
12046
|
-
import { FC } from 'react';
|
|
12047
|
-
export const ShareButtonWithCallout: FC<{
|
|
12048
|
-
permalink: string;
|
|
12049
|
-
}>;
|
|
12050
|
-
}
|
|
12051
12067
|
declare module "libs/reach/feature/content/src/reach-2/common/detail/DetailViewFeedbackButtons" {
|
|
12052
12068
|
import { FC } from 'react';
|
|
12053
12069
|
export const DetailViewFeedbackButtons: FC<{
|
|
@@ -12251,15 +12267,23 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentB
|
|
|
12251
12267
|
className?: string;
|
|
12252
12268
|
}>;
|
|
12253
12269
|
}
|
|
12270
|
+
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton" {
|
|
12271
|
+
import { SVGProps } from 'react';
|
|
12272
|
+
interface IShareButtonProps {
|
|
12273
|
+
className?: string;
|
|
12274
|
+
onClick: () => void;
|
|
12275
|
+
secondarySVG?: SVGProps<SVGElement>;
|
|
12276
|
+
}
|
|
12277
|
+
export const ShareButton: import("react").ForwardRefExoticComponent<IShareButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12278
|
+
}
|
|
12254
12279
|
declare module "libs/reach/feature/content/src/reach-2/buttons/feedback/index" {
|
|
12255
12280
|
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/BookmarkButton";
|
|
12256
12281
|
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/CommentButton";
|
|
12257
12282
|
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ItemLikeButton";
|
|
12258
12283
|
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButton";
|
|
12259
|
-
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ShareButtonWithCallout";
|
|
12260
|
-
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/ContextMenuButton";
|
|
12261
12284
|
}
|
|
12262
12285
|
declare module "libs/reach/feature/content/src/reach-2/buttons/index" {
|
|
12286
|
+
export { default as ButtonWithMenu } from "libs/reach/feature/content/src/reach-2/buttons/ButtonWithMenu";
|
|
12263
12287
|
export * from "libs/reach/feature/content/src/reach-2/buttons/feedback/index";
|
|
12264
12288
|
}
|
|
12265
12289
|
declare module "libs/reach/feature/content/src/reach-2/index" {
|