@livetiles/reach-plugin-types 0.5.0-preview.929 → 0.5.0-preview.930

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
@@ -1500,7 +1500,7 @@ declare module "libs/reach/util/common/src/resources/locals-util" {
1500
1500
  import { CurrentUser } from "libs/reach/util/common/src/user/User";
1501
1501
  export const defaultFallbackLocale = "en";
1502
1502
  export const supportedLocales: string[];
1503
- export function getPreferredLocale(user?: CurrentUser, locale?: string): string;
1503
+ export function getPreferredLocale(user?: CurrentUser, locale?: string, isLib?: boolean): string;
1504
1504
  export function getValidLocale(locale: string): string;
1505
1505
  }
1506
1506
  declare module "libs/reach/util/common/src/user/features/FeatureSet" {
@@ -1513,12 +1513,14 @@ declare module "libs/reach/util/common/src/user/features/FeatureSet" {
1513
1513
  declare module "libs/reach/util/common/src/user/CurrentUserContext" {
1514
1514
  import { CurrentUser } from "libs/reach/util/common/src/user/User";
1515
1515
  export const CurrentUserContext: import("react").Context<{
1516
- user: CurrentUser;
1516
+ isLibUser?: boolean;
1517
1517
  refreshUser: (updateFunc?: (u?: CurrentUser) => CurrentUser) => Promise<void>;
1518
+ user: CurrentUser;
1518
1519
  }>;
1519
1520
  export function useCurrentUserContext(): {
1520
- user: CurrentUser;
1521
+ isLibUser?: boolean;
1521
1522
  refreshUser: (updateFunc?: (u?: CurrentUser) => CurrentUser) => Promise<void>;
1523
+ user: CurrentUser;
1522
1524
  };
1523
1525
  }
1524
1526
  declare module "libs/reach/util/common/src/user/useCurrentUser" {
@@ -4321,7 +4323,7 @@ declare module "libs/reach/ui/common/src/common/UnreadCommentHighlight" {
4321
4323
  declare module "libs/reach/ui/common/src/common/UserUtility" {
4322
4324
  import { CurrentUser, UserGroup } from "libs/reach/util/common/src/index";
4323
4325
  import { IntlShape } from 'react-intl';
4324
- export function getGroupName(group: UserGroup, user: CurrentUser, intl: IntlShape): string;
4326
+ export function getGroupName(group: UserGroup, user: CurrentUser, intl: IntlShape, isLib?: boolean): string;
4325
4327
  }
4326
4328
  declare module "libs/reach/ui/common/src/common/containers/ListItemsContainer" {
4327
4329
  export const smallScreenSpacing = 10;
@@ -4850,19 +4852,19 @@ declare module "libs/reach/ui/common/src/common/toolbar/ToolbarStyles" {
4850
4852
  export const ToolbarGlobalDropdownStyles: import("styled-components").FlattenSimpleInterpolation;
4851
4853
  }
4852
4854
  declare module "libs/reach/ui/common/src/common/toolbar/ToolbarChannelSelector" {
4853
- import { FC } from 'react';
4854
4855
  import { IDropdownOption } from 'office-ui-fabric-react';
4856
+ import { FC } from 'react';
4855
4857
  import { Channel } from "libs/reach/util/common/src/index";
4856
4858
  export const bookmarksKey = "Bookmarks";
4857
4859
  export interface ToolbarChannelSelectorProps {
4858
- getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
4859
4860
  allChannelsOption?: ToolbarChannelSelectorOption;
4861
+ bookmarkOption?: ToolbarChannelSelectorOption;
4860
4862
  channelsOptions?: {
4861
4863
  availableChannels?: string[];
4862
4864
  onSelected?: (channel: Channel) => unknown;
4863
4865
  to?: (channel: Channel) => unknown;
4864
4866
  };
4865
- bookmarkOption?: ToolbarChannelSelectorOption;
4867
+ getInitialSelectedKey?: (dropdownOptions: IDropdownOption[]) => string;
4866
4868
  manageChannelsOption?: ToolbarChannelSelectorOption;
4867
4869
  }
4868
4870
  export interface ToolbarChannelSelectorOption {
@@ -9561,10 +9563,10 @@ declare module "libs/reach/feature/content/src/posts/PostGroupsPicker" {
9561
9563
  import { FC } from 'react';
9562
9564
  import { UserGroup } from "libs/reach/util/common/src/index";
9563
9565
  export const PostGroupsPicker: FC<{
9566
+ className?: string;
9564
9567
  groups: UserGroup[];
9565
- selectedGroupId: string;
9566
9568
  onGroupSelected?: (groupId: string) => unknown;
9567
- className?: string;
9569
+ selectedGroupId: string;
9568
9570
  }>;
9569
9571
  }
9570
9572
  declare module "libs/reach/feature/content/src/posts/PostGroupSelector" {
@@ -10240,20 +10242,20 @@ declare module "libs/reach/feature/content/src/common/channels/ChannelSelector"
10240
10242
  import { Channel } from "libs/reach/util/common/src/index";
10241
10243
  import { LogicalOperator } from "libs/reach/feature/content/src/filter/index";
10242
10244
  interface Props {
10243
- selectedChannelNames?: string[];
10244
- selectedChannelIds?: string[];
10245
- mandatoryChannelIds?: string[];
10246
10245
  availableChannels?: Channel[];
10247
- onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
10248
10246
  className?: string;
10249
- showOnlyUserChannels?: boolean;
10250
- showSelectionToggle?: boolean;
10251
- placeholder?: string;
10247
+ id?: string;
10252
10248
  inlineControls?: boolean;
10249
+ mandatoryChannelIds?: string[];
10250
+ onChannelsChanged: (channels: Channel[], logicalOperator?: LogicalOperator) => void;
10251
+ placeholder?: string;
10253
10252
  required?: boolean;
10254
- id?: string;
10255
- showLogicalOperatorOptions?: boolean;
10253
+ selectedChannelIds?: string[];
10254
+ selectedChannelNames?: string[];
10256
10255
  selectedLogicalOperator?: LogicalOperator;
10256
+ showLogicalOperatorOptions?: boolean;
10257
+ showOnlyUserChannels?: boolean;
10258
+ showSelectionToggle?: boolean;
10257
10259
  }
10258
10260
  export const ChannelSelector: FC<Props>;
10259
10261
  }
@@ -10592,10 +10594,10 @@ declare module "libs/reach/feature/content/src/editor/CreateNewItemButton" {
10592
10594
  import { FC } from 'react';
10593
10595
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
10594
10596
  export const CreateNewItemButton: FC<{
10595
- type: ItemResourceTypes;
10597
+ className?: string;
10596
10598
  groupId?: string;
10597
10599
  onClick?: (groupId?: string) => void;
10598
- className?: string;
10600
+ type: ItemResourceTypes;
10599
10601
  }>;
10600
10602
  }
10601
10603
  declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
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.929",
7
+ "version": "0.5.0-preview.930",
8
8
  "dependencies": {}
9
9
  }