@livetiles/reach-plugin-types 0.5.0-preview.1190 → 0.5.0-preview.1191
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.
- package/lib/index.d.ts +59 -48
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3395,6 +3395,42 @@ declare module "libs/reach/util/common/src/plugins/index" {
|
|
|
3395
3395
|
export * from "libs/reach/util/common/src/plugins/usePluginSubscriptionStore";
|
|
3396
3396
|
export * from "libs/reach/util/common/src/plugins/usePluginUserStore";
|
|
3397
3397
|
}
|
|
3398
|
+
declare module "libs/reach/util/common/src/reach-2/hooks/useErrorHandler" {
|
|
3399
|
+
import { GraphQLError } from 'graphql';
|
|
3400
|
+
const useErrorHandler: () => {
|
|
3401
|
+
handleErrors: (errors: ReadonlyArray<GraphQLError>) => void;
|
|
3402
|
+
};
|
|
3403
|
+
export default useErrorHandler;
|
|
3404
|
+
}
|
|
3405
|
+
declare module "libs/reach/util/common/src/reach-2/hooks/usePageScrollDirectionForTogglingControls" {
|
|
3406
|
+
export function usePageScrollDirectionForTogglingControls(disableOnLargeScreen?: boolean, maximumAllowedScreenWidth?: number, upThreshold?: number, downThreshold?: number): boolean;
|
|
3407
|
+
export function useDirectionAwarePageScrollListener(onScrollDown: () => void, onScrollUp: () => void, shouldDisable?: (containerWidth: number) => boolean, upThreshold?: number, downThreshold?: number): void;
|
|
3408
|
+
}
|
|
3409
|
+
declare module "libs/reach/util/common/src/reach-2/hooks/index" {
|
|
3410
|
+
export { default as useErrorHandler } from "libs/reach/util/common/src/reach-2/hooks/useErrorHandler";
|
|
3411
|
+
export * from "libs/reach/util/common/src/reach-2/hooks/usePageScrollDirectionForTogglingControls";
|
|
3412
|
+
}
|
|
3413
|
+
declare module "libs/reach/util/common/src/reach-2/channels/types" {
|
|
3414
|
+
export interface IChannelResponse {
|
|
3415
|
+
id: string;
|
|
3416
|
+
name: string;
|
|
3417
|
+
}
|
|
3418
|
+
export interface IDeleteChannelParams {
|
|
3419
|
+
channelId: string;
|
|
3420
|
+
moveContentToChannelId?: string;
|
|
3421
|
+
}
|
|
3422
|
+
export interface IRenameChannelParams {
|
|
3423
|
+
channelId: string;
|
|
3424
|
+
name: string;
|
|
3425
|
+
}
|
|
3426
|
+
}
|
|
3427
|
+
declare module "libs/reach/util/common/src/reach-2/channels/useChannelsQuery" {
|
|
3428
|
+
import { IChannelResponse, IDeleteChannelParams, IRenameChannelParams } from "libs/reach/util/common/src/reach-2/channels/types";
|
|
3429
|
+
export const useChannelsQuery: () => {
|
|
3430
|
+
deleteChannel: (deleteChannelInput: IDeleteChannelParams) => Promise<IChannelResponse>;
|
|
3431
|
+
renameChannel: (channel: IRenameChannelParams) => Promise<IChannelResponse>;
|
|
3432
|
+
};
|
|
3433
|
+
}
|
|
3398
3434
|
declare module "libs/reach/util/common/src/reach-2/FocusStyles" {
|
|
3399
3435
|
export const FocusStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
3400
3436
|
}
|
|
@@ -3404,19 +3440,6 @@ declare module "libs/reach/util/common/src/reach-2/GlobalStyles" {
|
|
|
3404
3440
|
export const BorderStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
3405
3441
|
export const EditorScrollbarStyles: (hideWhenNotHovered?: boolean, showBackground?: boolean) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
3406
3442
|
}
|
|
3407
|
-
declare module "libs/reach/util/common/src/reach-2/ThemeContext" {
|
|
3408
|
-
import { FC, ReactNode } from 'react';
|
|
3409
|
-
import { Theme } from "libs/reach/util/common/src/user/Subscription";
|
|
3410
|
-
export const DefaultTheme: Theme;
|
|
3411
|
-
export const ThemeContext: import("react").Context<{
|
|
3412
|
-
setTheme: (theme: Theme) => unknown;
|
|
3413
|
-
theme: any;
|
|
3414
|
-
}>;
|
|
3415
|
-
export const ThemeContextProvider: FC<{
|
|
3416
|
-
children: ReactNode;
|
|
3417
|
-
}>;
|
|
3418
|
-
export function useReach2Theme(): any;
|
|
3419
|
-
}
|
|
3420
3443
|
declare module "libs/reach/util/common/src/reach-2/members/IMember" {
|
|
3421
3444
|
export enum Role {
|
|
3422
3445
|
Member = "MEMBER",
|
|
@@ -3443,7 +3466,7 @@ declare module "libs/reach/util/common/src/reach-2/members/IMember" {
|
|
|
3443
3466
|
skip?: number | null;
|
|
3444
3467
|
take?: number | null;
|
|
3445
3468
|
}
|
|
3446
|
-
export interface
|
|
3469
|
+
export interface IMembersQueryResponse {
|
|
3447
3470
|
items: IMember[];
|
|
3448
3471
|
pageInfo: {
|
|
3449
3472
|
hasNextPage: boolean;
|
|
@@ -3453,9 +3476,9 @@ declare module "libs/reach/util/common/src/reach-2/members/IMember" {
|
|
|
3453
3476
|
}
|
|
3454
3477
|
}
|
|
3455
3478
|
declare module "libs/reach/util/common/src/reach-2/members/useMembersQuery" {
|
|
3456
|
-
import {
|
|
3479
|
+
import { IMembersQueryParams, IMembersQueryResponse } from "libs/reach/util/common/src/reach-2/members/IMember";
|
|
3457
3480
|
export const useMembersQuery: () => {
|
|
3458
|
-
|
|
3481
|
+
getMembers: (params: IMembersQueryParams) => Promise<IMembersQueryResponse>;
|
|
3459
3482
|
};
|
|
3460
3483
|
}
|
|
3461
3484
|
declare module "libs/reach/util/common/src/user/features/WithFeatures" {
|
|
@@ -3868,7 +3891,7 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
|
|
|
3868
3891
|
userId: string;
|
|
3869
3892
|
}[];
|
|
3870
3893
|
}
|
|
3871
|
-
export interface
|
|
3894
|
+
export interface INestedGroupsQueryParams {
|
|
3872
3895
|
order?: [{
|
|
3873
3896
|
[key: string]: SortOrder;
|
|
3874
3897
|
}] | null;
|
|
@@ -3877,7 +3900,7 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
|
|
|
3877
3900
|
skip?: number | null;
|
|
3878
3901
|
take?: number | null;
|
|
3879
3902
|
}
|
|
3880
|
-
export interface
|
|
3903
|
+
export interface INestedGroupsQueryResponse {
|
|
3881
3904
|
items: INestedGroup[];
|
|
3882
3905
|
pageInfo: {
|
|
3883
3906
|
hasNextPage: boolean;
|
|
@@ -3887,13 +3910,13 @@ declare module "libs/reach/util/common/src/reach-2/nested-groups/types" {
|
|
|
3887
3910
|
}
|
|
3888
3911
|
}
|
|
3889
3912
|
declare module "libs/reach/util/common/src/reach-2/nested-groups/useNestedGroupsQuery" {
|
|
3890
|
-
import { ILinkNestedGroupParams, INestedGroup, INestedGroupInputParams,
|
|
3913
|
+
import { ILinkNestedGroupParams, INestedGroup, INestedGroupInputParams, INestedGroupsQueryParams, INestedGroupsQueryResponse } from "libs/reach/util/common/src/reach-2/nested-groups/types";
|
|
3891
3914
|
export const useNestedGroupsQuery: () => {
|
|
3892
3915
|
createNestedGroup: (inputGroup: INestedGroupInputParams) => Promise<INestedGroup>;
|
|
3893
3916
|
deleteNestedGroup: (groupId: string) => Promise<string>;
|
|
3894
|
-
|
|
3917
|
+
getChildGroups: (groupId: string) => Promise<INestedGroup[]>;
|
|
3918
|
+
getNestedGroups: (params: INestedGroupsQueryParams) => Promise<INestedGroupsQueryResponse>;
|
|
3895
3919
|
linkNestedGroup: (params: ILinkNestedGroupParams) => Promise<string>;
|
|
3896
|
-
loadAvailableChildGroups: (groupId: string) => Promise<INestedGroup[]>;
|
|
3897
3920
|
unlinkNestedGroup: (params: ILinkNestedGroupParams) => Promise<string>;
|
|
3898
3921
|
updateNestedGroup: (inputGroup: INestedGroupInputParams) => Promise<INestedGroup>;
|
|
3899
3922
|
};
|
|
@@ -3974,41 +3997,29 @@ declare module "libs/reach/util/common/src/reach-2/resources/ResourceContextProv
|
|
|
3974
3997
|
declare module "libs/reach/util/common/src/reach-2/resources/index" {
|
|
3975
3998
|
export * from "libs/reach/util/common/src/reach-2/resources/ResourceContextProvider";
|
|
3976
3999
|
}
|
|
3977
|
-
declare module "libs/reach/util/common/src/reach-2/
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
}
|
|
3990
|
-
export interface IRenameChannelParams {
|
|
3991
|
-
channelId: string;
|
|
3992
|
-
name: string;
|
|
3993
|
-
}
|
|
3994
|
-
}
|
|
3995
|
-
declare module "libs/reach/util/common/src/reach-2/channels/useChannelsQuery" {
|
|
3996
|
-
import { IChannelResponse, IDeleteChannelParams, IRenameChannelParams } from "libs/reach/util/common/src/reach-2/channels/types";
|
|
3997
|
-
export const useChannelsQuery: () => {
|
|
3998
|
-
deleteChannel: (deleteChannelInput: IDeleteChannelParams) => Promise<IChannelResponse>;
|
|
3999
|
-
renameChannel: (channel: IRenameChannelParams) => Promise<IChannelResponse>;
|
|
4000
|
-
};
|
|
4000
|
+
declare module "libs/reach/util/common/src/reach-2/ThemeContext" {
|
|
4001
|
+
import { FC, ReactNode } from 'react';
|
|
4002
|
+
import { Theme } from "libs/reach/util/common/src/user/Subscription";
|
|
4003
|
+
export const DefaultTheme: Theme;
|
|
4004
|
+
export const ThemeContext: import("react").Context<{
|
|
4005
|
+
setTheme: (theme: Theme) => unknown;
|
|
4006
|
+
theme: any;
|
|
4007
|
+
}>;
|
|
4008
|
+
export const ThemeContextProvider: FC<{
|
|
4009
|
+
children: ReactNode;
|
|
4010
|
+
}>;
|
|
4011
|
+
export function useReach2Theme(): any;
|
|
4001
4012
|
}
|
|
4002
4013
|
declare module "libs/reach/util/common/src/reach-2/index" {
|
|
4014
|
+
export * from "libs/reach/util/common/src/reach-2/channels/useChannelsQuery";
|
|
4003
4015
|
export * from "libs/reach/util/common/src/reach-2/FocusStyles";
|
|
4004
4016
|
export * from "libs/reach/util/common/src/reach-2/GlobalStyles";
|
|
4005
|
-
export * from "libs/reach/util/common/src/reach-2/
|
|
4017
|
+
export * from "libs/reach/util/common/src/reach-2/hooks/index";
|
|
4006
4018
|
export * from "libs/reach/util/common/src/reach-2/members/IMember";
|
|
4007
4019
|
export * from "libs/reach/util/common/src/reach-2/members/useMembersQuery";
|
|
4008
4020
|
export * from "libs/reach/util/common/src/reach-2/nested-groups/index";
|
|
4009
4021
|
export * from "libs/reach/util/common/src/reach-2/resources/index";
|
|
4010
|
-
export * from "libs/reach/util/common/src/reach-2/
|
|
4011
|
-
export * from "libs/reach/util/common/src/reach-2/channels/useChannelsQuery";
|
|
4022
|
+
export * from "libs/reach/util/common/src/reach-2/ThemeContext";
|
|
4012
4023
|
}
|
|
4013
4024
|
declare module "libs/reach/util/common/src/reachClassNames" {
|
|
4014
4025
|
export const reachClassNames: string;
|