@gravitee/graphene-core 2.12.3 → 2.13.0-graphene-136.2997b4a
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 +2 -1
- package/dist/__stories__/fixtures/index.d.ts.map +1 -1
- package/dist/__stories__/fixtures/json-schema-form/array.fixture.d.ts +18 -0
- package/dist/__stories__/fixtures/json-schema-form/array.fixture.d.ts.map +1 -0
- package/dist/__stories__/fixtures/json-schema-form/enum.fixture.d.ts +9 -0
- package/dist/__stories__/fixtures/json-schema-form/enum.fixture.d.ts.map +1 -0
- package/dist/__stories__/fixtures/json-schema-form/index.d.ts +4 -0
- package/dist/__stories__/fixtures/json-schema-form/index.d.ts.map +1 -0
- package/dist/__stories__/fixtures/{json-schema-form.fixture.d.ts → json-schema-form/playground.fixture.d.ts} +2 -2
- package/dist/__stories__/fixtures/json-schema-form/playground.fixture.d.ts.map +1 -0
- package/dist/__stories__/fixtures/json-schema-form-object-variants.fixture.d.ts +15 -0
- package/dist/__stories__/fixtures/json-schema-form-object-variants.fixture.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.d.ts +13 -0
- package/dist/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/array/ArrayField.d.ts +9 -0
- package/dist/composed/JsonSchemaForm/fields/array/ArrayField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/array/HeadersArrayField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/array/HeadersArrayField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/array/use-array-field.d.ts +14 -0
- package/dist/composed/JsonSchemaForm/fields/array/use-array-field.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/boolean/BooleanField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/boolean/BooleanField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/enum/EnumField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/enum/EnumField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/enum/MultiSelectField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/enum/MultiSelectField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/enum/enumOptions.d.ts +11 -0
- package/dist/composed/JsonSchemaForm/fields/enum/enumOptions.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/null/NullField.d.ts +3 -0
- package/dist/composed/JsonSchemaForm/fields/null/NullField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/number/NumberField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/number/NumberField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts +9 -0
- package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/string/StringField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/string/StringField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/form-bindings/ajv-messages.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/form-bindings/composeResolvers.d.ts +4 -0
- package/dist/composed/JsonSchemaForm/form-bindings/composeResolvers.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/form-bindings/extractDefaults.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.d.ts +6 -0
- package/dist/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/index.d.ts +4 -2
- package/dist/composed/JsonSchemaForm/index.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/models/jsonSchemaResolver.types.d.ts +5 -0
- package/dist/composed/JsonSchemaForm/models/jsonSchemaResolver.types.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/fieldErrors.d.ts +6 -0
- package/dist/composed/JsonSchemaForm/utils/fieldErrors.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/liftRequired.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/utils/resolveRefs.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts +6 -0
- package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts.map +1 -0
- package/dist/index.js +8973 -7803
- package/dist/styles/globals.css +1 -1
- package/package.json +2 -1
- package/snippets/json-schema-form-simple.tsx +49 -0
- package/snippets/json-schema-form-with-meta.tsx +97 -0
- package/dist/__stories__/fixtures/json-schema-form.fixture.d.ts.map +0 -1
- package/dist/composed/JsonSchemaForm/utils/ajv-messages.d.ts.map +0 -1
- package/dist/composed/JsonSchemaForm/utils/extractDefaults.d.ts.map +0 -1
- package/dist/composed/JsonSchemaForm/utils/jsonSchemaResolver.d.ts +0 -5
- package/dist/composed/JsonSchemaForm/utils/jsonSchemaResolver.d.ts.map +0 -1
- /package/dist/composed/JsonSchemaForm/{utils → form-bindings}/ajv-messages.d.ts +0 -0
- /package/dist/composed/JsonSchemaForm/{utils → form-bindings}/extractDefaults.d.ts +0 -0
|
@@ -5,7 +5,8 @@
|
|
|
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 { jsonSchemaFormPlaygroundSchema } from './json-schema-form
|
|
8
|
+
export { jsonSchemaFormArrayExampleSchema, jsonSchemaFormEnumExampleSchema, jsonSchemaFormPlaygroundSchema, } from './json-schema-form';
|
|
9
|
+
export { jsonSchemaFormObjectVariantsSchema } from './json-schema-form-object-variants.fixture';
|
|
9
10
|
export { catalogApis } from './apim/api-catalog.fixture';
|
|
10
11
|
export { samplePlans } from './apim/plans.fixture';
|
|
11
12
|
export { pageLayoutPlaygroundBreadcrumbs } from './apim/page-layout-labels.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,
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JsonSchema } from '../../../composed/JsonSchemaForm';
|
|
2
|
+
/**
|
|
3
|
+
* Mirrors ui-particles' `arrayExample` (`gio-form-json-schema/json-schema-example/array.ts`).
|
|
4
|
+
* Covers every array variant US 4 ships:
|
|
5
|
+
* - simple string array
|
|
6
|
+
* - array of objects (collapsible items rendering nested fields)
|
|
7
|
+
* - array with `minItems` / `maxItems` constraints
|
|
8
|
+
* - array with `gioConfig.uiBorder: 'full'` opt-in (Graphene default = borderless)
|
|
9
|
+
* - headers-array via `gioConfig.uiType: 'gio-headers-array'`
|
|
10
|
+
* - array with default values
|
|
11
|
+
* - required array (`minItems: 1` to actually fire ajv on submit)
|
|
12
|
+
* - read-only array with values (non-interactive)
|
|
13
|
+
*
|
|
14
|
+
* Used as the forcing function for ISO behaviour with Particles plus a smoke test of every
|
|
15
|
+
* state combination (default / required / disabled / min-max bounded).
|
|
16
|
+
*/
|
|
17
|
+
export declare const jsonSchemaFormArrayExampleSchema: JsonSchema;
|
|
18
|
+
//# sourceMappingURL=array.fixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/array.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAElF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gCAAgC,EAAE,UA8G9C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JsonSchema } from '../../../composed/JsonSchemaForm';
|
|
2
|
+
/**
|
|
3
|
+
* Mirrors ui-particles' `enumExample` (`gio-form-json-schema/json-schema-example/enum.ts`).
|
|
4
|
+
* Covers every variant US 3 ships: simple enum, enum with `gioConfig.enumLabelMap`, oneOf
|
|
5
|
+
* with const/title, enum behind a `$ref`, multi-select via array+uniqueItems+items.enum, and
|
|
6
|
+
* multi-select with labeled items. Used as a forcing function for ISO behavior with Particles.
|
|
7
|
+
*/
|
|
8
|
+
export declare const jsonSchemaFormEnumExampleSchema: JsonSchema;
|
|
9
|
+
//# sourceMappingURL=enum.fixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/enum.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAElF;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,EAAE,UAmN7C,CAAC"}
|
|
@@ -0,0 +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,8 +1,8 @@
|
|
|
1
|
-
import { JsonSchema } from '
|
|
1
|
+
import { JsonSchema } from '../../../composed/JsonSchemaForm';
|
|
2
2
|
/**
|
|
3
3
|
* Synthetic schema covering each primitive type, a `$ref` to a shared definition, an array
|
|
4
4
|
* with a custom `uniqueItemProperties` constraint, and a null-typed field. Designed to
|
|
5
5
|
* exercise resolveRefs + extractDefaults + jsonSchemaResolver end-to-end in US 1's shell.
|
|
6
6
|
*/
|
|
7
7
|
export declare const jsonSchemaFormPlaygroundSchema: JsonSchema;
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=playground.fixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playground.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/playground.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAElF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,UA8D5C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JsonSchema } from '../../composed/JsonSchemaForm';
|
|
2
|
+
/**
|
|
3
|
+
* Synthetic schema that exercises the four combinations of `ObjectField` rendering:
|
|
4
|
+
*
|
|
5
|
+
* | uiBorder | description |
|
|
6
|
+
* | -------- | ----------- |
|
|
7
|
+
* | default | absent | plain title + children, most minimal
|
|
8
|
+
* | default | present | title + description line + children
|
|
9
|
+
* | 'full' | absent | bordered card, legend on the border, no description
|
|
10
|
+
* | 'full' | present | bordered card with description below the legend
|
|
11
|
+
*
|
|
12
|
+
* Used by the `ObjectVariants` story to visually compare each combination side by side.
|
|
13
|
+
*/
|
|
14
|
+
export declare const jsonSchemaFormObjectVariantsSchema: JsonSchema;
|
|
15
|
+
//# sourceMappingURL=json-schema-form-object-variants.fixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-schema-form-object-variants.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/json-schema-form-object-variants.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAElF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kCAAkC,EAAE,UAwChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"
|
|
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,2CAiDjE;AAyBD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { FieldValues, UseFormReturn } from 'react-hook-form';
|
|
3
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
4
|
+
declare function setupJsonSchemaForm(options: {
|
|
5
|
+
readonly schema: JsonSchema;
|
|
6
|
+
readonly defaultValues?: Record<string, unknown>;
|
|
7
|
+
readonly disabled?: boolean;
|
|
8
|
+
readonly render: (liftedSchema: JsonSchema) => ReactElement;
|
|
9
|
+
}): {
|
|
10
|
+
form: UseFormReturn<FieldValues>;
|
|
11
|
+
};
|
|
12
|
+
export { setupJsonSchemaForm };
|
|
13
|
+
//# sourceMappingURL=setupJsonSchemaForm.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
interface ArrayFieldProps {
|
|
3
|
+
readonly schema: JsonSchema;
|
|
4
|
+
readonly name?: string;
|
|
5
|
+
readonly depth: number;
|
|
6
|
+
}
|
|
7
|
+
declare function ArrayField({ schema, name, depth }: ArrayFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { ArrayField };
|
|
9
|
+
//# sourceMappingURL=ArrayField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/ArrayField.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,UAAU,eAAe;IACvB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AASD,iBAAS,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,2CA+C3D;AAsFD,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
interface HeadersArrayFieldProps {
|
|
3
|
+
readonly schema: JsonSchema;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
}
|
|
6
|
+
declare function HeadersArrayField({ schema, name }: HeadersArrayFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { HeadersArrayField };
|
|
8
|
+
//# sourceMappingURL=HeadersArrayField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeadersArrayField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAKD,iBAAS,iBAAiB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,sBAAsB,2CA6DlE;AA0ED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
declare function useArrayField(schema: JsonSchema, name: string | undefined): {
|
|
3
|
+
ctx: import('../../models/JsonSchemaFormContext').JsonSchemaFormContextValue;
|
|
4
|
+
path: string;
|
|
5
|
+
fields: Record<"id", string>[];
|
|
6
|
+
append: import('react-hook-form').UseFieldArrayAppend<import('react-hook-form').FieldValues, string>;
|
|
7
|
+
remove: import('react-hook-form').UseFieldArrayRemove;
|
|
8
|
+
fieldState: import('react-hook-form').ControllerFieldState;
|
|
9
|
+
isDisabled: boolean;
|
|
10
|
+
atMin: boolean;
|
|
11
|
+
atMax: boolean;
|
|
12
|
+
};
|
|
13
|
+
export { useArrayField };
|
|
14
|
+
//# sourceMappingURL=use-array-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-array-field.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/use-array-field.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,iBAAS,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS;;;;;;;;;;EAqBlE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
interface BooleanFieldProps {
|
|
3
|
+
readonly schema: JsonSchema;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
}
|
|
6
|
+
declare function BooleanField({ schema, name }: BooleanFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { BooleanField };
|
|
8
|
+
//# sourceMappingURL=BooleanField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BooleanField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAIjE,UAAU,iBAAiB;IACzB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,iBAAS,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,iBAAiB,2CAoCxD;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
interface EnumFieldProps {
|
|
3
|
+
readonly schema: JsonSchema;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
}
|
|
6
|
+
declare function EnumField({ schema, name }: EnumFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { EnumField };
|
|
8
|
+
//# sourceMappingURL=EnumField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnumField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/enum/EnumField.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAMjE,UAAU,cAAc;IACtB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,iBAAS,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,cAAc,2CAqClD;AAWD,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
interface MultiSelectFieldProps {
|
|
3
|
+
readonly schema: JsonSchema;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
}
|
|
6
|
+
declare function MultiSelectField({ schema, name }: MultiSelectFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { MultiSelectField };
|
|
8
|
+
//# sourceMappingURL=MultiSelectField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiSelectField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,iBAAS,gBAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,qBAAqB,2CA8EhE;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
interface EnumOption {
|
|
3
|
+
readonly raw: unknown;
|
|
4
|
+
readonly key: string;
|
|
5
|
+
readonly label: string;
|
|
6
|
+
}
|
|
7
|
+
declare function enumOptions(values: readonly unknown[], labelMap?: Record<string, string>): EnumOption[];
|
|
8
|
+
declare function oneOfConstOptions(oneOf: readonly JsonSchema[]): EnumOption[];
|
|
9
|
+
export { enumOptions, oneOfConstOptions };
|
|
10
|
+
export type { EnumOption };
|
|
11
|
+
//# sourceMappingURL=enumOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enumOptions.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/enum/enumOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,UAAU,UAAU;IAClB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IAGtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAcD,iBAAS,WAAW,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,EAAE,CAMhG;AAID,iBAAS,iBAAiB,CAAC,KAAK,EAAE,SAAS,UAAU,EAAE,GAAG,UAAU,EAAE,CAMrE;AAED,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;AAC1C,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NullField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/null/NullField.tsx"],"names":[],"mappings":"AAGA,iBAAS,SAAS,SAEjB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
interface NumberFieldProps {
|
|
3
|
+
readonly schema: JsonSchema;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
}
|
|
6
|
+
declare function NumberField({ schema, name }: NumberFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { NumberField };
|
|
8
|
+
//# sourceMappingURL=NumberField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/number/NumberField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAIjE,UAAU,gBAAgB;IACxB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CAkDtD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
interface ObjectFieldProps {
|
|
3
|
+
readonly schema: JsonSchema;
|
|
4
|
+
readonly name?: string;
|
|
5
|
+
readonly depth: number;
|
|
6
|
+
}
|
|
7
|
+
declare function ObjectField({ schema, name, depth }: ObjectFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { ObjectField };
|
|
9
|
+
//# sourceMappingURL=ObjectField.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
interface StringFieldProps {
|
|
3
|
+
readonly schema: JsonSchema;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
}
|
|
6
|
+
declare function StringField({ schema, name }: StringFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { StringField };
|
|
8
|
+
//# sourceMappingURL=StringField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/string/StringField.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAIjE,UAAU,gBAAgB;IACxB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CAuDtD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ajv-messages.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/ajv-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AA0BvC,iBAAS,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAG9D;AAOD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Resolver } from 'react-hook-form';
|
|
2
|
+
declare function composeResolvers<TFieldValues extends Record<string, unknown> = Record<string, unknown>>(...resolvers: ReadonlyArray<Resolver<TFieldValues>>): Resolver<TFieldValues>;
|
|
3
|
+
export { composeResolvers };
|
|
4
|
+
//# sourceMappingURL=composeResolvers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composeResolvers.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,QAAQ,EAAkB,MAAM,iBAAiB,CAAC;AAO7E,iBAAS,gBAAgB,CAAC,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9F,GAAG,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAClD,QAAQ,CAAC,YAAY,CAAC,CAWxB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Resolver } from 'react-hook-form';
|
|
2
|
+
import { JsonSchema } from '../models/json-schema.types';
|
|
3
|
+
import { JsonSchemaResolverOptions } from '../models/jsonSchemaResolver.types';
|
|
4
|
+
declare function jsonSchemaResolver<TFieldValues extends Record<string, unknown> = Record<string, unknown>>(schema: JsonSchema, options?: JsonSchemaResolverOptions): Resolver<TFieldValues>;
|
|
5
|
+
export { jsonSchemaResolver };
|
|
6
|
+
//# sourceMappingURL=jsonSchemaResolver.d.ts.map
|
|
@@ -0,0 +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,CAqDxB;AA6GD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { JsonSchemaForm } from './JsonSchemaForm';
|
|
2
2
|
export type { JsonSchemaFormProps } from './JsonSchemaForm';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
3
|
+
export { composeResolvers } from './form-bindings/composeResolvers';
|
|
4
|
+
export { extractDefaults } from './form-bindings/extractDefaults';
|
|
5
|
+
export { jsonSchemaResolver } from './form-bindings/jsonSchemaResolver';
|
|
5
6
|
export type { GioBannerConfig, GioConfig, GioIfConfig, JsonSchema } from './models/json-schema.types';
|
|
7
|
+
export type { JsonSchemaResolverOptions } from './models/jsonSchemaResolver.types';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,eAAe,EAAE,MAAM,
|
|
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,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACtG,YAAY,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldErrors.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/fieldErrors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMlD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,KAAK,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAStF;AAED,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;
|
|
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;AAgCD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveRefs.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/resolveRefs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAG9D,iBAAS,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAEnD;
|
|
1
|
+
{"version":3,"file":"resolveRefs.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/resolveRefs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAG9D,iBAAS,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAEnD;AA6ED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JsonSchema } from '../models/json-schema.types';
|
|
2
|
+
declare function isOneOfConstSelect(schema: JsonSchema): boolean;
|
|
3
|
+
declare function isMultiSelectArray(schema: JsonSchema): boolean;
|
|
4
|
+
declare function isHeadersArray(schema: JsonSchema): boolean;
|
|
5
|
+
export { isHeadersArray, isMultiSelectArray, isOneOfConstSelect };
|
|
6
|
+
//# sourceMappingURL=schemaShape.d.ts.map
|
|
@@ -0,0 +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"}
|