@livetiles/reach-plugin-types 0.4.0-preview.667 → 0.4.0-preview.670

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +27 -15
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1942,8 +1942,9 @@ declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
1942
1942
  declare module "libs/reach/util/api-factory/src/useApi" {
1943
1943
  import { Api } from 'restful.js';
1944
1944
  import { ClientFactoryInstance } from "libs/reach/util/api-factory/src/ClientFactoryInstance";
1945
- export function useApiFactory(): ClientFactoryInstance;
1946
- export function useApi(): Api;
1945
+ export type ApiErrorHandler = (error: any, config: any) => Promise<boolean>;
1946
+ export function useApiFactory(errorHandler?: ApiErrorHandler): ClientFactoryInstance;
1947
+ export function useApi(errorHandler?: ApiErrorHandler): Api;
1947
1948
  export function useUnauthorizedApi(): Api;
1948
1949
  }
1949
1950
  declare module "libs/reach/util/api-factory/src/useBeaconHandler" {
@@ -4307,13 +4308,6 @@ declare module "libs/reach/ui/common/src/common/grid/Grid" {
4307
4308
  className?: string;
4308
4309
  }>;
4309
4310
  }
4310
- declare module "libs/reach/ui/common/src/common/hooks/usePageViewTracker" {
4311
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
4312
- export enum PageViewType {
4313
- PostsGroupView = "PostsGroupView"
4314
- }
4315
- export function usePageViewTracker(basePath: ItemResourceTypes | string, itemId: string, viewType?: PageViewType): void;
4316
- }
4317
4311
  declare module "libs/reach/ui/common/src/common/hooks/usePagination" {
4318
4312
  import { PaginatedList } from "libs/reach/util/common/src/index";
4319
4313
  import { DependencyList, SetStateAction } from 'react';
@@ -4746,7 +4740,6 @@ declare module "libs/reach/ui/common/src/common/index" {
4746
4740
  export * from "libs/reach/ui/common/src/common/gif/GifList";
4747
4741
  export * from "libs/reach/ui/common/src/common/gif/GifView";
4748
4742
  export * from "libs/reach/ui/common/src/common/grid/Grid";
4749
- export * from "libs/reach/ui/common/src/common/hooks/usePageViewTracker";
4750
4743
  export * from "libs/reach/ui/common/src/common/hooks/usePagination";
4751
4744
  export * from "libs/reach/ui/common/src/common/hooks/useUserPropertyDefinitionsHandler";
4752
4745
  export * from "libs/reach/ui/common/src/common/icon-with-callout/IconWithCallout";
@@ -7052,7 +7045,7 @@ declare module "libs/reach/feature/content/src/posts/usePostsApi" {
7052
7045
  searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
7053
7046
  };
7054
7047
  }
7055
- declare module "libs/reach/feature/content/src/common/useEmbeddedObjectValidator" {
7048
+ declare module "libs/reach/feature/content/src/common/hooks/useEmbeddedObjectValidator" {
7056
7049
  import { EmbeddedObject } from "libs/reach/util/common/src/index";
7057
7050
  export function useEmbeddedObjectValidator(): (embeddedObject: EmbeddedObject) => Promise<boolean>;
7058
7051
  }
@@ -7779,7 +7772,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineFileList" {
7779
7772
  }
7780
7773
  export const InlineFileMapper: HtmlComponentMapper;
7781
7774
  }
7782
- declare module "libs/reach/feature/content/src/common/useExternalContentHandler" {
7775
+ declare module "libs/reach/feature/content/src/common/hooks/useExternalContentHandler" {
7783
7776
  import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
7784
7777
  export function useExternalContentHandler(): (item: PublishableItem, itemType: ItemResourceTypes, openInNewTab?: boolean) => Promise<boolean>;
7785
7778
  export function useExternalContentClickHandler(): (e: React.MouseEvent<any>, item: PublishableItem, itemType: ItemResourceTypes) => Promise<void>;
@@ -9297,6 +9290,13 @@ declare module "libs/reach/feature/content/src/feedback/buttons/FeedbackButtons"
9297
9290
  className?: string;
9298
9291
  }>;
9299
9292
  }
9293
+ declare module "libs/reach/feature/content/src/common/hooks/usePageViewTracker" {
9294
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9295
+ export enum PageViewType {
9296
+ PostsGroupView = "PostsGroupView"
9297
+ }
9298
+ export function usePageViewTracker(basePath: ItemResourceTypes | string, itemId: string, viewType?: PageViewType): void;
9299
+ }
9300
9300
  declare module "libs/reach/feature/content/src/comments/ThreadView" {
9301
9301
  import { FC } from 'react';
9302
9302
  import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
@@ -9636,6 +9636,16 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
9636
9636
  import { FC } from 'react';
9637
9637
  export const DetailViewHeadline: FC;
9638
9638
  }
9639
+ declare module "libs/reach/feature/content/src/common/detail/controls/PageViewTrackerSettingsContext" {
9640
+ import { FC } from 'react';
9641
+ export interface PageViewTrackerSettings {
9642
+ disabled?: boolean;
9643
+ }
9644
+ export const PageViewTrackerSettingsContext: import("react").Context<PageViewTrackerSettings>;
9645
+ export const PageViewTrackerSettingsContextProvider: FC<{
9646
+ disabled?: boolean;
9647
+ }>;
9648
+ }
9639
9649
  declare module "libs/reach/feature/content/src/common/StateIcon" {
9640
9650
  import { WorkflowStatus } from "libs/reach/util/common/src/index";
9641
9651
  export const StateIcon: React.FC<{
@@ -9645,7 +9655,7 @@ declare module "libs/reach/feature/content/src/common/StateIcon" {
9645
9655
  activeColor?: string;
9646
9656
  }>;
9647
9657
  }
9648
- declare module "libs/reach/feature/content/src/common/useCommonEditorApi" {
9658
+ declare module "libs/reach/feature/content/src/common/hooks/useCommonEditorApi" {
9649
9659
  import { ItemResourceTypes, PaginatedList, TaskSummary } from "libs/reach/util/common/src/index";
9650
9660
  import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
9651
9661
  import { SortFieldsDefinitionBuilder } from "libs/reach/feature/content/src/filter/SortFieldsDefinitionBuilder";
@@ -9719,7 +9729,6 @@ declare module "libs/reach/feature/content/src/common/index" {
9719
9729
  export * from "libs/reach/feature/content/src/common/cards/ClickableOverlay";
9720
9730
  export * from "libs/reach/feature/content/src/common/cards/Card";
9721
9731
  export * from "libs/reach/feature/content/src/common/language-selector/LanguageSelector";
9722
- export * from "libs/reach/feature/content/src/common/useExternalContentHandler";
9723
9732
  export * from "libs/reach/feature/content/src/common/detail/controls/DetailViewArticle";
9724
9733
  export * from "libs/reach/feature/content/src/common/detail/controls/DetailViewBanner";
9725
9734
  export * from "libs/reach/feature/content/src/common/detail/controls/DetailViewIntro";
@@ -9735,14 +9744,17 @@ declare module "libs/reach/feature/content/src/common/index" {
9735
9744
  export * from "libs/reach/feature/content/src/common/detail/controls/DetailViewNavigation";
9736
9745
  export * from "libs/reach/feature/content/src/common/detail/controls/DetailViewBodyExternalContent";
9737
9746
  export * from "libs/reach/feature/content/src/common/detail/controls/DetailViewHeadline";
9747
+ export * from "libs/reach/feature/content/src/common/detail/controls/PageViewTrackerSettingsContext";
9738
9748
  export * from "libs/reach/feature/content/src/common/detail/DetailViewContext";
9739
9749
  export * from "libs/reach/feature/content/src/common/AppTriggerActions";
9740
9750
  export * from "libs/reach/feature/content/src/common/cards/CardLikeButton";
9741
9751
  export * from "libs/reach/feature/content/src/common/cards/CardStatisticItem";
9742
9752
  export * from "libs/reach/feature/content/src/common/EmbeddedObjectList";
9743
9753
  export * from "libs/reach/feature/content/src/common/StateIcon";
9744
- export * from "libs/reach/feature/content/src/common/useCommonEditorApi";
9745
9754
  export * from "libs/reach/feature/content/src/common/ExternalContentIcon";
9755
+ export * from "libs/reach/feature/content/src/common/hooks/useExternalContentHandler";
9756
+ export * from "libs/reach/feature/content/src/common/hooks/useCommonEditorApi";
9757
+ export * from "libs/reach/feature/content/src/common/hooks/usePageViewTracker";
9746
9758
  }
9747
9759
  declare module "libs/reach/feature/content/src/feedback/index" {
9748
9760
  export * from "libs/reach/feature/content/src/feedback/ConfirmationSection";
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.0-preview.667",
7
+ "version": "0.4.0-preview.670",
8
8
  "dependencies": {}
9
9
  }