@livetiles/reach-plugin-types 0.4.187 → 0.4.189

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 +12 -3
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3963,9 +3963,13 @@ declare module "libs/reach/ui/common/src/common/FloatingActionButton" {
3963
3963
  iconName: string;
3964
3964
  onClick: () => void;
3965
3965
  tooltipResourceKey: string;
3966
+ tooltipValues?: {
3967
+ [key: string]: string | number;
3968
+ };
3966
3969
  useSecondaryBgColor?: boolean;
3967
3970
  domIdentifier?: string;
3968
3971
  className?: string;
3972
+ disabled?: boolean;
3969
3973
  }>;
3970
3974
  export const FabButtonWithCallout: FC<{
3971
3975
  iconName: string;
@@ -8107,7 +8111,7 @@ declare module "libs/reach/feature/content/src/common/body/TextViewer" {
8107
8111
  }
8108
8112
  declare module "libs/reach/feature/content/src/common/detail/DetailViewContext" {
8109
8113
  import { Dispatch, SetStateAction } from 'react';
8110
- import { ItemResourceTypes, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
8114
+ import { ItemResourceTypes, LeaseInfo, PublishableItem, PublishableItemContent } from "libs/reach/util/common/src/index";
8111
8115
  export const DetailViewContext: import("react").Context<DetailViewContextType<PublishableItem>>;
8112
8116
  export interface DetailViewContextType<TItem> {
8113
8117
  isLoading: boolean;
@@ -8122,6 +8126,7 @@ declare module "libs/reach/feature/content/src/common/detail/DetailViewContext"
8122
8126
  content: PublishableItemContent;
8123
8127
  updateSelectedLanguage: (lang: string) => unknown;
8124
8128
  handleRefresh: (onFinished?: () => void) => unknown;
8129
+ refreshLease?: () => Promise<LeaseInfo | null | undefined>;
8125
8130
  handleLanguageChange: (language: string) => unknown;
8126
8131
  isEditorPreview?: boolean;
8127
8132
  isMobilePreview?: boolean;
@@ -9286,11 +9291,12 @@ declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
9286
9291
  }
9287
9292
  declare module "libs/reach/feature/content/src/common/detail/DetailViewContextProvider" {
9288
9293
  import { FC } from 'react';
9289
- import { ItemResourceTypes, PublishableItem } from "libs/reach/util/common/src/index";
9294
+ import { ItemResourceTypes, LeaseInfo, PublishableItem } from "libs/reach/util/common/src/index";
9290
9295
  export const DetailViewContextProvider: FC<{
9291
9296
  itemId: string;
9292
9297
  type?: ItemResourceTypes;
9293
9298
  loadItemFunc: (itemId: string) => Promise<PublishableItem>;
9299
+ loadLeaseFunc?: (itemId: string) => Promise<LeaseInfo | null>;
9294
9300
  isEditorPreview?: boolean;
9295
9301
  relatedItemIds?: string[];
9296
9302
  }>;
@@ -9464,6 +9470,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineTable" {
9464
9470
  }
9465
9471
  export interface TableCell {
9466
9472
  value: string;
9473
+ richText?: string;
9467
9474
  style?: CellStyle;
9468
9475
  cellId: string;
9469
9476
  isMultiline?: boolean;
@@ -9487,6 +9494,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineTable" {
9487
9494
  rows: TableRow[];
9488
9495
  format?: TableFormat;
9489
9496
  }
9497
+ export function sanitizeCellRichText(html: string): string;
9490
9498
  export function cssPropsToCellStyle(style: CSSStyleDeclaration, alternateLines: boolean, isHeaderRow: boolean): CellStyle;
9491
9499
  export function cellStyleToCssProps(cellStyle: CellStyle, disableCustomColors?: boolean): CSSProperties;
9492
9500
  export function getLinkCellStyle(url: string, fontColor: string): CSSProperties;
@@ -11936,7 +11944,7 @@ declare module "libs/reach/feature/content/src/editor/editorUtils" {
11936
11944
  }
11937
11945
  declare module "libs/reach/feature/content/src/editor/useEditorApi" {
11938
11946
  import { Observable } from 'rxjs';
11939
- import { ItemResourceTypes, ItemVersionSummary, PaginatedList, PublishableItem, PublishableItemContent, PublishableItemVersion, ResponseItem, WorkflowStatus } from "libs/reach/util/common/src/index";
11947
+ import { ItemResourceTypes, ItemVersionSummary, LeaseInfo, PaginatedList, PublishableItem, PublishableItemContent, PublishableItemVersion, ResponseItem, WorkflowStatus } from "libs/reach/util/common/src/index";
11940
11948
  import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/NewsFilterDefinition";
11941
11949
  import { KeepAliveHandle } from "libs/reach/feature/content/src/editor/editorUtils";
11942
11950
  export function useEditorApi(): {
@@ -11954,6 +11962,7 @@ declare module "libs/reach/feature/content/src/editor/useEditorApi" {
11954
11962
  setStatus: (type: ItemResourceTypes, itemId: number | string, status: WorkflowStatus, leaseId: string | null) => Promise<PublishableItem>;
11955
11963
  removeLease: (itemId: string, leaseId: string) => Promise<any>;
11956
11964
  keepLeaseAlive: (itemId: string, leaseId: string, token: string, subscriptionId: string) => KeepAliveHandle;
11965
+ getLease: (type: ItemResourceTypes, itemId: string) => Promise<LeaseInfo | null>;
11957
11966
  saveItem: (subscriptionId: string, type: ItemResourceTypes | null, item: PublishableItem, createLease?: boolean) => Observable<any>;
11958
11967
  updateGroups: (itemType: ItemResourceTypes, itemId: string, groupIds: string[]) => Promise<PublishableItem>;
11959
11968
  translateContent: (itemId: string, translateFrom: string, translateTo: string[]) => Promise<PublishableItemContent[]>;
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.187",
7
+ "version": "0.4.189",
8
8
  "dependencies": {}
9
9
  }