@livetiles/reach-plugin-types 0.4.0-preview.563 → 0.4.0-preview.566

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 +22 -0
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1703,6 +1703,11 @@ declare module "libs/reach/util/common/src/content/NewsItem" {
1703
1703
  knownState: KnownNewsState;
1704
1704
  hasNewComments?: boolean;
1705
1705
  isLiked?: boolean;
1706
+ shareToken?: ShareToken;
1707
+ }
1708
+ export interface ShareToken {
1709
+ published?: string;
1710
+ preview?: string;
1706
1711
  }
1707
1712
  export interface NewsItemAlertOptions {
1708
1713
  duration?: string;
@@ -7206,6 +7211,11 @@ declare module "libs/reach/feature/content/src/events/EventLocationLink" {
7206
7211
  className?: string;
7207
7212
  }>;
7208
7213
  }
7214
+ declare module "libs/reach/feature/content/src/common/detail/events/EventPathContext" {
7215
+ export const EventPathContext: import("react").Context<{
7216
+ eventsRootPath?: string;
7217
+ }>;
7218
+ }
7209
7219
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo" {
7210
7220
  import { FC } from 'react';
7211
7221
  import { EventItem, EventLocation } from "libs/reach/util/common/src/index";
@@ -9665,6 +9675,7 @@ declare module "libs/reach/feature/content/src/common/index" {
9665
9675
  export * from "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewCancelInformation";
9666
9676
  export * from "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewFeedbackSection";
9667
9677
  export * from "libs/reach/feature/content/src/common/detail/events/EventDetailViewPlugins";
9678
+ export * from "libs/reach/feature/content/src/common/detail/events/EventPathContext";
9668
9679
  export * from "libs/reach/feature/content/src/common/detail/pages/controls/PageDetailViewMetaInfo";
9669
9680
  export * from "libs/reach/feature/content/src/common/detail/pages/controls/PageDetailViewFeedbackSection";
9670
9681
  export * from "libs/reach/feature/content/src/common/detail/pages/usePageDetailSearchHandler";
@@ -10231,6 +10242,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10231
10242
  knownState: KnownNewsState;
10232
10243
  hasNewComments?: boolean;
10233
10244
  isLiked?: boolean;
10245
+ shareToken?: import("@livetiles/reach/util/common").ShareToken;
10234
10246
  metadata?: import("@livetiles/reach/util/common").NewsMetadata;
10235
10247
  channels?: import("@livetiles/reach/util/common").SchedulableItemChannel[];
10236
10248
  lease: import("@livetiles/reach/util/common").LeaseInfo;
@@ -10726,6 +10738,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10726
10738
  expiryDate?: string;
10727
10739
  hasNewComments?: boolean;
10728
10740
  isLiked?: boolean;
10741
+ shareToken?: import("@livetiles/reach/util/common").ShareToken;
10729
10742
  metadata?: import("@livetiles/reach/util/common").NewsMetadata;
10730
10743
  lease: import("@livetiles/reach/util/common").LeaseInfo;
10731
10744
  id?: string;
@@ -10795,6 +10808,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10795
10808
  expiryDate?: string;
10796
10809
  hasNewComments?: boolean;
10797
10810
  isLiked?: boolean;
10811
+ shareToken?: import("@livetiles/reach/util/common").ShareToken;
10798
10812
  metadata?: import("@livetiles/reach/util/common").NewsMetadata;
10799
10813
  lease: import("@livetiles/reach/util/common").LeaseInfo;
10800
10814
  id?: string;
@@ -11434,6 +11448,13 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
11434
11448
  save: (item: NewsItem, subscriptionId: string) => Observable<NewsItem>;
11435
11449
  };
11436
11450
  }
11451
+ declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
11452
+ export type ShareTokenType = 'preview' | 'published';
11453
+ export function useShareTokenEditorApi(): {
11454
+ activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11455
+ deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11456
+ };
11457
+ }
11437
11458
  declare module "libs/reach/feature/content/src/editor/index" {
11438
11459
  export * from "libs/reach/feature/content/src/editor/EditorListItem";
11439
11460
  export * from "libs/reach/feature/content/src/editor/NewsEditorItem";
@@ -11442,6 +11463,7 @@ declare module "libs/reach/feature/content/src/editor/index" {
11442
11463
  export * from "libs/reach/feature/content/src/editor/editorUtils";
11443
11464
  export * from "libs/reach/feature/content/src/editor/useEditorApi";
11444
11465
  export * from "libs/reach/feature/content/src/editor/useNewsEditorApi";
11466
+ export * from "libs/reach/feature/content/src/editor/useShareTokenEditorApi";
11445
11467
  }
11446
11468
  declare module "libs/reach/feature/content/src/public-user/index" {
11447
11469
  export * from "libs/reach/feature/content/src/public-user/PublicUserFullAccessButton";
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.563",
7
+ "version": "0.4.0-preview.566",
8
8
  "dependencies": {}
9
9
  }