@anoki/fse-ui 1.0.426 → 1.0.428
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/dist/index.cjs16.js +1 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs291.js +1 -1
- package/dist/index.cjs292.js +1 -1
- package/dist/index.cjs293.js +1 -1
- package/dist/index.cjs294.js +2 -0
- package/dist/index.cjs294.js.map +1 -0
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs295.js.map +1 -1
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs296.js.map +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs297.js.map +1 -1
- package/dist/index.cjs298.js +1 -1
- package/dist/index.cjs298.js.map +1 -1
- package/dist/index.cjs299.js +1 -1
- package/dist/index.cjs299.js.map +1 -1
- package/dist/index.cjs300.js +1 -1
- package/dist/index.cjs300.js.map +1 -1
- package/dist/index.cjs301.js +1 -1
- package/dist/index.cjs301.js.map +1 -1
- package/dist/index.cjs302.js +1 -1
- package/dist/index.cjs302.js.map +1 -1
- package/dist/index.cjs303.js +1 -1
- package/dist/index.cjs303.js.map +1 -1
- package/dist/index.cjs304.js +1 -1
- package/dist/index.cjs304.js.map +1 -1
- package/dist/index.cjs305.js +1 -1
- package/dist/index.cjs305.js.map +1 -1
- package/dist/index.cjs306.js +1 -1
- package/dist/index.cjs306.js.map +1 -1
- package/dist/index.cjs307.js +1 -1
- package/dist/index.cjs307.js.map +1 -1
- package/dist/index.cjs309.js +1 -1
- package/dist/index.cjs312.js +1 -1
- package/dist/index.cjs313.js +1 -1
- package/dist/index.cjs314.js +1 -1
- package/dist/index.cjs314.js.map +1 -1
- package/dist/index.cjs315.js +1 -1
- package/dist/index.cjs315.js.map +1 -1
- package/dist/index.cjs316.js +1 -1
- package/dist/index.cjs316.js.map +1 -1
- package/dist/index.cjs317.js +2 -0
- package/dist/index.cjs317.js.map +1 -0
- package/dist/index.cjs318.js +2 -0
- package/dist/index.cjs318.js.map +1 -0
- package/dist/index.cjs319.js +2 -0
- package/dist/index.cjs319.js.map +1 -0
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs320.js.map +1 -1
- package/dist/index.cjs321.js +4 -1
- package/dist/index.cjs321.js.map +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs322.js.map +1 -1
- package/dist/index.cjs323.js +1 -4
- package/dist/index.cjs323.js.map +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs324.js.map +1 -1
- package/dist/index.cjs325.js +1 -1
- package/dist/index.cjs325.js.map +1 -1
- package/dist/index.cjs326.js +1 -1
- package/dist/index.cjs326.js.map +1 -1
- package/dist/index.cjs327.js +38 -1
- package/dist/index.cjs327.js.map +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs328.js.map +1 -1
- package/dist/index.cjs329.js +1 -38
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs334.js +1 -1
- package/dist/index.cjs334.js.map +1 -1
- package/dist/{index.cjs341.js → index.cjs335.js} +1 -1
- package/dist/{index.cjs341.js.map → index.cjs335.js.map} +1 -1
- package/dist/index.cjs336.js +2 -0
- package/dist/index.cjs336.js.map +1 -0
- package/dist/{index.cjs343.js → index.cjs337.js} +2 -2
- package/dist/{index.cjs343.js.map → index.cjs337.js.map} +1 -1
- package/dist/{index.cjs344.js → index.cjs338.js} +2 -2
- package/dist/{index.cjs344.js.map → index.cjs338.js.map} +1 -1
- package/dist/{index.cjs345.js → index.cjs339.js} +1 -1
- package/dist/{index.cjs345.js.map → index.cjs339.js.map} +1 -1
- package/dist/index.cjs342.js +1 -1
- package/dist/index.cjs342.js.map +1 -1
- package/dist/index.es16.js +54 -44
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es190.js +1 -1
- package/dist/index.es197.js +2 -2
- package/dist/index.es208.js +8 -8
- package/dist/index.es235.js +1 -1
- package/dist/index.es290.js +1 -1
- package/dist/index.es291.js +1 -1
- package/dist/index.es292.js +13 -13
- package/dist/index.es293.js +1 -1
- package/dist/index.es294.js +14 -0
- package/dist/index.es294.js.map +1 -0
- package/dist/index.es295.js +41 -10
- package/dist/index.es295.js.map +1 -1
- package/dist/index.es296.js +44 -40
- package/dist/index.es296.js.map +1 -1
- package/dist/index.es297.js +7 -45
- package/dist/index.es297.js.map +1 -1
- package/dist/index.es298.js +124 -7
- package/dist/index.es298.js.map +1 -1
- package/dist/index.es299.js +12 -122
- package/dist/index.es299.js.map +1 -1
- package/dist/index.es300.js +134 -14
- package/dist/index.es300.js.map +1 -1
- package/dist/index.es301.js +210 -127
- package/dist/index.es301.js.map +1 -1
- package/dist/index.es302.js +13 -217
- package/dist/index.es302.js.map +1 -1
- package/dist/index.es303.js +69 -14
- package/dist/index.es303.js.map +1 -1
- package/dist/index.es304.js +174 -65
- package/dist/index.es304.js.map +1 -1
- package/dist/index.es305.js +48 -176
- package/dist/index.es305.js.map +1 -1
- package/dist/index.es306.js +9 -50
- package/dist/index.es306.js.map +1 -1
- package/dist/index.es307.js +4 -9
- package/dist/index.es307.js.map +1 -1
- package/dist/index.es309.js +1 -1
- package/dist/index.es312.js +1 -1
- package/dist/index.es313.js +3 -3
- package/dist/index.es314.js +5 -24
- package/dist/index.es314.js.map +1 -1
- package/dist/index.es315.js +24 -28
- package/dist/index.es315.js.map +1 -1
- package/dist/index.es316.js +29 -5
- package/dist/index.es316.js.map +1 -1
- package/dist/index.es317.js +8 -0
- package/dist/index.es317.js.map +1 -0
- package/dist/index.es318.js +8 -0
- package/dist/index.es318.js.map +1 -0
- package/dist/index.es319.js +6 -0
- package/dist/index.es319.js.map +1 -0
- package/dist/index.es320.js +24 -5
- package/dist/index.es320.js.map +1 -1
- package/dist/index.es321.js +110 -3
- package/dist/index.es321.js.map +1 -1
- package/dist/index.es322.js +15 -23
- package/dist/index.es322.js.map +1 -1
- package/dist/index.es323.js +517 -104
- package/dist/index.es323.js.map +1 -1
- package/dist/index.es324.js +125 -14
- package/dist/index.es324.js.map +1 -1
- package/dist/index.es325.js +120 -514
- package/dist/index.es325.js.map +1 -1
- package/dist/index.es326.js +62 -124
- package/dist/index.es326.js.map +1 -1
- package/dist/index.es327.js +67 -127
- package/dist/index.es327.js.map +1 -1
- package/dist/index.es328.js +9 -6
- package/dist/index.es328.js.map +1 -1
- package/dist/index.es329.js +13 -68
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es330.js +61 -8
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es334.js +4 -15
- package/dist/index.es334.js.map +1 -1
- package/dist/{index.es341.js → index.es335.js} +1 -1
- package/dist/{index.es341.js.map → index.es335.js.map} +1 -1
- package/dist/index.es336.js +26 -0
- package/dist/index.es336.js.map +1 -0
- package/dist/{index.es343.js → index.es337.js} +2 -2
- package/dist/{index.es343.js.map → index.es337.js.map} +1 -1
- package/dist/{index.es344.js → index.es338.js} +2 -2
- package/dist/{index.es344.js.map → index.es338.js.map} +1 -1
- package/dist/{index.es345.js → index.es339.js} +1 -1
- package/dist/{index.es345.js.map → index.es339.js.map} +1 -1
- package/dist/index.es342.js +14 -22
- package/dist/index.es342.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs308.js +0 -2
- package/dist/index.cjs308.js.map +0 -1
- package/dist/index.cjs331.js +0 -2
- package/dist/index.cjs331.js.map +0 -1
- package/dist/index.cjs332.js +0 -2
- package/dist/index.cjs332.js.map +0 -1
- package/dist/index.cjs333.js +0 -2
- package/dist/index.cjs333.js.map +0 -1
- package/dist/index.cjs340.js +0 -2
- package/dist/index.cjs340.js.map +0 -1
- package/dist/index.es308.js +0 -7
- package/dist/index.es308.js.map +0 -1
- package/dist/index.es331.js +0 -17
- package/dist/index.es331.js.map +0 -1
- package/dist/index.es332.js +0 -65
- package/dist/index.es332.js.map +0 -1
- package/dist/index.es333.js +0 -68
- package/dist/index.es333.js.map +0 -1
- package/dist/index.es340.js +0 -7
- package/dist/index.es340.js.map +0 -1
package/dist/index.es308.js
DELETED
package/dist/index.es308.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es308.js","sources":["../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/useLayoutEffect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect2","React"],"mappings":";AAEG,IAACA,IAA2B,iCAAY,WAAYC,EAAM,kBAAkB,MAAM;AACrF;","x_google_ignoreList":[0]}
|
package/dist/index.es331.js
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
var r = !1;
|
2
|
-
if (typeof window < "u")
|
3
|
-
try {
|
4
|
-
var e = Object.defineProperty({}, "passive", {
|
5
|
-
get: function() {
|
6
|
-
return r = !0, !0;
|
7
|
-
}
|
8
|
-
});
|
9
|
-
window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
|
10
|
-
} catch {
|
11
|
-
r = !1;
|
12
|
-
}
|
13
|
-
var a = r ? { passive: !1 } : !1;
|
14
|
-
export {
|
15
|
-
a as nonPassive
|
16
|
-
};
|
17
|
-
//# sourceMappingURL=index.es331.js.map
|
package/dist/index.es331.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es331.js","sources":["../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"names":["passiveSupported","options","nonPassive"],"mappings":"AAAA,IAAIA,IAAmB;AACvB,IAAI,OAAO,SAAW;AAClB,MAAI;AACA,QAAIC,IAAU,OAAO,eAAe,CAAA,GAAI,WAAW;AAAA,MAC/C,KAAK,WAAY;AACb,eAAAD,IAAmB,IACZ;AAAA,MACV;AAAA,IACb,CAAS;AAED,WAAO,iBAAiB,QAAQC,GAASA,CAAO,GAEhD,OAAO,oBAAoB,QAAQA,GAASA,CAAO;AAAA,EAC3D,QACgB;AACR,IAAAD,IAAmB;AAAA,EAC3B;AAEU,IAACE,IAAaF,IAAmB,EAAE,SAAS,GAAK,IAAK;","x_google_ignoreList":[0]}
|
package/dist/index.es332.js
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
var p = function(e) {
|
2
|
-
return e.tagName === "TEXTAREA";
|
3
|
-
}, w = function(e, r) {
|
4
|
-
if (!(e instanceof Element))
|
5
|
-
return !1;
|
6
|
-
var o = window.getComputedStyle(e);
|
7
|
-
return (
|
8
|
-
// not-not-scrollable
|
9
|
-
o[r] !== "hidden" && // contains scroll inside self
|
10
|
-
!(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
|
11
|
-
);
|
12
|
-
}, y = function(e) {
|
13
|
-
return w(e, "overflowY");
|
14
|
-
}, H = function(e) {
|
15
|
-
return w(e, "overflowX");
|
16
|
-
}, R = function(e, r) {
|
17
|
-
var o = r.ownerDocument, t = r;
|
18
|
-
do {
|
19
|
-
typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
|
20
|
-
var v = g(e, t);
|
21
|
-
if (v) {
|
22
|
-
var n = b(e, t), a = n[1], l = n[2];
|
23
|
-
if (a > l)
|
24
|
-
return !0;
|
25
|
-
}
|
26
|
-
t = t.parentNode;
|
27
|
-
} while (t && t !== o.body);
|
28
|
-
return !1;
|
29
|
-
}, B = function(e) {
|
30
|
-
var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
|
31
|
-
return [
|
32
|
-
r,
|
33
|
-
o,
|
34
|
-
t
|
35
|
-
];
|
36
|
-
}, V = function(e) {
|
37
|
-
var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
|
38
|
-
return [
|
39
|
-
r,
|
40
|
-
o,
|
41
|
-
t
|
42
|
-
];
|
43
|
-
}, g = function(e, r) {
|
44
|
-
return e === "v" ? y(r) : H(r);
|
45
|
-
}, b = function(e, r) {
|
46
|
-
return e === "v" ? B(r) : V(r);
|
47
|
-
}, D = function(e, r) {
|
48
|
-
return e === "h" && r === "rtl" ? -1 : 1;
|
49
|
-
}, W = function(e, r, o, t, v) {
|
50
|
-
var n = D(e, window.getComputedStyle(r).direction), a = n * t, l = o.target, f = r.contains(l), i = !1, s = a > 0, d = 0, h = 0;
|
51
|
-
do {
|
52
|
-
var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
|
53
|
-
(u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
54
|
-
} while (
|
55
|
-
// portaled content
|
56
|
-
!f && l !== document.body || // self content
|
57
|
-
f && (r.contains(l) || r === l)
|
58
|
-
);
|
59
|
-
return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
|
60
|
-
};
|
61
|
-
export {
|
62
|
-
W as handleScroll,
|
63
|
-
R as locationCouldBeScrolled
|
64
|
-
};
|
65
|
-
//# sourceMappingURL=index.es332.js.map
|
package/dist/index.es332.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es332.js","sources":["../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll"],"mappings":"AAAA,IAAIA,IAAuB,SAAUC,GAAM;AAEvC,SAAOA,EAAK,YAAY;AAC5B,GACIC,IAAuB,SAAUD,GAAME,GAAU;AACjD,MAAI,EAAEF,aAAgB;AAClB,WAAO;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SAAOO,MAAS,MAAMS,EAAoBhB,CAAI,IAAIkB,EAAoBlB,CAAI;AAC9E,GACIsB,IAAqB,SAAUf,GAAMgB,GAAW;AAMhD,SAAOhB,MAAS,OAAOgB,MAAc,QAAQ,KAAK;AACtD,GACWC,IAAe,SAAUjB,GAAMkB,GAAWC,GAAOC,GAAaC,GAAc;AACnF,MAAIC,IAAkBP,EAAmBf,GAAM,OAAO,iBAAiBkB,CAAS,EAAE,SAAS,GACvFK,IAAQD,IAAkBF,GAE1BI,IAASL,EAAM,QACfM,IAAeP,EAAU,SAASM,CAAM,GACxCE,IAAqB,IACrBC,IAAkBJ,IAAQ,GAC1BK,IAAkB,GAClBC,IAAqB;AACzB,KAAG;AACC,QAAIxB,IAAKC,EAAmBN,GAAMwB,CAAM,GAAGM,IAAWzB,EAAG,CAAC,GAAG0B,IAAW1B,EAAG,CAAC,GAAG2B,IAAW3B,EAAG,CAAC,GAC1F4B,IAAgBF,IAAWC,IAAWV,IAAkBQ;AAC5D,KAAIA,KAAYG,MACR7B,EAAuBJ,GAAMwB,CAAM,MACnCI,KAAmBK,GACnBJ,KAAsBC,IAG1BN,aAAkB,aAClBA,IAASA,EAAO,OAGhBA,IAASA,EAAO;AAAA,EAEvB;AAAA;AAAA,IAEA,CAACC,KAAgBD,MAAW,SAAS;AAAA,IAEjCC,MAAiBP,EAAU,SAASM,CAAM,KAAKN,MAAcM;AAAA;AAElE,UAAIG,KACkB,KAAK,IAAIC,CAAe,IAAI,KAGzC,CAACD,KACY,KAAK,IAAIE,CAAkB,IAAI,OACjDH,IAAqB,KAElBA;AACX;","x_google_ignoreList":[0]}
|
package/dist/index.es333.js
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
import { __assign as d } from "./index.es314.js";
|
2
|
-
function l(r) {
|
3
|
-
return r;
|
4
|
-
}
|
5
|
-
function h(r, t) {
|
6
|
-
t === void 0 && (t = l);
|
7
|
-
var e = [], o = !1, c = {
|
8
|
-
read: function() {
|
9
|
-
if (o)
|
10
|
-
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
11
|
-
return e.length ? e[e.length - 1] : r;
|
12
|
-
},
|
13
|
-
useMedium: function(u) {
|
14
|
-
var n = t(u, o);
|
15
|
-
return e.push(n), function() {
|
16
|
-
e = e.filter(function(i) {
|
17
|
-
return i !== n;
|
18
|
-
});
|
19
|
-
};
|
20
|
-
},
|
21
|
-
assignSyncMedium: function(u) {
|
22
|
-
for (o = !0; e.length; ) {
|
23
|
-
var n = e;
|
24
|
-
e = [], n.forEach(u);
|
25
|
-
}
|
26
|
-
e = {
|
27
|
-
push: function(i) {
|
28
|
-
return u(i);
|
29
|
-
},
|
30
|
-
filter: function() {
|
31
|
-
return e;
|
32
|
-
}
|
33
|
-
};
|
34
|
-
},
|
35
|
-
assignMedium: function(u) {
|
36
|
-
o = !0;
|
37
|
-
var n = [];
|
38
|
-
if (e.length) {
|
39
|
-
var i = e;
|
40
|
-
e = [], i.forEach(u), n = e;
|
41
|
-
}
|
42
|
-
var s = function() {
|
43
|
-
var f = n;
|
44
|
-
n = [], f.forEach(u);
|
45
|
-
}, a = function() {
|
46
|
-
return Promise.resolve().then(s);
|
47
|
-
};
|
48
|
-
a(), e = {
|
49
|
-
push: function(f) {
|
50
|
-
n.push(f), a();
|
51
|
-
},
|
52
|
-
filter: function(f) {
|
53
|
-
return n = n.filter(f), e;
|
54
|
-
}
|
55
|
-
};
|
56
|
-
}
|
57
|
-
};
|
58
|
-
return c;
|
59
|
-
}
|
60
|
-
function v(r) {
|
61
|
-
r === void 0 && (r = {});
|
62
|
-
var t = h(null);
|
63
|
-
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
64
|
-
}
|
65
|
-
export {
|
66
|
-
v as createSidecarMedium
|
67
|
-
};
|
68
|
-
//# sourceMappingURL=index.es333.js.map
|
package/dist/index.es333.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es333.js","sources":["../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,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AKH,CAAC,GACnBK,EAAO;AAAA,QACV;AAAA,QACD,QAAQ,SAAUC,GAAQ;AACtB,iBAAAH,IAAeA,EAAa,OAAOG,CAAM,GAClCX;AAAA,QACV;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ;AACD,SAAOE;AACX;AAMO,SAASU,EAAoBC,GAAS;AACzC,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIX,IAASL,EAAkB,IAAI;AACnC,SAAAK,EAAO,UAAUY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAO,GAAED,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
|
package/dist/index.es340.js
DELETED
package/dist/index.es340.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es340.js","sources":["../node_modules/use-callback-ref/dist/es2015/assignRef.js"],"sourcesContent":["/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n"],"names":["assignRef","ref","value"],"mappings":"AAaO,SAASA,EAAUC,GAAKC,GAAO;AAClC,SAAI,OAAOD,KAAQ,aACfA,EAAIC,CAAK,IAEJD,MACLA,EAAI,UAAUC,IAEXD;AACX;","x_google_ignoreList":[0]}
|