@ai-matrx/records-ui 0.116.31 → 0.116.33

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/pickers.cjs CHANGED
@@ -7330,6 +7330,26 @@ function sampleStyle(tokens, theme, font) {
7330
7330
  function sampleDocument(html, tokens, theme, font, fonts) {
7331
7331
  return `<!doctype html><html class="${theme}" style="color-scheme:${theme}"><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="${HTML_SAMPLE_CSP}">` + fontLink(fonts) + `<meta name="color-scheme" content="${theme}"><style id="matrx-sample-tokens">${sampleStyle(tokens, theme, font)}</style></head><body><div id="matrx-sample">${html}</div></body></html>`;
7332
7332
  }
7333
+ function forwardWheel(target, e) {
7334
+ if (!target) return;
7335
+ const r = target.getBoundingClientRect();
7336
+ target.dispatchEvent(
7337
+ new WheelEvent("wheel", {
7338
+ bubbles: true,
7339
+ cancelable: true,
7340
+ deltaX: e.deltaX,
7341
+ deltaY: e.deltaY,
7342
+ deltaZ: e.deltaZ,
7343
+ deltaMode: e.deltaMode,
7344
+ clientX: r.left + e.clientX,
7345
+ clientY: r.top + e.clientY,
7346
+ ctrlKey: e.ctrlKey,
7347
+ metaKey: e.metaKey,
7348
+ shiftKey: e.shiftKey,
7349
+ altKey: e.altKey
7350
+ })
7351
+ );
7352
+ }
7333
7353
  function sampleHeight(doc) {
7334
7354
  const box = doc?.getElementById("matrx-sample");
7335
7355
  if (!box) return 0;
@@ -7387,6 +7407,7 @@ function HtmlSampleFrame({ html, title = "Sample", className, initialHeight = 24
7387
7407
  const box = inner2.getElementById("matrx-sample");
7388
7408
  const View = inner2.defaultView;
7389
7409
  if (box && View?.ResizeObserver) new View.ResizeObserver(() => measure()).observe(box);
7410
+ inner2.addEventListener("wheel", (e) => forwardWheel(frame.current, e), { passive: true });
7390
7411
  };
7391
7412
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
7392
7413
  "iframe",