@gravitee/graphene-core 3.50.0-feat-app-context-switcher.ae2d062 → 3.50.0-feat-app-context-switcher.d2fa599

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 +1 @@
1
- {"version":3,"file":"AppContextSwitcher.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/AppContextSwitcher.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AA2B1E;;;;;;;;;;GAUG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,MAAM,EACN,WAAmB,EACnB,YAAY,EACZ,SAAS,EACT,aAAa,EAAE,MAAM,GACtB,EAAE,uBAAuB,+BAqPzB;kBAjQQ,kBAAkB;;;AAqQ3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"AppContextSwitcher.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/AppContextSwitcher.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AA2B1E;;;;;;;;;;GAUG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,MAAM,EACN,WAAmB,EACnB,YAAY,EACZ,SAAS,EACT,aAAa,EAAE,MAAM,GACtB,EAAE,uBAAuB,+BAyPzB;kBArQQ,kBAAkB;;;AAyQ3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -25441,7 +25441,9 @@ function iG({ apps: e, environments: n, entrance: r, activeAppKey: i, activeEnvi
25441
25441
  onKeyDown: (e) => {
25442
25442
  if (tG.has(e.key) || v("keyboard"), e.nativeEvent.isComposing || e.keyCode === 229 || e.altKey) return;
25443
25443
  let t = e.ctrlKey || e.metaKey || e.shiftKey;
25444
- t && e.key === "Enter" && k(e), !t && (e.key === "Enter" ? f.pickHighlightedEnvironment() : HW(e.key) && f.moveHighlight(e.key)) && (e.preventDefault(), E());
25444
+ if (t && e.key === "Enter" && k(e), t) return;
25445
+ let n = p.current;
25446
+ e.key === "ArrowRight" && n !== null && n.selectionEnd !== n.value.length || (e.key === "Enter" ? f.pickHighlightedEnvironment() : HW(e.key) && f.moveHighlight(e.key)) && (e.preventDefault(), E());
25445
25447
  },
25446
25448
  onPointerDown: () => v("pointer"),
25447
25449
  onPointerMove: () => v("pointer"),
@@ -25479,7 +25481,7 @@ function iG({ apps: e, environments: n, entrance: r, activeAppKey: i, activeEnvi
25479
25481
  overTiles: f.singleEnvironment,
25480
25482
  href: P,
25481
25483
  onSelect: () => {
25482
- f.changeOpen(!1), !(y !== void 0 && f.inActiveEnvironment) && o({
25484
+ f.changeOpen(!1), !(y !== void 0 && (!C || f.inActiveEnvironment)) && o({
25483
25485
  kind: "entrance",
25484
25486
  environmentKey: f.selectedEnvironmentKey
25485
25487
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/graphene-core",
3
- "version": "3.50.0-feat-app-context-switcher.ae2d062",
3
+ "version": "3.50.0-feat-app-context-switcher.d2fa599",
4
4
  "type": "module",
5
5
  "description": "Gravitee's Graphene design system: accessible React components, design tokens, icons, and shared ESLint/TypeScript configs. Built on shadcn/ui and Tailwind.",
6
6
  "keywords": [
@@ -103,7 +103,7 @@
103
103
  },
104
104
  "peerDependencies": {
105
105
  "@fontsource/dm-sans": ">=5.0.0",
106
- "@gravitee/graphene-core": "3.50.0-feat-app-context-switcher.ae2d062",
106
+ "@gravitee/graphene-core": "3.50.0-feat-app-context-switcher.d2fa599",
107
107
  "@monaco-editor/react": "^4.7.0",
108
108
  "@tanstack/react-table": "^8.0.0",
109
109
  "@testing-library/dom": ">=10.0.0",