@drghaliasri/butex 6.1.5 → 7.0.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.
@@ -3738,14 +3738,20 @@ var BUTEX_EDITOR_CSS = `
3738
3738
  ${BUTEX_FONT_FACE_CSS}
3739
3739
 
3740
3740
  .surface {
3741
+ background: var(--butex-surface-bg, linear-gradient(180deg, #ffffff 0%, #fafbfc 100%));
3741
3742
  border: 1px solid var(--butex-border, #e2e8f0);
3742
3743
  border-radius: 12px;
3743
- min-height: 100px;
3744
- padding: 8px 10px;
3745
- background: var(--butex-surface-bg, linear-gradient(180deg, #ffffff 0%, #fafbfc 100%));
3746
3744
  color: var(--butex-surface-fg, #0f172a);
3747
- outline: none;
3748
3745
  cursor: text;
3746
+ max-width: 100%;
3747
+ min-height: 100px;
3748
+ min-width: 0;
3749
+ outline: none;
3750
+ overflow-x: auto;
3751
+ overflow-y: hidden;
3752
+ overscroll-behavior-inline: contain;
3753
+ padding: 8px 10px;
3754
+ touch-action: pan-x pan-y;
3749
3755
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
3750
3756
  }
3751
3757
 
@@ -3810,6 +3816,17 @@ ${CHARACTER_FONT_CSS}
3810
3816
  50% { opacity: 0; }
3811
3817
  }
3812
3818
 
3819
+ @media (prefers-reduced-motion: reduce) {
3820
+ .surface {
3821
+ scroll-behavior: auto;
3822
+ transition: none;
3823
+ }
3824
+
3825
+ .caret {
3826
+ animation: none;
3827
+ }
3828
+ }
3829
+
3813
3830
  .node {
3814
3831
  display: inline-flex;
3815
3832
  align-items: stretch;
@@ -7595,6 +7612,7 @@ function blockPreview(block, islands, output, equationSide, document2, previewOp
7595
7612
  src: block.value,
7596
7613
  ...block.assetId !== void 0 ? { assetId: block.assetId } : {},
7597
7614
  options: block.options,
7615
+ centered: block.centered,
7598
7616
  ...block.captionEnabled && block.caption.trim().length > 0 ? { caption: block.caption.trim() } : {},
7599
7617
  ...label.length > 0 ? { label, numberLabel: floatNumberLabel(document2, label, previewOptions) } : {},
7600
7618
  ...block.metadata ? { metadata: { ...block.metadata } } : {}