@gravitee/graphene-core 2.12.2 → 2.12.3-graphene-134.1e231bd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/dist/__stories__/fixtures/index.d.ts +1 -0
  2. package/dist/__stories__/fixtures/index.d.ts.map +1 -1
  3. package/dist/__stories__/fixtures/json-schema-form-object-variants.fixture.d.ts +15 -0
  4. package/dist/__stories__/fixtures/json-schema-form-object-variants.fixture.d.ts.map +1 -0
  5. package/dist/__stories__/fixtures/json-schema-form.fixture.d.ts.map +1 -1
  6. package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
  7. package/dist/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.d.ts +13 -0
  8. package/dist/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.d.ts.map +1 -0
  9. package/dist/composed/JsonSchemaForm/fields/boolean/BooleanField.d.ts +8 -0
  10. package/dist/composed/JsonSchemaForm/fields/boolean/BooleanField.d.ts.map +1 -0
  11. package/dist/composed/JsonSchemaForm/fields/null/NullField.d.ts +3 -0
  12. package/dist/composed/JsonSchemaForm/fields/null/NullField.d.ts.map +1 -0
  13. package/dist/composed/JsonSchemaForm/fields/number/NumberField.d.ts +8 -0
  14. package/dist/composed/JsonSchemaForm/fields/number/NumberField.d.ts.map +1 -0
  15. package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts +9 -0
  16. package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts.map +1 -0
  17. package/dist/composed/JsonSchemaForm/fields/string/StringField.d.ts +8 -0
  18. package/dist/composed/JsonSchemaForm/fields/string/StringField.d.ts.map +1 -0
  19. package/dist/composed/JsonSchemaForm/utils/fieldErrors.d.ts +6 -0
  20. package/dist/composed/JsonSchemaForm/utils/fieldErrors.d.ts.map +1 -0
  21. package/dist/index.js +6981 -6536
  22. package/package.json +2 -1
@@ -6,6 +6,7 @@ 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
8
  export { jsonSchemaFormPlaygroundSchema } from './json-schema-form.fixture';
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,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"}
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,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { JsonSchema } from '../../composed/JsonSchemaForm';
2
+ /**
3
+ * 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":"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,UAmD5C,CAAC"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,UAAU,gBAAgB;IACxB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAID,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,IAAa,EAAE,KAAS,EAAE,EAAE,gBAAgB,2CAiB1E;AAYD,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":"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,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,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,3 @@
1
+ declare function NullField(): null;
2
+ export { NullField };
3
+ //# sourceMappingURL=NullField.d.ts.map
@@ -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,6 @@
1
+ import { FieldError } from 'react-hook-form';
2
+ declare function fieldErrorsAsArray(error: FieldError | undefined): Array<{
3
+ message?: string;
4
+ }>;
5
+ export { fieldErrorsAsArray };
6
+ //# sourceMappingURL=fieldErrors.d.ts.map
@@ -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"}