@livetiles/reach-plugin-types 0.5.0-preview.63 → 0.5.0-preview.67

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 +25 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -6637,19 +6637,41 @@ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersP
6637
6637
  }
6638
6638
  declare module "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter" {
6639
6639
  import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
6640
+ export enum ValidationStatus {
6641
+ Valid = 0,
6642
+ WithErrors = 1,
6643
+ WithUserErrors = 2
6644
+ }
6645
+ export type CsvValidation = {
6646
+ Status?: ValidationStatus;
6647
+ Message?: string;
6648
+ };
6640
6649
  export function useUserCsvInviter(): {
6641
6650
  invitedUsers: UserImport[];
6642
6651
  isValidating: boolean;
6643
6652
  isCsvValid: boolean;
6644
6653
  parseCsvFile: (csvFile: File) => void;
6645
- error: string;
6646
- setError: import("react").Dispatch<import("react").SetStateAction<string>>;
6654
+ csvValidation: CsvValidation;
6655
+ setCsvValidation: (status: ValidationStatus, message: string) => void;
6647
6656
  inviteUsers: (onSuccess?: () => void) => Promise<void>;
6648
6657
  isParserReady: boolean;
6649
6658
  isInviting: boolean;
6650
6659
  canInvite: boolean;
6660
+ csvFile: File;
6651
6661
  };
6652
6662
  }
6663
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/csvUtils" {
6664
+ export function createCsvUrl(header: string, content: string): string;
6665
+ }
6666
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/CsvFileValidationResult" {
6667
+ import { FC } from 'react';
6668
+ import { CsvValidation } from "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter";
6669
+ import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
6670
+ export const CsvFileValidationResult: FC<{
6671
+ csvValidation: CsvValidation;
6672
+ invitedUsers: UserImport[];
6673
+ }>;
6674
+ }
6653
6675
  declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUserButton" {
6654
6676
  import { FC } from 'react';
6655
6677
  export const ImportUserButton: FC<{
@@ -9058,6 +9080,7 @@ declare module "libs/reach/feature/content/src/common/body/InlineUrlPreview" {
9058
9080
  }
9059
9081
  declare module "libs/reach/feature/content/src/common/body/InlineImage" {
9060
9082
  import { HtmlComponentMapper } from "libs/reach/feature/content/src/common/body/TextViewer";
9083
+ export const ImageAlignmentStyles: (alignment: string, width: number) => import("styled-components").FlattenSimpleInterpolation | "";
9061
9084
  export const InlineImageMapper: HtmlComponentMapper;
9062
9085
  }
9063
9086
  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.5.0-preview.63",
7
+ "version": "0.5.0-preview.67",
8
8
  "dependencies": {}
9
9
  }