@drghaliasri/butex 5.5.0 → 5.5.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/README.md +1 -0
- package/dist/document.js +2 -1
- package/dist/document.js.map +1 -1
- package/dist/document.mjs +2 -1
- package/dist/document.mjs.map +1 -1
- package/dist/document2.js +9 -10
- package/dist/document2.js.map +1 -1
- package/dist/document2.mjs +9 -10
- package/dist/document2.mjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.global.js +137 -37
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +137 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +137 -37
- package/dist/index.mjs.map +1 -1
- package/dist/react-document.js +171 -39
- package/dist/react-document.js.map +1 -1
- package/dist/react-document.mjs +171 -39
- package/dist/react-document.mjs.map +1 -1
- package/dist/react-document2.js +178 -48
- package/dist/react-document2.js.map +1 -1
- package/dist/react-document2.mjs +178 -48
- package/dist/react-document2.mjs.map +1 -1
- package/dist/react.d.mts +1 -0
- package/dist/react.d.ts +1 -0
- package/dist/react.js +171 -39
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +171 -39
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -173,6 +173,7 @@ Shipped as a separate entry so apps that do not use React never pull it in.
|
|
|
173
173
|
- Import: `import { ButexEditor } from 'butex/react'`.
|
|
174
174
|
- Peer dependencies when using this entry: `react` and `react-dom` (^18 or ^19).
|
|
175
175
|
- The component wraps `Editor.createEditorRuntime` (toolbar, surface, MathJax preview strip, optional dev panels via `debug`).
|
|
176
|
+
- Touch devices use a textarea-backed input bridge, so tapping the structured equation surface opens the software keyboard and supports normal text, deletion, and composed/IME input without making TeX strings the editor state.
|
|
176
177
|
- Load MathJax and register BuTeX **before** relying on the preview (same timing as the GUI contract above). Equation preview in `ButexEditor` uses the same `renderBuTeXMathIsland` path as document math islands (output follows the loaded bundle: SVG when `tex2svg` is available, otherwise CHTML). Optional legacy `mountBuTeXMathTypeset` (`typesetPromise`) remains exported for hosts that still rely on it.
|
|
177
178
|
- Next.js App Router: put BuTeX in a **client component** (`'use client'`).
|
|
178
179
|
|
package/dist/document.js
CHANGED
|
@@ -2431,7 +2431,8 @@ ${BUTEX_FONT_FACE_CSS}
|
|
|
2431
2431
|
transition: box-shadow 0.15s ease, border-color 0.15s ease;
|
|
2432
2432
|
}
|
|
2433
2433
|
|
|
2434
|
-
.surface:focus
|
|
2434
|
+
.surface:focus,
|
|
2435
|
+
.surface.surface--typing-focus {
|
|
2435
2436
|
border-color: var(--butex-focus-border, rgba(13, 148, 136, 0.45));
|
|
2436
2437
|
box-shadow: 0 0 0 3px var(--butex-focus-shadow, rgba(13, 148, 136, 0.12));
|
|
2437
2438
|
}
|