@histoire/vendors 1.0.0-beta.1 → 1.0.0-beta.3
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/build/floating-ui-frames.mjs +28 -0
- package/dist/client/b-floating-vue.js +6 -2
- package/dist/client/node_modules/@babel/helper-string-parser/package.json +1 -1
- package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +1 -1
- package/dist/client/node_modules/@babel/parser/package.json +7 -7
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +24 -26
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +183 -183
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +203 -208
- package/dist/client/node_modules/@babel/types/package.json +6 -6
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +75 -68
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +75 -68
- package/dist/client/node_modules/@floating-ui/core/package.json +3 -3
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +5 -3
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +5 -3
- package/dist/client/node_modules/@floating-ui/utils/package.json +2 -2
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +2 -1
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts +5 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +2 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +4 -2
- package/dist/client/node_modules/csstype/index.d.ts +2326 -782
- package/dist/client/node_modules/csstype/package.json +26 -26
- package/dist/client/node_modules/entities/dist/commonjs/decode.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/decode.d.ts +2 -0
- package/dist/client/node_modules/entities/package.json +18 -11
- package/dist/client/node_modules/nanoid/package.json +3 -3
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/comment.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/container.d.ts +17 -26
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +4 -5
- package/dist/client/node_modules/postcss/lib/document.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/input.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +3 -4
- package/dist/client/node_modules/postcss/lib/list.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/node.d.ts +2 -3
- package/dist/client/node_modules/postcss/lib/parse.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/postcss.d.mts +0 -3
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +10 -4
- package/dist/client/node_modules/postcss/lib/previous-map.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/processor.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/result.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/root.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/rule.d.ts +12 -12
- package/dist/client/node_modules/postcss/lib/stringifier.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/stringify.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/warning.d.ts +0 -1
- package/dist/client/node_modules/postcss/package.json +45 -45
- package/dist/client/node_modules/source-map-js/package.json +14 -7
- package/dist/client/node_modules/source-map-js/source-map.d.ts +177 -63
- package/package.json +3 -2
- package/rollup.config.mjs +11 -1
- package/tsconfig.json +3 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babel/types",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.29.15",
|
|
4
4
|
"description": "Babel Types is a Lodash-esque utility library for AST nodes",
|
|
5
5
|
"author": "The Babel Team (https://babel.dev/team)",
|
|
6
6
|
"homepage": "https://babel.dev/docs/en/next/babel-types",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
},
|
|
17
17
|
"main": "./lib/index.js",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@babel/helper-string-parser": "^7.
|
|
20
|
-
"@babel/helper-validator-identifier": "^7.
|
|
19
|
+
"@babel/helper-string-parser": "^7.29.15",
|
|
20
|
+
"@babel/helper-validator-identifier": "^7.29.7"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@babel/generator": "^7.
|
|
24
|
-
"@babel/
|
|
25
|
-
"
|
|
23
|
+
"@babel/generator": "^7.29.15",
|
|
24
|
+
"@babel/helper-fixtures": "^7.29.7",
|
|
25
|
+
"@babel/parser": "^7.29.15"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=6.9.0"
|
|
@@ -37,7 +37,7 @@ export declare interface ArrowOptions {
|
|
|
37
37
|
* Useful when the floating element has rounded corners.
|
|
38
38
|
* @default 0
|
|
39
39
|
*/
|
|
40
|
-
padding?: Padding;
|
|
40
|
+
padding?: Padding | undefined;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
@@ -54,28 +54,32 @@ export declare interface AutoPlacementOptions extends DetectOverflowOptions {
|
|
|
54
54
|
* whether to check for most space along this axis.
|
|
55
55
|
* @default false
|
|
56
56
|
*/
|
|
57
|
-
crossAxis?: boolean;
|
|
57
|
+
crossAxis?: boolean | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Choose placements with a particular alignment.
|
|
60
60
|
* @default undefined
|
|
61
61
|
*/
|
|
62
|
-
alignment?: Alignment | null;
|
|
62
|
+
alignment?: Alignment | null | undefined;
|
|
63
63
|
/**
|
|
64
64
|
* Whether to choose placements with the opposite alignment if the preferred
|
|
65
65
|
* alignment does not fit.
|
|
66
66
|
* @default true
|
|
67
67
|
*/
|
|
68
|
-
autoAlignment?: boolean;
|
|
68
|
+
autoAlignment?: boolean | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* Which placements are allowed to be chosen. Placements must be within the
|
|
71
71
|
* `alignment` option if explicitly set.
|
|
72
72
|
* @default allPlacements (variable)
|
|
73
73
|
*/
|
|
74
|
-
allowedPlacements?: Array<Placement
|
|
74
|
+
allowedPlacements?: Array<Placement> | undefined;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export { Axis }
|
|
78
78
|
|
|
79
|
+
declare type BivariantCallback<T extends (...args: any[]) => any> = {
|
|
80
|
+
bivariance(...args: Parameters<T>): ReturnType<T>;
|
|
81
|
+
}['bivariance'];
|
|
82
|
+
|
|
79
83
|
export declare type Boundary = any;
|
|
80
84
|
|
|
81
85
|
export { ClientRectObject }
|
|
@@ -99,16 +103,16 @@ export declare interface ComputePositionConfig {
|
|
|
99
103
|
/**
|
|
100
104
|
* Where to place the floating element relative to the reference element.
|
|
101
105
|
*/
|
|
102
|
-
placement?: Placement;
|
|
106
|
+
placement?: Placement | undefined;
|
|
103
107
|
/**
|
|
104
108
|
* The strategy to use when positioning the floating element.
|
|
105
109
|
*/
|
|
106
|
-
strategy?: Strategy;
|
|
110
|
+
strategy?: Strategy | undefined;
|
|
107
111
|
/**
|
|
108
112
|
* Array of middleware objects to modify the positioning or provide data for
|
|
109
113
|
* rendering.
|
|
110
114
|
*/
|
|
111
|
-
middleware?: Array<Middleware | null | undefined | false
|
|
115
|
+
middleware?: Array<Middleware | null | undefined | false> | undefined;
|
|
112
116
|
}
|
|
113
117
|
|
|
114
118
|
export declare interface ComputePositionReturn extends Coords {
|
|
@@ -148,28 +152,28 @@ export declare interface DetectOverflowOptions {
|
|
|
148
152
|
* The clipping element(s) or area in which overflow will be checked.
|
|
149
153
|
* @default 'clippingAncestors'
|
|
150
154
|
*/
|
|
151
|
-
boundary?: Boundary;
|
|
155
|
+
boundary?: Boundary | undefined;
|
|
152
156
|
/**
|
|
153
157
|
* The root clipping area in which overflow will be checked.
|
|
154
158
|
* @default 'viewport'
|
|
155
159
|
*/
|
|
156
|
-
rootBoundary?: RootBoundary;
|
|
160
|
+
rootBoundary?: RootBoundary | undefined;
|
|
157
161
|
/**
|
|
158
162
|
* The element in which overflow is being checked relative to a boundary.
|
|
159
163
|
* @default 'floating'
|
|
160
164
|
*/
|
|
161
|
-
elementContext?: ElementContext;
|
|
165
|
+
elementContext?: ElementContext | undefined;
|
|
162
166
|
/**
|
|
163
167
|
* Whether to check for overflow using the alternate element's boundary
|
|
164
168
|
* (`clippingAncestors` boundary only).
|
|
165
169
|
* @default false
|
|
166
170
|
*/
|
|
167
|
-
altBoundary?: boolean;
|
|
171
|
+
altBoundary?: boolean | undefined;
|
|
168
172
|
/**
|
|
169
173
|
* Virtual padding for the resolved overflow detection offsets.
|
|
170
174
|
* @default 0
|
|
171
175
|
*/
|
|
172
|
-
padding?: Padding;
|
|
176
|
+
padding?: Padding | undefined;
|
|
173
177
|
}
|
|
174
178
|
|
|
175
179
|
export { Dimensions }
|
|
@@ -197,7 +201,7 @@ export declare interface FlipOptions extends DetectOverflowOptions {
|
|
|
197
201
|
* whether overflow along this axis is checked to perform a flip.
|
|
198
202
|
* @default true
|
|
199
203
|
*/
|
|
200
|
-
mainAxis?: boolean;
|
|
204
|
+
mainAxis?: boolean | undefined;
|
|
201
205
|
/**
|
|
202
206
|
* The axis that runs along the alignment of the floating element. Determines
|
|
203
207
|
* whether overflow along this axis is checked to perform a flip.
|
|
@@ -206,29 +210,29 @@ export declare interface FlipOptions extends DetectOverflowOptions {
|
|
|
206
210
|
* - `'alignment'`: Whether to check cross axis overflow for alignment flipping only.
|
|
207
211
|
* @default true
|
|
208
212
|
*/
|
|
209
|
-
crossAxis?: boolean | 'alignment';
|
|
213
|
+
crossAxis?: boolean | 'alignment' | undefined;
|
|
210
214
|
/**
|
|
211
215
|
* Placements to try sequentially if the preferred `placement` does not fit.
|
|
212
216
|
* @default [oppositePlacement] (computed)
|
|
213
217
|
*/
|
|
214
|
-
fallbackPlacements?: Array<Placement
|
|
218
|
+
fallbackPlacements?: Array<Placement> | undefined;
|
|
215
219
|
/**
|
|
216
220
|
* What strategy to use when no placements fit.
|
|
217
221
|
* @default 'bestFit'
|
|
218
222
|
*/
|
|
219
|
-
fallbackStrategy?: 'bestFit' | 'initialPlacement';
|
|
223
|
+
fallbackStrategy?: 'bestFit' | 'initialPlacement' | undefined;
|
|
220
224
|
/**
|
|
221
225
|
* Whether to allow fallback to the perpendicular axis of the preferred
|
|
222
226
|
* placement, and if so, which side direction along the axis to prefer.
|
|
223
227
|
* @default 'none' (disallow fallback)
|
|
224
228
|
*/
|
|
225
|
-
fallbackAxisSideDirection?: 'none' | 'start' | 'end';
|
|
229
|
+
fallbackAxisSideDirection?: 'none' | 'start' | 'end' | undefined;
|
|
226
230
|
/**
|
|
227
231
|
* Whether to flip to placements with the opposite alignment if they fit
|
|
228
232
|
* better.
|
|
229
233
|
* @default true
|
|
230
234
|
*/
|
|
231
|
-
flipAlignment?: boolean;
|
|
235
|
+
flipAlignment?: boolean | undefined;
|
|
232
236
|
}
|
|
233
237
|
|
|
234
238
|
export declare type FloatingElement = any;
|
|
@@ -244,7 +248,7 @@ export declare interface HideOptions extends DetectOverflowOptions {
|
|
|
244
248
|
/**
|
|
245
249
|
* The strategy used to determine when to hide the floating element.
|
|
246
250
|
*/
|
|
247
|
-
strategy?: 'referenceHidden' | 'escaped';
|
|
251
|
+
strategy?: 'referenceHidden' | 'escaped' | undefined;
|
|
248
252
|
}
|
|
249
253
|
|
|
250
254
|
/**
|
|
@@ -259,17 +263,17 @@ export declare interface InlineOptions {
|
|
|
259
263
|
* Viewport-relative `x` coordinate to choose a `ClientRect`.
|
|
260
264
|
* @default undefined
|
|
261
265
|
*/
|
|
262
|
-
x?: number;
|
|
266
|
+
x?: number | undefined;
|
|
263
267
|
/**
|
|
264
268
|
* Viewport-relative `y` coordinate to choose a `ClientRect`.
|
|
265
269
|
* @default undefined
|
|
266
270
|
*/
|
|
267
|
-
y?: number;
|
|
271
|
+
y?: number | undefined;
|
|
268
272
|
/**
|
|
269
273
|
* Represents the padding around a disjoined rect when choosing it.
|
|
270
274
|
* @default 2
|
|
271
275
|
*/
|
|
272
|
-
padding?: Padding;
|
|
276
|
+
padding?: Padding | undefined;
|
|
273
277
|
}
|
|
274
278
|
|
|
275
279
|
export { Length }
|
|
@@ -287,12 +291,12 @@ declare type LimitShiftOffset = number | {
|
|
|
287
291
|
* Offset the limiting of the axis that runs along the alignment of the
|
|
288
292
|
* floating element.
|
|
289
293
|
*/
|
|
290
|
-
mainAxis?: number;
|
|
294
|
+
mainAxis?: number | undefined;
|
|
291
295
|
/**
|
|
292
296
|
* Offset the limiting of the axis that runs along the side of the
|
|
293
297
|
* floating element.
|
|
294
298
|
*/
|
|
295
|
-
crossAxis?: number;
|
|
299
|
+
crossAxis?: number | undefined;
|
|
296
300
|
};
|
|
297
301
|
|
|
298
302
|
export declare interface LimitShiftOptions {
|
|
@@ -302,16 +306,16 @@ export declare interface LimitShiftOptions {
|
|
|
302
306
|
* - positive = start limiting earlier
|
|
303
307
|
* - negative = start limiting later
|
|
304
308
|
*/
|
|
305
|
-
offset?: LimitShiftOffset | Derivable<LimitShiftOffset
|
|
309
|
+
offset?: LimitShiftOffset | Derivable<LimitShiftOffset> | undefined;
|
|
306
310
|
/**
|
|
307
311
|
* Whether to limit the axis that runs along the alignment of the floating
|
|
308
312
|
* element.
|
|
309
313
|
*/
|
|
310
|
-
mainAxis?: boolean;
|
|
314
|
+
mainAxis?: boolean | undefined;
|
|
311
315
|
/**
|
|
312
316
|
* Whether to limit the axis that runs along the side of the floating element.
|
|
313
317
|
*/
|
|
314
|
-
crossAxis?: boolean;
|
|
318
|
+
crossAxis?: boolean | undefined;
|
|
315
319
|
}
|
|
316
320
|
|
|
317
321
|
export declare type Middleware = {
|
|
@@ -327,48 +331,48 @@ export declare type MiddlewareArguments = MiddlewareState;
|
|
|
327
331
|
|
|
328
332
|
export declare interface MiddlewareData {
|
|
329
333
|
[key: string]: any;
|
|
330
|
-
arrow?: Partial<Coords> & {
|
|
334
|
+
arrow?: (Partial<Coords> & {
|
|
331
335
|
centerOffset: number;
|
|
332
|
-
alignmentOffset?: number;
|
|
333
|
-
};
|
|
336
|
+
alignmentOffset?: number | undefined;
|
|
337
|
+
}) | undefined;
|
|
334
338
|
autoPlacement?: {
|
|
335
|
-
index?: number;
|
|
339
|
+
index?: number | undefined;
|
|
336
340
|
overflows: Array<{
|
|
337
341
|
placement: Placement;
|
|
338
342
|
overflows: Array<number>;
|
|
339
343
|
}>;
|
|
340
|
-
};
|
|
344
|
+
} | undefined;
|
|
341
345
|
flip?: {
|
|
342
|
-
index?: number;
|
|
346
|
+
index?: number | undefined;
|
|
343
347
|
overflows: Array<{
|
|
344
348
|
placement: Placement;
|
|
345
349
|
overflows: Array<number>;
|
|
346
350
|
}>;
|
|
347
|
-
};
|
|
351
|
+
} | undefined;
|
|
348
352
|
hide?: {
|
|
349
|
-
referenceHidden?: boolean;
|
|
350
|
-
escaped?: boolean;
|
|
351
|
-
referenceHiddenOffsets?: SideObject;
|
|
352
|
-
escapedOffsets?: SideObject;
|
|
353
|
-
};
|
|
354
|
-
offset?: Coords & {
|
|
353
|
+
referenceHidden?: boolean | undefined;
|
|
354
|
+
escaped?: boolean | undefined;
|
|
355
|
+
referenceHiddenOffsets?: SideObject | undefined;
|
|
356
|
+
escapedOffsets?: SideObject | undefined;
|
|
357
|
+
} | undefined;
|
|
358
|
+
offset?: (Coords & {
|
|
355
359
|
placement: Placement;
|
|
356
|
-
};
|
|
357
|
-
shift?: Coords & {
|
|
360
|
+
}) | undefined;
|
|
361
|
+
shift?: (Coords & {
|
|
358
362
|
enabled: {
|
|
359
363
|
[key in Axis]: boolean;
|
|
360
364
|
};
|
|
361
|
-
};
|
|
365
|
+
}) | undefined;
|
|
362
366
|
}
|
|
363
367
|
|
|
364
368
|
export declare interface MiddlewareReturn extends Partial<Coords> {
|
|
365
369
|
data?: {
|
|
366
370
|
[key: string]: any;
|
|
367
|
-
};
|
|
371
|
+
} | undefined;
|
|
368
372
|
reset?: boolean | {
|
|
369
|
-
placement?: Placement;
|
|
370
|
-
rects?: boolean | ElementRects;
|
|
371
|
-
};
|
|
373
|
+
placement?: Placement | undefined;
|
|
374
|
+
rects?: boolean | ElementRects | undefined;
|
|
375
|
+
} | undefined;
|
|
372
376
|
}
|
|
373
377
|
|
|
374
378
|
export declare interface MiddlewareState extends Coords {
|
|
@@ -378,7 +382,9 @@ export declare interface MiddlewareState extends Coords {
|
|
|
378
382
|
middlewareData: MiddlewareData;
|
|
379
383
|
elements: Elements;
|
|
380
384
|
rects: ElementRects;
|
|
381
|
-
platform:
|
|
385
|
+
platform: {
|
|
386
|
+
detectOverflow: typeof detectOverflow;
|
|
387
|
+
} & Platform;
|
|
382
388
|
}
|
|
383
389
|
|
|
384
390
|
/**
|
|
@@ -399,13 +405,13 @@ declare type OffsetValue = number | {
|
|
|
399
405
|
* element.
|
|
400
406
|
* @default 0
|
|
401
407
|
*/
|
|
402
|
-
mainAxis?: number;
|
|
408
|
+
mainAxis?: number | undefined;
|
|
403
409
|
/**
|
|
404
410
|
* The axis that runs along the alignment of the floating element.
|
|
405
411
|
* Represents the skidding between the reference and floating element.
|
|
406
412
|
* @default 0
|
|
407
413
|
*/
|
|
408
|
-
crossAxis?: number;
|
|
414
|
+
crossAxis?: number | undefined;
|
|
409
415
|
/**
|
|
410
416
|
* The same axis as `crossAxis` but applies only to aligned placements
|
|
411
417
|
* and inverts the `end` alignment. When set to a number, it overrides the
|
|
@@ -416,7 +422,7 @@ declare type OffsetValue = number | {
|
|
|
416
422
|
* the reverse.
|
|
417
423
|
* @default null
|
|
418
424
|
*/
|
|
419
|
-
alignmentAxis?: number | null;
|
|
425
|
+
alignmentAxis?: number | null | undefined;
|
|
420
426
|
};
|
|
421
427
|
|
|
422
428
|
export { Padding }
|
|
@@ -440,21 +446,22 @@ export declare interface Platform {
|
|
|
440
446
|
strategy: Strategy;
|
|
441
447
|
}) => Promisable<Rect>;
|
|
442
448
|
getDimensions: (element: any) => Promisable<Dimensions>;
|
|
443
|
-
convertOffsetParentRelativeRectToViewportRelativeRect?: (args: {
|
|
444
|
-
elements?: Elements;
|
|
449
|
+
convertOffsetParentRelativeRectToViewportRelativeRect?: ((args: {
|
|
450
|
+
elements?: Elements | undefined;
|
|
445
451
|
rect: Rect;
|
|
446
452
|
offsetParent: any;
|
|
447
453
|
strategy: Strategy;
|
|
448
|
-
}) => Promisable<Rect
|
|
449
|
-
getOffsetParent?: (element: any) => Promisable<any
|
|
450
|
-
isElement?: (value: any) => Promisable<boolean
|
|
451
|
-
getDocumentElement?: (element: any) => Promisable<any
|
|
452
|
-
getClientRects?: (element: any) => Promisable<Array<ClientRectObject
|
|
453
|
-
isRTL?: (element: any) => Promisable<boolean
|
|
454
|
-
getScale?: (element: any) => Promisable<{
|
|
454
|
+
}) => Promisable<Rect>) | undefined;
|
|
455
|
+
getOffsetParent?: ((element: any) => Promisable<any>) | undefined;
|
|
456
|
+
isElement?: ((value: any) => Promisable<boolean>) | undefined;
|
|
457
|
+
getDocumentElement?: ((element: any) => Promisable<any>) | undefined;
|
|
458
|
+
getClientRects?: ((element: any) => Promisable<Array<ClientRectObject>>) | undefined;
|
|
459
|
+
isRTL?: ((element: any) => Promisable<boolean>) | undefined;
|
|
460
|
+
getScale?: ((element: any) => Promisable<{
|
|
455
461
|
x: number;
|
|
456
462
|
y: number;
|
|
457
|
-
}
|
|
463
|
+
}>) | undefined;
|
|
464
|
+
detectOverflow?: typeof detectOverflow | undefined;
|
|
458
465
|
}
|
|
459
466
|
|
|
460
467
|
declare type Promisable<T> = T | Promise<T>;
|
|
@@ -465,7 +472,7 @@ export { rectToClientRect }
|
|
|
465
472
|
|
|
466
473
|
export declare type ReferenceElement = any;
|
|
467
474
|
|
|
468
|
-
export declare type RootBoundary = 'viewport' | 'document' | Rect;
|
|
475
|
+
export declare type RootBoundary = 'viewport' | 'layoutViewport' | 'document' | Rect;
|
|
469
476
|
|
|
470
477
|
/**
|
|
471
478
|
* Optimizes the visibility of the floating element by shifting it in order to
|
|
@@ -480,13 +487,13 @@ export declare interface ShiftOptions extends DetectOverflowOptions {
|
|
|
480
487
|
* whether overflow along this axis is checked to perform shifting.
|
|
481
488
|
* @default true
|
|
482
489
|
*/
|
|
483
|
-
mainAxis?: boolean;
|
|
490
|
+
mainAxis?: boolean | undefined;
|
|
484
491
|
/**
|
|
485
492
|
* The axis that runs along the side of the floating element. Determines
|
|
486
493
|
* whether overflow along this axis is checked to perform shifting.
|
|
487
494
|
* @default false
|
|
488
495
|
*/
|
|
489
|
-
crossAxis?: boolean;
|
|
496
|
+
crossAxis?: boolean | undefined;
|
|
490
497
|
/**
|
|
491
498
|
* Accepts a function that limits the shifting done in order to prevent
|
|
492
499
|
* detachment.
|
|
@@ -494,7 +501,7 @@ export declare interface ShiftOptions extends DetectOverflowOptions {
|
|
|
494
501
|
limiter?: {
|
|
495
502
|
fn: (state: MiddlewareState) => Coords;
|
|
496
503
|
options?: any;
|
|
497
|
-
};
|
|
504
|
+
} | undefined;
|
|
498
505
|
}
|
|
499
506
|
|
|
500
507
|
export { Side }
|
|
@@ -515,10 +522,10 @@ export declare interface SizeOptions extends DetectOverflowOptions {
|
|
|
515
522
|
* to change its size.
|
|
516
523
|
* @default undefined
|
|
517
524
|
*/
|
|
518
|
-
apply
|
|
525
|
+
apply?: BivariantCallback<(args: MiddlewareState & {
|
|
519
526
|
availableWidth: number;
|
|
520
527
|
availableHeight: number;
|
|
521
|
-
})
|
|
528
|
+
}) => void | Promise<void>> | undefined;
|
|
522
529
|
}
|
|
523
530
|
|
|
524
531
|
export { Strategy }
|