cobrowse-sdk-react-native
Advanced tools
Comparing version 2.11.1 to 2.11.2-unredaction.0
export { default } from './CobrowseIO' | ||
export { default as CobrowseView } from './CobrowseView' | ||
export { default as Redacted } from './Redacted' | ||
export { default as Unredacted, unredact, useUnredaction } from './Unredacted' | ||
export { default as SessionControl } from './SessionControl' | ||
export { default as CobrowseAccessibilityService } from './CobrowseAccessibilityService' |
@@ -1,19 +0,7 @@ | ||
import React, { useContext } from 'react' | ||
import { View, requireNativeComponent } from 'react-native' | ||
import React from 'react' | ||
import { requireNativeComponent } from 'react-native' | ||
const CBIOCobrowseRedacted = requireNativeComponent('CBIOCobrowseRedacted') | ||
const RedactionContext = React.createContext(false) | ||
export default function (props) { | ||
const alreadyRedacted = useContext(RedactionContext) | ||
if (!alreadyRedacted) { | ||
return ( | ||
<RedactionContext.Provider value> | ||
<CBIOCobrowseRedacted style={props.style}> | ||
<View>{props.children}</View> | ||
</CBIOCobrowseRedacted> | ||
</RedactionContext.Provider> | ||
) | ||
} | ||
return props.children | ||
module.exports = function (props) { | ||
return <CBIOCobrowseRedacted {...props}>{props.children}</CBIOCobrowseRedacted> | ||
} |
{ | ||
"name": "cobrowse-sdk-react-native", | ||
"version": "2.11.1", | ||
"version": "2.11.2-unredaction.0", | ||
"description": "Cobrowse SDK for React Native", | ||
@@ -9,3 +9,2 @@ "main": "js/index.js", | ||
"lint-fix": "ts-standard ts/*.d.ts --fix", | ||
"watch": "node scripts/watch.mjs", | ||
"start:dev": "nodemon --exec ./scripts/copy.sh" | ||
@@ -35,12 +34,12 @@ }, | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"lodash": "^4.17.21" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^17.0.38", | ||
"@types/react-native": "^0.66.15", | ||
"managed-service-daemon": "^1.2.1", | ||
"nodemon": "^2.0.15", | ||
"ts-standard": "^11.0.0", | ||
"typescript": "^4.5.5", | ||
"watchr": "^6.11.0" | ||
"typescript": "^4.5.5" | ||
} | ||
} |
@@ -5,2 +5,3 @@ export { default } from './CobrowseIO' | ||
export { default as SessionControl } from './SessionControl' | ||
export { default as Unredacted, unredact, useUnredaction } from './Unredacted' | ||
export { default as CobrowseAccessibilityService } from './CobrowseAccessibilityService' |
@@ -1,7 +0,8 @@ | ||
import type { Provider, ReactNode } from 'react' | ||
import type { ReactNode, ReactElement } from 'react' | ||
type Props = Readonly<{}> & Readonly<{ | ||
children?: ReactNode | ||
}> | ||
type Props = Readonly<{}> & | ||
Readonly<{ | ||
children?: ReactNode | undefined | ||
}> | ||
export default function (props: Props): Provider<boolean> | ||
export default function (props: Props): ReactElement | null |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
95109
5
45
514
3
1
+ Addedlodash@^4.17.21
+ Addedlodash@4.17.21(transitive)