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