@semcore/breadcrumbs 4.6.1 → 4.6.3
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.
- package/CHANGELOG.md +12 -0
- package/lib/cjs/Breadcrumbs.js +8 -8
- package/lib/cjs/Breadcrumbs.js.map +1 -1
- package/lib/es6/Breadcrumbs.js +8 -8
- package/lib/es6/Breadcrumbs.js.map +1 -1
- package/package.json +3 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [4.6.3] - 2023-06-28
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [3.15.3 ~> 3.16.0]).
|
|
10
|
+
|
|
11
|
+
## [4.6.2] - 2023-06-27
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Version patch update due to children dependencies update (`@semcore/utils` [3.53.4 ~> 3.54.0]).
|
|
16
|
+
|
|
5
17
|
## [4.6.1] - 2023-06-14
|
|
6
18
|
|
|
7
19
|
### Changed
|
package/lib/cjs/Breadcrumbs.js
CHANGED
|
@@ -20,12 +20,12 @@ var _keyboardFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/e
|
|
|
20
20
|
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
|
21
21
|
var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
|
|
22
22
|
/*__reshadow-styles__:"./style/breadcrumbs.shadow.css"*/
|
|
23
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
24
|
-
"__SBreadcrumbs": "
|
|
25
|
-
"__SSeparator": "
|
|
26
|
-
"__SBreadcrumbsItem": "
|
|
27
|
-
"_keyboardFocused": "
|
|
28
|
-
"_active": "
|
|
23
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SBreadcrumbs_omoue_gg_{display:flex;align-items:center;padding:0;margin:0;list-style:none}.___SSeparator_omoue_gg_{margin:0 var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-icon-secondary-neutral, #a9abb6);display:flex}.___SSeparator_omoue_gg_:last-child{display:none}.___SBreadcrumbsItem_omoue_gg_{position:relative;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-100, 133%);color:var(--intergalactic-text-secondary, #6c6e79);text-decoration:none;box-sizing:border-box;outline:0;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (hover:hover){.___SBreadcrumbsItem_omoue_gg_:hover{text-decoration:underline;color:var(--intergalactic-text-primary, #191b23)}}.___SBreadcrumbsItem_omoue_gg_.__keyboardFocused_omoue_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SBreadcrumbsItem_omoue_gg_.__active_omoue_gg_{color:var(--intergalactic-text-primary, #191b23);cursor:default}@media (hover:hover){.___SBreadcrumbsItem_omoue_gg_.__active_omoue_gg_:hover{text-decoration:none}}" /*__inner_css_end__*/, "omoue_gg_") /*__reshadow_css_end__*/, {
|
|
24
|
+
"__SBreadcrumbs": "___SBreadcrumbs_omoue_gg_",
|
|
25
|
+
"__SSeparator": "___SSeparator_omoue_gg_",
|
|
26
|
+
"__SBreadcrumbsItem": "___SBreadcrumbsItem_omoue_gg_",
|
|
27
|
+
"_keyboardFocused": "__keyboardFocused_omoue_gg_",
|
|
28
|
+
"_active": "__active_omoue_gg_"
|
|
29
29
|
});
|
|
30
30
|
var Breadcrumbs = /*#__PURE__*/function (_Component) {
|
|
31
31
|
(0, _inherits2["default"])(Breadcrumbs, _Component);
|
|
@@ -56,7 +56,7 @@ var Breadcrumbs = /*#__PURE__*/function (_Component) {
|
|
|
56
56
|
getI18nText = _this$asProps2.getI18nText;
|
|
57
57
|
return _ref3 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SBreadcrumbs, _ref3.cn("SBreadcrumbs", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
58
58
|
"aria-label": getI18nText('breadcrumbs'),
|
|
59
|
-
"role":
|
|
59
|
+
"role": 'group'
|
|
60
60
|
}, _ref))));
|
|
61
61
|
}
|
|
62
62
|
}]);
|
|
@@ -93,7 +93,7 @@ var Item = /*#__PURE__*/function (_Component2) {
|
|
|
93
93
|
return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(SBreadcrumbsItem, _ref4.cn("SBreadcrumbsItem", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
94
94
|
"aria-current": active ? getI18nText('page') : undefined
|
|
95
95
|
}, _ref2)))), /*#__PURE__*/_react["default"].createElement(SSeparator, _ref4.cn("SSeparator", {
|
|
96
|
-
"aria-hidden":
|
|
96
|
+
"aria-hidden": 'true'
|
|
97
97
|
}), separator));
|
|
98
98
|
}
|
|
99
99
|
}], [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_m","_keyboardFocusEnhance","_intergalacticDynamicLocales","_i18nEnhance","style","sstyled","insert","Breadcrumbs","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","getItemProps","_this$asProps","asProps","separator","locale","render","_ref","_ref3","SBreadcrumbs","Box","_this$asProps2","styles","getI18nText","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","i18nEnhance","localizedMessages","tag","i18n","Item","_Component2","_super2","_ref2","_ref4","SBreadcrumbsItem","_this$asProps3","active","SSeparator","Fragment","undefined","defaultProps","_ref5","disabled","keyboardFocusEnhance","_default","createComponent","exports"],"sources":["../../src/Breadcrumbs.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport SSeparator from '@semcore/icon/ChevronRight/m';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\n\nimport style from './style/breadcrumbs.shadow.css';\n\nclass Breadcrumbs extends Component {\n static displayName = 'Breadcrumbs';\n static style = style;\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n separator: <SSeparator />,\n tag: 'div',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getItemProps() {\n const { separator, locale } = this.asProps;\n return {\n separator,\n locale,\n };\n }\n\n render() {\n const SBreadcrumbs = Root;\n const { styles, getI18nText } = this.asProps;\n return sstyled(styles)(\n <SBreadcrumbs render={Box} aria-label={getI18nText('breadcrumbs')} role
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_flexBox","_m","_keyboardFocusEnhance","_intergalacticDynamicLocales","_i18nEnhance","style","sstyled","insert","Breadcrumbs","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","getItemProps","_this$asProps","asProps","separator","locale","render","_ref","_ref3","SBreadcrumbs","Box","_this$asProps2","styles","getI18nText","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","i18nEnhance","localizedMessages","tag","i18n","Item","_Component2","_super2","_ref2","_ref4","SBreadcrumbsItem","_this$asProps3","active","SSeparator","Fragment","undefined","defaultProps","_ref5","disabled","keyboardFocusEnhance","_default","createComponent","exports"],"sources":["../../src/Breadcrumbs.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport SSeparator from '@semcore/icon/ChevronRight/m';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\n\nimport style from './style/breadcrumbs.shadow.css';\n\nclass Breadcrumbs extends Component {\n static displayName = 'Breadcrumbs';\n static style = style;\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n separator: <SSeparator />,\n tag: 'div',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getItemProps() {\n const { separator, locale } = this.asProps;\n return {\n separator,\n locale,\n };\n }\n\n render() {\n const SBreadcrumbs = Root;\n const { styles, getI18nText } = this.asProps;\n return sstyled(styles)(\n <SBreadcrumbs render={Box} aria-label={getI18nText('breadcrumbs')} role='group' />,\n );\n }\n}\n\nclass Item extends Component {\n static defaultProps({ active }) {\n return {\n disabled: active,\n tag: 'a',\n i18n: localizedMessages,\n locale: 'en',\n };\n }\n\n static enhance = [keyboardFocusEnhance(), i18nEnhance(localizedMessages)];\n\n render() {\n const SBreadcrumbsItem = Root;\n const { styles, separator, active, getI18nText } = this.asProps;\n const SSeparator = 'div';\n\n return sstyled(styles)(\n <>\n <SBreadcrumbsItem render={Box} aria-current={active ? getI18nText('page') : undefined} />\n <SSeparator aria-hidden='true'>{separator}</SSeparator>\n </>,\n );\n }\n}\n\nexport default createComponent(Breadcrumbs, {\n Item,\n});\n"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,EAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,qBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAL,sBAAA,CAAAF,OAAA;AAAkE;AAAA,IAAAQ,KAAA,+BAAAV,KAAA,C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,GAAGqB;MAAS,GAAAP,KAAA,IAAI,eACzF/C,MAAA,YAAAkC,aAAA,CAACkB,UAAU,EAAAJ,KAAA,CAAAb,EAAA;QAAA,eAAa;MAAM,IAAEX,SAAS,CAAc,CACtD;IAEP;EAAC;IAAAL,GAAA;IAAAC,KAAA,EAtBD,SAAAmC,aAAAC,KAAA,EAAgC;MAAA,IAAVL,MAAM,GAAAK,KAAA,CAANL,MAAM;MAC1B,OAAO;QACLM,QAAQ,EAAEN,MAAM;QAChBT,GAAG,EAAE,GAAG;QACRC,IAAI,EAAEF,8CAAiB;QACvBhB,MAAM,EAAE;MACV,CAAC;IACH;EAAC;EAAA,OAAAmB,IAAA;AAAA,EARgBN,eAAS;AAAA,IAAAC,gBAAA,aAAtBK,IAAI,aAUS,CAAC,IAAAc,gCAAoB,GAAE,EAAE,IAAAlB,uBAAW,EAACC,8CAAiB,CAAC,CAAC;AAAA,IAAAkB,QAAA,GAgB5D,IAAAC,gBAAe,EAAClD,WAAW,EAAE;EAC1CkC,IAAI,EAAJA;AACF,CAAC,CAAC;AAAAiB,OAAA,cAAAF,QAAA"}
|
package/lib/es6/Breadcrumbs.js
CHANGED
|
@@ -15,12 +15,12 @@ import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhan
|
|
|
15
15
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
16
16
|
import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
17
17
|
/*__reshadow-styles__:"./style/breadcrumbs.shadow.css"*/
|
|
18
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
19
|
-
"__SBreadcrumbs": "
|
|
20
|
-
"__SSeparator": "
|
|
21
|
-
"__SBreadcrumbsItem": "
|
|
22
|
-
"_keyboardFocused": "
|
|
23
|
-
"_active": "
|
|
18
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBreadcrumbs_omoue_gg_{display:flex;align-items:center;padding:0;margin:0;list-style:none}.___SSeparator_omoue_gg_{margin:0 var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-icon-secondary-neutral, #a9abb6);display:flex}.___SSeparator_omoue_gg_:last-child{display:none}.___SBreadcrumbsItem_omoue_gg_{position:relative;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-100, 133%);color:var(--intergalactic-text-secondary, #6c6e79);text-decoration:none;box-sizing:border-box;outline:0;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (hover:hover){.___SBreadcrumbsItem_omoue_gg_:hover{text-decoration:underline;color:var(--intergalactic-text-primary, #191b23)}}.___SBreadcrumbsItem_omoue_gg_.__keyboardFocused_omoue_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SBreadcrumbsItem_omoue_gg_.__active_omoue_gg_{color:var(--intergalactic-text-primary, #191b23);cursor:default}@media (hover:hover){.___SBreadcrumbsItem_omoue_gg_.__active_omoue_gg_:hover{text-decoration:none}}" /*__inner_css_end__*/, "omoue_gg_") /*__reshadow_css_end__*/, {
|
|
19
|
+
"__SBreadcrumbs": "___SBreadcrumbs_omoue_gg_",
|
|
20
|
+
"__SSeparator": "___SSeparator_omoue_gg_",
|
|
21
|
+
"__SBreadcrumbsItem": "___SBreadcrumbsItem_omoue_gg_",
|
|
22
|
+
"_keyboardFocused": "__keyboardFocused_omoue_gg_",
|
|
23
|
+
"_active": "__active_omoue_gg_"
|
|
24
24
|
});
|
|
25
25
|
var Breadcrumbs = /*#__PURE__*/function (_Component) {
|
|
26
26
|
_inherits(Breadcrumbs, _Component);
|
|
@@ -51,7 +51,7 @@ var Breadcrumbs = /*#__PURE__*/function (_Component) {
|
|
|
51
51
|
getI18nText = _this$asProps2.getI18nText;
|
|
52
52
|
return _ref3 = sstyled(styles), /*#__PURE__*/React.createElement(SBreadcrumbs, _ref3.cn("SBreadcrumbs", _objectSpread({}, _assignProps({
|
|
53
53
|
"aria-label": getI18nText('breadcrumbs'),
|
|
54
|
-
"role":
|
|
54
|
+
"role": 'group'
|
|
55
55
|
}, _ref))));
|
|
56
56
|
}
|
|
57
57
|
}]);
|
|
@@ -88,7 +88,7 @@ var Item = /*#__PURE__*/function (_Component2) {
|
|
|
88
88
|
return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SBreadcrumbsItem, _ref4.cn("SBreadcrumbsItem", _objectSpread({}, _assignProps2({
|
|
89
89
|
"aria-current": active ? getI18nText('page') : undefined
|
|
90
90
|
}, _ref2)))), /*#__PURE__*/React.createElement(SSeparator, _ref4.cn("SSeparator", {
|
|
91
|
-
"aria-hidden":
|
|
91
|
+
"aria-hidden": 'true'
|
|
92
92
|
}), separator));
|
|
93
93
|
}
|
|
94
94
|
}], [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.js","names":["React","createComponent","Component","sstyled","Root","Box","SSeparator","keyboardFocusEnhance","localizedMessages","i18nEnhance","style","_sstyled","insert","Breadcrumbs","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getItemProps","_this$asProps","asProps","separator","locale","render","_ref","_ref3","SBreadcrumbs","_this$asProps2","styles","getI18nText","createElement","cn","_objectSpread","_assignProps","_defineProperty","tag","i18n","Item","_Component2","_super2","_ref2","_ref4","SBreadcrumbsItem","_this$asProps3","active","Fragment","_assignProps2","undefined","defaultProps","_ref5","disabled"],"sources":["../../src/Breadcrumbs.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport SSeparator from '@semcore/icon/ChevronRight/m';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\n\nimport style from './style/breadcrumbs.shadow.css';\n\nclass Breadcrumbs extends Component {\n static displayName = 'Breadcrumbs';\n static style = style;\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n separator: <SSeparator />,\n tag: 'div',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getItemProps() {\n const { separator, locale } = this.asProps;\n return {\n separator,\n locale,\n };\n }\n\n render() {\n const SBreadcrumbs = Root;\n const { styles, getI18nText } = this.asProps;\n return sstyled(styles)(\n <SBreadcrumbs render={Box} aria-label={getI18nText('breadcrumbs')} role
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.js","names":["React","createComponent","Component","sstyled","Root","Box","SSeparator","keyboardFocusEnhance","localizedMessages","i18nEnhance","style","_sstyled","insert","Breadcrumbs","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getItemProps","_this$asProps","asProps","separator","locale","render","_ref","_ref3","SBreadcrumbs","_this$asProps2","styles","getI18nText","createElement","cn","_objectSpread","_assignProps","_defineProperty","tag","i18n","Item","_Component2","_super2","_ref2","_ref4","SBreadcrumbsItem","_this$asProps3","active","Fragment","_assignProps2","undefined","defaultProps","_ref5","disabled"],"sources":["../../src/Breadcrumbs.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport SSeparator from '@semcore/icon/ChevronRight/m';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';\n\nimport style from './style/breadcrumbs.shadow.css';\n\nclass Breadcrumbs extends Component {\n static displayName = 'Breadcrumbs';\n static style = style;\n static enhance = [i18nEnhance(localizedMessages)];\n static defaultProps = {\n separator: <SSeparator />,\n tag: 'div',\n i18n: localizedMessages,\n locale: 'en',\n };\n\n getItemProps() {\n const { separator, locale } = this.asProps;\n return {\n separator,\n locale,\n };\n }\n\n render() {\n const SBreadcrumbs = Root;\n const { styles, getI18nText } = this.asProps;\n return sstyled(styles)(\n <SBreadcrumbs render={Box} aria-label={getI18nText('breadcrumbs')} role='group' />,\n );\n }\n}\n\nclass Item extends Component {\n static defaultProps({ active }) {\n return {\n disabled: active,\n tag: 'a',\n i18n: localizedMessages,\n locale: 'en',\n };\n }\n\n static enhance = [keyboardFocusEnhance(), i18nEnhance(localizedMessages)];\n\n render() {\n const SBreadcrumbsItem = Root;\n const { styles, separator, active, getI18nText } = this.asProps;\n const SSeparator = 'div';\n\n return sstyled(styles)(\n <>\n <SBreadcrumbsItem render={Box} aria-current={active ? getI18nText('page') : undefined} />\n <SSeparator aria-hidden='true'>{separator}</SSeparator>\n </>,\n );\n }\n}\n\nexport default createComponent(Breadcrumbs, {\n Item,\n});\n"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AACzE,SAASC,GAAG,QAAQ,mBAAmB;AACvC,OAAOC,UAAU,MAAM,8BAA8B;AACrD,OAAOC,oBAAoB,MAAM,kDAAkD;AACnF,SAASC,iBAAiB,QAAQ,gDAAgD;AAClF,OAAOC,WAAW,MAAM,yCAAyC;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAI5DC,WAAW,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,WAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,WAAA;EAAA,SAAAA,YAAA;IAAAK,eAAA,OAAAL,WAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,WAAA;IAAAS,GAAA;IAAAC,KAAA,EAWf,SAAAC,aAAA,EAAe;MACb,IAAAC,aAAA,GAA8B,IAAI,CAACC,OAAO;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AC,CAAC;AAgB3E,eAAeP,eAAe,CAACY,WAAW,EAAE;EAC1C8B,IAAI,EAAJA;AACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/breadcrumbs",
|
|
3
3
|
"description": "Semrush Breadcrumbs Component",
|
|
4
|
-
"version": "4.6.
|
|
4
|
+
"version": "4.6.3",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -18,9 +18,6 @@
|
|
|
18
18
|
"react": "16.8 - 18",
|
|
19
19
|
"react-dom": "16.8 - 18"
|
|
20
20
|
},
|
|
21
|
-
"jest": {
|
|
22
|
-
"preset": "@semcore/jest-preset-ui"
|
|
23
|
-
},
|
|
24
21
|
"repository": {
|
|
25
22
|
"type": "git",
|
|
26
23
|
"url": "https://github.com/semrush/intergalactic.git",
|
|
@@ -28,10 +25,9 @@
|
|
|
28
25
|
},
|
|
29
26
|
"devDependencies": {
|
|
30
27
|
"@types/react": "18.0.21",
|
|
31
|
-
"@semcore/
|
|
28
|
+
"@semcore/testing-utils": "1.0.0"
|
|
32
29
|
},
|
|
33
30
|
"scripts": {
|
|
34
|
-
"build": "pnpm semcore-builder --source=js"
|
|
35
|
-
"test": "jest"
|
|
31
|
+
"build": "pnpm semcore-builder --source=js"
|
|
36
32
|
}
|
|
37
33
|
}
|