@patternfly/react-data-view 6.4.0-prerelease.7 → 6.4.0-prerelease.8
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.
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"DataView": "dist/dynamic/DataView",
|
|
3
|
+
"DataViewCheckboxFilter": "dist/dynamic/DataViewCheckboxFilter",
|
|
4
|
+
"DataViewCheckboxFilterProps": "dist/dynamic/DataViewCheckboxFilter",
|
|
5
|
+
"DataViewEvent": "dist/dynamic/DataViewEventsContext",
|
|
6
|
+
"DataViewEventsContext": "dist/dynamic/DataViewEventsContext",
|
|
7
|
+
"DataViewEventsContextValue": "dist/dynamic/DataViewEventsContext",
|
|
8
|
+
"DataViewEventsProvider": "dist/dynamic/DataViewEventsContext",
|
|
9
|
+
"DataViewFilterOption": "dist/dynamic/DataViewFilters",
|
|
10
|
+
"DataViewFilters": "dist/dynamic/DataViewFilters",
|
|
11
|
+
"DataViewFiltersProps": "dist/dynamic/DataViewFilters",
|
|
12
|
+
"DataViewImpementationProps": "dist/dynamic/DataView",
|
|
13
|
+
"DataViewPaginationProps": "dist/dynamic/Hooks",
|
|
14
|
+
"DataViewProps": "dist/dynamic/DataView",
|
|
15
|
+
"DataViewSelection": "dist/dynamic/InternalContext",
|
|
16
|
+
"DataViewSortConfig": "dist/dynamic/Hooks",
|
|
17
|
+
"DataViewSortParams": "dist/dynamic/Hooks",
|
|
18
|
+
"DataViewState": "dist/dynamic/DataView",
|
|
19
|
+
"DataViewTable": "dist/dynamic/DataViewTable",
|
|
20
|
+
"DataViewTableBasic": "dist/dynamic/DataViewTableBasic",
|
|
21
|
+
"DataViewTableBasicProps": "dist/dynamic/DataViewTableBasic",
|
|
22
|
+
"DataViewTableHead": "dist/dynamic/DataViewTableHead",
|
|
23
|
+
"DataViewTableHeadProps": "dist/dynamic/DataViewTableHead",
|
|
24
|
+
"DataViewTableProps": "dist/dynamic/DataViewTable",
|
|
25
|
+
"DataViewTableTree": "dist/dynamic/DataViewTableTree",
|
|
26
|
+
"DataViewTableTreeProps": "dist/dynamic/DataViewTableTree",
|
|
27
|
+
"DataViewTd": "dist/dynamic/DataViewTable",
|
|
28
|
+
"DataViewTextFilter": "dist/dynamic/DataViewTextFilter",
|
|
29
|
+
"DataViewTextFilterProps": "dist/dynamic/DataViewTextFilter",
|
|
30
|
+
"DataViewTh": "dist/dynamic/DataViewTh",
|
|
31
|
+
"DataViewThProps": "dist/dynamic/DataViewTh",
|
|
32
|
+
"DataViewThResizableProps": "dist/dynamic/DataViewTh",
|
|
33
|
+
"DataViewToolbar": "dist/dynamic/DataViewToolbar",
|
|
34
|
+
"DataViewToolbarProps": "dist/dynamic/DataViewToolbar",
|
|
35
|
+
"DataViewTr": "dist/dynamic/DataViewTable",
|
|
36
|
+
"DataViewTrObject": "dist/dynamic/DataViewTable",
|
|
37
|
+
"DataViewTrTree": "dist/dynamic/DataViewTable",
|
|
38
|
+
"EventTypes": "dist/dynamic/DataViewEventsContext",
|
|
39
|
+
"InternalContext": "dist/dynamic/InternalContext",
|
|
40
|
+
"InternalContextProps": "dist/dynamic/InternalContext",
|
|
41
|
+
"InternalContextProvider": "dist/dynamic/InternalContext",
|
|
42
|
+
"InternalContextValue": "dist/dynamic/InternalContext",
|
|
43
|
+
"InternalProviderProps": "dist/dynamic/InternalContext",
|
|
44
|
+
"PaginationParams": "dist/dynamic/Hooks",
|
|
45
|
+
"UseDataViewFiltersProps": "dist/dynamic/Hooks",
|
|
46
|
+
"UseDataViewPaginationProps": "dist/dynamic/Hooks",
|
|
47
|
+
"UseDataViewSelectionProps": "dist/dynamic/Hooks",
|
|
48
|
+
"UseDataViewSortProps": "dist/dynamic/Hooks",
|
|
49
|
+
"isDataViewFilterOption": "dist/dynamic/DataViewCheckboxFilter",
|
|
50
|
+
"isDataViewTdObject": "dist/dynamic/DataViewTable",
|
|
51
|
+
"isDataViewThObject": "dist/dynamic/DataViewTable",
|
|
52
|
+
"isDataViewTrObject": "dist/dynamic/DataViewTable",
|
|
53
|
+
"useDataViewEventsContext": "dist/dynamic/DataViewEventsContext",
|
|
54
|
+
"useDataViewFilters": "dist/dynamic/Hooks",
|
|
55
|
+
"useDataViewPagination": "dist/dynamic/Hooks",
|
|
56
|
+
"useDataViewSelection": "dist/dynamic/Hooks",
|
|
57
|
+
"useDataViewSort": "dist/dynamic/Hooks",
|
|
58
|
+
"useInternalContext": "dist/dynamic/InternalContext"
|
|
59
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const fse = require('fs-extra');
|
|
2
2
|
const { globSync } = require('glob');
|
|
3
3
|
const path = require('path');
|
|
4
|
+
const { default: getDynamicModuleMap } = require('../../scripts/parse-dynamic-modules.mjs');
|
|
4
5
|
|
|
5
6
|
const root = process.cwd();
|
|
6
7
|
|
|
@@ -60,12 +61,29 @@ async function generatePackages(files) {
|
|
|
60
61
|
return Promise.all(cmds);
|
|
61
62
|
}
|
|
62
63
|
|
|
64
|
+
async function generateDynamicModuleMap() {
|
|
65
|
+
const moduleMap = getDynamicModuleMap(root);
|
|
66
|
+
// eslint-disable-next-line no-console
|
|
67
|
+
console.log('Generating dynamic module map for', Object.keys(moduleMap).length, 'modules');
|
|
68
|
+
|
|
69
|
+
if (Object.keys(moduleMap).length === 0) {
|
|
70
|
+
return Promise.resolve();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const moduleMapSorted = Object.keys(moduleMap)
|
|
74
|
+
.sort()
|
|
75
|
+
.reduce((acc, key) => ({ ...acc, [key]: moduleMap[key] }), {});
|
|
76
|
+
|
|
77
|
+
return fse.writeJSON(path.resolve(root, 'dist/dynamic-modules.json'), moduleMapSorted, { spaces: 2 });
|
|
78
|
+
}
|
|
79
|
+
|
|
63
80
|
async function run(files) {
|
|
64
81
|
try {
|
|
65
82
|
await generatePackages(files);
|
|
66
83
|
if (indexTypings.length === 1) {
|
|
67
84
|
copyTypings(indexTypings, root);
|
|
68
85
|
}
|
|
86
|
+
await generateDynamicModuleMap();
|
|
69
87
|
} catch (error) {
|
|
70
88
|
// eslint-disable-next-line no-console
|
|
71
89
|
console.error(error);
|