@fluentui/react-utilities
Advanced tools
Comparing version 9.18.19 to 9.18.20
@@ -17,3 +17,3 @@ "use strict"; | ||
function getSlots(state) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
const slots = {}; | ||
@@ -24,7 +24,7 @@ const slotProps = {}; | ||
const [slot, props] = getSlot(state, slotName); | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
slots[slotName] = slot; | ||
slotProps[slotName] = props; | ||
} | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
return { | ||
@@ -31,0 +31,0 @@ slots, |
@@ -14,3 +14,3 @@ "use strict"; | ||
function getSlotsNext(state) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
const slots = {}; | ||
@@ -20,9 +20,9 @@ const slotProps = {}; | ||
for (const slotName of slotNames){ | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
const [slot, props] = getSlotNext(state, slotName); | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
slots[slotName] = slot; | ||
slotProps[slotName] = props; | ||
} | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
return { | ||
@@ -29,0 +29,0 @@ slots, |
@@ -16,4 +16,4 @@ "use strict"; | ||
var _props_as; | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
return (0, _getNativeElementProps.getNativeElementProps)((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : tagName, props, excludedPropNames); | ||
}; |
@@ -91,7 +91,7 @@ "use strict"; | ||
if (typeof target.window === 'object' && target.window === target) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
return target.event; | ||
} | ||
var _target_ownerDocument_defaultView_event; | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
return (_target_ownerDocument_defaultView_event = (_target_ownerDocument = target.ownerDocument) === null || _target_ownerDocument === void 0 ? void 0 : (_target_ownerDocument_defaultView = _target_ownerDocument.defaultView) === null || _target_ownerDocument_defaultView === void 0 ? void 0 : _target_ownerDocument_defaultView.event) !== null && _target_ownerDocument_defaultView_event !== void 0 ? _target_ownerDocument_defaultView_event : undefined; | ||
@@ -98,0 +98,0 @@ } |
@@ -48,3 +48,3 @@ "use strict"; | ||
}, | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
getNativeElementProps: function() { | ||
@@ -62,7 +62,7 @@ return _index3.getNativeElementProps; | ||
}, | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
getSlots: function() { | ||
return _index.getSlots; | ||
}, | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
getSlotsNext: function() { | ||
@@ -104,3 +104,3 @@ return _index.getSlotsNext; | ||
}, | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
resolveShorthand: function() { | ||
@@ -107,0 +107,0 @@ return _index.resolveShorthand; |
@@ -14,4 +14,4 @@ /** | ||
function canUseDOM() { | ||
return /* eslint-disable @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )*/ typeof window !== 'undefined' && !!(window.document && // eslint-disable-next-line deprecation/deprecation | ||
return /* eslint-disable @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )*/ typeof window !== 'undefined' && !!(window.document && // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
window.document.createElement); | ||
} |
@@ -58,3 +58,3 @@ "use strict"; | ||
}, | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
primary: getNativeElementProps(primarySlotTagName, props, [ | ||
@@ -61,0 +61,0 @@ ...excludedPropNames || [], |
@@ -51,3 +51,3 @@ "use strict"; | ||
}, | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
getNativeElementProps: function() { | ||
@@ -54,0 +54,0 @@ return _getNativeElementProps.getNativeElementProps; |
@@ -269,2 +269,3 @@ "use strict"; | ||
'alt', | ||
'autoCorrect', | ||
'autoCapitalize', | ||
@@ -281,2 +282,3 @@ 'autoComplete', | ||
'min', | ||
'minLength', | ||
'multiple', | ||
@@ -283,0 +285,0 @@ 'pattern', |
@@ -24,3 +24,3 @@ import * as React from 'react'; | ||
*/ export function getSlots(state) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
const slots = {}; | ||
@@ -31,7 +31,7 @@ const slotProps = {}; | ||
const [slot, props] = getSlot(state, slotName); | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
slots[slotName] = slot; | ||
slotProps[slotName] = props; | ||
} | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
return { | ||
@@ -38,0 +38,0 @@ slots, |
@@ -12,3 +12,3 @@ import * as React from 'react'; | ||
*/ export function getSlotsNext(state) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
const slots = {}; | ||
@@ -18,9 +18,9 @@ const slotProps = {}; | ||
for (const slotName of slotNames){ | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
const [slot, props] = getSlotNext(state, slotName); | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
slots[slotName] = slot; | ||
slotProps[slotName] = props; | ||
} | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
return { | ||
@@ -27,0 +27,0 @@ slots, |
@@ -10,3 +10,3 @@ import * as slot from '../slot'; | ||
* @deprecated use slot.always or slot.optional combined with assertSlots instead | ||
*/ // eslint-disable-next-line deprecation/deprecation | ||
*/ // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
export const resolveShorthand = (value, options)=>slot.optional(value, { | ||
@@ -13,0 +13,0 @@ ...options, |
@@ -10,4 +10,4 @@ import * as React from 'react'; | ||
var _props_as; | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
return getNativeElementProps((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : tagName, props, excludedPropNames); | ||
}; |
@@ -7,8 +7,8 @@ import * as slot from './slot'; | ||
export { getIntrinsicElementProps } from './getIntrinsicElementProps'; | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
export { getSlots } from './deprecated/getSlots'; | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
export { resolveShorthand } from './deprecated/resolveShorthand'; | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
export { getSlotsNext } from './deprecated/getSlotsNext'; | ||
export { slot }; |
@@ -83,7 +83,7 @@ import * as React from 'react'; | ||
if (typeof target.window === 'object' && target.window === target) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
return target.event; | ||
} | ||
var _target_ownerDocument_defaultView_event; | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
return (_target_ownerDocument_defaultView_event = (_target_ownerDocument = target.ownerDocument) === null || _target_ownerDocument === void 0 ? void 0 : (_target_ownerDocument_defaultView = _target_ownerDocument.defaultView) === null || _target_ownerDocument_defaultView === void 0 ? void 0 : _target_ownerDocument_defaultView.event) !== null && _target_ownerDocument_defaultView_event !== void 0 ? _target_ownerDocument_defaultView_event : undefined; | ||
@@ -90,0 +90,0 @@ } |
@@ -1,8 +0,8 @@ | ||
export { slot, isSlot, // eslint-disable-next-line deprecation/deprecation | ||
getSlots, // eslint-disable-next-line deprecation/deprecation | ||
getSlotsNext, assertSlots, // eslint-disable-next-line deprecation/deprecation | ||
export { slot, isSlot, // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
getSlots, // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
getSlotsNext, assertSlots, // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
resolveShorthand, isResolvedShorthand, getIntrinsicElementProps, SLOT_ELEMENT_TYPE_SYMBOL, SLOT_RENDER_FUNCTION_SYMBOL } from './compose/index'; | ||
export { IdPrefixProvider, resetIdsForTests, useAnimationFrame, useControllableState, useEventCallback, useFirstMount, useForceUpdate, useId, useIsomorphicLayoutEffect, useMergedRefs, useOnClickOutside, useOnScrollOutside, usePrevious, useScrollbarWidth, useTimeout } from './hooks/index'; | ||
export { canUseDOM, useIsSSR, SSRProvider } from './ssr/index'; | ||
export { clamp, // eslint-disable-next-line deprecation/deprecation | ||
export { clamp, // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
getNativeElementProps, getPartitionedNativeProps, getRTLSafeKey, mergeCallbacks, isHTMLElement, isInteractiveHTMLElement, omit, createPriorityQueue } from './utils/index'; | ||
@@ -9,0 +9,0 @@ export { applyTriggerPropsToChildren, getTriggerChild, isFluentTrigger } from './trigger/index'; |
/** | ||
* Verifies if an application can use DOM. | ||
*/ export function canUseDOM() { | ||
return /* eslint-disable @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )*/ typeof window !== 'undefined' && !!(window.document && // eslint-disable-next-line deprecation/deprecation | ||
return /* eslint-disable @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )*/ typeof window !== 'undefined' && !!(window.document && // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
window.document.createElement); | ||
} |
@@ -55,3 +55,3 @@ import * as React from 'react'; | ||
}, | ||
// eslint-disable-next-line deprecation/deprecation | ||
// eslint-disable-next-line @typescript-eslint/no-deprecated | ||
primary: getNativeElementProps(primarySlotTagName, props, [ | ||
@@ -58,0 +58,0 @@ ...excludedPropNames || [], |
export { clamp } from './clamp'; | ||
export { // eslint-disable-next-line deprecation/deprecation | ||
export { // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
getNativeElementProps, getPartitionedNativeProps } from './getNativeElementProps'; | ||
@@ -4,0 +4,0 @@ export { getRTLSafeKey } from './getRTLSafeKey'; |
@@ -222,2 +222,3 @@ const toObjectMap = (...items)=>{ | ||
'alt', | ||
'autoCorrect', | ||
'autoCapitalize', | ||
@@ -234,2 +235,3 @@ 'autoComplete', | ||
'min', | ||
'minLength', | ||
'multiple', | ||
@@ -236,0 +238,0 @@ 'pattern', |
{ | ||
"name": "@fluentui/react-utilities", | ||
"version": "9.18.19", | ||
"version": "9.18.20", | ||
"description": "A set of general React-specific utilities.", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
Sorry, the diff of this file is too big to display
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
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
620290
5631
13
0