@fluentui/priority-overflow 9.74.7-experimental.cli-api.20261006-ccaa611d58.0 → 9.75.0-experimental.css-modules.20261031-810ab07afb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -5
- package/lib/overflowManager.js +1 -2
- package/lib/overflowManager.js.map +1 -1
- package/lib-commonjs/consts.cjs +4 -4
- package/lib-commonjs/consts.cjs.map +1 -1
- package/lib-commonjs/index.cjs +3 -3
- package/lib-commonjs/index.cjs.map +1 -1
- package/lib-commonjs/overflowManager.cjs +1 -2
- package/lib-commonjs/overflowManager.cjs.map +1 -1
- package/package.json +3 -6
- package/dist/metadata/api/api-root.json +0 -1
- package/dist/metadata/index.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
# Change Log - @fluentui/priority-overflow
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Sat, 31 Oct 2026 11:08:59 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.
|
|
7
|
+
## [9.75.0-experimental.css-modules.20261031-810ab07afb.0](https://github.com/microsoft/fluentui/tree/@fluentui/priority-overflow_v9.75.0-experimental.css-modules.20261031-810ab07afb.0)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/priority-overflow_v9.4.3..@fluentui/priority-overflow_v9.74.7-experimental.cli-api.20261006-ccaa611d58.0)
|
|
9
|
+
Sat, 31 Oct 2026 11:08:59 GMT
|
|
11
10
|
|
|
12
11
|
### Changes
|
|
13
12
|
|
|
14
|
-
- Release 9.
|
|
13
|
+
- Release 9.75.0-experimental.css-modules.20261031-810ab07afb ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
|
|
15
14
|
|
|
16
15
|
## [9.4.3](https://github.com/microsoft/fluentui/tree/@fluentui/priority-overflow_v9.4.3)
|
|
17
16
|
|
package/lib/overflowManager.js
CHANGED
|
@@ -367,8 +367,7 @@ const createGroupManager = ()=>{
|
|
|
367
367
|
return isGroupVisible(groupId) && groups[groupId].visibleItemIds.has(itemId) && groups[groupId].visibleItemIds.size === 1;
|
|
368
368
|
},
|
|
369
369
|
addItem (itemId, groupId) {
|
|
370
|
-
var _groups, _groupId;
|
|
371
|
-
var _;
|
|
370
|
+
var _groups, _groupId, _;
|
|
372
371
|
(_ = (_groups = groups)[_groupId = groupId]) !== null && _ !== void 0 ? _ : _groups[_groupId] = {
|
|
373
372
|
visibleItemIds: new Set(),
|
|
374
373
|
invisibleItemIds: new Set()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/overflowManager.ts"],"sourcesContent":["import { DATA_OVERFLOWING, DATA_OVERFLOW_GROUP, EMPTY_SNAPSHOT } from './consts';\nimport { observeResize } from './createResizeObserver';\nimport { debounce } from './debounce';\nimport type { PriorityQueue } from './priorityQueue';\nimport { createPriorityQueue } from './priorityQueue';\nimport type {\n OverflowGroupState,\n OverflowItemEntry,\n OverflowManager,\n OverflowOptions,\n OverflowDividerEntry,\n OverflowSnapshot,\n} from './types';\n\nconst DEFAULT_OPTIONS: Required<OverflowOptions> = {\n overflowAxis: 'horizontal',\n overflowDirection: 'end',\n padding: 10,\n minimumVisible: 0,\n hasHiddenItems: false,\n onUpdateItemVisibility: () => {\n /* noop */\n },\n onUpdateOverflow: () => {\n /* noop */\n },\n};\n\n/**\n * Creates an overflow manager instance for a single container.\n *\n * @internal\n * @param initialOptions - Initial observe options. Missing values are filled with defaults.\n * @returns overflow manager instance\n */\nexport function createOverflowManager(initialOptions: Partial<OverflowOptions> = {}): OverflowManager {\n // calls to `offsetWidth or offsetHeight` can happen multiple times in an update\n // Use a cache to avoid causing too many recalcs and avoid scripting time to meausure sizes\n const sizeCache = new Map<HTMLElement, number>();\n let container: HTMLElement | undefined;\n let overflowMenu: HTMLElement | undefined;\n // Set as true when resize observer is observing\n let observing = false;\n // If true, next update will dispatch to onUpdateOverflow even if queue top states don't change\n // Initially true to force dispatch on first mount\n let forceDispatch = true;\n const options: Required<OverflowOptions> = { ...DEFAULT_OPTIONS, ...initialOptions };\n const overflowItems: Record<string, OverflowItemEntry> = {};\n const overflowDividers: Record<string, OverflowDividerEntry> = {};\n const listeners = new Set<() => void>();\n let disposeResizeObserver: () => void = () => {\n /* noop */\n };\n\n let snapshot: OverflowSnapshot = EMPTY_SNAPSHOT;\n const takeSnapshot = (nextSnapshot: OverflowSnapshot) => {\n snapshot = nextSnapshot;\n listeners.forEach(listener => listener());\n };\n\n const getNextItem = (queueToDequeue: PriorityQueue<string>, queueToEnqueue: PriorityQueue<string>) => {\n const nextItem = queueToDequeue.dequeue();\n queueToEnqueue.enqueue(nextItem);\n return overflowItems[nextItem];\n };\n\n const groupManager = createGroupManager();\n\n function compareItems(lt: string | null, rt: string | null): number {\n if (!lt || !rt) {\n return 0;\n }\n\n const lte = overflowItems[lt];\n const rte = overflowItems[rt];\n\n // TODO this should not happen but there have been reports of one of these items being undefined\n // Try to find a consistent repro for this\n if (!lte || !rte) {\n return lte ? 1 : -1;\n }\n\n // Pinned items have \"infinite\" priority - they should never be hidden\n if (lte.pinned !== rte.pinned) {\n return lte.pinned ? 1 : -1;\n }\n\n if (lte.priority !== rte.priority) {\n return lte.priority > rte.priority ? 1 : -1;\n }\n\n // Node.DOCUMENT_POSITION_FOLLOWING = 4, Node.DOCUMENT_POSITION_PRECEDING = 2\n const positionStatusBit = options.overflowDirection === 'end' ? 4 : 2;\n\n // eslint-disable-next-line no-bitwise\n return lte.element.compareDocumentPosition(rte.element) & positionStatusBit ? 1 : -1;\n }\n\n function getElementAxisSize(\n horizontal: 'clientWidth' | 'offsetWidth',\n vertical: 'clientHeight' | 'offsetHeight',\n el: HTMLElement,\n ): number {\n if (!sizeCache.has(el)) {\n sizeCache.set(el, options.overflowAxis === 'horizontal' ? el[horizontal] : el[vertical]);\n }\n\n return sizeCache.get(el)!;\n }\n\n const getOffsetSize = getElementAxisSize.bind(null, 'offsetWidth', 'offsetHeight');\n const getClientSize = getElementAxisSize.bind(null, 'clientWidth', 'clientHeight');\n\n const invisibleItemQueue = createPriorityQueue<string>((a, b) => -1 * compareItems(a, b));\n\n const visibleItemQueue = createPriorityQueue<string>(compareItems);\n\n function occupiedSize(): number {\n let totalItemSize = 0;\n for (const id of visibleItemQueue) {\n totalItemSize += getOffsetSize(overflowItems[id].element);\n }\n\n const totalDividerSize = Object.entries(groupManager.groupVisibility()).reduce(\n (acc, [id, state]) =>\n acc + (state !== 'hidden' && overflowDividers[id] ? getOffsetSize(overflowDividers[id].element) : 0),\n 0,\n );\n\n const overflowMenuSize =\n (invisibleItemQueue.size() > 0 || options.hasHiddenItems) && overflowMenu ? getOffsetSize(overflowMenu) : 0;\n\n return totalItemSize + totalDividerSize + overflowMenuSize;\n }\n\n const showItem = () => {\n const item = getNextItem(invisibleItemQueue, visibleItemQueue);\n options.onUpdateItemVisibility({ item, visible: true });\n\n if (item.groupId) {\n groupManager.showItem(item.id, item.groupId);\n\n if (groupManager.isSingleItemVisible(item.id, item.groupId)) {\n overflowDividers[item.groupId]?.element.removeAttribute(DATA_OVERFLOWING);\n }\n }\n };\n\n const hideItem = () => {\n const item = getNextItem(visibleItemQueue, invisibleItemQueue);\n options.onUpdateItemVisibility({ item, visible: false });\n\n if (item.groupId) {\n if (groupManager.isSingleItemVisible(item.id, item.groupId)) {\n overflowDividers[item.groupId]?.element.setAttribute(DATA_OVERFLOWING, '');\n }\n\n groupManager.hideItem(item.id, item.groupId);\n }\n };\n\n const dispatchOverflowUpdate = () => {\n const groupVisibility = groupManager.groupVisibility();\n\n // Build the legacy ordered-entry arrays and the snapshot's id -> visible map in a single pass\n // over each queue.\n const itemVisibility: Record<string, boolean> = {};\n const visibleItems: OverflowItemEntry[] = [];\n const invisibleItems: OverflowItemEntry[] = [];\n\n for (const itemId of visibleItemQueue) {\n itemVisibility[itemId] = true;\n visibleItems.push(overflowItems[itemId]);\n }\n for (const itemId of invisibleItemQueue) {\n itemVisibility[itemId] = false;\n invisibleItems.push(overflowItems[itemId]);\n }\n\n // Set the snapshot first so `getSnapshot()` is current for both subscribers and any\n // `onUpdateOverflow` consumer that reads it.\n takeSnapshot({\n itemVisibility,\n groupVisibility,\n invisibleItemCount: invisibleItems.length,\n });\n\n // Legacy event payload: ordered item entries for `onUpdateOverflow` consumers.\n options.onUpdateOverflow({ visibleItems, invisibleItems, groupVisibility });\n };\n\n const getSnapshot: OverflowManager['getSnapshot'] = () => snapshot;\n\n const processOverflowItems = (): boolean => {\n if (!container) {\n return false;\n }\n sizeCache.clear();\n\n const availableSize = getClientSize(container) - options.padding;\n\n // Snapshot of the visible/invisible state to compare for updates\n const visibleTop = visibleItemQueue.peek();\n const invisibleTop = invisibleItemQueue.peek();\n\n while (compareItems(invisibleItemQueue.peek(), visibleItemQueue.peek()) > 0) {\n hideItem(); // hide elements whose priority become smaller than the highest priority of the hidden one\n }\n\n // Run the show/hide step twice - the first step might not be correct if\n // it was triggered by a new item being added - new items are always visible by default.\n for (let i = 0; i < 2; i++) {\n // Add items until available width is filled - can result in overflow\n while (\n (occupiedSize() < availableSize && invisibleItemQueue.size() > 0) ||\n invisibleItemQueue.size() === 1 // attempt to show the last invisible item hoping it's size does not exceed overflow menu size\n ) {\n showItem();\n }\n\n // Remove items until there's no more overflow\n while (occupiedSize() > availableSize && visibleItemQueue.size() > options.minimumVisible) {\n const nextItemId = visibleItemQueue.peek();\n\n // Never hide pinned items - they should always remain visible\n if (nextItemId && overflowItems[nextItemId]?.pinned) {\n break;\n }\n\n hideItem();\n }\n }\n\n // only update when the state of visible/invisible items has changed\n return visibleItemQueue.peek() !== visibleTop || invisibleItemQueue.peek() !== invisibleTop;\n };\n\n const forceUpdate: OverflowManager['forceUpdate'] = () => {\n if (processOverflowItems() || forceDispatch) {\n forceDispatch = false;\n dispatchOverflowUpdate();\n }\n };\n\n const update: OverflowManager['update'] = debounce(forceUpdate);\n\n const setOptions: OverflowManager['setOptions'] = nextOptions => {\n if (options === nextOptions) {\n return;\n }\n\n const shouldTriggerUpdate =\n (nextOptions.overflowAxis && options.overflowAxis !== nextOptions.overflowAxis) ||\n (nextOptions.overflowDirection && options.overflowDirection !== nextOptions.overflowDirection) ||\n (nextOptions.padding && options.padding !== nextOptions.padding) ||\n (nextOptions.minimumVisible && options.minimumVisible !== nextOptions.minimumVisible) ||\n (nextOptions.hasHiddenItems && options.hasHiddenItems !== nextOptions.hasHiddenItems);\n\n Object.assign(options, nextOptions);\n\n if (shouldTriggerUpdate) {\n forceDispatch = true;\n update();\n }\n };\n\n const observe: OverflowManager['observe'] = (observedContainer, observeOptions) => {\n const { forceUpdate: shouldForceUpdate, ...userOptions } = observeOptions ?? {};\n Object.assign(options, userOptions);\n\n Object.values(overflowItems).forEach(item => {\n if (!visibleItemQueue.contains(item.id) && !invisibleItemQueue.contains(item.id)) {\n visibleItemQueue.enqueue(item.id);\n }\n });\n\n container = observedContainer;\n observing = true;\n disposeResizeObserver = observeResize(container, entries => {\n if (!entries[0] || !container) {\n return;\n }\n update();\n });\n\n if (shouldForceUpdate && getClientSize(observedContainer) > 0) {\n forceUpdate();\n }\n };\n\n const disconnect: OverflowManager['disconnect'] = () => {\n disposeResizeObserver();\n disposeResizeObserver = () => {\n /* noop */\n };\n\n // reset flags\n container = undefined;\n observing = false;\n forceDispatch = true;\n\n // clear all entries\n Object.keys(overflowItems).forEach(itemId => removeItem(itemId));\n Object.keys(overflowDividers).forEach(dividerId => removeDivider(dividerId));\n removeOverflowMenu();\n sizeCache.clear();\n\n // Reset the snapshot during teardown, but do not broadcast a final update.\n // Consumers unsubscribe as part of unmount, and a disconnect-time notification can race\n // those cleanups and dispatch into already-unmounting React listeners.\n snapshot = EMPTY_SNAPSHOT;\n };\n\n const addItem: OverflowManager['addItem'] = items => {\n if (overflowItems[items.id]) {\n return;\n }\n\n overflowItems[items.id] = items;\n\n // some options can affect priority which are only set on `observe`\n if (observing) {\n // Updates to elements might not change the queue tops\n // i.e. new element is enqueued but the top of the queue stays the same\n // force a dispatch on the next batched update\n forceDispatch = true;\n visibleItemQueue.enqueue(items.id);\n update();\n }\n\n if (items.groupId) {\n groupManager.addItem(items.id, items.groupId);\n items.element.setAttribute(DATA_OVERFLOW_GROUP, items.groupId);\n }\n };\n\n const addOverflowMenu: OverflowManager['addOverflowMenu'] = el => {\n if (overflowMenu === el) {\n return;\n }\n\n overflowMenu = el;\n\n if (observing) {\n forceDispatch = true;\n if (invisibleItemQueue.size() > 0) {\n forceUpdate();\n } else {\n update();\n }\n }\n };\n\n const addDivider: OverflowManager['addDivider'] = divider => {\n if (!divider.groupId || overflowDividers[divider.groupId]) {\n return;\n }\n\n divider.element.setAttribute(DATA_OVERFLOW_GROUP, divider.groupId);\n overflowDividers[divider.groupId] = divider;\n };\n\n const removeOverflowMenu: OverflowManager['removeOverflowMenu'] = () => {\n if (!overflowMenu) {\n return;\n }\n\n const hasInvisibleItems = invisibleItemQueue.size() > 0;\n overflowMenu = undefined;\n\n if (observing && hasInvisibleItems) {\n forceDispatch = true;\n update();\n }\n };\n\n const removeDivider: OverflowManager['removeDivider'] = groupId => {\n if (!overflowDividers[groupId]) {\n return;\n }\n const divider = overflowDividers[groupId];\n if (divider.groupId) {\n delete overflowDividers[groupId];\n divider.element.removeAttribute(DATA_OVERFLOW_GROUP);\n }\n };\n\n const removeItem: OverflowManager['removeItem'] = itemId => {\n if (!overflowItems[itemId]) {\n return;\n }\n\n if (observing) {\n // We might be removing an item in an overflow which would not affect the tops,\n // but we need to update anyway to update the overflow menu state\n forceDispatch = true;\n }\n\n const item = overflowItems[itemId];\n visibleItemQueue.remove(itemId);\n invisibleItemQueue.remove(itemId);\n\n if (item.groupId) {\n groupManager.removeItem(item.id, item.groupId);\n item.element.removeAttribute(DATA_OVERFLOW_GROUP);\n }\n\n sizeCache.delete(item.element);\n delete overflowItems[itemId];\n if (observing) {\n update();\n }\n };\n\n const subscribe: OverflowManager['subscribe'] = listener => {\n listeners.add(listener);\n\n return () => {\n listeners.delete(listener);\n };\n };\n\n return {\n addItem,\n disconnect,\n forceUpdate,\n observe,\n removeItem,\n update,\n addOverflowMenu,\n removeOverflowMenu,\n addDivider,\n removeDivider,\n setOptions,\n getSnapshot,\n subscribe,\n };\n}\n\nconst createGroupManager = () => {\n const groupVisibility: Record<string, OverflowGroupState> = {};\n const groups: Record<string, { visibleItemIds: Set<string>; invisibleItemIds: Set<string> }> = {};\n function updateGroupVisibility(groupId: string) {\n const group = groups[groupId];\n if (group.invisibleItemIds.size && group.visibleItemIds.size) {\n groupVisibility[groupId] = 'overflow';\n } else if (group.visibleItemIds.size === 0) {\n groupVisibility[groupId] = 'hidden';\n } else {\n groupVisibility[groupId] = 'visible';\n }\n }\n function isGroupVisible(groupId: string) {\n return groupVisibility[groupId] === 'visible' || groupVisibility[groupId] === 'overflow';\n }\n return {\n groupVisibility: () => groupVisibility,\n isSingleItemVisible(itemId: string, groupId: string) {\n return (\n isGroupVisible(groupId) &&\n groups[groupId].visibleItemIds.has(itemId) &&\n groups[groupId].visibleItemIds.size === 1\n );\n },\n addItem(itemId: string, groupId: string) {\n groups[groupId] ??= {\n visibleItemIds: new Set<string>(),\n invisibleItemIds: new Set<string>(),\n };\n\n groups[groupId].visibleItemIds.add(itemId);\n updateGroupVisibility(groupId);\n },\n removeItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.delete(itemId);\n groups[groupId].visibleItemIds.delete(itemId);\n updateGroupVisibility(groupId);\n },\n showItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.delete(itemId);\n groups[groupId].visibleItemIds.add(itemId);\n updateGroupVisibility(groupId);\n },\n hideItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.add(itemId);\n groups[groupId].visibleItemIds.delete(itemId);\n updateGroupVisibility(groupId);\n },\n };\n};\n"],"names":["DATA_OVERFLOWING","DATA_OVERFLOW_GROUP","EMPTY_SNAPSHOT","observeResize","debounce","createPriorityQueue","DEFAULT_OPTIONS","overflowAxis","overflowDirection","padding","minimumVisible","hasHiddenItems","onUpdateItemVisibility","onUpdateOverflow","createOverflowManager","initialOptions","sizeCache","Map","container","overflowMenu","observing","forceDispatch","options","overflowItems","overflowDividers","listeners","Set","disposeResizeObserver","snapshot","takeSnapshot","nextSnapshot","forEach","listener","getNextItem","queueToDequeue","queueToEnqueue","nextItem","dequeue","enqueue","groupManager","createGroupManager","compareItems","lt","rt","lte","rte","pinned","priority","positionStatusBit","element","compareDocumentPosition","getElementAxisSize","horizontal","vertical","el","has","set","get","getOffsetSize","bind","getClientSize","invisibleItemQueue","a","b","visibleItemQueue","occupiedSize","totalItemSize","id","totalDividerSize","Object","entries","groupVisibility","reduce","acc","state","overflowMenuSize","size","showItem","item","visible","groupId","isSingleItemVisible","removeAttribute","hideItem","setAttribute","dispatchOverflowUpdate","itemVisibility","visibleItems","invisibleItems","itemId","push","invisibleItemCount","length","getSnapshot","processOverflowItems","clear","availableSize","visibleTop","peek","invisibleTop","i","nextItemId","forceUpdate","update","setOptions","nextOptions","shouldTriggerUpdate","assign","observe","observedContainer","observeOptions","shouldForceUpdate","userOptions","values","contains","disconnect","undefined","keys","removeItem","dividerId","removeDivider","removeOverflowMenu","addItem","items","addOverflowMenu","addDivider","divider","hasInvisibleItems","remove","delete","subscribe","add","groups","updateGroupVisibility","group","invisibleItemIds","visibleItemIds","isGroupVisible"],"mappings":"AAAA,SAASA,gBAAgB,EAAEC,mBAAmB,EAAEC,cAAc,QAAQ,cAAW;AACjF,SAASC,aAAa,QAAQ,4BAAyB;AACvD,SAASC,QAAQ,QAAQ,gBAAa;AAEtC,SAASC,mBAAmB,QAAQ,qBAAkB;AAUtD,MAAMC,kBAA6C;IACjDC,cAAc;IACdC,mBAAmB;IACnBC,SAAS;IACTC,gBAAgB;IAChBC,gBAAgB;IAChBC,wBAA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,CAACwD,cAAc,CAACP,MAAM,CAACxC;YACtC4C,sBAAsBrD;QACxB;QACAH,UAASY,MAAc,EAAET,OAAe;YACtCoD,MAAM,CAACpD,QAAQ,CAACuD,gBAAgB,CAACN,MAAM,CAACxC;YACxC2C,MAAM,CAACpD,QAAQ,CAACwD,cAAc,CAACL,GAAG,CAAC1C;YACnC4C,sBAAsBrD;QACxB;QACAG,UAASM,MAAc,EAAET,OAAe;YACtCoD,MAAM,CAACpD,QAAQ,CAACuD,gBAAgB,CAACJ,GAAG,CAAC1C;YACrC2C,MAAM,CAACpD,QAAQ,CAACwD,cAAc,CAACP,MAAM,CAACxC;YACtC4C,sBAAsBrD;QACxB;IACF;AACF"}
|
|
1
|
+
{"version":3,"sources":["../src/overflowManager.ts"],"sourcesContent":["import { DATA_OVERFLOWING, DATA_OVERFLOW_GROUP, EMPTY_SNAPSHOT } from './consts';\nimport { observeResize } from './createResizeObserver';\nimport { debounce } from './debounce';\nimport type { PriorityQueue } from './priorityQueue';\nimport { createPriorityQueue } from './priorityQueue';\nimport type {\n OverflowGroupState,\n OverflowItemEntry,\n OverflowManager,\n OverflowOptions,\n OverflowDividerEntry,\n OverflowSnapshot,\n} from './types';\n\nconst DEFAULT_OPTIONS: Required<OverflowOptions> = {\n overflowAxis: 'horizontal',\n overflowDirection: 'end',\n padding: 10,\n minimumVisible: 0,\n hasHiddenItems: false,\n onUpdateItemVisibility: () => {\n /* noop */\n },\n onUpdateOverflow: () => {\n /* noop */\n },\n};\n\n/**\n * Creates an overflow manager instance for a single container.\n *\n * @internal\n * @param initialOptions - Initial observe options. Missing values are filled with defaults.\n * @returns overflow manager instance\n */\nexport function createOverflowManager(initialOptions: Partial<OverflowOptions> = {}): OverflowManager {\n // calls to `offsetWidth or offsetHeight` can happen multiple times in an update\n // Use a cache to avoid causing too many recalcs and avoid scripting time to meausure sizes\n const sizeCache = new Map<HTMLElement, number>();\n let container: HTMLElement | undefined;\n let overflowMenu: HTMLElement | undefined;\n // Set as true when resize observer is observing\n let observing = false;\n // If true, next update will dispatch to onUpdateOverflow even if queue top states don't change\n // Initially true to force dispatch on first mount\n let forceDispatch = true;\n const options: Required<OverflowOptions> = { ...DEFAULT_OPTIONS, ...initialOptions };\n const overflowItems: Record<string, OverflowItemEntry> = {};\n const overflowDividers: Record<string, OverflowDividerEntry> = {};\n const listeners = new Set<() => void>();\n let disposeResizeObserver: () => void = () => {\n /* noop */\n };\n\n let snapshot: OverflowSnapshot = EMPTY_SNAPSHOT;\n const takeSnapshot = (nextSnapshot: OverflowSnapshot) => {\n snapshot = nextSnapshot;\n listeners.forEach(listener => listener());\n };\n\n const getNextItem = (queueToDequeue: PriorityQueue<string>, queueToEnqueue: PriorityQueue<string>) => {\n const nextItem = queueToDequeue.dequeue();\n queueToEnqueue.enqueue(nextItem);\n return overflowItems[nextItem];\n };\n\n const groupManager = createGroupManager();\n\n function compareItems(lt: string | null, rt: string | null): number {\n if (!lt || !rt) {\n return 0;\n }\n\n const lte = overflowItems[lt];\n const rte = overflowItems[rt];\n\n // TODO this should not happen but there have been reports of one of these items being undefined\n // Try to find a consistent repro for this\n if (!lte || !rte) {\n return lte ? 1 : -1;\n }\n\n // Pinned items have \"infinite\" priority - they should never be hidden\n if (lte.pinned !== rte.pinned) {\n return lte.pinned ? 1 : -1;\n }\n\n if (lte.priority !== rte.priority) {\n return lte.priority > rte.priority ? 1 : -1;\n }\n\n // Node.DOCUMENT_POSITION_FOLLOWING = 4, Node.DOCUMENT_POSITION_PRECEDING = 2\n const positionStatusBit = options.overflowDirection === 'end' ? 4 : 2;\n\n // eslint-disable-next-line no-bitwise\n return lte.element.compareDocumentPosition(rte.element) & positionStatusBit ? 1 : -1;\n }\n\n function getElementAxisSize(\n horizontal: 'clientWidth' | 'offsetWidth',\n vertical: 'clientHeight' | 'offsetHeight',\n el: HTMLElement,\n ): number {\n if (!sizeCache.has(el)) {\n sizeCache.set(el, options.overflowAxis === 'horizontal' ? el[horizontal] : el[vertical]);\n }\n\n return sizeCache.get(el)!;\n }\n\n const getOffsetSize = getElementAxisSize.bind(null, 'offsetWidth', 'offsetHeight');\n const getClientSize = getElementAxisSize.bind(null, 'clientWidth', 'clientHeight');\n\n const invisibleItemQueue = createPriorityQueue<string>((a, b) => -1 * compareItems(a, b));\n\n const visibleItemQueue = createPriorityQueue<string>(compareItems);\n\n function occupiedSize(): number {\n let totalItemSize = 0;\n for (const id of visibleItemQueue) {\n totalItemSize += getOffsetSize(overflowItems[id].element);\n }\n\n const totalDividerSize = Object.entries(groupManager.groupVisibility()).reduce(\n (acc, [id, state]) =>\n acc + (state !== 'hidden' && overflowDividers[id] ? getOffsetSize(overflowDividers[id].element) : 0),\n 0,\n );\n\n const overflowMenuSize =\n (invisibleItemQueue.size() > 0 || options.hasHiddenItems) && overflowMenu ? getOffsetSize(overflowMenu) : 0;\n\n return totalItemSize + totalDividerSize + overflowMenuSize;\n }\n\n const showItem = () => {\n const item = getNextItem(invisibleItemQueue, visibleItemQueue);\n options.onUpdateItemVisibility({ item, visible: true });\n\n if (item.groupId) {\n groupManager.showItem(item.id, item.groupId);\n\n if (groupManager.isSingleItemVisible(item.id, item.groupId)) {\n overflowDividers[item.groupId]?.element.removeAttribute(DATA_OVERFLOWING);\n }\n }\n };\n\n const hideItem = () => {\n const item = getNextItem(visibleItemQueue, invisibleItemQueue);\n options.onUpdateItemVisibility({ item, visible: false });\n\n if (item.groupId) {\n if (groupManager.isSingleItemVisible(item.id, item.groupId)) {\n overflowDividers[item.groupId]?.element.setAttribute(DATA_OVERFLOWING, '');\n }\n\n groupManager.hideItem(item.id, item.groupId);\n }\n };\n\n const dispatchOverflowUpdate = () => {\n const groupVisibility = groupManager.groupVisibility();\n\n // Build the legacy ordered-entry arrays and the snapshot's id -> visible map in a single pass\n // over each queue.\n const itemVisibility: Record<string, boolean> = {};\n const visibleItems: OverflowItemEntry[] = [];\n const invisibleItems: OverflowItemEntry[] = [];\n\n for (const itemId of visibleItemQueue) {\n itemVisibility[itemId] = true;\n visibleItems.push(overflowItems[itemId]);\n }\n for (const itemId of invisibleItemQueue) {\n itemVisibility[itemId] = false;\n invisibleItems.push(overflowItems[itemId]);\n }\n\n // Set the snapshot first so `getSnapshot()` is current for both subscribers and any\n // `onUpdateOverflow` consumer that reads it.\n takeSnapshot({\n itemVisibility,\n groupVisibility,\n invisibleItemCount: invisibleItems.length,\n });\n\n // Legacy event payload: ordered item entries for `onUpdateOverflow` consumers.\n options.onUpdateOverflow({ visibleItems, invisibleItems, groupVisibility });\n };\n\n const getSnapshot: OverflowManager['getSnapshot'] = () => snapshot;\n\n const processOverflowItems = (): boolean => {\n if (!container) {\n return false;\n }\n sizeCache.clear();\n\n const availableSize = getClientSize(container) - options.padding;\n\n // Snapshot of the visible/invisible state to compare for updates\n const visibleTop = visibleItemQueue.peek();\n const invisibleTop = invisibleItemQueue.peek();\n\n while (compareItems(invisibleItemQueue.peek(), visibleItemQueue.peek()) > 0) {\n hideItem(); // hide elements whose priority become smaller than the highest priority of the hidden one\n }\n\n // Run the show/hide step twice - the first step might not be correct if\n // it was triggered by a new item being added - new items are always visible by default.\n for (let i = 0; i < 2; i++) {\n // Add items until available width is filled - can result in overflow\n while (\n (occupiedSize() < availableSize && invisibleItemQueue.size() > 0) ||\n invisibleItemQueue.size() === 1 // attempt to show the last invisible item hoping it's size does not exceed overflow menu size\n ) {\n showItem();\n }\n\n // Remove items until there's no more overflow\n while (occupiedSize() > availableSize && visibleItemQueue.size() > options.minimumVisible) {\n const nextItemId = visibleItemQueue.peek();\n\n // Never hide pinned items - they should always remain visible\n if (nextItemId && overflowItems[nextItemId]?.pinned) {\n break;\n }\n\n hideItem();\n }\n }\n\n // only update when the state of visible/invisible items has changed\n return visibleItemQueue.peek() !== visibleTop || invisibleItemQueue.peek() !== invisibleTop;\n };\n\n const forceUpdate: OverflowManager['forceUpdate'] = () => {\n if (processOverflowItems() || forceDispatch) {\n forceDispatch = false;\n dispatchOverflowUpdate();\n }\n };\n\n const update: OverflowManager['update'] = debounce(forceUpdate);\n\n const setOptions: OverflowManager['setOptions'] = nextOptions => {\n if (options === nextOptions) {\n return;\n }\n\n const shouldTriggerUpdate =\n (nextOptions.overflowAxis && options.overflowAxis !== nextOptions.overflowAxis) ||\n (nextOptions.overflowDirection && options.overflowDirection !== nextOptions.overflowDirection) ||\n (nextOptions.padding && options.padding !== nextOptions.padding) ||\n (nextOptions.minimumVisible && options.minimumVisible !== nextOptions.minimumVisible) ||\n (nextOptions.hasHiddenItems && options.hasHiddenItems !== nextOptions.hasHiddenItems);\n\n Object.assign(options, nextOptions);\n\n if (shouldTriggerUpdate) {\n forceDispatch = true;\n update();\n }\n };\n\n const observe: OverflowManager['observe'] = (observedContainer, observeOptions) => {\n const { forceUpdate: shouldForceUpdate, ...userOptions } = observeOptions ?? {};\n Object.assign(options, userOptions);\n\n Object.values(overflowItems).forEach(item => {\n if (!visibleItemQueue.contains(item.id) && !invisibleItemQueue.contains(item.id)) {\n visibleItemQueue.enqueue(item.id);\n }\n });\n\n container = observedContainer;\n observing = true;\n disposeResizeObserver = observeResize(container, entries => {\n if (!entries[0] || !container) {\n return;\n }\n update();\n });\n\n if (shouldForceUpdate && getClientSize(observedContainer) > 0) {\n forceUpdate();\n }\n };\n\n const disconnect: OverflowManager['disconnect'] = () => {\n disposeResizeObserver();\n disposeResizeObserver = () => {\n /* noop */\n };\n\n // reset flags\n container = undefined;\n observing = false;\n forceDispatch = true;\n\n // clear all entries\n Object.keys(overflowItems).forEach(itemId => removeItem(itemId));\n Object.keys(overflowDividers).forEach(dividerId => removeDivider(dividerId));\n removeOverflowMenu();\n sizeCache.clear();\n\n // Reset the snapshot during teardown, but do not broadcast a final update.\n // Consumers unsubscribe as part of unmount, and a disconnect-time notification can race\n // those cleanups and dispatch into already-unmounting React listeners.\n snapshot = EMPTY_SNAPSHOT;\n };\n\n const addItem: OverflowManager['addItem'] = items => {\n if (overflowItems[items.id]) {\n return;\n }\n\n overflowItems[items.id] = items;\n\n // some options can affect priority which are only set on `observe`\n if (observing) {\n // Updates to elements might not change the queue tops\n // i.e. new element is enqueued but the top of the queue stays the same\n // force a dispatch on the next batched update\n forceDispatch = true;\n visibleItemQueue.enqueue(items.id);\n update();\n }\n\n if (items.groupId) {\n groupManager.addItem(items.id, items.groupId);\n items.element.setAttribute(DATA_OVERFLOW_GROUP, items.groupId);\n }\n };\n\n const addOverflowMenu: OverflowManager['addOverflowMenu'] = el => {\n if (overflowMenu === el) {\n return;\n }\n\n overflowMenu = el;\n\n if (observing) {\n forceDispatch = true;\n if (invisibleItemQueue.size() > 0) {\n forceUpdate();\n } else {\n update();\n }\n }\n };\n\n const addDivider: OverflowManager['addDivider'] = divider => {\n if (!divider.groupId || overflowDividers[divider.groupId]) {\n return;\n }\n\n divider.element.setAttribute(DATA_OVERFLOW_GROUP, divider.groupId);\n overflowDividers[divider.groupId] = divider;\n };\n\n const removeOverflowMenu: OverflowManager['removeOverflowMenu'] = () => {\n if (!overflowMenu) {\n return;\n }\n\n const hasInvisibleItems = invisibleItemQueue.size() > 0;\n overflowMenu = undefined;\n\n if (observing && hasInvisibleItems) {\n forceDispatch = true;\n update();\n }\n };\n\n const removeDivider: OverflowManager['removeDivider'] = groupId => {\n if (!overflowDividers[groupId]) {\n return;\n }\n const divider = overflowDividers[groupId];\n if (divider.groupId) {\n delete overflowDividers[groupId];\n divider.element.removeAttribute(DATA_OVERFLOW_GROUP);\n }\n };\n\n const removeItem: OverflowManager['removeItem'] = itemId => {\n if (!overflowItems[itemId]) {\n return;\n }\n\n if (observing) {\n // We might be removing an item in an overflow which would not affect the tops,\n // but we need to update anyway to update the overflow menu state\n forceDispatch = true;\n }\n\n const item = overflowItems[itemId];\n visibleItemQueue.remove(itemId);\n invisibleItemQueue.remove(itemId);\n\n if (item.groupId) {\n groupManager.removeItem(item.id, item.groupId);\n item.element.removeAttribute(DATA_OVERFLOW_GROUP);\n }\n\n sizeCache.delete(item.element);\n delete overflowItems[itemId];\n if (observing) {\n update();\n }\n };\n\n const subscribe: OverflowManager['subscribe'] = listener => {\n listeners.add(listener);\n\n return () => {\n listeners.delete(listener);\n };\n };\n\n return {\n addItem,\n disconnect,\n forceUpdate,\n observe,\n removeItem,\n update,\n addOverflowMenu,\n removeOverflowMenu,\n addDivider,\n removeDivider,\n setOptions,\n getSnapshot,\n subscribe,\n };\n}\n\nconst createGroupManager = () => {\n const groupVisibility: Record<string, OverflowGroupState> = {};\n const groups: Record<string, { visibleItemIds: Set<string>; invisibleItemIds: Set<string> }> = {};\n function updateGroupVisibility(groupId: string) {\n const group = groups[groupId];\n if (group.invisibleItemIds.size && group.visibleItemIds.size) {\n groupVisibility[groupId] = 'overflow';\n } else if (group.visibleItemIds.size === 0) {\n groupVisibility[groupId] = 'hidden';\n } else {\n groupVisibility[groupId] = 'visible';\n }\n }\n function isGroupVisible(groupId: string) {\n return groupVisibility[groupId] === 'visible' || groupVisibility[groupId] === 'overflow';\n }\n return {\n groupVisibility: () => groupVisibility,\n isSingleItemVisible(itemId: string, groupId: string) {\n return (\n isGroupVisible(groupId) &&\n groups[groupId].visibleItemIds.has(itemId) &&\n groups[groupId].visibleItemIds.size === 1\n );\n },\n addItem(itemId: string, groupId: string) {\n groups[groupId] ??= {\n visibleItemIds: new Set<string>(),\n invisibleItemIds: new Set<string>(),\n };\n\n groups[groupId].visibleItemIds.add(itemId);\n updateGroupVisibility(groupId);\n },\n removeItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.delete(itemId);\n groups[groupId].visibleItemIds.delete(itemId);\n updateGroupVisibility(groupId);\n },\n showItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.delete(itemId);\n groups[groupId].visibleItemIds.add(itemId);\n updateGroupVisibility(groupId);\n },\n hideItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.add(itemId);\n groups[groupId].visibleItemIds.delete(itemId);\n updateGroupVisibility(groupId);\n },\n };\n};\n"],"names":["DATA_OVERFLOWING","DATA_OVERFLOW_GROUP","EMPTY_SNAPSHOT","observeResize","debounce","createPriorityQueue","DEFAULT_OPTIONS","overflowAxis","overflowDirection","padding","minimumVisible","hasHiddenItems","onUpdateItemVisibility","onUpdateOverflow","createOverflowManager","initialOptions","sizeCache","Map","container","overflowMenu","observing","forceDispatch","options","overflowItems","overflowDividers","listeners","Set","disposeResizeObserver","snapshot","takeSnapshot","nextSnapshot","forEach","listener","getNextItem","queueToDequeue","queueToEnqueue","nextItem","dequeue","enqueue","groupManager","createGroupManager","compareItems","lt","rt","lte","rte","pinned","priority","positionStatusBit","element","compareDocumentPosition","getElementAxisSize","horizontal","vertical","el","has","set","get","getOffsetSize","bind","getClientSize","invisibleItemQueue","a","b","visibleItemQueue","occupiedSize","totalItemSize","id","totalDividerSize","Object","entries","groupVisibility","reduce","acc","state","overflowMenuSize","size","showItem","item","visible","groupId","isSingleItemVisible","removeAttribute","hideItem","setAttribute","dispatchOverflowUpdate","itemVisibility","visibleItems","invisibleItems","itemId","push","invisibleItemCount","length","getSnapshot","processOverflowItems","clear","availableSize","visibleTop","peek","invisibleTop","i","nextItemId","forceUpdate","update","setOptions","nextOptions","shouldTriggerUpdate","assign","observe","observedContainer","observeOptions","shouldForceUpdate","userOptions","values","contains","disconnect","undefined","keys","removeItem","dividerId","removeDivider","removeOverflowMenu","addItem","items","addOverflowMenu","addDivider","divider","hasInvisibleItems","remove","delete","subscribe","add","groups","updateGroupVisibility","group","invisibleItemIds","visibleItemIds","isGroupVisible"],"mappings":"AAAA,SAASA,gBAAgB,EAAEC,mBAAmB,EAAEC,cAAc,QAAQ,cAAW;AACjF,SAASC,aAAa,QAAQ,4BAAyB;AACvD,SAASC,QAAQ,QAAQ,gBAAa;AAEtC,SAASC,mBAAmB,QAAQ,qBAAkB;AAUtD,MAAMC,kBAA6C;IACjDC,cAAc;IACdC,mBAAmB;IACnBC,SAAS;IACTC,gBAAgB;IAChBC,gBAAgB;IAChBC,wBAAwB;IACtB,QAAQ,GACV;IACAC,kBAAkB;IAChB,QAAQ,GACV;AACF;AAEA;;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C,sBAAsBrD;QACxB;QACAH,UAASY,MAAc,EAAET,OAAe;YACtCoD,MAAM,CAACpD,QAAQ,CAACuD,gBAAgB,CAACN,MAAM,CAACxC;YACxC2C,MAAM,CAACpD,QAAQ,CAACwD,cAAc,CAACL,GAAG,CAAC1C;YACnC4C,sBAAsBrD;QACxB;QACAG,UAASM,MAAc,EAAET,OAAe;YACtCoD,MAAM,CAACpD,QAAQ,CAACuD,gBAAgB,CAACJ,GAAG,CAAC1C;YACrC2C,MAAM,CAACpD,QAAQ,CAACwD,cAAc,CAACP,MAAM,CAACxC;YACtC4C,sBAAsBrD;QACxB;IACF;AACF"}
|
package/lib-commonjs/consts.cjs
CHANGED
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
DATA_OVERFLOWING
|
|
12
|
+
get DATA_OVERFLOWING () {
|
|
13
13
|
return DATA_OVERFLOWING;
|
|
14
14
|
},
|
|
15
|
-
DATA_OVERFLOW_GROUP
|
|
15
|
+
get DATA_OVERFLOW_GROUP () {
|
|
16
16
|
return DATA_OVERFLOW_GROUP;
|
|
17
17
|
},
|
|
18
|
-
EMPTY_SNAPSHOT
|
|
18
|
+
get EMPTY_SNAPSHOT () {
|
|
19
19
|
return EMPTY_SNAPSHOT;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/consts.ts"],"sourcesContent":["import type { OverflowSnapshot } from './types';\n\nexport const DATA_OVERFLOWING = 'data-overflowing';\nexport const DATA_OVERFLOW_GROUP = 'data-overflow-group';\n\n/**\n * An empty, frozen overflow snapshot used as the default before anything has been measured.\n * @internal\n */\nexport const EMPTY_SNAPSHOT: OverflowSnapshot = Object.freeze({\n itemVisibility: {},\n groupVisibility: {},\n invisibleItemCount: 0,\n});\n"],"names":["DATA_OVERFLOWING","DATA_OVERFLOW_GROUP","EMPTY_SNAPSHOT","Object","freeze","itemVisibility","groupVisibility","invisibleItemCount"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/consts.ts"],"sourcesContent":["import type { OverflowSnapshot } from './types';\n\nexport const DATA_OVERFLOWING = 'data-overflowing';\nexport const DATA_OVERFLOW_GROUP = 'data-overflow-group';\n\n/**\n * An empty, frozen overflow snapshot used as the default before anything has been measured.\n * @internal\n */\nexport const EMPTY_SNAPSHOT: OverflowSnapshot = Object.freeze({\n itemVisibility: {},\n groupVisibility: {},\n invisibleItemCount: 0,\n});\n"],"names":["DATA_OVERFLOWING","DATA_OVERFLOW_GROUP","EMPTY_SNAPSHOT","Object","freeze","itemVisibility","groupVisibility","invisibleItemCount"],"mappings":";;;;;;;;;;;QAEaA;eAAAA;;QACAC;eAAAA;;QAMAC;eAAAA;;;AAPN,MAAMF,mBAAmB;AACzB,MAAMC,sBAAsB;AAM5B,MAAMC,iBAAmCC,OAAOC,MAAM,CAAC;IAC5DC,gBAAgB,CAAC;IACjBC,iBAAiB,CAAC;IAClBC,oBAAoB;AACtB"}
|
package/lib-commonjs/index.cjs
CHANGED
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
EMPTY_SNAPSHOT
|
|
12
|
+
get EMPTY_SNAPSHOT () {
|
|
13
13
|
return _consts.EMPTY_SNAPSHOT;
|
|
14
14
|
},
|
|
15
|
-
createOverflowManager
|
|
15
|
+
get createOverflowManager () {
|
|
16
16
|
return _overflowManager.createOverflowManager;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { createOverflowManager } from './overflowManager';\nexport { EMPTY_SNAPSHOT } from './consts';\nexport type {\n ObserveOptions,\n OverflowOptions,\n OnUpdateItemVisibility,\n OnUpdateItemVisibilityPayload,\n OnUpdateOverflow,\n OverflowAxis,\n OverflowDirection,\n OverflowEventPayload,\n OverflowGroupState,\n OverflowItemEntry,\n OverflowDividerEntry,\n OverflowManager,\n OverflowSnapshot,\n} from './types';\n"],"names":["EMPTY_SNAPSHOT","createOverflowManager"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { createOverflowManager } from './overflowManager';\nexport { EMPTY_SNAPSHOT } from './consts';\nexport type {\n ObserveOptions,\n OverflowOptions,\n OnUpdateItemVisibility,\n OnUpdateItemVisibilityPayload,\n OnUpdateOverflow,\n OverflowAxis,\n OverflowDirection,\n OverflowEventPayload,\n OverflowGroupState,\n OverflowItemEntry,\n OverflowDividerEntry,\n OverflowManager,\n OverflowSnapshot,\n} from './types';\n"],"names":["EMPTY_SNAPSHOT","createOverflowManager"],"mappings":";;;;;;;;;;;QACSA;eAAAA,sBAAc;;QADdC;eAAAA,sCAAqB;;;iCAAQ;wBACP"}
|
|
@@ -371,8 +371,7 @@ const createGroupManager = ()=>{
|
|
|
371
371
|
return isGroupVisible(groupId) && groups[groupId].visibleItemIds.has(itemId) && groups[groupId].visibleItemIds.size === 1;
|
|
372
372
|
},
|
|
373
373
|
addItem (itemId, groupId) {
|
|
374
|
-
var _groups, _groupId;
|
|
375
|
-
var _;
|
|
374
|
+
var _groups, _groupId, _;
|
|
376
375
|
(_ = (_groups = groups)[_groupId = groupId]) !== null && _ !== void 0 ? _ : _groups[_groupId] = {
|
|
377
376
|
visibleItemIds: new Set(),
|
|
378
377
|
invisibleItemIds: new Set()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/overflowManager.ts"],"sourcesContent":["import { DATA_OVERFLOWING, DATA_OVERFLOW_GROUP, EMPTY_SNAPSHOT } from './consts';\nimport { observeResize } from './createResizeObserver';\nimport { debounce } from './debounce';\nimport type { PriorityQueue } from './priorityQueue';\nimport { createPriorityQueue } from './priorityQueue';\nimport type {\n OverflowGroupState,\n OverflowItemEntry,\n OverflowManager,\n OverflowOptions,\n OverflowDividerEntry,\n OverflowSnapshot,\n} from './types';\n\nconst DEFAULT_OPTIONS: Required<OverflowOptions> = {\n overflowAxis: 'horizontal',\n overflowDirection: 'end',\n padding: 10,\n minimumVisible: 0,\n hasHiddenItems: false,\n onUpdateItemVisibility: () => {\n /* noop */\n },\n onUpdateOverflow: () => {\n /* noop */\n },\n};\n\n/**\n * Creates an overflow manager instance for a single container.\n *\n * @internal\n * @param initialOptions - Initial observe options. Missing values are filled with defaults.\n * @returns overflow manager instance\n */\nexport function createOverflowManager(initialOptions: Partial<OverflowOptions> = {}): OverflowManager {\n // calls to `offsetWidth or offsetHeight` can happen multiple times in an update\n // Use a cache to avoid causing too many recalcs and avoid scripting time to meausure sizes\n const sizeCache = new Map<HTMLElement, number>();\n let container: HTMLElement | undefined;\n let overflowMenu: HTMLElement | undefined;\n // Set as true when resize observer is observing\n let observing = false;\n // If true, next update will dispatch to onUpdateOverflow even if queue top states don't change\n // Initially true to force dispatch on first mount\n let forceDispatch = true;\n const options: Required<OverflowOptions> = { ...DEFAULT_OPTIONS, ...initialOptions };\n const overflowItems: Record<string, OverflowItemEntry> = {};\n const overflowDividers: Record<string, OverflowDividerEntry> = {};\n const listeners = new Set<() => void>();\n let disposeResizeObserver: () => void = () => {\n /* noop */\n };\n\n let snapshot: OverflowSnapshot = EMPTY_SNAPSHOT;\n const takeSnapshot = (nextSnapshot: OverflowSnapshot) => {\n snapshot = nextSnapshot;\n listeners.forEach(listener => listener());\n };\n\n const getNextItem = (queueToDequeue: PriorityQueue<string>, queueToEnqueue: PriorityQueue<string>) => {\n const nextItem = queueToDequeue.dequeue();\n queueToEnqueue.enqueue(nextItem);\n return overflowItems[nextItem];\n };\n\n const groupManager = createGroupManager();\n\n function compareItems(lt: string | null, rt: string | null): number {\n if (!lt || !rt) {\n return 0;\n }\n\n const lte = overflowItems[lt];\n const rte = overflowItems[rt];\n\n // TODO this should not happen but there have been reports of one of these items being undefined\n // Try to find a consistent repro for this\n if (!lte || !rte) {\n return lte ? 1 : -1;\n }\n\n // Pinned items have \"infinite\" priority - they should never be hidden\n if (lte.pinned !== rte.pinned) {\n return lte.pinned ? 1 : -1;\n }\n\n if (lte.priority !== rte.priority) {\n return lte.priority > rte.priority ? 1 : -1;\n }\n\n // Node.DOCUMENT_POSITION_FOLLOWING = 4, Node.DOCUMENT_POSITION_PRECEDING = 2\n const positionStatusBit = options.overflowDirection === 'end' ? 4 : 2;\n\n // eslint-disable-next-line no-bitwise\n return lte.element.compareDocumentPosition(rte.element) & positionStatusBit ? 1 : -1;\n }\n\n function getElementAxisSize(\n horizontal: 'clientWidth' | 'offsetWidth',\n vertical: 'clientHeight' | 'offsetHeight',\n el: HTMLElement,\n ): number {\n if (!sizeCache.has(el)) {\n sizeCache.set(el, options.overflowAxis === 'horizontal' ? el[horizontal] : el[vertical]);\n }\n\n return sizeCache.get(el)!;\n }\n\n const getOffsetSize = getElementAxisSize.bind(null, 'offsetWidth', 'offsetHeight');\n const getClientSize = getElementAxisSize.bind(null, 'clientWidth', 'clientHeight');\n\n const invisibleItemQueue = createPriorityQueue<string>((a, b) => -1 * compareItems(a, b));\n\n const visibleItemQueue = createPriorityQueue<string>(compareItems);\n\n function occupiedSize(): number {\n let totalItemSize = 0;\n for (const id of visibleItemQueue) {\n totalItemSize += getOffsetSize(overflowItems[id].element);\n }\n\n const totalDividerSize = Object.entries(groupManager.groupVisibility()).reduce(\n (acc, [id, state]) =>\n acc + (state !== 'hidden' && overflowDividers[id] ? getOffsetSize(overflowDividers[id].element) : 0),\n 0,\n );\n\n const overflowMenuSize =\n (invisibleItemQueue.size() > 0 || options.hasHiddenItems) && overflowMenu ? getOffsetSize(overflowMenu) : 0;\n\n return totalItemSize + totalDividerSize + overflowMenuSize;\n }\n\n const showItem = () => {\n const item = getNextItem(invisibleItemQueue, visibleItemQueue);\n options.onUpdateItemVisibility({ item, visible: true });\n\n if (item.groupId) {\n groupManager.showItem(item.id, item.groupId);\n\n if (groupManager.isSingleItemVisible(item.id, item.groupId)) {\n overflowDividers[item.groupId]?.element.removeAttribute(DATA_OVERFLOWING);\n }\n }\n };\n\n const hideItem = () => {\n const item = getNextItem(visibleItemQueue, invisibleItemQueue);\n options.onUpdateItemVisibility({ item, visible: false });\n\n if (item.groupId) {\n if (groupManager.isSingleItemVisible(item.id, item.groupId)) {\n overflowDividers[item.groupId]?.element.setAttribute(DATA_OVERFLOWING, '');\n }\n\n groupManager.hideItem(item.id, item.groupId);\n }\n };\n\n const dispatchOverflowUpdate = () => {\n const groupVisibility = groupManager.groupVisibility();\n\n // Build the legacy ordered-entry arrays and the snapshot's id -> visible map in a single pass\n // over each queue.\n const itemVisibility: Record<string, boolean> = {};\n const visibleItems: OverflowItemEntry[] = [];\n const invisibleItems: OverflowItemEntry[] = [];\n\n for (const itemId of visibleItemQueue) {\n itemVisibility[itemId] = true;\n visibleItems.push(overflowItems[itemId]);\n }\n for (const itemId of invisibleItemQueue) {\n itemVisibility[itemId] = false;\n invisibleItems.push(overflowItems[itemId]);\n }\n\n // Set the snapshot first so `getSnapshot()` is current for both subscribers and any\n // `onUpdateOverflow` consumer that reads it.\n takeSnapshot({\n itemVisibility,\n groupVisibility,\n invisibleItemCount: invisibleItems.length,\n });\n\n // Legacy event payload: ordered item entries for `onUpdateOverflow` consumers.\n options.onUpdateOverflow({ visibleItems, invisibleItems, groupVisibility });\n };\n\n const getSnapshot: OverflowManager['getSnapshot'] = () => snapshot;\n\n const processOverflowItems = (): boolean => {\n if (!container) {\n return false;\n }\n sizeCache.clear();\n\n const availableSize = getClientSize(container) - options.padding;\n\n // Snapshot of the visible/invisible state to compare for updates\n const visibleTop = visibleItemQueue.peek();\n const invisibleTop = invisibleItemQueue.peek();\n\n while (compareItems(invisibleItemQueue.peek(), visibleItemQueue.peek()) > 0) {\n hideItem(); // hide elements whose priority become smaller than the highest priority of the hidden one\n }\n\n // Run the show/hide step twice - the first step might not be correct if\n // it was triggered by a new item being added - new items are always visible by default.\n for (let i = 0; i < 2; i++) {\n // Add items until available width is filled - can result in overflow\n while (\n (occupiedSize() < availableSize && invisibleItemQueue.size() > 0) ||\n invisibleItemQueue.size() === 1 // attempt to show the last invisible item hoping it's size does not exceed overflow menu size\n ) {\n showItem();\n }\n\n // Remove items until there's no more overflow\n while (occupiedSize() > availableSize && visibleItemQueue.size() > options.minimumVisible) {\n const nextItemId = visibleItemQueue.peek();\n\n // Never hide pinned items - they should always remain visible\n if (nextItemId && overflowItems[nextItemId]?.pinned) {\n break;\n }\n\n hideItem();\n }\n }\n\n // only update when the state of visible/invisible items has changed\n return visibleItemQueue.peek() !== visibleTop || invisibleItemQueue.peek() !== invisibleTop;\n };\n\n const forceUpdate: OverflowManager['forceUpdate'] = () => {\n if (processOverflowItems() || forceDispatch) {\n forceDispatch = false;\n dispatchOverflowUpdate();\n }\n };\n\n const update: OverflowManager['update'] = debounce(forceUpdate);\n\n const setOptions: OverflowManager['setOptions'] = nextOptions => {\n if (options === nextOptions) {\n return;\n }\n\n const shouldTriggerUpdate =\n (nextOptions.overflowAxis && options.overflowAxis !== nextOptions.overflowAxis) ||\n (nextOptions.overflowDirection && options.overflowDirection !== nextOptions.overflowDirection) ||\n (nextOptions.padding && options.padding !== nextOptions.padding) ||\n (nextOptions.minimumVisible && options.minimumVisible !== nextOptions.minimumVisible) ||\n (nextOptions.hasHiddenItems && options.hasHiddenItems !== nextOptions.hasHiddenItems);\n\n Object.assign(options, nextOptions);\n\n if (shouldTriggerUpdate) {\n forceDispatch = true;\n update();\n }\n };\n\n const observe: OverflowManager['observe'] = (observedContainer, observeOptions) => {\n const { forceUpdate: shouldForceUpdate, ...userOptions } = observeOptions ?? {};\n Object.assign(options, userOptions);\n\n Object.values(overflowItems).forEach(item => {\n if (!visibleItemQueue.contains(item.id) && !invisibleItemQueue.contains(item.id)) {\n visibleItemQueue.enqueue(item.id);\n }\n });\n\n container = observedContainer;\n observing = true;\n disposeResizeObserver = observeResize(container, entries => {\n if (!entries[0] || !container) {\n return;\n }\n update();\n });\n\n if (shouldForceUpdate && getClientSize(observedContainer) > 0) {\n forceUpdate();\n }\n };\n\n const disconnect: OverflowManager['disconnect'] = () => {\n disposeResizeObserver();\n disposeResizeObserver = () => {\n /* noop */\n };\n\n // reset flags\n container = undefined;\n observing = false;\n forceDispatch = true;\n\n // clear all entries\n Object.keys(overflowItems).forEach(itemId => removeItem(itemId));\n Object.keys(overflowDividers).forEach(dividerId => removeDivider(dividerId));\n removeOverflowMenu();\n sizeCache.clear();\n\n // Reset the snapshot during teardown, but do not broadcast a final update.\n // Consumers unsubscribe as part of unmount, and a disconnect-time notification can race\n // those cleanups and dispatch into already-unmounting React listeners.\n snapshot = EMPTY_SNAPSHOT;\n };\n\n const addItem: OverflowManager['addItem'] = items => {\n if (overflowItems[items.id]) {\n return;\n }\n\n overflowItems[items.id] = items;\n\n // some options can affect priority which are only set on `observe`\n if (observing) {\n // Updates to elements might not change the queue tops\n // i.e. new element is enqueued but the top of the queue stays the same\n // force a dispatch on the next batched update\n forceDispatch = true;\n visibleItemQueue.enqueue(items.id);\n update();\n }\n\n if (items.groupId) {\n groupManager.addItem(items.id, items.groupId);\n items.element.setAttribute(DATA_OVERFLOW_GROUP, items.groupId);\n }\n };\n\n const addOverflowMenu: OverflowManager['addOverflowMenu'] = el => {\n if (overflowMenu === el) {\n return;\n }\n\n overflowMenu = el;\n\n if (observing) {\n forceDispatch = true;\n if (invisibleItemQueue.size() > 0) {\n forceUpdate();\n } else {\n update();\n }\n }\n };\n\n const addDivider: OverflowManager['addDivider'] = divider => {\n if (!divider.groupId || overflowDividers[divider.groupId]) {\n return;\n }\n\n divider.element.setAttribute(DATA_OVERFLOW_GROUP, divider.groupId);\n overflowDividers[divider.groupId] = divider;\n };\n\n const removeOverflowMenu: OverflowManager['removeOverflowMenu'] = () => {\n if (!overflowMenu) {\n return;\n }\n\n const hasInvisibleItems = invisibleItemQueue.size() > 0;\n overflowMenu = undefined;\n\n if (observing && hasInvisibleItems) {\n forceDispatch = true;\n update();\n }\n };\n\n const removeDivider: OverflowManager['removeDivider'] = groupId => {\n if (!overflowDividers[groupId]) {\n return;\n }\n const divider = overflowDividers[groupId];\n if (divider.groupId) {\n delete overflowDividers[groupId];\n divider.element.removeAttribute(DATA_OVERFLOW_GROUP);\n }\n };\n\n const removeItem: OverflowManager['removeItem'] = itemId => {\n if (!overflowItems[itemId]) {\n return;\n }\n\n if (observing) {\n // We might be removing an item in an overflow which would not affect the tops,\n // but we need to update anyway to update the overflow menu state\n forceDispatch = true;\n }\n\n const item = overflowItems[itemId];\n visibleItemQueue.remove(itemId);\n invisibleItemQueue.remove(itemId);\n\n if (item.groupId) {\n groupManager.removeItem(item.id, item.groupId);\n item.element.removeAttribute(DATA_OVERFLOW_GROUP);\n }\n\n sizeCache.delete(item.element);\n delete overflowItems[itemId];\n if (observing) {\n update();\n }\n };\n\n const subscribe: OverflowManager['subscribe'] = listener => {\n listeners.add(listener);\n\n return () => {\n listeners.delete(listener);\n };\n };\n\n return {\n addItem,\n disconnect,\n forceUpdate,\n observe,\n removeItem,\n update,\n addOverflowMenu,\n removeOverflowMenu,\n addDivider,\n removeDivider,\n setOptions,\n getSnapshot,\n subscribe,\n };\n}\n\nconst createGroupManager = () => {\n const groupVisibility: Record<string, OverflowGroupState> = {};\n const groups: Record<string, { visibleItemIds: Set<string>; invisibleItemIds: Set<string> }> = {};\n function updateGroupVisibility(groupId: string) {\n const group = groups[groupId];\n if (group.invisibleItemIds.size && group.visibleItemIds.size) {\n groupVisibility[groupId] = 'overflow';\n } else if (group.visibleItemIds.size === 0) {\n groupVisibility[groupId] = 'hidden';\n } else {\n groupVisibility[groupId] = 'visible';\n }\n }\n function isGroupVisible(groupId: string) {\n return groupVisibility[groupId] === 'visible' || groupVisibility[groupId] === 'overflow';\n }\n return {\n groupVisibility: () => groupVisibility,\n isSingleItemVisible(itemId: string, groupId: string) {\n return (\n isGroupVisible(groupId) &&\n groups[groupId].visibleItemIds.has(itemId) &&\n groups[groupId].visibleItemIds.size === 1\n );\n },\n addItem(itemId: string, groupId: string) {\n groups[groupId] ??= {\n visibleItemIds: new Set<string>(),\n invisibleItemIds: new Set<string>(),\n };\n\n groups[groupId].visibleItemIds.add(itemId);\n updateGroupVisibility(groupId);\n },\n removeItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.delete(itemId);\n groups[groupId].visibleItemIds.delete(itemId);\n updateGroupVisibility(groupId);\n },\n showItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.delete(itemId);\n groups[groupId].visibleItemIds.add(itemId);\n updateGroupVisibility(groupId);\n },\n hideItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.add(itemId);\n groups[groupId].visibleItemIds.delete(itemId);\n updateGroupVisibility(groupId);\n },\n };\n};\n"],"names":["createOverflowManager","DEFAULT_OPTIONS","overflowAxis","overflowDirection","padding","minimumVisible","hasHiddenItems","onUpdateItemVisibility","onUpdateOverflow","initialOptions","sizeCache","Map","container","overflowMenu","observing","forceDispatch","options","overflowItems","overflowDividers","listeners","Set","disposeResizeObserver","snapshot","EMPTY_SNAPSHOT","takeSnapshot","nextSnapshot","forEach","listener","getNextItem","queueToDequeue","queueToEnqueue","nextItem","dequeue","enqueue","groupManager","createGroupManager","compareItems","lt","rt","lte","rte","pinned","priority","positionStatusBit","element","compareDocumentPosition","getElementAxisSize","horizontal","vertical","el","has","set","get","getOffsetSize","bind","getClientSize","invisibleItemQueue","createPriorityQueue","a","b","visibleItemQueue","occupiedSize","totalItemSize","id","totalDividerSize","Object","entries","groupVisibility","reduce","acc","state","overflowMenuSize","size","showItem","item","visible","groupId","isSingleItemVisible","removeAttribute","DATA_OVERFLOWING","hideItem","setAttribute","dispatchOverflowUpdate","itemVisibility","visibleItems","invisibleItems","itemId","push","invisibleItemCount","length","getSnapshot","processOverflowItems","clear","availableSize","visibleTop","peek","invisibleTop","i","nextItemId","forceUpdate","update","debounce","setOptions","nextOptions","shouldTriggerUpdate","assign","observe","observedContainer","observeOptions","shouldForceUpdate","userOptions","values","contains","observeResize","disconnect","undefined","keys","removeItem","dividerId","removeDivider","removeOverflowMenu","addItem","items","DATA_OVERFLOW_GROUP","addOverflowMenu","addDivider","divider","hasInvisibleItems","remove","delete","subscribe","add","groups","updateGroupVisibility","group","invisibleItemIds","visibleItemIds","isGroupVisible"],"mappings":";;;;+BAmCgBA;;;eAAAA;;;wBAnCsD;sCACxC;0BACL;+BAEW;AAUpC,MAAMC,kBAA6C;IACjDC,cAAc;IACdC,mBAAmB;IACnBC,SAAS;IACTC,gBAAgB;IAChBC,gBAAgB;IAChBC,wBAAwB;IACtB,QAAQ,GACV;IACAC,kBAAkB;IAChB,QAAQ,GACV;AACF;AASO,SAASR,sBAAsBS,iBAA2C,CAAC,CAAC;IACjF,gFAAgF;IAChF,2FAA2F;IAC3F,MAAMC,YAAY,IAAIC;IACtB,IAAIC;IACJ,IAAIC;IACJ,gDAAgD;IAChD,IAAIC,YAAY;IAChB,+FAA+F;IAC/F,kDAAkD;IAClD,IAAIC,gBAAgB;IACpB,MAAMC,UAAqC;QAAE,GAAGf,eAAe;QAAE,GAAGQ,cAAc;IAAC;IACnF,MAAMQ,gBAAmD,CAAC;IAC1D,MAAMC,mBAAyD,CAAC;IAChE,MAAMC,YAAY,IAAIC;IACtB,IAAIC,wBAAoC;IACtC,QAAQ,GACV;IAEA,IAAIC,WAA6BC,sBAAc;IAC/C,MAAMC,eAAe,CAACC;QACpBH,WAAWG;QACXN,UAAUO,OAAO,CAACC,CAAAA,WAAY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":3,"sources":["../src/overflowManager.ts"],"sourcesContent":["import { DATA_OVERFLOWING, DATA_OVERFLOW_GROUP, EMPTY_SNAPSHOT } from './consts';\nimport { observeResize } from './createResizeObserver';\nimport { debounce } from './debounce';\nimport type { PriorityQueue } from './priorityQueue';\nimport { createPriorityQueue } from './priorityQueue';\nimport type {\n OverflowGroupState,\n OverflowItemEntry,\n OverflowManager,\n OverflowOptions,\n OverflowDividerEntry,\n OverflowSnapshot,\n} from './types';\n\nconst DEFAULT_OPTIONS: Required<OverflowOptions> = {\n overflowAxis: 'horizontal',\n overflowDirection: 'end',\n padding: 10,\n minimumVisible: 0,\n hasHiddenItems: false,\n onUpdateItemVisibility: () => {\n /* noop */\n },\n onUpdateOverflow: () => {\n /* noop */\n },\n};\n\n/**\n * Creates an overflow manager instance for a single container.\n *\n * @internal\n * @param initialOptions - Initial observe options. Missing values are filled with defaults.\n * @returns overflow manager instance\n */\nexport function createOverflowManager(initialOptions: Partial<OverflowOptions> = {}): OverflowManager {\n // calls to `offsetWidth or offsetHeight` can happen multiple times in an update\n // Use a cache to avoid causing too many recalcs and avoid scripting time to meausure sizes\n const sizeCache = new Map<HTMLElement, number>();\n let container: HTMLElement | undefined;\n let overflowMenu: HTMLElement | undefined;\n // Set as true when resize observer is observing\n let observing = false;\n // If true, next update will dispatch to onUpdateOverflow even if queue top states don't change\n // Initially true to force dispatch on first mount\n let forceDispatch = true;\n const options: Required<OverflowOptions> = { ...DEFAULT_OPTIONS, ...initialOptions };\n const overflowItems: Record<string, OverflowItemEntry> = {};\n const overflowDividers: Record<string, OverflowDividerEntry> = {};\n const listeners = new Set<() => void>();\n let disposeResizeObserver: () => void = () => {\n /* noop */\n };\n\n let snapshot: OverflowSnapshot = EMPTY_SNAPSHOT;\n const takeSnapshot = (nextSnapshot: OverflowSnapshot) => {\n snapshot = nextSnapshot;\n listeners.forEach(listener => listener());\n };\n\n const getNextItem = (queueToDequeue: PriorityQueue<string>, queueToEnqueue: PriorityQueue<string>) => {\n const nextItem = queueToDequeue.dequeue();\n queueToEnqueue.enqueue(nextItem);\n return overflowItems[nextItem];\n };\n\n const groupManager = createGroupManager();\n\n function compareItems(lt: string | null, rt: string | null): number {\n if (!lt || !rt) {\n return 0;\n }\n\n const lte = overflowItems[lt];\n const rte = overflowItems[rt];\n\n // TODO this should not happen but there have been reports of one of these items being undefined\n // Try to find a consistent repro for this\n if (!lte || !rte) {\n return lte ? 1 : -1;\n }\n\n // Pinned items have \"infinite\" priority - they should never be hidden\n if (lte.pinned !== rte.pinned) {\n return lte.pinned ? 1 : -1;\n }\n\n if (lte.priority !== rte.priority) {\n return lte.priority > rte.priority ? 1 : -1;\n }\n\n // Node.DOCUMENT_POSITION_FOLLOWING = 4, Node.DOCUMENT_POSITION_PRECEDING = 2\n const positionStatusBit = options.overflowDirection === 'end' ? 4 : 2;\n\n // eslint-disable-next-line no-bitwise\n return lte.element.compareDocumentPosition(rte.element) & positionStatusBit ? 1 : -1;\n }\n\n function getElementAxisSize(\n horizontal: 'clientWidth' | 'offsetWidth',\n vertical: 'clientHeight' | 'offsetHeight',\n el: HTMLElement,\n ): number {\n if (!sizeCache.has(el)) {\n sizeCache.set(el, options.overflowAxis === 'horizontal' ? el[horizontal] : el[vertical]);\n }\n\n return sizeCache.get(el)!;\n }\n\n const getOffsetSize = getElementAxisSize.bind(null, 'offsetWidth', 'offsetHeight');\n const getClientSize = getElementAxisSize.bind(null, 'clientWidth', 'clientHeight');\n\n const invisibleItemQueue = createPriorityQueue<string>((a, b) => -1 * compareItems(a, b));\n\n const visibleItemQueue = createPriorityQueue<string>(compareItems);\n\n function occupiedSize(): number {\n let totalItemSize = 0;\n for (const id of visibleItemQueue) {\n totalItemSize += getOffsetSize(overflowItems[id].element);\n }\n\n const totalDividerSize = Object.entries(groupManager.groupVisibility()).reduce(\n (acc, [id, state]) =>\n acc + (state !== 'hidden' && overflowDividers[id] ? getOffsetSize(overflowDividers[id].element) : 0),\n 0,\n );\n\n const overflowMenuSize =\n (invisibleItemQueue.size() > 0 || options.hasHiddenItems) && overflowMenu ? getOffsetSize(overflowMenu) : 0;\n\n return totalItemSize + totalDividerSize + overflowMenuSize;\n }\n\n const showItem = () => {\n const item = getNextItem(invisibleItemQueue, visibleItemQueue);\n options.onUpdateItemVisibility({ item, visible: true });\n\n if (item.groupId) {\n groupManager.showItem(item.id, item.groupId);\n\n if (groupManager.isSingleItemVisible(item.id, item.groupId)) {\n overflowDividers[item.groupId]?.element.removeAttribute(DATA_OVERFLOWING);\n }\n }\n };\n\n const hideItem = () => {\n const item = getNextItem(visibleItemQueue, invisibleItemQueue);\n options.onUpdateItemVisibility({ item, visible: false });\n\n if (item.groupId) {\n if (groupManager.isSingleItemVisible(item.id, item.groupId)) {\n overflowDividers[item.groupId]?.element.setAttribute(DATA_OVERFLOWING, '');\n }\n\n groupManager.hideItem(item.id, item.groupId);\n }\n };\n\n const dispatchOverflowUpdate = () => {\n const groupVisibility = groupManager.groupVisibility();\n\n // Build the legacy ordered-entry arrays and the snapshot's id -> visible map in a single pass\n // over each queue.\n const itemVisibility: Record<string, boolean> = {};\n const visibleItems: OverflowItemEntry[] = [];\n const invisibleItems: OverflowItemEntry[] = [];\n\n for (const itemId of visibleItemQueue) {\n itemVisibility[itemId] = true;\n visibleItems.push(overflowItems[itemId]);\n }\n for (const itemId of invisibleItemQueue) {\n itemVisibility[itemId] = false;\n invisibleItems.push(overflowItems[itemId]);\n }\n\n // Set the snapshot first so `getSnapshot()` is current for both subscribers and any\n // `onUpdateOverflow` consumer that reads it.\n takeSnapshot({\n itemVisibility,\n groupVisibility,\n invisibleItemCount: invisibleItems.length,\n });\n\n // Legacy event payload: ordered item entries for `onUpdateOverflow` consumers.\n options.onUpdateOverflow({ visibleItems, invisibleItems, groupVisibility });\n };\n\n const getSnapshot: OverflowManager['getSnapshot'] = () => snapshot;\n\n const processOverflowItems = (): boolean => {\n if (!container) {\n return false;\n }\n sizeCache.clear();\n\n const availableSize = getClientSize(container) - options.padding;\n\n // Snapshot of the visible/invisible state to compare for updates\n const visibleTop = visibleItemQueue.peek();\n const invisibleTop = invisibleItemQueue.peek();\n\n while (compareItems(invisibleItemQueue.peek(), visibleItemQueue.peek()) > 0) {\n hideItem(); // hide elements whose priority become smaller than the highest priority of the hidden one\n }\n\n // Run the show/hide step twice - the first step might not be correct if\n // it was triggered by a new item being added - new items are always visible by default.\n for (let i = 0; i < 2; i++) {\n // Add items until available width is filled - can result in overflow\n while (\n (occupiedSize() < availableSize && invisibleItemQueue.size() > 0) ||\n invisibleItemQueue.size() === 1 // attempt to show the last invisible item hoping it's size does not exceed overflow menu size\n ) {\n showItem();\n }\n\n // Remove items until there's no more overflow\n while (occupiedSize() > availableSize && visibleItemQueue.size() > options.minimumVisible) {\n const nextItemId = visibleItemQueue.peek();\n\n // Never hide pinned items - they should always remain visible\n if (nextItemId && overflowItems[nextItemId]?.pinned) {\n break;\n }\n\n hideItem();\n }\n }\n\n // only update when the state of visible/invisible items has changed\n return visibleItemQueue.peek() !== visibleTop || invisibleItemQueue.peek() !== invisibleTop;\n };\n\n const forceUpdate: OverflowManager['forceUpdate'] = () => {\n if (processOverflowItems() || forceDispatch) {\n forceDispatch = false;\n dispatchOverflowUpdate();\n }\n };\n\n const update: OverflowManager['update'] = debounce(forceUpdate);\n\n const setOptions: OverflowManager['setOptions'] = nextOptions => {\n if (options === nextOptions) {\n return;\n }\n\n const shouldTriggerUpdate =\n (nextOptions.overflowAxis && options.overflowAxis !== nextOptions.overflowAxis) ||\n (nextOptions.overflowDirection && options.overflowDirection !== nextOptions.overflowDirection) ||\n (nextOptions.padding && options.padding !== nextOptions.padding) ||\n (nextOptions.minimumVisible && options.minimumVisible !== nextOptions.minimumVisible) ||\n (nextOptions.hasHiddenItems && options.hasHiddenItems !== nextOptions.hasHiddenItems);\n\n Object.assign(options, nextOptions);\n\n if (shouldTriggerUpdate) {\n forceDispatch = true;\n update();\n }\n };\n\n const observe: OverflowManager['observe'] = (observedContainer, observeOptions) => {\n const { forceUpdate: shouldForceUpdate, ...userOptions } = observeOptions ?? {};\n Object.assign(options, userOptions);\n\n Object.values(overflowItems).forEach(item => {\n if (!visibleItemQueue.contains(item.id) && !invisibleItemQueue.contains(item.id)) {\n visibleItemQueue.enqueue(item.id);\n }\n });\n\n container = observedContainer;\n observing = true;\n disposeResizeObserver = observeResize(container, entries => {\n if (!entries[0] || !container) {\n return;\n }\n update();\n });\n\n if (shouldForceUpdate && getClientSize(observedContainer) > 0) {\n forceUpdate();\n }\n };\n\n const disconnect: OverflowManager['disconnect'] = () => {\n disposeResizeObserver();\n disposeResizeObserver = () => {\n /* noop */\n };\n\n // reset flags\n container = undefined;\n observing = false;\n forceDispatch = true;\n\n // clear all entries\n Object.keys(overflowItems).forEach(itemId => removeItem(itemId));\n Object.keys(overflowDividers).forEach(dividerId => removeDivider(dividerId));\n removeOverflowMenu();\n sizeCache.clear();\n\n // Reset the snapshot during teardown, but do not broadcast a final update.\n // Consumers unsubscribe as part of unmount, and a disconnect-time notification can race\n // those cleanups and dispatch into already-unmounting React listeners.\n snapshot = EMPTY_SNAPSHOT;\n };\n\n const addItem: OverflowManager['addItem'] = items => {\n if (overflowItems[items.id]) {\n return;\n }\n\n overflowItems[items.id] = items;\n\n // some options can affect priority which are only set on `observe`\n if (observing) {\n // Updates to elements might not change the queue tops\n // i.e. new element is enqueued but the top of the queue stays the same\n // force a dispatch on the next batched update\n forceDispatch = true;\n visibleItemQueue.enqueue(items.id);\n update();\n }\n\n if (items.groupId) {\n groupManager.addItem(items.id, items.groupId);\n items.element.setAttribute(DATA_OVERFLOW_GROUP, items.groupId);\n }\n };\n\n const addOverflowMenu: OverflowManager['addOverflowMenu'] = el => {\n if (overflowMenu === el) {\n return;\n }\n\n overflowMenu = el;\n\n if (observing) {\n forceDispatch = true;\n if (invisibleItemQueue.size() > 0) {\n forceUpdate();\n } else {\n update();\n }\n }\n };\n\n const addDivider: OverflowManager['addDivider'] = divider => {\n if (!divider.groupId || overflowDividers[divider.groupId]) {\n return;\n }\n\n divider.element.setAttribute(DATA_OVERFLOW_GROUP, divider.groupId);\n overflowDividers[divider.groupId] = divider;\n };\n\n const removeOverflowMenu: OverflowManager['removeOverflowMenu'] = () => {\n if (!overflowMenu) {\n return;\n }\n\n const hasInvisibleItems = invisibleItemQueue.size() > 0;\n overflowMenu = undefined;\n\n if (observing && hasInvisibleItems) {\n forceDispatch = true;\n update();\n }\n };\n\n const removeDivider: OverflowManager['removeDivider'] = groupId => {\n if (!overflowDividers[groupId]) {\n return;\n }\n const divider = overflowDividers[groupId];\n if (divider.groupId) {\n delete overflowDividers[groupId];\n divider.element.removeAttribute(DATA_OVERFLOW_GROUP);\n }\n };\n\n const removeItem: OverflowManager['removeItem'] = itemId => {\n if (!overflowItems[itemId]) {\n return;\n }\n\n if (observing) {\n // We might be removing an item in an overflow which would not affect the tops,\n // but we need to update anyway to update the overflow menu state\n forceDispatch = true;\n }\n\n const item = overflowItems[itemId];\n visibleItemQueue.remove(itemId);\n invisibleItemQueue.remove(itemId);\n\n if (item.groupId) {\n groupManager.removeItem(item.id, item.groupId);\n item.element.removeAttribute(DATA_OVERFLOW_GROUP);\n }\n\n sizeCache.delete(item.element);\n delete overflowItems[itemId];\n if (observing) {\n update();\n }\n };\n\n const subscribe: OverflowManager['subscribe'] = listener => {\n listeners.add(listener);\n\n return () => {\n listeners.delete(listener);\n };\n };\n\n return {\n addItem,\n disconnect,\n forceUpdate,\n observe,\n removeItem,\n update,\n addOverflowMenu,\n removeOverflowMenu,\n addDivider,\n removeDivider,\n setOptions,\n getSnapshot,\n subscribe,\n };\n}\n\nconst createGroupManager = () => {\n const groupVisibility: Record<string, OverflowGroupState> = {};\n const groups: Record<string, { visibleItemIds: Set<string>; invisibleItemIds: Set<string> }> = {};\n function updateGroupVisibility(groupId: string) {\n const group = groups[groupId];\n if (group.invisibleItemIds.size && group.visibleItemIds.size) {\n groupVisibility[groupId] = 'overflow';\n } else if (group.visibleItemIds.size === 0) {\n groupVisibility[groupId] = 'hidden';\n } else {\n groupVisibility[groupId] = 'visible';\n }\n }\n function isGroupVisible(groupId: string) {\n return groupVisibility[groupId] === 'visible' || groupVisibility[groupId] === 'overflow';\n }\n return {\n groupVisibility: () => groupVisibility,\n isSingleItemVisible(itemId: string, groupId: string) {\n return (\n isGroupVisible(groupId) &&\n groups[groupId].visibleItemIds.has(itemId) &&\n groups[groupId].visibleItemIds.size === 1\n );\n },\n addItem(itemId: string, groupId: string) {\n groups[groupId] ??= {\n visibleItemIds: new Set<string>(),\n invisibleItemIds: new Set<string>(),\n };\n\n groups[groupId].visibleItemIds.add(itemId);\n updateGroupVisibility(groupId);\n },\n removeItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.delete(itemId);\n groups[groupId].visibleItemIds.delete(itemId);\n updateGroupVisibility(groupId);\n },\n showItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.delete(itemId);\n groups[groupId].visibleItemIds.add(itemId);\n updateGroupVisibility(groupId);\n },\n hideItem(itemId: string, groupId: string) {\n groups[groupId].invisibleItemIds.add(itemId);\n groups[groupId].visibleItemIds.delete(itemId);\n updateGroupVisibility(groupId);\n },\n };\n};\n"],"names":["createOverflowManager","DEFAULT_OPTIONS","overflowAxis","overflowDirection","padding","minimumVisible","hasHiddenItems","onUpdateItemVisibility","onUpdateOverflow","initialOptions","sizeCache","Map","container","overflowMenu","observing","forceDispatch","options","overflowItems","overflowDividers","listeners","Set","disposeResizeObserver","snapshot","EMPTY_SNAPSHOT","takeSnapshot","nextSnapshot","forEach","listener","getNextItem","queueToDequeue","queueToEnqueue","nextItem","dequeue","enqueue","groupManager","createGroupManager","compareItems","lt","rt","lte","rte","pinned","priority","positionStatusBit","element","compareDocumentPosition","getElementAxisSize","horizontal","vertical","el","has","set","get","getOffsetSize","bind","getClientSize","invisibleItemQueue","createPriorityQueue","a","b","visibleItemQueue","occupiedSize","totalItemSize","id","totalDividerSize","Object","entries","groupVisibility","reduce","acc","state","overflowMenuSize","size","showItem","item","visible","groupId","isSingleItemVisible","removeAttribute","DATA_OVERFLOWING","hideItem","setAttribute","dispatchOverflowUpdate","itemVisibility","visibleItems","invisibleItems","itemId","push","invisibleItemCount","length","getSnapshot","processOverflowItems","clear","availableSize","visibleTop","peek","invisibleTop","i","nextItemId","forceUpdate","update","debounce","setOptions","nextOptions","shouldTriggerUpdate","assign","observe","observedContainer","observeOptions","shouldForceUpdate","userOptions","values","contains","observeResize","disconnect","undefined","keys","removeItem","dividerId","removeDivider","removeOverflowMenu","addItem","items","DATA_OVERFLOW_GROUP","addOverflowMenu","addDivider","divider","hasInvisibleItems","remove","delete","subscribe","add","groups","updateGroupVisibility","group","invisibleItemIds","visibleItemIds","isGroupVisible"],"mappings":";;;;+BAmCgBA;;;eAAAA;;;wBAnCsD;sCACxC;0BACL;+BAEW;AAUpC,MAAMC,kBAA6C;IACjDC,cAAc;IACdC,mBAAmB;IACnBC,SAAS;IACTC,gBAAgB;IAChBC,gBAAgB;IAChBC,wBAAwB;IACtB,QAAQ,GACV;IACAC,kBAAkB;IAChB,QAAQ,GACV;AACF;AASO,SAASR,sBAAsBS,iBAA2C,CAAC,CAAC;IACjF,gFAAgF;IAChF,2FAA2F;IAC3F,MAAMC,YAAY,IAAIC;IACtB,IAAIC;IACJ,IAAIC;IACJ,gDAAgD;IAChD,IAAIC,YAAY;IAChB,+FAA+F;IAC/F,kDAAkD;IAClD,IAAIC,gBAAgB;IACpB,MAAMC,UAAqC;QAAE,GAAGf,eAAe;QAAE,GAAGQ,cAAc;IAAC;IACnF,MAAMQ,gBAAmD,CAAC;IAC1D,MAAMC,mBAAyD,CAAC;IAChE,MAAMC,YAAY,IAAIC;IACtB,IAAIC,wBAAoC;IACtC,QAAQ,GACV;IAEA,IAAIC,WAA6BC,sBAAc;IAC/C,MAAMC,eAAe,CAACC;QACpBH,WAAWG;QACXN,UAAUO,OAAO,CAACC,CAAAA,WAAYA;IAChC;IAEA,MAAMC,cAAc,CAACC,gBAAuCC;QAC1D,MAAMC,WAAW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
{
|
|
2
2
|
"name": "@fluentui/priority-overflow",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
|
|
4
4
|
"description": "Vanilla JS utilities to implement overflow menus",
|
|
5
5
|
"main": "lib-commonjs/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"default": "./lib-commonjs/index.cjs"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
"./metadata.json": "./dist/metadata/index.json",
|
|
30
29
|
"./package.json": "./package.json"
|
|
31
30
|
},
|
|
32
31
|
"files": [
|
|
@@ -34,9 +33,7 @@
|
|
|
34
33
|
"dist/*.d.ts",
|
|
35
34
|
"dist/*.d.cts",
|
|
36
35
|
"lib",
|
|
37
|
-
"lib-commonjs"
|
|
38
|
-
"dist/metadata"
|
|
36
|
+
"lib-commonjs"
|
|
39
37
|
],
|
|
40
|
-
"type": "module"
|
|
41
|
-
"fluentuiCatalog": "./metadata.json"
|
|
38
|
+
"type": "module"
|
|
42
39
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"completeness":{"status":"complete"},"declarationInputs":[{"conditions":["types","import"],"fingerprint":{"algorithm":"sha256","value":"22aa4a8ac0c57a1cf6b26a8caa56520101c020935221827d26619b1edad22b5f"},"path":"dist/index.d.ts"},{"conditions":["types","require"],"fingerprint":{"algorithm":"sha256","value":"22aa4a8ac0c57a1cf6b26a8caa56520101c020935221827d26619b1edad22b5f"},"path":"dist/index.d.cts"}],"dependencyInputs":[],"diagnostics":[],"generator":{"name":"@fluentui/api-metadata","version":"0.0.0"},"kind":"api-record","package":{"name":"@fluentui/priority-overflow","version":"9.74.7-experimental.cli-api.20261006-ccaa611d58.0"},"recordId":"api:root","schema":{"major":1,"revision":5},"symbols":[{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Creates an overflow manager instance for a single container.","id":"symbol:createOverflowManager:declaration:0","kind":"function","namespaces":["value"],"signatures":[{"documentation":"Creates an overflow manager instance for a single container.","id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"initialOptions","optional":true,"rest":false,"type":{"references":[{"end":23,"start":8,"status":"resolved","target":{"kind":"local","symbol":"symbol:OverflowOptions"}}],"text":"Partial<OverflowOptions>"}}],"returnType":{"references":[{"end":15,"start":0,"status":"resolved","target":{"kind":"local","symbol":"symbol:OverflowManager"}}],"text":"OverflowManager"},"source":{"end":325,"file":"dist/index.d.ts","start":219},"typeParameters":[]}],"source":{"end":325,"file":"dist/index.d.ts","start":219}}],"effectiveType":{"members":[],"signatures":[{"documentation":"Creates an overflow manager instance for a single container.","id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"initialOptions","optional":true,"rest":false,"type":{"references":[],"text":"Partial<OverflowOptions>"}}],"returnType":{"references":[],"text":"OverflowManager"},"source":{"end":325,"file":"dist/index.d.ts","start":219},"typeParameters":[]}],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"(initialOptions?: Partial<OverflowOptions>) => OverflowManager"}},"fingerprint":{"algorithm":"sha256","value":"f099aa4db23ce5123338948f8e97568d02f17eb91ecf75db962b4534f4775ddc"},"id":"symbol:createOverflowManager","name":"createOverflowManager","namespaces":["value"],"relationships":[]},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"An empty, frozen overflow snapshot used as the default before anything has been measured.","id":"symbol:EMPTY_SNAPSHOT:declaration:0","kind":"variable","namespaces":["value"],"source":{"end":494,"file":"dist/index.d.ts","start":462},"type":{"references":[{"end":16,"start":0,"status":"resolved","target":{"kind":"local","symbol":"symbol:OverflowSnapshot"}}],"text":"OverflowSnapshot"}}],"effectiveType":{"members":[{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Current visibility state by group id.","kind":"property","name":"groupVisibility","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:EMPTY_SNAPSHOT"}],"status":{"status":"complete"},"type":{"references":[],"text":"Record<string, OverflowGroupState>"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Number of items currently moved to overflow (invisible).","kind":"property","name":"invisibleItemCount","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:EMPTY_SNAPSHOT"}],"status":{"status":"complete"},"type":{"references":[],"text":"number"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Visibility of each registered item, keyed by item id.","kind":"property","name":"itemVisibility","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:EMPTY_SNAPSHOT"}],"status":{"status":"complete"},"type":{"references":[],"text":"Record<string, boolean>"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OverflowSnapshot"}},"fingerprint":{"algorithm":"sha256","value":"0200ece2175c3d176d19203e5fb88efcf2434e08e5fdc44cff2d95f863f26af4"},"id":"symbol:EMPTY_SNAPSHOT","name":"EMPTY_SNAPSHOT","namespaces":["value"],"relationships":[],"type":{"references":[{"end":16,"start":0,"status":"resolved","target":{"kind":"local","symbol":"symbol:OverflowSnapshot"}}],"text":"OverflowSnapshot"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"id":"symbol:ObserveOptions:declaration:0","kind":"interface","namespaces":["type"],"relationships":[{"kind":"extends","type":{"references":[{"end":23,"start":8,"status":"resolved","target":{"kind":"local","symbol":"symbol:OverflowOptions"}}],"text":"Partial<OverflowOptions>"}}],"source":{"end":865,"file":"dist/index.d.ts","start":497},"type":{"references":[],"text":"ObserveOptions"}}],"effectiveType":{"members":[{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"false","documentation":"forces update when observation begins, ensuring initial overflow state is correct. This is useful when the container starts with items that should be overflowed, or when the container resizes immediately after mounting.","kind":"property","name":"forceUpdate","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:ObserveOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"boolean"}},{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"false","documentation":"When true, reserve space as if the overflow menu were visible even with no overflowing items.","kind":"property","name":"hasHiddenItems","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:ObserveOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"boolean"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Minimum number of items that must remain visible.","kind":"property","name":"minimumVisible","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:ObserveOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"number"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Callback invoked when an individual item's visibility changes.","kind":"property","name":"onUpdateItemVisibility","optional":true,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"data","optional":false,"rest":false,"type":{"references":[],"text":"OnUpdateItemVisibilityPayload"}}],"returnType":{"references":[],"text":"void"},"source":{"end":1026,"file":"dist/index.d.ts","start":981},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:ObserveOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"OnUpdateItemVisibility"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Callback invoked after overflow state is recomputed.","kind":"property","name":"onUpdateOverflow","optional":true,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"data","optional":false,"rest":false,"type":{"references":[],"text":"OverflowEventPayload"}}],"returnType":{"references":[],"text":"void"},"source":{"end":1465,"file":"dist/index.d.ts","start":1429},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:ObserveOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"OnUpdateOverflow"}},{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"horizontal","documentation":"Overflow axis used for size measurement.","kind":"property","name":"overflowAxis","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:ObserveOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"\"horizontal\" | \"vertical\""}},{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"end","documentation":"Direction where items are removed when overflow occurs.","kind":"property","name":"overflowDirection","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:ObserveOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"\"start\" | \"end\""}},{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"10","documentation":"Padding in pixels reserved at the end of the container before overflow occurs.\nUseful for accounting for extra elements (for example an overflow menu button)\nor margins between items that are difficult to measure in JavaScript.","kind":"property","name":"padding","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:ObserveOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"number"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"ObserveOptions"}},"fingerprint":{"algorithm":"sha256","value":"e419d5f908d10b078e7bbe45f42e9e4ff458c84bcf164c0ec437580b4ed02255"},"id":"symbol:ObserveOptions","name":"ObserveOptions","namespaces":["type"],"relationships":[{"kind":"extends","type":{"references":[{"end":23,"start":8,"status":"resolved","target":{"kind":"local","symbol":"symbol:OverflowOptions"}}],"text":"Partial<OverflowOptions>"}}],"type":{"references":[],"text":"ObserveOptions"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Callback invoked when a single item's visibility changes.","id":"symbol:OnUpdateItemVisibility:declaration:0","kind":"type-alias","namespaces":["type"],"relationships":[{"kind":"alias","type":{"references":[{"end":36,"start":7,"status":"resolved","target":{"kind":"local","symbol":"symbol:OnUpdateItemVisibilityPayload"}}],"text":"(data: OnUpdateItemVisibilityPayload) => void"}}],"source":{"end":1027,"file":"dist/index.d.ts","start":936},"type":{"references":[{"end":61,"start":32,"status":"resolved","target":{"kind":"local","symbol":"symbol:OnUpdateItemVisibilityPayload"}}],"text":"OnUpdateItemVisibility = (data: OnUpdateItemVisibilityPayload) => void"}}],"effectiveType":{"members":[],"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"data","optional":false,"rest":false,"type":{"references":[],"text":"OnUpdateItemVisibilityPayload"}}],"returnType":{"references":[],"text":"void"},"source":{"end":1026,"file":"dist/index.d.ts","start":981},"typeParameters":[]}],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OnUpdateItemVisibility"}},"fingerprint":{"algorithm":"sha256","value":"ebe0baeabde01ede0f55f233f16e0581fb2a80610a8c2f0b846e0b3a6af9bc49"},"id":"symbol:OnUpdateItemVisibility","name":"OnUpdateItemVisibility","namespaces":["type"],"relationships":[{"kind":"alias","type":{"references":[{"end":36,"start":7,"status":"resolved","target":{"kind":"local","symbol":"symbol:OnUpdateItemVisibilityPayload"}}],"text":"(data: OnUpdateItemVisibilityPayload) => void"}}],"type":{"references":[{"end":61,"start":32,"status":"resolved","target":{"kind":"local","symbol":"symbol:OnUpdateItemVisibilityPayload"}}],"text":"OnUpdateItemVisibility = (data: OnUpdateItemVisibilityPayload) => void"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Payload for item-level visibility updates.","id":"symbol:OnUpdateItemVisibilityPayload:declaration:0","kind":"interface","namespaces":["type"],"source":{"end":1302,"file":"dist/index.d.ts","start":1083},"type":{"references":[],"text":"OnUpdateItemVisibilityPayload"}}],"effectiveType":{"members":[{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Item whose visibility changed.","kind":"property","name":"item","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OnUpdateItemVisibilityPayload"}],"status":{"status":"complete"},"type":{"references":[],"text":"OverflowItemEntry"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Whether the item is now visible.","kind":"property","name":"visible","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OnUpdateItemVisibilityPayload"}],"status":{"status":"complete"},"type":{"references":[],"text":"boolean"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OnUpdateItemVisibilityPayload"}},"fingerprint":{"algorithm":"sha256","value":"ebf0accf990f7ce908b05ef394f5931bd5b028fb5315c77890f863d993673f72"},"id":"symbol:OnUpdateItemVisibilityPayload","name":"OnUpdateItemVisibilityPayload","namespaces":["type"],"relationships":[],"type":{"references":[],"text":"OnUpdateItemVisibilityPayload"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Signature similar to standard event listeners, typed for overflow updates.","id":"symbol:OnUpdateOverflow:declaration:0","kind":"type-alias","namespaces":["type"],"relationships":[{"kind":"alias","type":{"references":[{"end":27,"start":7,"status":"resolved","target":{"kind":"local","symbol":"symbol:OverflowEventPayload"}}],"text":"(data: OverflowEventPayload) => void"}}],"source":{"end":1466,"file":"dist/index.d.ts","start":1390},"type":{"references":[{"end":46,"start":26,"status":"resolved","target":{"kind":"local","symbol":"symbol:OverflowEventPayload"}}],"text":"OnUpdateOverflow = (data: OverflowEventPayload) => void"}}],"effectiveType":{"members":[],"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"data","optional":false,"rest":false,"type":{"references":[],"text":"OverflowEventPayload"}}],"returnType":{"references":[],"text":"void"},"source":{"end":1465,"file":"dist/index.d.ts","start":1429},"typeParameters":[]}],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OnUpdateOverflow"}},"fingerprint":{"algorithm":"sha256","value":"3eb2380750d1ee79bc98df31202bd5e54ab692e0a32195286cf8f70312f671a9"},"id":"symbol:OnUpdateOverflow","name":"OnUpdateOverflow","namespaces":["type"],"relationships":[{"kind":"alias","type":{"references":[{"end":27,"start":7,"status":"resolved","target":{"kind":"local","symbol":"symbol:OverflowEventPayload"}}],"text":"(data: OverflowEventPayload) => void"}}],"type":{"references":[{"end":46,"start":26,"status":"resolved","target":{"kind":"local","symbol":"symbol:OverflowEventPayload"}}],"text":"OnUpdateOverflow = (data: OverflowEventPayload) => void"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Axis used to measure overflow.","id":"symbol:OverflowAxis:declaration:0","kind":"type-alias","namespaces":["type"],"relationships":[{"kind":"alias","type":{"references":[],"text":"'horizontal' | 'vertical'"}},{"kind":"union","type":{"references":[],"text":"'horizontal' | 'vertical'"}}],"source":{"end":1571,"file":"dist/index.d.ts","start":1510},"type":{"references":[],"text":"OverflowAxis = 'horizontal' | 'vertical'"}}],"effectiveType":{"members":[{"declarationPackages":["typescript"],"documentation":"Iterator","kind":"method","name":"__@iterator@12596","optional":false,"readonly":false,"signatures":[{"documentation":"Iterator","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"StringIterator<string>"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => StringIterator<string>"}},{"kind":"index","name":"[number]","optional":false,"readonly":true,"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML anchor element and sets the name attribute to the text value","kind":"method","name":"anchor","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML anchor element and sets the name attribute to the text value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"name","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(name: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a new String consisting of the single UTF-16 code unit located at the specified index.","kind":"method","name":"at","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a new String consisting of the single UTF-16 code unit located at the specified index.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"index","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(index: number) => string | undefined"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<big>` HTML element","kind":"method","name":"big","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<big>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<blink>` HTML element","kind":"method","name":"blink","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<blink>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<b>` HTML element","kind":"method","name":"bold","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<b>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the character at the specified index.","kind":"method","name":"charAt","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the character at the specified index.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"pos","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(pos: number) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the Unicode value of the character at the specified location.","kind":"method","name":"charCodeAt","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the Unicode value of the character at the specified location.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"index","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(index: number) => number"}},{"declarationPackages":["typescript"],"documentation":"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.","kind":"method","name":"codePointAt","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"pos","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(pos: number) => number | undefined"}},{"declarationPackages":["typescript"],"documentation":"Returns a string that contains the concatenation of two or more strings.","kind":"method","name":"concat","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string that contains the concatenation of two or more strings.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"strings","optional":false,"rest":true,"type":{"references":[],"text":"string[]"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(...strings: string[]) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.","kind":"method","name":"endsWith","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"endPosition","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, endPosition?: number) => boolean"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<tt>` HTML element","kind":"method","name":"fixed","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<tt>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the color attribute value","kind":"method","name":"fontcolor","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the color attribute value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"color","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(color: string) => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the size attribute value","kind":"method","name":"fontsize","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the size attribute value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"size","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the size attribute value","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"size","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (size: number): string; (size: string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.","kind":"method","name":"includes","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => boolean"}},{"declarationPackages":["typescript"],"documentation":"Returns the position of the first occurrence of a substring.","kind":"method","name":"indexOf","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the position of the first occurrence of a substring.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => number"}},{"declarationPackages":["typescript"],"documentation":"Returns true if all leading surrogates and trailing surrogates appear paired and in order.","kind":"method","name":"isWellFormed","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if all leading surrogates and trailing surrogates appear paired and in order.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => boolean"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<i>` HTML element","kind":"method","name":"italics","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<i>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the last occurrence of a substring in the string.","kind":"method","name":"lastIndexOf","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the last occurrence of a substring in the string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => number"}},{"declarationPackages":["typescript"],"documentation":"Returns the length of a String object.","kind":"property","name":"length","optional":false,"readonly":true,"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"number"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML element and sets the href attribute value","kind":"method","name":"link","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML element and sets the href attribute value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"url","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(url: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Determines whether two strings are equivalent in the current locale.\nDetermines whether two strings are equivalent in the current or specified locale.","kind":"method","name":"localeCompare","optional":false,"readonly":false,"signatures":[{"documentation":"Determines whether two strings are equivalent in the current locale.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"that","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]},{"documentation":"Determines whether two strings are equivalent in the current or specified locale.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"that","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"string | string[]"}},{"name":"options","optional":true,"rest":false,"type":{"references":[],"text":"Intl.CollatorOptions"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]},{"documentation":"Determines whether two strings are equivalent in the current or specified locale.","id":"signature:method:2","kind":"method","overload":2,"parameters":[{"name":"that","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"Intl.LocalesArgument"}},{"name":"options","optional":true,"rest":false,"type":{"references":[],"text":"Intl.CollatorOptions"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (that: string): number; (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number; (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number; }"}},{"declarationPackages":["typescript"],"documentation":"Matches a string with a regular expression, and returns an array containing the results of that search.\nMatches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.","kind":"method","name":"match","optional":false,"readonly":false,"signatures":[{"documentation":"Matches a string with a regular expression, and returns an array containing the results of that search.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"regexp","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}}],"returnType":{"references":[],"text":"RegExpMatchArray"},"typeParameters":[]},{"documentation":"Matches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"matcher","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.match](string: string): RegExpMatchArray | null; }"}}],"returnType":{"references":[],"text":"RegExpMatchArray"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }"}},{"declarationPackages":["typescript"],"documentation":"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.","kind":"method","name":"matchAll","optional":false,"readonly":false,"signatures":[{"documentation":"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"regexp","optional":false,"rest":false,"type":{"references":[],"text":"RegExp"}}],"returnType":{"references":[],"text":"RegExpStringIterator<RegExpExecArray>"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(regexp: RegExp) => RegExpStringIterator<RegExpExecArray>"}},{"declarationPackages":["typescript"],"documentation":"Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.","kind":"method","name":"normalize","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"form","optional":false,"rest":false,"type":{"references":[],"text":"\"NFC\" | \"NFD\" | \"NFKC\" | \"NFKD\""}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"form","optional":true,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (form: \"NFC\" | \"NFD\" | \"NFKC\" | \"NFKD\"): string; (form?: string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.","kind":"method","name":"padEnd","optional":false,"readonly":false,"signatures":[{"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"maxLength","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"fillString","optional":true,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(maxLength: number, fillString?: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.","kind":"method","name":"padStart","optional":false,"readonly":false,"signatures":[{"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"maxLength","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"fillString","optional":true,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(maxLength: number, fillString?: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.","kind":"method","name":"repeat","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"count","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(count: number) => string"}},{"declarationPackages":["typescript"],"documentation":"Replaces text in a string, using a regular expression or search string.\nPasses a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\nReplaces text in a string, using an object that supports replacement within a string.","kind":"method","name":"replace","optional":false,"readonly":false,"signatures":[{"documentation":"Replaces text in a string, using a regular expression or search string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replaceValue","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Replaces text in a string, using a regular expression or search string.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replacer","optional":false,"rest":false,"type":{"references":[],"text":"(substring: string, ...args: any[]) => string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.","id":"signature:method:2","kind":"method","overload":2,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.replace](string: string, replaceValue: string): string; }"}},{"name":"replaceValue","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Replaces text in a string, using an object that supports replacement within a string.","id":"signature:method:3","kind":"method","overload":3,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }"}},{"name":"replacer","optional":false,"rest":false,"type":{"references":[],"text":"(substring: string, ...args: any[]) => string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; (searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Replace all instances of a substring in a string, using a regular expression or search string.","kind":"method","name":"replaceAll","optional":false,"readonly":false,"signatures":[{"documentation":"Replace all instances of a substring in a string, using a regular expression or search string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replaceValue","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Replace all instances of a substring in a string, using a regular expression or search string.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replacer","optional":false,"rest":false,"type":{"references":[],"text":"(substring: string, ...args: any[]) => string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Finds the first substring match in a regular expression search.","kind":"method","name":"search","optional":false,"readonly":false,"signatures":[{"documentation":"Finds the first substring match in a regular expression search.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"regexp","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]},{"documentation":"Finds the first substring match in a regular expression search.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"searcher","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.search](string: string): number; }"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }"}},{"declarationPackages":["typescript"],"documentation":"Returns a section of a string.","kind":"method","name":"slice","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a section of a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"start","optional":true,"rest":false,"type":{"references":[],"text":"number"}},{"name":"end","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(start?: number, end?: number) => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<small>` HTML element","kind":"method","name":"small","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<small>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Split a string into substrings using the specified separator and return them as an array.","kind":"method","name":"split","optional":false,"readonly":false,"signatures":[{"documentation":"Split a string into substrings using the specified separator and return them as an array.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"separator","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"limit","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string[]"},"typeParameters":[]},{"documentation":"Split a string into substrings using the specified separator and return them as an array.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"splitter","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.split](string: string, limit?: number): string[]; }"}},{"name":"limit","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string[]"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (separator: string | RegExp, limit?: number): string[]; (splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[]; }"}},{"declarationPackages":["typescript"],"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.","kind":"method","name":"startsWith","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => boolean"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<strike>` HTML element","kind":"method","name":"strike","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<strike>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sub>` HTML element","kind":"method","name":"sub","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sub>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Gets a substring beginning at the specified location and having the specified length.","kind":"method","name":"substr","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Gets a substring beginning at the specified location and having the specified length.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"from","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"length","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(from: number, length?: number) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the substring at the specified location within a String object.","kind":"method","name":"substring","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the substring at the specified location within a String object.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"start","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"end","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"(start: number, end?: number) => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sup>` HTML element","kind":"method","name":"sup","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sup>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.","kind":"method","name":"toLocaleLowerCase","optional":false,"readonly":false,"signatures":[{"documentation":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"string | string[]"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"Intl.LocalesArgument"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (locales?: string | string[]): string; (locales?: Intl.LocalesArgument): string; }"}},{"declarationPackages":["typescript"],"documentation":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.","kind":"method","name":"toLocaleUpperCase","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"string | string[]"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"Intl.LocalesArgument"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (locales?: string | string[]): string; (locales?: Intl.LocalesArgument): string; }"}},{"declarationPackages":["typescript"],"documentation":"Converts all the alphabetic characters in a string to lowercase.","kind":"method","name":"toLowerCase","optional":false,"readonly":false,"signatures":[{"documentation":"Converts all the alphabetic characters in a string to lowercase.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a string representation of a string.","kind":"method","name":"toString","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string representation of a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Converts all the alphabetic characters in a string to uppercase.","kind":"method","name":"toUpperCase","optional":false,"readonly":false,"signatures":[{"documentation":"Converts all the alphabetic characters in a string to uppercase.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).","kind":"method","name":"toWellFormed","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Removes the leading and trailing white space and line terminator characters from a string.","kind":"method","name":"trim","optional":false,"readonly":false,"signatures":[{"documentation":"Removes the leading and trailing white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Removes the trailing white space and line terminator characters from a string.","kind":"method","name":"trimEnd","optional":false,"readonly":false,"signatures":[{"documentation":"Removes the trailing white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility. Use `trimStart` instead","documentation":"Removes the leading white space and line terminator characters from a string.","kind":"method","name":"trimLeft","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility. Use `trimStart` instead","documentation":"Removes the leading white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility. Use `trimEnd` instead","documentation":"Removes the trailing white space and line terminator characters from a string.","kind":"method","name":"trimRight","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility. Use `trimEnd` instead","documentation":"Removes the trailing white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Removes the leading white space and line terminator characters from a string.","kind":"method","name":"trimStart","optional":false,"readonly":false,"signatures":[{"documentation":"Removes the leading white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the primitive value of the specified object.","kind":"method","name":"valueOf","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the primitive value of the specified object.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowAxis"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OverflowAxis"},"unionBranches":[{"references":[],"text":"\"horizontal\""},{"references":[],"text":"\"vertical\""}]},"fingerprint":{"algorithm":"sha256","value":"463a8aa19f6ea14c247ddf2db31ad4ee5b72bee2ebe7b9aa81d63fc43764773e"},"id":"symbol:OverflowAxis","name":"OverflowAxis","namespaces":["type"],"relationships":[{"kind":"alias","type":{"references":[],"text":"'horizontal' | 'vertical'"}},{"kind":"union","type":{"references":[],"text":"'horizontal' | 'vertical'"}}],"type":{"references":[],"text":"OverflowAxis = 'horizontal' | 'vertical'"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Direction where items are removed when overflow occurs.","id":"symbol:OverflowDirection:declaration:0","kind":"type-alias","namespaces":["type"],"relationships":[{"kind":"alias","type":{"references":[],"text":"'start' | 'end'"}},{"kind":"union","type":{"references":[],"text":"'start' | 'end'"}}],"source":{"end":1696,"file":"dist/index.d.ts","start":1640},"type":{"references":[],"text":"OverflowDirection = 'start' | 'end'"}}],"effectiveType":{"members":[{"declarationPackages":["typescript"],"documentation":"Iterator","kind":"method","name":"__@iterator@12596","optional":false,"readonly":false,"signatures":[{"documentation":"Iterator","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"StringIterator<string>"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => StringIterator<string>"}},{"kind":"index","name":"[number]","optional":false,"readonly":true,"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML anchor element and sets the name attribute to the text value","kind":"method","name":"anchor","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML anchor element and sets the name attribute to the text value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"name","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(name: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a new String consisting of the single UTF-16 code unit located at the specified index.","kind":"method","name":"at","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a new String consisting of the single UTF-16 code unit located at the specified index.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"index","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(index: number) => string | undefined"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<big>` HTML element","kind":"method","name":"big","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<big>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<blink>` HTML element","kind":"method","name":"blink","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<blink>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<b>` HTML element","kind":"method","name":"bold","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<b>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the character at the specified index.","kind":"method","name":"charAt","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the character at the specified index.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"pos","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(pos: number) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the Unicode value of the character at the specified location.","kind":"method","name":"charCodeAt","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the Unicode value of the character at the specified location.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"index","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(index: number) => number"}},{"declarationPackages":["typescript"],"documentation":"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.","kind":"method","name":"codePointAt","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"pos","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(pos: number) => number | undefined"}},{"declarationPackages":["typescript"],"documentation":"Returns a string that contains the concatenation of two or more strings.","kind":"method","name":"concat","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string that contains the concatenation of two or more strings.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"strings","optional":false,"rest":true,"type":{"references":[],"text":"string[]"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(...strings: string[]) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.","kind":"method","name":"endsWith","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"endPosition","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, endPosition?: number) => boolean"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<tt>` HTML element","kind":"method","name":"fixed","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<tt>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the color attribute value","kind":"method","name":"fontcolor","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the color attribute value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"color","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(color: string) => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the size attribute value","kind":"method","name":"fontsize","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the size attribute value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"size","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the size attribute value","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"size","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (size: number): string; (size: string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.","kind":"method","name":"includes","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => boolean"}},{"declarationPackages":["typescript"],"documentation":"Returns the position of the first occurrence of a substring.","kind":"method","name":"indexOf","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the position of the first occurrence of a substring.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => number"}},{"declarationPackages":["typescript"],"documentation":"Returns true if all leading surrogates and trailing surrogates appear paired and in order.","kind":"method","name":"isWellFormed","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if all leading surrogates and trailing surrogates appear paired and in order.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => boolean"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<i>` HTML element","kind":"method","name":"italics","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<i>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the last occurrence of a substring in the string.","kind":"method","name":"lastIndexOf","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the last occurrence of a substring in the string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => number"}},{"declarationPackages":["typescript"],"documentation":"Returns the length of a String object.","kind":"property","name":"length","optional":false,"readonly":true,"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"number"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML element and sets the href attribute value","kind":"method","name":"link","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML element and sets the href attribute value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"url","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(url: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Determines whether two strings are equivalent in the current locale.\nDetermines whether two strings are equivalent in the current or specified locale.","kind":"method","name":"localeCompare","optional":false,"readonly":false,"signatures":[{"documentation":"Determines whether two strings are equivalent in the current locale.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"that","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]},{"documentation":"Determines whether two strings are equivalent in the current or specified locale.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"that","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"string | string[]"}},{"name":"options","optional":true,"rest":false,"type":{"references":[],"text":"Intl.CollatorOptions"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]},{"documentation":"Determines whether two strings are equivalent in the current or specified locale.","id":"signature:method:2","kind":"method","overload":2,"parameters":[{"name":"that","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"Intl.LocalesArgument"}},{"name":"options","optional":true,"rest":false,"type":{"references":[],"text":"Intl.CollatorOptions"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (that: string): number; (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number; (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number; }"}},{"declarationPackages":["typescript"],"documentation":"Matches a string with a regular expression, and returns an array containing the results of that search.\nMatches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.","kind":"method","name":"match","optional":false,"readonly":false,"signatures":[{"documentation":"Matches a string with a regular expression, and returns an array containing the results of that search.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"regexp","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}}],"returnType":{"references":[],"text":"RegExpMatchArray"},"typeParameters":[]},{"documentation":"Matches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"matcher","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.match](string: string): RegExpMatchArray | null; }"}}],"returnType":{"references":[],"text":"RegExpMatchArray"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }"}},{"declarationPackages":["typescript"],"documentation":"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.","kind":"method","name":"matchAll","optional":false,"readonly":false,"signatures":[{"documentation":"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"regexp","optional":false,"rest":false,"type":{"references":[],"text":"RegExp"}}],"returnType":{"references":[],"text":"RegExpStringIterator<RegExpExecArray>"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(regexp: RegExp) => RegExpStringIterator<RegExpExecArray>"}},{"declarationPackages":["typescript"],"documentation":"Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.","kind":"method","name":"normalize","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"form","optional":false,"rest":false,"type":{"references":[],"text":"\"NFC\" | \"NFD\" | \"NFKC\" | \"NFKD\""}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"form","optional":true,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (form: \"NFC\" | \"NFD\" | \"NFKC\" | \"NFKD\"): string; (form?: string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.","kind":"method","name":"padEnd","optional":false,"readonly":false,"signatures":[{"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"maxLength","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"fillString","optional":true,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(maxLength: number, fillString?: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.","kind":"method","name":"padStart","optional":false,"readonly":false,"signatures":[{"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"maxLength","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"fillString","optional":true,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(maxLength: number, fillString?: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.","kind":"method","name":"repeat","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"count","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(count: number) => string"}},{"declarationPackages":["typescript"],"documentation":"Replaces text in a string, using a regular expression or search string.\nPasses a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\nReplaces text in a string, using an object that supports replacement within a string.","kind":"method","name":"replace","optional":false,"readonly":false,"signatures":[{"documentation":"Replaces text in a string, using a regular expression or search string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replaceValue","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Replaces text in a string, using a regular expression or search string.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replacer","optional":false,"rest":false,"type":{"references":[],"text":"(substring: string, ...args: any[]) => string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.","id":"signature:method:2","kind":"method","overload":2,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.replace](string: string, replaceValue: string): string; }"}},{"name":"replaceValue","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Replaces text in a string, using an object that supports replacement within a string.","id":"signature:method:3","kind":"method","overload":3,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }"}},{"name":"replacer","optional":false,"rest":false,"type":{"references":[],"text":"(substring: string, ...args: any[]) => string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; (searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Replace all instances of a substring in a string, using a regular expression or search string.","kind":"method","name":"replaceAll","optional":false,"readonly":false,"signatures":[{"documentation":"Replace all instances of a substring in a string, using a regular expression or search string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replaceValue","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Replace all instances of a substring in a string, using a regular expression or search string.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replacer","optional":false,"rest":false,"type":{"references":[],"text":"(substring: string, ...args: any[]) => string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Finds the first substring match in a regular expression search.","kind":"method","name":"search","optional":false,"readonly":false,"signatures":[{"documentation":"Finds the first substring match in a regular expression search.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"regexp","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]},{"documentation":"Finds the first substring match in a regular expression search.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"searcher","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.search](string: string): number; }"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }"}},{"declarationPackages":["typescript"],"documentation":"Returns a section of a string.","kind":"method","name":"slice","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a section of a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"start","optional":true,"rest":false,"type":{"references":[],"text":"number"}},{"name":"end","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(start?: number, end?: number) => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<small>` HTML element","kind":"method","name":"small","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<small>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Split a string into substrings using the specified separator and return them as an array.","kind":"method","name":"split","optional":false,"readonly":false,"signatures":[{"documentation":"Split a string into substrings using the specified separator and return them as an array.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"separator","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"limit","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string[]"},"typeParameters":[]},{"documentation":"Split a string into substrings using the specified separator and return them as an array.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"splitter","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.split](string: string, limit?: number): string[]; }"}},{"name":"limit","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string[]"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (separator: string | RegExp, limit?: number): string[]; (splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[]; }"}},{"declarationPackages":["typescript"],"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.","kind":"method","name":"startsWith","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => boolean"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<strike>` HTML element","kind":"method","name":"strike","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<strike>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sub>` HTML element","kind":"method","name":"sub","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sub>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Gets a substring beginning at the specified location and having the specified length.","kind":"method","name":"substr","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Gets a substring beginning at the specified location and having the specified length.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"from","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"length","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(from: number, length?: number) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the substring at the specified location within a String object.","kind":"method","name":"substring","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the substring at the specified location within a String object.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"start","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"end","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"(start: number, end?: number) => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sup>` HTML element","kind":"method","name":"sup","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sup>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.","kind":"method","name":"toLocaleLowerCase","optional":false,"readonly":false,"signatures":[{"documentation":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"string | string[]"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"Intl.LocalesArgument"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (locales?: string | string[]): string; (locales?: Intl.LocalesArgument): string; }"}},{"declarationPackages":["typescript"],"documentation":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.","kind":"method","name":"toLocaleUpperCase","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"string | string[]"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"Intl.LocalesArgument"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (locales?: string | string[]): string; (locales?: Intl.LocalesArgument): string; }"}},{"declarationPackages":["typescript"],"documentation":"Converts all the alphabetic characters in a string to lowercase.","kind":"method","name":"toLowerCase","optional":false,"readonly":false,"signatures":[{"documentation":"Converts all the alphabetic characters in a string to lowercase.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a string representation of a string.","kind":"method","name":"toString","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string representation of a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Converts all the alphabetic characters in a string to uppercase.","kind":"method","name":"toUpperCase","optional":false,"readonly":false,"signatures":[{"documentation":"Converts all the alphabetic characters in a string to uppercase.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).","kind":"method","name":"toWellFormed","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Removes the leading and trailing white space and line terminator characters from a string.","kind":"method","name":"trim","optional":false,"readonly":false,"signatures":[{"documentation":"Removes the leading and trailing white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Removes the trailing white space and line terminator characters from a string.","kind":"method","name":"trimEnd","optional":false,"readonly":false,"signatures":[{"documentation":"Removes the trailing white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility. Use `trimStart` instead","documentation":"Removes the leading white space and line terminator characters from a string.","kind":"method","name":"trimLeft","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility. Use `trimStart` instead","documentation":"Removes the leading white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility. Use `trimEnd` instead","documentation":"Removes the trailing white space and line terminator characters from a string.","kind":"method","name":"trimRight","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility. Use `trimEnd` instead","documentation":"Removes the trailing white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Removes the leading white space and line terminator characters from a string.","kind":"method","name":"trimStart","optional":false,"readonly":false,"signatures":[{"documentation":"Removes the leading white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the primitive value of the specified object.","kind":"method","name":"valueOf","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the primitive value of the specified object.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowDirection"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OverflowDirection"},"unionBranches":[{"references":[],"text":"\"start\""},{"references":[],"text":"\"end\""}]},"fingerprint":{"algorithm":"sha256","value":"b9cc3136de816f33c91ca7c2207d32294095af0718a1532823aa73251005618b"},"id":"symbol:OverflowDirection","name":"OverflowDirection","namespaces":["type"],"relationships":[{"kind":"alias","type":{"references":[],"text":"'start' | 'end'"}},{"kind":"union","type":{"references":[],"text":"'start' | 'end'"}}],"type":{"references":[],"text":"OverflowDirection = 'start' | 'end'"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Tracked divider in the overflow manager.","id":"symbol:OverflowDividerEntry:declaration:0","kind":"interface","namespaces":["type"],"source":{"end":1991,"file":"dist/index.d.ts","start":1750},"type":{"references":[],"text":"OverflowDividerEntry"}}],"effectiveType":{"members":[{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"HTML element that disappears when its group overflows.","kind":"property","name":"element","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowDividerEntry"}],"status":{"status":"complete"},"type":{"references":[],"text":"HTMLElement"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Id of the group controlled by this divider.","kind":"property","name":"groupId","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowDividerEntry"}],"status":{"status":"complete"},"type":{"references":[],"text":"string"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OverflowDividerEntry"}},"fingerprint":{"algorithm":"sha256","value":"9f13376760682017921ed41314ada2c61c21e67313e851377dac1393cf5a41fb"},"id":"symbol:OverflowDividerEntry","name":"OverflowDividerEntry","namespaces":["type"],"relationships":[],"type":{"references":[],"text":"OverflowDividerEntry"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Payload of the custom DOM event for overflow updates","id":"symbol:OverflowEventPayload:declaration:0","kind":"interface","namespaces":["type"],"source":{"end":2427,"file":"dist/index.d.ts","start":2057},"type":{"references":[],"text":"OverflowEventPayload"}}],"effectiveType":{"members":[{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Current visibility state by group id.","kind":"property","name":"groupVisibility","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowEventPayload"}],"status":{"status":"complete"},"type":{"references":[],"text":"Record<string, OverflowGroupState>"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Items currently moved to overflow.","kind":"property","name":"invisibleItems","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowEventPayload"}],"status":{"status":"complete"},"type":{"references":[],"text":"OverflowItemEntry[]"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Items currently visible in the container.","kind":"property","name":"visibleItems","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowEventPayload"}],"status":{"status":"complete"},"type":{"references":[],"text":"OverflowItemEntry[]"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OverflowEventPayload"}},"fingerprint":{"algorithm":"sha256","value":"a9069bea6bb1c0959811617d959c7e56773c2e5d2b419691d15179a798eeba83"},"id":"symbol:OverflowEventPayload","name":"OverflowEventPayload","namespaces":["type"],"relationships":[],"type":{"references":[],"text":"OverflowEventPayload"}},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"declarations":[{"documentation":"Visibility state for an overflow group.","id":"symbol:OverflowGroupState:declaration:0","kind":"type-alias","namespaces":["type"],"relationships":[{"kind":"alias","type":{"references":[],"text":"'visible' | 'hidden' | 'overflow'"}},{"kind":"union","type":{"references":[],"text":"'visible' | 'hidden' | 'overflow'"}}],"source":{"end":2555,"file":"dist/index.d.ts","start":2480},"type":{"references":[],"text":"OverflowGroupState = 'visible' | 'hidden' | 'overflow'"}}],"effectiveType":{"members":[{"declarationPackages":["typescript"],"documentation":"Iterator","kind":"method","name":"__@iterator@12596","optional":false,"readonly":false,"signatures":[{"documentation":"Iterator","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"StringIterator<string>"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => StringIterator<string>"}},{"kind":"index","name":"[number]","optional":false,"readonly":true,"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML anchor element and sets the name attribute to the text value","kind":"method","name":"anchor","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML anchor element and sets the name attribute to the text value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"name","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(name: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a new String consisting of the single UTF-16 code unit located at the specified index.","kind":"method","name":"at","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a new String consisting of the single UTF-16 code unit located at the specified index.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"index","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(index: number) => string | undefined"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<big>` HTML element","kind":"method","name":"big","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<big>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<blink>` HTML element","kind":"method","name":"blink","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<blink>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<b>` HTML element","kind":"method","name":"bold","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<b>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the character at the specified index.","kind":"method","name":"charAt","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the character at the specified index.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"pos","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(pos: number) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the Unicode value of the character at the specified location.","kind":"method","name":"charCodeAt","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the Unicode value of the character at the specified location.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"index","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(index: number) => number"}},{"declarationPackages":["typescript"],"documentation":"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.","kind":"method","name":"codePointAt","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"pos","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(pos: number) => number | undefined"}},{"declarationPackages":["typescript"],"documentation":"Returns a string that contains the concatenation of two or more strings.","kind":"method","name":"concat","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string that contains the concatenation of two or more strings.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"strings","optional":false,"rest":true,"type":{"references":[],"text":"string[]"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(...strings: string[]) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.","kind":"method","name":"endsWith","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"endPosition","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, endPosition?: number) => boolean"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<tt>` HTML element","kind":"method","name":"fixed","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<tt>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the color attribute value","kind":"method","name":"fontcolor","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the color attribute value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"color","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(color: string) => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the size attribute value","kind":"method","name":"fontsize","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the size attribute value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"size","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<font>` HTML element and sets the size attribute value","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"size","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (size: number): string; (size: string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.","kind":"method","name":"includes","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => boolean"}},{"declarationPackages":["typescript"],"documentation":"Returns the position of the first occurrence of a substring.","kind":"method","name":"indexOf","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the position of the first occurrence of a substring.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => number"}},{"declarationPackages":["typescript"],"documentation":"Returns true if all leading surrogates and trailing surrogates appear paired and in order.","kind":"method","name":"isWellFormed","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if all leading surrogates and trailing surrogates appear paired and in order.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => boolean"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<i>` HTML element","kind":"method","name":"italics","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<i>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the last occurrence of a substring in the string.","kind":"method","name":"lastIndexOf","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the last occurrence of a substring in the string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => number"}},{"declarationPackages":["typescript"],"documentation":"Returns the length of a String object.","kind":"property","name":"length","optional":false,"readonly":true,"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"number"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML element and sets the href attribute value","kind":"method","name":"link","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns an `<a>` HTML element and sets the href attribute value","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"url","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(url: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Determines whether two strings are equivalent in the current locale.\nDetermines whether two strings are equivalent in the current or specified locale.","kind":"method","name":"localeCompare","optional":false,"readonly":false,"signatures":[{"documentation":"Determines whether two strings are equivalent in the current locale.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"that","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]},{"documentation":"Determines whether two strings are equivalent in the current or specified locale.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"that","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"string | string[]"}},{"name":"options","optional":true,"rest":false,"type":{"references":[],"text":"Intl.CollatorOptions"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]},{"documentation":"Determines whether two strings are equivalent in the current or specified locale.","id":"signature:method:2","kind":"method","overload":2,"parameters":[{"name":"that","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"Intl.LocalesArgument"}},{"name":"options","optional":true,"rest":false,"type":{"references":[],"text":"Intl.CollatorOptions"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (that: string): number; (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number; (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number; }"}},{"declarationPackages":["typescript"],"documentation":"Matches a string with a regular expression, and returns an array containing the results of that search.\nMatches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.","kind":"method","name":"match","optional":false,"readonly":false,"signatures":[{"documentation":"Matches a string with a regular expression, and returns an array containing the results of that search.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"regexp","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}}],"returnType":{"references":[],"text":"RegExpMatchArray"},"typeParameters":[]},{"documentation":"Matches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"matcher","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.match](string: string): RegExpMatchArray | null; }"}}],"returnType":{"references":[],"text":"RegExpMatchArray"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }"}},{"declarationPackages":["typescript"],"documentation":"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.","kind":"method","name":"matchAll","optional":false,"readonly":false,"signatures":[{"documentation":"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"regexp","optional":false,"rest":false,"type":{"references":[],"text":"RegExp"}}],"returnType":{"references":[],"text":"RegExpStringIterator<RegExpExecArray>"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(regexp: RegExp) => RegExpStringIterator<RegExpExecArray>"}},{"declarationPackages":["typescript"],"documentation":"Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.","kind":"method","name":"normalize","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"form","optional":false,"rest":false,"type":{"references":[],"text":"\"NFC\" | \"NFD\" | \"NFKC\" | \"NFKD\""}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"form","optional":true,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (form: \"NFC\" | \"NFD\" | \"NFKC\" | \"NFKD\"): string; (form?: string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.","kind":"method","name":"padEnd","optional":false,"readonly":false,"signatures":[{"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"maxLength","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"fillString","optional":true,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(maxLength: number, fillString?: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.","kind":"method","name":"padStart","optional":false,"readonly":false,"signatures":[{"documentation":"Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"maxLength","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"fillString","optional":true,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(maxLength: number, fillString?: string) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.","kind":"method","name":"repeat","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"count","optional":false,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(count: number) => string"}},{"declarationPackages":["typescript"],"documentation":"Replaces text in a string, using a regular expression or search string.\nPasses a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\nReplaces text in a string, using an object that supports replacement within a string.","kind":"method","name":"replace","optional":false,"readonly":false,"signatures":[{"documentation":"Replaces text in a string, using a regular expression or search string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replaceValue","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Replaces text in a string, using a regular expression or search string.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replacer","optional":false,"rest":false,"type":{"references":[],"text":"(substring: string, ...args: any[]) => string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.","id":"signature:method:2","kind":"method","overload":2,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.replace](string: string, replaceValue: string): string; }"}},{"name":"replaceValue","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Replaces text in a string, using an object that supports replacement within a string.","id":"signature:method:3","kind":"method","overload":3,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }"}},{"name":"replacer","optional":false,"rest":false,"type":{"references":[],"text":"(substring: string, ...args: any[]) => string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string; (searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Replace all instances of a substring in a string, using a regular expression or search string.","kind":"method","name":"replaceAll","optional":false,"readonly":false,"signatures":[{"documentation":"Replace all instances of a substring in a string, using a regular expression or search string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replaceValue","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Replace all instances of a substring in a string, using a regular expression or search string.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"searchValue","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"replacer","optional":false,"rest":false,"type":{"references":[],"text":"(substring: string, ...args: any[]) => string"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; }"}},{"declarationPackages":["typescript"],"documentation":"Finds the first substring match in a regular expression search.","kind":"method","name":"search","optional":false,"readonly":false,"signatures":[{"documentation":"Finds the first substring match in a regular expression search.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"regexp","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]},{"documentation":"Finds the first substring match in a regular expression search.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"searcher","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.search](string: string): number; }"}}],"returnType":{"references":[],"text":"number"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }"}},{"declarationPackages":["typescript"],"documentation":"Returns a section of a string.","kind":"method","name":"slice","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a section of a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"start","optional":true,"rest":false,"type":{"references":[],"text":"number"}},{"name":"end","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(start?: number, end?: number) => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<small>` HTML element","kind":"method","name":"small","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<small>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Split a string into substrings using the specified separator and return them as an array.","kind":"method","name":"split","optional":false,"readonly":false,"signatures":[{"documentation":"Split a string into substrings using the specified separator and return them as an array.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"separator","optional":false,"rest":false,"type":{"references":[],"text":"string | RegExp"}},{"name":"limit","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string[]"},"typeParameters":[]},{"documentation":"Split a string into substrings using the specified separator and return them as an array.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"splitter","optional":false,"rest":false,"type":{"references":[],"text":"{ [Symbol.split](string: string, limit?: number): string[]; }"}},{"name":"limit","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string[]"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (separator: string | RegExp, limit?: number): string[]; (splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[]; }"}},{"declarationPackages":["typescript"],"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.","kind":"method","name":"startsWith","optional":false,"readonly":false,"signatures":[{"documentation":"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"searchString","optional":false,"rest":false,"type":{"references":[],"text":"string"}},{"name":"position","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"boolean"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(searchString: string, position?: number) => boolean"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<strike>` HTML element","kind":"method","name":"strike","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<strike>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sub>` HTML element","kind":"method","name":"sub","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sub>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Gets a substring beginning at the specified location and having the specified length.","kind":"method","name":"substr","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Gets a substring beginning at the specified location and having the specified length.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"from","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"length","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(from: number, length?: number) => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the substring at the specified location within a String object.","kind":"method","name":"substring","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the substring at the specified location within a String object.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"start","optional":false,"rest":false,"type":{"references":[],"text":"number"}},{"name":"end","optional":true,"rest":false,"type":{"references":[],"text":"number"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"(start: number, end?: number) => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sup>` HTML element","kind":"method","name":"sup","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility","documentation":"Returns a `<sup>` HTML element","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.","kind":"method","name":"toLocaleLowerCase","optional":false,"readonly":false,"signatures":[{"documentation":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"string | string[]"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"Intl.LocalesArgument"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (locales?: string | string[]): string; (locales?: Intl.LocalesArgument): string; }"}},{"declarationPackages":["typescript"],"documentation":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.","kind":"method","name":"toLocaleUpperCase","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.","id":"signature:method:0","kind":"method","overload":0,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"string | string[]"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]},{"documentation":"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.","id":"signature:method:1","kind":"method","overload":1,"parameters":[{"name":"locales","optional":true,"rest":false,"type":{"references":[],"text":"Intl.LocalesArgument"}}],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"{ (locales?: string | string[]): string; (locales?: Intl.LocalesArgument): string; }"}},{"declarationPackages":["typescript"],"documentation":"Converts all the alphabetic characters in a string to lowercase.","kind":"method","name":"toLowerCase","optional":false,"readonly":false,"signatures":[{"documentation":"Converts all the alphabetic characters in a string to lowercase.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a string representation of a string.","kind":"method","name":"toString","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string representation of a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Converts all the alphabetic characters in a string to uppercase.","kind":"method","name":"toUpperCase","optional":false,"readonly":false,"signatures":[{"documentation":"Converts all the alphabetic characters in a string to uppercase.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).","kind":"method","name":"toWellFormed","optional":false,"readonly":false,"signatures":[{"documentation":"Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Removes the leading and trailing white space and line terminator characters from a string.","kind":"method","name":"trim","optional":false,"readonly":false,"signatures":[{"documentation":"Removes the leading and trailing white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Removes the trailing white space and line terminator characters from a string.","kind":"method","name":"trimEnd","optional":false,"readonly":false,"signatures":[{"documentation":"Removes the trailing white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility. Use `trimStart` instead","documentation":"Removes the leading white space and line terminator characters from a string.","kind":"method","name":"trimLeft","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility. Use `trimStart` instead","documentation":"Removes the leading white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"deprecated":"A legacy feature for browser compatibility. Use `trimEnd` instead","documentation":"Removes the trailing white space and line terminator characters from a string.","kind":"method","name":"trimRight","optional":false,"readonly":false,"signatures":[{"deprecated":"A legacy feature for browser compatibility. Use `trimEnd` instead","documentation":"Removes the trailing white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Removes the leading white space and line terminator characters from a string.","kind":"method","name":"trimStart","optional":false,"readonly":false,"signatures":[{"documentation":"Removes the leading white space and line terminator characters from a string.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}},{"declarationPackages":["typescript"],"documentation":"Returns the primitive value of the specified object.","kind":"method","name":"valueOf","optional":false,"readonly":false,"signatures":[{"documentation":"Returns the primitive value of the specified object.","id":"signature:method:0","kind":"method","overload":0,"parameters":[],"returnType":{"references":[],"text":"string"},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowGroupState"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => string"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OverflowGroupState"},"unionBranches":[{"references":[],"text":"\"visible\""},{"references":[],"text":"\"hidden\""},{"references":[],"text":"\"overflow\""}]},"fingerprint":{"algorithm":"sha256","value":"3d6aff9eee212121bc32757e11d46ec5f45917663aef10da31468fee5a9013e2"},"id":"symbol:OverflowGroupState","name":"OverflowGroupState","namespaces":["type"],"relationships":[{"kind":"alias","type":{"references":[],"text":"'visible' | 'hidden' | 'overflow'"}},{"kind":"union","type":{"references":[],"text":"'visible' | 'hidden' | 'overflow'"}}],"type":{"references":[],"text":"OverflowGroupState = 'visible' | 'hidden' | 'overflow'"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Tracked item in the overflow manager.","id":"symbol:OverflowItemEntry:declaration:0","kind":"interface","namespaces":["type"],"source":{"end":3301,"file":"dist/index.d.ts","start":2606},"type":{"references":[],"text":"OverflowItemEntry"}}],"effectiveType":{"members":[{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"HTML element that disappears when the item overflows.","kind":"property","name":"element","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowItemEntry"}],"status":{"status":"complete"},"type":{"references":[],"text":"HTMLElement"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Optional group id used to coordinate divider and grouped visibility states.","kind":"property","name":"groupId","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowItemEntry"}],"status":{"status":"complete"},"type":{"references":[],"text":"string"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Stable item id used to track visibility and emit updates.","kind":"property","name":"id","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowItemEntry"}],"status":{"status":"complete"},"type":{"references":[],"text":"string"}},{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"false","documentation":"If true, the item will never overflow and will always be visible.\nPinned items are excluded from the overflow count.","kind":"property","name":"pinned","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowItemEntry"}],"status":{"status":"complete"},"type":{"references":[],"text":"boolean"}},{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"0","documentation":"Lower-priority items become invisible first when the container overflows.","kind":"property","name":"priority","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowItemEntry"}],"status":{"status":"complete"},"type":{"references":[],"text":"number"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OverflowItemEntry"}},"fingerprint":{"algorithm":"sha256","value":"6b095e42b8c11308b8a36533fdc941d9b4fa49368e77ee4dcc65b5d1423530ee"},"id":"symbol:OverflowItemEntry","name":"OverflowItemEntry","namespaces":["type"],"relationships":[],"type":{"references":[],"text":"OverflowItemEntry"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Internal manager contract used to observe and compute priority overflow.","id":"symbol:OverflowManager:declaration:0","kind":"interface","namespaces":["type"],"source":{"end":4910,"file":"dist/index.d.ts","start":3403},"type":{"references":[],"text":"OverflowManager"}}],"effectiveType":{"members":[{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Add overflow divider","kind":"property","name":"addDivider","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"divider","optional":false,"rest":false,"type":{"references":[],"text":"OverflowDividerEntry"}}],"returnType":{"references":[],"text":"void"},"source":{"end":4511,"file":"dist/index.d.ts","start":4472},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"(divider: OverflowDividerEntry) => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Add overflow items","kind":"property","name":"addItem","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"items","optional":false,"rest":false,"type":{"references":[],"text":"OverflowItemEntry"}}],"returnType":{"references":[],"text":"void"},"source":{"end":3914,"file":"dist/index.d.ts","start":3880},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"(items: OverflowItemEntry) => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Adds an element that opens an overflow menu. This is used to calculate\navailable space and check if additional items need to overflow","kind":"property","name":"addOverflowMenu","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"element","optional":false,"rest":false,"type":{"references":[],"text":"HTMLElement"}}],"returnType":{"references":[],"text":"void"},"source":{"end":4410,"file":"dist/index.d.ts","start":4380},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"(element: HTMLElement) => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Stops observing the container","kind":"property","name":"disconnect","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[],"returnType":{"references":[],"text":"void"},"source":{"end":3684,"file":"dist/index.d.ts","start":3674},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Manually update the overflow sync","kind":"property","name":"forceUpdate","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[],"returnType":{"references":[],"text":"void"},"source":{"end":4193,"file":"dist/index.d.ts","start":4183},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Returns the current overflow snapshot.","kind":"property","name":"getSnapshot","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[],"returnType":{"references":[],"text":"OverflowSnapshot"},"source":{"end":4799,"file":"dist/index.d.ts","start":4777},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => OverflowSnapshot"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Starts observing the container and managing the overflow state","kind":"property","name":"observe","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"container","optional":false,"rest":false,"type":{"references":[],"text":"HTMLElement"}},{"name":"options","optional":true,"rest":false,"type":{"references":[],"text":"ObserveOptions"}}],"returnType":{"references":[],"text":"void"},"source":{"end":3603,"file":"dist/index.d.ts","start":3545},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"(container: HTMLElement, options?: ObserveOptions) => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Remove overflow divider","kind":"property","name":"removeDivider","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"groupId","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"void"},"source":{"end":4604,"file":"dist/index.d.ts","start":4579},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"(groupId: string) => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Remove overflow item","kind":"property","name":"removeItem","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"itemId","optional":false,"rest":false,"type":{"references":[],"text":"string"}}],"returnType":{"references":[],"text":"void"},"source":{"end":4000,"file":"dist/index.d.ts","start":3976},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"(itemId: string) => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Unsets the overflow menu element","kind":"property","name":"removeOverflowMenu","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[],"returnType":{"references":[],"text":"void"},"source":{"end":4696,"file":"dist/index.d.ts","start":4686},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Updates engine options without restarting observation.","kind":"property","name":"setOptions","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"options","optional":false,"rest":false,"type":{"references":[],"text":"Partial<OverflowOptions>"}}],"returnType":{"references":[],"text":"void"},"source":{"end":3823,"file":"dist/index.d.ts","start":3780},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"(options: Partial<OverflowOptions>) => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Subscribes to snapshot changes.","kind":"property","name":"subscribe","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"listener","optional":false,"rest":false,"type":{"references":[],"text":"() => void"}}],"returnType":{"references":[],"text":"() => void"},"source":{"end":4907,"file":"dist/index.d.ts","start":4871},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"(listener: () => void) => () => void"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Manually update the overflow, updates are batched and async","kind":"property","name":"update","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[],"returnType":{"references":[],"text":"void"},"source":{"end":4107,"file":"dist/index.d.ts","start":4097},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowManager"}],"status":{"status":"complete"},"type":{"references":[],"text":"() => void"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OverflowManager"}},"fingerprint":{"algorithm":"sha256","value":"5a5c784a09144ad2a81ae80751052d10f5f9f03cd89daa4ae09ca7863b8e41b9"},"id":"symbol:OverflowManager","name":"OverflowManager","namespaces":["type"],"relationships":[],"type":{"references":[],"text":"OverflowManager"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Options used to initialize or reconfigure overflow observation.","id":"symbol:OverflowOptions:declaration:0","kind":"interface","namespaces":["type"],"source":{"end":6128,"file":"dist/index.d.ts","start":4987},"type":{"references":[],"text":"OverflowOptions"}}],"effectiveType":{"members":[{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"false","documentation":"When true, reserve space as if the overflow menu were visible even with no overflowing items.","kind":"property","name":"hasHiddenItems","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"boolean"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Minimum number of items that must remain visible.","kind":"property","name":"minimumVisible","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"number"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Callback invoked when an individual item's visibility changes.","kind":"property","name":"onUpdateItemVisibility","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"data","optional":false,"rest":false,"type":{"references":[],"text":"OnUpdateItemVisibilityPayload"}}],"returnType":{"references":[],"text":"void"},"source":{"end":1026,"file":"dist/index.d.ts","start":981},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"OnUpdateItemVisibility"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Callback invoked after overflow state is recomputed.","kind":"property","name":"onUpdateOverflow","optional":false,"readonly":false,"signatures":[{"id":"signature:call:0","kind":"call","overload":0,"parameters":[{"name":"data","optional":false,"rest":false,"type":{"references":[],"text":"OverflowEventPayload"}}],"returnType":{"references":[],"text":"void"},"source":{"end":1465,"file":"dist/index.d.ts","start":1429},"typeParameters":[]}],"sources":[{"kind":"local","symbol":"symbol:OverflowOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"OnUpdateOverflow"}},{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"horizontal","documentation":"Overflow axis used for size measurement.","kind":"property","name":"overflowAxis","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"\"horizontal\" | \"vertical\""}},{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"end","documentation":"Direction where items are removed when overflow occurs.","kind":"property","name":"overflowDirection","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"\"start\" | \"end\""}},{"declarationPackages":["@fluentui/priority-overflow"],"defaultValue":"10","documentation":"Padding in pixels reserved at the end of the container before overflow occurs.\nUseful for accounting for extra elements (for example an overflow menu button)\nor margins between items that are difficult to measure in JavaScript.","kind":"property","name":"padding","optional":true,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowOptions"}],"status":{"status":"complete"},"type":{"references":[],"text":"number"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OverflowOptions"}},"fingerprint":{"algorithm":"sha256","value":"71b3e54abe5c05d68d67d8e493b96df9196b368e8442e0d658dcd77af73ddb3c"},"id":"symbol:OverflowOptions","name":"OverflowOptions","namespaces":["type"],"relationships":[],"type":{"references":[],"text":"OverflowOptions"}},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"declarations":[{"documentation":"Indexed, immutable overflow state returned by `OverflowManager.getSnapshot`.\n\nUnlike {@link OverflowEventPayload}, this is shaped for O(1) consumer lookups (item/group\nvisibility by id, item count) rather than ordered item entries.","id":"symbol:OverflowSnapshot:declaration:0","kind":"interface","namespaces":["type"],"source":{"end":6778,"file":"dist/index.d.ts","start":6381},"type":{"references":[],"text":"OverflowSnapshot"}}],"effectiveType":{"members":[{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Current visibility state by group id.","kind":"property","name":"groupVisibility","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowSnapshot"}],"status":{"status":"complete"},"type":{"references":[],"text":"Record<string, OverflowGroupState>"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Number of items currently moved to overflow (invisible).","kind":"property","name":"invisibleItemCount","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowSnapshot"}],"status":{"status":"complete"},"type":{"references":[],"text":"number"}},{"declarationPackages":["@fluentui/priority-overflow"],"documentation":"Visibility of each registered item, keyed by item id.","kind":"property","name":"itemVisibility","optional":false,"readonly":false,"sources":[{"kind":"local","symbol":"symbol:OverflowSnapshot"}],"status":{"status":"complete"},"type":{"references":[],"text":"Record<string, boolean>"}}],"signatures":[],"status":{"reasons":["checker-rendered effective type expressions do not include semantic reference spans"],"status":"partial"},"type":{"references":[],"text":"OverflowSnapshot"}},"fingerprint":{"algorithm":"sha256","value":"2072f2f2c5790b2fce853aa67853425a966f436dd8fb448f3bf32cd3c7205a08"},"id":"symbol:OverflowSnapshot","name":"OverflowSnapshot","namespaces":["type"],"relationships":[],"type":{"references":[],"text":"OverflowSnapshot"}}]}
|
package/dist/metadata/index.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"capabilities":{"api":{"status":"supported"},"effectiveTypes":{"reasons":["checker-derived type strings do not carry semantic reference spans"],"status":"partial"},"guidance":{"reasons":["guidance is outside the declaration generator MVP"],"status":"unsupported"},"search":{"reasons":["search is outside the declaration generator MVP"],"status":"unsupported"}},"completeness":{"api":{"status":"complete"},"guidance":{"reasons":["not generated"],"status":"unavailable"},"search":{"reasons":["not generated"],"status":"unavailable"}},"declarationInputs":[{"conditions":["types","require"],"fingerprint":{"algorithm":"sha256","value":"22aa4a8ac0c57a1cf6b26a8caa56520101c020935221827d26619b1edad22b5f"},"path":"dist/index.d.cts"},{"conditions":["types","import"],"fingerprint":{"algorithm":"sha256","value":"22aa4a8ac0c57a1cf6b26a8caa56520101c020935221827d26619b1edad22b5f"},"path":"dist/index.d.ts"}],"diagnostics":[],"exports":[{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"createOverflowManager","exportKind":"named","id":"route:root:createOverflowManager:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:createOverflowManager"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"createOverflowManager","exportKind":"named","id":"route:root:createOverflowManager:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:createOverflowManager"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"EMPTY_SNAPSHOT","exportKind":"named","id":"route:root:EMPTY_SNAPSHOT:value:types-import","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:EMPTY_SNAPSHOT"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"EMPTY_SNAPSHOT","exportKind":"named","id":"route:root:EMPTY_SNAPSHOT:value:types-require","namespace":"value","target":{"kind":"local","record":"api:root","symbol":"symbol:EMPTY_SNAPSHOT"},"typeOnly":false},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"ObserveOptions","exportKind":"named","id":"route:root:ObserveOptions:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ObserveOptions"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"ObserveOptions","exportKind":"named","id":"route:root:ObserveOptions:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:ObserveOptions"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OnUpdateItemVisibility","exportKind":"named","id":"route:root:OnUpdateItemVisibility:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OnUpdateItemVisibility"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OnUpdateItemVisibility","exportKind":"named","id":"route:root:OnUpdateItemVisibility:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OnUpdateItemVisibility"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OnUpdateItemVisibilityPayload","exportKind":"named","id":"route:root:OnUpdateItemVisibilityPayload:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OnUpdateItemVisibilityPayload"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OnUpdateItemVisibilityPayload","exportKind":"named","id":"route:root:OnUpdateItemVisibilityPayload:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OnUpdateItemVisibilityPayload"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OnUpdateOverflow","exportKind":"named","id":"route:root:OnUpdateOverflow:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OnUpdateOverflow"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OnUpdateOverflow","exportKind":"named","id":"route:root:OnUpdateOverflow:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OnUpdateOverflow"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OverflowAxis","exportKind":"named","id":"route:root:OverflowAxis:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowAxis"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OverflowAxis","exportKind":"named","id":"route:root:OverflowAxis:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowAxis"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OverflowDirection","exportKind":"named","id":"route:root:OverflowDirection:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowDirection"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OverflowDirection","exportKind":"named","id":"route:root:OverflowDirection:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowDirection"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OverflowDividerEntry","exportKind":"named","id":"route:root:OverflowDividerEntry:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowDividerEntry"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OverflowDividerEntry","exportKind":"named","id":"route:root:OverflowDividerEntry:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowDividerEntry"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OverflowEventPayload","exportKind":"named","id":"route:root:OverflowEventPayload:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowEventPayload"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OverflowEventPayload","exportKind":"named","id":"route:root:OverflowEventPayload:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowEventPayload"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OverflowGroupState","exportKind":"named","id":"route:root:OverflowGroupState:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowGroupState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["export name ends with State"],"facet":"state"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OverflowGroupState","exportKind":"named","id":"route:root:OverflowGroupState:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowGroupState"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OverflowItemEntry","exportKind":"named","id":"route:root:OverflowItemEntry:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowItemEntry"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OverflowItemEntry","exportKind":"named","id":"route:root:OverflowItemEntry:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowItemEntry"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OverflowManager","exportKind":"named","id":"route:root:OverflowManager:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowManager"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OverflowManager","exportKind":"named","id":"route:root:OverflowManager:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowManager"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OverflowOptions","exportKind":"named","id":"route:root:OverflowOptions:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowOptions"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OverflowOptions","exportKind":"named","id":"route:root:OverflowOptions:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowOptions"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","import"],"declarationInputs":["dist/index.d.ts"],"entrypoint":".","export":"OverflowSnapshot","exportKind":"named","id":"route:root:OverflowSnapshot:type:types-import","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowSnapshot"},"typeOnly":true},{"classifications":[{"confidence":"heuristic","evidence":["no stronger product facet matched"],"facet":"utility"}],"conditions":["types","require"],"declarationInputs":["dist/index.d.cts"],"entrypoint":".","export":"OverflowSnapshot","exportKind":"named","id":"route:root:OverflowSnapshot:type:types-require","namespace":"type","target":{"kind":"local","record":"api:root","symbol":"symbol:OverflowSnapshot"},"typeOnly":true}],"generator":{"name":"@fluentui/api-metadata","version":"0.0.0"},"kind":"package-index","package":{"name":"@fluentui/priority-overflow","version":"9.74.7-experimental.cli-api.20261006-ccaa611d58.0"},"records":[{"fingerprint":{"algorithm":"sha256","value":"79b42352efe14afbc82c0f1d33508c9cd5a7e7c36a4165e6284577638549d8b3"},"id":"api:root","kind":"api","path":"api/api-root.json","symbols":["symbol:createOverflowManager","symbol:EMPTY_SNAPSHOT","symbol:ObserveOptions","symbol:OnUpdateItemVisibility","symbol:OnUpdateItemVisibilityPayload","symbol:OnUpdateOverflow","symbol:OverflowAxis","symbol:OverflowDirection","symbol:OverflowDividerEntry","symbol:OverflowEventPayload","symbol:OverflowGroupState","symbol:OverflowItemEntry","symbol:OverflowManager","symbol:OverflowOptions","symbol:OverflowSnapshot"]}],"schema":{"major":1,"revision":5},"system":"fluent-v9"}
|