@itwin/reports-config-widget-react 0.6.0 → 0.7.0
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/CHANGELOG.json +30 -1
- package/CHANGELOG.md +15 -2
- package/api/reports-config-widget-react.api.md +11 -15
- package/api/reports-config-widget-react.exports.csv +1 -1
- package/api/temp/reports-config-widget-react.api.md +11 -15
- package/coverage/clover.xml +133 -134
- package/coverage/coverage-final.json +9 -9
- package/coverage/lcov-report/index.html +14 -14
- package/coverage/lcov-report/src/ReportsConfigWidget.ts.html +2 -2
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/test/index.html +1 -1
- package/coverage/lcov-report/src/test/test-utils.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/ReportsConfigUiProvider.tsx.html +11 -26
- package/coverage/lcov-report/src/widget/components/ActionPanel.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/AddMappingsModal.tsx.html +3 -3
- package/coverage/lcov-report/src/widget/components/BulkExtractor.ts.html +7 -10
- package/coverage/lcov-report/src/widget/components/Constants.ts.html +1 -1
- package/coverage/lcov-report/src/widget/components/DeleteModal.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/FailedExtractionState.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/QueuedExtractionState.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/RunningExtractionState.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/StartingExtractionState.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/SucceededExtractionState.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStates/index.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionStatus.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ExtractionToast.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/HorizontalTile.tsx.html +3 -3
- package/coverage/lcov-report/src/widget/components/LocalizedTablePaginator.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportAction.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportHorizontalTile.tsx.html +15 -15
- package/coverage/lcov-report/src/widget/components/ReportMappingHorizontalTile.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportMappings.tsx.html +4 -4
- package/coverage/lcov-report/src/widget/components/Reports.tsx.html +6 -6
- package/coverage/lcov-report/src/widget/components/ReportsConfigContext.tsx.html +112 -13
- package/coverage/lcov-report/src/widget/components/ReportsContainer.tsx.html +8 -17
- package/coverage/lcov-report/src/widget/components/ReportsHeader.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/ReportsRouter.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/SearchBar.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/SelectIModel.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/components/index.html +1 -1
- package/coverage/lcov-report/src/widget/components/utils.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/context/BulkExtractorContext.tsx.html +1 -1
- package/coverage/lcov-report/src/widget/context/ReportsConfigApiContext.tsx.html +7 -4
- package/coverage/lcov-report/src/widget/context/index.html +1 -1
- package/coverage/lcov-report/src/widget/hooks/index.html +1 -1
- package/coverage/lcov-report/src/widget/hooks/useValidator.ts.html +1 -1
- package/coverage/lcov-report/src/widget/index.html +13 -13
- package/coverage/lcov.info +240 -242
- package/lib/cjs/reports-config-widget-react.d.ts +1 -0
- package/lib/cjs/reports-config-widget-react.d.ts.map +1 -1
- package/lib/cjs/reports-config-widget-react.js +1 -0
- package/lib/cjs/reports-config-widget-react.js.map +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/widget/ReportsConfigUiProvider.d.ts +3 -4
- package/lib/cjs/widget/ReportsConfigUiProvider.d.ts.map +1 -1
- package/lib/cjs/widget/ReportsConfigUiProvider.js +3 -4
- package/lib/cjs/widget/ReportsConfigUiProvider.js.map +1 -1
- package/lib/cjs/widget/components/AddMappingsModal.d.ts.map +1 -1
- package/lib/cjs/widget/components/AddMappingsModal.js.map +1 -1
- package/lib/cjs/widget/components/BulkExtractor.d.ts +2 -2
- package/lib/cjs/widget/components/BulkExtractor.d.ts.map +1 -1
- package/lib/cjs/widget/components/BulkExtractor.js.map +1 -1
- package/lib/cjs/widget/components/ReportMappings.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportMappings.js.map +1 -1
- package/lib/cjs/widget/components/Reports.d.ts.map +1 -1
- package/lib/cjs/widget/components/Reports.js.map +1 -1
- package/lib/cjs/widget/components/ReportsConfigContext.d.ts +26 -4
- package/lib/cjs/widget/components/ReportsConfigContext.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportsConfigContext.js +15 -5
- package/lib/cjs/widget/components/ReportsConfigContext.js.map +1 -1
- package/lib/cjs/widget/components/ReportsContainer.d.ts +3 -6
- package/lib/cjs/widget/components/ReportsContainer.d.ts.map +1 -1
- package/lib/cjs/widget/components/ReportsContainer.js +6 -2
- package/lib/cjs/widget/components/ReportsContainer.js.map +1 -1
- package/lib/cjs/widget/context/ReportsConfigApiContext.d.ts +3 -3
- package/lib/cjs/widget/context/ReportsConfigApiContext.d.ts.map +1 -1
- package/lib/cjs/widget/context/ReportsConfigApiContext.js.map +1 -1
- package/lib/esm/reports-config-widget-react.d.ts +1 -0
- package/lib/esm/reports-config-widget-react.d.ts.map +1 -1
- package/lib/esm/reports-config-widget-react.js +1 -0
- package/lib/esm/reports-config-widget-react.js.map +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/widget/ReportsConfigUiProvider.d.ts +3 -4
- package/lib/esm/widget/ReportsConfigUiProvider.d.ts.map +1 -1
- package/lib/esm/widget/ReportsConfigUiProvider.js +3 -4
- package/lib/esm/widget/ReportsConfigUiProvider.js.map +1 -1
- package/lib/esm/widget/components/AddMappingsModal.d.ts.map +1 -1
- package/lib/esm/widget/components/AddMappingsModal.js.map +1 -1
- package/lib/esm/widget/components/BulkExtractor.d.ts +2 -2
- package/lib/esm/widget/components/BulkExtractor.d.ts.map +1 -1
- package/lib/esm/widget/components/BulkExtractor.js.map +1 -1
- package/lib/esm/widget/components/ReportMappings.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportMappings.js.map +1 -1
- package/lib/esm/widget/components/Reports.d.ts.map +1 -1
- package/lib/esm/widget/components/Reports.js.map +1 -1
- package/lib/esm/widget/components/ReportsConfigContext.d.ts +26 -4
- package/lib/esm/widget/components/ReportsConfigContext.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportsConfigContext.js +15 -5
- package/lib/esm/widget/components/ReportsConfigContext.js.map +1 -1
- package/lib/esm/widget/components/ReportsContainer.d.ts +3 -6
- package/lib/esm/widget/components/ReportsContainer.d.ts.map +1 -1
- package/lib/esm/widget/components/ReportsContainer.js +6 -2
- package/lib/esm/widget/components/ReportsContainer.js.map +1 -1
- package/lib/esm/widget/context/ReportsConfigApiContext.d.ts +3 -3
- package/lib/esm/widget/context/ReportsConfigApiContext.d.ts.map +1 -1
- package/lib/esm/widget/context/ReportsConfigApiContext.js.map +1 -1
- package/package.json +1 -1
- package/src/reports-config-widget-react.ts +1 -0
- package/src/widget/ReportsConfigUiProvider.tsx +3 -8
- package/src/widget/components/AddMappingsModal.tsx +2 -2
- package/src/widget/components/BulkExtractor.ts +5 -6
- package/src/widget/components/ReportMappings.tsx +3 -3
- package/src/widget/components/Reports.tsx +2 -2
- package/src/widget/components/ReportsConfigContext.tsx +42 -9
- package/src/widget/components/ReportsContainer.tsx +5 -8
- package/src/widget/context/ReportsConfigApiContext.tsx +3 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,36 @@
|
|
|
2
2
|
"name": "@itwin/reports-config-widget-react",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 11 Jun 2024 15:52:04 GMT",
|
|
6
|
+
"version": "0.7.0",
|
|
7
|
+
"tag": "@itwin/reports-config-widget-react_v0.7.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "Guillar1@users.noreply.github.com",
|
|
12
|
+
"package": "@itwin/reports-config-widget-react",
|
|
13
|
+
"commit": "3da5297647e428425165200c5596f7a760925961",
|
|
14
|
+
"comment": "Fixed an issue where custom base URL's were not being used."
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"minor": [
|
|
18
|
+
{
|
|
19
|
+
"author": "Guillar1@users.noreply.github.com",
|
|
20
|
+
"package": "@itwin/reports-config-widget-react",
|
|
21
|
+
"commit": "3da5297647e428425165200c5596f7a760925961",
|
|
22
|
+
"comment": "UIProvider props has been changed to extend from ReportsConfigContext."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"author": "Guillar1@users.noreply.github.com",
|
|
26
|
+
"package": "@itwin/reports-config-widget-react",
|
|
27
|
+
"commit": "3da5297647e428425165200c5596f7a760925961",
|
|
28
|
+
"comment": "Changed client prop types to use corresponding interfaces."
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"date": "Mon, 10 Jun 2024 17:40:38 GMT",
|
|
6
35
|
"version": "0.6.0",
|
|
7
36
|
"tag": "@itwin/reports-config-widget-react_v0.6.0",
|
|
8
37
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
# Change Log - @itwin/reports-config-widget-react
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 11 Jun 2024 15:52:04 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.7.0
|
|
8
|
+
|
|
9
|
+
Tue, 11 Jun 2024 15:52:04 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- UIProvider props has been changed to extend from ReportsConfigContext. ([#897](https://github.com/iTwin/viewer-components-react/pull/897))
|
|
14
|
+
- Changed client prop types to use corresponding interfaces. ([#897](https://github.com/iTwin/viewer-components-react/pull/897))
|
|
15
|
+
|
|
16
|
+
### Patches
|
|
17
|
+
|
|
18
|
+
- Fixed an issue where custom base URL's were not being used. ([#897](https://github.com/iTwin/viewer-components-react/pull/897))
|
|
19
|
+
|
|
7
20
|
## 0.6.0
|
|
8
21
|
|
|
9
|
-
Mon, 10 Jun 2024 17:40:
|
|
22
|
+
Mon, 10 Jun 2024 17:40:38 GMT
|
|
10
23
|
|
|
11
24
|
### Minor changes
|
|
12
25
|
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
/// <reference types="react" />
|
|
8
8
|
|
|
9
9
|
import type { AccessToken } from '@itwin/core-bentley';
|
|
10
|
-
import { ExtractionClient } from '@itwin/insights-client';
|
|
11
10
|
import type { ExtractionRequestDetails } from '@itwin/insights-client';
|
|
11
|
+
import type { IExtractionClient } from '@itwin/insights-client';
|
|
12
|
+
import type { IMappingsClient } from '@itwin/insights-client';
|
|
12
13
|
import { IModelsClient } from '@itwin/imodels-client-management';
|
|
14
|
+
import type { IReportsClient } from '@itwin/insights-client';
|
|
13
15
|
import type { Localization } from '@itwin/core-common';
|
|
14
|
-
import { MappingsClient } from '@itwin/insights-client';
|
|
15
16
|
import { default as React_2 } from 'react';
|
|
16
17
|
import type { Report } from '@itwin/insights-client';
|
|
17
|
-
import { ReportsClient } from '@itwin/insights-client';
|
|
18
18
|
import { StagePanelLocation } from '@itwin/appui-react';
|
|
19
19
|
import { StagePanelSection } from '@itwin/appui-react';
|
|
20
20
|
import type { UiItemsProvider } from '@itwin/appui-react';
|
|
@@ -22,7 +22,7 @@ import type { Widget } from '@itwin/appui-react';
|
|
|
22
22
|
|
|
23
23
|
// @public (undocumented)
|
|
24
24
|
export class BulkExtractor {
|
|
25
|
-
constructor(reportsClient:
|
|
25
|
+
constructor(reportsClient: IReportsClient, extractionClient: IExtractionClient, getAccessToken: () => Promise<AccessToken>, successfulExtractionToast: (iModelName: string, odataFeedUrl: string) => void, failedExtractionToast: (iModelName: string) => void);
|
|
26
26
|
// (undocumented)
|
|
27
27
|
getIModelState(iModelId: string, iModelName: string, odataFeedUrl: string): Promise<ExtractionStates>;
|
|
28
28
|
// (undocumented)
|
|
@@ -74,29 +74,22 @@ export const ReportsConfigContext: (props: ReportsConfigContextProps) => JSX.Ele
|
|
|
74
74
|
|
|
75
75
|
// @public
|
|
76
76
|
export interface ReportsConfigContextProps {
|
|
77
|
-
// (undocumented)
|
|
78
77
|
baseUrl?: string;
|
|
79
|
-
// (undocumented)
|
|
80
78
|
bulkExtractor?: BulkExtractor;
|
|
81
79
|
// (undocumented)
|
|
82
80
|
children?: React_2.ReactNode;
|
|
83
|
-
|
|
84
|
-
extractionClient?: ExtractionClient;
|
|
85
|
-
// (undocumented)
|
|
81
|
+
extractionClient?: IExtractionClient;
|
|
86
82
|
getAccessToken?: GetAccessTokenFn;
|
|
87
|
-
// (undocumented)
|
|
88
83
|
iModelsClient?: IModelsClient;
|
|
89
84
|
// (undocumented)
|
|
90
85
|
iTwinId: string;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
// (undocumented)
|
|
94
|
-
reportsClient?: ReportsClient;
|
|
86
|
+
mappingsClient?: IMappingsClient;
|
|
87
|
+
reportsClient?: IReportsClient;
|
|
95
88
|
}
|
|
96
89
|
|
|
97
90
|
// @public
|
|
98
91
|
export class ReportsConfigProvider implements UiItemsProvider {
|
|
99
|
-
constructor(
|
|
92
|
+
constructor(_props?: ReportsContainerProps | undefined);
|
|
100
93
|
// (undocumented)
|
|
101
94
|
readonly id = "ReportsConfigProvider";
|
|
102
95
|
// (undocumented)
|
|
@@ -125,6 +118,9 @@ export interface ReportsProps {
|
|
|
125
118
|
onClickReportTitle?: (report: Report) => void;
|
|
126
119
|
}
|
|
127
120
|
|
|
121
|
+
|
|
122
|
+
export * from "@itwin/insights-client";
|
|
123
|
+
|
|
128
124
|
// (No @packageDocumentation comment for this package)
|
|
129
125
|
|
|
130
126
|
```
|
|
@@ -9,6 +9,6 @@ public;Reports: ({ onClickAddReport, onClickReportModify, onClickReportTitle }:
|
|
|
9
9
|
internal;REPORTS_CONFIG_BASE_URL = "https://api.bentley.com"
|
|
10
10
|
public;ReportsConfigContext: (props: ReportsConfigContextProps) => JSX.Element
|
|
11
11
|
public;ReportsConfigContextProps
|
|
12
|
-
public;ReportsConfigProvider
|
|
12
|
+
public;ReportsConfigProvider
|
|
13
13
|
public;ReportsConfigWidget
|
|
14
14
|
public;ReportsProps
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
/// <reference types="react" />
|
|
8
8
|
|
|
9
9
|
import type { AccessToken } from '@itwin/core-bentley';
|
|
10
|
-
import { ExtractionClient } from '@itwin/insights-client';
|
|
11
10
|
import type { ExtractionRequestDetails } from '@itwin/insights-client';
|
|
11
|
+
import type { IExtractionClient } from '@itwin/insights-client';
|
|
12
|
+
import type { IMappingsClient } from '@itwin/insights-client';
|
|
12
13
|
import { IModelsClient } from '@itwin/imodels-client-management';
|
|
14
|
+
import type { IReportsClient } from '@itwin/insights-client';
|
|
13
15
|
import type { Localization } from '@itwin/core-common';
|
|
14
|
-
import { MappingsClient } from '@itwin/insights-client';
|
|
15
16
|
import { default as React_2 } from 'react';
|
|
16
17
|
import type { Report } from '@itwin/insights-client';
|
|
17
|
-
import { ReportsClient } from '@itwin/insights-client';
|
|
18
18
|
import { StagePanelLocation } from '@itwin/appui-react';
|
|
19
19
|
import { StagePanelSection } from '@itwin/appui-react';
|
|
20
20
|
import type { UiItemsProvider } from '@itwin/appui-react';
|
|
@@ -22,7 +22,7 @@ import type { Widget } from '@itwin/appui-react';
|
|
|
22
22
|
|
|
23
23
|
// @public (undocumented)
|
|
24
24
|
export class BulkExtractor {
|
|
25
|
-
constructor(reportsClient:
|
|
25
|
+
constructor(reportsClient: IReportsClient, extractionClient: IExtractionClient, getAccessToken: () => Promise<AccessToken>, successfulExtractionToast: (iModelName: string, odataFeedUrl: string) => void, failedExtractionToast: (iModelName: string) => void);
|
|
26
26
|
// (undocumented)
|
|
27
27
|
getIModelState(iModelId: string, iModelName: string, odataFeedUrl: string): Promise<ExtractionStates>;
|
|
28
28
|
// (undocumented)
|
|
@@ -74,29 +74,22 @@ export const ReportsConfigContext: (props: ReportsConfigContextProps) => JSX.Ele
|
|
|
74
74
|
|
|
75
75
|
// @public
|
|
76
76
|
export interface ReportsConfigContextProps {
|
|
77
|
-
// (undocumented)
|
|
78
77
|
baseUrl?: string;
|
|
79
|
-
// (undocumented)
|
|
80
78
|
bulkExtractor?: BulkExtractor;
|
|
81
79
|
// (undocumented)
|
|
82
80
|
children?: React_2.ReactNode;
|
|
83
|
-
|
|
84
|
-
extractionClient?: ExtractionClient;
|
|
85
|
-
// (undocumented)
|
|
81
|
+
extractionClient?: IExtractionClient;
|
|
86
82
|
getAccessToken?: GetAccessTokenFn;
|
|
87
|
-
// (undocumented)
|
|
88
83
|
iModelsClient?: IModelsClient;
|
|
89
84
|
// (undocumented)
|
|
90
85
|
iTwinId: string;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
// (undocumented)
|
|
94
|
-
reportsClient?: ReportsClient;
|
|
86
|
+
mappingsClient?: IMappingsClient;
|
|
87
|
+
reportsClient?: IReportsClient;
|
|
95
88
|
}
|
|
96
89
|
|
|
97
90
|
// @public
|
|
98
91
|
export class ReportsConfigProvider implements UiItemsProvider {
|
|
99
|
-
constructor(
|
|
92
|
+
constructor(_props?: ReportsContainerProps | undefined);
|
|
100
93
|
// (undocumented)
|
|
101
94
|
readonly id = "ReportsConfigProvider";
|
|
102
95
|
// (undocumented)
|
|
@@ -125,6 +118,9 @@ export interface ReportsProps {
|
|
|
125
118
|
onClickReportTitle?: (report: Report) => void;
|
|
126
119
|
}
|
|
127
120
|
|
|
121
|
+
|
|
122
|
+
export * from "@itwin/insights-client";
|
|
123
|
+
|
|
128
124
|
// (No @packageDocumentation comment for this package)
|
|
129
125
|
|
|
130
126
|
```
|