@ui5/webcomponents-react-base
Advanced tools
Comparing version 2.0.0-rc.0 to 2.0.0-rc.1
import { useCurrentTheme } from './useCurrentTheme.js'; | ||
import { useI18nBundle } from './useI18nBundle.js'; | ||
import { useIsomorphicId } from './useIsomorphicId.js'; | ||
import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect.js'; | ||
@@ -9,2 +8,2 @@ import { useIsRTL } from './useIsRTL.js'; | ||
import { useViewportRange } from './useViewportRange.js'; | ||
export { useI18nBundle, useIsomorphicLayoutEffect, useIsRTL, useSyncRef, useViewportRange, useIsomorphicId, useStylesheet, useCurrentTheme }; | ||
export { useI18nBundle, useIsomorphicLayoutEffect, useIsRTL, useSyncRef, useViewportRange, useStylesheet, useCurrentTheme }; |
import { useCurrentTheme } from './useCurrentTheme.js'; | ||
import { useI18nBundle } from './useI18nBundle.js'; | ||
import { useIsomorphicId } from './useIsomorphicId.js'; | ||
import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect.js'; | ||
@@ -9,2 +8,2 @@ import { useIsRTL } from './useIsRTL.js'; | ||
import { useViewportRange } from './useViewportRange.js'; | ||
export { useI18nBundle, useIsomorphicLayoutEffect, useIsRTL, useSyncRef, useViewportRange, useIsomorphicId, useStylesheet, useCurrentTheme }; | ||
export { useI18nBundle, useIsomorphicLayoutEffect, useIsRTL, useSyncRef, useViewportRange, useStylesheet, useCurrentTheme }; |
@@ -12,8 +12,4 @@ export const deprecationNotice = (component, message) => { | ||
export const enrichEventWithDetails = (event, payload) => { | ||
// todo: once we drop React 16 support, remove this | ||
// the helper accepts both SyntheticEvents and browser events | ||
const syntheticEventCast = event; | ||
if (typeof syntheticEventCast.persist === 'function') { | ||
// if there is a persist method, it's a SyntheticEvent so we need to persist it | ||
syntheticEventCast.persist(); | ||
if (!event) { | ||
return event; | ||
} | ||
@@ -20,0 +16,0 @@ // Determine if we need to create a new details object |
{ | ||
"name": "@ui5/webcomponents-react-base", | ||
"version": "2.0.0-rc.0", | ||
"version": "2.0.0-rc.1", | ||
"description": "Base for ui5-webcomponents-react", | ||
@@ -34,3 +34,3 @@ "type": "module", | ||
"@ui5/webcomponents-base": "~2.0.1", | ||
"react": "^16.14.0 || ^17 || ^18 || ^19" | ||
"react": "^18 || ^19" | ||
}, | ||
@@ -63,3 +63,3 @@ "peerDependenciesMeta": { | ||
}, | ||
"gitHead": "4ce69b6f8ca348876d8deb7c68991f1e87bbabff" | ||
"gitHead": "1fcbadbdcb111da70a757e094ba3241834038dd2" | ||
} |
@@ -13,3 +13,3 @@ # @ui5/webcomponents-react-base | ||
This package is a collection of utils for the `@ui5/webcomponents-react` project. Please only use [public utils](https://sap.github.io/ui5-webcomponents-react/?path=/docs/knowledge-base-public-utils--docs) described in our documentation, as all others are not subject to semantic versioning and can therefore change without notice. | ||
This package is a collection of utils for the `@ui5/webcomponents-react` project. Please only use [public utils](https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/knowledge-base-public-utils--docs) described in our documentation, as all others are not subject to semantic versioning and can therefore change without notice. | ||
@@ -16,0 +16,0 @@ ## Contribute |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
180646
45
3210