mgwdev-m365-components 0.0.3 → 0.0.5

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 (78) hide show
  1. package/{lib → dist}/App.d.ts +3 -3
  2. package/{lib → dist}/components/Test.d.ts +4 -4
  3. package/dist/components/common/ConditionalRenderComponent.d.ts +7 -0
  4. package/dist/components/common/GraphGroupMembershipTrimmedComponent.d.ts +10 -0
  5. package/{lib → dist}/components/common/GraphPersona.d.ts +12 -10
  6. package/dist/components/common/SPPermissionTrimmedComponent.d.ts +11 -0
  7. package/{lib → dist}/components/common/graphEntityPicker/AbstractGraphEntityPicker.d.ts +16 -16
  8. package/{lib → dist}/components/common/graphEntityPicker/ChannelPicker.d.ts +11 -11
  9. package/{lib → dist}/components/common/graphEntityPicker/DrivePicker.d.ts +11 -11
  10. package/{lib → dist}/components/common/graphEntityPicker/ListPicker.d.ts +11 -11
  11. package/{lib → dist}/components/common/graphEntityPicker/PeoplePicker.d.ts +8 -8
  12. package/{lib → dist}/components/common/graphEntityPicker/SitePicker.d.ts +8 -8
  13. package/{lib → dist}/components/common/graphEntityPicker/TeamPicker.d.ts +8 -8
  14. package/{lib → dist}/components/common/graphEntityPicker/index.d.ts +6 -6
  15. package/dist/components/common/index.d.ts +4 -0
  16. package/{lib → dist}/components/index.d.ts +2 -2
  17. package/{lib → dist}/components/search/DefaultDocumentCard.d.ts +7 -7
  18. package/{lib → dist}/components/search/M365Search.d.ts +18 -18
  19. package/{lib → dist}/components/search/SearchDefaults.d.ts +1 -1
  20. package/{lib → dist}/components/search/index.d.ts +2 -2
  21. package/{lib → dist}/context/AuthenticationContext.d.ts +11 -11
  22. package/{lib → dist}/context/DataverseContext.d.ts +13 -13
  23. package/{lib → dist}/context/GraphContext.d.ts +11 -11
  24. package/{lib → dist}/context/SPContext.d.ts +13 -13
  25. package/{lib → dist}/context/index.d.ts +4 -4
  26. package/{lib → dist}/index.d.ts +2 -2
  27. package/{lib → dist}/main.d.ts +1 -1
  28. package/{lib → dist}/model/IEntityWithIdAndDisplayName.d.ts +4 -4
  29. package/{lib → dist}/model/ISearchResult.d.ts +19 -19
  30. package/{lib → dist}/model/index.d.ts +1 -1
  31. package/{lib → dist}/model/infra/ICacheEntry.d.ts +4 -4
  32. package/dist/mwdev-m365-components.es.js +15417 -0
  33. package/dist/mwdev-m365-components.umd.js +145 -0
  34. package/{lib → dist}/services/PersonaService.d.ts +12 -12
  35. package/{lib → dist}/utils/FileUtils.d.ts +29 -29
  36. package/{lib → dist}/utils/StringUtils.d.ts +1 -1
  37. package/{lib → dist}/utils/ThumbnailUtils.d.ts +7 -7
  38. package/{lib → dist}/utils/index.d.ts +3 -3
  39. package/dist/vite.svg +1 -0
  40. package/package.json +70 -67
  41. package/lib/App.js +0 -212
  42. package/lib/components/Test.js +0 -37
  43. package/lib/components/common/GraphPersona.js +0 -125
  44. package/lib/components/common/graphEntityPicker/AbstractGraphEntityPicker.js +0 -117
  45. package/lib/components/common/graphEntityPicker/ChannelPicker.js +0 -83
  46. package/lib/components/common/graphEntityPicker/DrivePicker.js +0 -77
  47. package/lib/components/common/graphEntityPicker/ListPicker.js +0 -77
  48. package/lib/components/common/graphEntityPicker/PeoplePicker.js +0 -76
  49. package/lib/components/common/graphEntityPicker/SitePicker.js +0 -73
  50. package/lib/components/common/graphEntityPicker/TeamPicker.js +0 -77
  51. package/lib/components/common/graphEntityPicker/index.js +0 -6
  52. package/lib/components/common/index.d.ts +0 -2
  53. package/lib/components/common/index.js +0 -2
  54. package/lib/components/index.js +0 -2
  55. package/lib/components/provisioning/GetSiteTemplate.d.ts +0 -6
  56. package/lib/components/provisioning/GetSiteTemplate.js +0 -41
  57. package/lib/components/search/DefaultDocumentCard.js +0 -59
  58. package/lib/components/search/M365Search.js +0 -69
  59. package/lib/components/search/SearchDefaults.js +0 -17
  60. package/lib/components/search/index.js +0 -2
  61. package/lib/context/AuthenticationContext.js +0 -50
  62. package/lib/context/DataverseContext.js +0 -29
  63. package/lib/context/GraphContext.js +0 -26
  64. package/lib/context/SPContext.js +0 -30
  65. package/lib/context/index.js +0 -4
  66. package/lib/index.js +0 -2
  67. package/lib/main.js +0 -6
  68. package/lib/model/IEntityWithIdAndDisplayName.js +0 -1
  69. package/lib/model/ISearchResult.js +0 -1
  70. package/lib/model/index.js +0 -1
  71. package/lib/model/infra/ICacheEntry.js +0 -1
  72. package/lib/service-worker/sw.d.ts +0 -3
  73. package/lib/service-worker/sw.js +0 -20
  74. package/lib/services/PersonaService.js +0 -134
  75. package/lib/utils/FileUtils.js +0 -200
  76. package/lib/utils/StringUtils.js +0 -10
  77. package/lib/utils/ThumbnailUtils.js +0 -92
  78. package/lib/utils/index.js +0 -3
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
- declare function App(): React.JSX.Element;
3
- export default App;
1
+ import * as React from 'react';
2
+ declare function App(): React.JSX.Element;
3
+ export default App;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
2
- export interface ITestProps {
3
- }
4
- export declare function Test(props: ITestProps): React.JSX.Element;
1
+ import * as React from "react";
2
+ export interface ITestProps {
3
+ }
4
+ export declare function Test(props: ITestProps): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ export interface IConditionalRenderComponentProps extends React.PropsWithChildren {
3
+ permissionCheck: () => Promise<boolean>;
4
+ initialRender?: boolean;
5
+ placeholder?: JSX.Element | string;
6
+ }
7
+ export declare function ConditionalRenderComponent(props: IConditionalRenderComponentProps): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { IHttpClient } from "mgwdev-m365-helpers";
2
+ import * as React from "react";
3
+ export interface IGraphGroupMembershipTrimmedComponentProps extends React.PropsWithChildren {
4
+ groupId: string;
5
+ placeholder?: JSX.Element | string;
6
+ }
7
+ export declare function GraphGroupMembershipTrimmedComponentStandalone(props: IGraphGroupMembershipTrimmedComponentProps & {
8
+ graphClient: IHttpClient;
9
+ }): React.JSX.Element;
10
+ export declare function GraphGroupMembershipTrimmedComponent(props: IGraphGroupMembershipTrimmedComponentProps): React.JSX.Element;
@@ -1,10 +1,12 @@
1
- import { IHttpClient, IUser } from "mgwdev-m365-helpers";
2
- import * as React from "react";
3
- import { PersonaProps } from "@fluentui/react-components";
4
- export interface IGraphPersonaProps extends PersonaProps {
5
- id?: string;
6
- user?: IUser;
7
- showPresence?: boolean;
8
- graphClient?: IHttpClient;
9
- }
10
- export declare function GraphPersona(props: IGraphPersonaProps): React.JSX.Element;
1
+ import { IHttpClient, IUser } from "mgwdev-m365-helpers";
2
+ import * as React from "react";
3
+ import { PersonaProps } from "@fluentui/react-components";
4
+ export interface IGraphPersonaProps extends PersonaProps {
5
+ id?: string;
6
+ user?: IUser;
7
+ showPresence?: boolean;
8
+ }
9
+ export declare function GraphPersonaStandalone(props: IGraphPersonaProps & {
10
+ graphClient: IHttpClient;
11
+ }): React.JSX.Element;
12
+ export declare function GraphPersona(props: IGraphPersonaProps): React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import { IHttpClient } from "mgwdev-m365-helpers";
3
+ export interface ISPPermissionTrimmedComponentProps extends React.PropsWithChildren {
4
+ role: string;
5
+ placeholder?: JSX.Element | string;
6
+ }
7
+ export declare function SPPermissionTrimmedComponent(props: ISPPermissionTrimmedComponentProps): React.JSX.Element;
8
+ export declare function SPPermissionTrimmedComponentStandalone(props: ISPPermissionTrimmedComponentProps & {
9
+ spClient: IHttpClient;
10
+ siteUrl: string;
11
+ }): React.JSX.Element;
@@ -1,16 +1,16 @@
1
- import * as React from "react";
2
- import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
3
- export interface IAbstractGraphEntityPickerProps<T> {
4
- onDataRequested: (searchText: string) => Promise<T[]>;
5
- value?: T[];
6
- label?: string;
7
- description?: string;
8
- multiSelect?: boolean;
9
- disabled?: boolean;
10
- additionalKey?: string;
11
- onEntitySelected?: (entities: T[]) => void;
12
- size?: "small" | "medium" | "large";
13
- onSuggestionRendering?: (entity: T) => React.ReactNode;
14
- renderOverride?: (entities: T[], isLoading: boolean, loadData: (query?: string) => Promise<void>) => JSX.Element;
15
- }
16
- export declare function AbstractGraphEntityPicker<T extends IEntityWithIdAndDisplayName>(props: IAbstractGraphEntityPickerProps<T>): React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
3
+ export interface IAbstractGraphEntityPickerProps<T> {
4
+ onDataRequested: (searchText: string) => Promise<T[]>;
5
+ value?: T[];
6
+ label?: string;
7
+ description?: string;
8
+ multiSelect?: boolean;
9
+ disabled?: boolean;
10
+ additionalKey?: string;
11
+ onEntitySelected?: (entities: T[]) => void;
12
+ size?: "small" | "medium" | "large";
13
+ onSuggestionRendering?: (entity: T) => React.ReactNode;
14
+ renderOverride?: (entities: T[], isLoading: boolean, loadData: (query?: string) => Promise<void>) => React.ReactNode;
15
+ }
16
+ export declare function AbstractGraphEntityPicker<T extends IEntityWithIdAndDisplayName>(props: IAbstractGraphEntityPickerProps<T>): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element;
@@ -1,11 +1,11 @@
1
- import * as React from "react";
2
- import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
3
- import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
4
- import { IHttpClient } from "mgwdev-m365-helpers";
5
- export interface IChannelPickerProps extends Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> {
6
- teamId: string;
7
- }
8
- export declare function ChannelPicker(props: IChannelPickerProps): React.JSX.Element;
9
- export declare function ChannelPickerStandalone(props: IChannelPickerProps & {
10
- graphClient: IHttpClient;
11
- }): React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
3
+ import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
4
+ import { IHttpClient } from "mgwdev-m365-helpers";
5
+ export interface IChannelPickerProps extends Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> {
6
+ teamId: string;
7
+ }
8
+ export declare function ChannelPicker(props: IChannelPickerProps): React.JSX.Element;
9
+ export declare function ChannelPickerStandalone(props: IChannelPickerProps & {
10
+ graphClient: IHttpClient;
11
+ }): React.JSX.Element;
@@ -1,11 +1,11 @@
1
- import * as React from "react";
2
- import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
3
- import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
4
- import { IHttpClient } from "mgwdev-m365-helpers";
5
- export declare function DrivePicker(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
6
- siteId?: string;
7
- }): React.JSX.Element;
8
- export declare function DrivePickerStandalone(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
9
- graphClient: IHttpClient;
10
- siteId?: string;
11
- }): React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
3
+ import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
4
+ import { IHttpClient } from "mgwdev-m365-helpers";
5
+ export declare function DrivePicker(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
6
+ siteId?: string;
7
+ }): React.JSX.Element;
8
+ export declare function DrivePickerStandalone(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
9
+ graphClient: IHttpClient;
10
+ siteId?: string;
11
+ }): React.JSX.Element;
@@ -1,11 +1,11 @@
1
- import * as React from "react";
2
- import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
3
- import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
4
- import { IHttpClient } from "mgwdev-m365-helpers";
5
- export declare function ListPickerPicker(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
6
- siteId: string;
7
- }): React.JSX.Element;
8
- export declare function ListPickerStandalone(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
9
- graphClient: IHttpClient;
10
- siteId: string;
11
- }): React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
3
+ import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
4
+ import { IHttpClient } from "mgwdev-m365-helpers";
5
+ export declare function ListPickerPicker(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
6
+ siteId: string;
7
+ }): React.JSX.Element;
8
+ export declare function ListPickerStandalone(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
9
+ graphClient: IHttpClient;
10
+ siteId: string;
11
+ }): React.JSX.Element;
@@ -1,8 +1,8 @@
1
- import * as React from "react";
2
- import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
3
- import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
4
- import { IHttpClient } from "mgwdev-m365-helpers";
5
- export declare function PeoplePicker(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>>): React.JSX.Element;
6
- export declare function PeoplePickerStandalone(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
7
- graphClient: IHttpClient;
8
- }): React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
3
+ import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
4
+ import { IHttpClient } from "mgwdev-m365-helpers";
5
+ export declare function PeoplePicker(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>>): React.JSX.Element;
6
+ export declare function PeoplePickerStandalone(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
7
+ graphClient: IHttpClient;
8
+ }): React.JSX.Element;
@@ -1,8 +1,8 @@
1
- import * as React from "react";
2
- import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
3
- import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
4
- import { IHttpClient } from "mgwdev-m365-helpers";
5
- export declare function SitePicker(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>>): React.JSX.Element;
6
- export declare function SitePickerStandalone(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
7
- graphClient: IHttpClient;
8
- }): React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
3
+ import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
4
+ import { IHttpClient } from "mgwdev-m365-helpers";
5
+ export declare function SitePicker(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>>): React.JSX.Element;
6
+ export declare function SitePickerStandalone(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
7
+ graphClient: IHttpClient;
8
+ }): React.JSX.Element;
@@ -1,8 +1,8 @@
1
- import * as React from "react";
2
- import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
3
- import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
4
- import { IHttpClient } from "mgwdev-m365-helpers";
5
- export declare function TeamPicker(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>>): React.JSX.Element;
6
- export declare function TeamPickerStandalone(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
7
- graphClient: IHttpClient;
8
- }): React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IAbstractGraphEntityPickerProps } from "./AbstractGraphEntityPicker";
3
+ import { IEntityWithIdAndDisplayName } from "../../../model/IEntityWithIdAndDisplayName";
4
+ import { IHttpClient } from "mgwdev-m365-helpers";
5
+ export declare function TeamPicker(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>>): React.JSX.Element;
6
+ export declare function TeamPickerStandalone(props: Partial<IAbstractGraphEntityPickerProps<IEntityWithIdAndDisplayName>> & {
7
+ graphClient: IHttpClient;
8
+ }): React.JSX.Element;
@@ -1,6 +1,6 @@
1
- export * from "./AbstractGraphEntityPicker";
2
- export * from "./ChannelPicker";
3
- export * from "./DrivePicker";
4
- export * from "./TeamPicker";
5
- export * from "./PeoplePicker";
6
- export * from "./SitePicker";
1
+ export * from "./AbstractGraphEntityPicker";
2
+ export * from "./ChannelPicker";
3
+ export * from "./DrivePicker";
4
+ export * from "./TeamPicker";
5
+ export * from "./PeoplePicker";
6
+ export * from "./SitePicker";
@@ -0,0 +1,4 @@
1
+ export * from "./GraphPersona";
2
+ export * from "./graphEntityPicker";
3
+ export * from "./SPPermissionTrimmedComponent";
4
+ export * from "./GraphGroupMembershipTrimmedComponent";
@@ -1,2 +1,2 @@
1
- export * from "./search";
2
- export * from "./common";
1
+ export * from "./search";
2
+ export * from "./common";
@@ -1,7 +1,7 @@
1
- import * as React from "react";
2
- import { IDocumentSearchResult, IGraphSearchResult } from "../../model";
3
- export interface IDefaultDocumentCardProps {
4
- document: IGraphSearchResult<IDocumentSearchResult>;
5
- onClick?: (document: IGraphSearchResult<IDocumentSearchResult>) => void;
6
- }
7
- export declare const DefaultDocumentCard: (props: IDefaultDocumentCardProps) => React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IDocumentSearchResult, IGraphSearchResult } from "../../model";
3
+ export interface IDefaultDocumentCardProps {
4
+ document: IGraphSearchResult<IDocumentSearchResult>;
5
+ onClick?: (document: IGraphSearchResult<IDocumentSearchResult>) => void;
6
+ }
7
+ export declare const DefaultDocumentCard: (props: IDefaultDocumentCardProps) => React.JSX.Element;
@@ -1,18 +1,18 @@
1
- import * as React from "react";
2
- import { IAggregationRequest } from "mgwdev-m365-helpers";
3
- import { IGraphSearchResult } from "../../model";
4
- export interface IM365SearchProps<T> {
5
- onResultRendering?: (result: IGraphSearchResult<T>) => any;
6
- dataProviderProps?: {
7
- pageSize?: number;
8
- initialQuery?: string;
9
- entityType?: "message" | "event" | "driveItem" | "listItem" | "person" | "chatMessage" | "externalItem";
10
- queryTemplate?: string;
11
- selectFields?: string[];
12
- aggregations?: IAggregationRequest[];
13
- };
14
- searchInputComponent?: (props: {
15
- onSearch: (query: string) => void;
16
- }) => JSX.Element;
17
- }
18
- export declare const M365Search: <T>(props: IM365SearchProps<T>) => React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IAggregationRequest } from "mgwdev-m365-helpers";
3
+ import { IGraphSearchResult } from "../../model";
4
+ export interface IM365SearchProps<T> {
5
+ onResultRendering?: (result: IGraphSearchResult<T>) => any;
6
+ dataProviderProps?: {
7
+ pageSize?: number;
8
+ initialQuery?: string;
9
+ entityType?: "message" | "event" | "driveItem" | "listItem" | "person" | "chatMessage" | "externalItem";
10
+ queryTemplate?: string;
11
+ selectFields?: string[];
12
+ aggregations?: IAggregationRequest[];
13
+ };
14
+ searchInputComponent?: (props: {
15
+ onSearch: (query: string) => void;
16
+ }) => JSX.Element;
17
+ }
18
+ export declare const M365Search: <T>(props: IM365SearchProps<T>) => React.JSX.Element;
@@ -1 +1 @@
1
- export declare const defaultSelectFields: string[];
1
+ export declare const defaultSelectFields: string[];
@@ -1,2 +1,2 @@
1
- export * from "./M365Search";
2
- export * from "./SearchDefaults";
1
+ export * from "./M365Search";
2
+ export * from "./SearchDefaults";
@@ -1,11 +1,11 @@
1
- import { IAuthenticationService } from "mgwdev-m365-helpers";
2
- import * as React from "react";
3
- export interface IAuthenticationContextProps {
4
- authProvider: IAuthenticationService;
5
- }
6
- export interface IAuthenticationContextProviderProps extends React.PropsWithChildren<{}> {
7
- authProvider?: IAuthenticationService;
8
- }
9
- export declare const AuthenticationContext: React.Context<IAuthenticationContextProps>;
10
- export declare const useAuthentication: () => IAuthenticationContextProps;
11
- export declare const AuthenticationContextProvider: (props: IAuthenticationContextProviderProps) => React.JSX.Element;
1
+ import { IAuthenticationService } from "mgwdev-m365-helpers";
2
+ import * as React from "react";
3
+ export interface IAuthenticationContextProps {
4
+ authProvider: IAuthenticationService;
5
+ }
6
+ export interface IAuthenticationContextProviderProps extends React.PropsWithChildren<{}> {
7
+ authProvider?: IAuthenticationService;
8
+ }
9
+ export declare const AuthenticationContext: React.Context<IAuthenticationContextProps>;
10
+ export declare const useAuthentication: () => IAuthenticationContextProps;
11
+ export declare const AuthenticationContextProvider: (props: IAuthenticationContextProviderProps) => React.JSX.Element;
@@ -1,13 +1,13 @@
1
- import * as React from "react";
2
- import { IHttpClient } from "mgwdev-m365-helpers";
3
- export interface IDataverseContextProps {
4
- dataverseClient: IHttpClient;
5
- dataverseResource?: string;
6
- }
7
- export interface IDataverseContextProviderProps extends React.PropsWithChildren<{}> {
8
- dataverseResource: string;
9
- dataverseClient?: IHttpClient;
10
- }
11
- export declare const DataverseContext: React.Context<IDataverseContextProps>;
12
- export declare const useDataverse: () => IDataverseContextProps;
13
- export declare const DataverseContextProvider: (props: IDataverseContextProviderProps) => React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IHttpClient } from "mgwdev-m365-helpers";
3
+ export interface IDataverseContextProps {
4
+ dataverseClient: IHttpClient;
5
+ dataverseResource?: string;
6
+ }
7
+ export interface IDataverseContextProviderProps extends React.PropsWithChildren<{}> {
8
+ dataverseResource: string;
9
+ dataverseClient?: IHttpClient;
10
+ }
11
+ export declare const DataverseContext: React.Context<IDataverseContextProps>;
12
+ export declare const useDataverse: () => IDataverseContextProps;
13
+ export declare const DataverseContextProvider: (props: IDataverseContextProviderProps) => React.JSX.Element;
@@ -1,11 +1,11 @@
1
- import * as React from "react";
2
- import { IHttpClient } from "mgwdev-m365-helpers";
3
- export interface IGraphContextProps {
4
- graphClient: IHttpClient;
5
- }
6
- export interface IGraphContextProviderProps extends React.PropsWithChildren<{}> {
7
- graphClient?: IHttpClient;
8
- }
9
- export declare const GraphContext: React.Context<IGraphContextProps>;
10
- export declare const useGraph: () => IGraphContextProps;
11
- export declare const GraphContextProvider: (props: IGraphContextProviderProps) => React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IHttpClient } from "mgwdev-m365-helpers";
3
+ export interface IGraphContextProps {
4
+ graphClient: IHttpClient;
5
+ }
6
+ export interface IGraphContextProviderProps extends React.PropsWithChildren<{}> {
7
+ graphClient?: IHttpClient;
8
+ }
9
+ export declare const GraphContext: React.Context<IGraphContextProps>;
10
+ export declare const useGraph: () => IGraphContextProps;
11
+ export declare const GraphContextProvider: (props: IGraphContextProviderProps) => React.JSX.Element;
@@ -1,13 +1,13 @@
1
- import * as React from "react";
2
- import { IHttpClient } from "mgwdev-m365-helpers";
3
- export interface ISPContextProps {
4
- spClient: IHttpClient;
5
- siteUrl: string;
6
- }
7
- export interface ISPContextProviderProps extends React.PropsWithChildren<{}> {
8
- spClient?: IHttpClient;
9
- siteUrl: string;
10
- }
11
- export declare const SPContext: React.Context<ISPContextProps>;
12
- export declare const useSP: () => ISPContextProps;
13
- export declare const SPContextProvider: (props: ISPContextProviderProps) => React.JSX.Element;
1
+ import * as React from "react";
2
+ import { IHttpClient } from "mgwdev-m365-helpers";
3
+ export interface ISPContextProps {
4
+ spClient: IHttpClient;
5
+ siteUrl: string;
6
+ }
7
+ export interface ISPContextProviderProps extends React.PropsWithChildren<{}> {
8
+ spClient?: IHttpClient;
9
+ siteUrl: string;
10
+ }
11
+ export declare const SPContext: React.Context<ISPContextProps>;
12
+ export declare const useSP: () => ISPContextProps;
13
+ export declare const SPContextProvider: (props: ISPContextProviderProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- export * from "./AuthenticationContext";
2
- export * from "./GraphContext";
3
- export * from "./SPContext";
4
- export * from "./DataverseContext";
1
+ export * from "./AuthenticationContext";
2
+ export * from "./GraphContext";
3
+ export * from "./SPContext";
4
+ export * from "./DataverseContext";
@@ -1,2 +1,2 @@
1
- export * from "./context";
2
- export * from "./components";
1
+ export * from "./context";
2
+ export * from "./components";
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,4 +1,4 @@
1
- export interface IEntityWithIdAndDisplayName {
2
- id: string;
3
- displayName: string;
4
- }
1
+ export interface IEntityWithIdAndDisplayName {
2
+ id: string;
3
+ displayName: string;
4
+ }
@@ -1,19 +1,19 @@
1
- export interface IGraphSearchResult<T> {
2
- fields: T;
3
- }
4
- export interface IDocumentSearchResult {
5
- title: string;
6
- path: string;
7
- author: string;
8
- description: string;
9
- listItemId: string;
10
- identityListItemId: string;
11
- identityListId: string;
12
- identitySiteCollectionId: string;
13
- identityWebId: string;
14
- lastModifiedTime: string;
15
- viewsLifeTime: string;
16
- viewsRecent: string;
17
- owstaxidmetadataalltagsinfo: string;
18
- driveId: string;
19
- }
1
+ export interface IGraphSearchResult<T> {
2
+ fields: T;
3
+ }
4
+ export interface IDocumentSearchResult {
5
+ title: string;
6
+ path: string;
7
+ author: string;
8
+ description: string;
9
+ listItemId: string;
10
+ identityListItemId: string;
11
+ identityListId: string;
12
+ identitySiteCollectionId: string;
13
+ identityWebId: string;
14
+ lastModifiedTime: string;
15
+ viewsLifeTime: string;
16
+ viewsRecent: string;
17
+ owstaxidmetadataalltagsinfo: string;
18
+ driveId: string;
19
+ }
@@ -1 +1 @@
1
- export * from "./ISearchResult";
1
+ export * from "./ISearchResult";
@@ -1,4 +1,4 @@
1
- export interface ICacheEntry<T> {
2
- data: T;
3
- expiration: number;
4
- }
1
+ export interface ICacheEntry<T> {
2
+ data: T;
3
+ expiration: number;
4
+ }