Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fluentui/react-proptypes

Package Overview
Dependencies
Maintainers
6
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/react-proptypes - npm Package Compare versions

Comparing version 0.48.0 to 0.49.0

19

dist/commonjs/index.js

@@ -10,3 +10,3 @@ "use strict";

});
exports.ref = exports.design = exports.animation = exports.align = exports.size = exports.accessibility = exports.deprecate = exports.collectionShorthandWithKindProp = exports.collectionShorthand = exports.itemShorthandWithoutJSX = exports.itemShorthandWithKindProp = exports.itemShorthand = exports.shorthandAllowingChildren = exports.wrapperShorthand = exports.nodeContent = exports.multipleProp = exports.demand = exports.givenProps = exports.some = exports.every = exports.disallow = exports.never = exports.suggest = exports.domNode = void 0;
exports.ref = exports.design = exports.animation = exports.align = exports.size = exports.accessibility = exports.deprecate = exports.collectionShorthandWithKindProp = exports.collectionShorthand = exports.collectionObjectShorthand = exports.itemShorthandWithoutJSX = exports.itemShorthandWithKindProp = exports.itemShorthand = exports.objectItemShorthand = exports.shorthandObjectAllowingChildren = exports.shorthandAllowingChildren = exports.wrapperShorthand = exports.nodeContent = exports.multipleProp = exports.demand = exports.givenProps = exports.some = exports.every = exports.disallow = exports.never = exports.suggest = exports.domNode = void 0;

@@ -354,3 +354,12 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));

var shorthandAllowingChildren = PropTypes.oneOfType([PropTypes.node, PropTypes.object, PropTypes.func]);
exports.shorthandAllowingChildren = shorthandAllowingChildren;
var shorthandObjectAllowingChildren = PropTypes.oneOfType([PropTypes.object, PropTypes.func]);
/**
* ObjectItemShorthand is a description of a component that can be
* a props object or a render function.
*/
exports.shorthandObjectAllowingChildren = shorthandObjectAllowingChildren;
var objectItemShorthand = every([disallow(['children']), shorthandAllowingChildren]);
/**
* Item shorthand is a description of a component that can be a literal,

@@ -360,3 +369,3 @@ * a props object, an element or a render function.

exports.shorthandAllowingChildren = shorthandAllowingChildren;
exports.objectItemShorthand = objectItemShorthand;
var itemShorthand = every([disallow(['children']), shorthandAllowingChildren]);

@@ -378,2 +387,8 @@ exports.itemShorthand = itemShorthand;

exports.itemShorthandWithoutJSX = itemShorthandWithoutJSX;
var collectionObjectShorthand = every([disallow(['children']), PropTypes.arrayOf(objectItemShorthand)]);
/**
* Collection shorthand ensures a prop is an array of item shorthand.
*/
exports.collectionObjectShorthand = collectionObjectShorthand;
var collectionShorthand = every([disallow(['children']), PropTypes.arrayOf(itemShorthand)]);

@@ -380,0 +395,0 @@ exports.collectionShorthand = collectionShorthand;

@@ -58,3 +58,9 @@ import * as PropTypes from 'prop-types';

export declare const shorthandAllowingChildren: PropTypes.Requireable<PropTypes.ReactNodeLike>;
export declare const shorthandObjectAllowingChildren: PropTypes.Requireable<object>;
/**
* ObjectItemShorthand is a description of a component that can be
* a props object or a render function.
*/
export declare const objectItemShorthand: (props: Record<string, any>, propName: string, componentName: string, ...args: any[]) => any;
/**
* Item shorthand is a description of a component that can be a literal,

@@ -69,2 +75,6 @@ * a props object, an element or a render function.

*/
export declare const collectionObjectShorthand: (props: Record<string, any>, propName: string, componentName: string, ...args: any[]) => any;
/**
* Collection shorthand ensures a prop is an array of item shorthand.
*/
export declare const collectionShorthand: (props: Record<string, any>, propName: string, componentName: string, ...args: any[]) => any;

@@ -71,0 +81,0 @@ export declare const collectionShorthandWithKindProp: (kindPropValues: string[]) => (props: Record<string, any>, propName: string, componentName: string, ...args: any[]) => any;

@@ -278,3 +278,9 @@ "use strict";

exports.shorthandAllowingChildren = PropTypes.oneOfType([PropTypes.node, PropTypes.object, PropTypes.func]);
exports.shorthandObjectAllowingChildren = PropTypes.oneOfType([PropTypes.object, PropTypes.func]);
/**
* ObjectItemShorthand is a description of a component that can be
* a props object or a render function.
*/
exports.objectItemShorthand = exports.every([exports.disallow(['children']), exports.shorthandAllowingChildren]);
/**
* Item shorthand is a description of a component that can be a literal,

@@ -303,2 +309,6 @@ * a props object, an element or a render function.

*/
exports.collectionObjectShorthand = exports.every([exports.disallow(['children']), PropTypes.arrayOf(exports.objectItemShorthand)]);
/**
* Collection shorthand ensures a prop is an array of item shorthand.
*/
exports.collectionShorthand = exports.every([exports.disallow(['children']), PropTypes.arrayOf(exports.itemShorthand)]);

@@ -305,0 +315,0 @@ exports.collectionShorthandWithKindProp = function (kindPropValues) {

@@ -58,3 +58,9 @@ import * as PropTypes from 'prop-types';

export declare const shorthandAllowingChildren: PropTypes.Requireable<PropTypes.ReactNodeLike>;
export declare const shorthandObjectAllowingChildren: PropTypes.Requireable<object>;
/**
* ObjectItemShorthand is a description of a component that can be
* a props object or a render function.
*/
export declare const objectItemShorthand: (props: Record<string, any>, propName: string, componentName: string, ...args: any[]) => any;
/**
* Item shorthand is a description of a component that can be a literal,

@@ -69,2 +75,6 @@ * a props object, an element or a render function.

*/
export declare const collectionObjectShorthand: (props: Record<string, any>, propName: string, componentName: string, ...args: any[]) => any;
/**
* Collection shorthand ensures a prop is an array of item shorthand.
*/
export declare const collectionShorthand: (props: Record<string, any>, propName: string, componentName: string, ...args: any[]) => any;

@@ -71,0 +81,0 @@ export declare const collectionShorthandWithKindProp: (kindPropValues: string[]) => (props: Record<string, any>, propName: string, componentName: string, ...args: any[]) => any;

@@ -304,3 +304,10 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";

export var shorthandAllowingChildren = PropTypes.oneOfType([PropTypes.node, PropTypes.object, PropTypes.func]);
export var shorthandObjectAllowingChildren = PropTypes.oneOfType([PropTypes.object, PropTypes.func]);
/**
* ObjectItemShorthand is a description of a component that can be
* a props object or a render function.
*/
export var objectItemShorthand = every([disallow(['children']), shorthandAllowingChildren]);
/**
* Item shorthand is a description of a component that can be a literal,

@@ -321,2 +328,7 @@ * a props object, an element or a render function.

export var collectionObjectShorthand = every([disallow(['children']), PropTypes.arrayOf(objectItemShorthand)]);
/**
* Collection shorthand ensures a prop is an array of item shorthand.
*/
export var collectionShorthand = every([disallow(['children']), PropTypes.arrayOf(itemShorthand)]);

@@ -323,0 +335,0 @@ export var collectionShorthandWithKindProp = function collectionShorthandWithKindProp(kindPropValues) {

10

package.json
{
"name": "@fluentui/react-proptypes",
"description": "Set of custom reusable PropTypes for React components, some of them are specific for Fluent UI.",
"version": "0.48.0",
"version": "0.49.0",
"author": "Oleksandr Fediashov <olfedias@microsoft.com>",

@@ -32,6 +32,4 @@ "bugs": "https://github.com/microsoft/fluentui/issues",

"clean": "gulp bundle:package:clean",
"lint": "yarn lint:eslint && yarn lint:old",
"lint:eslint": "eslint --ext .js,.ts,.tsx .",
"lint:fix": "yarn lint:eslint --fix && yarn lint:old --fix",
"lint:old": "tslint -t stylish -p .",
"lint": "eslint --ext .js,.ts,.tsx .",
"lint:fix": "yarn lint --fix",
"test": "gulp test",

@@ -42,3 +40,3 @@ "test:watch": "gulp test:watch"

"types": "dist/es/index.d.ts",
"gitHead": "0b9847bc9bfdc1c4a0cb35ce0cfcfdc32880500b"
"gitHead": "288ce25b226dfc850712e9b37b8212a226dc14ce"
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc