@livetiles/reach-plugin-types 0.5.0-preview.444 → 0.5.0-preview.446
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 +61 -41
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2945,9 +2945,10 @@ declare module "libs/reach/util/common/src/PagingService" {
|
|
|
2945
2945
|
containerHeight: number;
|
|
2946
2946
|
}
|
|
2947
2947
|
export const onPageScroll: Observable<ScrollHandlerInfo>;
|
|
2948
|
+
export const onPageScrollWithoutDebounce: Observable<ScrollHandlerInfo>;
|
|
2948
2949
|
export function handlePageScroll(availableScrollSpace: number, containerWidth: number, containerHeight: number): void;
|
|
2949
2950
|
export function setPageTitle(subscriptionName: string, title?: string): void;
|
|
2950
|
-
export function usePageScrollListener(onScroll: (info: ScrollHandlerInfo) => void): void;
|
|
2951
|
+
export function usePageScrollListener(onScroll: (info: ScrollHandlerInfo) => void, doNotDebounce?: boolean): void;
|
|
2951
2952
|
}
|
|
2952
2953
|
declare module "libs/reach/util/common/src/analytics/useAnalyticsViewTrack" {
|
|
2953
2954
|
import { BaseItem, ItemResourceTypes } from "libs/reach/util/common/src/content/index";
|
|
@@ -3978,6 +3979,8 @@ declare module "libs/reach/ui/common/src/HighlightBubble" {
|
|
|
3978
3979
|
type Style = {
|
|
3979
3980
|
backgroundColor?: string;
|
|
3980
3981
|
color?: string;
|
|
3982
|
+
inlinePadding?: number;
|
|
3983
|
+
blockPadding?: number;
|
|
3981
3984
|
};
|
|
3982
3985
|
export const HighlightBubble: (style?: Style) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
3983
3986
|
}
|
|
@@ -7222,12 +7225,15 @@ declare module "libs/reach/feature/content/src/common/banner/PublishableItemBann
|
|
|
7222
7225
|
}
|
|
7223
7226
|
export const PublishableItemBanner: FC<Props>;
|
|
7224
7227
|
}
|
|
7225
|
-
declare module "libs/reach/feature/content/src/common/
|
|
7228
|
+
declare module "libs/reach/feature/content/src/common/hooks/useResizeObserver" {
|
|
7229
|
+
export function useResizeObserver<T extends HTMLElement>(callback: (target: T, entry: ResizeObserverEntry) => void): import("react").MutableRefObject<T>;
|
|
7230
|
+
}
|
|
7231
|
+
declare module "libs/reach/feature/content/src/common/hooks/useContainerDimensions" {
|
|
7226
7232
|
export interface Size {
|
|
7227
7233
|
width: number;
|
|
7228
7234
|
height: number;
|
|
7229
7235
|
}
|
|
7230
|
-
export function useContainerDimensions(): [Size,
|
|
7236
|
+
export function useContainerDimensions(): [Size, any];
|
|
7231
7237
|
}
|
|
7232
7238
|
declare module "libs/reach/feature/content/src/common/banner/Banner" {
|
|
7233
7239
|
import { FC } from 'react';
|
|
@@ -9195,22 +9201,6 @@ declare module "libs/reach/feature/content/src/common/StateIcon" {
|
|
|
9195
9201
|
activeColor?: string;
|
|
9196
9202
|
}>;
|
|
9197
9203
|
}
|
|
9198
|
-
declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi" {
|
|
9199
|
-
import { ItemResourceTypes, PaginatedList, TaskSummary } from "libs/reach/util/common/src/index";
|
|
9200
|
-
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
9201
|
-
import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
9202
|
-
export function useCommonEditorApi(): {
|
|
9203
|
-
list: <T>(type: ItemResourceTypes, filter?: NewsFilterDefinition, token?: string, sortDefinition?: SortFieldsDefinitionBuilder<string>) => Promise<PaginatedList<T>>;
|
|
9204
|
-
getTaskViewCounts: (type: ItemResourceTypes, groupId?: string) => Promise<TaskSummary>;
|
|
9205
|
-
};
|
|
9206
|
-
}
|
|
9207
|
-
declare module "libs/reach/feature/content/src/common/hooks/useClickOutside" {
|
|
9208
|
-
interface IClickHandles {
|
|
9209
|
-
onInsideClick: () => void;
|
|
9210
|
-
onOutsideClick: () => void;
|
|
9211
|
-
}
|
|
9212
|
-
export function useClickOutside<T extends HTMLElement>(componentInstanceId: string, { onInsideClick, onOutsideClick }: IClickHandles): import("react").MutableRefObject<T>;
|
|
9213
|
-
}
|
|
9214
9204
|
declare module "libs/reach/feature/content/src/posts/GroupNotificationsSettings" {
|
|
9215
9205
|
import { FC } from 'react';
|
|
9216
9206
|
export const GroupNotificationsSettings: FC<{
|
|
@@ -9766,10 +9756,37 @@ declare module "libs/reach/feature/content/src/common/hooks/useAnalyticsSearchTr
|
|
|
9766
9756
|
export function useAnalyticsSearchTracking(items?: (PublishableItem | Post | StreamItem)[], disableTracking?: boolean, itemType?: ItemResourceTypes): void;
|
|
9767
9757
|
export function useClearSearchSessionOnLeave(): void;
|
|
9768
9758
|
}
|
|
9759
|
+
declare module "libs/reach/feature/content/src/common/hooks/useClickOutside" {
|
|
9760
|
+
interface IClickHandles {
|
|
9761
|
+
onInsideClick: () => void;
|
|
9762
|
+
onOutsideClick: () => void;
|
|
9763
|
+
}
|
|
9764
|
+
export function useClickOutside<T extends HTMLElement>(componentInstanceId: string, { onInsideClick, onOutsideClick }: IClickHandles): import("react").MutableRefObject<T>;
|
|
9765
|
+
}
|
|
9766
|
+
declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi" {
|
|
9767
|
+
import { ItemResourceTypes, PaginatedList, TaskSummary } from "libs/reach/util/common/src/index";
|
|
9768
|
+
import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
|
|
9769
|
+
import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
|
|
9770
|
+
export function useCommonEditorApi(): {
|
|
9771
|
+
list: <T>(type: ItemResourceTypes, filter?: NewsFilterDefinition, token?: string, sortDefinition?: SortFieldsDefinitionBuilder<string>) => Promise<PaginatedList<T>>;
|
|
9772
|
+
getTaskViewCounts: (type: ItemResourceTypes, groupId?: string) => Promise<TaskSummary>;
|
|
9773
|
+
};
|
|
9774
|
+
}
|
|
9769
9775
|
declare module "libs/reach/feature/content/src/common/hooks/useEscapeOnClose" {
|
|
9770
9776
|
import { DependencyList } from 'react';
|
|
9771
9777
|
export function useEscapeOnClose(onClose: () => void, deps?: DependencyList): void;
|
|
9772
9778
|
}
|
|
9779
|
+
declare module "libs/reach/feature/content/src/common/hooks/index" {
|
|
9780
|
+
export * from "libs/reach/feature/content/src/common/hooks/useAnalyticsSearchTracking";
|
|
9781
|
+
export * from "libs/reach/feature/content/src/common/hooks/useClickOutside";
|
|
9782
|
+
export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
|
|
9783
|
+
export * from "libs/reach/feature/content/src/common/hooks/useContainerDimensions";
|
|
9784
|
+
export * from "libs/reach/feature/content/src/common/hooks/useEmbeddedObjectValidator";
|
|
9785
|
+
export * from "libs/reach/feature/content/src/common/hooks/useEscapeOnClose";
|
|
9786
|
+
export * from "libs/reach/feature/content/src/common/hooks/useExternalContentHandler";
|
|
9787
|
+
export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
|
|
9788
|
+
export * from "libs/reach/feature/content/src/common/hooks/useResizeObserver";
|
|
9789
|
+
}
|
|
9773
9790
|
declare module "libs/reach/feature/content/src/common/sidebar/SidebarIcon" {
|
|
9774
9791
|
import { LocationDescriptor } from 'history';
|
|
9775
9792
|
import { FC, ReactNode } from 'react';
|
|
@@ -10000,12 +10017,7 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
10000
10017
|
export * from "libs/reach/feature/content/src/common/EmbeddedObjectList";
|
|
10001
10018
|
export * from "libs/reach/feature/content/src/common/StateIcon";
|
|
10002
10019
|
export * from "libs/reach/feature/content/src/common/ExternalContentIcon";
|
|
10003
|
-
export * from "libs/reach/feature/content/src/common/hooks/
|
|
10004
|
-
export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
|
|
10005
|
-
export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
|
|
10006
|
-
export * from "libs/reach/feature/content/src/common/hooks/useClickOutside";
|
|
10007
|
-
export * from "libs/reach/feature/content/src/common/hooks/useAnalyticsSearchTracking";
|
|
10008
|
-
export * from "libs/reach/feature/content/src/common/hooks/useEscapeOnClose";
|
|
10020
|
+
export * from "libs/reach/feature/content/src/common/hooks/index";
|
|
10009
10021
|
export * from "libs/reach/feature/content/src/common/TargetLinkOverrideContext";
|
|
10010
10022
|
export * from "libs/reach/feature/content/src/common/sidebar/BaseSidebarItem";
|
|
10011
10023
|
export * from "libs/reach/feature/content/src/common/sidebar/SidebarGroup";
|
|
@@ -10017,7 +10029,6 @@ declare module "libs/reach/feature/content/src/common/index" {
|
|
|
10017
10029
|
export * from "libs/reach/feature/content/src/common/channels/ChannelSelector";
|
|
10018
10030
|
export * from "libs/reach/feature/content/src/common/item-tile/PageItemTile";
|
|
10019
10031
|
export * from "libs/reach/feature/content/src/common/AuthorAvatar";
|
|
10020
|
-
export * from "libs/reach/feature/content/src/common/useContainerDimensions";
|
|
10021
10032
|
export * from "libs/reach/feature/content/src/common/app-loader/index";
|
|
10022
10033
|
}
|
|
10023
10034
|
declare module "libs/reach/feature/content/src/external-content/RedirectPage" {
|
|
@@ -10548,16 +10559,22 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/news/News
|
|
|
10548
10559
|
}
|
|
10549
10560
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextResponsiveCard" {
|
|
10550
10561
|
import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
10551
|
-
import { ReactNode } from 'react';
|
|
10552
|
-
|
|
10562
|
+
import { ReactNode, Ref } from 'react';
|
|
10563
|
+
import { CardType } from "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextPublishableItemCard";
|
|
10564
|
+
export type ImageAndTextCardProps<TItem extends PublishableItem> = {
|
|
10553
10565
|
item: TItem;
|
|
10554
10566
|
itemResourceType: ItemResourceTypes;
|
|
10555
10567
|
baseRoute: string;
|
|
10556
10568
|
additionalMetadata?: ReactNode;
|
|
10557
10569
|
contextMenu?: JSX.Element;
|
|
10570
|
+
type?: CardType;
|
|
10558
10571
|
height?: number;
|
|
10559
10572
|
width?: number;
|
|
10573
|
+
};
|
|
10574
|
+
const _default: <TItem extends PublishableItem>(props: ImageAndTextCardProps<TItem> & {
|
|
10575
|
+
ref?: Ref<HTMLElement>;
|
|
10560
10576
|
}) => JSX.Element;
|
|
10577
|
+
export default _default;
|
|
10561
10578
|
}
|
|
10562
10579
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextMediumCard" {
|
|
10563
10580
|
import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
|
|
@@ -10571,18 +10588,14 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/Im
|
|
|
10571
10588
|
}) => JSX.Element;
|
|
10572
10589
|
}
|
|
10573
10590
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextPublishableItemCard" {
|
|
10574
|
-
import {
|
|
10575
|
-
import {
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
baseRoute: string;
|
|
10580
|
-
additionalMetadata?: ReactNode;
|
|
10581
|
-
contextMenu?: JSX.Element;
|
|
10582
|
-
size?: CardSize;
|
|
10583
|
-
height?: number;
|
|
10591
|
+
import { PublishableItem } from "libs/reach/util/common/src/index";
|
|
10592
|
+
import { Ref } from 'react';
|
|
10593
|
+
import { ImageAndTextCardProps } from "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextResponsiveCard";
|
|
10594
|
+
const _default_1: <TItem extends PublishableItem>(props: ImageAndTextCardProps<TItem> & {
|
|
10595
|
+
ref: Ref<HTMLElement>;
|
|
10584
10596
|
}) => JSX.Element;
|
|
10585
|
-
export
|
|
10597
|
+
export default _default_1;
|
|
10598
|
+
export enum CardType {
|
|
10586
10599
|
XxSmall = "xxsmall",
|
|
10587
10600
|
XSmall = "xsmall",
|
|
10588
10601
|
Small = "small",
|
|
@@ -10590,14 +10603,21 @@ declare module "libs/reach/feature/content/src/reach-2/common/snippets/common/Im
|
|
|
10590
10603
|
Large = "large",
|
|
10591
10604
|
Responsive = "responsive"
|
|
10592
10605
|
}
|
|
10606
|
+
export enum CardFixedSize {
|
|
10607
|
+
XsSmall = 350,
|
|
10608
|
+
XSmall = 556,
|
|
10609
|
+
Small = 604,
|
|
10610
|
+
Medium = 820,
|
|
10611
|
+
Large = 1248
|
|
10612
|
+
}
|
|
10593
10613
|
}
|
|
10594
10614
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/news/ImageAndTextNewsItemCard" {
|
|
10595
10615
|
import { FC } from 'react';
|
|
10596
10616
|
import { NewsStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
|
|
10597
|
-
import {
|
|
10617
|
+
import { CardType } from "libs/reach/feature/content/src/reach-2/common/snippets/common/ImageAndTextPublishableItemCard";
|
|
10598
10618
|
export const ImageAndTextNewsItemCard: FC<{
|
|
10599
10619
|
item: NewsStreamItem;
|
|
10600
|
-
|
|
10620
|
+
type?: CardType;
|
|
10601
10621
|
}>;
|
|
10602
10622
|
}
|
|
10603
10623
|
declare module "libs/reach/feature/content/src/reach-2/common/snippets/news/index" {
|