@inkeep/cxkit-react 0.5.36 → 0.5.38
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/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/components/embedded-chat.cjs +1 -1
- package/dist/components/embedded-chat.js +1 -1
- package/dist/components/embedded-search-and-chat.impl.cjs +1 -1
- package/dist/components/embedded-search.cjs +1 -1
- package/dist/components/embedded-search.js +29 -28
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-context/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-context/dist/index.js +68 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.4_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19.0._ucun7uecgispdhq4vhr26lovum/node_modules/@radix-ui/react-dialog/dist/index.cjs +5 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.4_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19.0._ucun7uecgispdhq4vhr26lovum/node_modules/@radix-ui/react-dialog/dist/index.js +253 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.3_@types_react-dom@19.0.3_@types_react@19.0.10__@types__v2z2flytqizqloot5tnzsv72ca/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.3_@types_react-dom@19.0.3_@types_react@19.0.10__@types__v2z2flytqizqloot5tnzsv72ca/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.1_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@_jnpeo7zp526zce4fsmzkscleui/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.1_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@_jnpeo7zp526zce4fsmzkscleui/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-id/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.3_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19.0._k6mvjumazun2buzo2dcp22wl2y/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.3_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19.0._k6mvjumazun2buzo2dcp22wl2y/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.2_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19._ceqn6mtlqa4vrghvmtsw5zpqya/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.2_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19._ceqn6mtlqa4vrghvmtsw5zpqya/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.1_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19_zjcik7jr4zh3druglzeqejtmrq/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.1_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19_zjcik7jr4zh3druglzeqejtmrq/node_modules/@radix-ui/react-primitive/dist/index.js +35 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.2_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19_xmwzi2lpk7e4iscy4hlhgpd4fu/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.2_@types_react-dom@19.0.3_@types_react@19.0.10__@types_react@19_xmwzi2lpk7e4iscy4hlhgpd4fu/node_modules/@radix-ui/react-primitive/dist/index.js +31 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.1_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.js +47 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.2_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.2_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-slot/dist/index.js +43 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +1 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.0_@types_react@19.0.10_react@19.0.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.cjs +1 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +1 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +38 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js +72 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +26 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +12 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +4 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +113 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/UI.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/UI.js +32 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +17 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +65 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/medium.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +1 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/component.cjs +1 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/component.js +12 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/hook.cjs +1 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/hook.js +16 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/singleton.cjs +1 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/singleton.js +31 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +1 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +28 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +1 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/assignRef.js +7 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +1 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +27 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useRef.cjs +1 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useRef.js +26 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/exports.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/exports.js +19 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/medium.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/medium.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +9 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs +1 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.4.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js +8 -0
- package/dist/packages/primitives/src/atoms/cmdk/command-score.cjs +1 -0
- package/dist/packages/primitives/src/atoms/cmdk/command-score.js +46 -0
- package/dist/packages/primitives/src/atoms/cmdk/index.cjs +1 -0
- package/dist/packages/primitives/src/atoms/cmdk/index.js +519 -0
- package/dist/packages/primitives/src/atoms/shadow/context.cjs +1 -0
- package/dist/packages/primitives/src/atoms/shadow/context.js +8 -0
- package/dist/packages/primitives/src/constants/search.cjs +1 -0
- package/dist/packages/primitives/src/constants/search.js +5 -0
- package/package.json +4 -4
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __spreadArray as x } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { RemoveScrollBar as A } from "../../../../../react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js";
|
|
5
|
+
import { styleSingleton as I } from "../../../../../react-style-singleton@2.2.3_@types_react@19.0.10_react@19.0.0/node_modules/react-style-singleton/dist/es2015/component.js";
|
|
6
|
+
import { nonPassive as s } from "./aggresiveCapture.js";
|
|
7
|
+
import { locationCouldBeScrolled as T, handleScroll as W } from "./handleScroll.js";
|
|
8
|
+
var b = function(t) {
|
|
9
|
+
return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
|
|
10
|
+
}, Y = function(t) {
|
|
11
|
+
return [t.deltaX, t.deltaY];
|
|
12
|
+
}, B = function(t) {
|
|
13
|
+
return t && "current" in t ? t.current : t;
|
|
14
|
+
}, p = function(t, c) {
|
|
15
|
+
return t[0] === c[0] && t[1] === c[1];
|
|
16
|
+
}, F = function(t) {
|
|
17
|
+
return `
|
|
18
|
+
.block-interactivity-`.concat(t, ` {pointer-events: none;}
|
|
19
|
+
.allow-interactivity-`).concat(t, ` {pointer-events: all;}
|
|
20
|
+
`);
|
|
21
|
+
}, K = 0, f = [];
|
|
22
|
+
function z(t) {
|
|
23
|
+
var c = n.useRef([]), E = n.useRef([0, 0]), d = n.useRef(), h = n.useState(K++)[0], m = n.useState(I)[0], g = n.useRef(t);
|
|
24
|
+
n.useEffect(function() {
|
|
25
|
+
g.current = t;
|
|
26
|
+
}, [t]), n.useEffect(function() {
|
|
27
|
+
if (t.inert) {
|
|
28
|
+
document.body.classList.add("block-interactivity-".concat(h));
|
|
29
|
+
var e = x([t.lockRef.current], (t.shards || []).map(B), !0).filter(Boolean);
|
|
30
|
+
return e.forEach(function(r) {
|
|
31
|
+
return r.classList.add("allow-interactivity-".concat(h));
|
|
32
|
+
}), function() {
|
|
33
|
+
document.body.classList.remove("block-interactivity-".concat(h)), e.forEach(function(r) {
|
|
34
|
+
return r.classList.remove("allow-interactivity-".concat(h));
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}, [t.inert, t.lockRef.current, t.shards]);
|
|
39
|
+
var k = n.useCallback(function(e, r) {
|
|
40
|
+
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey)
|
|
41
|
+
return !g.current.allowPinchZoom;
|
|
42
|
+
var l = b(e), o = E.current, u = "deltaX" in e ? e.deltaX : o[0] - l[0], i = "deltaY" in e ? e.deltaY : o[1] - l[1], a, C = e.target, v = Math.abs(u) > Math.abs(i) ? "h" : "v";
|
|
43
|
+
if ("touches" in e && v === "h" && C.type === "range")
|
|
44
|
+
return !1;
|
|
45
|
+
var y = T(v, C);
|
|
46
|
+
if (!y)
|
|
47
|
+
return !0;
|
|
48
|
+
if (y ? a = v : (a = v === "v" ? "h" : "v", y = T(v, C)), !y)
|
|
49
|
+
return !1;
|
|
50
|
+
if (!d.current && "changedTouches" in e && (u || i) && (d.current = a), !a)
|
|
51
|
+
return !0;
|
|
52
|
+
var P = d.current || a;
|
|
53
|
+
return W(P, r, e, P === "h" ? u : i);
|
|
54
|
+
}, []), S = n.useCallback(function(e) {
|
|
55
|
+
var r = e;
|
|
56
|
+
if (!(!f.length || f[f.length - 1] !== m)) {
|
|
57
|
+
var l = "deltaY" in r ? Y(r) : b(r), o = c.current.filter(function(a) {
|
|
58
|
+
return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && p(a.delta, l);
|
|
59
|
+
})[0];
|
|
60
|
+
if (o && o.should) {
|
|
61
|
+
r.cancelable && r.preventDefault();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (!o) {
|
|
65
|
+
var u = (g.current.shards || []).map(B).filter(Boolean).filter(function(a) {
|
|
66
|
+
return a.contains(r.target);
|
|
67
|
+
}), i = u.length > 0 ? k(r, u[0]) : !g.current.noIsolation;
|
|
68
|
+
i && r.cancelable && r.preventDefault();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}, []), R = n.useCallback(function(e, r, l, o) {
|
|
72
|
+
var u = { name: e, delta: r, target: l, should: o, shadowParent: O(l) };
|
|
73
|
+
c.current.push(u), setTimeout(function() {
|
|
74
|
+
c.current = c.current.filter(function(i) {
|
|
75
|
+
return i !== u;
|
|
76
|
+
});
|
|
77
|
+
}, 1);
|
|
78
|
+
}, []), w = n.useCallback(function(e) {
|
|
79
|
+
E.current = b(e), d.current = void 0;
|
|
80
|
+
}, []), L = n.useCallback(function(e) {
|
|
81
|
+
R(e.type, Y(e), e.target, k(e, t.lockRef.current));
|
|
82
|
+
}, []), M = n.useCallback(function(e) {
|
|
83
|
+
R(e.type, b(e), e.target, k(e, t.lockRef.current));
|
|
84
|
+
}, []);
|
|
85
|
+
n.useEffect(function() {
|
|
86
|
+
return f.push(m), t.setCallbacks({
|
|
87
|
+
onScrollCapture: L,
|
|
88
|
+
onWheelCapture: L,
|
|
89
|
+
onTouchMoveCapture: M
|
|
90
|
+
}), document.addEventListener("wheel", S, s), document.addEventListener("touchmove", S, s), document.addEventListener("touchstart", w, s), function() {
|
|
91
|
+
f = f.filter(function(e) {
|
|
92
|
+
return e !== m;
|
|
93
|
+
}), document.removeEventListener("wheel", S, s), document.removeEventListener("touchmove", S, s), document.removeEventListener("touchstart", w, s);
|
|
94
|
+
};
|
|
95
|
+
}, []);
|
|
96
|
+
var X = t.removeScrollBar, D = t.inert;
|
|
97
|
+
return n.createElement(
|
|
98
|
+
n.Fragment,
|
|
99
|
+
null,
|
|
100
|
+
D ? n.createElement(m, { styles: F(h) }) : null,
|
|
101
|
+
X ? n.createElement(A, { gapMode: t.gapMode }) : null
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function O(t) {
|
|
105
|
+
for (var c = null; t !== null; )
|
|
106
|
+
t instanceof ShadowRoot && (c = t.host, t = t.host), t = t.parentNode;
|
|
107
|
+
return c;
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
z as RemoveScrollSideCar,
|
|
111
|
+
Y as getDeltaXY,
|
|
112
|
+
b as getTouchXY
|
|
113
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs"),j=require("react"),f=require("../../../../../react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs"),k=require("./medium.cjs"),q=require("../../../../../use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs");function B(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const a=B(j);var o=function(){},s=a.forwardRef(function(e,n){var r=a.useRef(null),l=a.useState({onScrollCapture:o,onWheelCapture:o,onTouchMoveCapture:o}),m=l[0],g=l[1],v=e.forwardProps,c=e.children,h=e.className,_=e.removeScrollBar,b=e.enabled,C=e.shards,S=e.sideCar,P=e.noIsolation,R=e.inert,w=e.allowPinchZoom,i=e.as,M=i===void 0?"div":i,N=e.gapMode,y=t.__rest(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=S,u=q.useMergeRefs([r,n]),d=t.__assign(t.__assign({},y),m);return a.createElement(a.Fragment,null,b&&a.createElement(O,{sideCar:k.effectCar,removeScrollBar:_,shards:C,noIsolation:P,inert:R,setCallbacks:g,allowPinchZoom:!!w,lockRef:r,gapMode:N}),v?a.cloneElement(a.Children.only(c),t.__assign(t.__assign({},d),{ref:u})):a.createElement(M,t.__assign({},d,{className:h,ref:u}),c))});s.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};s.classNames={fullWidth:f.fullWidthClassName,zeroRight:f.zeroRightClassName};exports.RemoveScroll=s;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __rest as k, __assign as r } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { zeroRightClassName as E, fullWidthClassName as I } from "../../../../../react-remove-scroll-bar@2.3.8_@types_react@19.0.10_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js";
|
|
5
|
+
import { effectCar as Z } from "./medium.js";
|
|
6
|
+
import { useMergeRefs as W } from "../../../../../use-callback-ref@1.3.3_@types_react@19.0.10_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js";
|
|
7
|
+
var l = function() {
|
|
8
|
+
}, m = a.forwardRef(function(e, d) {
|
|
9
|
+
var o = a.useRef(null), n = a.useState({
|
|
10
|
+
onScrollCapture: l,
|
|
11
|
+
onWheelCapture: l,
|
|
12
|
+
onTouchMoveCapture: l
|
|
13
|
+
}), f = n[0], h = n[1], u = e.forwardProps, t = e.children, v = e.className, C = e.removeScrollBar, g = e.enabled, P = e.shards, R = e.sideCar, S = e.noIsolation, b = e.inert, w = e.allowPinchZoom, s = e.as, N = s === void 0 ? "div" : s, M = e.gapMode, _ = k(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), B = R, i = W([o, d]), c = r(r({}, _), f);
|
|
14
|
+
return a.createElement(
|
|
15
|
+
a.Fragment,
|
|
16
|
+
null,
|
|
17
|
+
g && a.createElement(B, { sideCar: Z, removeScrollBar: C, shards: P, noIsolation: S, inert: b, setCallbacks: h, allowPinchZoom: !!w, lockRef: o, gapMode: M }),
|
|
18
|
+
u ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: i })) : a.createElement(N, r({}, c, { className: v, ref: i }), t)
|
|
19
|
+
);
|
|
20
|
+
});
|
|
21
|
+
m.defaultProps = {
|
|
22
|
+
enabled: !0,
|
|
23
|
+
removeScrollBar: !0,
|
|
24
|
+
inert: !1
|
|
25
|
+
};
|
|
26
|
+
m.classNames = {
|
|
27
|
+
fullWidth: I,
|
|
28
|
+
zeroRight: E
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
m as RemoveScroll
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t=!1;if(typeof window<"u")try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{t=!1}var r=t?{passive:!1}:!1;exports.nonPassive=r;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var t = !1;
|
|
3
|
+
if (typeof window < "u")
|
|
4
|
+
try {
|
|
5
|
+
var e = Object.defineProperty({}, "passive", {
|
|
6
|
+
get: function() {
|
|
7
|
+
return t = !0, !0;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
|
|
11
|
+
} catch {
|
|
12
|
+
t = !1;
|
|
13
|
+
}
|
|
14
|
+
var s = t ? { passive: !1 } : !1;
|
|
15
|
+
export {
|
|
16
|
+
s as nonPassive
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var y=function(e){return e.tagName==="TEXTAREA"},w=function(e,r){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!y(e)&&o[r]==="visible")},p=function(e){return w(e,"overflowY")},B=function(e){return w(e,"overflowX")},H=function(e,r){var o=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var v=g(e,l);if(v){var n=b(e,l),a=n[1],t=n[2];if(a>t)return!0}l=l.parentNode}while(l&&l!==o.body);return!1},V=function(e){var r=e.scrollTop,o=e.scrollHeight,l=e.clientHeight;return[r,o,l]},D=function(e){var r=e.scrollLeft,o=e.scrollWidth,l=e.clientWidth;return[r,o,l]},g=function(e,r){return e==="v"?p(r):B(r)},b=function(e,r){return e==="v"?V(r):D(r)},R=function(e,r){return e==="h"&&r==="rtl"?-1:1},W=function(e,r,o,l,v){var n=R(e,window.getComputedStyle(r).direction),a=n*l,t=o.target,f=r.contains(t),c=!1,s=a>0,d=0,h=0;do{var i=b(e,t),u=i[0],m=i[1],C=i[2],S=m-C-n*u;(u||S)&&g(e,t)&&(d+=S,h+=u),t instanceof ShadowRoot?t=t.host:t=t.parentNode}while(!f&&t!==document.body||f&&(r.contains(t)||r===t));return(s&&Math.abs(d)<1||!s&&Math.abs(h)<1)&&(c=!0),c};exports.handleScroll=W;exports.locationCouldBeScrolled=H;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var p = function(e) {
|
|
3
|
+
return e.tagName === "TEXTAREA";
|
|
4
|
+
}, w = function(e, r) {
|
|
5
|
+
if (!(e instanceof Element))
|
|
6
|
+
return !1;
|
|
7
|
+
var o = window.getComputedStyle(e);
|
|
8
|
+
return (
|
|
9
|
+
// not-not-scrollable
|
|
10
|
+
o[r] !== "hidden" && // contains scroll inside self
|
|
11
|
+
!(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
|
|
12
|
+
);
|
|
13
|
+
}, y = function(e) {
|
|
14
|
+
return w(e, "overflowY");
|
|
15
|
+
}, H = function(e) {
|
|
16
|
+
return w(e, "overflowX");
|
|
17
|
+
}, R = function(e, r) {
|
|
18
|
+
var o = r.ownerDocument, t = r;
|
|
19
|
+
do {
|
|
20
|
+
typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
|
|
21
|
+
var v = g(e, t);
|
|
22
|
+
if (v) {
|
|
23
|
+
var n = b(e, t), a = n[1], l = n[2];
|
|
24
|
+
if (a > l)
|
|
25
|
+
return !0;
|
|
26
|
+
}
|
|
27
|
+
t = t.parentNode;
|
|
28
|
+
} while (t && t !== o.body);
|
|
29
|
+
return !1;
|
|
30
|
+
}, B = function(e) {
|
|
31
|
+
var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
|
|
32
|
+
return [
|
|
33
|
+
r,
|
|
34
|
+
o,
|
|
35
|
+
t
|
|
36
|
+
];
|
|
37
|
+
}, V = function(e) {
|
|
38
|
+
var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
|
|
39
|
+
return [
|
|
40
|
+
r,
|
|
41
|
+
o,
|
|
42
|
+
t
|
|
43
|
+
];
|
|
44
|
+
}, g = function(e, r) {
|
|
45
|
+
return e === "v" ? y(r) : H(r);
|
|
46
|
+
}, b = function(e, r) {
|
|
47
|
+
return e === "v" ? B(r) : V(r);
|
|
48
|
+
}, D = function(e, r) {
|
|
49
|
+
return e === "h" && r === "rtl" ? -1 : 1;
|
|
50
|
+
}, W = function(e, r, o, t, v) {
|
|
51
|
+
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;
|
|
52
|
+
do {
|
|
53
|
+
var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
|
|
54
|
+
(u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
|
55
|
+
} while (
|
|
56
|
+
// portaled content
|
|
57
|
+
!f && l !== document.body || // self content
|
|
58
|
+
f && (r.contains(l) || r === l)
|
|
59
|
+
);
|
|
60
|
+
return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
W as handleScroll,
|
|
64
|
+
R as locationCouldBeScrolled
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/medium.cjs");var r=e.createSidecarMedium();exports.effectCar=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SideEffect.cjs"),r=require("./medium.cjs"),t=require("../../../../../use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/exports.cjs"),i=t.exportSidecar(r.effectCar,e.RemoveScrollSideCar);exports.default=i;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { RemoveScrollSideCar as r } from "./SideEffect.js";
|
|
3
|
+
import { effectCar as e } from "./medium.js";
|
|
4
|
+
import { exportSidecar as o } from "../../../../../use-sidecar@1.1.3_@types_react@19.0.10_react@19.0.0/node_modules/use-sidecar/dist/es2015/exports.js";
|
|
5
|
+
const a = o(e, r);
|
|
6
|
+
export {
|
|
7
|
+
a as default
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./hook.cjs");var i=function(){var t=r.styleHookSingleton(),n=function(e){var l=e.styles,o=e.dynamic;return t(l,o),null};return n};exports.styleSingleton=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),c=require("./singleton.cjs");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=u(r);var l=function(){var e=c.stylesheetSingleton();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}};exports.styleHookSingleton=l;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { stylesheetSingleton as r } from "./singleton.js";
|
|
4
|
+
var f = function() {
|
|
5
|
+
var e = r();
|
|
6
|
+
return function(t, n) {
|
|
7
|
+
o.useEffect(function() {
|
|
8
|
+
return e.add(t), function() {
|
|
9
|
+
e.remove();
|
|
10
|
+
};
|
|
11
|
+
}, [t && n]);
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
f as styleHookSingleton
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../../get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs");function o(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=l.getNonce();return e&&t.setAttribute("nonce",e),t}function r(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function i(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var u=function(){var t=0,e=null;return{add:function(n){t==0&&(e=o())&&(r(e,n),i(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};exports.stylesheetSingleton=u;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { getNonce as o } from "../../../../../get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js";
|
|
3
|
+
function r() {
|
|
4
|
+
if (!document)
|
|
5
|
+
return null;
|
|
6
|
+
var t = document.createElement("style");
|
|
7
|
+
t.type = "text/css";
|
|
8
|
+
var e = o();
|
|
9
|
+
return e && t.setAttribute("nonce", e), t;
|
|
10
|
+
}
|
|
11
|
+
function l(t, e) {
|
|
12
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
13
|
+
}
|
|
14
|
+
function i(t) {
|
|
15
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
|
16
|
+
e.appendChild(t);
|
|
17
|
+
}
|
|
18
|
+
var c = function() {
|
|
19
|
+
var t = 0, e = null;
|
|
20
|
+
return {
|
|
21
|
+
add: function(n) {
|
|
22
|
+
t == 0 && (e = r()) && (l(e, n), i(e)), t++;
|
|
23
|
+
},
|
|
24
|
+
remove: function() {
|
|
25
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
c as stylesheetSingleton
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.__assign=function(){return exports.__assign=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},exports.__assign.apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function p(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,a;r<o;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}exports.__rest=s;exports.__spreadArray=p;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var p = function() {
|
|
3
|
+
return p = Object.assign || function(e) {
|
|
4
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
5
|
+
n = arguments[r];
|
|
6
|
+
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
7
|
+
}
|
|
8
|
+
return e;
|
|
9
|
+
}, p.apply(this, arguments);
|
|
10
|
+
};
|
|
11
|
+
function c(t, e) {
|
|
12
|
+
var n = {};
|
|
13
|
+
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
14
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
15
|
+
for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
|
|
16
|
+
e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
|
|
17
|
+
return n;
|
|
18
|
+
}
|
|
19
|
+
function l(t, e, n) {
|
|
20
|
+
if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
|
|
21
|
+
(a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
|
|
22
|
+
return t.concat(a || Array.prototype.slice.call(e));
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
p as __assign,
|
|
26
|
+
c as __rest,
|
|
27
|
+
l as __spreadArray
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}exports.assignRef=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),c=require("./assignRef.cjs"),g=require("./useRef.cjs");function d(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const f=d(l);var b=typeof window<"u"?f.useLayoutEffect:f.useEffect,i=new WeakMap;function p(e,a){var t=g.useCallbackRef(null,function(n){return e.forEach(function(r){return c.assignRef(r,n)})});return b(function(){var n=i.get(t);if(n){var r=new Set(n),o=new Set(e),s=t.current;r.forEach(function(u){o.has(u)||c.assignRef(u,null)}),o.forEach(function(u){r.has(u)||c.assignRef(u,s)})}i.set(t,e)},[e]),t}exports.useMergeRefs=p;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { assignRef as o } from "./assignRef.js";
|
|
4
|
+
import { useCallbackRef as l } from "./useRef.js";
|
|
5
|
+
var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
function v(a, m) {
|
|
7
|
+
var t = l(null, function(n) {
|
|
8
|
+
return a.forEach(function(u) {
|
|
9
|
+
return o(u, n);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
return s(function() {
|
|
13
|
+
var n = c.get(t);
|
|
14
|
+
if (n) {
|
|
15
|
+
var u = new Set(n), r = new Set(a), i = t.current;
|
|
16
|
+
u.forEach(function(e) {
|
|
17
|
+
r.has(e) || o(e, null);
|
|
18
|
+
}), r.forEach(function(e) {
|
|
19
|
+
u.has(e) || o(e, i);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
c.set(t, a);
|
|
23
|
+
}, [a]), t;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
v as useMergeRefs
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function l(c,t){var e=u.useState(function(){return{value:c,callback:t,facade:{get current(){return e.value},set current(a){var r=e.value;r!==a&&(e.value=a,e.callback(a,r))}}}})[0];return e.callback=t,e.facade}exports.useCallbackRef=l;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as u } from "react";
|
|
3
|
+
function n(c, r) {
|
|
4
|
+
var e = u(function() {
|
|
5
|
+
return {
|
|
6
|
+
// value
|
|
7
|
+
value: c,
|
|
8
|
+
// last callback
|
|
9
|
+
callback: r,
|
|
10
|
+
// "memoized" public interface
|
|
11
|
+
facade: {
|
|
12
|
+
get current() {
|
|
13
|
+
return e.value;
|
|
14
|
+
},
|
|
15
|
+
set current(a) {
|
|
16
|
+
var t = e.value;
|
|
17
|
+
t !== a && (e.value = a, e.callback(a, t));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
})[0];
|
|
22
|
+
return e.callback = r, e.facade;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
n as useCallbackRef
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs"),n=require("react");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=c(n);var a=function(e){var r=e.sideCar,t=o.__rest(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return s.createElement(i,o.__assign({},t))};a.isSideCarExport=!0;function u(e,r){return e.useMedium(r),a}exports.exportSidecar=u;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __rest as o, __assign as d } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
var i = function(r) {
|
|
5
|
+
var e = r.sideCar, a = o(r, ["sideCar"]);
|
|
6
|
+
if (!e)
|
|
7
|
+
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
8
|
+
var t = e.read();
|
|
9
|
+
if (!t)
|
|
10
|
+
throw new Error("Sidecar medium not found");
|
|
11
|
+
return n.createElement(t, d({}, a));
|
|
12
|
+
};
|
|
13
|
+
i.isSideCarExport = !0;
|
|
14
|
+
function p(r, e) {
|
|
15
|
+
return r.useMedium(e), i;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
p as exportSidecar
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs");function l(n){return n}function h(n,t){t===void 0&&(t=l);var e=[],f=!1,a={read:function(){if(f)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return e.length?e[e.length-1]:n},useMedium:function(u){var r=t(u,f);return e.push(r),function(){e=e.filter(function(i){return i!==r})}},assignSyncMedium:function(u){for(f=!0;e.length;){var r=e;e=[],r.forEach(u)}e={push:function(i){return u(i)},filter:function(){return e}}},assignMedium:function(u){f=!0;var r=[];if(e.length){var i=e;e=[],i.forEach(u),r=e}var s=function(){var c=r;r=[],c.forEach(u)},o=function(){return Promise.resolve().then(s)};o(),e={push:function(c){r.push(c),o()},filter:function(c){return r=r.filter(c),e}}}};return a}function m(n){n===void 0&&(n={});var t=h(null);return t.options=d.__assign({async:!0,ssr:!1},n),t}exports.createSidecarMedium=m;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __assign as d } from "../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.js";
|
|
3
|
+
function l(r) {
|
|
4
|
+
return r;
|
|
5
|
+
}
|
|
6
|
+
function h(r, t) {
|
|
7
|
+
t === void 0 && (t = l);
|
|
8
|
+
var e = [], o = !1, c = {
|
|
9
|
+
read: function() {
|
|
10
|
+
if (o)
|
|
11
|
+
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
12
|
+
return e.length ? e[e.length - 1] : r;
|
|
13
|
+
},
|
|
14
|
+
useMedium: function(u) {
|
|
15
|
+
var n = t(u, o);
|
|
16
|
+
return e.push(n), function() {
|
|
17
|
+
e = e.filter(function(i) {
|
|
18
|
+
return i !== n;
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
assignSyncMedium: function(u) {
|
|
23
|
+
for (o = !0; e.length; ) {
|
|
24
|
+
var n = e;
|
|
25
|
+
e = [], n.forEach(u);
|
|
26
|
+
}
|
|
27
|
+
e = {
|
|
28
|
+
push: function(i) {
|
|
29
|
+
return u(i);
|
|
30
|
+
},
|
|
31
|
+
filter: function() {
|
|
32
|
+
return e;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
assignMedium: function(u) {
|
|
37
|
+
o = !0;
|
|
38
|
+
var n = [];
|
|
39
|
+
if (e.length) {
|
|
40
|
+
var i = e;
|
|
41
|
+
e = [], i.forEach(u), n = e;
|
|
42
|
+
}
|
|
43
|
+
var s = function() {
|
|
44
|
+
var f = n;
|
|
45
|
+
n = [], f.forEach(u);
|
|
46
|
+
}, a = function() {
|
|
47
|
+
return Promise.resolve().then(s);
|
|
48
|
+
};
|
|
49
|
+
a(), e = {
|
|
50
|
+
push: function(f) {
|
|
51
|
+
n.push(f), a();
|
|
52
|
+
},
|
|
53
|
+
filter: function(f) {
|
|
54
|
+
return n = n.filter(f), e;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
return c;
|
|
60
|
+
}
|
|
61
|
+
function v(r) {
|
|
62
|
+
r === void 0 && (r = {});
|
|
63
|
+
var t = h(null);
|
|
64
|
+
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
v as createSidecarMedium
|
|
68
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../../_virtual/use-sync-external-store-shim.development.cjs"),h=require("react");/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var f;function T(){return f||(f=1,process.env.NODE_ENV!=="production"&&function(){function d(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function S(e,t){c||o.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var r=t();if(!l){var u=t();_(r,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}u=p({inst:{value:r,getSnapshot:t}});var n=u[0].inst,s=u[1];return y(function(){n.value=r,n.getSnapshot=t,a(n)&&s({inst:n})},[e,r,t]),E(function(){return a(n)&&s({inst:n}),e(function(){a(n)&&s({inst:n})})},[e]),L(r),r}function a(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!_(e,r)}catch{return!0}}function O(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=h,_=typeof Object.is=="function"?Object.is:d,p=o.useState,E=o.useEffect,y=o.useLayoutEffect,L=o.useDebugValue,c=!1,l=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?O:S;i.__exports.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),i.__exports}exports.__require=T;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { __exports as s } from "../../../../../../_virtual/use-sync-external-store-shim.development.js";
|
|
3
|
+
import h from "react";
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-shim.development.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var l;
|
|
14
|
+
function A() {
|
|
15
|
+
return l ? s : (l = 1, process.env.NODE_ENV !== "production" && function() {
|
|
16
|
+
function d(e, t) {
|
|
17
|
+
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
18
|
+
}
|
|
19
|
+
function S(e, t) {
|
|
20
|
+
f || o.startTransition === void 0 || (f = !0, console.error(
|
|
21
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
22
|
+
));
|
|
23
|
+
var r = t();
|
|
24
|
+
if (!c) {
|
|
25
|
+
var u = t();
|
|
26
|
+
_(r, u) || (console.error(
|
|
27
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
28
|
+
), c = !0);
|
|
29
|
+
}
|
|
30
|
+
u = p({
|
|
31
|
+
inst: { value: r, getSnapshot: t }
|
|
32
|
+
});
|
|
33
|
+
var n = u[0].inst, i = u[1];
|
|
34
|
+
return L(
|
|
35
|
+
function() {
|
|
36
|
+
n.value = r, n.getSnapshot = t, a(n) && i({ inst: n });
|
|
37
|
+
},
|
|
38
|
+
[e, r, t]
|
|
39
|
+
), E(
|
|
40
|
+
function() {
|
|
41
|
+
return a(n) && i({ inst: n }), e(function() {
|
|
42
|
+
a(n) && i({ inst: n });
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
[e]
|
|
46
|
+
), y(r), r;
|
|
47
|
+
}
|
|
48
|
+
function a(e) {
|
|
49
|
+
var t = e.getSnapshot;
|
|
50
|
+
e = e.value;
|
|
51
|
+
try {
|
|
52
|
+
var r = t();
|
|
53
|
+
return !_(e, r);
|
|
54
|
+
} catch {
|
|
55
|
+
return !0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function O(e, t) {
|
|
59
|
+
return t();
|
|
60
|
+
}
|
|
61
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
62
|
+
var o = h, _ = typeof Object.is == "function" ? Object.is : d, p = o.useState, E = o.useEffect, L = o.useLayoutEffect, y = o.useDebugValue, f = !1, c = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? O : S;
|
|
63
|
+
s.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
64
|
+
}(), s);
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
A as __require
|
|
68
|
+
};
|