@marp-team/marp-core 4.0.1 → 4.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marp-team/marp-core",
3
- "version": "4.0.1",
3
+ "version": "4.2.0",
4
4
  "description": "The core of Marp tools",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -65,62 +65,61 @@
65
65
  "exec": "npx @marp-team/marp-cli@latest -y"
66
66
  },
67
67
  "devDependencies": {
68
- "@csstools/postcss-minify": "^2.0.3",
68
+ "@csstools/postcss-minify": "^2.0.4",
69
69
  "@rollup/plugin-alias": "^5.1.1",
70
- "@rollup/plugin-commonjs": "^28.0.2",
70
+ "@rollup/plugin-commonjs": "^28.0.3",
71
71
  "@rollup/plugin-json": "^6.1.0",
72
- "@rollup/plugin-node-resolve": "^16.0.0",
72
+ "@rollup/plugin-node-resolve": "^16.0.3",
73
73
  "@rollup/plugin-terser": "^0.4.4",
74
74
  "@rollup/plugin-typescript": "^12.1.2",
75
- "@tsconfig/node20": "^20.1.4",
75
+ "@tsconfig/node20": "^20.1.6",
76
76
  "@tsconfig/recommended": "^1.0.8",
77
- "@twemoji/api": "^15.1.0",
78
- "@types/eslint__js": "^8.42.3",
79
- "@types/jest": "^29.5.14",
80
- "autoprefixer": "^10.4.20",
81
- "cheerio": "^1.0.0",
82
- "cssnano": "^7.0.6",
77
+ "@twemoji/api": "^16.0.1",
78
+ "@types/jest": "^30.0.0",
79
+ "autoprefixer": "^10.4.21",
80
+ "cheerio": "^1.1.2",
81
+ "cssnano": "^7.1.2",
83
82
  "emoji-regex": "10.4.0",
84
- "eslint": "^9.17.0",
85
- "eslint-config-prettier": "^9.1.0",
86
- "eslint-import-resolver-typescript": "^3.7.0",
87
- "eslint-plugin-import-x": "^4.6.1",
88
- "eslint-plugin-jest": "^28.10.0",
83
+ "eslint": "^9.38.0",
84
+ "eslint-config-prettier": "^10.1.8",
85
+ "eslint-import-resolver-typescript": "^4.4.4",
86
+ "eslint-plugin-import-x": "^4.16.1",
87
+ "eslint-plugin-jest": "^29.0.1",
89
88
  "github-markdown-css": "5.8.1",
90
- "globals": "^15.14.0",
91
- "jest": "^29.7.0",
92
- "jest-environment-jsdom": "^29.7.0",
89
+ "globals": "^16.4.0",
90
+ "jest": "^30.2.0",
91
+ "jest-environment-jsdom": "^30.2.0",
93
92
  "jest-junit": "^16.0.0",
94
93
  "jest-plugin-context": "^2.9.0",
95
94
  "markdown-it": "^14.1.0",
96
95
  "markdown-it-emoji": "^3.0.0",
97
96
  "mkdirp": "^3.0.1",
98
- "nodemon": "^3.1.9",
99
- "npm-check-updates": "^17.1.12",
100
- "npm-run-all2": "^7.0.2",
97
+ "nodemon": "^3.1.10",
98
+ "npm-check-updates": "^19.1.2",
99
+ "npm-run-all2": "^8.0.4",
100
+ "postcss": "^8.5.6",
101
101
  "postcss-url": "^10.1.3",
102
- "prettier": "^3.4.2",
102
+ "prettier": "^3.6.2",
103
103
  "rimraf": "^6.0.1",
104
- "rollup": "^4.29.1",
104
+ "rollup": "^4.52.5",
105
105
  "rollup-plugin-postcss": "^4.0.2",
106
106
  "rollup-plugin-string": "^3.0.0",
107
- "sass": "^1.83.0",
107
+ "sass": "^1.93.2",
108
108
  "self-closing-tags": "^1.0.1",
109
- "stylelint": "^16.12.0",
110
- "stylelint-config-standard-scss": "^14.0.0",
111
- "ts-jest": "29.2.5",
109
+ "stylelint": "^16.25.0",
110
+ "stylelint-config-standard-scss": "^16.0.0",
111
+ "ts-jest": "29.4.5",
112
112
  "tslib": "^2.8.1",
113
- "typescript": "^5.7.2",
114
- "typescript-eslint": "^8.18.2"
113
+ "typescript": "^5.9.3",
114
+ "typescript-eslint": "^8.46.2"
115
115
  },
116
116
  "dependencies": {
117
- "@marp-team/marpit": "^3.1.2",
117
+ "@marp-team/marpit": "^3.2.0",
118
118
  "@marp-team/marpit-svg-polyfill": "^2.1.0",
119
- "highlight.js": "^11.11.0",
120
- "katex": "^0.16.18",
119
+ "highlight.js": "^11.11.1",
120
+ "katex": "^0.16.25",
121
121
  "mathjax-full": "^3.2.2",
122
- "postcss": "^8.4.49",
123
- "postcss-selector-parser": "^7.0.0",
122
+ "postcss-selector-parser": "^7.1.0",
124
123
  "xss": "^1.0.15"
125
124
  },
126
125
  "publishConfig": {
@@ -12,6 +12,7 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
12
12
  accessKey: string;
13
13
  readonly accessKeyLabel: string;
14
14
  autocapitalize: string;
15
+ autocorrect: boolean;
15
16
  dir: string;
16
17
  draggable: boolean;
17
18
  hidden: boolean;
@@ -33,13 +34,14 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
33
34
  click(): void;
34
35
  hidePopover(): void;
35
36
  showPopover(): void;
36
- togglePopover(force?: boolean): boolean;
37
+ togglePopover(options?: boolean): boolean;
37
38
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
38
39
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
39
40
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
40
41
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
41
42
  readonly attributes: NamedNodeMap;
42
- readonly classList: DOMTokenList;
43
+ get classList(): DOMTokenList;
44
+ set classList(value: string);
43
45
  className: string;
44
46
  readonly clientHeight: number;
45
47
  readonly clientLeft: number;
@@ -54,7 +56,8 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
54
56
  onfullscreenerror: ((this: Element, ev: Event) => any) | null;
55
57
  outerHTML: string;
56
58
  readonly ownerDocument: Document;
57
- readonly part: DOMTokenList;
59
+ get part(): DOMTokenList;
60
+ set part(value: string);
58
61
  readonly prefix: string | null;
59
62
  readonly scrollHeight: number;
60
63
  scrollLeft: number;
@@ -116,6 +119,8 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
116
119
  setPointerCapture(pointerId: number): void;
117
120
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
118
121
  webkitMatchesSelector(selectors: string): boolean;
122
+ get textContent(): string;
123
+ set textContent(value: string | null);
119
124
  readonly baseURI: string;
120
125
  readonly childNodes: NodeListOf<ChildNode>;
121
126
  readonly firstChild: ChildNode | null;
@@ -128,9 +133,8 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
128
133
  readonly parentElement: HTMLElement | null;
129
134
  readonly parentNode: ParentNode | null;
130
135
  readonly previousSibling: ChildNode | null;
131
- textContent: string | null;
132
136
  appendChild<T_1 extends Node>(node: T_1): T_1;
133
- cloneNode(deep?: boolean): Node;
137
+ cloneNode(subtree?: boolean): Node;
134
138
  compareDocumentPosition(other: Node): number;
135
139
  contains(other: Node | null): boolean;
136
140
  getRootNode(options?: GetRootNodeOptions): Node;
@@ -163,6 +167,7 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
163
167
  readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
164
168
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
165
169
  dispatchEvent(event: Event): boolean;
170
+ ariaActiveDescendantElement: Element | null;
166
171
  ariaAtomic: string | null;
167
172
  ariaAutoComplete: string | null;
168
173
  ariaBrailleLabel: string | null;
@@ -173,25 +178,33 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
173
178
  ariaColIndex: string | null;
174
179
  ariaColIndexText: string | null;
175
180
  ariaColSpan: string | null;
181
+ ariaControlsElements: ReadonlyArray<Element> | null;
176
182
  ariaCurrent: string | null;
183
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
177
184
  ariaDescription: string | null;
185
+ ariaDetailsElements: ReadonlyArray<Element> | null;
178
186
  ariaDisabled: string | null;
187
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
179
188
  ariaExpanded: string | null;
189
+ ariaFlowToElements: ReadonlyArray<Element> | null;
180
190
  ariaHasPopup: string | null;
181
191
  ariaHidden: string | null;
182
192
  ariaInvalid: string | null;
183
193
  ariaKeyShortcuts: string | null;
184
194
  ariaLabel: string | null;
195
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
185
196
  ariaLevel: string | null;
186
197
  ariaLive: string | null;
187
198
  ariaModal: string | null;
188
199
  ariaMultiLine: string | null;
189
200
  ariaMultiSelectable: string | null;
190
201
  ariaOrientation: string | null;
202
+ ariaOwnsElements: ReadonlyArray<Element> | null;
191
203
  ariaPlaceholder: string | null;
192
204
  ariaPosInSet: string | null;
193
205
  ariaPressed: string | null;
194
206
  ariaReadOnly: string | null;
207
+ ariaRelevant: string | null;
195
208
  ariaRequired: string | null;
196
209
  ariaRoleDescription: string | null;
197
210
  ariaRowCount: string | null;
@@ -233,7 +246,8 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
233
246
  replaceChildren(...nodes: (Node | string)[]): void;
234
247
  readonly assignedSlot: HTMLSlotElement | null;
235
248
  readonly attributeStyleMap: StylePropertyMap;
236
- readonly style: CSSStyleDeclaration;
249
+ get style(): CSSStyleDeclaration;
250
+ set style(cssText: string);
237
251
  contentEditable: string;
238
252
  enterKeyHint: string;
239
253
  inputMode: string;
@@ -243,18 +257,19 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
243
257
  onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
244
258
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
245
259
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
246
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
260
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
247
261
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
248
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
262
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
263
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
249
264
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
250
265
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
251
266
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
252
267
  oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
253
268
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
254
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
269
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
255
270
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
256
271
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
257
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
272
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
258
273
  oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
259
274
  oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
260
275
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -302,6 +317,7 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
302
317
  onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
303
318
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
304
319
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
320
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
321
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
306
322
  onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
307
323
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -320,7 +336,7 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
320
336
  onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
321
337
  onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
322
338
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
323
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
324
340
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
325
341
  ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
326
342
  ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
@@ -343,6 +359,6 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
343
359
  blur(): void;
344
360
  focus(options?: FocusOptions): void;
345
361
  };
346
- readonly observedAttributes: string[];
362
+ get observedAttributes(): string[];
347
363
  } & T;
348
364
  export {};
@@ -1,2 +1,2 @@
1
- import type { Root } from 'postcss';
2
- export declare const customElementsPostCSSPlugin: (root: Root) => void;
1
+ import type { PluginCreator } from 'postcss';
2
+ export declare const customElementsPostCSSPlugin: PluginCreator<never>;
@@ -22,7 +22,6 @@ export declare class Marp extends Marpit {
22
22
  protected applyMarkdownItPlugins(md: any): void;
23
23
  get highlightjs(): HLJSApi;
24
24
  highlighter(code: string, lang: string, attrs: string): string;
25
- protected renderStyle(theme?: string): string;
26
25
  protected themeSetPackOptions(): ThemeSetPackOptions;
27
26
  }
28
27
  export default Marp;