@jsonforms/examples
Advanced tools
Comparing version 3.4.0-alpha.2 to 3.4.0-alpha.3
@@ -82,7 +82,9 @@ export declare const personCoreSchema: { | ||
scope: string; | ||
suggestion?: undefined; | ||
options?: undefined; | ||
} | { | ||
type: string; | ||
scope: string; | ||
suggestion: string[]; | ||
options: { | ||
suggestion: string[]; | ||
}; | ||
})[]; | ||
@@ -89,0 +91,0 @@ text?: undefined; |
@@ -52,5 +52,8 @@ import * as allOf from './examples/allOf'; | ||
import * as multiEnumWithLabelAndDesc from './examples/enum-multi-with-label-and-desc'; | ||
import * as additionalProperties from './examples/additional-properties'; | ||
import * as login from './examples/login'; | ||
import * as string from './examples/string'; | ||
export * from './register'; | ||
export * from './example'; | ||
import * as ifThenElse from './examples/if_then_else'; | ||
export { issue_1948, defaultExample, allOf, anyOf, oneOf, oneOfArray, anyOfOneOfAllOfResolve, stringArray, array, arrayI18n, nestedArray, nestedCategorization, arrayWithDetail, arrayWithDetailAndRule, arrayWithCustomChildLabel, arrayWithSorting, arrayWithTranslatedCustomChildLabel, categorization, stepper, steppershownav, controlOptions, generateSchema, generateUISchema, layout, person, rule, ruleInheritance, dates, generateDynamic, config, text, numbers, scope, listWithDetail, listWithDetailRegistered, object, i18n, oneOfRecursive, huge, ifThenElse, onChange, enumExample, radioGroupExample, multiEnum, multiEnumWithLabelAndDesc, enumInArray, readonly, listWithDetailPrimitives, conditionalSchemaComposition, additionalErrors, issue_1884, arrayWithDefaults, }; | ||
export { issue_1948, defaultExample, allOf, anyOf, oneOf, oneOfArray, anyOfOneOfAllOfResolve, stringArray, array, arrayI18n, nestedArray, nestedCategorization, arrayWithDetail, arrayWithDetailAndRule, arrayWithCustomChildLabel, arrayWithSorting, arrayWithTranslatedCustomChildLabel, categorization, stepper, steppershownav, controlOptions, generateSchema, generateUISchema, layout, person, rule, ruleInheritance, dates, generateDynamic, config, text, numbers, scope, listWithDetail, listWithDetailRegistered, object, i18n, oneOfRecursive, huge, ifThenElse, onChange, enumExample, radioGroupExample, multiEnum, multiEnumWithLabelAndDesc, enumInArray, readonly, listWithDetailPrimitives, conditionalSchemaComposition, additionalErrors, additionalProperties, login, issue_1884, arrayWithDefaults, string, }; |
{ | ||
"name": "@jsonforms/examples", | ||
"version": "3.4.0-alpha.2", | ||
"version": "3.4.0-alpha.3", | ||
"description": "JSON Forms Example Data", | ||
@@ -38,7 +38,7 @@ "repository": "https://github.com/eclipsesource/jsonforms", | ||
"dependencies": { | ||
"ajv-i18n": "^3.5.0", | ||
"ajv-i18n": "^4.2.0", | ||
"lodash": "^4.17.21" | ||
}, | ||
"peerDependencies": { | ||
"@jsonforms/core": "3.4.0-alpha.2" | ||
"@jsonforms/core": "3.4.0-alpha.3" | ||
}, | ||
@@ -62,3 +62,3 @@ "devDependencies": { | ||
"typescript": "~5.2.2", | ||
"@jsonforms/core": "3.4.0-alpha.2" | ||
"@jsonforms/core": "3.4.0-alpha.3" | ||
}, | ||
@@ -65,0 +65,0 @@ "scripts": { |
@@ -35,5 +35,3 @@ /* | ||
import get from 'lodash/get'; | ||
// TODO change import when types are available for ajv-i18n (from v4.x) | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const localize = require('ajv-i18n'); | ||
import localize from 'ajv-i18n/localize'; | ||
@@ -47,3 +45,4 @@ export const onChange = | ||
} | ||
const localiseFunc = localize[extensionState.locale.split('-')[0]]; | ||
const localiseFunc = | ||
localize[extensionState.locale.split('-')[0] as keyof typeof localize]; | ||
localiseFunc(errors); | ||
@@ -50,0 +49,0 @@ dispatch(updateErrors(errors)); |
@@ -129,12 +129,14 @@ /* | ||
scope: '#/properties/occupation', | ||
suggestion: [ | ||
'Accountant', | ||
'Engineer', | ||
'Freelancer', | ||
'Journalism', | ||
'Physician', | ||
'Student', | ||
'Teacher', | ||
'Other', | ||
], | ||
options: { | ||
suggestion: [ | ||
'Accountant', | ||
'Engineer', | ||
'Freelancer', | ||
'Journalism', | ||
'Physician', | ||
'Student', | ||
'Teacher', | ||
'Other', | ||
], | ||
}, | ||
}, | ||
@@ -141,0 +143,0 @@ ], |
@@ -76,2 +76,5 @@ /* | ||
import * as multiEnumWithLabelAndDesc from './examples/enum-multi-with-label-and-desc'; | ||
import * as additionalProperties from './examples/additional-properties'; | ||
import * as login from './examples/login'; | ||
import * as string from './examples/string'; | ||
export * from './register'; | ||
@@ -133,4 +136,7 @@ export * from './example'; | ||
additionalErrors, | ||
additionalProperties, | ||
login, | ||
issue_1884, | ||
arrayWithDefaults, | ||
string, | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1575294
131
24212
+ Added@jsonforms/core@3.4.0-alpha.3(transitive)
+ Addedajv-i18n@4.2.0(transitive)
- Removed@jsonforms/core@3.4.0-alpha.2(transitive)
- Removedajv@6.12.6(transitive)
- Removedajv-i18n@3.6.0(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedpunycode@2.3.1(transitive)
- Removeduri-js@4.4.1(transitive)
Updatedajv-i18n@^4.2.0