@gravitee/graphene-core 2.56.0-fix-monaco-hover.c920ed9 → 2.56.0-fix-monaco-hover.4094601

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 (52) hide show
  1. package/USAGE_GUIDE.md +42 -0
  2. package/dist/CodeEditor-BPoB8iRS.js +2011 -0
  3. package/dist/__stories__/fixtures/index.d.ts +1 -1
  4. package/dist/__stories__/fixtures/index.d.ts.map +1 -1
  5. package/dist/__stories__/fixtures/json-schema-form/code-editor.fixture.d.ts +14 -0
  6. package/dist/__stories__/fixtures/json-schema-form/code-editor.fixture.d.ts.map +1 -0
  7. package/dist/__stories__/fixtures/json-schema-form/disableIf.fixture.d.ts.map +1 -1
  8. package/dist/__stories__/fixtures/json-schema-form/displayIf.fixture.d.ts.map +1 -1
  9. package/dist/__stories__/fixtures/json-schema-form/index.d.ts +1 -0
  10. package/dist/__stories__/fixtures/json-schema-form/index.d.ts.map +1 -1
  11. package/dist/code-editor/index.js +2 -229
  12. package/dist/composed/AppLayout/AppLayout.d.ts +8 -0
  13. package/dist/composed/AppLayout/AppLayout.d.ts.map +1 -1
  14. package/dist/composed/CodeEditor/CodeEditor.d.ts.map +1 -1
  15. package/dist/composed/CodeEditor/setupCodeEditor.d.ts +34 -39
  16. package/dist/composed/CodeEditor/setupCodeEditor.d.ts.map +1 -1
  17. package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts.map +1 -1
  18. package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
  19. package/dist/composed/JsonSchemaForm/conditional/ConditionalGate.d.ts.map +1 -1
  20. package/dist/composed/JsonSchemaForm/conditional/concretizeCondition.d.ts.map +1 -1
  21. package/dist/composed/JsonSchemaForm/conditional/evalCondition.d.ts +6 -6
  22. package/dist/composed/JsonSchemaForm/conditional/evalCondition.d.ts.map +1 -1
  23. package/dist/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.d.ts +1 -0
  24. package/dist/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.d.ts.map +1 -1
  25. package/dist/composed/JsonSchemaForm/fields/code-editor/CodeEditorField.d.ts +8 -0
  26. package/dist/composed/JsonSchemaForm/fields/code-editor/CodeEditorField.d.ts.map +1 -0
  27. package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts.map +1 -1
  28. package/dist/composed/JsonSchemaForm/models/json-schema.types.d.ts +5 -5
  29. package/dist/composed/JsonSchemaForm/models/json-schema.types.d.ts.map +1 -1
  30. package/dist/composed/JsonSchemaForm/schema/buildIndex.d.ts.map +1 -1
  31. package/dist/composed/JsonSchemaForm/schema/types.d.ts +3 -1
  32. package/dist/composed/JsonSchemaForm/schema/types.d.ts.map +1 -1
  33. package/dist/composed/JsonSchemaForm/utils/readPath.d.ts +12 -0
  34. package/dist/composed/JsonSchemaForm/utils/readPath.d.ts.map +1 -0
  35. package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts +2 -1
  36. package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts.map +1 -1
  37. package/dist/composed/LayoutSlots/LayoutSlotsContext.d.ts +4 -0
  38. package/dist/composed/LayoutSlots/LayoutSlotsContext.d.ts.map +1 -1
  39. package/dist/icons/index.d.ts +1 -0
  40. package/dist/icons/index.d.ts.map +1 -1
  41. package/dist/icons/index.js +2 -2
  42. package/dist/icons/products/GioEdgeManagementIcon.d.ts +3 -0
  43. package/dist/icons/products/GioEdgeManagementIcon.d.ts.map +1 -0
  44. package/dist/{icons-DdCWtjqd.js → icons-YplRdF9A.js} +316 -38
  45. package/dist/index.js +8332 -8261
  46. package/dist/styles/custom-variants.css +15 -0
  47. package/dist/styles/globals.css +1 -1
  48. package/package.json +2 -2
  49. package/snippets/context-sidebar-detail-page.tsx +21 -0
  50. package/snippets/json-schema-form-simple.tsx +20 -2
  51. package/snippets/json-schema-form-with-meta.tsx +18 -3
  52. package/dist/Skeleton-C30qULzD.js +0 -1745
package/USAGE_GUIDE.md CHANGED
@@ -314,6 +314,48 @@ With `useLayoutConfig` (module federation), a nested page can set `contentVarian
314
314
  useLayoutConfig({ contentVariant: 'full-bleed' }, []);
315
315
  ```
316
316
 
317
+ ### `banner` — full-width status slot
318
+
319
+ `AppLayout` accepts a `banner` prop that renders a full-width region above the padded content wrapper but inside the scroll container. Use it for persistent status indicators with an action (deploy status, environment warnings).
320
+
321
+ ```tsx
322
+ // Direct prop usage
323
+ <AppLayout banner={<DeployStrip />} bannerSticky>
324
+ <PageContent />
325
+ </AppLayout>
326
+
327
+ // Module federation via useLayoutConfig
328
+ useLayoutConfig({
329
+ banner: deployState === 'NEED_REDEPLOY' ? (
330
+ <DeployStrip onDeploy={handleDeploy} isPending={isPending} />
331
+ ) : null,
332
+ bannerSticky: true,
333
+ }, [deployState, handleDeploy, isPending]);
334
+ ```
335
+
336
+ The banner spans full width regardless of `contentVariant`. When `bannerSticky` is true, it sticks to the top of the scroll area so the action remains reachable while scrolling.
337
+
338
+ **Button hierarchy:** When a banner contains an action button alongside page content that has its own primary buttons, use an outline treatment on the banner button to avoid competing with the page's primary CTA:
339
+
340
+ ```tsx
341
+ import { Button } from '@gravitee/graphene-core/base/Button';
342
+
343
+ function DeployStrip({ onDeploy, isPending }) {
344
+ return (
345
+ <div role="status" aria-label="Deploy status" className="flex items-center gap-2 border-b border-border px-5 py-1.5">
346
+ <span className="size-1.5 shrink-0 rounded-full bg-warning" />
347
+ <span className="text-sm text-muted-foreground">Undeployed changes</span>
348
+ <div className="flex-1" />
349
+ <Button variant="outline" size="sm" onClick={onDeploy} disabled={isPending}>
350
+ {isPending ? 'Deploying…' : 'Deploy API'}
351
+ </Button>
352
+ </div>
353
+ );
354
+ }
355
+ ```
356
+
357
+ See Storybook **Composed/AppLayout → BannerSlot** for the full interactive example, and `snippets/context-sidebar-detail-page.tsx` for a copy-paste integration pattern.
358
+
317
359
  ### Data table (entity list pages)
318
360
 
319
361
  Use `DataTable` for any entity list — whether the data is fetched page-by-page from an API or loaded in full on the client. The component provides sorting, filtering, pagination, column visibility, row selection, and bulk actions through a composable slot API.