@histoire/vendors 1.0.0-alpha.5 → 1.0.0-beta.2
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 +35 -22
- package/dist/client/b-vue-router.js +2615 -3624
- package/dist/client/b-vue-use.js +87 -77
- package/dist/client/b-vue.js +1 -1
- 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 +535 -0
- 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 +105 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +5 -3
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
- 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/scopes.d.mts +50 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +11 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +9 -0
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +93 -21
- package/dist/client/node_modules/@types/web-bluetooth/package.json +9 -3
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +20 -11
- package/dist/client/node_modules/@vue/compiler-core/package.json +6 -6
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +12 -12
- package/dist/client/node_modules/@vue/compiler-dom/package.json +3 -3
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +3 -2
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +14 -14
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +24 -25
- package/dist/client/node_modules/@vue/reactivity/package.json +2 -2
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +48 -41
- package/dist/client/node_modules/@vue/runtime-core/package.json +3 -3
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +680 -645
- package/dist/client/node_modules/@vue/runtime-dom/package.json +5 -5
- package/dist/client/node_modules/@vue/server-renderer/package.json +4 -4
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +7 -1
- package/dist/client/node_modules/@vue/shared/package.json +1 -1
- package/dist/client/node_modules/@vueuse/core/index.d.mts +6221 -0
- package/dist/client/node_modules/@vueuse/core/index.d.ts +131 -103
- package/dist/client/node_modules/@vueuse/core/metadata.d.mts +1 -0
- package/dist/client/node_modules/@vueuse/core/package.json +4 -4
- package/dist/client/node_modules/@vueuse/metadata/index.d.mts +78 -0
- package/dist/client/node_modules/@vueuse/metadata/package.json +1 -1
- package/dist/client/node_modules/@vueuse/shared/index.d.mts +1260 -0
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +30 -13
- package/dist/client/node_modules/@vueuse/shared/package.json +1 -1
- 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/decode.d.ts +3 -0
- package/dist/client/node_modules/entities/{lib/esm/decode_codepoint.d.ts → dist/commonjs/decode-codepoint.d.ts} +2 -2
- package/dist/client/node_modules/entities/{lib → dist/commonjs}/decode.d.ts +20 -26
- package/dist/client/node_modules/entities/{lib/esm → dist/commonjs}/encode.d.ts +2 -2
- package/dist/client/node_modules/entities/{lib/esm → dist/commonjs}/escape.d.ts +9 -6
- package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
- package/dist/client/node_modules/entities/{lib/esm → dist/commonjs}/index.d.ts +9 -9
- package/dist/client/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
- package/dist/client/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
- package/dist/client/node_modules/entities/dist/commonjs/package.json +3 -0
- package/dist/client/node_modules/entities/{lib/decode_codepoint.d.ts → dist/esm/decode-codepoint.d.ts} +2 -2
- package/dist/client/node_modules/entities/{lib → dist}/esm/decode.d.ts +20 -26
- package/dist/client/node_modules/entities/{lib → dist/esm}/encode.d.ts +2 -2
- package/dist/client/node_modules/entities/{lib → dist/esm}/escape.d.ts +9 -6
- package/dist/client/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
- package/dist/client/node_modules/entities/{lib → dist/esm}/index.d.ts +9 -9
- package/dist/client/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
- package/dist/client/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
- package/dist/client/node_modules/entities/dist/esm/package.json +3 -0
- package/dist/client/node_modules/entities/escape.d.ts +3 -0
- package/dist/client/node_modules/entities/package.json +99 -69
- package/dist/client/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
- 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 +66 -0
- 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/dist/client/node_modules/vue/compiler-sfc/index.d.mts +1 -0
- package/dist/client/node_modules/vue/dist/vue.d.mts +7 -0
- package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +2 -2
- package/dist/client/node_modules/vue/jsx.d.ts +1 -1
- package/dist/client/node_modules/vue/package.json +6 -6
- package/dist/client/node_modules/vue/server-renderer/index.d.mts +1 -0
- package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +38 -0
- package/dist/client/node_modules/vue-router/dist/router-CWoNjPRp.d.mts +1973 -0
- package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +361 -0
- package/dist/client/node_modules/vue-router/package.json +43 -39
- package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -0
- package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +1 -4
- package/dist/client/vue.runtime.esm-bundler.js +2987 -2699
- package/package.json +4 -3
- package/rollup.config.mjs +12 -2
- package/tsconfig.json +3 -1
- package/dist/client/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
- package/dist/client/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
- package/dist/client/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
- package/dist/client/node_modules/entities/lib/esm/package.json +0 -1
- package/dist/client/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
- package/dist/client/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
- package/dist/client/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +0 -1836
- /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
- /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
- /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
- /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
- /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read an ancestor frame only when positioning needs traversal and parent is same-origin.
|
|
3
|
+
* Backport follows Floating UI's current getFrameElement WindowProxy guard:
|
|
4
|
+
* https://github.com/floating-ui/floating-ui/blob/master/packages/utils/src/dom.ts
|
|
5
|
+
* @param {Window} window Source window owning measured element.
|
|
6
|
+
* @param {boolean} needed False for reference/offset-parent coordinates in one document.
|
|
7
|
+
* @returns {Element | null} Permitted containing frame, otherwise no ancestor traversal.
|
|
8
|
+
*/
|
|
9
|
+
export function getFloatingUiFrame(window, needed = true) {
|
|
10
|
+
return needed && window.parent && Object.getPrototypeOf(window.parent) ? window.frameElement : null
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Patch pinned Floating UI 1.1.1 during vendor build; source dependencies stay untouched.
|
|
15
|
+
* Fail on upstream changes rather than silently shipping an obsolete backport.
|
|
16
|
+
* @param {string} code Resolved dependency module source.
|
|
17
|
+
* @param {string} id Rollup module identity.
|
|
18
|
+
* @returns {string | null} Guarded dependency code or no transform for unrelated modules.
|
|
19
|
+
*/
|
|
20
|
+
export function guardFloatingUiFrameReads(code, id) {
|
|
21
|
+
if (!/\/@floating-ui\/dom\/dist\/floating-ui\.dom\.(?:mjs|esm\.js)$/.test(id.replaceAll('\\', '/'))) return null
|
|
22
|
+
const first = 'let currentIFrame = win.frameElement;'
|
|
23
|
+
const next = 'currentIFrame = getWindow(currentIFrame).frameElement;'
|
|
24
|
+
if (!code.includes(first) || !code.includes(next)) throw new Error('Floating UI frame backport requires review')
|
|
25
|
+
return `${getFloatingUiFrame.toString()}\n${code
|
|
26
|
+
.replace(first, 'let currentIFrame = getFloatingUiFrame(win, Boolean(offsetParent && offsetWin !== win));')
|
|
27
|
+
.replace(next, 'currentIFrame = getFloatingUiFrame(getWindow(currentIFrame));')}`
|
|
28
|
+
}
|
|
@@ -44,8 +44,9 @@ function getOppositeAxis(axis) {
|
|
|
44
44
|
function getAxisLength(axis) {
|
|
45
45
|
return axis === 'y' ? 'height' : 'width';
|
|
46
46
|
}
|
|
47
|
+
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
47
48
|
function getSideAxis(placement) {
|
|
48
|
-
return
|
|
49
|
+
return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
|
|
49
50
|
}
|
|
50
51
|
function getAlignmentAxis(placement) {
|
|
51
52
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -70,19 +71,19 @@ function getExpandedPlacements(placement) {
|
|
|
70
71
|
function getOppositeAlignmentPlacement(placement) {
|
|
71
72
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
72
73
|
}
|
|
74
|
+
const lrPlacement = ['left', 'right'];
|
|
75
|
+
const rlPlacement = ['right', 'left'];
|
|
76
|
+
const tbPlacement = ['top', 'bottom'];
|
|
77
|
+
const btPlacement = ['bottom', 'top'];
|
|
73
78
|
function getSideList(side, isStart, rtl) {
|
|
74
|
-
const lr = ['left', 'right'];
|
|
75
|
-
const rl = ['right', 'left'];
|
|
76
|
-
const tb = ['top', 'bottom'];
|
|
77
|
-
const bt = ['bottom', 'top'];
|
|
78
79
|
switch (side) {
|
|
79
80
|
case 'top':
|
|
80
81
|
case 'bottom':
|
|
81
|
-
if (rtl) return isStart ?
|
|
82
|
-
return isStart ?
|
|
82
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
83
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
83
84
|
case 'left':
|
|
84
85
|
case 'right':
|
|
85
|
-
return isStart ?
|
|
86
|
+
return isStart ? tbPlacement : btPlacement;
|
|
86
87
|
default:
|
|
87
88
|
return [];
|
|
88
89
|
}
|
|
@@ -605,16 +606,22 @@ const flip = function (options) {
|
|
|
605
606
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
606
607
|
const nextPlacement = placements[nextIndex];
|
|
607
608
|
if (nextPlacement) {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
609
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
610
|
+
if (!ignoreCrossAxisOverflow ||
|
|
611
|
+
// We leave the current main axis only if every placement on that axis
|
|
612
|
+
// overflows the main axis.
|
|
613
|
+
overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
614
|
+
// Try next placement and re-run the lifecycle.
|
|
615
|
+
return {
|
|
616
|
+
data: {
|
|
617
|
+
index: nextIndex,
|
|
618
|
+
overflows: overflowsData
|
|
619
|
+
},
|
|
620
|
+
reset: {
|
|
621
|
+
placement: nextPlacement
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
}
|
|
618
625
|
}
|
|
619
626
|
|
|
620
627
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -860,6 +867,8 @@ const inline = function (options) {
|
|
|
860
867
|
};
|
|
861
868
|
};
|
|
862
869
|
|
|
870
|
+
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
871
|
+
|
|
863
872
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
864
873
|
// Derivable.
|
|
865
874
|
|
|
@@ -873,7 +882,7 @@ async function convertValueToCoords(state, options) {
|
|
|
873
882
|
const side = getSide(placement);
|
|
874
883
|
const alignment = getAlignment(placement);
|
|
875
884
|
const isVertical = getSideAxis(placement) === 'y';
|
|
876
|
-
const mainAxisMulti =
|
|
885
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
877
886
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
878
887
|
const rawValue = evaluate(options, state);
|
|
879
888
|
|
|
@@ -1073,7 +1082,7 @@ const limitShift = function (options) {
|
|
|
1073
1082
|
if (checkCrossAxis) {
|
|
1074
1083
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
1075
1084
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
1076
|
-
const isOriginSide =
|
|
1085
|
+
const isOriginSide = originSides.has(getSide(placement));
|
|
1077
1086
|
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
1078
1087
|
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
1079
1088
|
if (crossAxisCoord < limitMin) {
|
|
@@ -1174,6 +1183,10 @@ const size = function (options) {
|
|
|
1174
1183
|
};
|
|
1175
1184
|
};
|
|
1176
1185
|
|
|
1186
|
+
function getFloatingUiFrame(window, needed = true) {
|
|
1187
|
+
return needed && window.parent && Object.getPrototypeOf(window.parent) ? window.frameElement : null
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1177
1190
|
function getWindow(node) {
|
|
1178
1191
|
var _node$ownerDocument;
|
|
1179
1192
|
return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
@@ -1345,7 +1358,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
1345
1358
|
if (domElement) {
|
|
1346
1359
|
const win = getWindow(domElement);
|
|
1347
1360
|
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
1348
|
-
let currentIFrame = win
|
|
1361
|
+
let currentIFrame = getFloatingUiFrame(win, Boolean(offsetParent && offsetWin !== win));
|
|
1349
1362
|
while (currentIFrame && offsetParent && offsetWin !== win) {
|
|
1350
1363
|
const iframeScale = getScale(currentIFrame);
|
|
1351
1364
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
@@ -1358,7 +1371,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
1358
1371
|
height *= iframeScale.y;
|
|
1359
1372
|
x += iframeRect.x;
|
|
1360
1373
|
y += iframeRect.y;
|
|
1361
|
-
currentIFrame = getWindow(currentIFrame)
|
|
1374
|
+
currentIFrame = getFloatingUiFrame(getWindow(currentIFrame));
|
|
1362
1375
|
}
|
|
1363
1376
|
}
|
|
1364
1377
|
return {
|