@iblai/web-containers 1.67.0 → 1.67.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.
Files changed (41) hide show
  1. package/dist/cjs/components/chat/index.js +5 -0
  2. package/dist/cjs/components/chat/index.js.map +1 -1
  3. package/dist/cjs/components/profile/csv-editor.js +44 -7
  4. package/dist/cjs/components/profile/csv-editor.js.map +1 -1
  5. 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
  6. 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
  7. package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/index.js +1648 -0
  8. package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +1 -0
  9. package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/ios-gesture.js +127 -0
  10. 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
  11. package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +39 -0
  12. 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
  13. package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/scroll-classifier.js +87 -0
  14. 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
  15. package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/utils.js +85 -0
  16. package/dist/cjs/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +1 -0
  17. package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -1
  18. package/dist/esm/_virtual/index2.js +2 -2
  19. package/dist/esm/_virtual/index3.js +2 -2
  20. package/dist/esm/components/chat/index.js +5 -0
  21. package/dist/esm/components/chat/index.js.map +1 -1
  22. package/dist/esm/components/profile/csv-editor.js +45 -8
  23. package/dist/esm/components/profile/csv-editor.js.map +1 -1
  24. 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
  25. 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
  26. package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/index.js +1636 -0
  27. package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +1 -0
  28. package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/ios-gesture.js +122 -0
  29. 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
  30. package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +36 -0
  31. 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
  32. package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/scroll-classifier.js +82 -0
  33. 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
  34. package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/utils.js +80 -0
  35. package/dist/esm/node_modules/.pnpm/@tanstack_virtual-core@3.19.10/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +1 -0
  36. package/dist/esm/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
  37. package/dist/esm/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
  38. package/dist/esm/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  39. package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
  40. package/dist/package.json +2 -1
  41. package/package.json +4 -3
@@ -0,0 +1,80 @@
1
+ function memo(getDeps, fn, opts) {
2
+ let deps = opts.initialDeps ?? [];
3
+ let result;
4
+ let isInitial = true;
5
+ function memoizedFunction() {
6
+ var _a;
7
+ const debugEnabled = process.env.NODE_ENV !== "production" && !!opts.key && !!((_a = opts.debug) == null ? void 0 : _a.call(opts));
8
+ let depTime = 0;
9
+ if (debugEnabled) depTime = Date.now();
10
+ const newDeps = getDeps();
11
+ const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);
12
+ if (!depsChanged) {
13
+ return result;
14
+ }
15
+ deps = newDeps;
16
+ let resultTime = 0;
17
+ if (debugEnabled) resultTime = Date.now();
18
+ result = fn(...newDeps);
19
+ if (debugEnabled) {
20
+ const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
21
+ const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
22
+ const resultFpsPercentage = resultEndTime / 16;
23
+ const pad = (str, num) => {
24
+ str = String(str);
25
+ while (str.length < num) {
26
+ str = " " + str;
27
+ }
28
+ return str;
29
+ };
30
+ console.info(
31
+ `%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`,
32
+ `
33
+ font-size: .6rem;
34
+ font-weight: bold;
35
+ color: hsl(${Math.max(
36
+ 0,
37
+ Math.min(120 - 120 * resultFpsPercentage, 120)
38
+ )}deg 100% 31%);`,
39
+ opts == null ? void 0 : opts.key
40
+ );
41
+ }
42
+ if ((opts == null ? void 0 : opts.onChange) && !(isInitial && opts.skipInitialOnChange)) {
43
+ opts.onChange(result);
44
+ }
45
+ isInitial = false;
46
+ return result;
47
+ }
48
+ memoizedFunction.updateDeps = (newDeps) => {
49
+ deps = newDeps;
50
+ };
51
+ return memoizedFunction;
52
+ }
53
+ function notUndefined(value, msg) {
54
+ if (value === void 0) {
55
+ throw new Error(`Unexpected undefined${""}`);
56
+ } else {
57
+ return value;
58
+ }
59
+ }
60
+ const approxEqual = (a, b) => Math.abs(a - b) < 1.01;
61
+ const debounce = (targetWindow, fn, ms) => {
62
+ let timeoutId;
63
+ return Object.assign(
64
+ function(...args) {
65
+ targetWindow.clearTimeout(timeoutId);
66
+ timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
67
+ },
68
+ {
69
+ // The handle is closure-local, so a caller that has already
70
+ // unsubscribed has no way to stop a queued call. Teardown paths use
71
+ // this to drop the pending invocation instead of letting it land.
72
+ cancel: () => {
73
+ targetWindow.clearTimeout(timeoutId);
74
+ }
75
+ }
76
+ );
77
+ };
78
+
79
+ export { approxEqual, debounce, memo, notUndefined };
80
+ //# 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.clearTim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E;AACF,EAAE,gBAAgB,CAAC,UAAU,GAAG,CAAC,OAAO,KAAK;AAC7C,IAAI,IAAI,GAAG,OAAO;AAClB,EAAE,CAAC;AACH,EAAE,OAAO,gBAAgB;AACzB;AACA,SAAS,YAAY,CAAC,KAAK,EAAE,GAAG,EAAE;AAClC,EAAE,IAAI,KAAK,KAAK,MAAM,EAAE;AACxB,IAAI,MAAM,IAAI,KAAK,CAAC,CAAC,oBAAoB,EAAqB,EAAE,CAAC,CAAC,CAAC;AACnE,EAAE,CAAC,MAAM;AACT,IAAI,OAAO,KAAK;AAChB,EAAE;AACF;AACK,MAAC,WAAW,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG;AAC3C,MAAC,QAAQ,GAAG,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,KAAK;AAC3C,EAAE,IAAI,SAAS;AACf,EAAE,OAAO,MAAM,CAAC,MAAM;AACtB,IAAI,SAAS,GAAG,IAAI,EAAE;AACtB,MAAM,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC;AAC1C,MAAM,SAAS,GAAG,YAAY,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;AACzE,IAAI,CAAC;AACL,IAAI;AACJ;AACA;AACA;AACA,MAAM,MAAM,EAAE,MAAM;AACpB,QAAQ,YAAY,CAAC,YAAY,CAAC,SAAS,CAAC;AAC5C,MAAM;AACN;AACA,GAAG;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { __exports as cssMediaquery } from '../../../../../_virtual/index3.js';
1
+ import { __exports as cssMediaquery } from '../../../../../_virtual/index2.js';
2
2
 
3
3
  /*
4
4
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
@@ -1,6 +1,6 @@
1
1
  import { getDefaultExportFromCjs } from '../../../../../_virtual/_commonjsHelpers.js';
2
2
  import '../../../css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js';
3
- import { __exports as cssMediaquery } from '../../../../../_virtual/index3.js';
3
+ import { __exports as cssMediaquery } from '../../../../../_virtual/index2.js';
4
4
 
5
5
  var staticMatch = cssMediaquery.match;
6
6
  var dynamicMatch = typeof window !== 'undefined' ? window.matchMedia : null;
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from '../../../../../_virtual/_commonjsHelpers.js';
2
- import { __module as propTypes } from '../../../../../_virtual/index2.js';
2
+ import { __module as propTypes } from '../../../../../_virtual/index3.js';
3
3
  import { __require as requireReactIs } from '../../../react-is@16.13.1/node_modules/react-is/index.js';
4
4
  import { __require as requireFactoryWithTypeCheckers } from './factoryWithTypeCheckers.js';
5
5
  import { __require as requireFactoryWithThrowingShims } from './factoryWithThrowingShims.js';