@rpcbase/client 0.401.0 → 0.403.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ declare const measureLayout: (node: HTMLElement | null) => {
2
+ x: number;
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ left: number;
7
+ top: number;
8
+ readonly right: number;
9
+ readonly bottom: number;
10
+ };
11
+ export default measureLayout;
12
+ export declare const getBoundingClientRect: (node: HTMLElement | null) => {
13
+ x: number;
14
+ y: number;
15
+ width: number;
16
+ height: number;
17
+ left: number;
18
+ top: number;
19
+ readonly right: number;
20
+ readonly bottom: number;
21
+ };
22
+ //# sourceMappingURL=measureLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measureLayout.d.ts","sourceRoot":"","sources":["../../src/spatial-nav/measureLayout.ts"],"names":[],"mappings":"AAuBA,QAAA,MAAM,aAAa,GAAI,MAAM,WAAW,GAAG,IAAI;;;;;;;;;CAmC9C,CAAA;AAED,eAAe,aAAa,CAAA;AAE5B,eAAO,MAAM,qBAAqB,GAAI,MAAM,WAAW,GAAG,IAAI;;;;;;;;;CA8B7D,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const FocusContext: import('react').Context<string>;
2
+ /** @internal */
3
+ export declare const useFocusContext: () => string;
4
+ //# sourceMappingURL=useFocusContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFocusContext.d.ts","sourceRoot":"","sources":["../../src/spatial-nav/useFocusContext.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,iCAAgC,CAAA;AAGzD,gBAAgB;AAChB,eAAO,MAAM,eAAe,cAAiC,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { RefObject } from 'react';
2
+ import { FocusableComponentLayout, FocusDetails, KeyPressDetails, Direction } from './SpatialNavigation';
3
+ export type EnterPressHandler<P = object> = (props: P, details: KeyPressDetails) => void;
4
+ export type EnterReleaseHandler<P = object> = (props: P) => void;
5
+ export type ArrowPressHandler<P = object> = (direction: string, props: P, details: KeyPressDetails) => boolean;
6
+ export type ArrowReleaseHandler<P = object> = (direction: string, props: P) => void;
7
+ export type FocusHandler<P = object> = (layout: FocusableComponentLayout, props: P, details: FocusDetails) => void;
8
+ export type BlurHandler<P = object> = (layout: FocusableComponentLayout, props: P, details: FocusDetails) => void;
9
+ export interface UseFocusableConfig<P = object> {
10
+ focusable?: boolean;
11
+ saveLastFocusedChild?: boolean;
12
+ trackChildren?: boolean;
13
+ autoRestoreFocus?: boolean;
14
+ forceFocus?: boolean;
15
+ isFocusBoundary?: boolean;
16
+ focusBoundaryDirections?: Direction[];
17
+ focusKey?: string;
18
+ preferredChildFocusKey?: string;
19
+ onEnterPress?: EnterPressHandler<P>;
20
+ onEnterRelease?: EnterReleaseHandler<P>;
21
+ onArrowPress?: ArrowPressHandler<P>;
22
+ onArrowRelease?: ArrowReleaseHandler<P>;
23
+ onFocus?: FocusHandler<P>;
24
+ onBlur?: BlurHandler<P>;
25
+ extraProps?: P;
26
+ }
27
+ export interface UseFocusableResult<E extends HTMLElement = HTMLElement> {
28
+ ref: RefObject<E | null>;
29
+ focusSelf: (focusDetails?: FocusDetails) => void;
30
+ focused: boolean;
31
+ hasFocusedChild: boolean;
32
+ focusKey: string;
33
+ }
34
+ export declare const useFocusable: <P, E extends HTMLElement = HTMLElement>({ focusable, saveLastFocusedChild, trackChildren, autoRestoreFocus, forceFocus, isFocusBoundary, focusBoundaryDirections, focusKey: propFocusKey, preferredChildFocusKey, onEnterPress, onEnterRelease, onArrowPress, onArrowRelease, onFocus, onBlur, extraProps }?: UseFocusableConfig<P>) => UseFocusableResult<E>;
35
+ //# sourceMappingURL=useFocusable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFocusable.d.ts","sourceRoot":"","sources":["../../src/spatial-nav/useFocusable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAMV,MAAM,OAAO,CAAA;A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,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IACxC,YAAY,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IACxC,OAAO,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACxB,UAAU,CAAC,EAAE,CAAC,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IACrE,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACzB,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AA6MD,eAAO,MAAM,YAAY,GA3MC,CAAC,EAAE,CAAC,SAAS,WAAW,sRAiB/C,kBAAkB,CAAC,CAAC,CAAC,KAAQ,kBAAkB,CAAC,CAAC,CA0LR,CAAA"}
@@ -0,0 +1,396 @@
1
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
2
+ function getDefaultExportFromCjs(x) {
3
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4
+ }
5
+ var _freeGlobal;
6
+ var hasRequired_freeGlobal;
7
+ function require_freeGlobal() {
8
+ if (hasRequired_freeGlobal) return _freeGlobal;
9
+ hasRequired_freeGlobal = 1;
10
+ var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
11
+ _freeGlobal = freeGlobal;
12
+ return _freeGlobal;
13
+ }
14
+ var _root;
15
+ var hasRequired_root;
16
+ function require_root() {
17
+ if (hasRequired_root) return _root;
18
+ hasRequired_root = 1;
19
+ var freeGlobal = require_freeGlobal();
20
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
21
+ var root = freeGlobal || freeSelf || Function("return this")();
22
+ _root = root;
23
+ return _root;
24
+ }
25
+ var _Symbol;
26
+ var hasRequired_Symbol;
27
+ function require_Symbol() {
28
+ if (hasRequired_Symbol) return _Symbol;
29
+ hasRequired_Symbol = 1;
30
+ var root = require_root();
31
+ var Symbol = root.Symbol;
32
+ _Symbol = Symbol;
33
+ return _Symbol;
34
+ }
35
+ var _arrayMap;
36
+ var hasRequired_arrayMap;
37
+ function require_arrayMap() {
38
+ if (hasRequired_arrayMap) return _arrayMap;
39
+ hasRequired_arrayMap = 1;
40
+ function arrayMap(array, iteratee) {
41
+ var index = -1, length = array == null ? 0 : array.length, result = Array(length);
42
+ while (++index < length) {
43
+ result[index] = iteratee(array[index], index, array);
44
+ }
45
+ return result;
46
+ }
47
+ _arrayMap = arrayMap;
48
+ return _arrayMap;
49
+ }
50
+ var isArray_1;
51
+ var hasRequiredIsArray;
52
+ function requireIsArray() {
53
+ if (hasRequiredIsArray) return isArray_1;
54
+ hasRequiredIsArray = 1;
55
+ var isArray = Array.isArray;
56
+ isArray_1 = isArray;
57
+ return isArray_1;
58
+ }
59
+ var _getRawTag;
60
+ var hasRequired_getRawTag;
61
+ function require_getRawTag() {
62
+ if (hasRequired_getRawTag) return _getRawTag;
63
+ hasRequired_getRawTag = 1;
64
+ var Symbol = require_Symbol();
65
+ var objectProto = Object.prototype;
66
+ var hasOwnProperty = objectProto.hasOwnProperty;
67
+ var nativeObjectToString = objectProto.toString;
68
+ var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
69
+ function getRawTag(value) {
70
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
71
+ try {
72
+ value[symToStringTag] = void 0;
73
+ var unmasked = true;
74
+ } catch (e) {
75
+ }
76
+ var result = nativeObjectToString.call(value);
77
+ if (unmasked) {
78
+ if (isOwn) {
79
+ value[symToStringTag] = tag;
80
+ } else {
81
+ delete value[symToStringTag];
82
+ }
83
+ }
84
+ return result;
85
+ }
86
+ _getRawTag = getRawTag;
87
+ return _getRawTag;
88
+ }
89
+ var _objectToString;
90
+ var hasRequired_objectToString;
91
+ function require_objectToString() {
92
+ if (hasRequired_objectToString) return _objectToString;
93
+ hasRequired_objectToString = 1;
94
+ var objectProto = Object.prototype;
95
+ var nativeObjectToString = objectProto.toString;
96
+ function objectToString(value) {
97
+ return nativeObjectToString.call(value);
98
+ }
99
+ _objectToString = objectToString;
100
+ return _objectToString;
101
+ }
102
+ var _baseGetTag;
103
+ var hasRequired_baseGetTag;
104
+ function require_baseGetTag() {
105
+ if (hasRequired_baseGetTag) return _baseGetTag;
106
+ hasRequired_baseGetTag = 1;
107
+ var Symbol = require_Symbol(), getRawTag = require_getRawTag(), objectToString = require_objectToString();
108
+ var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
109
+ var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
110
+ function baseGetTag(value) {
111
+ if (value == null) {
112
+ return value === void 0 ? undefinedTag : nullTag;
113
+ }
114
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
115
+ }
116
+ _baseGetTag = baseGetTag;
117
+ return _baseGetTag;
118
+ }
119
+ var isObjectLike_1;
120
+ var hasRequiredIsObjectLike;
121
+ function requireIsObjectLike() {
122
+ if (hasRequiredIsObjectLike) return isObjectLike_1;
123
+ hasRequiredIsObjectLike = 1;
124
+ function isObjectLike(value) {
125
+ return value != null && typeof value == "object";
126
+ }
127
+ isObjectLike_1 = isObjectLike;
128
+ return isObjectLike_1;
129
+ }
130
+ var isSymbol_1;
131
+ var hasRequiredIsSymbol;
132
+ function requireIsSymbol() {
133
+ if (hasRequiredIsSymbol) return isSymbol_1;
134
+ hasRequiredIsSymbol = 1;
135
+ var baseGetTag = require_baseGetTag(), isObjectLike = requireIsObjectLike();
136
+ var symbolTag = "[object Symbol]";
137
+ function isSymbol(value) {
138
+ return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
139
+ }
140
+ isSymbol_1 = isSymbol;
141
+ return isSymbol_1;
142
+ }
143
+ var _baseToString;
144
+ var hasRequired_baseToString;
145
+ function require_baseToString() {
146
+ if (hasRequired_baseToString) return _baseToString;
147
+ hasRequired_baseToString = 1;
148
+ var Symbol = require_Symbol(), arrayMap = require_arrayMap(), isArray = requireIsArray(), isSymbol = requireIsSymbol();
149
+ var symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
150
+ function baseToString(value) {
151
+ if (typeof value == "string") {
152
+ return value;
153
+ }
154
+ if (isArray(value)) {
155
+ return arrayMap(value, baseToString) + "";
156
+ }
157
+ if (isSymbol(value)) {
158
+ return symbolToString ? symbolToString.call(value) : "";
159
+ }
160
+ var result = value + "";
161
+ return result == "0" && 1 / value == -Infinity ? "-0" : result;
162
+ }
163
+ _baseToString = baseToString;
164
+ return _baseToString;
165
+ }
166
+ var toString_1;
167
+ var hasRequiredToString;
168
+ function requireToString() {
169
+ if (hasRequiredToString) return toString_1;
170
+ hasRequiredToString = 1;
171
+ var baseToString = require_baseToString();
172
+ function toString(value) {
173
+ return value == null ? "" : baseToString(value);
174
+ }
175
+ toString_1 = toString;
176
+ return toString_1;
177
+ }
178
+ var isObject_1;
179
+ var hasRequiredIsObject;
180
+ function requireIsObject() {
181
+ if (hasRequiredIsObject) return isObject_1;
182
+ hasRequiredIsObject = 1;
183
+ function isObject(value) {
184
+ var type = typeof value;
185
+ return value != null && (type == "object" || type == "function");
186
+ }
187
+ isObject_1 = isObject;
188
+ return isObject_1;
189
+ }
190
+ var now_1;
191
+ var hasRequiredNow;
192
+ function requireNow() {
193
+ if (hasRequiredNow) return now_1;
194
+ hasRequiredNow = 1;
195
+ var root = require_root();
196
+ var now = function() {
197
+ return root.Date.now();
198
+ };
199
+ now_1 = now;
200
+ return now_1;
201
+ }
202
+ var _trimmedEndIndex;
203
+ var hasRequired_trimmedEndIndex;
204
+ function require_trimmedEndIndex() {
205
+ if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
206
+ hasRequired_trimmedEndIndex = 1;
207
+ var reWhitespace = /\s/;
208
+ function trimmedEndIndex(string) {
209
+ var index = string.length;
210
+ while (index-- && reWhitespace.test(string.charAt(index))) {
211
+ }
212
+ return index;
213
+ }
214
+ _trimmedEndIndex = trimmedEndIndex;
215
+ return _trimmedEndIndex;
216
+ }
217
+ var _baseTrim;
218
+ var hasRequired_baseTrim;
219
+ function require_baseTrim() {
220
+ if (hasRequired_baseTrim) return _baseTrim;
221
+ hasRequired_baseTrim = 1;
222
+ var trimmedEndIndex = require_trimmedEndIndex();
223
+ var reTrimStart = /^\s+/;
224
+ function baseTrim(string) {
225
+ return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
226
+ }
227
+ _baseTrim = baseTrim;
228
+ return _baseTrim;
229
+ }
230
+ var toNumber_1;
231
+ var hasRequiredToNumber;
232
+ function requireToNumber() {
233
+ if (hasRequiredToNumber) return toNumber_1;
234
+ hasRequiredToNumber = 1;
235
+ var baseTrim = require_baseTrim(), isObject = requireIsObject(), isSymbol = requireIsSymbol();
236
+ var NAN = 0 / 0;
237
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
238
+ var reIsBinary = /^0b[01]+$/i;
239
+ var reIsOctal = /^0o[0-7]+$/i;
240
+ var freeParseInt = parseInt;
241
+ function toNumber(value) {
242
+ if (typeof value == "number") {
243
+ return value;
244
+ }
245
+ if (isSymbol(value)) {
246
+ return NAN;
247
+ }
248
+ if (isObject(value)) {
249
+ var other = typeof value.valueOf == "function" ? value.valueOf() : value;
250
+ value = isObject(other) ? other + "" : other;
251
+ }
252
+ if (typeof value != "string") {
253
+ return value === 0 ? value : +value;
254
+ }
255
+ value = baseTrim(value);
256
+ var isBinary = reIsBinary.test(value);
257
+ return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
258
+ }
259
+ toNumber_1 = toNumber;
260
+ return toNumber_1;
261
+ }
262
+ var debounce_1;
263
+ var hasRequiredDebounce;
264
+ function requireDebounce() {
265
+ if (hasRequiredDebounce) return debounce_1;
266
+ hasRequiredDebounce = 1;
267
+ var isObject = requireIsObject(), now = requireNow(), toNumber = requireToNumber();
268
+ var FUNC_ERROR_TEXT = "Expected a function";
269
+ var nativeMax = Math.max, nativeMin = Math.min;
270
+ function debounce(func, wait, options) {
271
+ var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
272
+ if (typeof func != "function") {
273
+ throw new TypeError(FUNC_ERROR_TEXT);
274
+ }
275
+ wait = toNumber(wait) || 0;
276
+ if (isObject(options)) {
277
+ leading = !!options.leading;
278
+ maxing = "maxWait" in options;
279
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
280
+ trailing = "trailing" in options ? !!options.trailing : trailing;
281
+ }
282
+ function invokeFunc(time) {
283
+ var args = lastArgs, thisArg = lastThis;
284
+ lastArgs = lastThis = void 0;
285
+ lastInvokeTime = time;
286
+ result = func.apply(thisArg, args);
287
+ return result;
288
+ }
289
+ function leadingEdge(time) {
290
+ lastInvokeTime = time;
291
+ timerId = setTimeout(timerExpired, wait);
292
+ return leading ? invokeFunc(time) : result;
293
+ }
294
+ function remainingWait(time) {
295
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
296
+ return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
297
+ }
298
+ function shouldInvoke(time) {
299
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
300
+ return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
301
+ }
302
+ function timerExpired() {
303
+ var time = now();
304
+ if (shouldInvoke(time)) {
305
+ return trailingEdge(time);
306
+ }
307
+ timerId = setTimeout(timerExpired, remainingWait(time));
308
+ }
309
+ function trailingEdge(time) {
310
+ timerId = void 0;
311
+ if (trailing && lastArgs) {
312
+ return invokeFunc(time);
313
+ }
314
+ lastArgs = lastThis = void 0;
315
+ return result;
316
+ }
317
+ function cancel() {
318
+ if (timerId !== void 0) {
319
+ clearTimeout(timerId);
320
+ }
321
+ lastInvokeTime = 0;
322
+ lastArgs = lastCallTime = lastThis = timerId = void 0;
323
+ }
324
+ function flush() {
325
+ return timerId === void 0 ? result : trailingEdge(now());
326
+ }
327
+ function debounced() {
328
+ var time = now(), isInvoking = shouldInvoke(time);
329
+ lastArgs = arguments;
330
+ lastThis = this;
331
+ lastCallTime = time;
332
+ if (isInvoking) {
333
+ if (timerId === void 0) {
334
+ return leadingEdge(lastCallTime);
335
+ }
336
+ if (maxing) {
337
+ clearTimeout(timerId);
338
+ timerId = setTimeout(timerExpired, wait);
339
+ return invokeFunc(lastCallTime);
340
+ }
341
+ }
342
+ if (timerId === void 0) {
343
+ timerId = setTimeout(timerExpired, wait);
344
+ }
345
+ return result;
346
+ }
347
+ debounced.cancel = cancel;
348
+ debounced.flush = flush;
349
+ return debounced;
350
+ }
351
+ debounce_1 = debounce;
352
+ return debounce_1;
353
+ }
354
+ var throttle_1;
355
+ var hasRequiredThrottle;
356
+ function requireThrottle() {
357
+ if (hasRequiredThrottle) return throttle_1;
358
+ hasRequiredThrottle = 1;
359
+ var debounce = requireDebounce(), isObject = requireIsObject();
360
+ var FUNC_ERROR_TEXT = "Expected a function";
361
+ function throttle2(func, wait, options) {
362
+ var leading = true, trailing = true;
363
+ if (typeof func != "function") {
364
+ throw new TypeError(FUNC_ERROR_TEXT);
365
+ }
366
+ if (isObject(options)) {
367
+ leading = "leading" in options ? !!options.leading : leading;
368
+ trailing = "trailing" in options ? !!options.trailing : trailing;
369
+ }
370
+ return debounce(func, wait, {
371
+ "leading": leading,
372
+ "maxWait": wait,
373
+ "trailing": trailing
374
+ });
375
+ }
376
+ throttle_1 = throttle2;
377
+ return throttle_1;
378
+ }
379
+ var throttleExports = requireThrottle();
380
+ const throttle = /* @__PURE__ */ getDefaultExportFromCjs(throttleExports);
381
+ export {
382
+ requireDebounce as a,
383
+ require_baseGetTag as b,
384
+ requireIsObject as c,
385
+ require_root as d,
386
+ require_arrayMap as e,
387
+ requireIsObjectLike as f,
388
+ getDefaultExportFromCjs as g,
389
+ require_Symbol as h,
390
+ requireIsArray as i,
391
+ require_freeGlobal as j,
392
+ requireIsSymbol as k,
393
+ requireToString as r,
394
+ throttle as t
395
+ };
396
+ //# sourceMappingURL=throttle-CXOc9Dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"throttle-CXOc9Dto.js","sources":["../../../node_modules/lodash/_freeGlobal.js","../../../node_modules/lodash/_root.js","../../../node_modules/lodash/_Symbol.js","../../../node_modules/lodash/_arrayMap.js","../../../node_modules/lodash/isArray.js","../../../node_modules/lodash/_getRawTag.js","../../../node_modules/lodash/_objectToString.js","../../../node_modules/lodash/_baseGetTag.js","../../../node_modules/lodash/isObjectLike.js","../../../node_modules/lodash/isSymbol.js","../../../node_modules/lodash/_baseToString.js","../../../node_modules/lodash/toString.js","../../../node_modules/lodash/isObject.js","../../../node_modules/lodash/now.js","../../../node_modules/lodash/_trimmedEndIndex.js","../../../node_modules/lodash/_baseTrim.js","../../../node_modules/lodash/toNumber.js","../../../node_modules/lodash/debounce.js","../../../node_modules/lodash/throttle.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["global","require$$0","require$$1","require$$2","require$$3","throttle"],"mappings":";;;;;;;;;AACA,MAAI,aAAa,OAAOA,kBAAU,YAAYA,kBAAUA,eAAO,WAAW,UAAUA;AAEpF,gBAAiB;;;;;;;;ACHjB,MAAI,aAAaC,mBAAA;AAGjB,MAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,MAAI,OAAO,cAAc,YAAY,SAAS,aAAa,EAAC;AAE5D,UAAiB;;;;;;;;ACRjB,MAAI,OAAOA,aAAA;AAGX,MAAI,SAAS,KAAK;AAElB,YAAiB;;;;;;;;ACIjB,WAAS,SAAS,OAAO,UAAU;AACjC,QAAI,QAAQ,IACR,SAAS,SAAS,OAAO,IAAI,MAAM,QACnC,SAAS,MAAM,MAAM;AAEzB,WAAO,EAAE,QAAQ,QAAQ;AACvB,aAAO,KAAK,IAAI,SAAS,MAAM,KAAK,GAAG,OAAO,KAAK;AAAA,IACvD;AACE,WAAO;AAAA,EACT;AAEA,cAAiB;;;;;;;;ACGjB,MAAI,UAAU,MAAM;AAEpB,cAAiB;;;;;;;;ACzBjB,MAAI,SAASA,eAAA;AAGb,MAAI,cAAc,OAAO;AAGzB,MAAI,iBAAiB,YAAY;AAOjC,MAAI,uBAAuB,YAAY;AAGvC,MAAI,iBAAiB,SAAS,OAAO,cAAc;AASnD,WAAS,UAA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AAW;AACX,iBAAW;AACX,qBAAe;AAEf,UAAI,YAAY;AACd,YAAI,YAAY,QAAW;AACzB,iBAAO,YAAY,YAAY;AAAA,QACvC;AACM,YAAI,QAAQ;AAEV,uBAAa,OAAO;AACpB,oBAAU,WAAW,cAAc,IAAI;AACvC,iBAAO,WAAW,YAAY;AAAA,QACtC;AAAA,MACA;AACI,UAAI,YAAY,QAAW;AACzB,kBAAU,WAAW,cAAc,IAAI;AAAA,MAC7C;AACI,aAAO;AAAA,IACX;AACE,cAAU,SAAS;AACnB,cAAU,QAAQ;AAClB,WAAO;AAAA,EACT;AAEA,eAAiB;;;;;;;;AC9LjB,MAAI,WAAWF,gBAAA,GACX,WAAWC,gBAAA;AAGf,MAAI,kBAAkB;AA8CtB,WAASG,UAAS,MAAM,MAAM,SAAS;AACrC,QAAI,UAAU,MACV,WAAW;AAEf,QAAI,OAAO,QAAQ,YAAY;AAC7B,YAAM,IAAI,UAAU,eAAe;AAAA,IACvC;AACE,QAAI,SAAS,OAAO,GAAG;AACrB,gBAAU,aAAa,UAAU,CAAC,CAAC,QAAQ,UAAU;AACrD,iBAAW,cAAc,UAAU,CAAC,CAAC,QAAQ,WAAW;AAAA,IAC5D;AACE,WAAO,SAAS,MAAM,MAAM;AAAA,MAC1B,WAAW;AAAA,MACX,WAAW;AAAA,MACX,YAAY;AAAA,IAChB,CAAG;AAAA,EACH;AAEA,eAAiBA;;;;;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]}
@@ -1 +1 @@
1
- {"version":3,"file":"useApplyScroll.d.ts","sourceRoot":"","sources":["../../src/utils/useApplyScroll.ts"],"names":[],"mappings":"AAiBA,wBAAgB,cAAc,SAuJ7B"}
1
+ {"version":3,"file":"useApplyScroll.d.ts","sourceRoot":"","sources":["../../src/utils/useApplyScroll.ts"],"names":[],"mappings":"AAiBA,wBAAgB,cAAc,SA0J7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.401.0",
3
+ "version": "0.403.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -18,6 +18,11 @@
18
18
  "import": "./dist/rts/index.js",
19
19
  "default": "./dist/rts/index.js"
20
20
  },
21
+ "./spatial-nav": {
22
+ "types": "./dist/spatial-nav/index.d.ts",
23
+ "import": "./dist/spatial-nav/index.js",
24
+ "default": "./dist/spatial-nav/index.js"
25
+ },
21
26
  "./instrument": {
22
27
  "types": "./dist/instrument.d.ts",
23
28
  "import": "./dist/instrument.js",