@gravitee/graphene-core 3.19.1 → 3.20.0

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.
package/USAGE_GUIDE.md CHANGED
@@ -299,7 +299,7 @@ App and environment switching has moved from the sidebar header into the top con
299
299
 
300
300
  | Prop | Type | Required | Notes |
301
301
  | --- | --- | --- | --- |
302
- | `apps` | `AppDefinition[]` | Yes | Same type used by `AppSwitcher` |
302
+ | `apps` | `AppDefinition[]` | Yes | Same type used by `AppSwitcher`. Set `pinned: true` on a host entry such as Home to give it a compact row of its own above the products |
303
303
  | `activeAppKey` | `string` | Yes | |
304
304
  | `onAppChange` | `(key: string) => void` | No | |
305
305
  | `environments` | `SelectorOption[]` | No | Only rendered when provided and non-empty |
@@ -1 +1 @@
1
- {"version":3,"file":"app-switcher.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/shell/app-switcher.fixture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAkBlF,4EAA4E;AAC5E,eAAO,MAAM,UAAU,EAAE,aAAa,EA0BrC,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAmD7C,CAAC"}
1
+ {"version":3,"file":"app-switcher.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/shell/app-switcher.fixture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAkBlF,4EAA4E;AAC5E,eAAO,MAAM,UAAU,EAAE,aAAa,EAgCrC,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAmD7C,CAAC"}
@@ -4,6 +4,13 @@ interface AppDefinition {
4
4
  readonly label: string;
5
5
  readonly description?: string;
6
6
  readonly icon: ReactNode;
7
+ /**
8
+ * Renders the app first, as a compact single-line row above the grid (icon and label; its
9
+ * description is not shown) — for a host entry such as Home that is not one of the products.
10
+ * Without it, Home takes the first grid cell and every product shifts one cell, so the grid no
11
+ * longer reads in the order the apps were given.
12
+ */
13
+ readonly pinned?: boolean;
7
14
  }
8
15
  interface AppSwitcherProps {
9
16
  readonly apps: AppDefinition[];
@@ -1 +1 @@
1
- {"version":3,"file":"AppSwitcher.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSwitcher/AppSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,UAAU,aAAa;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;CAC1B;AAED,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,aAAa,EAAE,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACpD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BA6CnH;kBA7CQ,WAAW;;;AAiDpB,OAAO,EAAE,WAAW,EAAE,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