@commercetools-uikit/localized-utils
Advanced tools
Comparing version 0.0.0-preview-test-icon-bundle-20241210182318 to 0.0.0-preview-test-icon-entrypoints-20241212180849
@@ -44,4 +44,4 @@ 'use strict'; | ||
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; } | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; } | ||
function ownKeys(e, r) { var t = /*#__PURE__*/_Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = /*#__PURE__*/_Object$getOwnPropertySymbols__default["default"](e); r && (o = /*#__PURE__*/_filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; } | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = /*#__PURE__*/ownKeys( /*#__PURE__*/Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, /*#__PURE__*/_Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = /*#__PURE__*/ownKeys( /*#__PURE__*/Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, /*#__PURE__*/_Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; } | ||
const getId = (idPrefix, language) => idPrefix && language ? `${idPrefix}.${language}` : undefined; | ||
@@ -55,5 +55,5 @@ const getName = (namePrefix, language) => namePrefix && language ? `${namePrefix}.${language}` : undefined; | ||
const splitLanguages = (selectedLanguage, languages) => { | ||
const primaryLanguage = getPrimaryLanguage(selectedLanguage); | ||
const related = _filterInstanceProperty__default["default"](languages).call(languages, language => getPrimaryLanguage(language) === primaryLanguage); | ||
const unrelated = _filterInstanceProperty__default["default"](languages).call(languages, language => getPrimaryLanguage(language) !== primaryLanguage); | ||
const primaryLanguage = /*#__PURE__*/getPrimaryLanguage(selectedLanguage); | ||
const related = /*#__PURE__*/_filterInstanceProperty__default["default"](languages).call(languages, language => getPrimaryLanguage(language) === primaryLanguage); | ||
const unrelated = /*#__PURE__*/_filterInstanceProperty__default["default"](languages).call(languages, language => getPrimaryLanguage(language) !== primaryLanguage); | ||
return { | ||
@@ -71,3 +71,3 @@ unrelated, | ||
const sortLanguages = (selectedLanguage, allLanguages) => { | ||
const _splitLanguages = splitLanguages(selectedLanguage, _filterInstanceProperty__default["default"](allLanguages).call(allLanguages, language => language !== selectedLanguage)), | ||
const _splitLanguages = /*#__PURE__*/splitLanguages(selectedLanguage, /*#__PURE__*/_filterInstanceProperty__default["default"](allLanguages).call(allLanguages, language => language !== selectedLanguage)), | ||
related = _splitLanguages.related, | ||
@@ -78,5 +78,5 @@ unrelated = _splitLanguages.unrelated; | ||
const createLocalizedDataAttributes = (props, language) => { | ||
const entries = _Object$entries__default["default"](utils.filterDataAttributes(props)); | ||
const entries = /*#__PURE__*/_Object$entries__default["default"]( /*#__PURE__*/utils.filterDataAttributes(props)); | ||
return _reduceInstanceProperty__default["default"](entries).call(entries, (localizedDataAttributes, _ref) => { | ||
let _ref2 = _slicedToArray(_ref, 2), | ||
let _ref2 = /*#__PURE__*/_slicedToArray(_ref, 2), | ||
key = _ref2[0], | ||
@@ -99,3 +99,3 @@ value = _ref2[1]; | ||
var _context; | ||
return _someInstanceProperty__default["default"](_context = _Object$keys__default["default"](errors)).call(_context, language => language !== selectedLanguage); | ||
return _someInstanceProperty__default["default"](_context = /*#__PURE__*/_Object$keys__default["default"](errors)).call(_context, language => language !== selectedLanguage); | ||
} | ||
@@ -107,3 +107,3 @@ return false; | ||
var _context2; | ||
return _someInstanceProperty__default["default"](_context2 = _Object$keys__default["default"](warnings)).call(_context2, language => language !== selectedLanguage); | ||
return _someInstanceProperty__default["default"](_context2 = /*#__PURE__*/_Object$keys__default["default"](warnings)).call(_context2, language => language !== selectedLanguage); | ||
} | ||
@@ -115,3 +115,3 @@ return false; | ||
const mergedLanguages = existingTranslations ? uniq__default["default"]([...languages, ..._Object$keys__default["default"](existingTranslations)]) : languages; | ||
return _reduceInstanceProperty__default["default"](mergedLanguages).call(mergedLanguages, (localizedString, locale) => _objectSpread(_objectSpread({}, localizedString), {}, { | ||
return _reduceInstanceProperty__default["default"](mergedLanguages).call(mergedLanguages, (localizedString, locale) => _objectSpread( /*#__PURE__*/_objectSpread({}, localizedString), {}, { | ||
[locale]: existingTranslations && existingTranslations[locale] || '' | ||
@@ -123,3 +123,3 @@ }), {}); | ||
if (!localizedString) return true; | ||
return _everyInstanceProperty__default["default"](_context3 = _Object$values__default["default"](localizedString)).call(_context3, value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0); | ||
return _everyInstanceProperty__default["default"](_context3 = /*#__PURE__*/_Object$values__default["default"](localizedString)).call(_context3, value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0); | ||
}; | ||
@@ -129,8 +129,8 @@ const omitEmptyTranslations = localizedString => { | ||
process.env.NODE_ENV !== "production" ? utils.warning(typeof localizedString === 'object', 'omitEmptyTranslations must be called with an object') : void 0; | ||
return _reduceInstanceProperty__default["default"](_context4 = _Object$entries__default["default"](localizedString)).call(_context4, (localizedStringWithoutEmptyTranslations, _ref3) => { | ||
let _ref4 = _slicedToArray(_ref3, 2), | ||
return _reduceInstanceProperty__default["default"](_context4 = /*#__PURE__*/_Object$entries__default["default"](localizedString)).call(_context4, (localizedStringWithoutEmptyTranslations, _ref3) => { | ||
let _ref4 = /*#__PURE__*/_slicedToArray(_ref3, 2), | ||
locale = _ref4[0], | ||
value = _ref4[1]; | ||
if (value && _trimInstanceProperty__default["default"](value).call(value).length > 0) { | ||
return _objectSpread(_objectSpread({}, localizedStringWithoutEmptyTranslations), {}, { | ||
return _objectSpread( /*#__PURE__*/_objectSpread({}, localizedStringWithoutEmptyTranslations), {}, { | ||
[locale]: value | ||
@@ -145,3 +145,3 @@ }); | ||
var _context5; | ||
return _someInstanceProperty__default["default"](_context5 = _Object$values__default["default"](touched)).call(_context5, Boolean); | ||
return _someInstanceProperty__default["default"](_context5 = /*#__PURE__*/_Object$values__default["default"](touched)).call(_context5, Boolean); | ||
} | ||
@@ -148,0 +148,0 @@ return false; |
@@ -44,4 +44,4 @@ 'use strict'; | ||
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; } | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; } | ||
function ownKeys(e, r) { var t = /*#__PURE__*/_Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = /*#__PURE__*/_Object$getOwnPropertySymbols__default["default"](e); r && (o = /*#__PURE__*/_filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; } | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = /*#__PURE__*/ownKeys( /*#__PURE__*/Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, /*#__PURE__*/_Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = /*#__PURE__*/ownKeys( /*#__PURE__*/Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, /*#__PURE__*/_Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; } | ||
const getId = (idPrefix, language) => idPrefix && language ? `${idPrefix}.${language}` : undefined; | ||
@@ -55,5 +55,5 @@ const getName = (namePrefix, language) => namePrefix && language ? `${namePrefix}.${language}` : undefined; | ||
const splitLanguages = (selectedLanguage, languages) => { | ||
const primaryLanguage = getPrimaryLanguage(selectedLanguage); | ||
const related = _filterInstanceProperty__default["default"](languages).call(languages, language => getPrimaryLanguage(language) === primaryLanguage); | ||
const unrelated = _filterInstanceProperty__default["default"](languages).call(languages, language => getPrimaryLanguage(language) !== primaryLanguage); | ||
const primaryLanguage = /*#__PURE__*/getPrimaryLanguage(selectedLanguage); | ||
const related = /*#__PURE__*/_filterInstanceProperty__default["default"](languages).call(languages, language => getPrimaryLanguage(language) === primaryLanguage); | ||
const unrelated = /*#__PURE__*/_filterInstanceProperty__default["default"](languages).call(languages, language => getPrimaryLanguage(language) !== primaryLanguage); | ||
return { | ||
@@ -71,3 +71,3 @@ unrelated, | ||
const sortLanguages = (selectedLanguage, allLanguages) => { | ||
const _splitLanguages = splitLanguages(selectedLanguage, _filterInstanceProperty__default["default"](allLanguages).call(allLanguages, language => language !== selectedLanguage)), | ||
const _splitLanguages = /*#__PURE__*/splitLanguages(selectedLanguage, /*#__PURE__*/_filterInstanceProperty__default["default"](allLanguages).call(allLanguages, language => language !== selectedLanguage)), | ||
related = _splitLanguages.related, | ||
@@ -78,5 +78,5 @@ unrelated = _splitLanguages.unrelated; | ||
const createLocalizedDataAttributes = (props, language) => { | ||
const entries = _Object$entries__default["default"](utils.filterDataAttributes(props)); | ||
const entries = /*#__PURE__*/_Object$entries__default["default"]( /*#__PURE__*/utils.filterDataAttributes(props)); | ||
return _reduceInstanceProperty__default["default"](entries).call(entries, (localizedDataAttributes, _ref) => { | ||
let _ref2 = _slicedToArray(_ref, 2), | ||
let _ref2 = /*#__PURE__*/_slicedToArray(_ref, 2), | ||
key = _ref2[0], | ||
@@ -99,3 +99,3 @@ value = _ref2[1]; | ||
var _context; | ||
return _someInstanceProperty__default["default"](_context = _Object$keys__default["default"](errors)).call(_context, language => language !== selectedLanguage); | ||
return _someInstanceProperty__default["default"](_context = /*#__PURE__*/_Object$keys__default["default"](errors)).call(_context, language => language !== selectedLanguage); | ||
} | ||
@@ -107,3 +107,3 @@ return false; | ||
var _context2; | ||
return _someInstanceProperty__default["default"](_context2 = _Object$keys__default["default"](warnings)).call(_context2, language => language !== selectedLanguage); | ||
return _someInstanceProperty__default["default"](_context2 = /*#__PURE__*/_Object$keys__default["default"](warnings)).call(_context2, language => language !== selectedLanguage); | ||
} | ||
@@ -115,3 +115,3 @@ return false; | ||
const mergedLanguages = existingTranslations ? uniq__default["default"]([...languages, ..._Object$keys__default["default"](existingTranslations)]) : languages; | ||
return _reduceInstanceProperty__default["default"](mergedLanguages).call(mergedLanguages, (localizedString, locale) => _objectSpread(_objectSpread({}, localizedString), {}, { | ||
return _reduceInstanceProperty__default["default"](mergedLanguages).call(mergedLanguages, (localizedString, locale) => _objectSpread( /*#__PURE__*/_objectSpread({}, localizedString), {}, { | ||
[locale]: existingTranslations && existingTranslations[locale] || '' | ||
@@ -123,12 +123,12 @@ }), {}); | ||
if (!localizedString) return true; | ||
return _everyInstanceProperty__default["default"](_context3 = _Object$values__default["default"](localizedString)).call(_context3, value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0); | ||
return _everyInstanceProperty__default["default"](_context3 = /*#__PURE__*/_Object$values__default["default"](localizedString)).call(_context3, value => !value || _trimInstanceProperty__default["default"](value).call(value).length === 0); | ||
}; | ||
const omitEmptyTranslations = localizedString => { | ||
var _context4; | ||
return _reduceInstanceProperty__default["default"](_context4 = _Object$entries__default["default"](localizedString)).call(_context4, (localizedStringWithoutEmptyTranslations, _ref3) => { | ||
let _ref4 = _slicedToArray(_ref3, 2), | ||
return _reduceInstanceProperty__default["default"](_context4 = /*#__PURE__*/_Object$entries__default["default"](localizedString)).call(_context4, (localizedStringWithoutEmptyTranslations, _ref3) => { | ||
let _ref4 = /*#__PURE__*/_slicedToArray(_ref3, 2), | ||
locale = _ref4[0], | ||
value = _ref4[1]; | ||
if (value && _trimInstanceProperty__default["default"](value).call(value).length > 0) { | ||
return _objectSpread(_objectSpread({}, localizedStringWithoutEmptyTranslations), {}, { | ||
return _objectSpread( /*#__PURE__*/_objectSpread({}, localizedStringWithoutEmptyTranslations), {}, { | ||
[locale]: value | ||
@@ -143,3 +143,3 @@ }); | ||
var _context5; | ||
return _someInstanceProperty__default["default"](_context5 = _Object$values__default["default"](touched)).call(_context5, Boolean); | ||
return _someInstanceProperty__default["default"](_context5 = /*#__PURE__*/_Object$values__default["default"](touched)).call(_context5, Boolean); | ||
} | ||
@@ -146,0 +146,0 @@ return false; |
@@ -19,6 +19,6 @@ import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols'; | ||
import uniq from 'lodash/uniq'; | ||
import { filterDataAttributes, warning } from '@commercetools-uikit/utils'; | ||
import { warning, filterDataAttributes } from '@commercetools-uikit/utils'; | ||
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context6 = ownKeys(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context7 = ownKeys(Object(t))).call(_context7, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } | ||
function ownKeys(e, r) { var t = /*#__PURE__*/_Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = /*#__PURE__*/_Object$getOwnPropertySymbols(e); r && (o = /*#__PURE__*/_filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context6 = /*#__PURE__*/ownKeys( /*#__PURE__*/Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, /*#__PURE__*/_Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context7 = /*#__PURE__*/ownKeys( /*#__PURE__*/Object(t))).call(_context7, function (r) { _Object$defineProperty(e, r, /*#__PURE__*/_Object$getOwnPropertyDescriptor(t, r)); }); } return e; } | ||
const getId = (idPrefix, language) => idPrefix && language ? `${idPrefix}.${language}` : undefined; | ||
@@ -32,5 +32,5 @@ const getName = (namePrefix, language) => namePrefix && language ? `${namePrefix}.${language}` : undefined; | ||
const splitLanguages = (selectedLanguage, languages) => { | ||
const primaryLanguage = getPrimaryLanguage(selectedLanguage); | ||
const related = _filterInstanceProperty(languages).call(languages, language => getPrimaryLanguage(language) === primaryLanguage); | ||
const unrelated = _filterInstanceProperty(languages).call(languages, language => getPrimaryLanguage(language) !== primaryLanguage); | ||
const primaryLanguage = /*#__PURE__*/getPrimaryLanguage(selectedLanguage); | ||
const related = /*#__PURE__*/_filterInstanceProperty(languages).call(languages, language => getPrimaryLanguage(language) === primaryLanguage); | ||
const unrelated = /*#__PURE__*/_filterInstanceProperty(languages).call(languages, language => getPrimaryLanguage(language) !== primaryLanguage); | ||
return { | ||
@@ -48,3 +48,3 @@ unrelated, | ||
const sortLanguages = (selectedLanguage, allLanguages) => { | ||
const _splitLanguages = splitLanguages(selectedLanguage, _filterInstanceProperty(allLanguages).call(allLanguages, language => language !== selectedLanguage)), | ||
const _splitLanguages = /*#__PURE__*/splitLanguages(selectedLanguage, /*#__PURE__*/_filterInstanceProperty(allLanguages).call(allLanguages, language => language !== selectedLanguage)), | ||
related = _splitLanguages.related, | ||
@@ -55,5 +55,5 @@ unrelated = _splitLanguages.unrelated; | ||
const createLocalizedDataAttributes = (props, language) => { | ||
const entries = _Object$entries(filterDataAttributes(props)); | ||
const entries = /*#__PURE__*/_Object$entries( /*#__PURE__*/filterDataAttributes(props)); | ||
return _reduceInstanceProperty(entries).call(entries, (localizedDataAttributes, _ref) => { | ||
let _ref2 = _slicedToArray(_ref, 2), | ||
let _ref2 = /*#__PURE__*/_slicedToArray(_ref, 2), | ||
key = _ref2[0], | ||
@@ -76,3 +76,3 @@ value = _ref2[1]; | ||
var _context; | ||
return _someInstanceProperty(_context = _Object$keys(errors)).call(_context, language => language !== selectedLanguage); | ||
return _someInstanceProperty(_context = /*#__PURE__*/_Object$keys(errors)).call(_context, language => language !== selectedLanguage); | ||
} | ||
@@ -84,3 +84,3 @@ return false; | ||
var _context2; | ||
return _someInstanceProperty(_context2 = _Object$keys(warnings)).call(_context2, language => language !== selectedLanguage); | ||
return _someInstanceProperty(_context2 = /*#__PURE__*/_Object$keys(warnings)).call(_context2, language => language !== selectedLanguage); | ||
} | ||
@@ -92,3 +92,3 @@ return false; | ||
const mergedLanguages = existingTranslations ? uniq([...languages, ..._Object$keys(existingTranslations)]) : languages; | ||
return _reduceInstanceProperty(mergedLanguages).call(mergedLanguages, (localizedString, locale) => _objectSpread(_objectSpread({}, localizedString), {}, { | ||
return _reduceInstanceProperty(mergedLanguages).call(mergedLanguages, (localizedString, locale) => _objectSpread( /*#__PURE__*/_objectSpread({}, localizedString), {}, { | ||
[locale]: existingTranslations && existingTranslations[locale] || '' | ||
@@ -100,3 +100,3 @@ }), {}); | ||
if (!localizedString) return true; | ||
return _everyInstanceProperty(_context3 = _Object$values(localizedString)).call(_context3, value => !value || _trimInstanceProperty(value).call(value).length === 0); | ||
return _everyInstanceProperty(_context3 = /*#__PURE__*/_Object$values(localizedString)).call(_context3, value => !value || _trimInstanceProperty(value).call(value).length === 0); | ||
}; | ||
@@ -106,8 +106,8 @@ const omitEmptyTranslations = localizedString => { | ||
process.env.NODE_ENV !== "production" ? warning(typeof localizedString === 'object', 'omitEmptyTranslations must be called with an object') : void 0; | ||
return _reduceInstanceProperty(_context4 = _Object$entries(localizedString)).call(_context4, (localizedStringWithoutEmptyTranslations, _ref3) => { | ||
let _ref4 = _slicedToArray(_ref3, 2), | ||
return _reduceInstanceProperty(_context4 = /*#__PURE__*/_Object$entries(localizedString)).call(_context4, (localizedStringWithoutEmptyTranslations, _ref3) => { | ||
let _ref4 = /*#__PURE__*/_slicedToArray(_ref3, 2), | ||
locale = _ref4[0], | ||
value = _ref4[1]; | ||
if (value && _trimInstanceProperty(value).call(value).length > 0) { | ||
return _objectSpread(_objectSpread({}, localizedStringWithoutEmptyTranslations), {}, { | ||
return _objectSpread( /*#__PURE__*/_objectSpread({}, localizedStringWithoutEmptyTranslations), {}, { | ||
[locale]: value | ||
@@ -122,3 +122,3 @@ }); | ||
var _context5; | ||
return _someInstanceProperty(_context5 = _Object$values(touched)).call(_context5, Boolean); | ||
return _someInstanceProperty(_context5 = /*#__PURE__*/_Object$values(touched)).call(_context5, Boolean); | ||
} | ||
@@ -125,0 +125,0 @@ return false; |
{ | ||
"name": "@commercetools-uikit/localized-utils", | ||
"description": "Utilities to work with localized data.", | ||
"version": "0.0.0-preview-test-icon-bundle-20241210182318", | ||
"version": "0.0.0-preview-test-icon-entrypoints-20241212180849", | ||
"bugs": "https://github.com/commercetools/ui-kit/issues", | ||
@@ -32,5 +32,5 @@ "repository": { | ||
"@babel/runtime-corejs3": "^7.20.13", | ||
"@commercetools-uikit/utils": "0.0.0-preview-test-icon-bundle-20241210182318", | ||
"@commercetools-uikit/utils": "0.0.0-preview-test-icon-entrypoints-20241212180849", | ||
"lodash": "4.17.21" | ||
} | ||
} |
33138
456