@tui-cruises/mein-schiff-web-react-component-library 3.0.4 → 3.0.6

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 CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [3.0.6](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v3.0.5...v3.0.6) (2025-09-19)
6
+
7
+
8
+ ### Features
9
+
10
+ * icon next15 ([a44efc6](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/a44efc67244f6d3d470323dea7110d7c5c949336))
11
+
12
+ ### [3.0.5](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v3.0.4...v3.0.5) (2025-09-16)
13
+
14
+
15
+ ### Features
16
+
17
+ * fix carousel for next15 ([307b74e](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/307b74ec8164c253183aad39ed73724d53721f7e))
18
+
5
19
  ### [3.0.4](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v3.0.3...v3.0.4) (2025-09-16)
6
20
 
7
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tui-cruises/mein-schiff-web-react-component-library",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "main": "./index.tsx",
5
5
  "types": "./index.tsx",
6
6
  "type": "module",
@@ -1,5 +1,4 @@
1
1
  'use client';
2
-
3
2
  import { dynamicComponents as dynamicComponentsIcons } from '../../../../icons/icons';
4
3
  import type { ComponentType, SVGProps } from 'react';
5
4
  import { twJoin, twMerge } from 'tailwind-merge';
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import type { FC } from 'react';
2
3
  import { dynamicComponents as dynamicComponentsPictograms } from '../../../../icons/pictograms';
3
4
  import { twMerge } from 'tailwind-merge';
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Children,
3
3
  ComponentPropsWithoutRef,
4
- createElement,
4
+ isValidElement,
5
5
  MouseEventHandler,
6
6
  ReactElement,
7
- RefObject,
7
+ RefObject
8
8
  } from 'react';
9
- import { isElement, isFragment } from 'react-is';
9
+ import { isFragment } from 'react-is';
10
10
  import { CarouselStage } from './CarouselStage';
11
11
  import { ScrollToIndex } from './CarouselInterface';
12
12
  import { logger } from '@tuic/logger';
@@ -23,7 +23,7 @@ export const getChildrenAsArrayOfElements = (
23
23
  children: ItemsChildren,
24
24
  ): ReactElement[] => {
25
25
  const asArray = Children.toArray(children).filter(
26
- (node): node is ReactElement => isElement(node),
26
+ (node): node is ReactElement => isValidElement(node),
27
27
  );
28
28
 
29
29
  if (asArray.length !== 1) {
@@ -44,7 +44,7 @@ export const getChildrenAsArrayOfElements = (
44
44
  // ... and if so, return its children instead.
45
45
  // We could make this recursive, but let's not dive too deep into the rabbit hole.
46
46
  return Children.toArray(maybeFragment.props.children).filter(
47
- (node): node is ReactElement => isElement(node),
47
+ (node): node is ReactElement => isValidElement(node),
48
48
  );
49
49
  };
50
50