@legendapp/list 2.0.0-beta.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.DS_Store +0 -0
- package/index.js +475 -2
- package/index.mjs +476 -3
- package/package.json +1 -1
package/.DS_Store
ADDED
|
Binary file
|
package/index.js
CHANGED
|
@@ -24,7 +24,453 @@ function _interopNamespace(e) {
|
|
|
24
24
|
|
|
25
25
|
var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
var __create = Object.create;
|
|
28
|
+
var __defProp = Object.defineProperty;
|
|
29
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
30
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
31
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
32
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
33
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
34
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
35
|
+
}) : x)(function(x) {
|
|
36
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
37
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
38
|
+
});
|
|
39
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
40
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
41
|
+
};
|
|
42
|
+
var __copyProps = (to, from, except, desc) => {
|
|
43
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
44
|
+
for (let key of __getOwnPropNames(from))
|
|
45
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
46
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
47
|
+
}
|
|
48
|
+
return to;
|
|
49
|
+
};
|
|
50
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
51
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
52
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
53
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
54
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
55
|
+
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
56
|
+
mod
|
|
57
|
+
));
|
|
58
|
+
|
|
59
|
+
// node_modules/react-dom/cjs/react-dom.production.js
|
|
60
|
+
var require_react_dom_production = __commonJS({
|
|
61
|
+
"node_modules/react-dom/cjs/react-dom.production.js"(exports) {
|
|
62
|
+
var React13 = __require("react");
|
|
63
|
+
function formatProdErrorMessage(code) {
|
|
64
|
+
var url = "https://react.dev/errors/" + code;
|
|
65
|
+
if (1 < arguments.length) {
|
|
66
|
+
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
67
|
+
for (var i = 2; i < arguments.length; i++)
|
|
68
|
+
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
69
|
+
}
|
|
70
|
+
return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
71
|
+
}
|
|
72
|
+
function noop2() {
|
|
73
|
+
}
|
|
74
|
+
var Internals = {
|
|
75
|
+
d: {
|
|
76
|
+
f: noop2,
|
|
77
|
+
r: function() {
|
|
78
|
+
throw Error(formatProdErrorMessage(522));
|
|
79
|
+
},
|
|
80
|
+
D: noop2,
|
|
81
|
+
C: noop2,
|
|
82
|
+
L: noop2,
|
|
83
|
+
m: noop2,
|
|
84
|
+
X: noop2,
|
|
85
|
+
S: noop2,
|
|
86
|
+
M: noop2
|
|
87
|
+
},
|
|
88
|
+
p: 0,
|
|
89
|
+
findDOMNode: null
|
|
90
|
+
};
|
|
91
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
92
|
+
function createPortal$1(children, containerInfo, implementation) {
|
|
93
|
+
var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
94
|
+
return {
|
|
95
|
+
$$typeof: REACT_PORTAL_TYPE,
|
|
96
|
+
key: null == key ? null : "" + key,
|
|
97
|
+
children,
|
|
98
|
+
containerInfo,
|
|
99
|
+
implementation
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
var ReactSharedInternals = React13.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
103
|
+
function getCrossOriginStringAs(as, input) {
|
|
104
|
+
if ("font" === as) return "";
|
|
105
|
+
if ("string" === typeof input)
|
|
106
|
+
return "use-credentials" === input ? input : "";
|
|
107
|
+
}
|
|
108
|
+
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
109
|
+
exports.createPortal = function(children, container) {
|
|
110
|
+
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
111
|
+
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
|
112
|
+
throw Error(formatProdErrorMessage(299));
|
|
113
|
+
return createPortal$1(children, container, null, key);
|
|
114
|
+
};
|
|
115
|
+
exports.flushSync = function(fn) {
|
|
116
|
+
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
117
|
+
try {
|
|
118
|
+
if (ReactSharedInternals.T = null, Internals.p = 2, fn) return fn();
|
|
119
|
+
} finally {
|
|
120
|
+
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
exports.preconnect = function(href, options) {
|
|
124
|
+
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
|
125
|
+
};
|
|
126
|
+
exports.prefetchDNS = function(href) {
|
|
127
|
+
"string" === typeof href && Internals.d.D(href);
|
|
128
|
+
};
|
|
129
|
+
exports.preinit = function(href, options) {
|
|
130
|
+
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
131
|
+
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
|
132
|
+
"style" === as ? Internals.d.S(
|
|
133
|
+
href,
|
|
134
|
+
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
135
|
+
{
|
|
136
|
+
crossOrigin,
|
|
137
|
+
integrity,
|
|
138
|
+
fetchPriority
|
|
139
|
+
}
|
|
140
|
+
) : "script" === as && Internals.d.X(href, {
|
|
141
|
+
crossOrigin,
|
|
142
|
+
integrity,
|
|
143
|
+
fetchPriority,
|
|
144
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
exports.preinitModule = function(href, options) {
|
|
149
|
+
if ("string" === typeof href)
|
|
150
|
+
if ("object" === typeof options && null !== options) {
|
|
151
|
+
if (null == options.as || "script" === options.as) {
|
|
152
|
+
var crossOrigin = getCrossOriginStringAs(
|
|
153
|
+
options.as,
|
|
154
|
+
options.crossOrigin
|
|
155
|
+
);
|
|
156
|
+
Internals.d.M(href, {
|
|
157
|
+
crossOrigin,
|
|
158
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
159
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
} else null == options && Internals.d.M(href);
|
|
163
|
+
};
|
|
164
|
+
exports.preload = function(href, options) {
|
|
165
|
+
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
|
166
|
+
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
|
167
|
+
Internals.d.L(href, as, {
|
|
168
|
+
crossOrigin,
|
|
169
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
170
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
171
|
+
type: "string" === typeof options.type ? options.type : void 0,
|
|
172
|
+
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
|
173
|
+
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
|
174
|
+
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
175
|
+
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
176
|
+
media: "string" === typeof options.media ? options.media : void 0
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
exports.preloadModule = function(href, options) {
|
|
181
|
+
if ("string" === typeof href)
|
|
182
|
+
if (options) {
|
|
183
|
+
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
|
184
|
+
Internals.d.m(href, {
|
|
185
|
+
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
|
186
|
+
crossOrigin,
|
|
187
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
188
|
+
});
|
|
189
|
+
} else Internals.d.m(href);
|
|
190
|
+
};
|
|
191
|
+
exports.requestFormReset = function(form) {
|
|
192
|
+
Internals.d.r(form);
|
|
193
|
+
};
|
|
194
|
+
exports.unstable_batchedUpdates = function(fn, a) {
|
|
195
|
+
return fn(a);
|
|
196
|
+
};
|
|
197
|
+
exports.useFormState = function(action, initialState, permalink) {
|
|
198
|
+
return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
|
199
|
+
};
|
|
200
|
+
exports.useFormStatus = function() {
|
|
201
|
+
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
202
|
+
};
|
|
203
|
+
exports.version = "19.1.1";
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
// node_modules/react-dom/cjs/react-dom.development.js
|
|
208
|
+
var require_react_dom_development = __commonJS({
|
|
209
|
+
"node_modules/react-dom/cjs/react-dom.development.js"(exports) {
|
|
210
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
211
|
+
function noop2() {
|
|
212
|
+
}
|
|
213
|
+
function testStringCoercion(value) {
|
|
214
|
+
return "" + value;
|
|
215
|
+
}
|
|
216
|
+
function createPortal$1(children, containerInfo, implementation) {
|
|
217
|
+
var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
218
|
+
try {
|
|
219
|
+
testStringCoercion(key);
|
|
220
|
+
var JSCompiler_inline_result = false;
|
|
221
|
+
} catch (e) {
|
|
222
|
+
JSCompiler_inline_result = true;
|
|
223
|
+
}
|
|
224
|
+
JSCompiler_inline_result && (console.error(
|
|
225
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
226
|
+
"function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
|
|
227
|
+
), testStringCoercion(key));
|
|
228
|
+
return {
|
|
229
|
+
$$typeof: REACT_PORTAL_TYPE,
|
|
230
|
+
key: null == key ? null : "" + key,
|
|
231
|
+
children,
|
|
232
|
+
containerInfo,
|
|
233
|
+
implementation
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
function getCrossOriginStringAs(as, input) {
|
|
237
|
+
if ("font" === as) return "";
|
|
238
|
+
if ("string" === typeof input)
|
|
239
|
+
return "use-credentials" === input ? input : "";
|
|
240
|
+
}
|
|
241
|
+
function getValueDescriptorExpectingObjectForWarning(thing) {
|
|
242
|
+
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"';
|
|
243
|
+
}
|
|
244
|
+
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
245
|
+
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
|
|
246
|
+
}
|
|
247
|
+
function resolveDispatcher() {
|
|
248
|
+
var dispatcher = ReactSharedInternals.H;
|
|
249
|
+
null === dispatcher && console.error(
|
|
250
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
251
|
+
);
|
|
252
|
+
return dispatcher;
|
|
253
|
+
}
|
|
254
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
255
|
+
var React13 = __require("react"), Internals = {
|
|
256
|
+
d: {
|
|
257
|
+
f: noop2,
|
|
258
|
+
r: function() {
|
|
259
|
+
throw Error(
|
|
260
|
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
261
|
+
);
|
|
262
|
+
},
|
|
263
|
+
D: noop2,
|
|
264
|
+
C: noop2,
|
|
265
|
+
L: noop2,
|
|
266
|
+
m: noop2,
|
|
267
|
+
X: noop2,
|
|
268
|
+
S: noop2,
|
|
269
|
+
M: noop2
|
|
270
|
+
},
|
|
271
|
+
p: 0,
|
|
272
|
+
findDOMNode: null
|
|
273
|
+
}, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React13.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
274
|
+
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
|
|
275
|
+
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
276
|
+
);
|
|
277
|
+
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
278
|
+
exports.createPortal = function(children, container) {
|
|
279
|
+
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
280
|
+
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
|
281
|
+
throw Error("Target container is not a DOM element.");
|
|
282
|
+
return createPortal$1(children, container, null, key);
|
|
283
|
+
};
|
|
284
|
+
exports.flushSync = function(fn) {
|
|
285
|
+
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
286
|
+
try {
|
|
287
|
+
if (ReactSharedInternals.T = null, Internals.p = 2, fn)
|
|
288
|
+
return fn();
|
|
289
|
+
} finally {
|
|
290
|
+
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error(
|
|
291
|
+
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
exports.preconnect = function(href, options) {
|
|
296
|
+
"string" === typeof href && href ? null != options && "object" !== typeof options ? console.error(
|
|
297
|
+
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
298
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
299
|
+
) : null != options && "string" !== typeof options.crossOrigin && console.error(
|
|
300
|
+
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
301
|
+
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
302
|
+
) : console.error(
|
|
303
|
+
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
304
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
305
|
+
);
|
|
306
|
+
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
|
307
|
+
};
|
|
308
|
+
exports.prefetchDNS = function(href) {
|
|
309
|
+
if ("string" !== typeof href || !href)
|
|
310
|
+
console.error(
|
|
311
|
+
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
312
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
313
|
+
);
|
|
314
|
+
else if (1 < arguments.length) {
|
|
315
|
+
var options = arguments[1];
|
|
316
|
+
"object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error(
|
|
317
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
318
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
319
|
+
) : console.error(
|
|
320
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
321
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
"string" === typeof href && Internals.d.D(href);
|
|
325
|
+
};
|
|
326
|
+
exports.preinit = function(href, options) {
|
|
327
|
+
"string" === typeof href && href ? null == options || "object" !== typeof options ? console.error(
|
|
328
|
+
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
329
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
330
|
+
) : "style" !== options.as && "script" !== options.as && console.error(
|
|
331
|
+
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
332
|
+
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
333
|
+
) : console.error(
|
|
334
|
+
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
335
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
336
|
+
);
|
|
337
|
+
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
338
|
+
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
|
339
|
+
"style" === as ? Internals.d.S(
|
|
340
|
+
href,
|
|
341
|
+
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
342
|
+
{
|
|
343
|
+
crossOrigin,
|
|
344
|
+
integrity,
|
|
345
|
+
fetchPriority
|
|
346
|
+
}
|
|
347
|
+
) : "script" === as && Internals.d.X(href, {
|
|
348
|
+
crossOrigin,
|
|
349
|
+
integrity,
|
|
350
|
+
fetchPriority,
|
|
351
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
exports.preinitModule = function(href, options) {
|
|
356
|
+
var encountered = "";
|
|
357
|
+
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
358
|
+
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
|
|
359
|
+
if (encountered)
|
|
360
|
+
console.error(
|
|
361
|
+
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
362
|
+
encountered
|
|
363
|
+
);
|
|
364
|
+
else
|
|
365
|
+
switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) {
|
|
366
|
+
case "script":
|
|
367
|
+
break;
|
|
368
|
+
default:
|
|
369
|
+
encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error(
|
|
370
|
+
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
371
|
+
encountered,
|
|
372
|
+
href
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
if ("string" === typeof href)
|
|
376
|
+
if ("object" === typeof options && null !== options) {
|
|
377
|
+
if (null == options.as || "script" === options.as)
|
|
378
|
+
encountered = getCrossOriginStringAs(
|
|
379
|
+
options.as,
|
|
380
|
+
options.crossOrigin
|
|
381
|
+
), Internals.d.M(href, {
|
|
382
|
+
crossOrigin: encountered,
|
|
383
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
384
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
385
|
+
});
|
|
386
|
+
} else null == options && Internals.d.M(href);
|
|
387
|
+
};
|
|
388
|
+
exports.preload = function(href, options) {
|
|
389
|
+
var encountered = "";
|
|
390
|
+
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
391
|
+
null == options || "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : "string" === typeof options.as && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
|
392
|
+
encountered && console.error(
|
|
393
|
+
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
394
|
+
encountered
|
|
395
|
+
);
|
|
396
|
+
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
|
397
|
+
encountered = options.as;
|
|
398
|
+
var crossOrigin = getCrossOriginStringAs(
|
|
399
|
+
encountered,
|
|
400
|
+
options.crossOrigin
|
|
401
|
+
);
|
|
402
|
+
Internals.d.L(href, encountered, {
|
|
403
|
+
crossOrigin,
|
|
404
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
405
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
406
|
+
type: "string" === typeof options.type ? options.type : void 0,
|
|
407
|
+
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
|
408
|
+
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
|
409
|
+
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
410
|
+
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
411
|
+
media: "string" === typeof options.media ? options.media : void 0
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
exports.preloadModule = function(href, options) {
|
|
416
|
+
var encountered = "";
|
|
417
|
+
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
418
|
+
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "string" !== typeof options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
|
419
|
+
encountered && console.error(
|
|
420
|
+
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
421
|
+
encountered
|
|
422
|
+
);
|
|
423
|
+
"string" === typeof href && (options ? (encountered = getCrossOriginStringAs(
|
|
424
|
+
options.as,
|
|
425
|
+
options.crossOrigin
|
|
426
|
+
), Internals.d.m(href, {
|
|
427
|
+
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
|
428
|
+
crossOrigin: encountered,
|
|
429
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
430
|
+
})) : Internals.d.m(href));
|
|
431
|
+
};
|
|
432
|
+
exports.requestFormReset = function(form) {
|
|
433
|
+
Internals.d.r(form);
|
|
434
|
+
};
|
|
435
|
+
exports.unstable_batchedUpdates = function(fn, a) {
|
|
436
|
+
return fn(a);
|
|
437
|
+
};
|
|
438
|
+
exports.useFormState = function(action, initialState, permalink) {
|
|
439
|
+
return resolveDispatcher().useFormState(action, initialState, permalink);
|
|
440
|
+
};
|
|
441
|
+
exports.useFormStatus = function() {
|
|
442
|
+
return resolveDispatcher().useHostTransitionStatus();
|
|
443
|
+
};
|
|
444
|
+
exports.version = "19.1.1";
|
|
445
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
446
|
+
}();
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
// node_modules/react-dom/index.js
|
|
451
|
+
var require_react_dom = __commonJS({
|
|
452
|
+
"node_modules/react-dom/index.js"(exports, module) {
|
|
453
|
+
function checkDCE() {
|
|
454
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
if (process.env.NODE_ENV !== "production") {
|
|
458
|
+
throw new Error("^_^");
|
|
459
|
+
}
|
|
460
|
+
try {
|
|
461
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
462
|
+
} catch (err) {
|
|
463
|
+
console.error(err);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
if (process.env.NODE_ENV === "production") {
|
|
467
|
+
checkDCE();
|
|
468
|
+
module.exports = require_react_dom_production();
|
|
469
|
+
} else {
|
|
470
|
+
module.exports = require_react_dom_development();
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
});
|
|
28
474
|
var ContextState = React3__namespace.createContext(null);
|
|
29
475
|
function StateProvider({ children }) {
|
|
30
476
|
const [value] = React3__namespace.useState(() => ({
|
|
@@ -1779,6 +2225,9 @@ function setDidLayout(ctx, state) {
|
|
|
1779
2225
|
}
|
|
1780
2226
|
}
|
|
1781
2227
|
|
|
2228
|
+
// src/platform/BatchedUpdates.ts
|
|
2229
|
+
var import_react_dom = __toESM(require_react_dom());
|
|
2230
|
+
|
|
1782
2231
|
// src/core/calculateItemsInView.ts
|
|
1783
2232
|
function findCurrentStickyIndex(stickyArray, scroll, state) {
|
|
1784
2233
|
var _a;
|
|
@@ -1843,7 +2292,7 @@ function handleStickyRecycling(ctx, state, stickyArray, scroll, scrollBuffer, pe
|
|
|
1843
2292
|
}
|
|
1844
2293
|
}
|
|
1845
2294
|
function calculateItemsInView(ctx, state, params = {}) {
|
|
1846
|
-
|
|
2295
|
+
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
1847
2296
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1848
2297
|
const {
|
|
1849
2298
|
columns,
|
|
@@ -3098,6 +3547,30 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
3098
3547
|
}
|
|
3099
3548
|
), __DEV__ && ENABLE_DEBUG_VIEW && /* @__PURE__ */ React3__namespace.createElement(DebugView, { state: refState.current }));
|
|
3100
3549
|
});
|
|
3550
|
+
/*! Bundled license information:
|
|
3551
|
+
|
|
3552
|
+
react-dom/cjs/react-dom.production.js:
|
|
3553
|
+
(**
|
|
3554
|
+
* @license React
|
|
3555
|
+
* react-dom.production.js
|
|
3556
|
+
*
|
|
3557
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3558
|
+
*
|
|
3559
|
+
* This source code is licensed under the MIT license found in the
|
|
3560
|
+
* LICENSE file in the root directory of this source tree.
|
|
3561
|
+
*)
|
|
3562
|
+
|
|
3563
|
+
react-dom/cjs/react-dom.development.js:
|
|
3564
|
+
(**
|
|
3565
|
+
* @license React
|
|
3566
|
+
* react-dom.development.js
|
|
3567
|
+
*
|
|
3568
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3569
|
+
*
|
|
3570
|
+
* This source code is licensed under the MIT license found in the
|
|
3571
|
+
* LICENSE file in the root directory of this source tree.
|
|
3572
|
+
*)
|
|
3573
|
+
*/
|
|
3101
3574
|
|
|
3102
3575
|
exports.LegendList = LegendList;
|
|
3103
3576
|
exports.useIsLastItem = useIsLastItem;
|
package/index.mjs
CHANGED
|
@@ -1,9 +1,455 @@
|
|
|
1
1
|
import * as React3 from 'react';
|
|
2
2
|
import React3__default, { useReducer, useEffect, createContext, useRef, useState, useMemo, useLayoutEffect, useCallback, useImperativeHandle, forwardRef, memo, useContext } from 'react';
|
|
3
|
-
import { View, Text, Platform, Animated, StyleSheet, Dimensions, RefreshControl
|
|
3
|
+
import { View, Text, Platform, Animated, StyleSheet, Dimensions, RefreshControl } from 'react-native';
|
|
4
4
|
import { useSyncExternalStore } from 'use-sync-external-store/shim';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
var __create = Object.create;
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
13
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
14
|
+
}) : x)(function(x) {
|
|
15
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
16
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
17
|
+
});
|
|
18
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
19
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
20
|
+
};
|
|
21
|
+
var __copyProps = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(from))
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
};
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
|
|
38
|
+
// node_modules/react-dom/cjs/react-dom.production.js
|
|
39
|
+
var require_react_dom_production = __commonJS({
|
|
40
|
+
"node_modules/react-dom/cjs/react-dom.production.js"(exports) {
|
|
41
|
+
var React13 = __require("react");
|
|
42
|
+
function formatProdErrorMessage(code) {
|
|
43
|
+
var url = "https://react.dev/errors/" + code;
|
|
44
|
+
if (1 < arguments.length) {
|
|
45
|
+
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
46
|
+
for (var i = 2; i < arguments.length; i++)
|
|
47
|
+
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
48
|
+
}
|
|
49
|
+
return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
50
|
+
}
|
|
51
|
+
function noop2() {
|
|
52
|
+
}
|
|
53
|
+
var Internals = {
|
|
54
|
+
d: {
|
|
55
|
+
f: noop2,
|
|
56
|
+
r: function() {
|
|
57
|
+
throw Error(formatProdErrorMessage(522));
|
|
58
|
+
},
|
|
59
|
+
D: noop2,
|
|
60
|
+
C: noop2,
|
|
61
|
+
L: noop2,
|
|
62
|
+
m: noop2,
|
|
63
|
+
X: noop2,
|
|
64
|
+
S: noop2,
|
|
65
|
+
M: noop2
|
|
66
|
+
},
|
|
67
|
+
p: 0,
|
|
68
|
+
findDOMNode: null
|
|
69
|
+
};
|
|
70
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
71
|
+
function createPortal$1(children, containerInfo, implementation) {
|
|
72
|
+
var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
73
|
+
return {
|
|
74
|
+
$$typeof: REACT_PORTAL_TYPE,
|
|
75
|
+
key: null == key ? null : "" + key,
|
|
76
|
+
children,
|
|
77
|
+
containerInfo,
|
|
78
|
+
implementation
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
var ReactSharedInternals = React13.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
82
|
+
function getCrossOriginStringAs(as, input) {
|
|
83
|
+
if ("font" === as) return "";
|
|
84
|
+
if ("string" === typeof input)
|
|
85
|
+
return "use-credentials" === input ? input : "";
|
|
86
|
+
}
|
|
87
|
+
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
88
|
+
exports.createPortal = function(children, container) {
|
|
89
|
+
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
90
|
+
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
|
91
|
+
throw Error(formatProdErrorMessage(299));
|
|
92
|
+
return createPortal$1(children, container, null, key);
|
|
93
|
+
};
|
|
94
|
+
exports.flushSync = function(fn) {
|
|
95
|
+
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
96
|
+
try {
|
|
97
|
+
if (ReactSharedInternals.T = null, Internals.p = 2, fn) return fn();
|
|
98
|
+
} finally {
|
|
99
|
+
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
exports.preconnect = function(href, options) {
|
|
103
|
+
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
|
104
|
+
};
|
|
105
|
+
exports.prefetchDNS = function(href) {
|
|
106
|
+
"string" === typeof href && Internals.d.D(href);
|
|
107
|
+
};
|
|
108
|
+
exports.preinit = function(href, options) {
|
|
109
|
+
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
110
|
+
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
|
111
|
+
"style" === as ? Internals.d.S(
|
|
112
|
+
href,
|
|
113
|
+
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
114
|
+
{
|
|
115
|
+
crossOrigin,
|
|
116
|
+
integrity,
|
|
117
|
+
fetchPriority
|
|
118
|
+
}
|
|
119
|
+
) : "script" === as && Internals.d.X(href, {
|
|
120
|
+
crossOrigin,
|
|
121
|
+
integrity,
|
|
122
|
+
fetchPriority,
|
|
123
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
exports.preinitModule = function(href, options) {
|
|
128
|
+
if ("string" === typeof href)
|
|
129
|
+
if ("object" === typeof options && null !== options) {
|
|
130
|
+
if (null == options.as || "script" === options.as) {
|
|
131
|
+
var crossOrigin = getCrossOriginStringAs(
|
|
132
|
+
options.as,
|
|
133
|
+
options.crossOrigin
|
|
134
|
+
);
|
|
135
|
+
Internals.d.M(href, {
|
|
136
|
+
crossOrigin,
|
|
137
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
138
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
} else null == options && Internals.d.M(href);
|
|
142
|
+
};
|
|
143
|
+
exports.preload = function(href, options) {
|
|
144
|
+
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
|
145
|
+
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
|
146
|
+
Internals.d.L(href, as, {
|
|
147
|
+
crossOrigin,
|
|
148
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
149
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
150
|
+
type: "string" === typeof options.type ? options.type : void 0,
|
|
151
|
+
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
|
152
|
+
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
|
153
|
+
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
154
|
+
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
155
|
+
media: "string" === typeof options.media ? options.media : void 0
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
exports.preloadModule = function(href, options) {
|
|
160
|
+
if ("string" === typeof href)
|
|
161
|
+
if (options) {
|
|
162
|
+
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
|
163
|
+
Internals.d.m(href, {
|
|
164
|
+
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
|
165
|
+
crossOrigin,
|
|
166
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
167
|
+
});
|
|
168
|
+
} else Internals.d.m(href);
|
|
169
|
+
};
|
|
170
|
+
exports.requestFormReset = function(form) {
|
|
171
|
+
Internals.d.r(form);
|
|
172
|
+
};
|
|
173
|
+
exports.unstable_batchedUpdates = function(fn, a) {
|
|
174
|
+
return fn(a);
|
|
175
|
+
};
|
|
176
|
+
exports.useFormState = function(action, initialState, permalink) {
|
|
177
|
+
return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
|
178
|
+
};
|
|
179
|
+
exports.useFormStatus = function() {
|
|
180
|
+
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
181
|
+
};
|
|
182
|
+
exports.version = "19.1.1";
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
// node_modules/react-dom/cjs/react-dom.development.js
|
|
187
|
+
var require_react_dom_development = __commonJS({
|
|
188
|
+
"node_modules/react-dom/cjs/react-dom.development.js"(exports) {
|
|
189
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
190
|
+
function noop2() {
|
|
191
|
+
}
|
|
192
|
+
function testStringCoercion(value) {
|
|
193
|
+
return "" + value;
|
|
194
|
+
}
|
|
195
|
+
function createPortal$1(children, containerInfo, implementation) {
|
|
196
|
+
var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
197
|
+
try {
|
|
198
|
+
testStringCoercion(key);
|
|
199
|
+
var JSCompiler_inline_result = false;
|
|
200
|
+
} catch (e) {
|
|
201
|
+
JSCompiler_inline_result = true;
|
|
202
|
+
}
|
|
203
|
+
JSCompiler_inline_result && (console.error(
|
|
204
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
205
|
+
"function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
|
|
206
|
+
), testStringCoercion(key));
|
|
207
|
+
return {
|
|
208
|
+
$$typeof: REACT_PORTAL_TYPE,
|
|
209
|
+
key: null == key ? null : "" + key,
|
|
210
|
+
children,
|
|
211
|
+
containerInfo,
|
|
212
|
+
implementation
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function getCrossOriginStringAs(as, input) {
|
|
216
|
+
if ("font" === as) return "";
|
|
217
|
+
if ("string" === typeof input)
|
|
218
|
+
return "use-credentials" === input ? input : "";
|
|
219
|
+
}
|
|
220
|
+
function getValueDescriptorExpectingObjectForWarning(thing) {
|
|
221
|
+
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"';
|
|
222
|
+
}
|
|
223
|
+
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
224
|
+
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
|
|
225
|
+
}
|
|
226
|
+
function resolveDispatcher() {
|
|
227
|
+
var dispatcher = ReactSharedInternals.H;
|
|
228
|
+
null === dispatcher && console.error(
|
|
229
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
230
|
+
);
|
|
231
|
+
return dispatcher;
|
|
232
|
+
}
|
|
233
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
234
|
+
var React13 = __require("react"), Internals = {
|
|
235
|
+
d: {
|
|
236
|
+
f: noop2,
|
|
237
|
+
r: function() {
|
|
238
|
+
throw Error(
|
|
239
|
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
240
|
+
);
|
|
241
|
+
},
|
|
242
|
+
D: noop2,
|
|
243
|
+
C: noop2,
|
|
244
|
+
L: noop2,
|
|
245
|
+
m: noop2,
|
|
246
|
+
X: noop2,
|
|
247
|
+
S: noop2,
|
|
248
|
+
M: noop2
|
|
249
|
+
},
|
|
250
|
+
p: 0,
|
|
251
|
+
findDOMNode: null
|
|
252
|
+
}, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React13.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
253
|
+
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
|
|
254
|
+
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
255
|
+
);
|
|
256
|
+
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
257
|
+
exports.createPortal = function(children, container) {
|
|
258
|
+
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
259
|
+
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
|
260
|
+
throw Error("Target container is not a DOM element.");
|
|
261
|
+
return createPortal$1(children, container, null, key);
|
|
262
|
+
};
|
|
263
|
+
exports.flushSync = function(fn) {
|
|
264
|
+
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
265
|
+
try {
|
|
266
|
+
if (ReactSharedInternals.T = null, Internals.p = 2, fn)
|
|
267
|
+
return fn();
|
|
268
|
+
} finally {
|
|
269
|
+
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error(
|
|
270
|
+
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
exports.preconnect = function(href, options) {
|
|
275
|
+
"string" === typeof href && href ? null != options && "object" !== typeof options ? console.error(
|
|
276
|
+
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
277
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
278
|
+
) : null != options && "string" !== typeof options.crossOrigin && console.error(
|
|
279
|
+
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
280
|
+
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
281
|
+
) : console.error(
|
|
282
|
+
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
283
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
284
|
+
);
|
|
285
|
+
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
|
286
|
+
};
|
|
287
|
+
exports.prefetchDNS = function(href) {
|
|
288
|
+
if ("string" !== typeof href || !href)
|
|
289
|
+
console.error(
|
|
290
|
+
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
291
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
292
|
+
);
|
|
293
|
+
else if (1 < arguments.length) {
|
|
294
|
+
var options = arguments[1];
|
|
295
|
+
"object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error(
|
|
296
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
297
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
298
|
+
) : console.error(
|
|
299
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
300
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
"string" === typeof href && Internals.d.D(href);
|
|
304
|
+
};
|
|
305
|
+
exports.preinit = function(href, options) {
|
|
306
|
+
"string" === typeof href && href ? null == options || "object" !== typeof options ? console.error(
|
|
307
|
+
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
308
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
309
|
+
) : "style" !== options.as && "script" !== options.as && console.error(
|
|
310
|
+
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
311
|
+
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
312
|
+
) : console.error(
|
|
313
|
+
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
314
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
315
|
+
);
|
|
316
|
+
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
317
|
+
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
|
318
|
+
"style" === as ? Internals.d.S(
|
|
319
|
+
href,
|
|
320
|
+
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
321
|
+
{
|
|
322
|
+
crossOrigin,
|
|
323
|
+
integrity,
|
|
324
|
+
fetchPriority
|
|
325
|
+
}
|
|
326
|
+
) : "script" === as && Internals.d.X(href, {
|
|
327
|
+
crossOrigin,
|
|
328
|
+
integrity,
|
|
329
|
+
fetchPriority,
|
|
330
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
exports.preinitModule = function(href, options) {
|
|
335
|
+
var encountered = "";
|
|
336
|
+
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
337
|
+
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
|
|
338
|
+
if (encountered)
|
|
339
|
+
console.error(
|
|
340
|
+
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
341
|
+
encountered
|
|
342
|
+
);
|
|
343
|
+
else
|
|
344
|
+
switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) {
|
|
345
|
+
case "script":
|
|
346
|
+
break;
|
|
347
|
+
default:
|
|
348
|
+
encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error(
|
|
349
|
+
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
350
|
+
encountered,
|
|
351
|
+
href
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
if ("string" === typeof href)
|
|
355
|
+
if ("object" === typeof options && null !== options) {
|
|
356
|
+
if (null == options.as || "script" === options.as)
|
|
357
|
+
encountered = getCrossOriginStringAs(
|
|
358
|
+
options.as,
|
|
359
|
+
options.crossOrigin
|
|
360
|
+
), Internals.d.M(href, {
|
|
361
|
+
crossOrigin: encountered,
|
|
362
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
363
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
364
|
+
});
|
|
365
|
+
} else null == options && Internals.d.M(href);
|
|
366
|
+
};
|
|
367
|
+
exports.preload = function(href, options) {
|
|
368
|
+
var encountered = "";
|
|
369
|
+
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
370
|
+
null == options || "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : "string" === typeof options.as && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
|
371
|
+
encountered && console.error(
|
|
372
|
+
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
373
|
+
encountered
|
|
374
|
+
);
|
|
375
|
+
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
|
376
|
+
encountered = options.as;
|
|
377
|
+
var crossOrigin = getCrossOriginStringAs(
|
|
378
|
+
encountered,
|
|
379
|
+
options.crossOrigin
|
|
380
|
+
);
|
|
381
|
+
Internals.d.L(href, encountered, {
|
|
382
|
+
crossOrigin,
|
|
383
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
384
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
385
|
+
type: "string" === typeof options.type ? options.type : void 0,
|
|
386
|
+
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
|
387
|
+
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
|
388
|
+
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
389
|
+
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
390
|
+
media: "string" === typeof options.media ? options.media : void 0
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
exports.preloadModule = function(href, options) {
|
|
395
|
+
var encountered = "";
|
|
396
|
+
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
397
|
+
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "string" !== typeof options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
|
398
|
+
encountered && console.error(
|
|
399
|
+
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
400
|
+
encountered
|
|
401
|
+
);
|
|
402
|
+
"string" === typeof href && (options ? (encountered = getCrossOriginStringAs(
|
|
403
|
+
options.as,
|
|
404
|
+
options.crossOrigin
|
|
405
|
+
), Internals.d.m(href, {
|
|
406
|
+
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
|
407
|
+
crossOrigin: encountered,
|
|
408
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
409
|
+
})) : Internals.d.m(href));
|
|
410
|
+
};
|
|
411
|
+
exports.requestFormReset = function(form) {
|
|
412
|
+
Internals.d.r(form);
|
|
413
|
+
};
|
|
414
|
+
exports.unstable_batchedUpdates = function(fn, a) {
|
|
415
|
+
return fn(a);
|
|
416
|
+
};
|
|
417
|
+
exports.useFormState = function(action, initialState, permalink) {
|
|
418
|
+
return resolveDispatcher().useFormState(action, initialState, permalink);
|
|
419
|
+
};
|
|
420
|
+
exports.useFormStatus = function() {
|
|
421
|
+
return resolveDispatcher().useHostTransitionStatus();
|
|
422
|
+
};
|
|
423
|
+
exports.version = "19.1.1";
|
|
424
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
425
|
+
}();
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
|
|
429
|
+
// node_modules/react-dom/index.js
|
|
430
|
+
var require_react_dom = __commonJS({
|
|
431
|
+
"node_modules/react-dom/index.js"(exports, module) {
|
|
432
|
+
function checkDCE() {
|
|
433
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
if (process.env.NODE_ENV !== "production") {
|
|
437
|
+
throw new Error("^_^");
|
|
438
|
+
}
|
|
439
|
+
try {
|
|
440
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
441
|
+
} catch (err) {
|
|
442
|
+
console.error(err);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
if (process.env.NODE_ENV === "production") {
|
|
446
|
+
checkDCE();
|
|
447
|
+
module.exports = require_react_dom_production();
|
|
448
|
+
} else {
|
|
449
|
+
module.exports = require_react_dom_development();
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
});
|
|
7
453
|
var ContextState = React3.createContext(null);
|
|
8
454
|
function StateProvider({ children }) {
|
|
9
455
|
const [value] = React3.useState(() => ({
|
|
@@ -1758,6 +2204,9 @@ function setDidLayout(ctx, state) {
|
|
|
1758
2204
|
}
|
|
1759
2205
|
}
|
|
1760
2206
|
|
|
2207
|
+
// src/platform/BatchedUpdates.ts
|
|
2208
|
+
var import_react_dom = __toESM(require_react_dom());
|
|
2209
|
+
|
|
1761
2210
|
// src/core/calculateItemsInView.ts
|
|
1762
2211
|
function findCurrentStickyIndex(stickyArray, scroll, state) {
|
|
1763
2212
|
var _a;
|
|
@@ -1822,7 +2271,7 @@ function handleStickyRecycling(ctx, state, stickyArray, scroll, scrollBuffer, pe
|
|
|
1822
2271
|
}
|
|
1823
2272
|
}
|
|
1824
2273
|
function calculateItemsInView(ctx, state, params = {}) {
|
|
1825
|
-
unstable_batchedUpdates(() => {
|
|
2274
|
+
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
1826
2275
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1827
2276
|
const {
|
|
1828
2277
|
columns,
|
|
@@ -3077,5 +3526,29 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
3077
3526
|
}
|
|
3078
3527
|
), __DEV__ && ENABLE_DEBUG_VIEW && /* @__PURE__ */ React3.createElement(DebugView, { state: refState.current }));
|
|
3079
3528
|
});
|
|
3529
|
+
/*! Bundled license information:
|
|
3530
|
+
|
|
3531
|
+
react-dom/cjs/react-dom.production.js:
|
|
3532
|
+
(**
|
|
3533
|
+
* @license React
|
|
3534
|
+
* react-dom.production.js
|
|
3535
|
+
*
|
|
3536
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3537
|
+
*
|
|
3538
|
+
* This source code is licensed under the MIT license found in the
|
|
3539
|
+
* LICENSE file in the root directory of this source tree.
|
|
3540
|
+
*)
|
|
3541
|
+
|
|
3542
|
+
react-dom/cjs/react-dom.development.js:
|
|
3543
|
+
(**
|
|
3544
|
+
* @license React
|
|
3545
|
+
* react-dom.development.js
|
|
3546
|
+
*
|
|
3547
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3548
|
+
*
|
|
3549
|
+
* This source code is licensed under the MIT license found in the
|
|
3550
|
+
* LICENSE file in the root directory of this source tree.
|
|
3551
|
+
*)
|
|
3552
|
+
*/
|
|
3080
3553
|
|
|
3081
3554
|
export { LegendList, useIsLastItem, useListScrollSize, useRecyclingEffect, useRecyclingState, useSyncLayout, useViewability, useViewabilityAmount };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/list",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
4
|
"description": "Legend List is a drop-in replacement for FlatList with much better performance and supporting dynamically sized items.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"private": false,
|