@iblai/web-containers 1.67.0 → 1.67.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/profile/csv-editor.js +44 -7
- package/dist/cjs/components/profile/csv-editor.js.map +1 -1
- package/dist/cjs/node_modules/.pnpm/@tanstack_react-virtual@3.14.25_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@tanstack/react-virtual/dist/esm/index.js +165 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_react-virtual@3.14.25_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/index.js +1648 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/ios-gesture.js +127 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/ios-gesture.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +39 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/scroll-classifier.js +87 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/scroll-classifier.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/utils.js +85 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +1 -0
- package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/components/profile/csv-editor.js +45 -8
- package/dist/esm/components/profile/csv-editor.js.map +1 -1
- package/dist/esm/node_modules/.pnpm/@tanstack_react-virtual@3.14.25_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@tanstack/react-virtual/dist/esm/index.js +138 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-virtual@3.14.25_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/index.js +1636 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/ios-gesture.js +122 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/ios-gesture.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +36 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/scroll-classifier.js +82 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/scroll-classifier.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/utils.js +80 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +1 -0
- package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/package.json +2 -1
- package/package.json +4 -3
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function memo(getDeps, fn, opts) {
|
|
4
|
+
let deps = opts.initialDeps ?? [];
|
|
5
|
+
let result;
|
|
6
|
+
let isInitial = true;
|
|
7
|
+
function memoizedFunction() {
|
|
8
|
+
var _a;
|
|
9
|
+
const debugEnabled = process.env.NODE_ENV !== "production" && !!opts.key && !!((_a = opts.debug) == null ? void 0 : _a.call(opts));
|
|
10
|
+
let depTime = 0;
|
|
11
|
+
if (debugEnabled) depTime = Date.now();
|
|
12
|
+
const newDeps = getDeps();
|
|
13
|
+
const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);
|
|
14
|
+
if (!depsChanged) {
|
|
15
|
+
return result;
|
|
16
|
+
}
|
|
17
|
+
deps = newDeps;
|
|
18
|
+
let resultTime = 0;
|
|
19
|
+
if (debugEnabled) resultTime = Date.now();
|
|
20
|
+
result = fn(...newDeps);
|
|
21
|
+
if (debugEnabled) {
|
|
22
|
+
const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
|
|
23
|
+
const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
|
|
24
|
+
const resultFpsPercentage = resultEndTime / 16;
|
|
25
|
+
const pad = (str, num) => {
|
|
26
|
+
str = String(str);
|
|
27
|
+
while (str.length < num) {
|
|
28
|
+
str = " " + str;
|
|
29
|
+
}
|
|
30
|
+
return str;
|
|
31
|
+
};
|
|
32
|
+
console.info(
|
|
33
|
+
`%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`,
|
|
34
|
+
`
|
|
35
|
+
font-size: .6rem;
|
|
36
|
+
font-weight: bold;
|
|
37
|
+
color: hsl(${Math.max(
|
|
38
|
+
0,
|
|
39
|
+
Math.min(120 - 120 * resultFpsPercentage, 120)
|
|
40
|
+
)}deg 100% 31%);`,
|
|
41
|
+
opts == null ? void 0 : opts.key
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
if ((opts == null ? void 0 : opts.onChange) && !(isInitial && opts.skipInitialOnChange)) {
|
|
45
|
+
opts.onChange(result);
|
|
46
|
+
}
|
|
47
|
+
isInitial = false;
|
|
48
|
+
return result;
|
|
49
|
+
}
|
|
50
|
+
memoizedFunction.updateDeps = (newDeps) => {
|
|
51
|
+
deps = newDeps;
|
|
52
|
+
};
|
|
53
|
+
return memoizedFunction;
|
|
54
|
+
}
|
|
55
|
+
function notUndefined(value, msg) {
|
|
56
|
+
if (value === void 0) {
|
|
57
|
+
throw new Error(`Unexpected undefined${""}`);
|
|
58
|
+
} else {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const approxEqual = (a, b) => Math.abs(a - b) < 1.01;
|
|
63
|
+
const debounce = (targetWindow, fn, ms) => {
|
|
64
|
+
let timeoutId;
|
|
65
|
+
return Object.assign(
|
|
66
|
+
function(...args) {
|
|
67
|
+
targetWindow.clearTimeout(timeoutId);
|
|
68
|
+
timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
// The handle is closure-local, so a caller that has already
|
|
72
|
+
// unsubscribed has no way to stop a queued call. Teardown paths use
|
|
73
|
+
// this to drop the pending invocation instead of letting it land.
|
|
74
|
+
cancel: () => {
|
|
75
|
+
targetWindow.clearTimeout(timeoutId);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
exports.approxEqual = approxEqual;
|
|
82
|
+
exports.debounce = debounce;
|
|
83
|
+
exports.memo = memo;
|
|
84
|
+
exports.notUndefined = notUndefined;
|
|
85
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/@tanstack+virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/utils.js"],"sourcesContent":["function memo(getDeps, fn, opts) {\n let deps = opts.initialDeps ?? [];\n let result;\n let isInitial = true;\n function memoizedFunction() {\n var _a;\n const debugEnabled = process.env.NODE_ENV !== \"production\" && !!opts.key && !!((_a = opts.debug) == null ? void 0 : _a.call(opts));\n let depTime = 0;\n if (debugEnabled) depTime = Date.now();\n const newDeps = getDeps();\n const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);\n if (!depsChanged) {\n return result;\n }\n deps = newDeps;\n let resultTime = 0;\n if (debugEnabled) resultTime = Date.now();\n result = fn(...newDeps);\n if (debugEnabled) {\n const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;\n const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;\n const resultFpsPercentage = resultEndTime / 16;\n const pad = (str, num) => {\n str = String(str);\n while (str.length < num) {\n str = \" \" + str;\n }\n return str;\n };\n console.info(\n `%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`,\n `\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(\n 0,\n Math.min(120 - 120 * resultFpsPercentage, 120)\n )}deg 100% 31%);`,\n opts == null ? void 0 : opts.key\n );\n }\n if ((opts == null ? void 0 : opts.onChange) && !(isInitial && opts.skipInitialOnChange)) {\n opts.onChange(result);\n }\n isInitial = false;\n return result;\n }\n memoizedFunction.updateDeps = (newDeps) => {\n deps = newDeps;\n };\n return memoizedFunction;\n}\nfunction notUndefined(value, msg) {\n if (value === void 0) {\n throw new Error(`Unexpected undefined${msg ? `: ${msg}` : \"\"}`);\n } else {\n return value;\n }\n}\nconst approxEqual = (a, b) => Math.abs(a - b) < 1.01;\nconst debounce = (targetWindow, fn, ms) => {\n let timeoutId;\n return Object.assign(\n function(...args) {\n targetWindow.clearTimeout(timeoutId);\n timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);\n },\n {\n // The handle is closure-local, so a caller that has already\n // unsubscribed has no way to stop a queued call. Teardown paths use\n // this to drop the pending invocation instead of letting it land.\n cancel: () => {\n targetWindow.clearTimeout(timeoutId);\n }\n }\n );\n};\nexport {\n approxEqual,\n debounce,\n memo,\n notUndefined\n};\n//# sourceMappingURL=utils.js.map\n"],"names":[],"mappings":";;AAAA,SAAS,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE;AACjC,EAAE,IAAI,IAAI,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE;AACnC,EAAE,IAAI,MAAM;AACZ,EAAE,IAAI,SAAS,GAAG,IAAI;AACtB,EAAE,SAAS,gBAAgB,GAAG;AAC9B,IAAI,IAAI,EAAE;AACV,IAAI,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,KAAK,IAAI,GAAG,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtI,IAAI,IAAI,OAAO,GAAG,CAAC;AACnB,IAAI,IAAI,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE;AAC1C,IAAI,MAAM,OAAO,GAAG,OAAO,EAAE;AAC7B,IAAI,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;AAC3G,IAAI,IAAI,CAAC,WAAW,EAAE;AACtB,MAAM,OAAO,MAAM;AACnB,IAAI;AACJ,IAAI,IAAI,GAAG,OAAO;AAClB,I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