@livetiles/reach-plugin-types 0.5.0-preview.1036 → 0.5.0-preview.1038

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 +66 -20
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -4149,6 +4149,65 @@ declare module "libs/reach/util/common/src/reach-2/GlobalStyles" {
4149
4149
  export const BorderStyles: import("styled-components").FlattenSimpleInterpolation;
4150
4150
  export const EditorScrollbarStyles: (hideWhenNotHovered?: boolean, showBackground?: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
4151
4151
  }
4152
+ declare module "libs/reach/util/common/src/reach-2/members/IMember" {
4153
+ export enum Role {
4154
+ Member = "Member",
4155
+ Owner = "Owner"
4156
+ }
4157
+ export enum SortOrder {
4158
+ ASC = "ASC",
4159
+ DESC = "DESC"
4160
+ }
4161
+ export interface IMember {
4162
+ displayName: string;
4163
+ hasPendingInvitation: boolean;
4164
+ id: string;
4165
+ lastLoginTime: string;
4166
+ mail: string;
4167
+ role: Role;
4168
+ userPrincipalName: string;
4169
+ }
4170
+ export interface IMembersQueryParams {
4171
+ order?: [{
4172
+ [key: string]: SortOrder;
4173
+ }] | null;
4174
+ searchText?: string | null;
4175
+ skip?: number | null;
4176
+ take?: number | null;
4177
+ }
4178
+ export interface IMembersPage {
4179
+ items: IMember[];
4180
+ pageInfo: {
4181
+ hasNextPage: boolean;
4182
+ hasPreviousPage: boolean;
4183
+ };
4184
+ totalCount: number;
4185
+ }
4186
+ }
4187
+ declare module "libs/reach/util/common/src/reach-2/members/useMembersQuery" {
4188
+ import { IMembersPage, IMembersQueryParams } from "libs/reach/util/common/src/reach-2/members/IMember";
4189
+ export const useMembersQuery: () => {
4190
+ getAllUsers: (params: IMembersQueryParams) => Promise<IMembersPage>;
4191
+ };
4192
+ }
4193
+ declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
4194
+ import { NestedGroup } from "libs/reach/util/common/src/user/index";
4195
+ export interface NestedGroupInput {
4196
+ description: string;
4197
+ id?: string;
4198
+ name: string;
4199
+ users: {
4200
+ userId: string;
4201
+ }[];
4202
+ }
4203
+ export const useNestedGroupsQuery: () => {
4204
+ createNestedGroup: (inputGroup: NestedGroupInput) => Promise<NestedGroup>;
4205
+ deleteNestedGroups: (groupIds: string[]) => Promise<string[]>;
4206
+ loadChildGroups: (parentId: string) => Promise<NestedGroup[]>;
4207
+ loadRootGroups: () => Promise<NestedGroup[]>;
4208
+ updateNestedGroup: (inputGroup: NestedGroupInput) => Promise<NestedGroup>;
4209
+ };
4210
+ }
4152
4211
  declare module "libs/reach/util/common/src/reach-2/useNewExperienceStorage" {
4153
4212
  export function useNewUserExperienceStorage(): {
4154
4213
  getUseNewUserExperience: () => Promise<boolean>;
@@ -4262,33 +4321,17 @@ declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogg
4262
4321
  export function usePageScrollDirectionForTogglingControls(disableOnLargeScreen?: boolean, maximumAllowedScreenWidth?: number, upThreshold?: number, downThreshold?: number): boolean;
4263
4322
  export function useDirectionAwarePageScrollListener(onScrollDown: () => void, onScrollUp: () => void, shouldDisable?: (containerWidth: number) => boolean, upThreshold?: number, downThreshold?: number): void;
4264
4323
  }
4265
- declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
4266
- import { NestedGroup } from "libs/reach/util/common/src/user/index";
4267
- export interface NestedGroupInput {
4268
- description: string;
4269
- id?: string;
4270
- name: string;
4271
- users: {
4272
- userId: string;
4273
- }[];
4274
- }
4275
- export const useNestedGroupsQuery: () => {
4276
- createNestedGroup: (inputGroup: NestedGroupInput) => Promise<NestedGroup>;
4277
- deleteNestedGroups: (groupIds: string[]) => Promise<string[]>;
4278
- loadChildGroups: (parentId: string) => Promise<NestedGroup[]>;
4279
- loadRootGroups: () => Promise<NestedGroup[]>;
4280
- updateNestedGroup: (inputGroup: NestedGroupInput) => Promise<NestedGroup>;
4281
- };
4282
- }
4283
4324
  declare module "libs/reach/util/common/src/reach-2/index" {
4284
4325
  export * from "libs/reach/util/common/src/reach-2/FocusStyles";
4285
4326
  export * from "libs/reach/util/common/src/reach-2/GlobalStyles";
4327
+ export * from "libs/reach/util/common/src/reach-2/members/IMember";
4328
+ export * from "libs/reach/util/common/src/reach-2/members/useMembersQuery";
4329
+ export * from "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery";
4286
4330
  export * from "libs/reach/util/common/src/reach-2/NewUserExperienceContext";
4287
4331
  export * from "libs/reach/util/common/src/reach-2/resources/index";
4288
4332
  export * from "libs/reach/util/common/src/reach-2/ThemeContext";
4289
4333
  export * from "libs/reach/util/common/src/reach-2/useNewExperienceStorage";
4290
4334
  export * from "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls";
4291
- export * from "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery";
4292
4335
  }
4293
4336
  declare module "libs/reach/util/common/src/useReachClassNames" {
4294
4337
  export function useReachClassNames(): string;
@@ -6146,6 +6189,8 @@ declare module "libs/reach/ui/common/src/reach-2/icons/Icons" {
6146
6189
  export { ReactComponent as StarIcon } from './assets/star.svg';
6147
6190
  export { ReactComponent as SubtitleActiveIcon } from './assets/subtitle-active.svg';
6148
6191
  export { ReactComponent as SubtitleIcon } from './assets/subtitle.svg';
6192
+ export { ReactComponent as SystemError } from './assets/system-error.svg';
6193
+ export { ReactComponent as SystemSuccess } from './assets/system-success.svg';
6149
6194
  export { ReactComponent as TagIcon } from './assets/tag.svg';
6150
6195
  export { ReactComponent as TemplatesActiveIcon } from './assets/templates-active.svg';
6151
6196
  export { ReactComponent as TemplatesIcon } from './assets/templates.svg';
@@ -6577,6 +6622,7 @@ declare module "libs/reach/ui/common/src/reach-2/select/Select" {
6577
6622
  onAddItem?: (id: string) => void;
6578
6623
  onInputChange?: (value: string) => void;
6579
6624
  onItemsChange?: (items: T[]) => void;
6625
+ onItemSelected?: (item: T, index: number) => void;
6580
6626
  onRemoveItem?: (id: string) => void;
6581
6627
  options: T[] | SelectItemGroupProps<T>[];
6582
6628
  placeholder?: string;
@@ -6590,7 +6636,7 @@ declare module "libs/reach/ui/common/src/reach-2/select/Select" {
6590
6636
  size?: SelectSize;
6591
6637
  values?: T[];
6592
6638
  }
6593
- const Select: <T extends SelectItemProps = SelectItemProps>({ allowCreation, className, disabled, emptyLabel, errorItems, errorLabel, forcePlaceholder, hideChevron, leftIcon, multiple, onAddItem, onInputChange, onItemsChange, onRemoveItem, options: preprocessedOptions, placeholder, popoverHeight, renderItem, searchable, selectedValuesOptions, size, values, }: SelectProps<T>) => JSX.Element;
6639
+ const Select: <T extends SelectItemProps = SelectItemProps>({ allowCreation, className, disabled, emptyLabel, errorItems, errorLabel, forcePlaceholder, hideChevron, leftIcon, multiple, onAddItem, onInputChange, onItemsChange, onItemSelected, onRemoveItem, options: preprocessedOptions, placeholder, popoverHeight, renderItem, searchable, selectedValuesOptions, size, values, }: SelectProps<T>) => JSX.Element;
6594
6640
  export default Select;
6595
6641
  }
6596
6642
  declare module "libs/reach/ui/common/src/reach-2/select/UserSelect" {
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.1036",
7
+ "version": "0.5.0-preview.1038",
8
8
  "dependencies": {}
9
9
  }