@balena/ui-shared-components 15.0.0-build-update-featureflags-typing-82099830be7322959c7939c7f703a31f100bb3f4-1 → 15.0.1-build-fix-missed-spot-feature-flags-typing-change-2b59ded9fccc6fc84f221b3dcd18c741dc5bc2e0-1

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.
@@ -10,12 +10,12 @@ import { CSS } from '@dnd-kit/utilities';
10
10
  import { arrayMove, SortableContext, useSortable } from '@dnd-kit/sortable';
11
11
  import { useAnalyticsContext } from '../../../../contexts/AnalyticsContext';
12
12
  const SortableItem = ({ column, handleColumnSelection, }) => {
13
+ var _a, _b, _c, _d;
13
14
  const { state: analyticsState } = useAnalyticsContext();
14
15
  const { attributes, listeners, setNodeRef, transform, transition } = useSortable({ id: column.key });
15
- return (_jsxs(MenuItem, Object.assign({ ref: setNodeRef }, attributes, { sx: { transform: CSS.Transform.toString(transform), transition }, children: [(analyticsState.featureFlags
16
- ? analyticsState.featureFlags.columnOrdering ||
17
- analyticsState.featureFlags.reducedDefaultDeviceColumnsAndReordering
18
- : false) && (_jsx(ListItemIcon, Object.assign({}, listeners, { sx: {
16
+ return (_jsxs(MenuItem, Object.assign({ ref: setNodeRef }, attributes, { sx: { transform: CSS.Transform.toString(transform), transition }, children: [(((_b = (_a = analyticsState.featureFlags) === null || _a === void 0 ? void 0 : _a['reducedDefaultDeviceColumns']) === null || _b === void 0 ? void 0 : _b.value) ===
17
+ 'on' ||
18
+ ((_d = (_c = analyticsState.featureFlags) === null || _c === void 0 ? void 0 : _c['reducedDefaultDeviceColumnsAndReordering']) === null || _d === void 0 ? void 0 : _d.value) === 'on') && (_jsx(ListItemIcon, Object.assign({}, listeners, { sx: {
19
19
  cursor: 'grab',
20
20
  pr: 2,
21
21
  mx: 0,
@@ -49,13 +49,14 @@ export const TableActions = ({ columns, actions, onColumnPreferencesChange, onMa
49
49
  onColumnPreferencesChange(newColumns, 'display');
50
50
  }, [columns, onColumnPreferencesChange]);
51
51
  const handleDragEnd = (event) => {
52
- var _a, _b;
52
+ var _a, _b, _c, _d;
53
53
  const { active, over } = event;
54
54
  if (!active ||
55
55
  !over ||
56
56
  !onColumnPreferencesChange ||
57
- (!((_a = analyticsState.featureFlags) === null || _a === void 0 ? void 0 : _a.columnOrdering) &&
58
- !((_b = analyticsState.featureFlags) === null || _b === void 0 ? void 0 : _b.reducedDefaultDeviceColumnsAndReordering))) {
57
+ (!(((_b = (_a = analyticsState.featureFlags) === null || _a === void 0 ? void 0 : _a['reducedDefaultDeviceColumns']) === null || _b === void 0 ? void 0 : _b.value) ===
58
+ 'on') &&
59
+ !(((_d = (_c = analyticsState.featureFlags) === null || _c === void 0 ? void 0 : _c['reducedDefaultDeviceColumnsAndReordering']) === null || _d === void 0 ? void 0 : _d.value) === 'on'))) {
59
60
  return;
60
61
  }
61
62
  const oldIndex = columns.findIndex((c) => c.key === active.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/ui-shared-components",
3
- "version": "15.0.0-build-update-featureflags-typing-82099830be7322959c7939c7f703a31f100bb3f4-1",
3
+ "version": "15.0.1-build-fix-missed-spot-feature-flags-typing-change-2b59ded9fccc6fc84f221b3dcd18c741dc5bc2e0-1",
4
4
  "main": "./dist/index.js",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -133,7 +133,7 @@
133
133
  },
134
134
  "homepage": "https://github.com/balena-io/ui-shared-components#readme",
135
135
  "versionist": {
136
- "publishedAt": "2025-10-09T13:57:19.234Z"
136
+ "publishedAt": "2025-10-09T19:34:29.579Z"
137
137
  },
138
138
  "overrides": {
139
139
  "storybook": "$storybook"