@livetiles/reach-plugin-types 0.5.0-preview.1034 → 0.5.0-preview.1036
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 +146 -13
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3174,6 +3174,7 @@ declare module "libs/reach/util/common/src/theme/theme2/colors" {
|
|
|
3174
3174
|
primary: "#0F0E0E";
|
|
3175
3175
|
secondary: "#3E3938";
|
|
3176
3176
|
tertiary: "#5C5653";
|
|
3177
|
+
themeIcon: "#663120";
|
|
3177
3178
|
};
|
|
3178
3179
|
export const strokeColors: {
|
|
3179
3180
|
avatar: "#FFFFFF";
|
|
@@ -3181,6 +3182,12 @@ declare module "libs/reach/util/common/src/theme/theme2/colors" {
|
|
|
3181
3182
|
disabled: "#C2BCB9";
|
|
3182
3183
|
focus: "#0F0E0E";
|
|
3183
3184
|
primary: "#0F0E0E";
|
|
3185
|
+
theme: {
|
|
3186
|
+
default: "#FF7A50";
|
|
3187
|
+
focus: "#663120";
|
|
3188
|
+
hover: "#CC6240";
|
|
3189
|
+
pressed: "#994930";
|
|
3190
|
+
};
|
|
3184
3191
|
};
|
|
3185
3192
|
divider: {
|
|
3186
3193
|
disabled: "#C2BCB9";
|
|
@@ -3201,7 +3208,11 @@ declare module "libs/reach/util/common/src/theme/theme2/colors" {
|
|
|
3201
3208
|
export const themeColors: {
|
|
3202
3209
|
disabled: "#FFE4DC";
|
|
3203
3210
|
hover: "#FF7A50";
|
|
3204
|
-
|
|
3211
|
+
interaction: {
|
|
3212
|
+
hover: "#FFCAB9";
|
|
3213
|
+
selected: "#FFE4DC";
|
|
3214
|
+
pressed: "#FFAF96";
|
|
3215
|
+
};
|
|
3205
3216
|
inverted: {
|
|
3206
3217
|
hover: "#FFE4DC";
|
|
3207
3218
|
pressed: "#FFCAB9";
|
|
@@ -3384,6 +3395,7 @@ declare module "libs/reach/util/common/src/theme/theme2/index" {
|
|
|
3384
3395
|
primary: "#0F0E0E";
|
|
3385
3396
|
secondary: "#3E3938";
|
|
3386
3397
|
tertiary: "#5C5653";
|
|
3398
|
+
themeIcon: "#663120";
|
|
3387
3399
|
};
|
|
3388
3400
|
stroke: {
|
|
3389
3401
|
avatar: "#FFFFFF";
|
|
@@ -3391,6 +3403,12 @@ declare module "libs/reach/util/common/src/theme/theme2/index" {
|
|
|
3391
3403
|
disabled: "#C2BCB9";
|
|
3392
3404
|
focus: "#0F0E0E";
|
|
3393
3405
|
primary: "#0F0E0E";
|
|
3406
|
+
theme: {
|
|
3407
|
+
default: "#FF7A50";
|
|
3408
|
+
focus: "#663120";
|
|
3409
|
+
hover: "#CC6240";
|
|
3410
|
+
pressed: "#994930";
|
|
3411
|
+
};
|
|
3394
3412
|
};
|
|
3395
3413
|
divider: {
|
|
3396
3414
|
disabled: "#C2BCB9";
|
|
@@ -3411,7 +3429,11 @@ declare module "libs/reach/util/common/src/theme/theme2/index" {
|
|
|
3411
3429
|
theme: {
|
|
3412
3430
|
disabled: "#FFE4DC";
|
|
3413
3431
|
hover: "#FF7A50";
|
|
3414
|
-
|
|
3432
|
+
interaction: {
|
|
3433
|
+
hover: "#FFCAB9";
|
|
3434
|
+
selected: "#FFE4DC";
|
|
3435
|
+
pressed: "#FFAF96";
|
|
3436
|
+
};
|
|
3415
3437
|
inverted: {
|
|
3416
3438
|
hover: "#FFE4DC";
|
|
3417
3439
|
pressed: "#FFCAB9";
|
|
@@ -3599,6 +3621,7 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
3599
3621
|
primary: "#0F0E0E";
|
|
3600
3622
|
secondary: "#3E3938";
|
|
3601
3623
|
tertiary: "#5C5653";
|
|
3624
|
+
themeIcon: "#663120";
|
|
3602
3625
|
};
|
|
3603
3626
|
stroke: {
|
|
3604
3627
|
avatar: "#FFFFFF";
|
|
@@ -3606,6 +3629,12 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
3606
3629
|
disabled: "#C2BCB9";
|
|
3607
3630
|
focus: "#0F0E0E";
|
|
3608
3631
|
primary: "#0F0E0E";
|
|
3632
|
+
theme: {
|
|
3633
|
+
default: "#FF7A50";
|
|
3634
|
+
focus: "#663120";
|
|
3635
|
+
hover: "#CC6240";
|
|
3636
|
+
pressed: "#994930";
|
|
3637
|
+
};
|
|
3609
3638
|
};
|
|
3610
3639
|
divider: {
|
|
3611
3640
|
disabled: "#C2BCB9";
|
|
@@ -3626,7 +3655,11 @@ declare module "libs/reach/util/common/src/theme/ThemeService" {
|
|
|
3626
3655
|
theme: {
|
|
3627
3656
|
disabled: "#FFE4DC";
|
|
3628
3657
|
hover: "#FF7A50";
|
|
3629
|
-
|
|
3658
|
+
interaction: {
|
|
3659
|
+
hover: "#FFCAB9";
|
|
3660
|
+
selected: "#FFE4DC";
|
|
3661
|
+
pressed: "#FFAF96";
|
|
3662
|
+
};
|
|
3630
3663
|
inverted: {
|
|
3631
3664
|
hover: "#FFE4DC";
|
|
3632
3665
|
pressed: "#FFCAB9";
|
|
@@ -4223,6 +4256,7 @@ declare module "libs/reach/util/common/src/reach-2/ThemeContext" {
|
|
|
4223
4256
|
export const ThemeContextProvider: FC<{
|
|
4224
4257
|
children: ReactNode;
|
|
4225
4258
|
}>;
|
|
4259
|
+
export function useReach2Theme(): any;
|
|
4226
4260
|
}
|
|
4227
4261
|
declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls" {
|
|
4228
4262
|
export function usePageScrollDirectionForTogglingControls(disableOnLargeScreen?: boolean, maximumAllowedScreenWidth?: number, upThreshold?: number, downThreshold?: number): boolean;
|
|
@@ -6382,6 +6416,7 @@ declare module "libs/reach/ui/common/src/reach-2/inputs/components/Legend" {
|
|
|
6382
6416
|
}
|
|
6383
6417
|
declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
|
|
6384
6418
|
import React, { SVGProps } from 'react';
|
|
6419
|
+
export type TagSize = 'Large' | 'Small';
|
|
6385
6420
|
interface TagProps {
|
|
6386
6421
|
className?: string;
|
|
6387
6422
|
error?: boolean;
|
|
@@ -6389,6 +6424,7 @@ declare module "libs/reach/ui/common/src/reach-2/tags/Tag" {
|
|
|
6389
6424
|
label: string;
|
|
6390
6425
|
onClick?: () => void;
|
|
6391
6426
|
onClose?: () => void;
|
|
6427
|
+
size?: TagSize;
|
|
6392
6428
|
}
|
|
6393
6429
|
const Tag: React.FC<TagProps>;
|
|
6394
6430
|
export default Tag;
|
|
@@ -6497,6 +6533,25 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/BasePopover" {
|
|
|
6497
6533
|
}
|
|
6498
6534
|
export const BasePopover: FC<BasePopoverProps>;
|
|
6499
6535
|
}
|
|
6536
|
+
declare module "libs/reach/ui/common/src/reach-2/utils" {
|
|
6537
|
+
import { TagSize } from "libs/reach/ui/common/src/reach-2/tags/Tag";
|
|
6538
|
+
export const getNormalizedPercentageBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => number;
|
|
6539
|
+
export const useNormalizedBreakpointValuesBasedOnDeviceHeight: (heightToConvert: number, safeArea?: number, fullyExpandThreshold?: number) => {
|
|
6540
|
+
breakpoints: number[];
|
|
6541
|
+
initialBreakpoint: number;
|
|
6542
|
+
};
|
|
6543
|
+
export const getIsMobilePhone: () => boolean;
|
|
6544
|
+
export type TagValue = {
|
|
6545
|
+
id: string;
|
|
6546
|
+
label?: string;
|
|
6547
|
+
name?: string;
|
|
6548
|
+
};
|
|
6549
|
+
export const getMaxTagList: (items: TagValue[], availableWidth: number, options?: {
|
|
6550
|
+
hasError?: (value: TagValue) => boolean;
|
|
6551
|
+
onClose?: (value: TagValue) => void;
|
|
6552
|
+
size?: TagSize;
|
|
6553
|
+
}) => any[];
|
|
6554
|
+
}
|
|
6500
6555
|
declare module "libs/reach/ui/common/src/reach-2/select/Select" {
|
|
6501
6556
|
import { IconProps } from "libs/reach/ui/common/src/reach-2/icons/index";
|
|
6502
6557
|
type SelectSize = 'Large' | 'Small';
|
|
@@ -6593,10 +6648,11 @@ declare module "libs/reach/ui/common/src/reach-2/surfaces/MobileInlineModal" {
|
|
|
6593
6648
|
import { AnimationBuilder } from '@ionic/core';
|
|
6594
6649
|
import { BaseDialogProps } from "libs/reach/ui/common/src/reach-2/surfaces/BaseDialog";
|
|
6595
6650
|
export type MobileInlineModalProps = BaseDialogProps & {
|
|
6651
|
+
customActionButton?: SVGProps<SVGElement>;
|
|
6596
6652
|
enterAnimation?: AnimationBuilder;
|
|
6597
|
-
|
|
6653
|
+
footer?: JSX.Element;
|
|
6598
6654
|
hideHeader?: boolean;
|
|
6599
|
-
|
|
6655
|
+
leaveAnimation?: AnimationBuilder;
|
|
6600
6656
|
};
|
|
6601
6657
|
export const MobileInlineModal: FC<MobileInlineModalProps>;
|
|
6602
6658
|
}
|
|
@@ -6697,13 +6753,17 @@ declare module "libs/reach/ui/common/src/reach-2/table/Table" {
|
|
|
6697
6753
|
const _default_2: import("react").ForwardRefExoticComponent<TableProps<any> & import("react").RefAttributes<any>>;
|
|
6698
6754
|
export default _default_2;
|
|
6699
6755
|
}
|
|
6700
|
-
declare module "libs/reach/ui/common/src/reach-2/
|
|
6701
|
-
|
|
6702
|
-
export
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6756
|
+
declare module "libs/reach/ui/common/src/reach-2/tags/SelectableTag" {
|
|
6757
|
+
import { SVGProps } from 'react';
|
|
6758
|
+
export interface SelectableTagProps {
|
|
6759
|
+
className?: string;
|
|
6760
|
+
icon?: SVGProps<SVGElement>;
|
|
6761
|
+
isSelected?: boolean;
|
|
6762
|
+
label: string;
|
|
6763
|
+
onClick: () => void;
|
|
6764
|
+
}
|
|
6765
|
+
const SelectableTag: React.FC<SelectableTagProps>;
|
|
6766
|
+
export default SelectableTag;
|
|
6707
6767
|
}
|
|
6708
6768
|
declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
6709
6769
|
export * from "libs/reach/ui/common/src/reach-2/DateTimeDisplay";
|
|
@@ -6724,6 +6784,7 @@ declare module "libs/reach/ui/common/src/reach-2/index" {
|
|
|
6724
6784
|
export { default as Table } from "libs/reach/ui/common/src/reach-2/table/Table";
|
|
6725
6785
|
export * from "libs/reach/ui/common/src/reach-2/table/Table";
|
|
6726
6786
|
export { default as Tag } from "libs/reach/ui/common/src/reach-2/tags/Tag";
|
|
6787
|
+
export { default as SelectableTag } from "libs/reach/ui/common/src/reach-2/tags/SelectableTag";
|
|
6727
6788
|
export { default as Typography } from "libs/reach/ui/common/src/reach-2/typography/Typography";
|
|
6728
6789
|
export type { ITypographyProps } from "libs/reach/ui/common/src/reach-2/typography/Typography";
|
|
6729
6790
|
export * from "libs/reach/ui/common/src/reach-2/utils";
|
|
@@ -12372,14 +12433,85 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/index" {
|
|
|
12372
12433
|
export { default as CommentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12373
12434
|
export * from "libs/reach/feature/content/src/reach-2/common/editor/CommentRichTextEditor";
|
|
12374
12435
|
export { default as ContentRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/ContentRichTextEditor";
|
|
12375
|
-
export
|
|
12436
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/EmojiEditor";
|
|
12437
|
+
export * from "libs/reach/feature/content/src/reach-2/common/editor/editors/MentionsEditor";
|
|
12376
12438
|
export { default as EnhancedRichTextEditor } from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12377
12439
|
export * from "libs/reach/feature/content/src/reach-2/common/editor/EnhancedRichTextEditor";
|
|
12378
12440
|
export * from "libs/reach/feature/content/src/reach-2/common/editor/types";
|
|
12379
12441
|
}
|
|
12442
|
+
declare module "libs/reach/feature/content/src/reach-2/comments/index" {
|
|
12443
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/CommentDisplay";
|
|
12444
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/CommentEditorOverlay";
|
|
12445
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/CommentFormattingToolbar";
|
|
12446
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/CommentsList";
|
|
12447
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/useCommentsQuery";
|
|
12448
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/useTransformedCommentContent";
|
|
12449
|
+
}
|
|
12450
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Footer" {
|
|
12451
|
+
import { FC } from 'react';
|
|
12452
|
+
import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor";
|
|
12453
|
+
interface IFooterProps {
|
|
12454
|
+
editorCharacterLimit: number;
|
|
12455
|
+
getCharacterCount: () => number;
|
|
12456
|
+
onSave: () => void;
|
|
12457
|
+
onClickButton: (option: TextStylingOptions) => void;
|
|
12458
|
+
shouldShowTextFormatting: boolean;
|
|
12459
|
+
showTextStylingOptions: TextStylingOptions;
|
|
12460
|
+
}
|
|
12461
|
+
const Footer: FC<IFooterProps>;
|
|
12462
|
+
export default Footer;
|
|
12463
|
+
}
|
|
12464
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Header" {
|
|
12465
|
+
import { FC } from 'react';
|
|
12466
|
+
const Header: FC;
|
|
12467
|
+
export default Header;
|
|
12468
|
+
}
|
|
12469
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/components/Main" {
|
|
12470
|
+
import { Account } from "libs/reach/util/common/src/index";
|
|
12471
|
+
import { Editor } from '@tiptap/react';
|
|
12472
|
+
import { FC } from 'react';
|
|
12473
|
+
import { TextStylingOptions } from "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor";
|
|
12474
|
+
interface IMainProps {
|
|
12475
|
+
editor: Editor;
|
|
12476
|
+
getMentionsSearchHandler: (searchText: string) => Promise<Account[]>;
|
|
12477
|
+
setShowTextStylingOptions: (option: TextStylingOptions) => void;
|
|
12478
|
+
shouldShowOverlay: boolean;
|
|
12479
|
+
shouldShowTextFormatting: boolean;
|
|
12480
|
+
showTextStylingOptions: TextStylingOptions;
|
|
12481
|
+
}
|
|
12482
|
+
const Main: FC<IMainProps>;
|
|
12483
|
+
export default Main;
|
|
12484
|
+
}
|
|
12485
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/comment-editor/CommentEditor" {
|
|
12486
|
+
import { Comment } from "libs/reach/util/common/src/index";
|
|
12487
|
+
import { FC } from 'react';
|
|
12488
|
+
export enum TextStylingOptions {
|
|
12489
|
+
None = 0,
|
|
12490
|
+
EmojiOverlay = 1,
|
|
12491
|
+
MentionOverlay = 2,
|
|
12492
|
+
TextFormatting = 3
|
|
12493
|
+
}
|
|
12494
|
+
interface ICommentEditorProps {
|
|
12495
|
+
className?: string;
|
|
12496
|
+
comment?: Comment;
|
|
12497
|
+
parentItemId: string;
|
|
12498
|
+
placeholder?: string;
|
|
12499
|
+
}
|
|
12500
|
+
const CommentEditor: FC<ICommentEditorProps>;
|
|
12501
|
+
export default CommentEditor;
|
|
12502
|
+
}
|
|
12503
|
+
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/comment/CommentsList" {
|
|
12504
|
+
import { FC } from 'react';
|
|
12505
|
+
interface ICommentsListProps {
|
|
12506
|
+
itemId: string;
|
|
12507
|
+
}
|
|
12508
|
+
const CommentsList: FC<ICommentsListProps>;
|
|
12509
|
+
export default CommentsList;
|
|
12510
|
+
}
|
|
12380
12511
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/publication-card/components/Footer" {
|
|
12381
12512
|
import { PostStreamItem } from "libs/reach/feature/content/src/stream/index";
|
|
12382
12513
|
interface IFooterProps {
|
|
12514
|
+
commentCount?: number;
|
|
12383
12515
|
item: PostStreamItem;
|
|
12384
12516
|
}
|
|
12385
12517
|
const Footer: React.FC<IFooterProps>;
|
|
@@ -12471,6 +12603,7 @@ declare module "libs/reach/feature/content/src/reach-2/buttons/index" {
|
|
|
12471
12603
|
}
|
|
12472
12604
|
declare module "libs/reach/feature/content/src/reach-2/index" {
|
|
12473
12605
|
export * from "libs/reach/feature/content/src/reach-2/buttons/index";
|
|
12606
|
+
export * from "libs/reach/feature/content/src/reach-2/comments/index";
|
|
12474
12607
|
export * from "libs/reach/feature/content/src/reach-2/common/index";
|
|
12475
12608
|
}
|
|
12476
12609
|
declare module "libs/reach/feature/content/src/index" {
|