@gravitee/graphene-core 2.27.0 → 2.28.0-renovate-eslint.3cdc869

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.
@@ -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, jsonSchemaFormCombinatorsExampleSchema, 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,sCAAsC,EACtC,+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,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,5 +1,6 @@
1
1
  export { jsonSchemaFormArrayExampleSchema } from './array.fixture';
2
2
  export { jsonSchemaFormCombinatorsExampleSchema } from './combinators.fixture';
3
+ export { jsonSchemaFormDeprecatedSchema } from './deprecated.fixture';
3
4
  export { jsonSchemaFormEnumExampleSchema } from './enum.fixture';
4
5
  export { jsonSchemaFormPlaygroundSchema } from './playground.fixture';
5
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,sCAAsC,EAAE,MAAM,uBAAuB,CAAC;AAC/E,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;AAM7D,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,2CAwChG;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;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,kDAyDjE;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,kDA4DjE;AAoBD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
@@ -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;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
+ {"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;AAkBjE,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":"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;AA4CD,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;AAEzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAWpF,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,CA6DxB;AA2JD,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,CA+DxB;AA0KD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"liftRequired.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/liftRequired.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAW9D,iBAAS,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAEpD;AAuCD,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"liftRequired.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/liftRequired.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAY9D,iBAAS,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAEpD;AAiDD,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,23 @@
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
+ * Property-level deprecation: a `deprecated: true` node is substituted with `{ deprecated: true }`
7
+ * — a schema with no `type`, no constraints, no `properties`. Functionally equivalent to `{}`
8
+ * for ajv (accepts any value), AND preserves the flag for `SchemaField`'s early-return so the UI
9
+ * keeps hiding the field. The replacement key stays in the parent's `properties` (so
10
+ * `additionalProperties: false` does not reject hydrated values) but is dropped from `required`.
11
+ * Plugin authors retire a field by flipping the flag; previously-saved configs keep round-
12
+ * tripping without manual cleanup.
13
+ *
14
+ * `oneOf` / `anyOf` deprecation: when an entire **variant** is `deprecated: true`, the variant is
15
+ * **dropped** from the array instead of being replaced by `{ deprecated: true }`. Replacement
16
+ * would yield a permissive stub (`{}` for ajv) that matches any value and overmatches against
17
+ * 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.
20
+ */
21
+ declare function relaxDeprecated(schema: JsonSchema): JsonSchema;
22
+ export { relaxDeprecated };
23
+ //# 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;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CA4BvD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}