@drghaliasri/butex 7.4.1 → 8.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.
- package/README.md +49 -553
- package/dist/{document2-cli.js → document-cli.js} +332 -302
- package/dist/document-cli.js.map +1 -0
- package/dist/document.d.mts +1022 -186
- package/dist/document.d.ts +1022 -186
- package/dist/document.js +6068 -658
- package/dist/document.js.map +1 -1
- package/dist/document.mjs +5928 -618
- package/dist/document.mjs.map +1 -1
- package/dist/index.global.js +19 -7
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +19 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -7
- package/dist/index.mjs.map +1 -1
- package/dist/react-document-preview.d.mts +338 -0
- package/dist/react-document-preview.d.ts +338 -0
- package/dist/{react-document2-preview.js → react-document-preview.js} +783 -783
- package/dist/react-document-preview.js.map +1 -0
- package/dist/{react-document2-preview.mjs → react-document-preview.mjs} +776 -776
- package/dist/react-document-preview.mjs.map +1 -0
- package/dist/react-document.d.mts +634 -35
- package/dist/react-document.d.ts +634 -35
- package/dist/react-document.js +13259 -4282
- package/dist/react-document.js.map +1 -1
- package/dist/react-document.mjs +12617 -3648
- package/dist/react-document.mjs.map +1 -1
- package/dist/react.js +4 -4
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +4 -4
- package/dist/react.mjs.map +1 -1
- package/package.json +7 -17
- package/dist/document2-cli.js.map +0 -1
- package/dist/document2.d.mts +0 -1156
- package/dist/document2.d.ts +0 -1156
- package/dist/document2.js +0 -9137
- package/dist/document2.js.map +0 -1
- package/dist/document2.mjs +0 -8972
- package/dist/document2.mjs.map +0 -1
- package/dist/react-document2-preview.d.mts +0 -338
- package/dist/react-document2-preview.d.ts +0 -338
- package/dist/react-document2-preview.js.map +0 -1
- package/dist/react-document2-preview.mjs.map +0 -1
- package/dist/react-document2.d.mts +0 -754
- package/dist/react-document2.d.ts +0 -754
- package/dist/react-document2.js +0 -23011
- package/dist/react-document2.js.map +0 -1
- package/dist/react-document2.mjs +0 -22981
- package/dist/react-document2.mjs.map +0 -1
package/dist/react.js
CHANGED
|
@@ -8735,7 +8735,7 @@ function fromArabicJson(json) {
|
|
|
8735
8735
|
return parseNode(json, "arabic");
|
|
8736
8736
|
}
|
|
8737
8737
|
|
|
8738
|
-
// src/document/mathObject.ts
|
|
8738
|
+
// src/shared/math-document/mathObject.ts
|
|
8739
8739
|
function isObject(value) {
|
|
8740
8740
|
return typeof value === "object" && value !== null;
|
|
8741
8741
|
}
|
|
@@ -8832,7 +8832,7 @@ function toMathObjectJson(math) {
|
|
|
8832
8832
|
};
|
|
8833
8833
|
}
|
|
8834
8834
|
|
|
8835
|
-
// src/document/normalizeCharImport.ts
|
|
8835
|
+
// src/shared/math-document/normalizeCharImport.ts
|
|
8836
8836
|
var WRAPPER_SPECS = [
|
|
8837
8837
|
...NON_DEFAULT_CHARACTER_FONT_SPECS.flatMap((font) => [
|
|
8838
8838
|
{ prefix: font.macro, font: font.id },
|
|
@@ -8896,7 +8896,7 @@ function normalizeCharImportExpr(expr) {
|
|
|
8896
8896
|
return { expr: current, characterFont };
|
|
8897
8897
|
}
|
|
8898
8898
|
|
|
8899
|
-
// src/document/mathEditorAdapter.ts
|
|
8899
|
+
// src/shared/math-document/mathEditorAdapter.ts
|
|
8900
8900
|
var COMMAND_FONT_MAP = Object.fromEntries([
|
|
8901
8901
|
["\\text", "infer"],
|
|
8902
8902
|
...NON_DEFAULT_CHARACTER_FONT_SPECS.flatMap((font) => [
|
|
@@ -10360,7 +10360,7 @@ function useDesktopPopoverPlacement(rootRef, active, onClose) {
|
|
|
10360
10360
|
popover.style.position = "fixed";
|
|
10361
10361
|
popover.style.inset = "auto";
|
|
10362
10362
|
const rootRect = root.getBoundingClientRect();
|
|
10363
|
-
const scrollBoundary = root.closest(".butex-
|
|
10363
|
+
const scrollBoundary = root.closest(".butex-document-widget__equation-modal-body");
|
|
10364
10364
|
const scrollBoundaryRect = scrollBoundary?.getBoundingClientRect();
|
|
10365
10365
|
const triggerRect = trigger.getBoundingClientRect();
|
|
10366
10366
|
const boundaryLeft = Math.max(VIEWPORT_MARGIN, rootRect.left + VIEWPORT_MARGIN);
|