@gravitee/graphene-core 3.1.0 → 3.2.0-gma-901.04450c7

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.
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export { sampleApps, sampleAppsExtended } from './shell/app-switcher.fixture';
6
6
  export { sampleEnvironments, sampleEnvironmentsForSidebar } from './shell/environment-picker.fixture';
7
- export { agentManagementApps, agentManagementNavGroups, contextNavGroups, contextPageTabKeys, findContextLabel, findNavLabel, pageLayoutNavGroups, sampleNavGroups, } from './navigation.fixture';
7
+ export { agentManagementApps, agentManagementNavGroups, contextNavGroups, contextPageTabKeys, findContextLabel, findNavLabel, licenseAwareNavGroups, pageLayoutNavGroups, sampleNavGroups, } from './navigation.fixture';
8
8
  export { jsonSchemaFormArrayExampleSchema, jsonSchemaFormBannerSchema, jsonSchemaFormCodeEditorSchema, jsonSchemaFormCombinatorsExampleSchema, jsonSchemaFormDependenciesSchema, jsonSchemaFormDeprecatedSchema, jsonSchemaFormDisableIfSchema, jsonSchemaFormDisplayIfSchema, jsonSchemaFormEnumExampleSchema, jsonSchemaFormPlaygroundSchema, } from './json-schema-form';
9
9
  export { jsonSchemaFormObjectVariantsSchema } from './json-schema-form-object-variants.fixture';
10
10
  export { catalogApis } from './apim/api-catalog.fixture';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAEtG,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAC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AE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC"}
@@ -15,4 +15,9 @@ export declare function findContextLabel(key: string): string;
15
15
  /** Agent Management shell — sidebar nav + app switcher options for Empty List / agent stories. */
16
16
  export declare const agentManagementNavGroups: NavGroup[];
17
17
  export declare const agentManagementApps: SelectorOption[];
18
+ /**
19
+ * License-aware Agent Management sidebar: a subset of items is gated behind a higher-tier
20
+ * license (`isLocked: true`). Mirrors the design proposition for the license-menu US.
21
+ */
22
+ export declare const licenseAwareNavGroups: NavGroup[];
18
23
  //# sourceMappingURL=navigation.fixture.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/navigation.fixture.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AAsBxF,8EAA8E;AAC9E,eAAO,MAAM,eAAe,EAAE,QAAQ,EAwBrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,EAazC,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,gBAAgB,EAAE,QAAQ,EA8BtC,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB,4DAA6D,CAAC;AAE7F,wBAAgB,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,SAAS,GAAG,MAAM,CAOvF;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,kGAAkG;AAClG,eAAO,MAAM,wBAAwB,EAAE,QAAQ,EA4B9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,EAG/C,CAAC"}
1
+ {"version":3,"file":"navigation.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/navigation.fixture.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AA+BxF,8EAA8E;AAC9E,eAAO,MAAM,eAAe,EAAE,QAAQ,EAwBrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,EAazC,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,gBAAgB,EAAE,QAAQ,EA8BtC,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB,4DAA6D,CAAC;AAE7F,wBAAgB,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,SAAS,GAAG,MAAM,CAOvF;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,kGAAkG;AAClG,eAAO,MAAM,wBAAwB,EAAE,QAAQ,EA4B9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,EAG/C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAAQ,EAmC3C,CAAC"}
@@ -13,8 +13,15 @@ interface AppSidebarProps {
13
13
  * (SidebarGroup, SidebarMenu, etc.).
14
14
  */
15
15
  readonly renderNavigation?: () => ReactNode;
16
+ /**
17
+ * Optional render prop for a persistent footer slot rendered above the
18
+ * built-in sidebar-mode control. Typical use: an upgrade / license nudge
19
+ * card. Rendered only when the sidebar is expanded; hidden in collapsed
20
+ * mode to preserve icon-only density.
21
+ */
22
+ readonly renderFooter?: () => ReactNode;
16
23
  }
17
- declare function AppSidebar({ className, onLogoClick, renderNavigation }: AppSidebarProps): import("react").JSX.Element;
24
+ declare function AppSidebar({ className, onLogoClick, renderNavigation, renderFooter }: AppSidebarProps): import("react").JSX.Element;
18
25
  declare namespace AppSidebar {
19
26
  var displayName: string;
20
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AppSidebar.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSidebar/AppSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAmBvC,UAAU,eAAe;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAElC;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,SAAS,CAAC;CAC7C;AASD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,EAAE,eAAe,+BAkDhF;kBAlDQ,UAAU;;;AAsDnB,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"AppSidebar.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSidebar/AppSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAmBvC,UAAU,eAAe;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAElC;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,SAAS,CAAC;IAE5C;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,SAAS,CAAC;CACzC;AASD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,EAAE,eAAe,+BAmD9F;kBAnDQ,UAAU;;;AAuDnB,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarNavigation.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSidebar/SidebarNavigation.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,iBAAS,iBAAiB,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE,sBAAsB,+BAwBzF;kBAxBQ,iBAAiB;;;AA4B1B,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"SidebarNavigation.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSidebar/SidebarNavigation.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,iBAAS,iBAAiB,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE,sBAAsB,+BAoDzF;kBApDQ,iBAAiB;;;AAwD1B,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,38 @@
1
+ interface SidebarUpgradeFooterProps {
2
+ /**
3
+ * Names of the sidebar items currently gated behind an upgrade (typically derived
4
+ * from a license check at the composition site). Used to build a short, specific
5
+ * summary ("Get access to MCP Resources, Skills and more.").
6
+ * When empty, the footer renders nothing — no locked items, no nudge.
7
+ */
8
+ readonly lockedFeatures: readonly string[];
9
+ }
10
+ /**
11
+ * Persistent upgrade nudge for the bottom of an expanded sidebar. Names the currently-locked
12
+ * features in a short summary and links straight to the Gravitee enterprise trial page.
13
+ *
14
+ * The CTA is a direct external link (not a dialog trigger); the footer already surfaces the
15
+ * value proposition inline, so a two-step "click for details then click to leave" flow would
16
+ * only add friction. Use `UpgradeDialog` on surfaces that genuinely need to sell features
17
+ * before the redirect (home cards for absent modules, contextual gates on deploy buttons).
18
+ *
19
+ * Silently renders `null` when `lockedFeatures` is empty — the footer is a nudge, not permanent
20
+ * chrome. If the tenant's license unlocks everything visible in the sidebar, no nudge shows.
21
+ *
22
+ * Drop it into `AppSidebar` via the `renderFooter` slot:
23
+ *
24
+ * ```tsx
25
+ * <AppSidebar
26
+ * renderFooter={() => (
27
+ * <SidebarUpgradeFooter lockedFeatures={['MCP Resources', 'Skills', 'Agent Identity']} />
28
+ * )}
29
+ * />
30
+ * ```
31
+ */
32
+ declare function SidebarUpgradeFooter({ lockedFeatures }: SidebarUpgradeFooterProps): import("react").JSX.Element | null;
33
+ declare namespace SidebarUpgradeFooter {
34
+ var displayName: string;
35
+ }
36
+ export { SidebarUpgradeFooter };
37
+ export type { SidebarUpgradeFooterProps };
38
+ //# sourceMappingURL=SidebarUpgradeFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarUpgradeFooter.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSidebar/SidebarUpgradeFooter.tsx"],"names":[],"mappings":"AASA,UAAU,yBAAyB;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAS,oBAAoB,CAAC,EAAE,cAAc,EAAE,EAAE,yBAAyB,sCAmB1E;kBAnBQ,oBAAoB;;;AA8B7B,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAChC,YAAY,EAAE,yBAAyB,EAAE,CAAC"}
@@ -6,5 +6,7 @@ export { ContextToggleButton } from './ContextToggleButton';
6
6
  export type { ContextToggleButtonProps } from './ContextToggleButton';
7
7
  export { SidebarNavigation } from './SidebarNavigation';
8
8
  export type { SidebarNavigationProps } from './SidebarNavigation';
9
+ export { SidebarUpgradeFooter } from './SidebarUpgradeFooter';
10
+ export type { SidebarUpgradeFooterProps } from './SidebarUpgradeFooter';
9
11
  export type { NavGroup, NavItem } from './types';
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAExE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
@@ -3,6 +3,7 @@ interface NavItem {
3
3
  readonly key: string;
4
4
  readonly title: string;
5
5
  readonly icon?: ElementType;
6
+ readonly isLocked?: boolean;
6
7
  }
7
8
  interface NavGroup {
8
9
  readonly label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSidebar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,UAAU,OAAO;IACf,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED,UAAU,QAAQ;IAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC;CAC3B;AAED,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSidebar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,UAAU,OAAO;IACf,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,UAAU,QAAQ;IAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC;CAC3B;AAED,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC"}