@fluentui/state
Advanced tools
Comparing version 0.56.1-beta.1 to 0.57.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createManager = void 0; | ||
var tslib_1 = require("tslib"); | ||
exports.createManager = function (config) { | ||
var 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,1 +74,2 @@ var _state = tslib_1.__assign({}, state); | ||
}; | ||
exports.createManager = createManager; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createManager = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -9,3 +10,3 @@ tslib_1.__exportStar(require("./managers/checkboxManager"), exports); | ||
var createManager_1 = require("./createManager"); | ||
exports.createManager = createManager_1.createManager; | ||
Object.defineProperty(exports, "createManager", { enumerable: true, get: function () { return createManager_1.createManager; } }); | ||
tslib_1.__exportStar(require("./types"), exports); |
@@ -16,2 +16,2 @@ import { Manager, ManagerConfig } from '../types'; | ||
export declare type CarouselManager = Manager<CarouselState, CarouselActions>; | ||
export declare const createCarouselManager: (config?: Partial<ManagerConfig<CarouselState, CarouselActions>>) => Manager<CarouselState, CarouselActions>; | ||
export declare const createCarouselManager: (config?: Partial<ManagerConfig<CarouselState, CarouselActions>>) => CarouselManager; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createCarouselManager = void 0; | ||
var tslib_1 = require("tslib"); | ||
var createManager_1 = require("../createManager"); | ||
exports.createCarouselManager = function (config) { | ||
var createCarouselManager = function (config) { | ||
if (config === void 0) { config = {}; } | ||
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) })); | ||
}; | ||
exports.createCarouselManager = createCarouselManager; |
@@ -9,2 +9,2 @@ import { Manager, ManagerConfig } from '../types'; | ||
export declare type CheckboxManager = Manager<CheckboxState, CheckboxActions>; | ||
export declare const createCheckboxManager: (config?: Partial<ManagerConfig<CheckboxState, CheckboxActions>>) => Manager<CheckboxState, CheckboxActions>; | ||
export declare const createCheckboxManager: (config?: Partial<ManagerConfig<CheckboxState, CheckboxActions>>) => CheckboxManager; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createCheckboxManager = void 0; | ||
var tslib_1 = require("tslib"); | ||
var createManager_1 = require("../createManager"); | ||
exports.createCheckboxManager = function (config) { | ||
var createCheckboxManager = function (config) { | ||
if (config === void 0) { config = {}; } | ||
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) })); | ||
}; | ||
exports.createCheckboxManager = createCheckboxManager; |
@@ -10,2 +10,2 @@ import { Manager, ManagerConfig } from '../types'; | ||
export declare type DialogManager = Manager<DialogState, DialogActions>; | ||
export declare const createDialogManager: (config?: Partial<ManagerConfig<DialogState, DialogActions>>) => Manager<DialogState, DialogActions>; | ||
export declare const createDialogManager: (config?: Partial<ManagerConfig<DialogState, DialogActions>>) => DialogManager; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createDialogManager = void 0; | ||
var tslib_1 = require("tslib"); | ||
var createManager_1 = require("../createManager"); | ||
exports.createDialogManager = function (config) { | ||
var createDialogManager = function (config) { | ||
if (config === void 0) { config = {}; } | ||
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) })); | ||
}; | ||
exports.createDialogManager = createDialogManager; |
@@ -9,2 +9,2 @@ import { Manager, ManagerConfig } from '../types'; | ||
export declare type SliderManager = Manager<SliderState, SliderActions>; | ||
export declare const createSliderManager: (config?: Partial<ManagerConfig<SliderState, SliderActions>>) => Manager<SliderState, SliderActions>; | ||
export declare const createSliderManager: (config?: Partial<ManagerConfig<SliderState, SliderActions>>) => SliderManager; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createSliderManager = void 0; | ||
var tslib_1 = require("tslib"); | ||
var createManager_1 = require("../createManager"); | ||
exports.createSliderManager = function (config) { | ||
var createSliderManager = function (config) { | ||
if (config === void 0) { config = {}; } | ||
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) })); | ||
}; | ||
exports.createSliderManager = createSliderManager; |
@@ -16,2 +16,2 @@ import { Manager, ManagerConfig } from '../types'; | ||
export declare type CarouselManager = Manager<CarouselState, CarouselActions>; | ||
export declare const createCarouselManager: (config?: Partial<ManagerConfig<CarouselState, CarouselActions>>) => Manager<CarouselState, CarouselActions>; | ||
export declare const createCarouselManager: (config?: Partial<ManagerConfig<CarouselState, CarouselActions>>) => CarouselManager; |
@@ -9,2 +9,2 @@ import { Manager, ManagerConfig } from '../types'; | ||
export declare type CheckboxManager = Manager<CheckboxState, CheckboxActions>; | ||
export declare const createCheckboxManager: (config?: Partial<ManagerConfig<CheckboxState, CheckboxActions>>) => Manager<CheckboxState, CheckboxActions>; | ||
export declare const createCheckboxManager: (config?: Partial<ManagerConfig<CheckboxState, CheckboxActions>>) => CheckboxManager; |
@@ -10,2 +10,2 @@ import { Manager, ManagerConfig } from '../types'; | ||
export declare type DialogManager = Manager<DialogState, DialogActions>; | ||
export declare const createDialogManager: (config?: Partial<ManagerConfig<DialogState, DialogActions>>) => Manager<DialogState, DialogActions>; | ||
export declare const createDialogManager: (config?: Partial<ManagerConfig<DialogState, DialogActions>>) => DialogManager; |
@@ -9,2 +9,2 @@ import { Manager, ManagerConfig } from '../types'; | ||
export declare type SliderManager = Manager<SliderState, SliderActions>; | ||
export declare const createSliderManager: (config?: Partial<ManagerConfig<SliderState, SliderActions>>) => Manager<SliderState, SliderActions>; | ||
export declare const createSliderManager: (config?: Partial<ManagerConfig<SliderState, SliderActions>>) => SliderManager; |
{ | ||
"name": "@fluentui/state", | ||
"description": "A set of utils to create framework agnostic and reusable state managers", | ||
"version": "0.56.1-beta.1", | ||
"version": "0.57.0", | ||
"author": "Oleksandr Fediashov <a@fedyashov.com>", | ||
@@ -36,3 +36,3 @@ "bugs": "https://github.com/microsoft/fluentui/issues", | ||
"types": "dist/es/index.d.ts", | ||
"gitHead": "e739e52a1d894fe863367843a459af939cfee6ec" | ||
"gitHead": "9ed48c7056dc8f76437c210040943dbd022e9980" | ||
} |
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
103503
736