@corva/ui 3.76.1 → 3.76.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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="true"===process.env.REACT_APP_MAPBOX_ENABLED;exports.IS_MAPBOX_ENABLED=e,exports.MAP_BOX_ACCESS_TOKEN="pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="true"===process.env.REACT_APP_MAPBOX_ENABLED&&function(){try{var e=document.createElement("canvas");return Boolean(e.getContext("webgl2")||e.getContext("webgl"))}catch(e){return!1}}();exports.IS_MAPBOX_ENABLED=e,exports.MAP_BOX_ACCESS_TOKEN="pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/config/mapbox/index.js"],"sourcesContent":["// NOTE: Access token from Jim Wang\nexport const MAP_BOX_ACCESS_TOKEN =\n 'pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw';\n\n// Airgapped deployments cannot reach api.mapbox.com, so their maps must never mount.\n// The host app inlines this at its own build (corva-web-frontend maps VITE_ to REACT_APP_).\nexport const IS_MAPBOX_ENABLED = process.env.REACT_APP_MAPBOX_ENABLED === 'true';\n"],"names":["IS_MAPBOX_ENABLED","process","env","REACT_APP_MAPBOX_ENABLED"],"mappings":"oEACO,IAKMA,EAA6D,SAAzCC,QAAQC,IAAIC,kFAJ3C"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/config/mapbox/index.js"],"sourcesContent":["// NOTE: Access token from Jim Wang\nexport const MAP_BOX_ACCESS_TOKEN =\n 'pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw';\n\n// Airgapped deployments cannot reach api.mapbox.com, so their maps must never mount.\n// The host app inlines this at its own build (corva-web-frontend maps VITE_ to REACT_APP_).\n// Mapbox needs a WebGL context; where there is none its Map constructor throws and\n// takes the whole host app down. The scheduled PDF report renderer is headless with\n// no GPU, so treat that the same way as an airgapped deployment and never mount.\n// Probed inline rather than via mapboxgl.supported() so importing the access token\n// does not pull the mapbox-gl bundle into every consumer of this module.\nconst isWebGlAvailable = () => {\n try {\n const canvas = document.createElement('canvas');\n return Boolean(canvas.getContext('webgl2') || canvas.getContext('webgl'));\n } catch {\n return false;\n }\n};\n\nexport const IS_MAPBOX_ENABLED =\n process.env.REACT_APP_MAPBOX_ENABLED === 'true' && isWebGlAvailable();\n"],"names":["IS_MAPBOX_ENABLED","process","env","REACT_APP_MAPBOX_ENABLED","canvas","document","createElement","Boolean","getContext","_unused","isWebGlAvailable"],"mappings":"oEACO,IAmBMA,EAC8B,SAAzCC,QAAQC,IAAIC,0BAVW,WACvB,IACE,IAAMC,EAASC,SAASC,cAAc,UACtC,OAAOC,QAAQH,EAAOI,WAAW,WAAaJ,EAAOI,WAAW,SAGlE,CAFE,MAAMC,GACN,OAAO,CACT,CACF,CAGqDC,4DAnBnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/mapbox/index.js"],"names":[],"mappings":"AACA,eAAO,MAAM,oBAAoB,+FAC6D,CAAC;AAI/F,eAAO,MAAM,iBAAiB,SAAkD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/mapbox/index.js"],"names":[],"mappings":"AACA,eAAO,MAAM,oBAAoB,+FAC6D,CAAC;AAkB/F,eAAO,MAAM,iBAAiB,SACyC,CAAC"}
@@ -1,2 +1,2 @@
1
- var e="pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw",j="true"===process.env.REACT_APP_MAPBOX_ENABLED;export{j as IS_MAPBOX_ENABLED,e as MAP_BOX_ACCESS_TOKEN};
1
+ var e="pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw",t="true"===process.env.REACT_APP_MAPBOX_ENABLED&&function(){try{var e=document.createElement("canvas");return Boolean(e.getContext("webgl2")||e.getContext("webgl"))}catch(e){return!1}}();export{t as IS_MAPBOX_ENABLED,e as MAP_BOX_ACCESS_TOKEN};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/config/mapbox/index.js"],"sourcesContent":["// NOTE: Access token from Jim Wang\nexport const MAP_BOX_ACCESS_TOKEN =\n 'pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw';\n\n// Airgapped deployments cannot reach api.mapbox.com, so their maps must never mount.\n// The host app inlines this at its own build (corva-web-frontend maps VITE_ to REACT_APP_).\nexport const IS_MAPBOX_ENABLED = process.env.REACT_APP_MAPBOX_ENABLED === 'true';\n"],"names":["MAP_BOX_ACCESS_TOKEN","IS_MAPBOX_ENABLED","process","env","REACT_APP_MAPBOX_ENABLED"],"mappings":"AACO,IAAMA,EACX,6FAIWC,EAA6D,SAAzCC,QAAQC,IAAIC"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/config/mapbox/index.js"],"sourcesContent":["// NOTE: Access token from Jim Wang\nexport const MAP_BOX_ACCESS_TOKEN =\n 'pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw';\n\n// Airgapped deployments cannot reach api.mapbox.com, so their maps must never mount.\n// The host app inlines this at its own build (corva-web-frontend maps VITE_ to REACT_APP_).\n// Mapbox needs a WebGL context; where there is none its Map constructor throws and\n// takes the whole host app down. The scheduled PDF report renderer is headless with\n// no GPU, so treat that the same way as an airgapped deployment and never mount.\n// Probed inline rather than via mapboxgl.supported() so importing the access token\n// does not pull the mapbox-gl bundle into every consumer of this module.\nconst isWebGlAvailable = () => {\n try {\n const canvas = document.createElement('canvas');\n return Boolean(canvas.getContext('webgl2') || canvas.getContext('webgl'));\n } catch {\n return false;\n }\n};\n\nexport const IS_MAPBOX_ENABLED =\n process.env.REACT_APP_MAPBOX_ENABLED === 'true' && isWebGlAvailable();\n"],"names":["MAP_BOX_ACCESS_TOKEN","IS_MAPBOX_ENABLED","process","env","REACT_APP_MAPBOX_ENABLED","canvas","document","createElement","Boolean","getContext","_unused","isWebGlAvailable"],"mappings":"AACO,IAAMA,EACX,6FAkBWC,EAC8B,SAAzCC,QAAQC,IAAIC,0BAVW,WACvB,IACE,IAAMC,EAASC,SAASC,cAAc,UACtC,OAAOC,QAAQH,EAAOI,WAAW,WAAaJ,EAAOI,WAAW,SAGlE,CAFE,MAAMC,GACN,OAAO,CACT,CACF,CAGqDC"}
@@ -248,7 +248,7 @@ const validateDsn = dsn => {
248
248
 
249
249
  const MCP_SERVER_VERSION = '1.5.0';
250
250
 
251
- var version = "3.76.1";
251
+ var version = "3.76.2";
252
252
 
253
253
  const CORVA_UI_VERSION = version;
254
254
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "3.76.1",
3
+ "version": "3.76.2",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Shared components/utils for Corva ui projects",
6
6
  "repository": {