@gravitee/graphene-core 2.58.0 → 2.59.0-jsf-deprecated.ec5476a

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.
@@ -251,6 +251,7 @@ function _({ value: o, defaultValue: s, onChange: c, language: f = "plaintext",
251
251
  horizontalScrollbarSize: 6
252
252
  },
253
253
  overviewRulerLanes: 0,
254
+ fixedOverflowWidgets: !0,
254
255
  ...b
255
256
  }
256
257
  }) : k
@@ -1,5 +1,5 @@
1
1
  import { f as e, h as t, i as n, o as r, p as i, r as a, s as o, t as s, u as c } from "./SchemaBanner-lrLehIB4.js";
2
- import { t as l } from "./CodeEditor-izUXIn0I.js";
2
+ import { t as l } from "./CodeEditor-W9JPCQhc.js";
3
3
  import { useEffect as u, useRef as d, useState as f } from "react";
4
4
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
5
5
  //#region src/composed/JsonSchemaForm/fields/code-editor/CodeEditorField.tsx
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../CodeEditor-izUXIn0I.js";
1
+ import { n as e, t } from "../CodeEditor-W9JPCQhc.js";
2
2
  export { t as CodeEditor, e as setupCodeEditor };
@@ -1 +1 @@
1
- {"version":3,"file":"CodeEditor.d.ts","sourceRoot":"","sources":["../../../src/composed/CodeEditor/CodeEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,WAAW,EAAU,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAoB,MAAM,UAAU,CAAC;AAIrE,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,uDAAuD;I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;IAC/E,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,sEAAsE;IACtE,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAClC;AA6BD,iBAAS,UAAU,CAAC,EAClB,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,QAAsB,EACtB,QAAgB,EAChB,QAAgB,EAChB,MAAM,EACN,SAAS,EACT,OAAO,EACP,OAAO,GACR,EAAE,eAAe,qBA4GjB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { Control, FieldValues } from 'react-hook-form';
2
+ import { DepBranch } from '../schema/types';
3
+ /**
4
+ * Centralized state sync for an unfolded `dependencies.X.oneOf` block.
5
+ *
6
+ * Watches the discriminator(s) and `unregister`s every property declared by a non-active branch
7
+ * that is NOT also declared by an active branch. The aggregation matters when sibling branches
8
+ * share a property at the same RHF path: mcp-acl's `LITERAL` and `EXPRESSION` both declare
9
+ * `patternValue`, so a per-gate `unregisterOnHide` (one per hidden branch) would wipe the path
10
+ * that the active branch just registered, leaving the displayed input in the DOM while the form
11
+ * state has dropped it — invisible data loss that only surfaces on the next round-trip.
12
+ */
13
+ declare function useDependencyBranchSync(control: Control<FieldValues>, branches: readonly DepBranch[], basePath: string, externalContext: Record<string, unknown> | undefined): void;
14
+ /**
15
+ * Mount-gated wrapper around `useDependencyBranchSync`. Render `<DependencyBranchSyncer>` only
16
+ * when the parent has dep-branches — the hook (and its `useWatch` subscription + effect) then
17
+ * runs solely for the ObjectField / OneOfField instances that need it. Lets callers express the
18
+ * "no deps, no overhead" intent declaratively (`{has && <Syncer .../>}`) instead of polluting
19
+ * the hook with a runtime-conditional path that would still pay the `useWatch` cost.
20
+ */
21
+ interface DependencyBranchSyncerProps {
22
+ readonly branches: readonly DepBranch[];
23
+ readonly basePath: string;
24
+ }
25
+ declare function DependencyBranchSyncer({ branches, basePath }: DependencyBranchSyncerProps): null;
26
+ export { DependencyBranchSyncer, useDependencyBranchSync };
27
+ //# sourceMappingURL=useDependencyBranchSync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDependencyBranchSync.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/conditional/useDependencyBranchSync.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,iBAAiB,CAAC;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIjD;;;;;;;;;GASG;AACH,iBAAS,uBAAuB,CAC9B,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,EAC7B,QAAQ,EAAE,SAAS,SAAS,EAAE,EAC9B,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GACnD,IAAI,CA0DN;AAED;;;;;;GAMG;AACH,UAAU,2BAA2B;IACnC,QAAQ,CAAC,QAAQ,EAAE,SAAS,SAAS,EAAE,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,iBAAS,sBAAsB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,2BAA2B,GAAG,IAAI,CAIzF;AAED,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/object/ObjectField.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMrD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAQD,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,gBAAgB,+BA6D3D;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"ObjectField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/object/ObjectField.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMrD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAQD,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,gBAAgB,+BAgD3D;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OneOfField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrD,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,sCAgHnD;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;AAIrD,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,sCA0GnD;AAiBD,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;AAI9D,iBAAS,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAYpD;AA+CD,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;AAK9D,iBAAS,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAYpD;AA+CD,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1,9 +1,12 @@
1
1
  import { JsonSchema } from '../../models/json-schema.types';
2
2
  /**
3
- * Schema preprocessor for `deprecated: true` nodes. Runs in **both** pipelines (renderer and
3
+ * Schema preprocessor for `deprecated` nodes. Runs in **both** pipelines (renderer and
4
4
  * resolver) so the same enriched schema flows everywhere — no asymmetry, no dead metadata.
5
+ * Reads `deprecated` via `isDeprecated` (shared) which also accepts off-spec string forms
6
+ * (`"true"` / free-form message); downstream code in the renderer path sees the normalized
7
+ * `deprecated: true | undefined` boolean since deprecated nodes are substituted below.
5
8
  *
6
- * Property-level deprecation: a `deprecated: true` node is substituted with `{ deprecated: true }`
9
+ * Property-level deprecation: a deprecated node is substituted with `{ deprecated: true }`
7
10
  * — a schema with no `type`, no constraints, no `properties`. Functionally equivalent to `{}`
8
11
  * for ajv (accepts any value), AND preserves the flag for `SchemaField`'s early-return so the UI
9
12
  * keeps hiding the field. The replacement key stays in the parent's `properties` (so
@@ -11,12 +14,11 @@ import { JsonSchema } from '../../models/json-schema.types';
11
14
  * Plugin authors retire a field by flipping the flag; previously-saved configs keep round-
12
15
  * tripping without manual cleanup.
13
16
  *
14
- * `oneOf` / `anyOf` deprecation: when an entire **variant** is `deprecated: true`, the variant is
17
+ * `oneOf` / `anyOf` deprecation: when an entire **variant** is deprecated, the variant is
15
18
  * **dropped** from the array instead of being replaced by `{ deprecated: true }`. Replacement
16
19
  * would yield a permissive stub (`{}` for ajv) that matches any value and overmatches against
17
20
  * the live variants — violating `oneOf`'s "exactly one" constraint for any valid submission.
18
- * Dropping aligns ajv's view with the renderer's UI filter (`OneOfField` already filters
19
- * `v.deprecated !== true` before mounting) so both sides see the same variant list.
21
+ * Dropping aligns ajv's view with the renderer's UI filter so both sides see the same variant list.
20
22
  */
21
23
  declare function relaxDeprecated(schema: JsonSchema): JsonSchema;
22
24
  export { relaxDeprecated };
@@ -1 +1 @@
1
- {"version":3,"file":"relaxDeprecated.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAGjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAkCvD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"relaxDeprecated.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAIjE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAkCvD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -2,8 +2,9 @@ import { JsonSchema } from '../models/json-schema.types';
2
2
  declare function isOneOfConstSelect(schema: JsonSchema): boolean;
3
3
  declare function isMultiSelectArray(schema: JsonSchema): boolean;
4
4
  declare function isHeadersArray(schema: JsonSchema): boolean;
5
+ declare function isDeprecated(schema: JsonSchema): boolean;
5
6
  declare function isCodeEditor(schema: JsonSchema): boolean;
6
7
  declare function isOneOfWithProperties(schema: JsonSchema): boolean;
7
8
  declare function isAnyOfWithProperties(schema: JsonSchema): boolean;
8
- export { isAnyOfWithProperties, isCodeEditor, isHeadersArray, isMultiSelectArray, isOneOfConstSelect, isOneOfWithProperties, };
9
+ export { isAnyOfWithProperties, isCodeEditor, isDeprecated, isHeadersArray, isMultiSelectArray, isOneOfConstSelect, isOneOfWithProperties, };
9
10
  //# sourceMappingURL=schemaShape.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemaShape.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/schemaShape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK9D,iBAAS,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAMvD;AAID,iBAAS,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAIvD;AAOD,iBAAS,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAEnD;AAOD,iBAAS,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAGjD;AAMD,iBAAS,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAO1D;AAKD,iBAAS,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAM1D;AAED,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,GACtB,CAAC"}
1
+ {"version":3,"file":"schemaShape.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/schemaShape.ts"],"names":[],"mappings":"AAAA,OAAO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