@gravitee/graphene-core 2.39.2-renovate-all-devdependencies-minor-patch.1271b71 → 2.40.0
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.
- package/dist/__stories__/fixtures/index.d.ts +1 -1
- package/dist/__stories__/fixtures/index.d.ts.map +1 -1
- package/dist/__stories__/fixtures/json-schema-form/dependencies.fixture.d.ts +3 -0
- package/dist/__stories__/fixtures/json-schema-form/dependencies.fixture.d.ts.map +1 -0
- package/dist/__stories__/fixtures/json-schema-form/index.d.ts +1 -0
- package/dist/__stories__/fixtures/json-schema-form/index.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/conditional/concretizeCondition.d.ts +11 -0
- package/dist/composed/JsonSchemaForm/conditional/concretizeCondition.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/conditional/concretizePath.d.ts +11 -0
- package/dist/composed/JsonSchemaForm/conditional/concretizePath.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/oneOf/OneOfField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts +7 -10
- package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/buildIndex.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/liftRequired.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/resolveRefs.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/walkDependencies.d.ts +11 -0
- package/dist/composed/JsonSchemaForm/schema/preprocess/walkDependencies.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/schema/types.d.ts +28 -4
- package/dist/composed/JsonSchemaForm/schema/types.d.ts.map +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.js +815 -738
- package/dist/testing/index.js +1 -1
- package/package.json +5 -6
- /package/dist/{ThemeProvider-D0l3ICGl.js → ThemeProvider-C_Ea8dI-.js} +0 -0
- /package/dist/{icons-DdCWtjqd.js → icons-D_4R9XrW.js} +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export { sampleApps, sampleAppsExtended } 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, jsonSchemaFormDeprecatedSchema, jsonSchemaFormDisplayIfSchema, jsonSchemaFormEnumExampleSchema, jsonSchemaFormPlaygroundSchema, } from './json-schema-form';
|
|
8
|
+
export { jsonSchemaFormArrayExampleSchema, jsonSchemaFormCombinatorsExampleSchema, jsonSchemaFormDependenciesSchema, jsonSchemaFormDeprecatedSchema, jsonSchemaFormDisplayIfSchema, 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,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE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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 @@
|
|
|
1
|
+
{"version":3,"file":"dependencies.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/dependencies.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAIlF,eAAO,MAAM,gCAAgC,EAAE,UAwG9C,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { jsonSchemaFormArrayExampleSchema } from './array.fixture';
|
|
2
2
|
export { jsonSchemaFormCombinatorsExampleSchema } from './combinators.fixture';
|
|
3
|
+
export { jsonSchemaFormDependenciesSchema } from './dependencies.fixture';
|
|
3
4
|
export { jsonSchemaFormDeprecatedSchema } from './deprecated.fixture';
|
|
4
5
|
export { jsonSchemaFormDisplayIfSchema } from './displayIf.fixture';
|
|
5
6
|
export { jsonSchemaFormEnumExampleSchema } from './enum.fixture';
|
|
@@ -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,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACpE,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,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAchD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AASjD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAG1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAQD,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAS,EAAE,EAAE,gBAAgB,+TAyB/D;AAoED,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ResolvedCondition } from '../schema/types';
|
|
2
|
+
/**
|
|
3
|
+
* Replace `*` placeholders in a condition's `$eq` paths with concrete numeric segments from the
|
|
4
|
+
* runtime `basePath`. The index stores conditions with `*` for array-item template positions
|
|
5
|
+
* (`arr.*.show`); at render time, the actual numeric index lives in `basePath` (`arr.0`) and we
|
|
6
|
+
* align segment-by-segment to substitute. Non-`*` segments and non-numeric runtime segments are
|
|
7
|
+
* left as-is.
|
|
8
|
+
*/
|
|
9
|
+
declare function concretizeCondition(condition: ResolvedCondition, basePath: string): ResolvedCondition;
|
|
10
|
+
export { concretizeCondition };
|
|
11
|
+
//# sourceMappingURL=concretizeCondition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concretizeCondition.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/conditional/concretizeCondition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD;;;;;;GAMG;AACH,iBAAS,mBAAmB,CAAC,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAK9F;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Replace `*` wildcards in a template path with concrete numeric segments from `runtimeSegs`.
|
|
3
|
+
* Non-`*` segments and positions where the runtime segment is absent or non-numeric are left
|
|
4
|
+
* as-is.
|
|
5
|
+
*
|
|
6
|
+
* Used by both the renderer (`concretizeCondition`) and the resolver (`resolveAt`) to align
|
|
7
|
+
* array-item template paths (`arr.*.show`) with live indices (`arr.2.show`).
|
|
8
|
+
*/
|
|
9
|
+
declare function concretizePath(templatePath: string, runtimeSegs: readonly string[]): string;
|
|
10
|
+
export { concretizePath };
|
|
11
|
+
//# sourceMappingURL=concretizePath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concretizePath.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/conditional/concretizePath.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,iBAAS,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAQpF;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/object/ObjectField.tsx"],"names":[],"mappings":"
|
|
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;AAKrD,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,+BA4D3D;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":"
|
|
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;AAGrD,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,sCA+GnD;AAiBD,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { SchemaIndex, SchemaNode } from '../schema/types';
|
|
2
2
|
/**
|
|
3
|
-
* Walk `runtimePath` through the index (and the data, when provided) in parallel
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `data` is omitted, no fold happens (the renderer manages variant picking itself),
|
|
11
|
-
* - the live `value` at the path when `data` is supplied (the resolver needs it for
|
|
12
|
-
* `const`/`enum` comparisons; the renderer ignores it).
|
|
3
|
+
* Walk `runtimePath` through the index (and the data, when provided) in parallel:
|
|
4
|
+
* - the **effective `SchemaNode`** at that position, with `displayIf` paths concretized
|
|
5
|
+
* (`*` 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.
|
|
13
10
|
*/
|
|
14
11
|
declare function resolveAt(index: SchemaIndex, runtimePath: string, data?: unknown): {
|
|
15
12
|
node?: SchemaNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveAt.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/resolveAt.ts"],"names":[],"mappings":"
|
|
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,EAAiB,MAAM,iBAAiB,CAAC;AAE9E;;;;;;;;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;AA6ED,OAAO,EAAE,SAAS,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,
|
|
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;AAqOD,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liftRequired.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"liftRequired.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAajE,iBAAS,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAEpD;AAuDD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeAllOf.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mergeAllOf.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAa5E,iBAAS,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAElD;AA8DD,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -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;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveRefs.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"resolveRefs.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAIjE,iBAAS,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAEnD;AAoFD,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
/**
|
|
3
|
+
* Map every schema-form entry of `dependencies` through `fn`, leaving property-name array
|
|
4
|
+
* entries (`dependencies: { X: ["Y"] }`) untouched. Used by every preprocessor (`resolveRefs`,
|
|
5
|
+
* `mergeAllOf`, `relaxDeprecated`, `liftRequired`) to descend into nested branches with the
|
|
6
|
+
* same semantics — no copy/paste, no risk of one preprocessor forgetting to traverse a
|
|
7
|
+
* sub-schema the others handle.
|
|
8
|
+
*/
|
|
9
|
+
declare function mapSchemaDependencies(deps: JsonSchema['dependencies'], fn: (sub: JsonSchema) => JsonSchema): JsonSchema['dependencies'];
|
|
10
|
+
export { mapSchemaDependencies };
|
|
11
|
+
//# sourceMappingURL=walkDependencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walkDependencies.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/schema/preprocess/walkDependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE;;;;;;GAMG;AACH,iBAAS,qBAAqB,CAC5B,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,EAChC,EAAE,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,UAAU,GAClC,UAAU,CAAC,cAAc,CAAC,CAO5B;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -30,6 +30,10 @@ interface SchemaNode {
|
|
|
30
30
|
/** `gioConfig.displayIf` with every key resolved to an absolute RHF path at build time, so
|
|
31
31
|
* the renderer's `<ConditionalGate>` only has to `useWatch` and compare. */
|
|
32
32
|
readonly displayIf?: ResolvedCondition;
|
|
33
|
+
/** Unfolded `dependencies.X.oneOf` branches (only the discriminator-const shape — other
|
|
34
|
+
* dependency shapes are skipped with a build-time warning). One entry per branch; the renderer
|
|
35
|
+
* mounts each one gated on its `showIf`. */
|
|
36
|
+
readonly dependencyBranches?: readonly DepBranch[];
|
|
33
37
|
}
|
|
34
38
|
interface SchemaVariant {
|
|
35
39
|
/** Variant title from the schema, used by `OneOfField` as the Select option label. */
|
|
@@ -44,10 +48,28 @@ interface SchemaVariant {
|
|
|
44
48
|
/** Variant-local property nodes. `const` properties stay in the map for compat — callers that
|
|
45
49
|
* only care about user-visible inputs filter via `consts`. */
|
|
46
50
|
readonly properties: ReadonlyMap<string, SchemaNode>;
|
|
51
|
+
/** Unfolded `dependencies.X.oneOf` declared by the variant itself — mcp-acl puts its
|
|
52
|
+
* `namePatternBase` deps here. Folded when the variant is active so the gated properties
|
|
53
|
+
* (e.g. `patternValue`) become visible. */
|
|
54
|
+
readonly dependencyBranches?: readonly DepBranch[];
|
|
47
55
|
/** Original variant schema, carried so utilities operating on raw `JsonSchema`
|
|
48
56
|
* (e.g. `pickActiveVariantIndex`) keep working. */
|
|
49
57
|
readonly raw: JsonSchema;
|
|
50
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* One branch of an unfolded `dependencies.X.oneOf`. The renderer mounts the branch's properties
|
|
61
|
+
* when `showIf` matches the live data; the resolver checks `required` on the same condition.
|
|
62
|
+
*/
|
|
63
|
+
interface DepBranch {
|
|
64
|
+
/** Activation condition — single `$eq` on the discriminator key. */
|
|
65
|
+
readonly showIf: ResolvedCondition;
|
|
66
|
+
/** Required keys contributed by this branch (discriminator key stripped). */
|
|
67
|
+
readonly required: readonly string[];
|
|
68
|
+
/** Property nodes contributed by this branch. Like variant properties, these are NOT
|
|
69
|
+
* registered in `index.nodeByPath` — branches can declare overlapping keys with diverging
|
|
70
|
+
* schemas. */
|
|
71
|
+
readonly properties: ReadonlyMap<string, SchemaNode>;
|
|
72
|
+
}
|
|
51
73
|
/**
|
|
52
74
|
* A `gioConfig.displayIf` rewritten so every left-hand path is an absolute RHF path (matching
|
|
53
75
|
* what `useWatch(name)` consumes). Same shape as the raw `GioIfConfig`:
|
|
@@ -66,10 +88,12 @@ interface SchemaIndex {
|
|
|
66
88
|
* `variants[i].properties.get(key)` instead — two variants can declare the same key with
|
|
67
89
|
* different schemas, so there is no unambiguous static answer for the global map. */
|
|
68
90
|
readonly nodeByPath: ReadonlyMap<string, SchemaNode>;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
91
|
+
/** Per-instance `basePath → active-variant-index` Map. Written by `OneOfField` when the
|
|
92
|
+
* user picks a variant. Read by the same `OneOfField` for its `selectedIndex` init. The
|
|
93
|
+
* resolver builds its own SchemaIndex (so its `variantIndices` is independent) and falls
|
|
94
|
+
* back to data-shape ranking in `pickActiveVariantIndex` — for Gravitee plugin schemas
|
|
95
|
+
* with `const` / `pattern` discriminators, this is equivalent. */
|
|
72
96
|
readonly variantIndices: Map<string, number>;
|
|
73
97
|
}
|
|
74
|
-
export type { ResolvedCondition, SchemaIndex, SchemaNode, SchemaVariant };
|
|
98
|
+
export type { DepBranch, ResolvedCondition, SchemaIndex, SchemaNode, SchemaVariant };
|
|
75
99
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -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,8F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Bn as o, Bt as s, C as c, Cn as l, Ct as u, D as d, Dn as f, Dt as p, E as m, En as h, Et as g, F as _, Fn as v, Ft as y, G as b, Gn as x, Gt as S, H as C, Hn as w, Ht as T, I as E, In as D, It as O, J as k, Jn as A, Jt as j, K as M, Kn as N, Kt as P, L as F, Ln as I, Lt as L, M as R, Mn as z, Mt as B, N as V, Nn as H, Nt as U, O as W, On as G, Ot as K, P as q, Pn as J, Pt as Y, Q as X, Qt as Z, R as Q, Rn as $, Rt as ee, S as te, Sn as ne, St as re, T as ie, Tn as ae, Tt as oe, U as se, Un as ce, Ut as le, V as ue, Vn as de, Vt as fe, W as pe, Wn as me, Wt as he, X as ge, Xt as _e, Y as ve, Yt as ye, Z as be, Zt as xe, _ as Se, _n as Ce, _t as we, a as Te, an as Ee, at as De, b as Oe, bn as ke, bt as Ae, c as je, cn as Me, ct as Ne, d as Pe, dn as Fe, dt as Ie, en as Le, et as Re, f as ze, fn as Be, ft as Ve, g as He, gn as Ue, gt as We, h as Ge, hn as Ke, ht as qe, i as Je, in as Ye, it as Xe, j as Ze, jn as Qe, jt as $e, k as et, kn as tt, kt as nt, l as rt, ln as it, lt as at, m as ot, mn as st, mt as ct, n as lt, nn as ut, nt as dt, o as ft, on as pt, ot as mt, p as ht, pn as gt, pt as _t, q as vt, qn as yt, qt as bt, r as xt, rn as St, rt as Ct, s as wt, sn as Tt, st as Et, t as Dt, tn as Ot, tt as kt, u as At, un as jt, ut as Mt, v as Nt, vn as Pt, vt as Ft, w as It, wn as Lt, wt as Rt, x as zt, xn as Bt, xt as Vt, y as Ht, yn as Ut, yt as Wt, z as Gt, zn as Kt, zt as qt } from "../icons-
|
|
1
|
+
import { $ as e, $t as t, A as n, An as r, At as i, B as a, Bn as o, Bt as s, C as c, Cn as l, Ct as u, D as d, Dn as f, Dt as p, E as m, En as h, Et as g, F as _, Fn as v, Ft as y, G as b, Gn as x, Gt as S, H as C, Hn as w, Ht as T, I as E, In as D, It as O, J as k, Jn as A, Jt as j, K as M, Kn as N, Kt as P, L as F, Ln as I, Lt as L, M as R, Mn as z, Mt as B, N as V, Nn as H, Nt as U, O as W, On as G, Ot as K, P as q, Pn as J, Pt as Y, Q as X, Qt as Z, R as Q, Rn as $, Rt as ee, S as te, Sn as ne, St as re, T as ie, Tn as ae, Tt as oe, U as se, Un as ce, Ut as le, V as ue, Vn as de, Vt as fe, W as pe, Wn as me, Wt as he, X as ge, Xt as _e, Y as ve, Yt as ye, Z as be, Zt as xe, _ as Se, _n as Ce, _t as we, a as Te, an as Ee, at as De, b as Oe, bn as ke, bt as Ae, c as je, cn as Me, ct as Ne, d as Pe, dn as Fe, dt as Ie, en as Le, et as Re, f as ze, fn as Be, ft as Ve, g as He, gn as Ue, gt as We, h as Ge, hn as Ke, ht as qe, i as Je, in as Ye, it as Xe, j as Ze, jn as Qe, jt as $e, k as et, kn as tt, kt as nt, l as rt, ln as it, lt as at, m as ot, mn as st, mt as ct, n as lt, nn as ut, nt as dt, o as ft, on as pt, ot as mt, p as ht, pn as gt, pt as _t, q as vt, qn as yt, qt as bt, r as xt, rn as St, rt as Ct, s as wt, sn as Tt, st as Et, t as Dt, tn as Ot, tt as kt, u as At, un as jt, ut as Mt, v as Nt, vn as Pt, vt as Ft, w as It, wn as Lt, wt as Rt, x as zt, xn as Bt, xt as Vt, y as Ht, yn as Ut, yt as Wt, z as Gt, zn as Kt, zt as qt } from "../icons-D_4R9XrW.js";
|
|
2
2
|
export { Dt as ActivityIcon, lt as AlertCircleIcon, xt as AlignCenterIcon, Je as AlignLeftIcon, Te as AlignRightIcon, A as AnthropicIcon, yt as ApigeeIcon, ft as AppWindowIcon, wt as ArchiveIcon, je as ArrowDownIcon, rt as ArrowDownToLineIcon, At as ArrowLeftIcon, Pe as ArrowRightIcon, ze as ArrowUpDownIcon, ht as ArrowUpIcon, N as AwsIcon, x as AzureIcon, ot as BarChart2Icon, Ge as BarChart3Icon, He as BellIcon, me as BitbucketIcon, Se as BoldIcon, Nt as BookOpenIcon, Ht as BotIcon, Oe as BoxesIcon, zt as BrainCircuitIcon, te as BrainIcon, c as CableIcon, It as CalculatorIcon, ie as CalendarIcon, m as ChartLineIcon, d as CheckIcon, W as ChevronDownIcon, et as ChevronLeftIcon, n as ChevronRightIcon, Ze as ChevronUpIcon, R as ChevronsUpDownIcon, V as CircleArrowRightIcon, q as CircleCheckIcon, _ as CircleDotIcon, E as CircleHelpIcon, F as CircleIcon, Q as CircleMinusIcon, Gt as CircleStopIcon, a as CircleXIcon, ue as ClockIcon, C as CloudIcon, se as CloudUploadIcon, ce as CohereIcon, pe as CopyIcon, b as CreditCardIcon, M as DatabaseIcon, vt as DollarSignIcon, k as DownloadIcon, ve as ExpandIcon, ge as ExternalLinkIcon, be as EyeIcon, X as EyeOffIcon, e as FileTextIcon, Re as FileUpIcon, kt as FilterIcon, dt as FingerprintIcon, Ct as FlaskConicalIcon, Xe as FolderOpenIcon, De as FunnelXIcon, w as GcpIcon, mt as GiftIcon, v as GioAgentManagementIcon, J as GioApiManagementIcon, H as GioAuthorizationIcon, z as GioCatalogIcon, Qe as GioDeveloperPortalIcon, r as GioEventApiManagementIcon, tt as GioGammaIcon, G as GioHomeIcon, f as GioIamIcon, h as GioObservabilityIcon, ae as GioObserveIcon, Lt as GioPlatformIcon, l as GioProductizeIcon, ne as GioSecureIcon, Et as GitBranchIcon, de as GithubIcon, o as GitlabIcon, Ne as GlobeIcon, at as Grid2x2Icon, Mt as GripVerticalIcon, Ie as HomeIcon, Ve as InboxIcon, _t as InfoIcon, ct as ItalicIcon, Kt as KafkaIcon, qe as KeyIcon, We as KeyRoundIcon, we as KeyboardIcon, $ as KubernetesIcon, Ft as LayoutDashboardIcon, Wt as LayoutGridIcon, Ae as ListIcon, Vt as Loader2Icon, re as LockIcon, u as LogOutIcon, Rt as MailIcon, oe as MessageSquareCheckIcon, g as MessageSquareIcon, p as MessageSquareWarningIcon, K as MessageSquareXIcon, I as MistralIcon, nt as MonitorIcon, i as MoreHorizontalIcon, $e as MoreVerticalIcon, B as NetworkIcon, U as OctagonXIcon, D as OpenAIIcon, Y as PanelLeftIcon, y as PencilIcon, O as PlayIcon, L as PlugIcon, ee as PlugZapIcon, qt as PlusIcon, s as PuzzleIcon, fe as RadioIcon, T as RefreshCwIcon, le as RefreshCwOffIcon, he as RocketIcon, S as ScrollTextIcon, P as SearchIcon, bt as ServerIcon, j as SettingsIcon, ye as ShieldCheckIcon, _e as ShieldIcon, xe as ShoppingCartIcon, Z as SlidersHorizontalIcon, t as SmileIcon, Le as SparklesIcon, Ot as StarIcon, ut as ThumbsDownIcon, St as ThumbsUpIcon, Ye as Trash2Icon, Ee as TrendingDownIcon, pt as TrendingUpIcon, Tt as TriangleAlertIcon, Me as UnderlineIcon, it as UploadIcon, jt as UserCheckIcon, Fe as UserCogIcon, Be as UserIcon, gt as UsersIcon, st as UsersRoundIcon, Ke as Wand2Icon, Ue as WaypointsIcon, Ce as WebhookIcon, Pt as WorkflowIcon, Ut as WrenchIcon, ke as XIcon, Bt as ZapIcon };
|