@guardian/ab-react
Advanced tools
Comparing version 7.0.0 to 8.0.0
# @guardian/ab-react | ||
## 8.0.0 | ||
### Major Changes | ||
- Update TS to version 5.3.3 and tslib to 2.6.2 | ||
- Updated dependencies | ||
- @guardian/ab-core@7.0.0 | ||
## 7.0.0 | ||
@@ -4,0 +13,0 @@ |
import { ABTestAPI } from "@guardian/ab-core"; | ||
import { ReactNode } from 'react'; | ||
/** | ||
@@ -22,3 +23,5 @@ * ABProvider sets an instance of ABContext | ||
*/ | ||
declare const ABProvider: any; | ||
declare const ABProvider: ({ arrayOfTestObjects, abTestSwitches, pageIsSensitive, mvtMaxValue, mvtId, forcedTestVariants, forcedTestException, errorReporter, ophanRecord, serverSideTests, children, }: import("@guardian/ab-core").CoreAPIConfig & import("libs/@guardian/ab-core/src/@types").OphanAPIConfig & { | ||
children: ReactNode; | ||
}) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element; | ||
/** | ||
@@ -25,0 +28,0 @@ * useAB is a wrapper around React.useContext(ABContext) to provide a |
@@ -0,1 +1,2 @@ | ||
import { StyleSheet } from "@emotion/sheet"; | ||
declare function createCache(options: any): { | ||
@@ -2,0 +3,0 @@ key: any; |
/// <reference types="react" /> | ||
import * as React from "libs/@guardian/source-react-components/node_modules/@types/react"; | ||
import * as React from "libs/@guardian/ab-react/node_modules/@types/react"; | ||
declare function _extends(...args: any[]): any; | ||
@@ -4,0 +4,0 @@ declare var CacheProvider: React.Provider<import("@emotion/utils").EmotionCache | null>; |
import { ABTestAPI } from "@guardian/ab-core"; | ||
import { ReactNode } from 'react'; | ||
/** | ||
@@ -22,3 +23,5 @@ * ABProvider sets an instance of ABContext | ||
*/ | ||
declare const ABProvider: any; | ||
declare const ABProvider: ({ arrayOfTestObjects, abTestSwitches, pageIsSensitive, mvtMaxValue, mvtId, forcedTestVariants, forcedTestException, errorReporter, ophanRecord, serverSideTests, children, }: import("@guardian/ab-core").CoreAPIConfig & import("libs/@guardian/ab-core/src/@types").OphanAPIConfig & { | ||
children: ReactNode; | ||
}) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element; | ||
/** | ||
@@ -25,0 +28,0 @@ * useAB is a wrapper around React.useContext(ABContext) to provide a |
@@ -0,1 +1,2 @@ | ||
import { StyleSheet } from "@emotion/sheet"; | ||
declare function createCache(options: any): { | ||
@@ -2,0 +3,0 @@ key: any; |
/// <reference types="react" /> | ||
import * as React from "libs/@guardian/source-react-components/node_modules/@types/react"; | ||
import * as React from "libs/@guardian/ab-react/node_modules/@types/react"; | ||
declare function _extends(...args: any[]): any; | ||
@@ -4,0 +4,0 @@ declare var CacheProvider: React.Provider<import("@emotion/utils").EmotionCache | null>; |
{ | ||
"name": "@guardian/ab-react", | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"private": false, | ||
@@ -19,7 +19,7 @@ "description": "A React library for A/B & multivariate testing", | ||
"peerDependencies": { | ||
"@guardian/ab-core": "^6.0.0", | ||
"@guardian/ab-core": "^7.0.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"tslib": "^2.5.3", | ||
"typescript": "~5.1.3" | ||
"tslib": "^2.6.2", | ||
"typescript": "~5.3.3" | ||
}, | ||
@@ -35,3 +35,3 @@ "peerDependenciesMeta": { | ||
"readme": "ERROR: No README data found!", | ||
"_id": "@guardian/ab-react@7.0.0" | ||
"_id": "@guardian/ab-react@8.0.0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
4305
513115