@cord-sdk/react
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
import { PropsWithStandardHTMLAttributes, CollaborationReactComponentProps } from '@cord-sdk/types'; | ||
export declare function Collaboration(props: PropsWithStandardHTMLAttributes<CollaborationReactComponentProps>): JSX.Element; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
import { PropsWithStandardHTMLAttributes, MultipleCursorsReactComponentProps } from '@cord-sdk/types'; | ||
export declare function MultipleCursors(props: PropsWithStandardHTMLAttributes<MultipleCursorsReactComponentProps>): JSX.Element; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
import { PagePresenceReactComponentProps, PropsWithStandardHTMLAttributes } from '@cord-sdk/types'; | ||
export declare function PagePresence(props: PropsWithStandardHTMLAttributes<PagePresenceReactComponentProps>): JSX.Element; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
import { PresenceFacepileReactComponentProps, PropsWithStandardHTMLAttributes } from '@cord-sdk/types'; | ||
export declare function PresenceFacepile(props: PropsWithStandardHTMLAttributes<PresenceFacepileReactComponentProps>): JSX.Element; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
import { PresenceObserverReactComponentProps, PropsWithStandardHTMLAttributes } from '@cord-sdk/types'; | ||
export declare function PresenceObserver(props: PropsWithStandardHTMLAttributes<PresenceObserverReactComponentProps>): JSX.Element; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
import { PropsWithStandardHTMLAttributes, SidebarReactComponentProps } from '@cord-sdk/types'; | ||
export declare function Sidebar(props: PropsWithStandardHTMLAttributes<SidebarReactComponentProps>): JSX.Element; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
import { PropsWithStandardHTMLAttributes, SidebarLauncherReactComponentProps } from '@cord-sdk/types'; | ||
export declare function SidebarLauncher(props: PropsWithStandardHTMLAttributes<SidebarLauncherReactComponentProps>): JSX.Element; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
import { TextReactComponentProps, PropsWithStandardHTMLAttributes } from '@cord-sdk/types'; | ||
export declare function Text(props: PropsWithStandardHTMLAttributes<TextReactComponentProps>): JSX.Element; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
import { PropsWithStandardHTMLAttributes, ThreadReactComponentProps } from '@cord-sdk/types'; | ||
export declare function Thread(props: PropsWithStandardHTMLAttributes<ThreadReactComponentProps>): JSX.Element; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var components = require('@cord-sdk/components'); | ||
var lodashEs = require('lodash-es'); | ||
var isEqual = require('lodash/isEqual'); | ||
@@ -13,2 +13,3 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual); | ||
@@ -134,3 +135,3 @@ /*! ***************************************************************************** | ||
React.useEffect(function () { | ||
if (newContext && !lodashEs.isEqual(context, newContext)) { | ||
if (newContext && !isEqual__default["default"](context, newContext)) { | ||
setContext(newContext); | ||
@@ -224,1 +225,2 @@ } | ||
exports.useCordContext = useCordContext; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@cord-sdk/react", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://docs.cord.com/", | ||
"license": "MIT", | ||
"files": [ | ||
"dist/" | ||
], | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"repository": { | ||
@@ -11,10 +17,13 @@ "type": "git", | ||
}, | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"scripts": { "build": "rollup -c" }, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"dev": "rollup -c -w" | ||
}, | ||
"dependencies": { | ||
"@cord-sdk/components": "*", | ||
"lodash-es": "^4.17.21", | ||
"react": "^18.0.0" | ||
"lodash": "^4.17.21" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=17.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -21,0 +30,0 @@ "@cord-sdk/jsx": "*", |
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
63412
18
438
+ Addedlodash@^4.17.21
+ Addedlodash@4.17.21(transitive)
- Removedlodash-es@^4.17.21
- Removedreact@^18.0.0
- Removedlodash-es@4.17.21(transitive)