@gravitee/graphene-core 3.53.1 → 3.54.0-fix-found-460-validation-scope.9ee2b67

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 (45) hide show
  1. package/USAGE_GUIDE.md +15 -1
  2. package/dist/composed/AppContextBar/AppContextBar.d.ts +8 -1
  3. package/dist/composed/AppContextBar/AppContextBar.d.ts.map +1 -1
  4. package/dist/composed/AppSwitcher/AppSwitcher.d.ts +7 -1
  5. package/dist/composed/AppSwitcher/AppSwitcher.d.ts.map +1 -1
  6. package/dist/composed/ContentHeader/ContentHeader.d.ts +6 -1
  7. package/dist/composed/ContentHeader/ContentHeader.d.ts.map +1 -1
  8. package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts +21 -1
  9. package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts.map +1 -1
  10. package/dist/composed/JsonSchemaForm/conditional/concretizePath.d.ts +1 -1
  11. package/dist/composed/JsonSchemaForm/fields/__test-utils__/errorVisibility.d.ts +39 -0
  12. package/dist/composed/JsonSchemaForm/fields/__test-utils__/errorVisibility.d.ts.map +1 -0
  13. package/dist/composed/JsonSchemaForm/fields/oneOf/OneOfField.d.ts.map +1 -1
  14. package/dist/composed/JsonSchemaForm/form-bindings/extractDefaults.d.ts.map +1 -1
  15. package/dist/composed/JsonSchemaForm/form-bindings/hiddenFormErrors.d.ts +38 -0
  16. package/dist/composed/JsonSchemaForm/form-bindings/hiddenFormErrors.d.ts.map +1 -0
  17. package/dist/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.d.ts.map +1 -1
  18. package/dist/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.d.ts +4 -3
  19. package/dist/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.d.ts.map +1 -1
  20. package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts +11 -5
  21. package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts.map +1 -1
  22. package/dist/composed/JsonSchemaForm/index.d.ts +2 -0
  23. package/dist/composed/JsonSchemaForm/index.d.ts.map +1 -1
  24. package/dist/composed/JsonSchemaForm/models/JsonSchemaFormContext.d.ts +7 -3
  25. package/dist/composed/JsonSchemaForm/models/JsonSchemaFormContext.d.ts.map +1 -1
  26. package/dist/composed/JsonSchemaForm/models/jsonSchemaResolver.types.d.ts +2 -0
  27. package/dist/composed/JsonSchemaForm/models/jsonSchemaResolver.types.d.ts.map +1 -1
  28. package/dist/composed/JsonSchemaForm/schema/buildIndex.d.ts.map +1 -1
  29. package/dist/composed/JsonSchemaForm/schema/displayedErrorPaths.d.ts +21 -0
  30. package/dist/composed/JsonSchemaForm/schema/displayedErrorPaths.d.ts.map +1 -0
  31. package/dist/composed/JsonSchemaForm/schema/types.d.ts +6 -5
  32. package/dist/composed/JsonSchemaForm/schema/types.d.ts.map +1 -1
  33. package/dist/composed/JsonSchemaForm/schema/visibleFields.d.ts +2 -0
  34. package/dist/composed/JsonSchemaForm/schema/visibleFields.d.ts.map +1 -1
  35. package/dist/composed/JsonSchemaForm/utils/readPath.d.ts +1 -2
  36. package/dist/composed/JsonSchemaForm/utils/readPath.d.ts.map +1 -1
  37. package/dist/composed/SelectorDropdown/SelectorDropdown.d.ts +8 -1
  38. package/dist/composed/SelectorDropdown/SelectorDropdown.d.ts.map +1 -1
  39. package/dist/composed/SelectorDropdown/SelectorTriggerButton.d.ts +2 -0
  40. package/dist/composed/SelectorDropdown/SelectorTriggerButton.d.ts.map +1 -1
  41. package/dist/composed/TopNavUser/TopNavUser.d.ts +7 -1
  42. package/dist/composed/TopNavUser/TopNavUser.d.ts.map +1 -1
  43. package/dist/index.js +1361 -477
  44. package/package.json +3 -3
  45. package/snippets/json-schema-form-simple.tsx +12 -7
package/USAGE_GUIDE.md CHANGED
@@ -1159,6 +1159,20 @@ The components that derive ids from yours. A part exists only when you pass an i
1159
1159
  | `SidebarNavigation` | `${id}-nav-<item.key>` | Item link, with an `href`, or button, locked or without one; `item.key` verbatim, unique across the whole navigation |
1160
1160
  | `ContextSidebar` | `${id}-nav-<item.key>` | Navigation item, with `groups`: the navigation takes the sidebar's own id; its parts are those of `SidebarNavigation` |
1161
1161
  | `SidebarUpgradeFooter` | `${id}-action` | Upgrade link, while `lockedFeatures` is not empty |
1162
+ | `ContentHeader` | `${id}-breadcrumb-<index>` | Crumb link, button (`onClick` without `href`) or current page `span`, not its `li`; _positional_, from 0 |
1163
+ | `AppContextBar` | `${id}-app-trigger` | App trigger button |
1164
+ | `AppContextBar` | `${id}-app` | App menu, a prefix only; its parts are those of `AppSwitcher`: `${id}-app-content`, `${id}-app-option-<app.key>` |
1165
+ | `AppContextBar` | `${id}-environment-trigger` | Environment trigger button, with `environments` |
1166
+ | `AppContextBar` | `${id}-environment` | Environment menu, with `environments`, a prefix only; its parts are those of `SelectorDropdown`: `${id}-environment-content`, `${id}-environment-option-<key>` |
1167
+ | `AppSwitcher` | `${id}-content` | Menu content, while the menu is open |
1168
+ | `AppSwitcher` | `${id}-option-<app.key>` | App link, with an `href`, or menu item, while the menu is open; `app.key` verbatim |
1169
+ | `SelectorDropdown` | `${id}-content` | Menu content, while the menu is open |
1170
+ | `SelectorDropdown` | `${id}-option-<option.key>` | Option link, with an `href`, or menu item, while the menu is open; `option.key` verbatim |
1171
+ | `TopNavUser` | `${id}-content` | Menu content, while the menu is open |
1172
+ | `TopNavUser` | `${id}-name` | User name, while the menu is open |
1173
+ | `TopNavUser` | `${id}-email` | User email, with `email`, while the menu is open |
1174
+ | `TopNavUser` | `${id}-theme-option-<value>` | Theme item (`light`, `dark`, `system`), while the menu is open |
1175
+ | `TopNavUser` | `${id}-sign-out` | Sign out item, while the menu is open |
1162
1176
  | `CodeEditor` | `${id}-loading` | Skeleton, while Monaco loads |
1163
1177
  | `CodeEditor` | `${id}-fallback` | Plain textarea, when Monaco fails to load |
1164
1178
  | `JsonSchemaForm` | `${id}-<path>` | The control of the field at the react-hook-form path, verbatim (`headers.0.name`); a code editor field: its container, with `-loading` while Monaco loads and `-fallback` when it fails |
@@ -1175,7 +1189,7 @@ The components that derive ids from yours. A part exists only when you pass an i
1175
1189
 
1176
1190
  `JsonSchemaForm` renders no element of its own, so its id is only a prefix. A field at the root path is `${id}`, and its error `${id}-error`.
1177
1191
 
1178
- `SidebarNavigation` renders no element of its own either: its id only prefixes its items. `ContextSidebar` hands its own id, unchanged, to the `SidebarNavigation` it renders from `groups`, so its items are `${id}-nav-<item.key>`. Some exports have their docs line on another component's page: `SidebarNavigation`, `SidebarUpgradeFooter`, `SidebarModeControl` and `SidebarModeProvider` on the `AppSidebar` page, `ContextToggleButton` and `LayoutSlotsProvider` on the `ContextSidebar` page, `ThemeProvider` on the `AppLayout` page.
1192
+ `SidebarNavigation` renders no element of its own either: its id only prefixes its items. `ContextSidebar` hands its own id, unchanged, to the `SidebarNavigation` it renders from `groups`, so its items are `${id}-nav-<item.key>`. `AppSwitcher` and `SelectorDropdown` render no element of their own either: their trigger is the one you pass, which keeps its own id, and their id only prefixes their menu content and options. Some exports have their docs line on another component's page: `SidebarNavigation`, `SidebarUpgradeFooter`, `SidebarModeControl` and `SidebarModeProvider` on the `AppSidebar` page, `ContextToggleButton` and `LayoutSlotsProvider` on the `ContextSidebar` page, `ThemeProvider` and `AppContextBar` on the `AppLayout` page, `SelectorTriggerButton` on the `SelectorDropdown` page.
1179
1193
 
1180
1194
  The `DataTable` row key is TanStack's `row.id`: pass `tableOptions={{ getRowId: (entity) => entity.id }}` for a stable key. Without `getRowId`, the key is the row's index in `data`, which is not a contract. `DataTableColumnHeader` takes the prefix of its header cell, `${tableId}-header-<columnId>`, unless you give it an id of its own. Keys are verbatim, never escaped: a `getRowId` result must not end with `-select`, and a column id must not end with `-sort` or `-resize`, or two elements share one id (row `a`'s checkbox and a row `a-select` are both `${tableId}-row-a-select`). Use the record's own id, not a display label. `columnId` is TanStack's `column.id`: the column's `id`, else its `accessorKey` (`.` becomes `_`), else its `header` when that is a string, which makes the key a display label. Give an explicit `id` to every column group and to every column without an `accessorKey`. The id of a column group's header, `${tableId}-header-<groupId>` and its `-resize`, is unique only while the group's columns stay adjacent: a `columnOrder` or `columnPinning` passed through `tableOptions` that puts another column between them renders the group's header twice, with the same id.
1181
1195
 
@@ -1,6 +1,13 @@
1
1
  import { AppDefinition } from '../AppSwitcher';
2
2
  import { SelectorOption } from '../SelectorDropdown';
3
3
  interface AppContextBarProps {
4
+ /**
5
+ * Lands on the root `<div>`. App trigger: `${id}-app-trigger`; while its menu is open, the menu `${id}-app-content`
6
+ * and each app `${id}-app-option-<app.key>`, as in `AppSwitcher`. With `environments`, the environment trigger
7
+ * `${id}-environment-trigger`; while its menu is open, the menu `${id}-environment-content` and each environment
8
+ * `${id}-environment-option-<key>`, as in `SelectorDropdown`.
9
+ */
10
+ readonly 'data-testid'?: string;
4
11
  readonly apps: AppDefinition[];
5
12
  readonly activeAppKey: string;
6
13
  readonly onAppChange?: (key: string) => void;
@@ -9,7 +16,7 @@ interface AppContextBarProps {
9
16
  readonly onEnvironmentChange?: (key: string) => void;
10
17
  readonly className?: string;
11
18
  }
12
- declare function AppContextBar({ apps, activeAppKey, onAppChange, environments, activeEnvironmentKey, onEnvironmentChange, className, }: AppContextBarProps): import("react").JSX.Element;
19
+ declare function AppContextBar({ apps, activeAppKey, onAppChange, environments, activeEnvironmentKey, onEnvironmentChange, className, 'data-testid': testId, }: AppContextBarProps): import("react").JSX.Element;
13
20
  declare namespace AppContextBar {
14
21
  var displayName: string;
15
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AppContextBar.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextBar/AppContextBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAElF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AAIxF,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,IAAI,EAAE,aAAa,EAAE,CAAC;IAC/B,QAAQ,CAAC,Y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K,IAAI,CAAC;IAErD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,iBAAS,aAAa,CAAC,EACrB,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,aAAa,EAAE,MAAM,GACtB,EAAE,kBAAkB,+BA6DpB;kBAtEQ,aAAa;;;AA0EtB,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  interface AppDefinition {
3
+ /** A stable key, never a label. Used verbatim as the test id key (`${id}-option-<key>`). */
3
4
  readonly key: string;
4
5
  readonly label: string;
5
6
  readonly description?: string;
@@ -19,6 +20,11 @@ interface AppDefinition {
19
20
  readonly href?: string;
20
21
  }
21
22
  interface AppSwitcherProps {
23
+ /**
24
+ * No element of its own: the trigger is `children`, which keeps its own id. The id prefixes the parts the switcher
25
+ * renders while its menu is open: the menu content `${id}-content` and each app `${id}-option-<app.key>`.
26
+ */
27
+ readonly 'data-testid'?: string;
22
28
  readonly apps: AppDefinition[];
23
29
  readonly activeKey: string;
24
30
  readonly onChange?: (key: string) => void;
@@ -28,7 +34,7 @@ interface AppSwitcherProps {
28
34
  readonly contentClassName?: string;
29
35
  readonly children?: ReactNode;
30
36
  }
31
- declare function AppSwitcher({ apps, activeKey, onChange, onOpenChange, side, contentClassName, children }: AppSwitcherProps): import("react").JSX.Element;
37
+ declare function AppSwitcher({ apps, activeKey, onChange, onOpenChange, side, contentClassName, children, 'data-testid': testId, }: AppSwitcherProps): import("react").JSX.Element;
32
38
  declare namespace AppSwitcher {
33
39
  var displayName: string;
34
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AppSwitcher.d.ts","sourceRoot":"","sources":["../../../src/composed/AppSwitcher/AppSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA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
2
2
  import { BreadcrumbEntry } from './breadcrumb-entry';
3
3
  interface ContentHeaderProps {
4
+ /**
5
+ * Lands on the root `div[data-slot=content-header]`. Each crumb: `${id}-breadcrumb-<index>`, positional from 0, on
6
+ * its link, button or current page `span` (not the `li`). `leading`, `appContext` and `trailing` keep their own ids.
7
+ */
8
+ readonly 'data-testid'?: string;
4
9
  readonly className?: string;
5
10
  readonly breadcrumbs?: BreadcrumbEntry[];
6
11
  /** Leading icon (e.g. context sidebar toggle). Only rendered when provided. */
@@ -13,7 +18,7 @@ interface ContentHeaderProps {
13
18
  /** Right-aligned content (e.g. search, user avatar, notifications). */
14
19
  readonly trailing?: ReactNode;
15
20
  }
16
- declare function ContentHeader({ className, breadcrumbs, leading, appContext, trailing }: ContentHeaderProps): import("react").JSX.Element;
21
+ declare function ContentHeader({ className, breadcrumbs, leading, appContext, trailing, 'data-testid': testId, }: ContentHeaderProps): import("react").JSX.Element;
17
22
  declare namespace ContentHeader {
18
23
  var displayName: string;
19
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ContentHeader.d.ts","sourceRoot":"","sources":["../../../src/composed/ContentHeader/ContentHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;IACzC,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC;IAChC,uEAAuE;IACvE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAkBD,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,WAAgB,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+BA6BxG;kBA7BQ,aAAa;;;AAiCtB,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,CAAC;AACnC,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"ContentHeader.d.ts","sourceRoot":"","sources":["../../../src/composed/ContentHeader/ContentHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAavC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,UAAU,kBAAkB;IAC1B;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;IACzC,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC;IAChC,uEAAuE;IACvE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AA8BD,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,WAAgB,EAChB,OAAO,EACP,UAAU,EACV,QAAQ,EACR,aAAa,EAAE,MAAM,GACtB,EAAE,kBAAkB,+BAqCpB;kBA5CQ,aAAa;;;AAgDtB,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,CAAC;AACnC,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -5,14 +5,34 @@ interface JsonSchemaFormProps {
5
5
  readonly control: Control<FieldValues>;
6
6
  readonly name?: string;
7
7
  readonly disabled?: boolean;
8
+ /**
9
+ * The values `context.X` conditions (`gioConfig.displayIf`) read. A host that passes `context` to
10
+ * the form must pass the same object to `jsonSchemaResolver({ context })`: without it, the
11
+ * resolver reads every `context.X` condition as false, and does not check the fields those
12
+ * conditions show as the form shows them.
13
+ */
8
14
  readonly context?: Record<string, unknown>;
9
15
  /**
10
16
  * Prefix of the generated ids, on no element of its own. Each control is `${id}-${path}`, with the
11
17
  * react-hook-form path verbatim (`${id}-headers.0.name`); its parts follow (`-error`, `-add`, …).
12
18
  */
13
19
  readonly 'data-testid'?: string;
20
+ /**
21
+ * A Map the form writes the user's `oneOf` / `anyOf` picks in, by object path relative to
22
+ * `name` (`''` for the form's own object). Give the same Map to `jsonSchemaResolver`
23
+ * (`variantPicks`) so that it validates the variant on screen: the data alone cannot tell apart
24
+ * variants without a discriminator, or that share one. One Map per form. Without it, the form
25
+ * keeps its picks to itself.
26
+ */
27
+ readonly variantPicks?: Map<string, number>;
28
+ /**
29
+ * Called once the user has picked another variant and its fields are mounted, with the path of
30
+ * the object (as in `variantPicks`) and the variant's index. A host that shows every error of
31
+ * the form validates it again here: the errors of the new variant's fields are then on screen.
32
+ */
33
+ readonly onVariantChange?: (path: string, index: number) => void;
14
34
  }
15
- declare function JsonSchemaForm({ schema, control, name, disabled, context, 'data-testid': testIdPrefix, }: JsonSchemaFormProps): import("react").JSX.Element;
35
+ declare function JsonSchemaForm({ schema, control, name, disabled, context, 'data-testid': testIdPrefix, variantPicks, onVariantChange, }: JsonSchemaFormProps): import("react").JSX.Element;
16
36
  export { JsonSchemaForm };
17
37
  export type { JsonSchemaFormProps };
18
38
  //# sourceMappingURL=JsonSchemaForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"JsonSchemaForm.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/JsonSchemaForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAI7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,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C;;;;OAIG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClE;AAED,iBAAS,cAAc,CAAC,EACtB,MAAM,EACN,OAAO,EACP,IAAS,EACT,QAAgB,EAChB,OAAO,EACP,aAAa,EAAE,YAAY,EAC3B,YAAY,EACZ,eAAe,GAChB,EAAE,mBAAmB,+BA4CrB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * Non-`*` segments and positions where the runtime segment is absent or non-numeric are left
4
4
  * as-is.
5
5
  *
6
- * Used by both the renderer (`concretizeCondition`) and the resolver (`resolveAt`) to align
6
+ * Used by `concretizeCondition` (the renderer's gates and the value walkers) to align
7
7
  * array-item template paths (`arr.*.show`) with live indices (`arr.2.show`).
8
8
  */
9
9
  declare function concretizePath(templatePath: string, runtimeSegs: readonly string[]): string;
@@ -0,0 +1,39 @@
1
+ import { FieldValues, Resolver } from 'react-hook-form';
2
+ import { JsonSchema } from '../../models/json-schema.types';
3
+ interface ErrorVisibilityCase {
4
+ readonly schema: JsonSchema;
5
+ /** The values the form is mounted with. */
6
+ readonly values: Record<string, unknown>;
7
+ readonly resolver: Resolver<FieldValues>;
8
+ readonly context?: Record<string, unknown>;
9
+ /** The form's `variantPicks` Map, which `resolver` reads too. */
10
+ readonly variantPicks?: Map<string, number>;
11
+ /** What the user does once the form is mounted, before it is submitted: pick a variant, type. */
12
+ readonly interact?: () => Promise<void>;
13
+ }
14
+ interface ErrorVisibilityReport {
15
+ /** How many errors the resolver returned once the form was mounted and submitted. */
16
+ readonly errorCount: number;
17
+ /** How many of them `hiddenFormErrors` lists. */
18
+ readonly hiddenCount: number;
19
+ /** One line per error message neither a field nor the summary shows. Empty when all is well. */
20
+ readonly notShown: readonly string[];
21
+ /**
22
+ * One line per error message `hiddenFormErrors` lists that a field shows too: the user would read
23
+ * it twice. Empty when all is well.
24
+ */
25
+ readonly shownTwice: readonly string[];
26
+ }
27
+ declare function checkErrorVisibility({ schema, values, resolver, context, variantPicks, interact, }: ErrorVisibilityCase): Promise<ErrorVisibilityReport>;
28
+ /**
29
+ * Configurations that break `schema` everywhere, built from the schema alone so that a new fixture
30
+ * is covered as soon as it exists: `{}` (the required fields), every field with a value of the
31
+ * wrong type (and every discriminator off its variant), every field blank (`''`, `[]`, a very
32
+ * small number).
33
+ */
34
+ declare function invalidConfigurations(schema: JsonSchema): Readonly<Record<string, Record<string, unknown>>>;
35
+ /** The exports of a fixture module that are JSON schemas of an object. */
36
+ declare function schemaExports(module: Readonly<Record<string, unknown>>): [string, JsonSchema][];
37
+ export { checkErrorVisibility, invalidConfigurations, schemaExports };
38
+ export type { ErrorVisibilityCase, ErrorVisibilityReport };
39
+ //# sourceMappingURL=errorVisibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorVisibility.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/__test-utils__/errorVisibility.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAA+B,MAAM,iBAAiB,CAAC;AAI/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAWjE,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,2CAA2C;IAC3C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,iEAAiE;IACjE,QAAQ,CA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Ae;IACvB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,sCAsHnD;AAiBD,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"OneOfField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrD,UAAU,eAAe;IACvB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,sCAmKnD;AAsCD,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"extractDefaults.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAM9D,iBAAS,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAYpD;AAkFD,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"extractDefaults.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAM9D,iBAAS,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAYpD;AAoFD,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { JsonSchema } from '../models/json-schema.types';
2
+ /** An error the form has no place to show. */
3
+ interface HiddenFormError {
4
+ /** The error's path in the form values, `''` for the root. */
5
+ readonly path: string;
6
+ /**
7
+ * The path in words, one entry per segment: the field titles (or capitalized keys) and the array
8
+ * items as the form names them ("Header 2"). Empty for the root.
9
+ */
10
+ readonly labels: readonly string[];
11
+ /** Every message for the path (all of `types` with `criteriaMode: 'all'`). */
12
+ readonly messages: readonly string[];
13
+ }
14
+ /**
15
+ * The errors in `errors` (a `jsonSchemaResolver` result) that `<JsonSchemaForm>` shows nowhere:
16
+ * every error whose path is not in `displayedErrorPaths`, in the order the resolver gave them. A
17
+ * host lists them next to the form so that every error that blocks the form is on screen.
18
+ *
19
+ * Pass the values the resolver validated, the form's `context`, and the Map of its `variantPicks`
20
+ * prop when the host gives it one: the fields on screen are the ones of the variants the user
21
+ * picked. A schema the form cannot index hides every error.
22
+ *
23
+ * @internal Exported for `@gravitee/graphene-policy-studio` only. Not part of the public API: it
24
+ * can change or be removed in a minor release.
25
+ */
26
+ declare function hiddenFormErrors(schema: JsonSchema, values: Readonly<Record<string, unknown>>, errors: object, context?: Readonly<Record<string, unknown>>, variantPicks?: ReadonlyMap<string, number>): readonly HiddenFormError[];
27
+ /**
28
+ * Every error in an RHF `errors` tree with its path, parents first. A `root` key is where RHF puts the
29
+ * error of the object it is in (the form's own at the top), unless `declaresRoot` says the schema
30
+ * has a property named `root` at that path: the resolver writes the error of that property there too.
31
+ */
32
+ declare function flattenErrors(errors: unknown, declaresRoot?: (path: string) => boolean, path?: string): {
33
+ readonly path: string;
34
+ readonly messages: readonly string[];
35
+ }[];
36
+ export { flattenErrors, hiddenFormErrors };
37
+ export type { HiddenFormError };
38
+ //# sourceMappingURL=hiddenFormErrors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hiddenFormErrors.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/hiddenFormErrors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAO9D,8CAA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AkB,CAAC,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChG,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,yBAA8B,GACtC,QAAQ,CAAC,YAAY,CAAC,CA+DxB;AA2LD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"jsonSchemaResolver.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA2B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AA+CpF,iBAAS,kBAAkB,CAAC,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChG,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,yBAA8B,GACtC,QAAQ,CAAC,YAAY,CAAC,CAmExB;AAsTD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -9,8 +9,9 @@ import { JsonSchema } from '../models/json-schema.types';
9
9
  * Looks in object properties, the properties of the active `oneOf` / `anyOf` variant and of the
10
10
  * active `dependencies` branches, at any depth and inside array items. It does nothing else the
11
11
  * form does on mount: the properties of an inactive variant stay, and so does a `deprecated`
12
- * property, hidden or not (the form mounts nothing for it). `context` is the form's
13
- * `context` prop, read by `context.X` conditions.
12
+ * property, hidden or not (the form mounts nothing for it). `context` is the form's `context`
13
+ * prop, read by `context.X` conditions. `variantPicks` is the Map of the form's `variantPicks`
14
+ * prop, when the host gives it one: the active variant is then the one on screen.
14
15
  *
15
16
  * Returns a copy: `values` is left untouched. A schema the form cannot index (cyclic `$ref`)
16
17
  * returns `values` as is.
@@ -18,6 +19,6 @@ import { JsonSchema } from '../models/json-schema.types';
18
19
  * @internal Exported for `@gravitee/graphene-policy-studio` only. Not part of the public API: it
19
20
  * can change or be removed in a minor release.
20
21
  */
21
- declare function pruneHiddenValues<TValues extends Record<string, unknown>>(schema: JsonSchema, values: TValues, context?: Readonly<Record<string, unknown>>): TValues;
22
+ declare function pruneHiddenValues<TValues extends Record<string, unknown>>(schema: JsonSchema, values: TValues, context?: Readonly<Record<string, unknown>>, variantPicks?: ReadonlyMap<string, number>): TValues;
22
23
  export { pruneHiddenValues };
23
24
  //# sourceMappingURL=pruneHiddenValues.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pruneHiddenValues.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK9D;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,iBAAiB,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChE,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAC1C,OAAO,CAaT;AAkCD,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"pruneHiddenValues.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK9D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,iBAAS,iBAAiB,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChE,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAC3C,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACzC,OAAO,CAaT;AAkCD,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,16 +1,22 @@
1
1
  import { SchemaIndex, SchemaNode } from '../schema/types';
2
+ import { WalkEnv } from '../schema/visibleFields';
3
+ /** What `resolveAt` reads besides the index and the data: the form's `context` and the user's variant picks. */
4
+ type ResolveEnv = Omit<WalkEnv, 'root'>;
2
5
  /**
3
6
  * Walk `runtimePath` through the index (and the data, when provided) in parallel:
4
7
  * - the **effective `SchemaNode`** at that position, with `displayIf` paths concretized
5
8
  * (`*` placeholders → live indices from `runtimePath`),
6
- * - the active `oneOf`/`anyOf` variant + active `dependencies.X.oneOf` branches folded into
7
- * `properties` **when `data` is supplied** (lets the resolver's noise filter know which keys
8
- * the active variant + dep branches declare),
9
- * - the live `value` at the path when `data` is supplied.
9
+ * - at every object on the way, `properties` replaced by the fields the form mounts there
10
+ * (`viewObject`: own properties, active variant, active `dependencies` branches, less the
11
+ * hidden ones), so the resolver's noise filter knows which keys are in scope,
12
+ * - the live `value` at the path when `data` is supplied,
13
+ * - the keys a `displayIf` hides at that position (`hiddenByDisplayIf`), out of `properties`.
10
14
  */
11
- declare function resolveAt(index: SchemaIndex, runtimePath: string, data?: unknown): {
15
+ declare function resolveAt(index: SchemaIndex, runtimePath: string, data?: unknown, env?: ResolveEnv): {
12
16
  node?: SchemaNode;
13
17
  value: unknown;
18
+ hiddenByDisplayIf?: ReadonlySet<string>;
14
19
  };
15
20
  export { resolveAt };
21
+ export type { ResolveEnv };
16
22
  //# sourceMappingURL=resolveAt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveAt.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/resolveAt.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAiB,MAAM,iBAAiB,CAAC;AAG9E;;;;;;;;GAQG;AACH,iBAAS,SAAS,CAAC,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG;IAAE,IAAI,CAAC,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAsBjH;AAgED,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"resolveAt.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/resolveAt.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAInE,gHAAgH;AAChH,KAAK,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAExC;;;;;;;;;GASG;AACH,iBAAS,SAAS,CAChB,KAAK,EAAE,WAAW,EAClB,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,OAAO,EACd,GAAG,GAAE,UAAe,GACnB;IAAE,IAAI,CAAC,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,iBAAiB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAAE,CA0BhF;AAoCD,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -4,6 +4,8 @@ export { applyVisibleDefaults } from './form-bindings/applyVisibleDefaults';
4
4
  export { composeResolvers } from './form-bindings/composeResolvers';
5
5
  export { extractDefaults } from './form-bindings/extractDefaults';
6
6
  export { jsonSchemaResolver } from './form-bindings/jsonSchemaResolver';
7
+ export { hiddenFormErrors } from './form-bindings/hiddenFormErrors';
8
+ export type { HiddenFormError } from './form-bindings/hiddenFormErrors';
7
9
  export { pruneHiddenValues } from './form-bindings/pruneHiddenValues';
8
10
  export type { GioBannerConfig, GioConfig, GioIfConfig, JsonSchema } from './models/json-schema.types';
9
11
  export type { JsonSchemaResolverOptions } from './models/jsonSchemaResolver.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACtG,YAAY,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,YAAY,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACtG,YAAY,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC"}
@@ -7,12 +7,16 @@ interface JsonSchemaFormContextValue {
7
7
  readonly externalContext?: Record<string, unknown>;
8
8
  /** The consumer's `data-testid`: each part's id is `${testIdPrefix}-${path}…` (see `formTestId`). */
9
9
  readonly testIdPrefix?: string;
10
+ /** The form's `name` prop: `OneOfField` records its picks by path relative to it. */
11
+ readonly name?: string;
12
+ /** The form's `onVariantChange` prop. */
13
+ readonly onVariantChange?: (path: string, index: number) => void;
10
14
  /**
11
15
  * Pre-computed index of the form's schema. Field components can query `index.nodeByPath` or
12
16
  * call `effectiveSchemaAt(index, path, data)` to get their local schema in O(1), instead of
13
- * receiving a `schema` prop and re-deriving on every render. Shared with `jsonSchemaResolver`
14
- * via a WeakMap on `schema` so both sides see the same instance. The `index.variantIndices`
15
- * Map carries the user's `OneOfField` picks and is shared end-to-end the same way.
17
+ * receiving a `schema` prop and re-deriving on every render. Built per form. The
18
+ * `index.variantIndices` Map carries the user's `OneOfField` picks: the host's `variantPicks`
19
+ * Map when it passes one.
16
20
  */
17
21
  readonly index: SchemaIndex;
18
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"JsonSchemaFormContext.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/models/JsonSchemaFormContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,UAAU,0BAA0B;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAA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B,4DAAyD,CAAC;AAErF,iBAAS,wBAAwB,IAAI,0BAA0B,CAM9D;AAED,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,CAAC;AAC3D,YAAY,EAAE,0BAA0B,EAAE,CAAC"}
@@ -1,5 +1,7 @@
1
1
  interface JsonSchemaResolverOptions {
2
2
  readonly basePath?: string;
3
+ readonly context?: Readonly<Record<string, unknown>>;
4
+ readonly variantPicks?: ReadonlyMap<string, number>;
3
5
  }
4
6
  export type { JsonSchemaResolverOptions };
5
7
  //# sourceMappingURL=jsonSchemaResolver.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsonSchemaResolver.types.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/models/jsonSchemaResolver.types.ts"],"names":[],"mappings":"AAAA,UAAU,yBAAyB;IAKjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,YAAY,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"jsonSchemaResolver.types.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/models/jsonSchemaResolver.types.ts"],"names":[],"mappings":"AAAA,UAAU,yBAAyB;IAKjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAI3B,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAKrD,QAAQ,CAAC,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrD;AAED,YAAY,EAAE,yBAAyB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildIndex.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/schema/buildIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK3E,OAAO,KAAK,EAAgC,WAAW,EAA6B,MAAM,SAAS,CAAC;AAgBpG,iBAAS,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,SAAK,GAAG,WAAW,CAKpE;AA2GD;;;yDAGyD;AACzD,iBAAS,0BAA0B,CAAC,GAAG,EAAE,UAAU,GAAG;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAInF;AA8HD,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,CAAC"}
1
+ {"version":3,"file":"buildIndex.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/schema/buildIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK3E,OAAO,KAAK,EAAgC,WAAW,EAA6B,MAAM,SAAS,CAAC;AAiBpG,iBAAS,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,SAAK,GAAG,WAAW,CAKpE;AA2GD;;;yDAGyD;AACzD,iBAAS,0BAA0B,CAAC,GAAG,EAAE,UAAU,GAAG;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAInF;AA8HD,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { JsonSchema } from '../models/json-schema.types';
2
+ /**
3
+ * The paths at which `<JsonSchemaForm>` shows an error message, for `values`: the fields it mounts
4
+ * whose component renders the error of its own path (inputs, selects, switches, code editors,
5
+ * arrays). An error anywhere else blocks the form with nothing on screen:
6
+ * - an object path (`ObjectField` and `OneOfField` render no error), a `oneOf` / `anyOf`
7
+ * aggregate, a root error;
8
+ * - a field the form has no renderer for (`SchemaField` omits it), a `null` field, a deprecated
9
+ * field;
10
+ * - the discriminator of the active variant, which `OneOfField` binds without an input;
11
+ * - a value inside a multi-select, a headers array or a code editor, which only show the error of
12
+ * their own path;
13
+ * - a field the form hides (`viewObject`).
14
+ *
15
+ * The active variant is the one that fits the data best, as in the resolver: a host that has the
16
+ * form's own picks passes them in `variantPicks`. `context` is the form's `context` prop. A schema
17
+ * the form cannot index returns an empty set. Internal: `hiddenFormErrors` reads it.
18
+ */
19
+ declare function displayedErrorPaths(schema: JsonSchema, values: Readonly<Record<string, unknown>>, context?: Readonly<Record<string, unknown>>, variantPicks?: ReadonlyMap<string, number>): ReadonlySet<string>;
20
+ export { displayedErrorPaths };
21
+ //# sourceMappingURL=displayedErrorPaths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"displayedErrorPaths.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/schema/displayedErrorPaths.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK9D;;;;;;;;;;;;;;;;GAgBG;AACH,iBAAS,mBAAmB,CAC1B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAC3C,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACzC,WAAW,CAAC,MAAM,CAAC,CAKrB;AAsCD,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -94,11 +94,12 @@ interface SchemaIndex {
94
94
  * `variants[i].properties.get(key)` instead — two variants can declare the same key with
95
95
  * different schemas, so there is no unambiguous static answer for the global map. */
96
96
  readonly nodeByPath: ReadonlyMap<string, SchemaNode>;
97
- /** Per-instance `basePath → active-variant-index` Map. Written by `OneOfField` when the
98
- * user picks a variant. Read by the same `OneOfField` for its `selectedIndex` init. The
99
- * resolver builds its own SchemaIndex (so its `variantIndices` is independent) and falls
100
- * back to data-shape ranking in `pickActiveVariantIndex` — for Gravitee plugin schemas
101
- * with `const` / `pattern` discriminators, this is equivalent. */
97
+ /** Per-instance `object path → active-variant-index` Map, the path relative to the form's
98
+ * `name`. Written by `OneOfField` when the user picks a variant, read by the same `OneOfField`
99
+ * for its `selectedIndex` init. `<JsonSchemaForm variantPicks>` replaces it with the host's
100
+ * Map, which the host also gives the resolver and `hiddenFormErrors`: the data alone cannot
101
+ * tell variants apart that share their discriminators (metrics-reporter's "JKS with path" and
102
+ * "JKS with content") or have none. */
102
103
  readonly variantIndices: Map<string, number>;
103
104
  }
104
105
  export type { DepBranch, ResolvedCondition, SchemaIndex, SchemaNode, SchemaVariant };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/schema/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,UAAU,UAAU;IAClB,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,8FAA8F;IAC9F,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACtD,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC5B,oDAAoD;IACpD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAC7C;iFAC6E;IAC7E,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IACvC;;qGAEiG;IACjG,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IACvC;;iDAE6C;IAC7C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;CACpD;AAED,UAAU,aAAa;IACrB;;mEAE+D;IAC/D,QAAQ,CAAC,MAAM,EAAE,SAAS;QAAE,QAA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A6E;IAC7E,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC;;mBAEe;IACf,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACtD;AAED;;;;;;;;;GASG;AACH,UAAU,iBAAiB;IACzB,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpD;AAED,UAAU,WAAW;IACnB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B;;0FAEsF;IACtF,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACrD;;;;;4CAKwC;IACxC,QAAQ,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9C;AAED,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC"}
@@ -36,6 +36,8 @@ interface ObjectView {
36
36
  * and `EXPRESSION` branches both declare `patternValue`.
37
37
  */
38
38
  readonly hiddenKeys: readonly string[];
39
+ /** The keys of `hiddenKeys` a `displayIf` that does not match hides. */
40
+ readonly hiddenByDisplayIf: readonly string[];
39
41
  /**
40
42
  * The keys only inactive variants declare (their properties and their `dependencies` branches).
41
43
  * The form does not mount them either, but they are kept apart from `hiddenKeys`: a value under
@@ -1 +1 @@
1
- {"version":3,"file":"visibleFields.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/schema/visibleFields.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAgC,UAAU,EAAE,MAAM,SAAS,CAAC;AAExE,kFAAkF;AAClF,UAAU,OAAO;IACf,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,iEAAiE;I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tC;AAID;;;;;;;;GAQG;AACH,iBAAS,UAAU,CACjB,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,OAAO,GACX,UAAU,CA0CZ;AA+CD;;;;GAIG;AACH,iBAAS,eAAe,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAY/D;AAMD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC;AACvC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC"}
@@ -4,8 +4,7 @@
4
4
  * root value itself.
5
5
  *
6
6
  * Shared by the conditional gates (`evalCondition`, reading `$eqContext` from the external
7
- * `context`) and the resolver (`resolveAt`'s `showIfMatches`, reading a discriminator value from
8
- * the form data).
7
+ * `context`) and the value walkers (`viewObject`, reading a watched value from the form data).
9
8
  */
10
9
  declare function readPath(source: unknown, path: string): unknown;
11
10
  export { readPath };
@@ -1 +1 @@
1
- {"version":3,"file":"readPath.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/readPath.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,iBAAS,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAQxD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"readPath.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/readPath.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,iBAAS,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAQxD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  interface SelectorOption {
3
+ /** A stable key, never a label. Used verbatim as the test id key (`${id}-option-<key>`). */
3
4
  readonly key: string;
4
5
  readonly label: string;
5
6
  readonly icon?: ReactNode;
@@ -15,6 +16,12 @@ interface SelectorTriggerRenderContext {
15
16
  readonly activeKey: string;
16
17
  }
17
18
  interface SelectorDropdownBaseProps {
19
+ /**
20
+ * No element of its own: the trigger (`children` or `renderTrigger`) keeps its own id. The id prefixes the parts the
21
+ * dropdown renders while its menu is open: the menu content `${id}-content` and each option
22
+ * `${id}-option-<option.key>`.
23
+ */
24
+ readonly 'data-testid'?: string;
18
25
  readonly options: SelectorOption[];
19
26
  readonly activeKey: string;
20
27
  readonly onChange?: (key: string) => void;
@@ -31,7 +38,7 @@ type SelectorDropdownProps = SelectorDropdownBaseProps & ({
31
38
  readonly renderTrigger: (ctx: SelectorTriggerRenderContext) => ReactElement;
32
39
  readonly children?: never;
33
40
  });
34
- declare function SelectorDropdown({ options, activeKey, onChange, onOpenChange, align, side, className, children, renderTrigger, }: SelectorDropdownProps): import("react").JSX.Element;
41
+ declare function SelectorDropdown({ options, activeKey, onChange, onOpenChange, align, side, className, children, renderTrigger, 'data-testid': testId, }: SelectorDropdownProps): import("react").JSX.Element;
35
42
  declare namespace SelectorDropdown {
36
43
  var displayName: string;
37
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SelectorDropdown.d.ts","sourceRoot":"","sources":["../../../src/composed/SelectorDropdown/SelectorDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWrD,UAAU,cAAc;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,4BAA4B;IACpC,QAAQ,CAAC,YAAY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AAC,GAAG,EAAE,4BAA4B,KAAK,YAAY,CAAC;IAC5E,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;CAC3B,CACJ,CAAC;AAEJ,iBAAS,gBAAgB,CAAC,EACxB,OAAO,EACP,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,KAAe,EACf,IAAe,EACf,SAAS,EACT,QAAQ,EACR,aAAa,EACb,aAAa,EAAE,MAAM,GACtB,EAAE,qBAAqB,+BAwCvB;kBAnDQ,gBAAgB;;;AAuDzB,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,4BAA4B,EAAE,CAAC"}
@@ -2,6 +2,8 @@ import { ComponentProps } from 'react';
2
2
  import { Button } from '../../base/Button';
3
3
  import { SelectorOption } from './SelectorDropdown';
4
4
  interface SelectorTriggerButtonProps extends Omit<ComponentProps<typeof Button>, 'children'> {
5
+ /** Lands on its `<button>`. */
6
+ readonly 'data-testid'?: string;
5
7
  /** Resolved from `SelectorDropdown` via `renderTrigger`, or pass manually when used with `children`. */
6
8
  readonly activeOption: SelectorOption | undefined;
7
9
  /** Shown when there is no matching option. */
@@ -1 +1 @@
1
- {"version":3,"file":"SelectorTriggerButton.d.ts","sourceRoot":"","sources":["../../../src/composed/SelectorDropdown/SelectorTriggerButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAG7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,UAAU,0BAA2B,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,UAAU,CAAC;IAC1F,wGAAwG;IACxG,QAAQ,CAAC,YAAY,EAAE,cAAc,GAAG,SAAS,CAAC;IAClD,8CAA8C;IAC9C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM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