@devgateway/dvz-wp-commons 1.1.0 → 1.3.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/build/APIConfig.cjs +479 -0
- package/build/APIConfig.d.ts +31 -42
- package/build/APIConfig.js +366 -277
- package/build/APIutils.cjs +54 -0
- package/build/APIutils.d.ts +3 -3
- package/build/APIutils.js +11 -1
- package/build/Blocks.cjs +672 -0
- package/build/Blocks.d.ts +42 -65
- package/build/Blocks.js +524 -346
- package/build/CSVSourceConfig.cjs +99 -0
- package/build/CSVSourceConfig.d.ts +2 -3
- package/build/CSVSourceConfig.js +63 -41
- package/build/ChartColors.cjs +593 -0
- package/build/ChartColors.d.ts +4 -46
- package/build/ChartColors.js +431 -380
- package/build/ChartLegends.cjs +157 -0
- package/build/ChartLegends.d.ts +1 -33
- package/build/ChartLegends.js +173 -69
- package/build/ChartMeasures.cjs +192 -0
- package/build/ChartMeasures.d.ts +1 -23
- package/build/ChartMeasures.js +195 -108
- package/build/Constants.cjs +21 -0
- package/build/Constants.d.ts +18 -15
- package/build/Constants.js +3 -1
- package/build/DataFilters.cjs +176 -0
- package/build/DataFilters.d.ts +1 -12
- package/build/DataFilters.js +100 -93
- package/build/Format.cjs +1038 -0
- package/build/Format.d.ts +8 -10
- package/build/Format.js +428 -379
- package/build/MapCSVSourceConfig.cjs +36 -0
- package/build/MapCSVSourceConfig.d.ts +7 -9
- package/build/MapCSVSourceConfig.js +19 -9
- package/build/Measures.cjs +196 -0
- package/build/Measures.d.ts +1 -24
- package/build/Measures.js +208 -119
- package/build/MobileConfigUtils.cjs +92 -0
- package/build/MobileConfigUtils.d.ts +6 -6
- package/build/MobileConfigUtils.js +39 -32
- package/build/Tooltip.cjs +63 -0
- package/build/Tooltip.d.ts +1 -3
- package/build/Tooltip.js +27 -51
- package/build/Util.cjs +29 -0
- package/build/Util.d.ts +5 -6
- package/build/Util.js +9 -9
- package/build/hooks/index.cjs +1 -0
- package/build/hooks/index.js +0 -3
- package/build/icons/Chart.cjs +49 -0
- package/build/icons/Chart.d.ts +1 -2
- package/build/icons/Chart.js +10 -11
- package/build/icons/Generic.cjs +24 -0
- package/build/icons/Generic.d.ts +1 -2
- package/build/icons/Generic.js +25 -4
- package/build/icons/index.cjs +19 -0
- package/build/icons/index.d.ts +2 -2
- package/build/icons/index.js +2 -2
- package/build/index.cjs +225 -0
- package/build/index.d.ts +16 -18
- package/build/index.js +47 -19
- package/package.json +39 -30
- package/build/post-type.d.ts +0 -193
- package/build/post-type.js +0 -12
- package/build/tsconfig.tsbuildinfo +0 -1
- package/build/types.d.ts +0 -349
- package/build/types.js +0 -33
package/build/index.cjs
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "APIConfig", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _APIConfig.APIConfig;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "BLOCKS_CATEGORY", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Constants.BLOCKS_CATEGORY;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "BLOCKS_NS", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Constants.BLOCKS_NS;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "BlockEditWithAPIMetadata", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _Blocks.BlockEditWithAPIMetadata;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "BlockEditWithFilters", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _Blocks.BlockEditWithFilters;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "CSVConfig", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _CSVSourceConfig.CSVConfig;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "CSVSourceConfig", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _CSVSourceConfig.CSVConfig;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "ChartColors", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _ChartColors.ChartColors;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "ChartIcon", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _index.ChartIcon;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "ChartLegends", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _ChartLegends.ChartLegends;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "ChartMeasures", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _ChartMeasures.ChartMeasures;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "ComponentWithSettings", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _Blocks.ComponentWithSettings;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "DEFAULT_FORMAT_SETTINGS", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _Constants.DEFAULT_FORMAT_SETTINGS;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "DataFilters", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _DataFilters.DataFilters;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "Format", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _Format.Format;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "GenericIcon", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _index.GenericIcon;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "MapCSVSourceConfig", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _MapCSVSourceConfig.MapCSVSourceConfig;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "Measures", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _Measures.Measures;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "SizeConfig", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _Blocks.SizeConfig;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _Tooltip.Tooltip;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "categorical", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _ChartColors.categorical;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "diverging", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _ChartColors.diverging;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "extractAxisValues", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _MobileConfigUtils.extractAxisValues;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "getSelectedItemsForApp", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _MobileConfigUtils.getSelectedItemsForApp;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "getSelectedLabelsForApp", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _MobileConfigUtils.getSelectedLabelsForApp;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "getStoredOrSetItem", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return _MobileConfigUtils.getStoredOrSetItem;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "getTranslatedOptions", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _APIutils.getTranslatedOptions;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "getTranslation", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _APIutils.getTranslation;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "isSupersetAPI", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () {
|
|
177
|
+
return _APIutils.isSupersetAPI;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "panelFocus", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () {
|
|
183
|
+
return _Util.panelFocus;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "sequential", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () {
|
|
189
|
+
return _ChartColors.sequential;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "togglePanel", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () {
|
|
195
|
+
return _Util.togglePanel;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "transformDataToAppObject", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () {
|
|
201
|
+
return _MobileConfigUtils.transformDataToAppObject;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "updateMeasureLabels", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () {
|
|
207
|
+
return _MobileConfigUtils.updateMeasureLabels;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
var _APIConfig = require("./APIConfig.cjs");
|
|
211
|
+
var _APIutils = require("./APIutils.cjs");
|
|
212
|
+
var _Blocks = require("./Blocks.cjs");
|
|
213
|
+
var _ChartColors = require("./ChartColors.cjs");
|
|
214
|
+
var _Constants = require("./Constants.cjs");
|
|
215
|
+
var _CSVSourceConfig = require("./CSVSourceConfig.cjs");
|
|
216
|
+
var _DataFilters = require("./DataFilters.cjs");
|
|
217
|
+
var _Format = require("./Format.cjs");
|
|
218
|
+
var _MapCSVSourceConfig = require("./MapCSVSourceConfig.cjs");
|
|
219
|
+
var _Measures = require("./Measures.cjs");
|
|
220
|
+
var _MobileConfigUtils = require("./MobileConfigUtils.cjs");
|
|
221
|
+
var _Tooltip = require("./Tooltip.cjs");
|
|
222
|
+
var _Util = require("./Util.cjs");
|
|
223
|
+
var _ChartLegends = require("./ChartLegends.cjs");
|
|
224
|
+
var _ChartMeasures = require("./ChartMeasures.cjs");
|
|
225
|
+
var _index = require("./icons/index.cjs");
|
package/build/index.d.ts
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
export { APIConfig } from
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export
|
|
16
|
-
export {
|
|
17
|
-
export * from './icons';
|
|
18
|
-
export * from './post-type';
|
|
1
|
+
export { APIConfig } from "./APIConfig";
|
|
2
|
+
export { DataFilters } from "./DataFilters";
|
|
3
|
+
export { Format } from "./Format";
|
|
4
|
+
export { MapCSVSourceConfig } from "./MapCSVSourceConfig";
|
|
5
|
+
export { Measures } from "./Measures";
|
|
6
|
+
export { Tooltip } from "./Tooltip";
|
|
7
|
+
export { ChartLegends } from "./ChartLegends";
|
|
8
|
+
export { ChartMeasures } from "./ChartMeasures";
|
|
9
|
+
export { getTranslatedOptions, getTranslation, isSupersetAPI } from "./APIutils";
|
|
10
|
+
export { BlockEditWithAPIMetadata, BlockEditWithFilters, ComponentWithSettings, SizeConfig } from "./Blocks";
|
|
11
|
+
export { categorical, sequential, diverging, ChartColors } from "./ChartColors";
|
|
12
|
+
export { DEFAULT_FORMAT_SETTINGS, BLOCKS_CATEGORY, BLOCKS_NS } from "./Constants";
|
|
13
|
+
export { CSVConfig, CSVConfig as CSVSourceConfig } from "./CSVSourceConfig";
|
|
14
|
+
export { extractAxisValues, getSelectedLabelsForApp, transformDataToAppObject, updateMeasureLabels, getSelectedItemsForApp, getStoredOrSetItem } from "./MobileConfigUtils";
|
|
15
|
+
export { panelFocus, togglePanel } from "./Util";
|
|
16
|
+
export { GenericIcon, ChartIcon } from "./icons/index";
|
package/build/index.js
CHANGED
|
@@ -1,19 +1,47 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
|
|
15
|
-
export
|
|
16
|
-
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export
|
|
1
|
+
export {
|
|
2
|
+
APIConfig
|
|
3
|
+
} from './APIConfig.js';
|
|
4
|
+
export {
|
|
5
|
+
getTranslatedOptions, getTranslation, isSupersetAPI
|
|
6
|
+
} from './APIutils.js';
|
|
7
|
+
export {
|
|
8
|
+
BlockEditWithAPIMetadata, BlockEditWithFilters, ComponentWithSettings, SizeConfig
|
|
9
|
+
} from './Blocks.js';
|
|
10
|
+
|
|
11
|
+
export {categorical, sequential, diverging, ChartColors} from './ChartColors.js';
|
|
12
|
+
|
|
13
|
+
export {DEFAULT_FORMAT_SETTINGS, BLOCKS_CATEGORY, BLOCKS_NS} from './Constants.js';
|
|
14
|
+
|
|
15
|
+
export {CSVConfig} from './CSVSourceConfig.js';
|
|
16
|
+
export {
|
|
17
|
+
DataFilters,
|
|
18
|
+
} from './DataFilters.js';
|
|
19
|
+
export {
|
|
20
|
+
Format,
|
|
21
|
+
} from './Format.js';
|
|
22
|
+
export {
|
|
23
|
+
MapCSVSourceConfig,
|
|
24
|
+
} from './MapCSVSourceConfig.js';
|
|
25
|
+
export {
|
|
26
|
+
Measures,
|
|
27
|
+
} from './Measures.js';
|
|
28
|
+
export {
|
|
29
|
+
extractAxisValues,
|
|
30
|
+
getSelectedLabelsForApp,
|
|
31
|
+
transformDataToAppObject,
|
|
32
|
+
updateMeasureLabels,
|
|
33
|
+
getSelectedItemsForApp,
|
|
34
|
+
getStoredOrSetItem
|
|
35
|
+
} from './MobileConfigUtils.js';
|
|
36
|
+
export {
|
|
37
|
+
Tooltip,
|
|
38
|
+
} from './Tooltip.js';
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
panelFocus, togglePanel
|
|
42
|
+
} from './Util.js';
|
|
43
|
+
|
|
44
|
+
export {ChartLegends} from './ChartLegends.js';
|
|
45
|
+
export {ChartMeasures} from './ChartMeasures.js';
|
|
46
|
+
export {GenericIcon, ChartIcon} from './icons/index.js';
|
|
47
|
+
export {CSVConfig as CSVSourceConfig} from './CSVSourceConfig.js';
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devgateway/dvz-wp-commons",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"private": false,
|
|
5
|
+
"type": "module",
|
|
5
6
|
"description": "Common Utilities for Data Viz Wordpress that can be also used in other projects",
|
|
6
7
|
"author": "Sebastian Dimunzio",
|
|
7
8
|
"license": "GPL-2.0-or-later",
|
|
9
|
+
"main": "build/index.js",
|
|
10
|
+
"types": "build/index.d.ts",
|
|
11
|
+
"module": "build/index.js",
|
|
8
12
|
"maintainers": [
|
|
9
13
|
"Sebastian Dimunzio",
|
|
10
14
|
"Timothy Mugo"
|
|
@@ -21,9 +25,6 @@
|
|
|
21
25
|
"bugs": {
|
|
22
26
|
"url": "https://github.com/devgateway/data-viz-wordpress/issues"
|
|
23
27
|
},
|
|
24
|
-
"main": "build/index.js",
|
|
25
|
-
"types": "build/index.d.ts",
|
|
26
|
-
"module": "build/index.js",
|
|
27
28
|
"files": [
|
|
28
29
|
"build",
|
|
29
30
|
"LICENSE",
|
|
@@ -31,44 +32,52 @@
|
|
|
31
32
|
],
|
|
32
33
|
"publishConfig": {
|
|
33
34
|
"access": "public",
|
|
34
|
-
"
|
|
35
|
+
"provenance": false
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@babel/runtime": "^7.
|
|
38
|
+
"@babel/runtime": "^7.28.4",
|
|
38
39
|
"@colbyfayock/semantic-release-pnpm": "^1.2.2",
|
|
39
40
|
"@semantic-release/changelog": "^6.0.3",
|
|
40
41
|
"@types/lodash.isempty": "^4.4.9",
|
|
41
|
-
"@types/papaparse": "^5.3.
|
|
42
|
+
"@types/papaparse": "^5.3.16",
|
|
42
43
|
"@types/react": "18.3.1",
|
|
43
|
-
"@types/wordpress__block-editor": "^11.5.
|
|
44
|
-
"@wordpress/scripts": "^30.
|
|
45
|
-
"dotenv": "^
|
|
46
|
-
"dotenv-webpack": "^8.1.
|
|
47
|
-
"semantic-release": "^24.2.
|
|
44
|
+
"@types/wordpress__block-editor": "^11.5.17",
|
|
45
|
+
"@wordpress/scripts": "^30.25.0",
|
|
46
|
+
"dotenv": "^17.2.3",
|
|
47
|
+
"dotenv-webpack": "^8.1.1",
|
|
48
|
+
"semantic-release": "^24.2.9",
|
|
48
49
|
"semantic-release-monorepo": "^8.0.2",
|
|
49
|
-
"ts-loader": "^9.5.
|
|
50
|
-
"typescript": "^5.
|
|
51
|
-
|
|
52
|
-
"scripts": {
|
|
53
|
-
"build": "tsc -b",
|
|
54
|
-
"format:js": "wp-scripts format-js",
|
|
55
|
-
"lint:js": "wp-scripts lint-js",
|
|
56
|
-
"start": "tsc -w"
|
|
50
|
+
"ts-loader": "^9.5.4",
|
|
51
|
+
"typescript": "^5.9.3",
|
|
52
|
+
"unbuild": "3.6.1"
|
|
57
53
|
},
|
|
58
54
|
"dependencies": {
|
|
59
|
-
"@wordpress/api-fetch": "^7.
|
|
60
|
-
"@wordpress/block-editor": "^
|
|
61
|
-
"@wordpress/components": "^
|
|
62
|
-
"@wordpress/data": "^10.
|
|
63
|
-
"@wordpress/editor": "^14.
|
|
64
|
-
"@wordpress/element": "^6.
|
|
65
|
-
"@wordpress/i18n": "^5.
|
|
66
|
-
"@wordpress/icons": "^10.
|
|
55
|
+
"@wordpress/api-fetch": "^7.32.0",
|
|
56
|
+
"@wordpress/block-editor": "^15.5.0",
|
|
57
|
+
"@wordpress/components": "^30.5.0",
|
|
58
|
+
"@wordpress/data": "^10.32.0",
|
|
59
|
+
"@wordpress/editor": "^14.32.0",
|
|
60
|
+
"@wordpress/element": "^6.32.0",
|
|
61
|
+
"@wordpress/i18n": "^6.5.0",
|
|
62
|
+
"@wordpress/icons": "^10.32.0",
|
|
67
63
|
"classnames": "^2.5.1",
|
|
68
64
|
"lodash.isempty": "^4.4.0",
|
|
69
|
-
"papaparse": "^5.5.
|
|
65
|
+
"papaparse": "^5.5.3"
|
|
70
66
|
},
|
|
71
67
|
"peerDependencies": {
|
|
72
68
|
"react": "18.3.1"
|
|
69
|
+
},
|
|
70
|
+
"exports": {
|
|
71
|
+
".": {
|
|
72
|
+
"import": "./build/index.js",
|
|
73
|
+
"default": "./build/index.cjs",
|
|
74
|
+
"types": "./build/index.d.ts"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"build": "unbuild",
|
|
79
|
+
"format:js": "wp-scripts format-js",
|
|
80
|
+
"lint:js": "wp-scripts lint-js",
|
|
81
|
+
"start": "tsc -w"
|
|
73
82
|
}
|
|
74
|
-
}
|
|
83
|
+
}
|
package/build/post-type.d.ts
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { About, Cury, Meta, Self, WpTerm } from "./types";
|
|
2
|
-
export interface Post {
|
|
3
|
-
id: number;
|
|
4
|
-
date: Date;
|
|
5
|
-
date_gmt: Date;
|
|
6
|
-
guid: PostGUID;
|
|
7
|
-
modified: Date;
|
|
8
|
-
modified_gmt: Date;
|
|
9
|
-
slug: string;
|
|
10
|
-
status: string;
|
|
11
|
-
type: string;
|
|
12
|
-
link: string;
|
|
13
|
-
title: PostGUID;
|
|
14
|
-
content: PostContent;
|
|
15
|
-
excerpt: PostContent;
|
|
16
|
-
author: number;
|
|
17
|
-
featured_media: number;
|
|
18
|
-
comment_status: string;
|
|
19
|
-
ping_status: string;
|
|
20
|
-
sticky: boolean;
|
|
21
|
-
template: string;
|
|
22
|
-
format: string;
|
|
23
|
-
meta: Meta;
|
|
24
|
-
categories: number[];
|
|
25
|
-
tags: any[];
|
|
26
|
-
bread_crumbs: any[];
|
|
27
|
-
class_list: string[];
|
|
28
|
-
acf: any[];
|
|
29
|
-
yoast_head: string;
|
|
30
|
-
yoast_head_json: PostYoastHeadJSON;
|
|
31
|
-
meta_fields: {
|
|
32
|
-
[key: string]: string[];
|
|
33
|
-
};
|
|
34
|
-
meta_fields_2: {
|
|
35
|
-
[key: string]: string[];
|
|
36
|
-
};
|
|
37
|
-
_links: PostLinks;
|
|
38
|
-
}
|
|
39
|
-
export interface PostLinks {
|
|
40
|
-
self: Self[];
|
|
41
|
-
collection: About[];
|
|
42
|
-
about: About[];
|
|
43
|
-
author: PostAuthorElement[];
|
|
44
|
-
replies: PostAuthorElement[];
|
|
45
|
-
"version-history": PostVersionHistory[];
|
|
46
|
-
"predecessor-version": PostPredecessorVersion[];
|
|
47
|
-
"wp:attachment": About[];
|
|
48
|
-
"wp:term": WpTerm[];
|
|
49
|
-
curies: Cury[];
|
|
50
|
-
}
|
|
51
|
-
export interface PostAuthorElement {
|
|
52
|
-
embeddable: boolean;
|
|
53
|
-
href: string;
|
|
54
|
-
}
|
|
55
|
-
export interface PostPredecessorVersion {
|
|
56
|
-
id: number;
|
|
57
|
-
href: string;
|
|
58
|
-
}
|
|
59
|
-
export interface PostVersionHistory {
|
|
60
|
-
count: number;
|
|
61
|
-
href: string;
|
|
62
|
-
}
|
|
63
|
-
export declare enum PostTaxonomy {
|
|
64
|
-
BreadCrumbs = "bread_crumbs",
|
|
65
|
-
Category = "category",
|
|
66
|
-
PostTag = "post_tag"
|
|
67
|
-
}
|
|
68
|
-
export interface PostContent {
|
|
69
|
-
rendered: string;
|
|
70
|
-
protected: boolean;
|
|
71
|
-
}
|
|
72
|
-
export interface PostGUID {
|
|
73
|
-
rendered: string;
|
|
74
|
-
}
|
|
75
|
-
export interface PostMeta {
|
|
76
|
-
_acf_changed: boolean;
|
|
77
|
-
inline_featured_image: boolean;
|
|
78
|
-
redirect_url: string;
|
|
79
|
-
myguten_meta_block_field: string;
|
|
80
|
-
footnotes: string;
|
|
81
|
-
}
|
|
82
|
-
export interface PostYoastHeadJSON {
|
|
83
|
-
title?: string;
|
|
84
|
-
robots?: PostRobots;
|
|
85
|
-
canonical?: string;
|
|
86
|
-
og_locale?: string;
|
|
87
|
-
og_type?: string;
|
|
88
|
-
og_title?: string;
|
|
89
|
-
og_url?: string;
|
|
90
|
-
og_site_name?: string;
|
|
91
|
-
article_published_time?: Date;
|
|
92
|
-
article_modified_time?: Date;
|
|
93
|
-
og_image?: PostOgImage[];
|
|
94
|
-
author?: string;
|
|
95
|
-
twitter_card?: string;
|
|
96
|
-
twitter_creator?: string;
|
|
97
|
-
twitter_site?: string;
|
|
98
|
-
twitter_misc?: PostTwitterMisc;
|
|
99
|
-
schema?: PostSchema;
|
|
100
|
-
og_description?: string;
|
|
101
|
-
}
|
|
102
|
-
export interface PostOgImage {
|
|
103
|
-
width: number | string;
|
|
104
|
-
height: number | string;
|
|
105
|
-
url: string;
|
|
106
|
-
type: string;
|
|
107
|
-
}
|
|
108
|
-
export interface PostRobots {
|
|
109
|
-
index: string;
|
|
110
|
-
follow: string;
|
|
111
|
-
"max-snippet": string;
|
|
112
|
-
"max-image-preview": string;
|
|
113
|
-
"max-video-preview": string;
|
|
114
|
-
}
|
|
115
|
-
export interface PostSchema {
|
|
116
|
-
"@context": string;
|
|
117
|
-
"@graph": PostGraph[];
|
|
118
|
-
}
|
|
119
|
-
export interface PostGraph {
|
|
120
|
-
"@type": string;
|
|
121
|
-
"@id": string;
|
|
122
|
-
isPartOf?: Breadcrumb;
|
|
123
|
-
author?: GraphAuthorClass;
|
|
124
|
-
headline?: string;
|
|
125
|
-
datePublished?: Date;
|
|
126
|
-
dateModified?: Date;
|
|
127
|
-
mainEntityOfPage?: Breadcrumb;
|
|
128
|
-
wordCount?: number;
|
|
129
|
-
commentCount?: number;
|
|
130
|
-
publisher?: Breadcrumb;
|
|
131
|
-
inLanguage?: string;
|
|
132
|
-
potentialAction?: PotentialAction[];
|
|
133
|
-
url?: string;
|
|
134
|
-
name?: string;
|
|
135
|
-
description?: string;
|
|
136
|
-
alternateName?: string;
|
|
137
|
-
logo?: PostImage;
|
|
138
|
-
image?: PostImage;
|
|
139
|
-
sameAs?: string[];
|
|
140
|
-
articleSection?: string[];
|
|
141
|
-
breadcrumb?: Breadcrumb;
|
|
142
|
-
itemListElement?: ItemListElement[];
|
|
143
|
-
thumbnailUrl?: string;
|
|
144
|
-
primaryImageOfPage?: Breadcrumb;
|
|
145
|
-
contentUrl?: string;
|
|
146
|
-
}
|
|
147
|
-
export interface GraphAuthorClass {
|
|
148
|
-
name: string;
|
|
149
|
-
"@id": string;
|
|
150
|
-
}
|
|
151
|
-
export interface Breadcrumb {
|
|
152
|
-
"@id": string;
|
|
153
|
-
}
|
|
154
|
-
export interface PostImage {
|
|
155
|
-
"@id": string;
|
|
156
|
-
"@type"?: string;
|
|
157
|
-
inLanguage?: string;
|
|
158
|
-
url?: string;
|
|
159
|
-
contentUrl?: string;
|
|
160
|
-
caption?: string;
|
|
161
|
-
width?: number;
|
|
162
|
-
height?: number;
|
|
163
|
-
}
|
|
164
|
-
export interface ItemListElement {
|
|
165
|
-
"@type": string;
|
|
166
|
-
position: number;
|
|
167
|
-
name: string;
|
|
168
|
-
item?: string;
|
|
169
|
-
}
|
|
170
|
-
export interface PotentialAction {
|
|
171
|
-
"@type": PotentialActionType;
|
|
172
|
-
name?: string;
|
|
173
|
-
target: string[] | TargetClass;
|
|
174
|
-
"query-input"?: QueryInput;
|
|
175
|
-
}
|
|
176
|
-
export declare enum PotentialActionType {
|
|
177
|
-
CommentAction = "CommentAction",
|
|
178
|
-
ReadAction = "ReadAction",
|
|
179
|
-
SearchAction = "SearchAction"
|
|
180
|
-
}
|
|
181
|
-
export interface QueryInput {
|
|
182
|
-
"@type": string;
|
|
183
|
-
valueRequired: boolean;
|
|
184
|
-
valueName: string;
|
|
185
|
-
}
|
|
186
|
-
export interface TargetClass {
|
|
187
|
-
"@type": string;
|
|
188
|
-
urlTemplate: string;
|
|
189
|
-
}
|
|
190
|
-
export interface PostTwitterMisc {
|
|
191
|
-
"Written by": string;
|
|
192
|
-
"Est. reading time"?: string;
|
|
193
|
-
}
|
package/build/post-type.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export var PostTaxonomy;
|
|
2
|
-
(function (PostTaxonomy) {
|
|
3
|
-
PostTaxonomy["BreadCrumbs"] = "bread_crumbs";
|
|
4
|
-
PostTaxonomy["Category"] = "category";
|
|
5
|
-
PostTaxonomy["PostTag"] = "post_tag";
|
|
6
|
-
})(PostTaxonomy || (PostTaxonomy = {}));
|
|
7
|
-
export var PotentialActionType;
|
|
8
|
-
(function (PotentialActionType) {
|
|
9
|
-
PotentialActionType["CommentAction"] = "CommentAction";
|
|
10
|
-
PotentialActionType["ReadAction"] = "ReadAction";
|
|
11
|
-
PotentialActionType["SearchAction"] = "SearchAction";
|
|
12
|
-
})(PotentialActionType || (PotentialActionType = {}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["../src/APIConfig.tsx","../src/APIutils.ts","../src/Blocks.tsx","../src/CSVSourceConfig.tsx","../src/ChartColors.tsx","../src/ChartLegends.tsx","../src/ChartMeasures.tsx","../src/Constants.ts","../src/DataFilters.tsx","../src/Format.tsx","../src/MapCSVSourceConfig.tsx","../src/Measures.tsx","../src/MobileConfigUtils.ts","../src/Tooltip.tsx","../src/Util.tsx","../src/common-types.d.ts","../src/index.ts","../src/post-type.ts","../src/types.ts","../src/hooks/index.ts","../src/icons/Chart.tsx","../src/icons/Generic.tsx","../src/icons/index.ts"],"version":"5.8.3"}
|