@jsonforms/core 3.4.0-alpha.3 → 3.4.0-beta.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.
@@ -2183,10 +2183,9 @@ const mapStateToControlWithDetailProps = (state, ownProps) => {
2183
2183
  };
2184
2184
  };
2185
2185
  const mapStateToArrayControlProps = (state, ownProps) => {
2186
- const { path, schema, uischema, i18nKeyPrefix, label, ...props } = mapStateToControlWithDetailProps(state, ownProps);
2186
+ const { path, schema, uischema, label, ...props } = mapStateToControlWithDetailProps(state, ownProps);
2187
2187
  const resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);
2188
2188
  const childErrors = getSubErrorsAt(path, resolvedSchema)(state);
2189
- const t = getTranslator()(state);
2190
2189
  return {
2191
2190
  ...props,
2192
2191
  label,
@@ -2196,7 +2195,6 @@ const mapStateToArrayControlProps = (state, ownProps) => {
2196
2195
  childErrors,
2197
2196
  renderers: ownProps.renderers || getRenderers(state),
2198
2197
  cells: ownProps.cells || getCells(state),
2199
- translations: getArrayTranslations(t, arrayDefaultTranslations, i18nKeyPrefix, label),
2200
2198
  };
2201
2199
  };
2202
2200
  const mapDispatchToArrayControlProps = (dispatch) => ({
@@ -2318,8 +2316,6 @@ const controlDefaultProps = {
2318
2316
  const mapStateToCombinatorRendererProps = (state, ownProps, keyword) => {
2319
2317
  const { data, schema, rootSchema, i18nKeyPrefix, label, ...props } = mapStateToControlProps(state, ownProps);
2320
2318
  const ajv = state.jsonforms.core.ajv;
2321
- const t = getTranslator()(state);
2322
- const translations = getCombinatorTranslations(t, combinatorDefaultTranslations, i18nKeyPrefix, label);
2323
2319
  const structuralKeywords = [
2324
2320
  'required',
2325
2321
  'additionalProperties',
@@ -2359,7 +2355,6 @@ const mapStateToCombinatorRendererProps = (state, ownProps, keyword) => {
2359
2355
  label,
2360
2356
  indexOfFittingSchema,
2361
2357
  uischemas: getUISchemas(state),
2362
- translations,
2363
2358
  };
2364
2359
  };
2365
2360
  const mapStateToAllOfProps = (state, ownProps) => mapStateToCombinatorRendererProps(state, ownProps, 'allOf');
@@ -2370,7 +2365,7 @@ const mapStateToOneOfProps = (state, ownProps) => {
2370
2365
  return mapStateToCombinatorRendererProps(state, ownProps, 'oneOf');
2371
2366
  };
2372
2367
  const mapStateToArrayLayoutProps = (state, ownProps) => {
2373
- const { path, schema, uischema, errors, i18nKeyPrefix, label, ...props } = mapStateToControlWithDetailProps(state, ownProps);
2368
+ const { path, schema, uischema, errors, label, ...props } = mapStateToControlWithDetailProps(state, ownProps);
2374
2369
  const resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);
2375
2370
  const t = getTranslator()(state);
2376
2371
  const childErrors = getCombinedErrorMessage(getSubErrorsAt(path, resolvedSchema)(state), getErrorTranslator()(state), t, undefined, undefined, undefined);
@@ -2386,7 +2381,6 @@ const mapStateToArrayLayoutProps = (state, ownProps) => {
2386
2381
  data: props.data ? props.data.length : 0,
2387
2382
  errors: allErrors,
2388
2383
  minItems: schema.minItems,
2389
- translations: getArrayTranslations(t, arrayDefaultTranslations, i18nKeyPrefix, label),
2390
2384
  };
2391
2385
  };
2392
2386
  const mapStateToLabelProps = (state, props) => {