@livetiles/reach-plugin-types 0.4.15 → 0.4.16

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 +15 -1
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -3428,6 +3428,15 @@ declare module "libs/reach/util/common/src/ImageDetails" {
3428
3428
  width?: number;
3429
3429
  height?: number;
3430
3430
  }
3431
+ export interface ImageWithAlignment extends ImageDetails {
3432
+ imageAlignment?: ImageAlignment;
3433
+ }
3434
+ export enum ImageAlignment {
3435
+ Default = "default",
3436
+ Left = "left",
3437
+ Right = "right",
3438
+ Center = "center"
3439
+ }
3431
3440
  }
3432
3441
  declare module "libs/reach/util/common/src/MainContentPanelContext" {
3433
3442
  export interface MainPanelContextType {
@@ -8463,6 +8472,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
8463
8472
  import { FC, ReactNode } from 'react';
8464
8473
  export const InlineObjectToolbar: FC<{
8465
8474
  onDelete?: () => void;
8475
+ deleteAriaLabelResourceKey?: string;
8466
8476
  additionalButtons?: ReactNode;
8467
8477
  }>;
8468
8478
  export const InlineObjectToolbarWrapper: FC<{
@@ -8470,15 +8480,18 @@ declare module "libs/reach/feature/content/src/common/body/InlineObjectToolbar"
8470
8480
  }>;
8471
8481
  }
8472
8482
  declare module "libs/reach/feature/content/src/common/body/ImageToolbar" {
8473
- import { FC } from 'react';
8483
+ import { FC, ReactNode } from 'react';
8484
+ import { ImageAlignment } from "libs/reach/util/common/src/index";
8474
8485
  export const ImageToolbar: FC<{
8475
8486
  onDelete?: () => void;
8476
8487
  onFullScreen?: (e: React.MouseEvent<any>) => void;
8477
8488
  onClose?: (e: React.MouseEvent<any>) => void;
8478
8489
  onCrop?: (e: React.MouseEvent<any>) => void;
8490
+ onAlignment?: (e: React.MouseEvent<any>, alignment: ImageAlignment) => void;
8479
8491
  showFullScreenButton?: boolean;
8480
8492
  showCloseButton?: boolean;
8481
8493
  showCropButton?: boolean;
8494
+ alignmentButtons?: ReactNode;
8482
8495
  }>;
8483
8496
  }
8484
8497
  declare module "libs/reach/feature/content/src/common/body/PhotoGallery" {
@@ -9046,6 +9059,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineUrlPreview" {
9046
9059
  }
9047
9060
  declare module "libs/reach/feature/content/src/common/body/InlineImage" {
9048
9061
  import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
9062
+ export const ImageAlignmentStyles: (alignment: string, width: number, preventFloat?: boolean) => string | import("styled-components").FlattenSimpleInterpolation;
9049
9063
  export const InlineImageMapper: HtmlComponentMapper;
9050
9064
  }
9051
9065
  declare module "libs/reach/feature/content/src/common/body/InlineContact" {
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.15",
7
+ "version": "0.4.16",
8
8
  "dependencies": {}
9
9
  }