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

@fluentui/state

Package Overview
Dependencies
Maintainers
8
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.50.0 to 0.51.0

5

dist/commonjs/createManager.js
"use strict";
exports.__esModule = true;
exports.default = void 0;
exports.createManager = void 0;

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

var _default = createManager;
exports.default = _default;
exports.createManager = createManager;
//# sourceMappingURL=createManager.js.map

14

dist/commonjs/index.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;

@@ -35,10 +33,2 @@ var _exportNames = {

var _dropdownManager = require("./managers/dropdownManager");
Object.keys(_dropdownManager).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
exports[key] = _dropdownManager[key];
});
var _sliderManager = require("./managers/sliderManager");

@@ -52,5 +42,5 @@

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

@@ -57,0 +47,0 @@ var _types = require("./types");

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.createCarouselManager = void 0;
var _createManager = _interopRequireDefault(require("../createManager"));
var _createManager = require("../createManager");

@@ -15,3 +13,3 @@ var createCarouselManager = function createCarouselManager(config) {

return (0, _createManager.default)(Object.assign({}, config, {
return (0, _createManager.createManager)(Object.assign({}, config, {
state: Object.assign({

@@ -18,0 +16,0 @@ activeIndex: 0,

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.createCheckboxManager = void 0;
var _createManager = _interopRequireDefault(require("../createManager"));
var _createManager = require("../createManager");

@@ -15,3 +13,3 @@ var createCheckboxManager = function createCheckboxManager(config) {

return (0, _createManager.default)(Object.assign({}, config, {
return (0, _createManager.createManager)(Object.assign({}, config, {
state: Object.assign({

@@ -18,0 +16,0 @@ checked: false

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.createDialogManager = void 0;
var _createManager = _interopRequireDefault(require("../createManager"));
var _createManager = require("../createManager");

@@ -15,3 +13,3 @@ var createDialogManager = function createDialogManager(config) {

return (0, _createManager.default)(Object.assign({}, config, {
return (0, _createManager.createManager)(Object.assign({}, config, {
state: Object.assign({

@@ -18,0 +16,0 @@ open: false

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.createSliderManager = void 0;
var _createManager = _interopRequireDefault(require("../createManager"));
var _createManager = require("../createManager");

@@ -15,3 +13,3 @@ var createSliderManager = function createSliderManager(config) {

return (0, _createManager.default)(Object.assign({}, config, {
return (0, _createManager.createManager)(Object.assign({}, config, {
state: Object.assign({

@@ -18,0 +16,0 @@ value: '50'

import { Manager, ManagerConfig } from './types';
declare const createManager: <State, Actions extends Record<string, import("./types").AnyAction>>(config: ManagerConfig<State, Actions>) => Manager<State, Actions>;
export default createManager;
export declare const createManager: <State, Actions extends Record<string, import("./types").AnyAction>>(config: ManagerConfig<State, Actions>) => Manager<State, Actions>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var createManager = function (config) {
exports.createManager = function (config) {
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;

@@ -73,2 +73,1 @@ var _state = tslib_1.__assign({}, state);

};
exports.default = createManager;
export * from './managers/checkboxManager';
export * from './managers/carouselManager';
export * from './managers/dialogManager';
export * from './managers/dropdownManager';
export * from './managers/sliderManager';
export { default as createManager } from './createManager';
export { createManager } from './createManager';
export * from './types';

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

tslib_1.__exportStar(require("./managers/dialogManager"), exports);
tslib_1.__exportStar(require("./managers/dropdownManager"), exports);
tslib_1.__exportStar(require("./managers/sliderManager"), exports);
var createManager_1 = require("./createManager");
exports.createManager = createManager_1.default;
exports.createManager = createManager_1.createManager;
tslib_1.__exportStar(require("./types"), exports);

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

if (config === void 0) { config = {}; }
return createManager_1.default(tslib_1.__assign(tslib_1.__assign({}, config), { state: tslib_1.__assign({ activeIndex: 0, prevActiveIndex: -1, ariaLiveOn: false, shouldFocusContainer: false, isFromKeyboard: false }, config.state), actions: tslib_1.__assign({ setIndexes: function (activeIndex, prevActiveIndex) { return function () { return ({ activeIndex: activeIndex, prevActiveIndex: prevActiveIndex }); }; }, setAriaLiveOn: function (ariaLiveOn) { return function () { return ({ ariaLiveOn: ariaLiveOn }); }; }, setShouldFocusContainer: function (shouldFocusContainer) { return function () { return ({ shouldFocusContainer: shouldFocusContainer }); }; }, setIsFromKeyboard: function (isFromKeyboard) { return function () { return ({ isFromKeyboard: isFromKeyboard }); }; } }, config.actions) }));
return createManager_1.createManager(tslib_1.__assign(tslib_1.__assign({}, config), { state: tslib_1.__assign({ activeIndex: 0, prevActiveIndex: -1, ariaLiveOn: false, shouldFocusContainer: false, isFromKeyboard: false }, config.state), actions: tslib_1.__assign({ setIndexes: function (activeIndex, prevActiveIndex) { return function () { return ({ activeIndex: activeIndex, prevActiveIndex: prevActiveIndex }); }; }, setAriaLiveOn: function (ariaLiveOn) { return function () { return ({ ariaLiveOn: ariaLiveOn }); }; }, setShouldFocusContainer: function (shouldFocusContainer) { return function () { return ({ shouldFocusContainer: shouldFocusContainer }); }; }, setIsFromKeyboard: function (isFromKeyboard) { return function () { return ({ isFromKeyboard: isFromKeyboard }); }; } }, config.actions) }));
};

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

if (config === void 0) { config = {}; }
return createManager_1.default(tslib_1.__assign(tslib_1.__assign({}, config), { state: tslib_1.__assign({ checked: false }, config.state), actions: tslib_1.__assign({ toggle: function (checked) { return function () { return ({ checked: checked }); }; } }, config.actions) }));
return createManager_1.createManager(tslib_1.__assign(tslib_1.__assign({}, config), { state: tslib_1.__assign({ checked: false }, config.state), actions: tslib_1.__assign({ toggle: function (checked) { return function () { return ({ checked: checked }); }; } }, config.actions) }));
};

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

if (config === void 0) { config = {}; }
return createManager_1.default(tslib_1.__assign(tslib_1.__assign({}, config), { state: tslib_1.__assign({ open: false }, config.state), actions: tslib_1.__assign({ close: function () { return function () { return ({ open: false }); }; }, open: function () { return function () { return ({ open: true }); }; } }, config.actions) }));
return createManager_1.createManager(tslib_1.__assign(tslib_1.__assign({}, config), { state: tslib_1.__assign({ open: false }, config.state), actions: tslib_1.__assign({ close: function () { return function () { return ({ open: false }); }; }, open: function () { return function () { return ({ open: true }); }; } }, config.actions) }));
};

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

if (config === void 0) { config = {}; }
return createManager_1.default(tslib_1.__assign(tslib_1.__assign({}, config), { state: tslib_1.__assign({ value: '50' }, config.state), actions: tslib_1.__assign({ change: function (value) { return function () { return ({ value: value }); }; } }, config.actions) }));
return createManager_1.createManager(tslib_1.__assign(tslib_1.__assign({}, config), { state: tslib_1.__assign({ value: '50' }, config.state), actions: tslib_1.__assign({ change: function (value) { return function () { return ({ value: value }); }; } }, config.actions) }));
};
import { Manager, ManagerConfig } from './types';
declare const createManager: <State, Actions extends Record<string, import("./types").AnyAction>>(config: ManagerConfig<State, Actions>) => Manager<State, Actions>;
export default createManager;
export declare const createManager: <State, Actions extends Record<string, import("./types").AnyAction>>(config: ManagerConfig<State, Actions>) => Manager<State, Actions>;

@@ -1,2 +0,2 @@

var createManager = function createManager(config) {
export var createManager = function createManager(config) {
var actions = config.actions,

@@ -97,4 +97,2 @@ debug = config.debug,

};
export default createManager;
//# sourceMappingURL=createManager.js.map
export * from './managers/checkboxManager';
export * from './managers/carouselManager';
export * from './managers/dialogManager';
export * from './managers/dropdownManager';
export * from './managers/sliderManager';
export { default as createManager } from './createManager';
export { createManager } from './createManager';
export * from './types';
export * from './managers/checkboxManager';
export * from './managers/carouselManager';
export * from './managers/dialogManager';
export * from './managers/dropdownManager';
export * from './managers/sliderManager';
export { default as createManager } from './createManager';
export { createManager } from './createManager';
export * from './types';
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import createManager from '../createManager';
import { createManager } from '../createManager';
export var createCarouselManager = function createCarouselManager(config) {

@@ -3,0 +3,0 @@ if (config === void 0) {

@@ -1,2 +0,2 @@

import createManager from '../createManager';
import { createManager } from '../createManager';
export var createCheckboxManager = function createCheckboxManager(config) {

@@ -3,0 +3,0 @@ if (config === void 0) {

@@ -1,2 +0,2 @@

import createManager from '../createManager';
import { createManager } from '../createManager';
export var createDialogManager = function createDialogManager(config) {

@@ -3,0 +3,0 @@ if (config === void 0) {

@@ -1,2 +0,2 @@

import createManager from '../createManager';
import { createManager } from '../createManager';
export var createSliderManager = function createSliderManager(config) {

@@ -3,0 +3,0 @@ if (config === void 0) {

{
"name": "@fluentui/state",
"description": "A set of utils to create framework agnostic and reusable state managers",
"version": "0.50.0",
"version": "0.51.0",
"author": "Oleksandr Fediashov <a@fedyashov.com>",
"bugs": "https://github.com/microsoft/fluentui/issues",
"dependencies": {
"@babel/runtime": "^7.7.6"
"@babel/runtime": "^7.10.4"
},
"devDependencies": {
"@fluentui/eslint-plugin": "^0.53.1",
"@uifabric/build": "^7.0.0",

@@ -35,3 +36,3 @@ "lerna-alias": "^3.0.3-0"

"types": "dist/es/index.d.ts",
"gitHead": "f986757f9fccfef210e85163dfe9d795cf54f8af"
"gitHead": "215aed1574db0b0db7d5fe130d19072178855423"
}

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