@commercetools-uikit/localized-utils 19.5.0 → 19.7.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.
@@ -148,7 +148,7 @@ const isTouched = touched => {
148
148
  };
149
149
 
150
150
  // NOTE: This string will be replaced on build time with the package version.
151
- var version = "19.5.0";
151
+ var version = "19.7.0";
152
152
 
153
153
  exports.createLocalizedDataAttributes = createLocalizedDataAttributes;
154
154
  exports.createLocalizedString = createLocalizedString;
@@ -147,7 +147,7 @@ const isTouched = touched => {
147
147
  };
148
148
 
149
149
  // NOTE: This string will be replaced on build time with the package version.
150
- var version = "19.5.0";
150
+ var version = "19.7.0";
151
151
 
152
152
  exports.createLocalizedDataAttributes = createLocalizedDataAttributes;
153
153
  exports.createLocalizedString = createLocalizedString;
@@ -124,6 +124,6 @@ const isTouched = touched => {
124
124
  };
125
125
 
126
126
  // NOTE: This string will be replaced on build time with the package version.
127
- var version = "19.5.0";
127
+ var version = "19.7.0";
128
128
 
129
129
  export { createLocalizedDataAttributes, createLocalizedString, getHasErrorOnRemainingLanguages, getHasWarningOnRemainingLanguages, getId, getName, getPrimaryLanguage, isEmpty, isTouched, omitEmptyTranslations, sortLanguages, splitLanguages, version };
@@ -16,8 +16,8 @@ export declare const getPrimaryLanguage: (language: string) => string;
16
16
  export declare const splitLanguages: (selectedLanguage: string, languages: string[]) => TSplittedLanguageGroups;
17
17
  export declare const sortLanguages: (selectedLanguage: string, allLanguages: string[]) => string[];
18
18
  export declare const createLocalizedDataAttributes: <TProps extends {}>(props: TProps, language: string) => TLocalizedDataAttributes;
19
- export declare const getHasErrorOnRemainingLanguages: <TErrors extends {}>(errors?: TErrors | undefined, selectedLanguage?: string) => boolean;
20
- export declare const getHasWarningOnRemainingLanguages: <TWarnings extends {}>(warnings?: TWarnings | undefined, selectedLanguage?: string) => boolean;
19
+ export declare const getHasErrorOnRemainingLanguages: <TErrors extends {}>(errors?: TErrors, selectedLanguage?: string) => boolean;
20
+ export declare const getHasWarningOnRemainingLanguages: <TWarnings extends {}>(warnings?: TWarnings, selectedLanguage?: string) => boolean;
21
21
  export declare const createLocalizedString: (languages: string[], existingTranslations?: TLocalizedString) => TLocalizedString;
22
22
  export declare const isEmpty: (localizedString?: TLocalizedString) => boolean;
23
23
  export declare const omitEmptyTranslations: <TTranslations extends TLocalizedString>(localizedString: TTranslations) => TLocalizedString;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/localized-utils",
3
3
  "description": "Utilities to work with localized data.",
4
- "version": "19.5.0",
4
+ "version": "19.7.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/utils": "19.5.0",
24
+ "@commercetools-uikit/utils": "19.7.0",
25
25
  "lodash": "4.17.21"
26
26
  }
27
27
  }