@zac-apps/helium 2.0.0-beta.12 → 2.0.0-beta.13

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.
Files changed (2) hide show
  1. package/dist/index.js +20 -29
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import EstimatedConsumptionPanel from '@/helium/panels/EstimatedConsumptionPanel
11
11
  import EstimationPanel from '@/helium/panels/EstimationPanel.js';
12
12
  import FillTargetPanel from '@/helium/panels/FillTargetPanel.js';
13
13
  import { AppTheme, PublicFetch, Progress, AppGrid } from '@zac-apps/commons';
14
- import { LookupContext } from '@/helium/HeliumContext.js';
14
+ import { HeliumContext } from '@/helium/HeliumContext.js';
15
15
  import { jsx, jsxs } from 'react/jsx-runtime';
16
16
 
17
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -55,6 +55,7 @@ function Helium(props) {
55
55
  var maxHeight = matches ? props.maxHeight || 1280 : 1000000;
56
56
  var cardSize = matches ? 6 : 12;
57
57
  var collapsed = !matches;
58
+ var bottomMargin = 1;
58
59
 
59
60
  // fetch data
60
61
 
@@ -105,43 +106,33 @@ function Helium(props) {
105
106
  if (!graphDataMeta) {
106
107
  graphDataMeta = {};
107
108
  }
109
+
110
+ // Define values to pass in Context
111
+
112
+ var contextCollection = {
113
+ heliumData: heliumData,
114
+ SetHeliumData: SetHeliumData,
115
+ levelsEdited: levelsEdited,
116
+ SetLevelsEdited: SetLevelsEdited,
117
+ heliumLookupData: heliumLookupData,
118
+ cardSize: cardSize,
119
+ collapsed: collapsed,
120
+ matches: matches,
121
+ bottomMargin: bottomMargin
122
+ };
108
123
  return /*#__PURE__*/jsx(AppGrid, {
109
- children: /*#__PURE__*/jsxs(LookupContext.Provider, {
110
- value: heliumLookupData,
124
+ children: /*#__PURE__*/jsxs(HeliumContext.Provider, {
125
+ value: contextCollection,
111
126
  children: [site.showGraphs ? /*#__PURE__*/jsx(GraphsPanel, {
112
127
  graphData: graphData,
113
- graphDataMeta: graphDataMeta,
114
- matches: matches,
115
- collapsed: collapsed
128
+ graphDataMeta: graphDataMeta
116
129
  }) : null, /*#__PURE__*/jsxs(Grid, {
117
130
  sx: {
118
131
  display: "flex",
119
132
  flexFlow: "column wrap",
120
133
  maxHeight: maxHeight
121
134
  },
122
- children: [/*#__PURE__*/jsx(CalculatorPanel, {
123
- heliumLookupData: heliumLookupData,
124
- heliumData: heliumData,
125
- SetHeliumData: SetHeliumData,
126
- levelsEdited: levelsEdited,
127
- SetLevelsEdited: SetLevelsEdited,
128
- cardSize: cardSize,
129
- collapsed: collapsed
130
- }), /*#__PURE__*/jsx(SpectrometerSetPanel, {
131
- heliumData: heliumData,
132
- cardSize: cardSize,
133
- collapsed: collapsed
134
- }), /*#__PURE__*/jsx(EstimatedConsumptionPanel, {
135
- cardSize: cardSize,
136
- collapsed: collapsed
137
- }), /*#__PURE__*/jsx(EstimationPanel, {
138
- heliumLookupData: heliumLookupData,
139
- heliumData: heliumData,
140
- cardSize: cardSize
141
- }), /*#__PURE__*/jsx(FillTargetPanel, {
142
- heliumData: heliumData,
143
- cardSize: cardSize
144
- })]
135
+ children: [/*#__PURE__*/jsx(CalculatorPanel, {}), /*#__PURE__*/jsx(SpectrometerSetPanel, {}), /*#__PURE__*/jsx(EstimatedConsumptionPanel, {}), /*#__PURE__*/jsx(EstimationPanel, {}), /*#__PURE__*/jsx(FillTargetPanel, {})]
145
136
  })]
146
137
  })
147
138
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zac-apps/helium",
3
- "version": "2.0.0-beta.12",
3
+ "version": "2.0.0-beta.13",
4
4
  "scripts": {
5
5
  "rollup": "node_modules/rollup/dist/rollup.js",
6
6
  "dev": "next dev",
@@ -58,7 +58,7 @@
58
58
  "storybook": "^10.0.8"
59
59
  },
60
60
  "peerDependencies": {
61
- "@zac-apps/commons": "^2",
61
+ "@zac-apps/commons": "^2.1",
62
62
  "next": "^16 || ^15",
63
63
  "react": "^19 || ^18",
64
64
  "react-dom": "^19 || ^18"