@campfire-interactive/shell-header 0.8.10 → 0.8.12

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 +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -177,6 +177,10 @@ function AppSwitcher({ currentAppId, authorizedApps, currentTenantRole }) {
177
177
  const visibleApps = appCatalog.filter(
178
178
  (a) => authorizedApps.includes(a.id) && (!a.requiresRole || currentTenantRole !== void 0 && a.requiresRole.includes(currentTenantRole))
179
179
  );
180
+ const orderedApps = [
181
+ ...visibleApps.filter((a) => a.group !== "admin"),
182
+ ...visibleApps.filter((a) => a.group === "admin")
183
+ ];
180
184
  useEffect(() => {
181
185
  function handleClickOutside(e) {
182
186
  if (ref.current && !ref.current.contains(e.target)) {
@@ -198,7 +202,7 @@ function AppSwitcher({ currentAppId, authorizedApps, currentTenantRole }) {
198
202
  children: /* @__PURE__ */ jsx2(GridIcon, { size: 20 })
199
203
  }
200
204
  ),
201
- open && /* @__PURE__ */ jsx2("div", { className: "cfi-sh-app-grid", children: visibleApps.map((app) => {
205
+ open && /* @__PURE__ */ jsx2("div", { className: "cfi-sh-app-grid", children: orderedApps.map((app) => {
202
206
  const Icon = getIcon(app.icon);
203
207
  const isCurrent = app.id === currentAppId;
204
208
  return /* @__PURE__ */ jsxs2(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campfire-interactive/shell-header",
3
- "version": "0.8.10",
3
+ "version": "0.8.12",
4
4
  "description": "Shared shell header with app switcher for Campfire Suite",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",