@gravitee/graphene-core 2.52.0-feat-layout-content-width-tiers.35c2ff9 → 2.52.0-graphene-142-code-editor.aaa181c

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 (43) hide show
  1. package/USAGE_GUIDE.md +11 -145
  2. package/dist/CodeEditor-Cnn11Gx1.js +2010 -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/index.d.ts +1 -0
  8. package/dist/__stories__/fixtures/json-schema-form/index.d.ts.map +1 -1
  9. package/dist/code-editor/index.js +2 -228
  10. package/dist/composed/AppLayout/AppLayout.d.ts +4 -17
  11. package/dist/composed/AppLayout/AppLayout.d.ts.map +1 -1
  12. package/dist/composed/CodeEditor/CodeEditor.d.ts.map +1 -1
  13. package/dist/composed/CodeEditor/setupCodeEditor.d.ts +34 -39
  14. package/dist/composed/CodeEditor/setupCodeEditor.d.ts.map +1 -1
  15. package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
  16. package/dist/composed/JsonSchemaForm/fields/code-editor/CodeEditorField.d.ts +8 -0
  17. package/dist/composed/JsonSchemaForm/fields/code-editor/CodeEditorField.d.ts.map +1 -0
  18. package/dist/composed/JsonSchemaForm/models/json-schema.types.d.ts +5 -5
  19. package/dist/composed/JsonSchemaForm/models/json-schema.types.d.ts.map +1 -1
  20. package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts +2 -1
  21. package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts.map +1 -1
  22. package/dist/composed/LayoutSlots/LayoutSlotsContext.d.ts +1 -11
  23. package/dist/composed/LayoutSlots/LayoutSlotsContext.d.ts.map +1 -1
  24. package/dist/composed/LayoutSlots/use-layout-config.d.ts +0 -3
  25. package/dist/composed/LayoutSlots/use-layout-config.d.ts.map +1 -1
  26. package/dist/index.d.ts +0 -2
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +7636 -7626
  29. package/dist/styles/globals.css +1 -1
  30. package/dist/styles/tailwind-theme.css +0 -3
  31. package/dist/tokens/component.css +1 -3
  32. package/package.json +2 -2
  33. package/snippets/context-sidebar-detail-page.tsx +1 -10
  34. package/snippets/data-table-list-page.tsx +0 -5
  35. package/dist/Skeleton-C30qULzD.js +0 -1745
  36. package/dist/composed/PageContent/PageContent.d.ts +0 -60
  37. package/dist/composed/PageContent/PageContent.d.ts.map +0 -1
  38. package/dist/composed/PageContent/index.d.ts +0 -3
  39. package/dist/composed/PageContent/index.d.ts.map +0 -1
  40. package/dist/lib/view-transitions.d.ts +0 -14
  41. package/dist/lib/view-transitions.d.ts.map +0 -1
  42. package/snippets/creation-wizard-page.tsx +0 -121
  43. package/snippets/form-settings-page.tsx +0 -112
@@ -118,9 +118,6 @@
118
118
 
119
119
  /* ── Layout ─────────────────────────────────────── */
120
120
  --container-content: var(--content-max-width);
121
- --max-width-content: var(--content-max-width);
122
- --max-width-form: var(--content-form-width);
123
- --max-width-focused: var(--content-focused-width);
124
121
 
125
122
  /* ── Radius ──────────────────────────────────────── */
126
123
  --radius-sm: calc(var(--radius) - 0.125rem);
@@ -23,9 +23,7 @@
23
23
 
24
24
  /* ── Content area ────────────────────────────────── */
25
25
  --content-padding: var(--graphene-spacing-6);
26
- --content-max-width: 100rem;
27
- --content-form-width: 80rem;
28
- --content-focused-width: 56rem;
26
+ --content-max-width: 80rem;
29
27
 
30
28
  /* ── Derived layout ────────────────────────────── */
31
29
  --sidebar-height: 100svh;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/graphene-core",
3
- "version": "2.52.0-feat-layout-content-width-tiers.35c2ff9",
3
+ "version": "2.52.0-graphene-142-code-editor.aaa181c",
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": [
@@ -95,7 +95,7 @@
95
95
  },
96
96
  "peerDependencies": {
97
97
  "@fontsource/dm-sans": ">=5.0.0",
98
- "@gravitee/graphene-core": "2.52.0-feat-layout-content-width-tiers.35c2ff9",
98
+ "@gravitee/graphene-core": "2.52.0-graphene-142-code-editor.aaa181c",
99
99
  "@monaco-editor/react": "^4.7.0",
100
100
  "@tanstack/react-table": "^8.0.0",
101
101
  "@testing-library/dom": ">=10.0.0",
@@ -77,16 +77,7 @@ export function ResourceDetailPage({
77
77
  );
78
78
  }
79
79
 
80
- // 3. Content width tier:
81
- // Detail pages use the **default** content tier (80rem / 1280px). No
82
- // useLayoutConfig call is needed for width — AppLayout applies it automatically.
83
- // Do NOT set max-w-* classes on page wrappers.
84
- //
85
- // Use contentVariant: 'wide' only for DataTable list pages (see data-table-list-page snippet).
86
- // Use contentVariant: 'full-bleed' only for tool layouts (Policy Studio) or
87
- // observability pages (dashboards, log/trace explorers).
88
-
89
- // 4. With LayoutSlots (module federation):
80
+ // 3. With LayoutSlots (module federation):
90
81
  // If using useLayoutConfig instead of direct props, push the sidebar from
91
82
  // inside your module component. The host owns appContext in ContentHeader;
92
83
  // modules only set breadcrumbs, leading, and contextSidebar.
@@ -3,11 +3,6 @@
3
3
  // Use when building a list page for server-paginated entity data (APIs, Applications,
4
4
  // Policies, Agents, Plans, etc.) — any CRUD list where users manage entities.
5
5
  //
6
- // Content width: DataTable list pages use the full default container (100rem / 1600px).
7
- // No `useLayoutConfig` call needed — the default container is already 100rem.
8
- // Do NOT wrap in <PageSection> — tables should fill the available width.
9
- // Do NOT set max-w-* classes on page wrappers — the design system handles it.
10
- //
11
6
  // Do NOT use for:
12
7
  // - Static key-value detail panels (use raw Table)
13
8
  // - Time-series/triage explorers (logs, traces) — see Record Explorer pattern (deferred)