mgwdev-m365-components 0.0.4 → 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 (99) hide show
  1. package/dist/components/common/ConditionalRenderComponent.d.ts +7 -0
  2. package/dist/components/common/GraphGroupMembershipTrimmedComponent.d.ts +10 -0
  3. package/{lib → dist}/components/common/GraphPersona.d.ts +12 -10
  4. package/dist/components/common/SPPermissionTrimmedComponent.d.ts +11 -0
  5. package/{lib → dist}/components/common/graphEntityPicker/AbstractGraphEntityPicker.d.ts +16 -16
  6. package/{lib → dist}/components/common/graphEntityPicker/ChannelPicker.d.ts +11 -11
  7. package/{lib → dist}/components/common/graphEntityPicker/DrivePicker.d.ts +11 -11
  8. package/{lib → dist}/components/common/graphEntityPicker/ListPicker.d.ts +11 -11
  9. package/{lib → dist}/components/common/graphEntityPicker/PeoplePicker.d.ts +8 -8
  10. package/{lib → dist}/components/common/graphEntityPicker/SitePicker.d.ts +8 -8
  11. package/{lib → dist}/components/common/graphEntityPicker/TeamPicker.d.ts +8 -8
  12. package/{lib → dist}/components/common/graphEntityPicker/index.d.ts +6 -6
  13. package/dist/components/common/index.d.ts +4 -0
  14. package/dist/components/index.d.ts +2 -0
  15. package/{lib → dist}/components/search/DefaultDocumentCard.d.ts +7 -7
  16. package/{lib → dist}/components/search/M365Search.d.ts +18 -18
  17. package/{lib → dist}/components/search/SearchDefaults.d.ts +1 -1
  18. package/{lib → dist}/components/search/index.d.ts +2 -2
  19. package/dist/context/AuthenticationContext.d.ts +1 -3
  20. package/{lib → dist}/context/DataverseContext.d.ts +13 -13
  21. package/dist/context/SPContext.d.ts +2 -2
  22. package/dist/context/index.d.ts +1 -0
  23. package/dist/index.d.ts +1 -0
  24. package/{lib → dist}/model/IEntityWithIdAndDisplayName.d.ts +4 -4
  25. package/{lib → dist}/model/ISearchResult.d.ts +19 -19
  26. package/{lib → dist}/model/index.d.ts +1 -1
  27. package/{lib → dist}/model/infra/ICacheEntry.d.ts +4 -4
  28. package/dist/mwdev-m365-components.es.js +14549 -9702
  29. package/dist/mwdev-m365-components.umd.js +127 -39
  30. package/{lib → dist}/services/PersonaService.d.ts +12 -12
  31. package/{lib → dist}/utils/FileUtils.d.ts +29 -29
  32. package/{lib → dist}/utils/StringUtils.d.ts +1 -1
  33. package/{lib → dist}/utils/ThumbnailUtils.d.ts +7 -7
  34. package/{lib → dist}/utils/index.d.ts +3 -3
  35. package/package.json +70 -55
  36. package/.env +0 -2
  37. package/.env.development +0 -2
  38. package/.eslintrc.cjs +0 -18
  39. package/build/assets/index-SHI6Sf4K.js +0 -123
  40. package/build/index.html +0 -13
  41. package/build/manifest.webmanifest +0 -1
  42. package/build/registerSW.js +0 -1
  43. package/build/sw.js +0 -1
  44. package/build/vite.svg +0 -1
  45. package/build/workbox-7cfec069.js +0 -1
  46. package/gulpfile.js +0 -4
  47. package/index.html +0 -13
  48. package/lib/App.d.ts +0 -3
  49. package/lib/App.js +0 -212
  50. package/lib/components/Test.d.ts +0 -4
  51. package/lib/components/Test.js +0 -37
  52. package/lib/components/common/GraphPersona.js +0 -125
  53. package/lib/components/common/graphEntityPicker/AbstractGraphEntityPicker.js +0 -117
  54. package/lib/components/common/graphEntityPicker/ChannelPicker.js +0 -83
  55. package/lib/components/common/graphEntityPicker/DrivePicker.js +0 -77
  56. package/lib/components/common/graphEntityPicker/ListPicker.js +0 -77
  57. package/lib/components/common/graphEntityPicker/PeoplePicker.js +0 -76
  58. package/lib/components/common/graphEntityPicker/SitePicker.js +0 -73
  59. package/lib/components/common/graphEntityPicker/TeamPicker.js +0 -77
  60. package/lib/components/common/graphEntityPicker/index.js +0 -6
  61. package/lib/components/common/index.d.ts +0 -2
  62. package/lib/components/common/index.js +0 -2
  63. package/lib/components/index.d.ts +0 -2
  64. package/lib/components/index.js +0 -2
  65. package/lib/components/provisioning/GetSiteTemplate.d.ts +0 -6
  66. package/lib/components/provisioning/GetSiteTemplate.js +0 -41
  67. package/lib/components/search/DefaultDocumentCard.js +0 -59
  68. package/lib/components/search/M365Search.js +0 -69
  69. package/lib/components/search/SearchDefaults.js +0 -17
  70. package/lib/components/search/index.js +0 -2
  71. package/lib/context/AuthenticationContext.d.ts +0 -11
  72. package/lib/context/AuthenticationContext.js +0 -50
  73. package/lib/context/DataverseContext.js +0 -29
  74. package/lib/context/GraphContext.d.ts +0 -11
  75. package/lib/context/GraphContext.js +0 -26
  76. package/lib/context/SPContext.d.ts +0 -13
  77. package/lib/context/SPContext.js +0 -30
  78. package/lib/context/index.d.ts +0 -4
  79. package/lib/context/index.js +0 -4
  80. package/lib/index.d.ts +0 -2
  81. package/lib/index.js +0 -2
  82. package/lib/main.d.ts +0 -1
  83. package/lib/main.js +0 -6
  84. package/lib/model/IEntityWithIdAndDisplayName.js +0 -1
  85. package/lib/model/ISearchResult.js +0 -1
  86. package/lib/model/index.js +0 -1
  87. package/lib/model/infra/ICacheEntry.js +0 -1
  88. package/lib/service-worker/sw.d.ts +0 -3
  89. package/lib/service-worker/sw.js +0 -20
  90. package/lib/services/PersonaService.js +0 -134
  91. package/lib/utils/FileUtils.js +0 -200
  92. package/lib/utils/StringUtils.js +0 -10
  93. package/lib/utils/ThumbnailUtils.js +0 -92
  94. package/lib/utils/index.js +0 -3
  95. package/public/vite.svg +0 -1
  96. package/tsconfig.json +0 -35
  97. package/tsconfig.node.json +0 -10
  98. package/vite.config.ts +0 -33
  99. package/vitest.config.ts +0 -11
@@ -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";
@@ -0,0 +1,2 @@
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,12 +1,10 @@
1
- import { IAuthenticationService, IMsalAuthenticationConfig } from "mgwdev-m365-helpers";
1
+ import { IAuthenticationService } from "mgwdev-m365-helpers";
2
2
  import * as React from "react";
3
3
  export interface IAuthenticationContextProps {
4
4
  authProvider: IAuthenticationService;
5
5
  }
6
6
  export interface IAuthenticationContextProviderProps extends React.PropsWithChildren<{}> {
7
7
  authProvider?: IAuthenticationService;
8
- authProviderFactory?: () => Promise<IAuthenticationService>;
9
- msalAuthConfig?: IMsalAuthenticationConfig;
10
8
  }
11
9
  export declare const AuthenticationContext: React.Context<IAuthenticationContextProps>;
12
10
  export declare const useAuthentication: () => IAuthenticationContextProps;
@@ -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,12 +1,12 @@
1
1
  import * as React from "react";
2
2
  import { IHttpClient } from "mgwdev-m365-helpers";
3
3
  export interface ISPContextProps {
4
- siteUrl: string;
5
4
  spClient: IHttpClient;
5
+ siteUrl: string;
6
6
  }
7
7
  export interface ISPContextProviderProps extends React.PropsWithChildren<{}> {
8
- siteUrl: string;
9
8
  spClient?: IHttpClient;
9
+ siteUrl: string;
10
10
  }
11
11
  export declare const SPContext: React.Context<ISPContextProps>;
12
12
  export declare const useSP: () => ISPContextProps;
@@ -1,3 +1,4 @@
1
1
  export * from "./AuthenticationContext";
2
2
  export * from "./GraphContext";
3
3
  export * from "./SPContext";
4
+ export * from "./DataverseContext";
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./context";
2
+ export * from "./components";
@@ -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
+ }