@livetiles/reach-plugin-types 0.4.123 → 0.4.125

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 -20
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1489,12 +1489,14 @@ declare module "libs/reach/util/common/src/user/User" {
1489
1489
  declare module "libs/reach/util/common/src/user/CurrentUserContext" {
1490
1490
  import { CurrentUser } from "libs/reach/util/common/src/user/User";
1491
1491
  export const CurrentUserContext: import("react").Context<{
1492
- user: CurrentUser;
1492
+ isLibUser?: boolean;
1493
1493
  refreshUser: (updateFunc?: (u?: CurrentUser) => CurrentUser) => Promise<void>;
1494
+ user: CurrentUser;
1494
1495
  }>;
1495
1496
  export function useCurrentUserContext(): {
1496
- user: CurrentUser;
1497
+ isLibUser?: boolean;
1497
1498
  refreshUser: (updateFunc?: (u?: CurrentUser) => CurrentUser) => Promise<void>;
1499
+ user: CurrentUser;
1498
1500
  };
1499
1501
  }
1500
1502
  declare module "libs/reach/util/common/src/user/useCurrentUser" {
@@ -4087,7 +4089,7 @@ declare module "libs/reach/ui/common/src/common/UnreadCommentHighlight" {
4087
4089
  declare module "libs/reach/ui/common/src/common/UserUtility" {
4088
4090
  import { CurrentUser, UserGroup } from "libs/reach/util/common/src/index";
4089
4091
  import { IntlShape } from 'react-intl';
4090
- export function getGroupName(group: UserGroup, user: CurrentUser, intl: IntlShape): string;
4092
+ export function getGroupName(group: UserGroup, user: CurrentUser, intl: IntlShape, isLib?: boolean): string;
4091
4093
  }
4092
4094
  declare module "libs/reach/ui/common/src/common/containers/ListItemsContainer" {
4093
4095
  export const smallScreenSpacing = 10;
@@ -4491,7 +4493,7 @@ declare module "libs/reach/ui/common/src/common/locals-util" {
4491
4493
  import { CurrentUser } from "libs/reach/util/common/src/index";
4492
4494
  export const defaultFallbackLocale = "en";
4493
4495
  export const supportedLocales: string[];
4494
- export function getPreferredLocale(user?: CurrentUser, locale?: string): string;
4496
+ export function getPreferredLocale(user?: CurrentUser, locale?: string, isLib?: boolean): string;
4495
4497
  }
4496
4498
  declare module "libs/reach/ui/common/src/common/paging/HorizontalPager" {
4497
4499
  import { FC } from 'react';
@@ -4610,19 +4612,19 @@ declare module "libs/reach/ui/common/src/common/toolbar/ToolbarStyles" {
4610
4612
  export const ToolbarGlobalDropdownStyles: import("styled-components").FlattenSimpleInterpolation;
4611
4613
  }
4612
4614
  declare module "libs/reach/ui/common/src/common/toolbar/ToolbarChannelSelector" {
4613
- import { FC } from 'react';
4614
4615
  import { IDropdownOption } from 'office-ui-fabric-react';
4616
+ import { FC } from 'react';
4615
4617
  import { Channel } from "libs/reach/util/common/src/index";
4616
4618
  export const bookmarksKey = "Bookmarks";
4617
4619
  export interface ToolbarChannelSelectorProps {
4618
- getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
4619
4620
  allChannelsOption?: ToolbarChannelSelectorOption;
4621
+ bookmarkOption?: ToolbarChannelSelectorOption;
4620
4622
  channelsOptions?: {
4621
4623
  availableChannels?: string[];
4622
4624
  onSelected?: (channel: Channel) => unknown;
4623
4625
  to?: (channel: Channel) => unknown;
4624
4626
  };
4625
- bookmarkOption?: ToolbarChannelSelectorOption;
4627
+ getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
4626
4628
  manageChannelsOption?: ToolbarChannelSelectorOption;
4627
4629
  }
4628
4630
  export interface ToolbarChannelSelectorOption {
@@ -10167,10 +10169,10 @@ declare module "libs/reach/feature/content/src/posts/PostGroupsPicker" {
10167
10169
  import { FC } from 'react';
10168
10170
  import { UserGroup } from "libs/reach/util/common/src/index";
10169
10171
  export const PostGroupsPicker: FC<{
10172
+ className?: string;
10170
10173
  groups: UserGroup[];
10171
- selectedGroupId: string;
10172
10174
  onGroupSelected?: (groupId: string) => unknown;
10173
- className?: string;
10175
+ selectedGroupId: string;
10174
10176
  }>;
10175
10177
  }
10176
10178
  declare module "libs/reach/feature/content/src/posts/PostGroupSelector" {
@@ -11319,20 +11321,20 @@ declare module "libs/reach/feature/content/src/common/channels/ChannelSelector"
11319
11321
  import { Channel } from "libs/reach/util/common/src/index";
11320
11322
  import { LogicalOperator } from "libs/reach/feature/content/src/filter/index";
11321
11323
  interface Props {
11322
- selectedChannelNames?: string[];
11323
- selectedChannelIds?: string[];
11324
- mandatoryChannelIds?: string[];
11325
11324
  availableChannels?: Channel[];
11326
- onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
11327
11325
  className?: string;
11328
- showOnlyUserChannels?: boolean;
11329
- showSelectionToggle?: boolean;
11330
- placeholder?: string;
11326
+ id?: string;
11331
11327
  inlineControls?: boolean;
11328
+ mandatoryChannelIds?: string[];
11329
+ onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
11330
+ placeholder?: string;
11332
11331
  required?: boolean;
11333
- id?: string;
11334
- showLogicalOperatorOptions?: boolean;
11332
+ selectedChannelIds?: string[];
11333
+ selectedChannelNames?: string[];
11335
11334
  selectedLogicalOperator?: LogicalOperator;
11335
+ showLogicalOperatorOptions?: boolean;
11336
+ showOnlyUserChannels?: boolean;
11337
+ showSelectionToggle?: boolean;
11336
11338
  }
11337
11339
  export const ChannelSelector: FC<Props>;
11338
11340
  }
@@ -11675,10 +11677,10 @@ declare module "libs/reach/feature/content/src/editor/CreateNewItemButton" {
11675
11677
  import { FC } from 'react';
11676
11678
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
11677
11679
  export const CreateNewItemButton: FC<{
11678
- type: ItemResourceTypes;
11680
+ className?: string;
11679
11681
  groupId?: string;
11680
11682
  onClick?: (groupId?: string) => void;
11681
- className?: string;
11683
+ type: ItemResourceTypes;
11682
11684
  }>;
11683
11685
  }
11684
11686
  declare module "libs/reach/feature/content/src/editor/editorUtils" {
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.123",
7
+ "version": "0.4.125",
8
8
  "dependencies": {}
9
9
  }