@redus/georedus-ui 0.6.0 → 0.6.2

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.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @orioro/template-react
2
2
 
3
+ ## 0.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: fix viewSpecs loading
8
+
9
+ ## 0.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - removes distinctions from rms (regiões metropolitanas) viewspecs
14
+
3
15
  ## 0.6.0
4
16
 
5
17
  ### Minor Changes
package/dist/main.js CHANGED
@@ -7076,11 +7076,6 @@ function useMapStyle(input, modifier) {
7076
7076
 
7077
7077
  var _excluded = ["layerId", "__filterFeaturesForStep"];
7078
7078
  var _templateObject, _templateObject2, _templateObject3;
7079
-
7080
- //
7081
- // List of municipio ids that are in the RM (Regiões Metropolitanas) dataset
7082
- //
7083
- var RM_MUNICIPIO_IDS_CEM = '/georedus/data/cem_rm_municipio_ids_20250401.csv';
7084
7079
  var LegendContainer = styled(Flex)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-shadow:\n rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,\n rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;\n background-color: white;\n border-radius: 4px;\n"])));
7085
7080
  var SyncedMaps = makeSyncedMaps({
7086
7081
  components: {
@@ -7291,33 +7286,35 @@ function GeoReDUSInner(_ref2) {
7291
7286
  queryKey: ['ViewSpecs', municipioId],
7292
7287
  queryFn: function () {
7293
7288
  var _queryFn = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
7294
- var RM_MUNICIPIO_IDS, SPEC_SRCS;
7289
+ var SPEC_SRCS;
7295
7290
  return _regeneratorRuntime().wrap(function _callee$(_context) {
7296
7291
  while (1) switch (_context.prev = _context.next) {
7297
7292
  case 0:
7298
- _context.t0 = csvParse;
7299
- _context.next = 3;
7300
- return fetch(RM_MUNICIPIO_IDS_CEM).then(function (res) {
7301
- return res.text();
7302
- });
7303
- case 3:
7304
- _context.t1 = _context.sent;
7305
- RM_MUNICIPIO_IDS = (0, _context.t0)(_context.t1);
7306
- SPEC_SRCS = municipioId ? RM_MUNICIPIO_IDS.some(function (m) {
7307
- return m.id_municipio === municipioId;
7308
- }) ? viewSpecs.all : viewSpecs.censo_only : [];
7309
- _context.t2 = resolveViewSpecs;
7310
- _context.next = 9;
7293
+ //
7294
+ // Load municipio ids that have SAUDE and EDUCACAO
7295
+ // datasets
7296
+ //
7297
+ // const RM_MUNICIPIO_IDS = csvParse(
7298
+ // await fetch(RM_MUNICIPIO_IDS_CEM).then((res) => res.text()),
7299
+ // )
7300
+ // const SPEC_SRCS = municipioId
7301
+ // ? RM_MUNICIPIO_IDS.some((m) => m.id_municipio === municipioId)
7302
+ // ? viewSpecs.all
7303
+ // : viewSpecs.censo_only
7304
+ // : []
7305
+ SPEC_SRCS = viewSpecs.all;
7306
+ _context.t0 = resolveViewSpecs;
7307
+ _context.next = 4;
7311
7308
  return fetchViewSpecs(SPEC_SRCS);
7312
- case 9:
7313
- _context.t3 = _context.sent;
7314
- _context.t4 = {
7309
+ case 4:
7310
+ _context.t1 = _context.sent;
7311
+ _context.t2 = {
7315
7312
  METADATA_API_ENDPOINT: METADATA_API_ENDPOINT,
7316
7313
  VECTOR_TILE_SERVER_ENDPOINT: VECTOR_TILE_SERVER_ENDPOINT,
7317
7314
  MAP_TILER_API_KEY: process.env.NEXT_PUBLIC_MAP_TILER_API_KEY
7318
7315
  };
7319
- return _context.abrupt("return", (0, _context.t2)(_context.t3, _context.t4));
7320
- case 12:
7316
+ return _context.abrupt("return", (0, _context.t0)(_context.t1, _context.t2));
7317
+ case 7:
7321
7318
  case "end":
7322
7319
  return _context.stop();
7323
7320
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redus/georedus-ui",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "packageManager": "yarn@4.0.2",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",