@gravitee/graphene-core 2.10.2 → 2.11.0-graphene-134.f6812d6
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 -0
- package/dist/__stories__/fixtures/index.d.ts.map +1 -1
- package/dist/__stories__/fixtures/json-schema-form.fixture.d.ts +8 -0
- package/dist/__stories__/fixtures/json-schema-form.fixture.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts +13 -0
- package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts +10 -0
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/BooleanField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/BooleanField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/NullField.d.ts +3 -0
- package/dist/composed/JsonSchemaForm/fields/NullField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/NumberField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/NumberField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/ObjectField.d.ts +9 -0
- package/dist/composed/JsonSchemaForm/fields/ObjectField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/StringField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/StringField.d.ts.map +1 -0
- 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/index.d.ts +6 -0
- package/dist/composed/JsonSchemaForm/index.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/models/JsonSchemaFormContext.d.ts +12 -0
- package/dist/composed/JsonSchemaForm/models/JsonSchemaFormContext.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/models/json-schema.types.d.ts +55 -0
- package/dist/composed/JsonSchemaForm/models/json-schema.types.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/ajv-messages.d.ts +4 -0
- package/dist/composed/JsonSchemaForm/utils/ajv-messages.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/extractDefaults.d.ts +4 -0
- package/dist/composed/JsonSchemaForm/utils/extractDefaults.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/jsonPointer.d.ts +4 -0
- package/dist/composed/JsonSchemaForm/utils/jsonPointer.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/jsonSchemaResolver.d.ts +5 -0
- package/dist/composed/JsonSchemaForm/utils/jsonSchemaResolver.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/labelOf.d.ts +6 -0
- package/dist/composed/JsonSchemaForm/utils/labelOf.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/liftRequired.d.ts +4 -0
- package/dist/composed/JsonSchemaForm/utils/liftRequired.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/resolveRefs.d.ts +4 -0
- package/dist/composed/JsonSchemaForm/utils/resolveRefs.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12185 -7018
- package/dist/styles/globals.css +1 -1
- package/package.json +6 -1
|
@@ -5,6 +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 { jsonSchemaFormPlaygroundSchema } from './json-schema-form.fixture';
|
|
8
9
|
export { catalogApis } from './apim/api-catalog.fixture';
|
|
9
10
|
export { samplePlans } from './apim/plans.fixture';
|
|
10
11
|
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,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,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAC5E,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,8 @@
|
|
|
1
|
+
import { JsonSchema } from '../../composed/JsonSchemaForm';
|
|
2
|
+
/**
|
|
3
|
+
* Synthetic schema covering each primitive type, a `$ref` to a shared definition, an array
|
|
4
|
+
* with a custom `uniqueItemProperties` constraint, and a null-typed field. Designed to
|
|
5
|
+
* exercise resolveRefs + extractDefaults + jsonSchemaResolver end-to-end in US 1's shell.
|
|
6
|
+
*/
|
|
7
|
+
export declare const jsonSchemaFormPlaygroundSchema: JsonSchema;
|
|
8
|
+
//# sourceMappingURL=json-schema-form.fixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-schema-form.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/json-schema-form.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAElF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,UAuD5C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Control, FieldValues } from 'react-hook-form';
|
|
2
|
+
import { JsonSchema } from './models/json-schema.types';
|
|
3
|
+
interface JsonSchemaFormProps {
|
|
4
|
+
readonly schema: JsonSchema;
|
|
5
|
+
readonly control: Control<FieldValues>;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly disabled?: boolean;
|
|
8
|
+
readonly context?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
declare function JsonSchemaForm({ schema, control, name, disabled, context }: JsonSchemaFormProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { JsonSchemaForm };
|
|
12
|
+
export type { JsonSchemaFormProps };
|
|
13
|
+
//# sourceMappingURL=JsonSchemaForm.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JsonSchema } from './models/json-schema.types';
|
|
2
|
+
interface SchemaFieldProps {
|
|
3
|
+
readonly schema: JsonSchema;
|
|
4
|
+
readonly name?: string;
|
|
5
|
+
readonly depth?: number;
|
|
6
|
+
}
|
|
7
|
+
declare function SchemaField({ schema, name, depth }: SchemaFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { SchemaField };
|
|
9
|
+
export type { SchemaFieldProps };
|
|
10
|
+
//# sourceMappingURL=SchemaField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,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;AAMD,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAS,EAAE,EAAE,gBAAgB,2CA0BjE;AA0BD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,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/BooleanField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAI9D,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 @@
|
|
|
1
|
+
{"version":3,"file":"NullField.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/fields/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/NumberField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAI9D,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/ObjectField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAG9D,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;AAOD,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,gBAAgB,2CA0B7D;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/StringField.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAI9D,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,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;AAGhF,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,CAAA;CAAE,CAwBvC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { JsonSchemaForm } from './JsonSchemaForm';
|
|
2
|
+
export type { JsonSchemaFormProps } from './JsonSchemaForm';
|
|
3
|
+
export { extractDefaults } from './utils/extractDefaults';
|
|
4
|
+
export { jsonSchemaResolver } from './utils/jsonSchemaResolver';
|
|
5
|
+
export type { GioBannerConfig, GioConfig, GioIfConfig, JsonSchema } from './models/json-schema.types';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,yBAAyB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Control, FieldValues } from 'react-hook-form';
|
|
2
|
+
interface JsonSchemaFormContextValue {
|
|
3
|
+
readonly control: Control<FieldValues>;
|
|
4
|
+
readonly basePath: string;
|
|
5
|
+
readonly disabled: boolean;
|
|
6
|
+
readonly externalContext?: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
declare const JsonSchemaFormContext: import('react').Context<JsonSchemaFormContextValue | null>;
|
|
9
|
+
declare function useJsonSchemaFormContext(): JsonSchemaFormContextValue;
|
|
10
|
+
export { JsonSchemaFormContext, useJsonSchemaFormContext };
|
|
11
|
+
export type { JsonSchemaFormContextValue };
|
|
12
|
+
//# sourceMappingURL=JsonSchemaFormContext.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { JSONSchema7 } from 'json-schema';
|
|
2
|
+
type GioBannerConfig = {
|
|
3
|
+
title: string;
|
|
4
|
+
text: string;
|
|
5
|
+
} | {
|
|
6
|
+
text: string;
|
|
7
|
+
};
|
|
8
|
+
type ElColumns = 'key' | 'value' | 'both' | 'neither';
|
|
9
|
+
interface GioIfConfig {
|
|
10
|
+
$eq: Record<string, string | number | boolean | Array<string | number | boolean>>;
|
|
11
|
+
}
|
|
12
|
+
interface GioUiTypeConfig {
|
|
13
|
+
uiType?: string;
|
|
14
|
+
uiTypeProps?: {
|
|
15
|
+
elColumns?: ElColumns;
|
|
16
|
+
} & Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
interface GioCodeEditorConfig {
|
|
19
|
+
language: string;
|
|
20
|
+
schemas?: ReadonlyArray<{
|
|
21
|
+
uri: string;
|
|
22
|
+
schema: unknown;
|
|
23
|
+
}>;
|
|
24
|
+
schema?: unknown;
|
|
25
|
+
}
|
|
26
|
+
interface GioConfig extends GioUiTypeConfig {
|
|
27
|
+
displayIf?: GioIfConfig;
|
|
28
|
+
disableIf?: GioIfConfig;
|
|
29
|
+
banner?: GioBannerConfig;
|
|
30
|
+
uniqueItemProperties?: string[];
|
|
31
|
+
monacoEditorConfig?: GioCodeEditorConfig;
|
|
32
|
+
enumLabelMap?: Record<string, string>;
|
|
33
|
+
uiBorder?: 'none' | 'full';
|
|
34
|
+
el?: boolean;
|
|
35
|
+
}
|
|
36
|
+
interface JsonSchema extends Omit<JSONSchema7, 'properties' | 'items' | 'oneOf' | 'anyOf' | 'allOf' | 'definitions' | '$defs'> {
|
|
37
|
+
gioConfig?: GioConfig;
|
|
38
|
+
deprecated?: boolean;
|
|
39
|
+
properties?: Record<string, JsonSchema>;
|
|
40
|
+
items?: JsonSchema | JsonSchema[];
|
|
41
|
+
oneOf?: JsonSchema[];
|
|
42
|
+
anyOf?: JsonSchema[];
|
|
43
|
+
allOf?: JsonSchema[];
|
|
44
|
+
definitions?: Record<string, JsonSchema>;
|
|
45
|
+
$defs?: Record<string, JsonSchema>;
|
|
46
|
+
/**
|
|
47
|
+
* @internal Set by `liftRequired` during JsonSchemaForm's pre-render pipeline. Indicates this
|
|
48
|
+
* schema represents a property that its parent declared in `required: [...]`. Field components
|
|
49
|
+
* read this to mark inputs as required. Do not author manually — it is overwritten by
|
|
50
|
+
* `liftRequired`.
|
|
51
|
+
*/
|
|
52
|
+
isRequired?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export type { ElColumns, GioBannerConfig, GioCodeEditorConfig, GioConfig, GioIfConfig, GioUiTypeConfig, JsonSchema };
|
|
55
|
+
//# sourceMappingURL=json-schema.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-schema.types.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/models/json-schema.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,KAAK,eAAe,G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a,GAAG,OAAO,CAC/E;IACC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAC;IAClC,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACnC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,mBAAmB,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ajv-messages.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/ajv-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAyBvC,iBAAS,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAG9D;AAOD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractDefaults.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/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 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonPointer.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/jsonPointer.ts"],"names":[],"mappings":"AAYA,iBAAS,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,iBAAS,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Resolver } from 'react-hook-form';
|
|
2
|
+
import { JsonSchema } from '../models/json-schema.types';
|
|
3
|
+
declare function jsonSchemaResolver<TFieldValues extends Record<string, unknown> = Record<string, unknown>>(schema: JsonSchema): Resolver<TFieldValues>;
|
|
4
|
+
export { jsonSchemaResolver };
|
|
5
|
+
//# sourceMappingURL=jsonSchemaResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonSchemaResolver.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/jsonSchemaResolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA2B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAO9D,iBAAS,kBAAkB,CAAC,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChG,MAAM,EAAE,UAAU,GACjB,QAAQ,CAAC,YAAY,CAAC,CA4BxB;AA6GD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JsonSchema } from '../models/json-schema.types';
|
|
2
|
+
declare function capitalizePropertyName(name: string | undefined): string;
|
|
3
|
+
declare function capitalizeLastPathSegment(path: string): string;
|
|
4
|
+
declare function getFieldLabel(schema: JsonSchema, propertyName: string | undefined): string;
|
|
5
|
+
export { capitalizeLastPathSegment, capitalizePropertyName, getFieldLabel };
|
|
6
|
+
//# sourceMappingURL=labelOf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labelOf.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/labelOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAK9D,iBAAS,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAGhE;AAID,iBAAS,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD;AAKD,iBAAS,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAKnF;AAED,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +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;AAM9D,iBAAS,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAEpD;AA6BD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +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;AAmED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export * from './composed/DataTablePagination';
|
|
|
54
54
|
export * from './composed/DatePicker';
|
|
55
55
|
export * from './composed/FacetedFilter';
|
|
56
56
|
export * from './composed/FileUpload';
|
|
57
|
+
export * from './composed/JsonSchemaForm';
|
|
57
58
|
export * from './composed/LayoutSlots';
|
|
58
59
|
export * from './composed/SelectorDropdown';
|
|
59
60
|
export * from './composed/SidebarMode';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAA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