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

@fluentui/state

Package Overview
Dependencies
Maintainers
7
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/state - npm Package Compare versions

Comparing version 0.49.0 to 0.50.0

8

dist/commonjs/createManager.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.default = void 0;

@@ -78,3 +76,3 @@

// eslint-disable-next-line no-console
console.log("manager MIDDLEWARE[".concat(index, "]"), {
console.log("manager MIDDLEWARE[" + index + "]", {
prev: prevState,

@@ -95,3 +93,3 @@ next: getState()

// eslint-disable-next-line no-console
console.log("manager SIDE_EFFECT[".concat(index, "]"));
console.log("manager SIDE_EFFECT[" + index + "]");
}

@@ -98,0 +96,0 @@ }

@@ -5,14 +5,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
var _exportNames = {
createManager: true
};
Object.defineProperty(exports, "createManager", {
enumerable: true,
get: function get() {
return _createManager.default;
}
});
exports.createManager = void 0;

@@ -24,8 +17,3 @@ var _checkboxManager = require("./managers/checkboxManager");

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _checkboxManager[key];
}
});
exports[key] = _checkboxManager[key];
});

@@ -38,8 +26,3 @@

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _carouselManager[key];
}
});
exports[key] = _carouselManager[key];
});

@@ -52,8 +35,3 @@

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _dialogManager[key];
}
});
exports[key] = _dialogManager[key];
});

@@ -66,8 +44,3 @@

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _dropdownManager[key];
}
});
exports[key] = _dropdownManager[key];
});

@@ -80,8 +53,3 @@

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _sliderManager[key];
}
});
exports[key] = _sliderManager[key];
});

@@ -91,2 +59,4 @@

exports.createManager = _createManager.default;
var _types = require("./types");

@@ -97,9 +67,4 @@

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _types[key];
}
});
exports[key] = _types[key];
});
//# sourceMappingURL=index.js.map

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

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.createCarouselManager = void 0;

@@ -13,4 +11,7 @@

var createCarouselManager = function createCarouselManager() {
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var createCarouselManager = function createCarouselManager(config) {
if (config === void 0) {
config = {};
}
return (0, _createManager.default)(Object.assign({}, config, {

@@ -17,0 +18,0 @@ state: Object.assign({

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

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.createCheckboxManager = void 0;

@@ -13,4 +11,7 @@

var createCheckboxManager = function createCheckboxManager() {
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var createCheckboxManager = function createCheckboxManager(config) {
if (config === void 0) {
config = {};
}
return (0, _createManager.default)(Object.assign({}, config, {

@@ -17,0 +18,0 @@ state: Object.assign({

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

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.createDialogManager = void 0;

@@ -13,4 +11,7 @@

var createDialogManager = function createDialogManager() {
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var createDialogManager = function createDialogManager(config) {
if (config === void 0) {
config = {};
}
return (0, _createManager.default)(Object.assign({}, config, {

@@ -17,0 +18,0 @@ state: Object.assign({

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

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.createDropdownManager = void 0;

@@ -13,4 +11,7 @@

var createDropdownManager = function createDropdownManager() {
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var createDropdownManager = function createDropdownManager(config) {
if (config === void 0) {
config = {};
}
return (0, _createManager.default)(Object.assign({}, config, {

@@ -17,0 +18,0 @@ state: Object.assign({

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

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.createSliderManager = void 0;

@@ -13,4 +11,7 @@

var createSliderManager = function createSliderManager() {
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var createSliderManager = function createSliderManager(config) {
if (config === void 0) {
config = {};
}
return (0, _createManager.default)(Object.assign({}, config, {

@@ -17,0 +18,0 @@ state: Object.assign({

@@ -6,4 +6,4 @@ "use strict";

var actions = config.actions, debug = config.debug, _a = config.middleware, middleware = _a === void 0 ? [] : _a, _b = config.sideEffects, sideEffects = _b === void 0 ? [] : _b, state = config.state;
var _state = Object.assign({}, state);
var getState = function () { return Object.assign({}, _state); };
var _state = tslib_1.__assign({}, state);
var getState = function () { return (tslib_1.__assign({}, _state)); };
var setState = function (partial) { return Object.assign(_state, partial); };

@@ -10,0 +10,0 @@ var manager = {

@@ -71,3 +71,3 @@ var createManager = function createManager(config) {

// eslint-disable-next-line no-console
console.log("manager MIDDLEWARE[".concat(index, "]"), {
console.log("manager MIDDLEWARE[" + index + "]", {
prev: prevState,

@@ -88,3 +88,3 @@ next: getState()

// eslint-disable-next-line no-console
console.log("manager SIDE_EFFECT[".concat(index, "]"));
console.log("manager SIDE_EFFECT[" + index + "]");
}

@@ -91,0 +91,0 @@ }

import createManager from '../createManager';
export var createCarouselManager = function createCarouselManager() {
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
export var createCarouselManager = function createCarouselManager(config) {
if (config === void 0) {
config = {};
}
return createManager(Object.assign({}, config, {

@@ -5,0 +8,0 @@ state: Object.assign({

import createManager from '../createManager';
export var createCheckboxManager = function createCheckboxManager() {
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
export var createCheckboxManager = function createCheckboxManager(config) {
if (config === void 0) {
config = {};
}
return createManager(Object.assign({}, config, {

@@ -5,0 +8,0 @@ state: Object.assign({

import createManager from '../createManager';
export var createDialogManager = function createDialogManager() {
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
export var createDialogManager = function createDialogManager(config) {
if (config === void 0) {
config = {};
}
return createManager(Object.assign({}, config, {

@@ -5,0 +8,0 @@ state: Object.assign({

import createManager from '../createManager';
export var createDropdownManager = function createDropdownManager() {
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
export var createDropdownManager = function createDropdownManager(config) {
if (config === void 0) {
config = {};
}
return createManager(Object.assign({}, config, {

@@ -5,0 +8,0 @@ state: Object.assign({

import createManager from '../createManager';
export var createSliderManager = function createSliderManager() {
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
export var createSliderManager = function createSliderManager(config) {
if (config === void 0) {
config = {};
}
return createManager(Object.assign({}, config, {

@@ -5,0 +8,0 @@ state: Object.assign({

{
"name": "@fluentui/state",
"description": "A set of utils to create framework agnostic and reusable state managers",
"version": "0.49.0",
"version": "0.50.0",
"author": "Oleksandr Fediashov <a@fedyashov.com>",

@@ -35,3 +35,3 @@ "bugs": "https://github.com/microsoft/fluentui/issues",

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

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

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