@teambit/base-ui.routing.nav-link
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,6 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NavLink = void 0; | ||
var nav_link_1 = require("./nav-link"); | ||
Object.defineProperty(exports, "NavLink", { enumerable: true, get: function () { return nav_link_1.NavLink; } }); | ||
export { NavLink } from './nav-link'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,3 @@ | ||
/// <reference types="react" /> | ||
import type { NavLinkProps } from '@teambit/base-ui.routing.native-nav-link'; | ||
export type { NavLinkProps }; | ||
export declare function NavLink(props: NavLinkProps): JSX.Element; | ||
export declare function NavLink(props: NavLinkProps): import("react/jsx-runtime").JSX.Element; |
@@ -1,14 +0,7 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NavLink = void 0; | ||
const react_1 = __importDefault(require("react")); | ||
const base_ui_routing_routing_provider_1 = require("@teambit/base-ui.routing.routing-provider"); | ||
function NavLink(props) { | ||
const ActualNavLink = base_ui_routing_routing_provider_1.useRouting().NavLink; | ||
return react_1.default.createElement(ActualNavLink, Object.assign({}, props)); | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
import { useRouting } from '@teambit/base-ui.routing.routing-provider'; | ||
export function NavLink(props) { | ||
const ActualNavLink = useRouting().NavLink; | ||
return _jsx(ActualNavLink, { ...props }); | ||
} | ||
exports.NavLink = NavLink; | ||
//# sourceMappingURL=nav-link.js.map |
{ | ||
"name": "@teambit/base-ui.routing.nav-link", | ||
"version": "1.0.0", | ||
"homepage": "https://bit.dev/teambit/base-ui/routing/nav-link", | ||
"version": "1.0.1", | ||
"homepage": "https://bit.cloud/teambit/base-ui/routing/nav-link", | ||
"main": "dist/index.js", | ||
@@ -9,49 +9,21 @@ "componentId": { | ||
"name": "routing/nav-link", | ||
"version": "1.0.0" | ||
"version": "1.0.1" | ||
}, | ||
"dependencies": { | ||
"core-js": "^3.0.0", | ||
"@teambit/base-ui.routing.native-nav-link": "1.0.0", | ||
"@teambit/base-ui.routing.routing-provider": "1.0.0" | ||
"@teambit/base-ui.routing.native-nav-link": "1.0.1", | ||
"@teambit/base-ui.routing.routing-provider": "1.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^17.0.8", | ||
"@types/testing-library__jest-dom": "5.9.5", | ||
"@babel/runtime": "7.12.18", | ||
"@types/jest": "^26.0.0", | ||
"@types/react-dom": "^17.0.5", | ||
"@types/node": "12.20.4" | ||
"@teambit/react.v17.react-env": "1.1.17" | ||
}, | ||
"peerDependencies": { | ||
"react-dom": "^16.8.0 || ^17.0.0", | ||
"react": "^16.8.0 || ^17.0.0" | ||
"react": "17.0.2", | ||
"@types/react-dom": "^17.0.0", | ||
"@types/react": "^17.0.0", | ||
"react-dom": "17.0.2" | ||
}, | ||
"license": "SEE LICENSE IN LICENSE", | ||
"bit": { | ||
"bindingPrefix": "@teambit", | ||
"env": {}, | ||
"overrides": { | ||
"dependencies": { | ||
"core-js": "^3.0.0", | ||
"react-dom": "-", | ||
"react": "-" | ||
}, | ||
"devDependencies": { | ||
"@types/testing-library__jest-dom": "5.9.5", | ||
"@babel/runtime": "7.12.18", | ||
"@types/jest": "^26.0.0", | ||
"@types/react-dom": "^17.0.5", | ||
"@types/react": "^17.0.8", | ||
"@types/node": "12.20.4", | ||
"@types/mocha": "-", | ||
"react-dom": "-", | ||
"react": "-" | ||
}, | ||
"peerDependencies": { | ||
"react-dom": "^16.8.0 || ^17.0.0", | ||
"react": "^16.8.0 || ^17.0.0" | ||
} | ||
} | ||
}, | ||
"optionalDependencies": {}, | ||
"peerDependenciesMeta": {}, | ||
"private": false | ||
} | ||
} |
{ | ||
"compilerOptions": { | ||
"lib": [ | ||
"es2019", | ||
"DOM", | ||
"ES6", | ||
"DOM.Iterable" | ||
"esnext", | ||
"dom", | ||
"dom.Iterable" | ||
], | ||
"target": "es2015", | ||
"module": "commonjs", | ||
"jsx": "react", | ||
"target": "es2020", | ||
"module": "es2020", | ||
"jsx": "react-jsx", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"experimentalDecorators": true, | ||
"skipLibCheck": true, | ||
"moduleResolution": "node", | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true, | ||
"allowJs": true, | ||
"composite": true, | ||
"outDir": "dist", | ||
"rootDir": "." | ||
"strict": true, | ||
"emitDecoratorMetadata": true, | ||
"preserveConstEnums": true, | ||
"strictPropertyInitialization": false, | ||
"noImplicitAny": false | ||
}, | ||
"exclude": [ | ||
"dist" | ||
"artifacts", | ||
"public", | ||
"dist", | ||
"node_modules", | ||
"package.json", | ||
"**/*.cjs", | ||
"./dist" | ||
], | ||
"include": [ | ||
"**/*", | ||
"**/*.json" | ||
] | ||
} |
@@ -6,6 +6,10 @@ declare module '*.png' { | ||
declare module '*.svg' { | ||
const value: any; | ||
export = value; | ||
import type { FunctionComponent, SVGProps } from 'react'; | ||
export const ReactComponent: FunctionComponent< | ||
SVGProps<SVGSVGElement> & { title?: string } | ||
>; | ||
const src: string; | ||
export default src; | ||
} | ||
// @TODO Gilad | ||
declare module '*.jpg' { | ||
@@ -27,1 +31,13 @@ const value: any; | ||
} | ||
declare module '*.otf' { | ||
const value: any; | ||
export = value; | ||
} | ||
declare module '*.woff' { | ||
const value: any; | ||
export = value; | ||
} | ||
declare module '*.woff2' { | ||
const value: any; | ||
export = value; | ||
} |
@@ -24,2 +24,17 @@ declare module '*.module.css' { | ||
declare module '*.css' { | ||
const classes: { readonly [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module '*.sass' { | ||
const classes: { readonly [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module '*.scss' { | ||
const classes: { readonly [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module '*.mdx' { | ||
@@ -26,0 +41,0 @@ const component: any; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
9043
1
16
180
0
6
1
+ Added@teambit/base-ui.routing.compare-url@1.0.2(transitive)
+ Added@teambit/base-ui.routing.native-nav-link@1.0.1(transitive)
+ Added@teambit/base-ui.routing.routing-provider@1.0.1(transitive)
+ Added@types/prop-types@15.7.14(transitive)
+ Added@types/react@17.0.83(transitive)
+ Added@types/react-dom@17.0.26(transitive)
+ Added@types/scheduler@0.16.8(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addedurl-parse@1.5.10(transitive)
- Removedcore-js@^3.0.0
- Removed@teambit/base-ui.routing.compare-url@1.0.0(transitive)
- Removed@teambit/base-ui.routing.native-nav-link@1.0.0(transitive)
- Removed@teambit/base-ui.routing.routing-provider@1.0.0(transitive)
- Removedurl-parse@1.5.1(transitive)