@gravitee/graphene-core 2.25.1 → 2.26.0-graphene-140.651d83e

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 (31) hide show
  1. package/dist/__stories__/fixtures/index.d.ts +1 -1
  2. package/dist/__stories__/fixtures/index.d.ts.map +1 -1
  3. package/dist/__stories__/fixtures/json-schema-form/combinators.fixture.d.ts +15 -0
  4. package/dist/__stories__/fixtures/json-schema-form/combinators.fixture.d.ts.map +1 -0
  5. package/dist/__stories__/fixtures/json-schema-form/deprecated.fixture.d.ts +23 -0
  6. package/dist/__stories__/fixtures/json-schema-form/deprecated.fixture.d.ts.map +1 -0
  7. package/dist/__stories__/fixtures/json-schema-form/index.d.ts +2 -0
  8. package/dist/__stories__/fixtures/json-schema-form/index.d.ts.map +1 -1
  9. package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts.map +1 -1
  10. package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
  11. package/dist/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.d.ts +1 -0
  12. package/dist/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.d.ts.map +1 -1
  13. package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts.map +1 -1
  14. package/dist/composed/JsonSchemaForm/fields/oneOf/OneOfField.d.ts +8 -0
  15. package/dist/composed/JsonSchemaForm/fields/oneOf/OneOfField.d.ts.map +1 -0
  16. package/dist/composed/JsonSchemaForm/fields/oneOf/sanitizeOneOf.d.ts +4 -0
  17. package/dist/composed/JsonSchemaForm/fields/oneOf/sanitizeOneOf.d.ts.map +1 -0
  18. package/dist/composed/JsonSchemaForm/form-bindings/extractDefaults.d.ts.map +1 -1
  19. package/dist/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.d.ts.map +1 -1
  20. package/dist/composed/JsonSchemaForm/models/JsonSchemaFormContext.d.ts +1 -0
  21. package/dist/composed/JsonSchemaForm/models/JsonSchemaFormContext.d.ts.map +1 -1
  22. package/dist/composed/JsonSchemaForm/utils/mergeAllOf.d.ts +4 -0
  23. package/dist/composed/JsonSchemaForm/utils/mergeAllOf.d.ts.map +1 -0
  24. package/dist/composed/JsonSchemaForm/utils/pickActiveVariant.d.ts +23 -0
  25. package/dist/composed/JsonSchemaForm/utils/pickActiveVariant.d.ts.map +1 -0
  26. package/dist/composed/JsonSchemaForm/utils/relaxDeprecated.d.ts +16 -0
  27. package/dist/composed/JsonSchemaForm/utils/relaxDeprecated.d.ts.map +1 -0
  28. package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts +3 -1
  29. package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts.map +1 -1
  30. package/dist/index.js +869 -699
  31. package/package.json +2 -1
@@ -5,7 +5,7 @@
5
5
  export { sampleApps } from './shell/app-switcher.fixture';
6
6
  export { sampleEnvironments, sampleEnvironmentsForSidebar } from './shell/environment-picker.fixture';
7
7
  export { agentManagementApps, agentManagementNavGroups, contextNavGroups, contextPageTabKeys, findContextLabel, findNavLabel, pageLayoutNavGroups, sampleNavGroups, } from './navigation.fixture';
8
- export { jsonSchemaFormArrayExampleSchema, jsonSchemaFormEnumExampleSchema, jsonSchemaFormPlaygroundSchema, } from './json-schema-form';
8
+ export { jsonSchemaFormArrayExampleSchema, jsonSchemaFormCombinatorsExampleSchema, jsonSchemaFormDeprecatedSchema, 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';
11
11
  export { samplePlans } from './apim/plans.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,MAAM,8BAA8B,CAAC;AAC1D,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,EACL,gCAAgC,EAChC,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,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,EACL,gCAAgC,EAChC,sCAAsC,EACtC,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,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"}
@@ -0,0 +1,15 @@
1
+ import { JsonSchema } from '../../../composed/JsonSchemaForm';
2
+ /**
3
+ * Mirrors ui-particles' `oneOfExample` + `allOfExample` (gio-form-json-schema/json-schema-example/).
4
+ * Covers every combinator variant US 5 ships:
5
+ * - `oneOf` with `{ title, properties }` variants — variant selector + per-variant fields
6
+ * - `oneOf` with `const` discriminator — hidden discriminator auto-set on variant switch
7
+ * - `oneOf` nested inside an object inside `oneOf` — recursion + path propagation
8
+ * - `anyOf` rendered like `oneOf` (Gravitee single-choice convention)
9
+ * - `allOf` with `$ref` composition — folded into the parent's properties by `mergeAllOf`
10
+ *
11
+ * Forcing function for ISO behaviour: any Particles plugin schema using these patterns must
12
+ * render unchanged through Graphene.
13
+ */
14
+ export declare const jsonSchemaFormCombinatorsExampleSchema: JsonSchema;
15
+ //# sourceMappingURL=combinators.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combinators.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/combinators.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAElF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sCAAsC,EAAE,UA4HpD,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { JsonSchema } from '../../../composed/JsonSchemaForm';
2
+ /**
3
+ * Demo schema for the `deprecated: true` keyword. Exercises the three observable behaviours of
4
+ * the renderer + resolver pipeline:
5
+ *
6
+ * 1. **Render hide** — `legacyToken` is `deprecated: true`. No input is mounted; the field
7
+ * does not appear at all in the form, even though it sits next to live fields.
8
+ * 2. **Default not seeded** — `legacyToken` declares `default: 'old-default'` but
9
+ * `extractDefaults` skips deprecated subtrees, so `form.watch()` on the right does NOT
10
+ * show the legacy default. New configs start empty for the field.
11
+ * 3. **Required relaxation** — `legacyRequired` is `deprecated: true` AND listed in the
12
+ * parent's `required: [...]`. `relaxDeprecated` drops it from required before ajv runs,
13
+ * so the form submits successfully even though the deprecated key is absent.
14
+ *
15
+ * Also showcases an entire deprecated object subtree (`oldSection`) — its descendants
16
+ * (`oldSection.detail`) never reach the renderer either.
17
+ *
18
+ * Plug the host's `defaultValues={{ legacyToken: 'hydrated-from-backend' }}` to see the
19
+ * round-trip: the value lives on in `form.watch()`, untouched by render, validates fine, and
20
+ * goes back out on submit.
21
+ */
22
+ export declare const jsonSchemaFormDeprecatedSchema: JsonSchema;
23
+ //# sourceMappingURL=deprecated.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecated.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/deprecated.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAElF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,8BAA8B,EAAE,UA0C5C,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export { jsonSchemaFormArrayExampleSchema } from './array.fixture';
2
+ export { jsonSchemaFormCombinatorsExampleSchema } from './combinators.fixture';
3
+ export { jsonSchemaFormDeprecatedSchema } from './deprecated.fixture';
2
4
  export { jsonSchemaFormEnumExampleSchema } from './enum.fixture';
3
5
  export { jsonSchemaFormPlaygroundSchema } from './playground.fixture';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,sCAAsC,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC"}
@@ -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;AAI7D,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC5C;AAED,iBAAS,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,QAAgB,EAAE,OAAO,EAAE,EAAE,mBAAmB,2CAiChG;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
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;AAO7D,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC5C;AAED,iBAAS,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,QAAgB,EAAE,OAAO,EAAE,EAAE,mBAAmB,2CAqChG;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAG7D,UAAU,gBAAgB;IACxB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAG5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAOD,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAS,EAAE,EAAE,gBAAgB,kDAsDjE;AAoBD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAS7D,UAAU,gBAAgB;IACxB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAG5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAQD,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAS,EAAE,EAAE,gBAAgB,kDA2DjE;AAoBD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
@@ -8,6 +8,7 @@ declare function setupJsonSchemaForm(options: {
8
8
  readonly render: (liftedSchema: JsonSchema) => ReactElement;
9
9
  }): {
10
10
  form: UseFormReturn<FieldValues>;
11
+ variantIndices: Map<string, number>;
11
12
  };
12
13
  export { setupJsonSchemaForm };
13
14
  //# sourceMappingURL=setupJsonSchemaForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setupJsonSchemaForm.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,KAAK,WAAW,EAAW,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAUjE,iBAAS,mBAAmB,CAAC,OAAO,EAAE;IACpC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,KAAK,YAAY,CAAC;CAC7D,GAAG;IAAE,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;CAAE,CAwBvC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"setupJsonSchemaForm.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,KAAK,WAAW,EAAW,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAWjE,iBAAS,mBAAmB,CAAC,OAAO,EAAE;IACpC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,KAAK,YAAY,CAAC;CAC7D,GAAG;IAAE,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAyB5E;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/object/ObjectField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAGjE,UAAU,gBAAgB;IACxB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAQD,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,gBAAgB,2CA4B7D;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"ObjectField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/object/ObjectField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,UAAU,gBAAgB;IACxB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAQD,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,gBAAgB,2CA+B7D;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { JsonSchema } from '../../models/json-schema.types';
2
+ interface OneOfFieldProps {
3
+ readonly schema: JsonSchema;
4
+ readonly depth: number;
5
+ }
6
+ declare function OneOfField({ schema, depth }: OneOfFieldProps): import("react/jsx-runtime").JSX.Element | null;
7
+ export { OneOfField };
8
+ //# sourceMappingURL=OneOfField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OneOfField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAIjE,UAAU,eAAe;IACvB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAYD,iBAAS,UAAU,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,eAAe,kDA6ErD;AAmBD,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { JsonSchema } from '../../models/json-schema.types';
2
+ declare function sanitizeOneOf(variants: readonly JsonSchema[]): JsonSchema[];
3
+ export { sanitizeOneOf };
4
+ //# sourceMappingURL=sanitizeOneOf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanitizeOneOf.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/oneOf/sanitizeOneOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAOjE,iBAAS,aAAa,CAAC,QAAQ,EAAE,SAAS,UAAU,EAAE,GAAG,UAAU,EAAE,CAQpE;AAED,OAAO,EAAE,aAAa,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;AAG9D,iBAAS,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAWpD;AA2BD,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;AAI9D,iBAAS,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAYpD;AA+CD,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"jsonSchemaResolver.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts"],"names":[],"mappings":"AAEA,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;AASpF,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,CAsDxB;AA6GD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"jsonSchemaResolver.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA2B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAYpF,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,CA8DxB;AA2JD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -4,6 +4,7 @@ interface JsonSchemaFormContextValue {
4
4
  readonly basePath: string;
5
5
  readonly disabled: boolean;
6
6
  readonly externalContext?: Record<string, unknown>;
7
+ readonly variantIndices?: Map<string, number>;
7
8
  }
8
9
  declare const JsonSchemaFormContext: import('react').Context<JsonSchemaFormContextValue | null>;
9
10
  declare function useJsonSchemaFormContext(): JsonSchemaFormContextValue;
@@ -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;AAE5D,UAAU,0BAA0B;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpD;AAED,QAAA,MAAM,qBAAqB,4DAAyD,CAAC;AAErF,iBAAS,wBAAwB,IAAI,0BAA0B,CAM9D;AAED,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,CAAC;AAC3D,YAAY,EAAE,0BAA0B,EAAE,CAAC"}
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;AAE5D,UAAU,0BAA0B;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGnD,QAAQ,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED,QAAA,MAAM,qBAAqB,4DAAyD,CAAC;AAErF,iBAAS,wBAAwB,IAAI,0BAA0B,CAM9D;AAED,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,CAAC;AAC3D,YAAY,EAAE,0BAA0B,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { JsonSchema } from '../models/json-schema.types';
2
+ declare function mergeAllOf(schema: JsonSchema): JsonSchema;
3
+ export { mergeAllOf };
4
+ //# sourceMappingURL=mergeAllOf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeAllOf.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/mergeAllOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAU9D,iBAAS,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAElD;AAiDD,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { JsonSchema } from '../models/json-schema.types';
2
+ declare function getVariantIndices(schema: JsonSchema): Map<string, number>;
3
+ /**
4
+ * Resolves which `oneOf` / `anyOf` variant is active for `basePath`.
5
+ *
6
+ * The shared `variantIndices` Map holds explicit user picks (written by the renderer when the
7
+ * user changes variant). If its entry is still consistent with the data, we return it.
8
+ * Otherwise we rank variants by data-shape fit (Formly / RJSF style: `const` equality required,
9
+ * then `required` presence, then property-presence count) and return the best match — falling
10
+ * back to index 0 when no variant scores positively.
11
+ *
12
+ * Caller supplies `getValue(key)` — `control._getWatch` for the renderer, raw `data[key]` for
13
+ * the resolver — so this stays render-engine agnostic.
14
+ */
15
+ declare function pickActiveVariantIndex(variants: readonly JsonSchema[], basePath: string, variantIndices: ReadonlyMap<string, number> | undefined, getValue: (key: string) => unknown): number;
16
+ /**
17
+ * `(key, constValue)` pairs declared by a variant. Used by `OneOfField` to mount the hidden
18
+ * `DiscriminatorBinding` for each `const` so the value is written into the form when the
19
+ * variant becomes active.
20
+ */
21
+ declare function variantConsts(variant: JsonSchema): readonly (readonly [string, unknown])[];
22
+ export { getVariantIndices, pickActiveVariantIndex, variantConsts };
23
+ //# sourceMappingURL=pickActiveVariant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickActiveVariant.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/pickActiveVariant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAa9D,iBAAS,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAOlE;AAED;;;;;;;;;;;GAWG;AACH,iBAAS,sBAAsB,CAC7B,QAAQ,EAAE,SAAS,UAAU,EAAE,EAC/B,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EACvD,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,GACjC,MAAM,CAQR;AAiDD;;;;GAIG;AACH,iBAAS,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAInF;AAED,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { JsonSchema } from '../models/json-schema.types';
2
+ /**
3
+ * Schema preprocessor for `deprecated: true` nodes. Runs in **both** pipelines (renderer and
4
+ * resolver) so the same enriched schema flows everywhere — no asymmetry, no dead metadata.
5
+ *
6
+ * For every node flagged `deprecated: true` we substitute `{ deprecated: true }` — a schema
7
+ * that has no `type`, no constraints, no `properties`. It is functionally equivalent to `{}`
8
+ * for ajv (accepts any value), AND preserves the flag for `SchemaField`'s early-return so the
9
+ * UI keeps hiding the field after preprocessing. The replacement key is kept in the parent's
10
+ * `properties` (so `additionalProperties: false` does not reject hydrated values) but dropped
11
+ * from `required`. Plugin authors retire a field by flipping the flag; previously-saved
12
+ * configs keep round-tripping without manual cleanup.
13
+ */
14
+ declare function relaxDeprecated(schema: JsonSchema): JsonSchema;
15
+ export { relaxDeprecated };
16
+ //# sourceMappingURL=relaxDeprecated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relaxDeprecated.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/relaxDeprecated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,iBAAS,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAwBvD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -2,5 +2,7 @@ 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
- export { isHeadersArray, isMultiSelectArray, isOneOfConstSelect };
5
+ declare function isOneOfWithProperties(schema: JsonSchema): boolean;
6
+ declare function isAnyOfWithProperties(schema: JsonSchema): boolean;
7
+ export { isAnyOfWithProperties, isHeadersArray, isMultiSelectArray, isOneOfConstSelect, isOneOfWithProperties };
6
8
  //# 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;AAED,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
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;AAMD,iBAAS,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAO1D;AAKD,iBAAS,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAM1D;AAED,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,CAAC"}