@livetiles/reach-plugin-types 0.5.0-preview.1010 → 0.5.0-preview.1012

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 -12
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1581,6 +1581,11 @@ declare module "libs/reach/util/common/src/user/Group" {
1581
1581
  export interface Group extends GroupSummary {
1582
1582
  rules: GroupRules;
1583
1583
  statistics: GroupStatistics;
1584
+ users: UserRoleAssignment[];
1585
+ }
1586
+ export interface NestedGroup extends Group {
1587
+ parentId: string;
1588
+ isParent: boolean;
1584
1589
  }
1585
1590
  export type GroupRules = {
1586
1591
  [K in GroupRoleNames]?: GroupRule;
@@ -4198,6 +4203,13 @@ declare module "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogg
4198
4203
  export function usePageScrollDirectionForTogglingControls(disableOnLargeScreen?: boolean, maximumAllowedScreenWidth?: number, upThreshold?: number, downThreshold?: number): boolean;
4199
4204
  export function useDirectionAwarePageScrollListener(onScrollDown: () => void, onScrollUp: () => void, shouldDisable?: (containerWidth: number) => boolean, upThreshold?: number, downThreshold?: number): void;
4200
4205
  }
4206
+ declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
4207
+ import { NestedGroup } from "libs/reach/util/common/src/user/index";
4208
+ export function useNestedGroupsQuery(): {
4209
+ loadRootGroups: () => Promise<NestedGroup[]>;
4210
+ loadChildGroups: (parentId: string) => Promise<NestedGroup[]>;
4211
+ };
4212
+ }
4201
4213
  declare module "libs/reach/util/common/src/reach-2/index" {
4202
4214
  export * from "libs/reach/util/common/src/reach-2/FocusStyles";
4203
4215
  export * from "libs/reach/util/common/src/reach-2/GlobalStyles";
@@ -4206,6 +4218,7 @@ declare module "libs/reach/util/common/src/reach-2/index" {
4206
4218
  export * from "libs/reach/util/common/src/reach-2/ThemeContext";
4207
4219
  export * from "libs/reach/util/common/src/reach-2/useNewExperienceStorage";
4208
4220
  export * from "libs/reach/util/common/src/reach-2/usePageScrollDirectionForTogglingControls";
4221
+ export * from "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery";
4209
4222
  }
4210
4223
  declare module "libs/reach/util/common/src/useReachClassNames" {
4211
4224
  export function useReachClassNames(): string;
@@ -6626,19 +6639,13 @@ declare module "libs/reach/ui/common/src/reach-2/tabs/TabGroup" {
6626
6639
  }
6627
6640
  declare module "libs/reach/ui/common/src/reach-2/table/Table" {
6628
6641
  import { TableProps } from 'antd';
6629
- import { ReactElement } from 'react';
6630
6642
  export const columnSortIcon: ({ sortOrder, }: {
6631
6643
  sortOrder: 'ascend' | 'descend' | null;
6632
6644
  }) => JSX.Element;
6633
- export const rowExpandIcon: ({ expanded, onExpand, record, }: {
6634
- expanded: boolean;
6635
- onExpand: (record: {
6636
- children?: ReactElement[];
6637
- }, e: React.MouseEvent<HTMLElement>) => void;
6638
- record: {
6639
- children?: ReactElement[];
6640
- };
6641
- }) => JSX.Element;
6645
+ export const TableExpandButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
6646
+ $isExpanded?: boolean;
6647
+ }, never>;
6648
+ export const TableExpandIconPlaceholder: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6642
6649
  const _default_2: import("react").ForwardRefExoticComponent<TableProps<any> & import("react").RefAttributes<any>>;
6643
6650
  export default _default_2;
6644
6651
  }
@@ -7407,10 +7414,11 @@ declare module "libs/reach/feature/content/src/pages/usePagesApi" {
7407
7414
  };
7408
7415
  }
7409
7416
  declare module "libs/reach/feature/content/src/posts/utils" {
7410
- import { Account, BaseItem, Comment, CurrentUser, ItemStatistics, ItemWithAttachments, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
7417
+ import { Account, BannerInfo, BaseItem, Comment, CurrentUser, ItemStatistics, ItemWithAttachments, Keyword, PaginatedList } from "libs/reach/util/common/src/index";
7411
7418
  import { FilterWithLogicalOperator } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
7412
7419
  export interface Post extends BaseItem, ItemWithAttachments {
7413
7420
  id: string;
7421
+ bannerInfo?: BannerInfo;
7414
7422
  comments?: PaginatedList<Comment>;
7415
7423
  groupId: string;
7416
7424
  content: string;
@@ -7439,6 +7447,7 @@ declare module "libs/reach/feature/content/src/posts/utils" {
7439
7447
  export function getPostsHashtagFilterRoute(post: Post, user: CurrentUser, hashtag: string): string;
7440
7448
  }
7441
7449
  declare module "libs/reach/feature/content/src/posts/usePostsApi" {
7450
+ import { BannerInfo } from "libs/reach/util/common/src/index";
7442
7451
  import { PaginatedList } from "libs/reach/util/common/src/index";
7443
7452
  import { Attachment } from "libs/reach/util/common/src/index";
7444
7453
  import { Keyword } from "libs/reach/util/common/src/index";
@@ -7450,7 +7459,7 @@ declare module "libs/reach/feature/content/src/posts/usePostsApi" {
7450
7459
  getPosts: (filter?: Partial<PostFilterDefinition>, ...groupIds: string[]) => Promise<PaginatedList<Post>>;
7451
7460
  updatePost: (postId: string, content: string, attachments: Attachment[], keywords?: {
7452
7461
  [key: string]: Keyword[];
7453
- }) => Promise<Post>;
7462
+ }, bannerInfo?: BannerInfo) => Promise<Post>;
7454
7463
  deletePost: (postId: string) => Promise<unknown>;
7455
7464
  getPost: (postId: string, commentCount?: number) => Promise<Post>;
7456
7465
  getPostThread: (postId: string, threadId: string) => Promise<Post>;
@@ -10639,6 +10648,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10639
10648
  postComments?: PaginatedList<StreamPostComment>;
10640
10649
  hasMoreUnreadComments: boolean;
10641
10650
  id: string;
10651
+ bannerInfo?: import("@livetiles/reach/util/common").BannerInfo;
10642
10652
  comments?: PaginatedList<Comment>;
10643
10653
  groupId: string;
10644
10654
  content: string;
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.1010",
7
+ "version": "0.5.0-preview.1012",
8
8
  "dependencies": {}
9
9
  }