@livetiles/reach-plugin-types 0.5.0-preview.228 → 0.5.0-preview.229
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 +240 -217
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2703,6 +2703,223 @@ declare module "libs/reach/util/common/src/AccessDeniedIntercept" {
|
|
|
2703
2703
|
export function accessDeniedIntercept(error: any): Promise<boolean>;
|
|
2704
2704
|
export function genericAccessDeniedIntercept(error: any): Promise<boolean>;
|
|
2705
2705
|
}
|
|
2706
|
+
declare module "libs/reach/util/common/src/Variables" {
|
|
2707
|
+
export const maxContentWidth = 985;
|
|
2708
|
+
export const adminMaxWidth = 600;
|
|
2709
|
+
export const spacingXxs = 3;
|
|
2710
|
+
export const spacingXs = 6;
|
|
2711
|
+
export const spacingS = 10;
|
|
2712
|
+
export const spacingM = 20;
|
|
2713
|
+
export const spacingL = 30;
|
|
2714
|
+
export const spacingX = 40;
|
|
2715
|
+
export const spacingXl = 60;
|
|
2716
|
+
export const minScreenSize: {
|
|
2717
|
+
small: number;
|
|
2718
|
+
medium: number;
|
|
2719
|
+
large: number;
|
|
2720
|
+
xLarge: number;
|
|
2721
|
+
xxLarge: number;
|
|
2722
|
+
xxxLarge: number;
|
|
2723
|
+
};
|
|
2724
|
+
export const maxScreenSize: {
|
|
2725
|
+
small: number;
|
|
2726
|
+
medium: number;
|
|
2727
|
+
large: number;
|
|
2728
|
+
xLarge: number;
|
|
2729
|
+
xxLarge: number;
|
|
2730
|
+
};
|
|
2731
|
+
export const sidebarWidth = 285;
|
|
2732
|
+
export const sidebarWidthRight = 320;
|
|
2733
|
+
export const sidebarItemHeight = 50;
|
|
2734
|
+
export const headerHeight = 50;
|
|
2735
|
+
export const headerSecondaryHeight = 50;
|
|
2736
|
+
export const notificationHeight = 50;
|
|
2737
|
+
export const mainContentPanelWidth = 300;
|
|
2738
|
+
export const mainContentPanelMinScreenSize = 1740;
|
|
2739
|
+
export const fontSizeLarger = 40;
|
|
2740
|
+
export const fontSizeLarge = 25;
|
|
2741
|
+
export const fontSizeMedium = 18;
|
|
2742
|
+
export const fontSizeNormal = 16;
|
|
2743
|
+
export const fontSizeSmall = 14;
|
|
2744
|
+
export const fontSizeSmaller = 12;
|
|
2745
|
+
export const socialIconSize = 26;
|
|
2746
|
+
export const lineHeight = 23;
|
|
2747
|
+
export const smallScreenLoginHeight = 40;
|
|
2748
|
+
export const bannerAspectRatio: number;
|
|
2749
|
+
export const bannerWidth = 980;
|
|
2750
|
+
export const bannerHeight = 420;
|
|
2751
|
+
export const HighlightBubbleSize = 12;
|
|
2752
|
+
export const StatusBubbleSize = 10;
|
|
2753
|
+
export const shadowColor = "rgba(0, 0, 0, 0.2)";
|
|
2754
|
+
export const diffPreviousVersionColour = "rgb(221, 221, 221)";
|
|
2755
|
+
export const diffActiveVersionColour = "rgb(206, 255, 188)";
|
|
2756
|
+
export const dialogSpacing = 24;
|
|
2757
|
+
export const detailViewSectionPadding = 20;
|
|
2758
|
+
export const detailViewSectionPaddingLarge = 60;
|
|
2759
|
+
export const postsSectionPadding = 20;
|
|
2760
|
+
export const attachmentRoundedCornerSize = 10;
|
|
2761
|
+
export const videoAttachmentRoundedCornerSize = 20;
|
|
2762
|
+
export const inlinePageBannerRoundedCornerSize = 5;
|
|
2763
|
+
export const feedbackButtonHeight = 32;
|
|
2764
|
+
export const mainScrollableContainerSelector = "[data-lt-reach-main-content=\"true\"]";
|
|
2765
|
+
export const mainContentContainerId = "lt-reach-main-content";
|
|
2766
|
+
export const mainModalContentContainerId = "lt-reach-main-modal-content";
|
|
2767
|
+
export const statusColors: {
|
|
2768
|
+
draft: string;
|
|
2769
|
+
ready: string;
|
|
2770
|
+
rejected: string;
|
|
2771
|
+
};
|
|
2772
|
+
export const cardWidthS = 260;
|
|
2773
|
+
export const cardWidthM = 354;
|
|
2774
|
+
export const cardWidthL = 314;
|
|
2775
|
+
export const cardWidthXL = 423;
|
|
2776
|
+
export const managePagesRowWidth = 300;
|
|
2777
|
+
export const managePagesRowHeight = 40;
|
|
2778
|
+
export const mobilePreviewWidth = 414;
|
|
2779
|
+
}
|
|
2780
|
+
declare module "libs/reach/util/common/src/common-utils" {
|
|
2781
|
+
import { BaseSubscription, LogoInfo, SubscriptionInfo, SubscriptionSummary } from "libs/reach/util/common/src/user/Subscription";
|
|
2782
|
+
import { IntlShape } from 'react-intl';
|
|
2783
|
+
export function getMainScrollableContainer(): HTMLElement;
|
|
2784
|
+
export enum LinkType {
|
|
2785
|
+
Internal = "internal",
|
|
2786
|
+
External = "external",
|
|
2787
|
+
Download = "download"
|
|
2788
|
+
}
|
|
2789
|
+
export const uuidRegex = "[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}";
|
|
2790
|
+
export const DefaultSubscriptionName = "LiveTiles Reach";
|
|
2791
|
+
export function getSubscriptionNameForList(subscription: SubscriptionSummary, intl: IntlShape): string;
|
|
2792
|
+
export function getSubscriptionName(subscription: SubscriptionSummary): string;
|
|
2793
|
+
export function getSubscriptionLogoInfoAndName(subscription: SubscriptionInfo | BaseSubscription): {
|
|
2794
|
+
logoInfo: LogoInfo;
|
|
2795
|
+
subscriptionName: string;
|
|
2796
|
+
};
|
|
2797
|
+
}
|
|
2798
|
+
declare module "libs/reach/util/common/src/analytics/analyticsUtils" {
|
|
2799
|
+
export enum AnalyticsInteractionEvents {
|
|
2800
|
+
embeddedVideo = "embedded-video",
|
|
2801
|
+
embeddedAudio = "embedded-audio",
|
|
2802
|
+
languageChange = "language-change",
|
|
2803
|
+
eventRegistration = "event-registration",
|
|
2804
|
+
eventSeriesRegistration = "event-series-registration",
|
|
2805
|
+
translateContent = "translate-content",
|
|
2806
|
+
downloadFile = "download-file",
|
|
2807
|
+
embeddedIframe = "embedded-iframe",
|
|
2808
|
+
externalLink = "external-link",
|
|
2809
|
+
follow = "follow",
|
|
2810
|
+
bookmark = "bookmark"
|
|
2811
|
+
}
|
|
2812
|
+
export enum AnalyticsActions {
|
|
2813
|
+
click = "click",
|
|
2814
|
+
navigate = "navigate",
|
|
2815
|
+
view = "view",
|
|
2816
|
+
search = "search"
|
|
2817
|
+
}
|
|
2818
|
+
export enum AnalyticsModuleType {
|
|
2819
|
+
Admin = "admin",
|
|
2820
|
+
Chat = "chat",
|
|
2821
|
+
Comments = "comments",
|
|
2822
|
+
Events = "events",
|
|
2823
|
+
GlobalSearch = "globalSearch",
|
|
2824
|
+
News = "news",
|
|
2825
|
+
Pages = "pages",
|
|
2826
|
+
People = "people",
|
|
2827
|
+
Posts = "posts",
|
|
2828
|
+
Stream = "stream",
|
|
2829
|
+
User = "user"
|
|
2830
|
+
}
|
|
2831
|
+
export enum AnalyticsModuleSubtype {
|
|
2832
|
+
AllChats = "allChats",
|
|
2833
|
+
AllNews = "allNews",
|
|
2834
|
+
AllPosts = "allPosts",
|
|
2835
|
+
Bookmarks = "bookmarks",
|
|
2836
|
+
Channel = "channel",
|
|
2837
|
+
Channels = "channels",
|
|
2838
|
+
ChatConversation = "conversation",
|
|
2839
|
+
Customization = "customization",
|
|
2840
|
+
DetailView = "detailView",
|
|
2841
|
+
DirectoryConfig = "directoryConfiguration",
|
|
2842
|
+
Group = "group",
|
|
2843
|
+
Groups = "groups",
|
|
2844
|
+
Keywords = "keywords",
|
|
2845
|
+
Languages = "languages",
|
|
2846
|
+
MyNews = "myNews",
|
|
2847
|
+
Owners = "owners",
|
|
2848
|
+
Preview = "preview",
|
|
2849
|
+
RootPages = "rootPages",
|
|
2850
|
+
Search = "search",
|
|
2851
|
+
SelfRegistration = "selfRegistration",
|
|
2852
|
+
TargetAudience = "targetAudience",
|
|
2853
|
+
UpcomingEvents = "upcoming",
|
|
2854
|
+
Users = "users",
|
|
2855
|
+
WebHooks = "webHooks"
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
declare module "libs/reach/util/common/src/analytics/useLinkInteraction" {
|
|
2859
|
+
import { ReachAnalytics } from "libs/reach/util/common/src/analytics/AnalyticsContextProvider";
|
|
2860
|
+
export function useLinkInteraction(analyticsInstance: ReachAnalytics): void;
|
|
2861
|
+
}
|
|
2862
|
+
declare module "libs/reach/util/common/src/analytics/useIframeInteraction" {
|
|
2863
|
+
import { ReachAnalytics } from "libs/reach/util/common/src/analytics/AnalyticsContextProvider";
|
|
2864
|
+
export function useIframeInteraction(analyticsInstance: ReachAnalytics): void;
|
|
2865
|
+
}
|
|
2866
|
+
declare module "libs/reach/util/common/src/analytics/AnalyticsContextProvider" {
|
|
2867
|
+
import { Dispatch, FC, SetStateAction } from 'react';
|
|
2868
|
+
import { Analytics } from '@livetiles/analytics';
|
|
2869
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/content/index";
|
|
2870
|
+
export interface AnalyticsSearchData {
|
|
2871
|
+
searchTerm: string;
|
|
2872
|
+
results: {
|
|
2873
|
+
itemId: string;
|
|
2874
|
+
itemType: ItemResourceTypes;
|
|
2875
|
+
}[];
|
|
2876
|
+
itemRead?: string;
|
|
2877
|
+
isGlobalSearch?: boolean;
|
|
2878
|
+
}
|
|
2879
|
+
export enum AnalyticsSearchEventType {
|
|
2880
|
+
search = "search",
|
|
2881
|
+
searchSession = "searchSession"
|
|
2882
|
+
}
|
|
2883
|
+
export interface SearchAnalytics {
|
|
2884
|
+
data: AnalyticsSearchData[];
|
|
2885
|
+
onSearchTermChange: (newData: AnalyticsSearchData) => Promise<unknown>;
|
|
2886
|
+
trackSearchSession: () => Promise<unknown>;
|
|
2887
|
+
onItemRead: (itemId: string) => void;
|
|
2888
|
+
}
|
|
2889
|
+
interface Module {
|
|
2890
|
+
type: string;
|
|
2891
|
+
subtype?: string;
|
|
2892
|
+
value?: string;
|
|
2893
|
+
}
|
|
2894
|
+
export interface AnalyticsModule {
|
|
2895
|
+
module: Module;
|
|
2896
|
+
setModule: Dispatch<SetStateAction<Module>>;
|
|
2897
|
+
}
|
|
2898
|
+
interface ActivityAnalytics {
|
|
2899
|
+
trackActivity: (scrollContainer: HTMLElement) => void;
|
|
2900
|
+
}
|
|
2901
|
+
export type ReachAnalytics = Analytics & AnalyticsModule & SearchAnalytics & ActivityAnalytics;
|
|
2902
|
+
export const AnalyticsContext: import("react").Context<ReachAnalytics>;
|
|
2903
|
+
export function useAnalyticsContext(): ReachAnalytics;
|
|
2904
|
+
export const AnalyticsContextProvider: FC;
|
|
2905
|
+
}
|
|
2906
|
+
declare module "libs/reach/util/common/src/analytics/useAnalyticsViewTrack" {
|
|
2907
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
2908
|
+
export function useAnalyticsViewTrack(startTracking: boolean, itemResourceType?: ItemResourceTypes, thresholdPercentageOverride?: number): void;
|
|
2909
|
+
}
|
|
2910
|
+
declare module "libs/reach/util/common/src/analytics/useAnalyticsActivityTrack" {
|
|
2911
|
+
export function useAnalyticsActivityTrack(scrollContainer: HTMLElement): void;
|
|
2912
|
+
}
|
|
2913
|
+
declare module "libs/reach/util/common/src/analytics/useAnalyticsNavigateTrack" {
|
|
2914
|
+
export function useAnalyticsNavigateTrack(): void;
|
|
2915
|
+
}
|
|
2916
|
+
declare module "libs/reach/util/common/src/analytics/index" {
|
|
2917
|
+
export * from "libs/reach/util/common/src/analytics/AnalyticsContextProvider";
|
|
2918
|
+
export * from "libs/reach/util/common/src/analytics/analyticsUtils";
|
|
2919
|
+
export * from "libs/reach/util/common/src/analytics/useAnalyticsViewTrack";
|
|
2920
|
+
export * from "libs/reach/util/common/src/analytics/useAnalyticsActivityTrack";
|
|
2921
|
+
export * from "libs/reach/util/common/src/analytics/useAnalyticsNavigateTrack";
|
|
2922
|
+
}
|
|
2706
2923
|
declare module "libs/reach/util/common/src/user/useManageCurrentUserApi" {
|
|
2707
2924
|
import { CurrentUser, GroupNotificationSettings, NotificationTypeSettings, UserContact } from "libs/reach/util/common/src/user/User";
|
|
2708
2925
|
import { ConversationScope, ItemResourceTypes } from "libs/reach/util/common/src/content/index";
|
|
@@ -3286,80 +3503,6 @@ declare module "libs/reach/util/common/src/theme/index" {
|
|
|
3286
3503
|
export * from "libs/reach/util/common/src/theme/ThemeService";
|
|
3287
3504
|
export * from "libs/reach/util/common/src/theme/ColorGenerator";
|
|
3288
3505
|
}
|
|
3289
|
-
declare module "libs/reach/util/common/src/Variables" {
|
|
3290
|
-
export const maxContentWidth = 985;
|
|
3291
|
-
export const adminMaxWidth = 600;
|
|
3292
|
-
export const spacingXxs = 3;
|
|
3293
|
-
export const spacingXs = 6;
|
|
3294
|
-
export const spacingS = 10;
|
|
3295
|
-
export const spacingM = 20;
|
|
3296
|
-
export const spacingL = 30;
|
|
3297
|
-
export const spacingX = 40;
|
|
3298
|
-
export const spacingXl = 60;
|
|
3299
|
-
export const minScreenSize: {
|
|
3300
|
-
small: number;
|
|
3301
|
-
medium: number;
|
|
3302
|
-
large: number;
|
|
3303
|
-
xLarge: number;
|
|
3304
|
-
xxLarge: number;
|
|
3305
|
-
xxxLarge: number;
|
|
3306
|
-
};
|
|
3307
|
-
export const maxScreenSize: {
|
|
3308
|
-
small: number;
|
|
3309
|
-
medium: number;
|
|
3310
|
-
large: number;
|
|
3311
|
-
xLarge: number;
|
|
3312
|
-
xxLarge: number;
|
|
3313
|
-
};
|
|
3314
|
-
export const sidebarWidth = 285;
|
|
3315
|
-
export const sidebarWidthRight = 320;
|
|
3316
|
-
export const sidebarItemHeight = 50;
|
|
3317
|
-
export const headerHeight = 50;
|
|
3318
|
-
export const headerSecondaryHeight = 50;
|
|
3319
|
-
export const notificationHeight = 50;
|
|
3320
|
-
export const mainContentPanelWidth = 300;
|
|
3321
|
-
export const mainContentPanelMinScreenSize = 1740;
|
|
3322
|
-
export const fontSizeLarger = 40;
|
|
3323
|
-
export const fontSizeLarge = 25;
|
|
3324
|
-
export const fontSizeMedium = 18;
|
|
3325
|
-
export const fontSizeNormal = 16;
|
|
3326
|
-
export const fontSizeSmall = 14;
|
|
3327
|
-
export const fontSizeSmaller = 12;
|
|
3328
|
-
export const socialIconSize = 26;
|
|
3329
|
-
export const lineHeight = 23;
|
|
3330
|
-
export const smallScreenLoginHeight = 40;
|
|
3331
|
-
export const bannerAspectRatio: number;
|
|
3332
|
-
export const bannerWidth = 980;
|
|
3333
|
-
export const bannerHeight = 420;
|
|
3334
|
-
export const HighlightBubbleSize = 12;
|
|
3335
|
-
export const StatusBubbleSize = 10;
|
|
3336
|
-
export const shadowColor = "rgba(0, 0, 0, 0.2)";
|
|
3337
|
-
export const diffPreviousVersionColour = "rgb(221, 221, 221)";
|
|
3338
|
-
export const diffActiveVersionColour = "rgb(206, 255, 188)";
|
|
3339
|
-
export const dialogSpacing = 24;
|
|
3340
|
-
export const detailViewSectionPadding = 20;
|
|
3341
|
-
export const detailViewSectionPaddingLarge = 60;
|
|
3342
|
-
export const postsSectionPadding = 20;
|
|
3343
|
-
export const attachmentRoundedCornerSize = 10;
|
|
3344
|
-
export const videoAttachmentRoundedCornerSize = 20;
|
|
3345
|
-
export const inlinePageBannerRoundedCornerSize = 5;
|
|
3346
|
-
export const feedbackButtonHeight = 32;
|
|
3347
|
-
export const mainScrollableContainerSelector = "[data-lt-reach-main-content=\"true\"]";
|
|
3348
|
-
export const mainContentContainerId = "lt-reach-main-content";
|
|
3349
|
-
export const mainModalContentContainerId = "lt-reach-main-modal-content";
|
|
3350
|
-
export const statusColors: {
|
|
3351
|
-
draft: string;
|
|
3352
|
-
ready: string;
|
|
3353
|
-
rejected: string;
|
|
3354
|
-
};
|
|
3355
|
-
export const cardWidthS = 260;
|
|
3356
|
-
export const cardWidthM = 354;
|
|
3357
|
-
export const cardWidthL = 314;
|
|
3358
|
-
export const cardWidthXL = 423;
|
|
3359
|
-
export const managePagesRowWidth = 300;
|
|
3360
|
-
export const managePagesRowHeight = 40;
|
|
3361
|
-
export const mobilePreviewWidth = 414;
|
|
3362
|
-
}
|
|
3363
3506
|
declare module "libs/reach/util/common/src/plugins/Plugin" {
|
|
3364
3507
|
import { FC } from 'react';
|
|
3365
3508
|
import { PluginProps } from "libs/reach/util/common/src/plugins/usePluginExtensions";
|
|
@@ -3569,149 +3712,6 @@ declare module "libs/reach/util/common/src/useModalRouting" {
|
|
|
3569
3712
|
};
|
|
3570
3713
|
};
|
|
3571
3714
|
}
|
|
3572
|
-
declare module "libs/reach/util/common/src/common-utils" {
|
|
3573
|
-
import { BaseSubscription, LogoInfo, SubscriptionInfo, SubscriptionSummary } from "libs/reach/util/common/src/user/Subscription";
|
|
3574
|
-
import { IntlShape } from 'react-intl';
|
|
3575
|
-
export function getMainScrollableContainer(): HTMLElement;
|
|
3576
|
-
export enum LinkType {
|
|
3577
|
-
Internal = "internal",
|
|
3578
|
-
External = "external",
|
|
3579
|
-
Download = "download"
|
|
3580
|
-
}
|
|
3581
|
-
export const uuidRegex = "[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}";
|
|
3582
|
-
export const DefaultSubscriptionName = "LiveTiles Reach";
|
|
3583
|
-
export function getSubscriptionNameForList(subscription: SubscriptionSummary, intl: IntlShape): string;
|
|
3584
|
-
export function getSubscriptionName(subscription: SubscriptionSummary): string;
|
|
3585
|
-
export function getSubscriptionLogoInfoAndName(subscription: SubscriptionInfo | BaseSubscription): {
|
|
3586
|
-
logoInfo: LogoInfo;
|
|
3587
|
-
subscriptionName: string;
|
|
3588
|
-
};
|
|
3589
|
-
}
|
|
3590
|
-
declare module "libs/reach/util/common/src/analytics/analyticsUtils" {
|
|
3591
|
-
export enum AnalyticsInteractionEvents {
|
|
3592
|
-
embeddedVideo = "embedded-video",
|
|
3593
|
-
embeddedAudio = "embedded-audio",
|
|
3594
|
-
languageChange = "language-change",
|
|
3595
|
-
eventRegistration = "event-registration",
|
|
3596
|
-
eventSeriesRegistration = "event-series-registration",
|
|
3597
|
-
translateContent = "translate-content",
|
|
3598
|
-
downloadFile = "download-file",
|
|
3599
|
-
embeddedIframe = "embedded-iframe",
|
|
3600
|
-
externalLink = "external-link",
|
|
3601
|
-
follow = "follow",
|
|
3602
|
-
bookmark = "bookmark"
|
|
3603
|
-
}
|
|
3604
|
-
export enum AnalyticsActions {
|
|
3605
|
-
click = "click",
|
|
3606
|
-
navigate = "navigate",
|
|
3607
|
-
view = "view",
|
|
3608
|
-
search = "search"
|
|
3609
|
-
}
|
|
3610
|
-
export enum AnalyticsModuleType {
|
|
3611
|
-
Admin = "admin",
|
|
3612
|
-
Chat = "chat",
|
|
3613
|
-
Comments = "comments",
|
|
3614
|
-
Events = "events",
|
|
3615
|
-
GlobalSearch = "globalSearch",
|
|
3616
|
-
News = "news",
|
|
3617
|
-
Pages = "pages",
|
|
3618
|
-
People = "people",
|
|
3619
|
-
Posts = "posts",
|
|
3620
|
-
Stream = "stream",
|
|
3621
|
-
User = "user"
|
|
3622
|
-
}
|
|
3623
|
-
export enum AnalyticsModuleSubtype {
|
|
3624
|
-
AllChats = "allChats",
|
|
3625
|
-
AllNews = "allNews",
|
|
3626
|
-
AllPosts = "allPosts",
|
|
3627
|
-
Bookmarks = "bookmarks",
|
|
3628
|
-
Channel = "channel",
|
|
3629
|
-
Channels = "channels",
|
|
3630
|
-
ChatConversation = "conversation",
|
|
3631
|
-
Customization = "customization",
|
|
3632
|
-
DetailView = "detailView",
|
|
3633
|
-
DirectoryConfig = "directoryConfiguration",
|
|
3634
|
-
Group = "group",
|
|
3635
|
-
Groups = "groups",
|
|
3636
|
-
Keywords = "keywords",
|
|
3637
|
-
Languages = "languages",
|
|
3638
|
-
MyNews = "myNews",
|
|
3639
|
-
Owners = "owners",
|
|
3640
|
-
Preview = "preview",
|
|
3641
|
-
RootPages = "rootPages",
|
|
3642
|
-
Search = "search",
|
|
3643
|
-
SelfRegistration = "selfRegistration",
|
|
3644
|
-
TargetAudience = "targetAudience",
|
|
3645
|
-
UpcomingEvents = "upcoming",
|
|
3646
|
-
Users = "users",
|
|
3647
|
-
WebHooks = "webHooks"
|
|
3648
|
-
}
|
|
3649
|
-
}
|
|
3650
|
-
declare module "libs/reach/util/common/src/analytics/useLinkInteraction" {
|
|
3651
|
-
import { ReachAnalytics } from "libs/reach/util/common/src/analytics/AnalyticsContextProvider";
|
|
3652
|
-
export function useLinkInteraction(analyticsInstance: ReachAnalytics): void;
|
|
3653
|
-
}
|
|
3654
|
-
declare module "libs/reach/util/common/src/analytics/useIframeInteraction" {
|
|
3655
|
-
import { ReachAnalytics } from "libs/reach/util/common/src/analytics/AnalyticsContextProvider";
|
|
3656
|
-
export function useIframeInteraction(analyticsInstance: ReachAnalytics): void;
|
|
3657
|
-
}
|
|
3658
|
-
declare module "libs/reach/util/common/src/analytics/AnalyticsContextProvider" {
|
|
3659
|
-
import { Dispatch, FC, SetStateAction } from 'react';
|
|
3660
|
-
import { Analytics } from '@livetiles/analytics';
|
|
3661
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/content/index";
|
|
3662
|
-
export interface AnalyticsSearchData {
|
|
3663
|
-
searchTerm: string;
|
|
3664
|
-
results: {
|
|
3665
|
-
itemId: string;
|
|
3666
|
-
itemType: ItemResourceTypes;
|
|
3667
|
-
}[];
|
|
3668
|
-
itemRead?: string;
|
|
3669
|
-
isGlobalSearch?: boolean;
|
|
3670
|
-
}
|
|
3671
|
-
export enum AnalyticsSearchEventType {
|
|
3672
|
-
search = "search",
|
|
3673
|
-
searchSession = "searchSession"
|
|
3674
|
-
}
|
|
3675
|
-
export interface SearchAnalytics {
|
|
3676
|
-
data: AnalyticsSearchData[];
|
|
3677
|
-
onSearchTermChange: (newData: AnalyticsSearchData) => Promise<unknown>;
|
|
3678
|
-
trackSearchSession: () => Promise<unknown>;
|
|
3679
|
-
onItemRead: (itemId: string) => void;
|
|
3680
|
-
}
|
|
3681
|
-
interface Module {
|
|
3682
|
-
type: string;
|
|
3683
|
-
subtype?: string;
|
|
3684
|
-
value?: string;
|
|
3685
|
-
}
|
|
3686
|
-
export interface AnalyticsModule {
|
|
3687
|
-
module: Module;
|
|
3688
|
-
setModule: Dispatch<SetStateAction<Module>>;
|
|
3689
|
-
}
|
|
3690
|
-
interface ActivityAnalytics {
|
|
3691
|
-
trackActivity: (scrollContainer: HTMLElement) => void;
|
|
3692
|
-
}
|
|
3693
|
-
export type ReachAnalytics = Analytics & AnalyticsModule & SearchAnalytics & ActivityAnalytics;
|
|
3694
|
-
export const AnalyticsContext: import("react").Context<ReachAnalytics>;
|
|
3695
|
-
export function useAnalyticsContext(): ReachAnalytics;
|
|
3696
|
-
export const AnalyticsContextProvider: FC;
|
|
3697
|
-
}
|
|
3698
|
-
declare module "libs/reach/util/common/src/analytics/useAnalyticsViewTrack" {
|
|
3699
|
-
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
3700
|
-
export function useAnalyticsViewTrack(startTracking: boolean, itemResourceType?: ItemResourceTypes, thresholdPercentageOverride?: number): void;
|
|
3701
|
-
}
|
|
3702
|
-
declare module "libs/reach/util/common/src/analytics/useAnalyticsActivityTrack" {
|
|
3703
|
-
export function useAnalyticsActivityTrack(scrollContainer: HTMLElement): void;
|
|
3704
|
-
}
|
|
3705
|
-
declare module "libs/reach/util/common/src/analytics/useAnalyticsNavigateTrack" {
|
|
3706
|
-
export function useAnalyticsNavigateTrack(): void;
|
|
3707
|
-
}
|
|
3708
|
-
declare module "libs/reach/util/common/src/analytics/index" {
|
|
3709
|
-
export * from "libs/reach/util/common/src/analytics/AnalyticsContextProvider";
|
|
3710
|
-
export * from "libs/reach/util/common/src/analytics/analyticsUtils";
|
|
3711
|
-
export * from "libs/reach/util/common/src/analytics/useAnalyticsViewTrack";
|
|
3712
|
-
export * from "libs/reach/util/common/src/analytics/useAnalyticsActivityTrack";
|
|
3713
|
-
export * from "libs/reach/util/common/src/analytics/useAnalyticsNavigateTrack";
|
|
3714
|
-
}
|
|
3715
3715
|
declare module "libs/reach/util/common/src/index" {
|
|
3716
3716
|
export { initializeIcons } from 'office-ui-fabric-react';
|
|
3717
3717
|
export * from "libs/reach/util/common/src/FocusStyles";
|
|
@@ -12404,6 +12404,29 @@ declare module "apps/reach-app/src/app/useCustomNavigation" {
|
|
|
12404
12404
|
}) => string;
|
|
12405
12405
|
};
|
|
12406
12406
|
}
|
|
12407
|
+
declare module "apps/reach-app/src/app/analytics/useSessionStorage" {
|
|
12408
|
+
import { Dispatch } from 'react';
|
|
12409
|
+
export const useSessionStorage: (key: string, defaultValue?: string) => [string, Dispatch<string>];
|
|
12410
|
+
}
|
|
12411
|
+
declare module "apps/reach-app/src/app/analytics/DashboardPage" {
|
|
12412
|
+
import { FC } from 'react';
|
|
12413
|
+
export interface Dashboard {
|
|
12414
|
+
name: string;
|
|
12415
|
+
title: string;
|
|
12416
|
+
url: string;
|
|
12417
|
+
}
|
|
12418
|
+
export const DashboardPage: FC<{
|
|
12419
|
+
dashboard: Dashboard;
|
|
12420
|
+
}>;
|
|
12421
|
+
}
|
|
12422
|
+
declare module "apps/reach-app/src/app/analytics/analyticsDashboardUtils" {
|
|
12423
|
+
import { Dashboard } from "apps/reach-app/src/app/analytics/DashboardPage";
|
|
12424
|
+
export function useDashboards(): Dashboard[];
|
|
12425
|
+
}
|
|
12426
|
+
declare module "apps/reach-app/src/app/analytics/AnalyticsSidebarMenu" {
|
|
12427
|
+
import { FC } from 'react';
|
|
12428
|
+
export const AnalyticsSidebarMenu: FC;
|
|
12429
|
+
}
|
|
12407
12430
|
declare module "apps/reach-app/src/app/chrome/PageMenu" {
|
|
12408
12431
|
import { FC } from 'react';
|
|
12409
12432
|
interface Props {
|