add initial marp implementation with sample content and build configuration

This commit is contained in:
2025-09-13 18:13:22 +02:00
parent dcacc9b409
commit e5f219507f
10319 changed files with 1402023 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"component": "ui/lazy",
"targets": ["ui/lazy"]
}
+7
View File
@@ -0,0 +1,7 @@
import './lib/lazy.js';
import {LazyHandler} from '../../../../js/ui/lazy/LazyHandler.js';
if (MathJax.startup) {
MathJax.startup.extendHandler(handler => LazyHandler(handler));
}
+16
View File
@@ -0,0 +1,16 @@
import {combineWithMathJax} from '../../../../../js/components/global.js';
import {VERSION} from '../../../../../js/components/version.js';
import * as module1 from '../../../../../js/ui/lazy/LazyHandler.js';
if (MathJax.loader) {
MathJax.loader.checkVersion('ui/lazy', VERSION, 'ui');
}
combineWithMathJax({_: {
ui: {
lazy: {
LazyHandler: module1
}
}
}});
@@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, '__esModule', {value: true});
exports.LazyList = MathJax._.ui.lazy.LazyHandler.LazyList;
exports.LAZYID = MathJax._.ui.lazy.LazyHandler.LAZYID;
exports.LazyMathItemMixin = MathJax._.ui.lazy.LazyHandler.LazyMathItemMixin;
exports.LazyMathDocumentMixin = MathJax._.ui.lazy.LazyHandler.LazyMathDocumentMixin;
exports.LazyHandler = MathJax._.ui.lazy.LazyHandler.LazyHandler;
+10
View File
@@ -0,0 +1,10 @@
const PACKAGE = require('../../../webpack.common.js');
module.exports = PACKAGE(
'ui/lazy', // the package to build
'../../../../js', // location of the MathJax js library
[ // packages to link to
'components/src/core/lib'
],
__dirname // our directory
);
+4
View File
@@ -0,0 +1,4 @@
{
"component": "ui/menu",
"targets": ["ui/menu"]
}
+24
View File
@@ -0,0 +1,24 @@
import {combineWithMathJax} from '../../../../../js/components/global.js';
import {VERSION} from '../../../../../js/components/version.js';
import * as module1 from '../../../../../js/ui/menu/MJContextMenu.js';
import * as module2 from '../../../../../js/ui/menu/Menu.js';
import * as module3 from '../../../../../js/ui/menu/MenuHandler.js';
import * as module4 from '../../../../../js/ui/menu/MmlVisitor.js';
import * as module5 from '../../../../../js/ui/menu/SelectableInfo.js';
if (MathJax.loader) {
MathJax.loader.checkVersion('ui/menu', VERSION, 'ui');
}
combineWithMathJax({_: {
ui: {
menu: {
MJContextMenu: module1,
Menu: module2,
MenuHandler: module3,
MmlVisitor: module4,
SelectableInfo: module5
}
}
}});
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, '__esModule', {value: true});
exports.MJContextMenu = MathJax._.ui.menu.MJContextMenu.MJContextMenu;
+3
View File
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, '__esModule', {value: true});
exports.Menu = MathJax._.ui.menu.Menu.Menu;
@@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, '__esModule', {value: true});
exports.MenuMathItemMixin = MathJax._.ui.menu.MenuHandler.MenuMathItemMixin;
exports.MenuMathDocumentMixin = MathJax._.ui.menu.MenuHandler.MenuMathDocumentMixin;
exports.MenuHandler = MathJax._.ui.menu.MenuHandler.MenuHandler;
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, '__esModule', {value: true});
exports.MmlVisitor = MathJax._.ui.menu.MmlVisitor.MmlVisitor;
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, '__esModule', {value: true});
exports.SelectableInfo = MathJax._.ui.menu.SelectableInfo.SelectableInfo;
+7
View File
@@ -0,0 +1,7 @@
import './lib/menu.js';
import {MenuHandler} from '../../../../js/ui/menu/MenuHandler.js';
if (MathJax.startup && typeof window !== 'undefined') {
MathJax.startup.extendHandler(handler => MenuHandler(handler), 20);
}
+8
View File
@@ -0,0 +1,8 @@
const PACKAGE = require('../../../webpack.common.js');
module.exports = PACKAGE(
'ui/menu', // the package to build
'../../../../js', // location of the MathJax js library
['components/src/core/lib', 'node_modules/mj-context-menu/js'], // packages to link to
__dirname // our directory
);
+4
View File
@@ -0,0 +1,4 @@
{
"component": "ui/safe",
"targets": ["ui/safe"]
}
+20
View File
@@ -0,0 +1,20 @@
import {combineWithMathJax} from '../../../../../js/components/global.js';
import {VERSION} from '../../../../../js/components/version.js';
import * as module1 from '../../../../../js/ui/safe/SafeHandler.js';
import * as module2 from '../../../../../js/ui/safe/SafeMethods.js';
import * as module3 from '../../../../../js/ui/safe/safe.js';
if (MathJax.loader) {
MathJax.loader.checkVersion('ui/safe', VERSION, 'ui');
}
combineWithMathJax({_: {
ui: {
safe: {
SafeHandler: module1,
SafeMethods: module2,
safe: module3
}
}
}});
@@ -0,0 +1,4 @@
"use strict";
Object.defineProperty(exports, '__esModule', {value: true});
exports.SafeMathDocumentMixin = MathJax._.ui.safe.SafeHandler.SafeMathDocumentMixin;
exports.SafeHandler = MathJax._.ui.safe.SafeHandler.SafeHandler;
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, '__esModule', {value: true});
exports.SafeMethods = MathJax._.ui.safe.SafeMethods.SafeMethods;
+3
View File
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, '__esModule', {value: true});
exports.Safe = MathJax._.ui.safe.safe.Safe;
+7
View File
@@ -0,0 +1,7 @@
import './lib/safe.js';
import {SafeHandler} from '../../../../js/ui/safe/SafeHandler.js';
if (MathJax.startup && typeof window !== 'undefined') {
MathJax.startup.extendHandler(handler => SafeHandler(handler));
}
+8
View File
@@ -0,0 +1,8 @@
const PACKAGE = require('../../../webpack.common.js');
module.exports = PACKAGE(
'ui/safe', // the package to build
'../../../../js', // location of the MathJax js library
['components/src/core/lib'], // packages to link to
__dirname // our directory
);