tycho-components 0.2.2-SNAPSHOT-11 → 0.2.2-SNAPSHOT-12

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.
@@ -1,5 +1,4 @@
1
1
  .loading-container {
2
- height: 50vh;
3
2
  margin-top: calc(var(--spacing-xxlarge) + var(--spacing-large));
4
3
 
5
4
  display: flex;
@@ -7,7 +7,7 @@ export default function NotFound() {
7
7
  const navigate = useNavigate();
8
8
  const { t } = useTranslation('base');
9
9
  const handleRedirect = () => {
10
- navigate('', { replace: true });
10
+ navigate('/', { replace: true });
11
11
  };
12
12
  return (_jsx("div", { className: "box-container", children: _jsxs("div", { className: "box", children: [_jsx("img", { src: logo }), _jsx("div", { className: "title", children: t('notfound.label.disclaimer') }), _jsx("div", { className: "subtitle", onClick: handleRedirect, children: t('label.redirect') })] }) }));
13
13
  }
@@ -5,7 +5,7 @@ declare const SentenceUtils: {
5
5
  isVisible: (token: Token) => boolean;
6
6
  isFirstFromSplit: (token: Token) => boolean;
7
7
  getColspan: (thisToken: Token) => number;
8
- skipToken: (token: Token) => boolean;
8
+ skipToken: (token: Token, splits?: boolean) => boolean;
9
9
  getTag: (token: Token) => string;
10
10
  };
11
11
  export default SentenceUtils;
@@ -3,12 +3,12 @@ const getTag = (token) => {
3
3
  return token.split.t || '';
4
4
  return token.t ?? '';
5
5
  };
6
- const skipToken = (token) => {
6
+ const skipToken = (token, splits) => {
7
7
  if (token.ec)
8
8
  return true;
9
9
  if (!token.v)
10
10
  return false;
11
- if (token.v.startsWith('@') && token.split)
11
+ if (!splits && token.v.startsWith('@') && token.split)
12
12
  return true;
13
13
  return false;
14
14
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.2.2-SNAPSHOT-11",
4
+ "version": "0.2.2-SNAPSHOT-12",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {