@marp-team/marp-core 3.8.1 → 4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marp-team/marp-core",
3
- "version": "3.8.1",
3
+ "version": "4.0.0",
4
4
  "description": "The core of Marp tools",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -34,17 +34,17 @@
34
34
  "browser.d.ts"
35
35
  ],
36
36
  "engines": {
37
- "node": "^12.20 || ^14.13.1 || >=16"
37
+ "node": ">=18"
38
38
  },
39
39
  "scripts": {
40
- "build": "yarn -s clean && rollup -c",
41
- "check:audit": "yarn audit",
42
- "check:format": "yarn -s format -c",
40
+ "build": "npm -s run clean && rollup -c",
41
+ "check:audit": "npm audit",
42
+ "check:format": "npm -s run format -- -c",
43
43
  "check:ts": "tsc --noEmit",
44
44
  "clean": "rimraf lib",
45
45
  "format": "prettier \"**/*.{css,js,json,md,mjs,scss,ts,yaml,yml}\"",
46
- "format:write": "yarn -s format --write",
47
- "lint:js": "eslint --ext .js,.mjs,.ts --report-unused-disable-directives --cache .",
46
+ "format:write": "npm -s run format -- --write",
47
+ "lint:js": "eslint --cache",
48
48
  "lint:css": "stylelint \"{src,themes}/**/*.{css,scss}\"",
49
49
  "prepack": "npm-run-all --parallel check:* lint:* test:coverage --parallel build types",
50
50
  "preversion": "run-p check:* lint:* test:coverage",
@@ -65,67 +65,64 @@
65
65
  "exec": "npx @marp-team/marp-cli@latest -y"
66
66
  },
67
67
  "devDependencies": {
68
- "@rollup/plugin-alias": "^5.0.0",
69
- "@rollup/plugin-commonjs": "^25.0.3",
70
- "@rollup/plugin-json": "^6.0.0",
71
- "@rollup/plugin-node-resolve": "^15.1.0",
72
- "@rollup/plugin-replace": "^5.0.2",
73
- "@rollup/plugin-terser": "^0.4.3",
74
- "@rollup/plugin-typescript": "^11.1.2",
75
- "@tsconfig/node12": "^12.1.0",
76
- "@twemoji/api": "^14.1.2",
77
- "@types/jest": "^29.5.3",
78
- "@typescript-eslint/eslint-plugin": "^6.2.1",
79
- "@typescript-eslint/parser": "^6.2.1",
80
- "autoprefixer": "^10.4.14",
81
- "cheerio": "^1.0.0-rc.12",
82
- "cssnano": "^6.0.1",
83
- "emoji-regex": "^10.2.1",
84
- "eslint": "^8.46.0",
85
- "eslint-config-prettier": "^8.9.0",
86
- "eslint-plugin-import": "^2.28.0",
87
- "eslint-plugin-jest": "^27.2.3",
88
- "github-markdown-css": "^5.2.0",
89
- "jest": "^29.6.2",
90
- "jest-environment-jsdom": "^29.6.2",
68
+ "@csstools/postcss-minify": "^2.0.1",
69
+ "@rollup/plugin-alias": "^5.1.0",
70
+ "@rollup/plugin-commonjs": "^26.0.1",
71
+ "@rollup/plugin-json": "^6.1.0",
72
+ "@rollup/plugin-node-resolve": "^15.2.3",
73
+ "@rollup/plugin-terser": "^0.4.4",
74
+ "@rollup/plugin-typescript": "^11.1.6",
75
+ "@tsconfig/node20": "^20.1.4",
76
+ "@tsconfig/recommended": "^1.0.7",
77
+ "@twemoji/api": "^15.1.0",
78
+ "@types/eslint__js": "^8.42.3",
79
+ "@types/jest": "^29.5.12",
80
+ "autoprefixer": "^10.4.20",
81
+ "cheerio": "^1.0.0",
82
+ "cssnano": "^7.0.5",
83
+ "emoji-regex": "10.3.0",
84
+ "eslint": "^9.10.0",
85
+ "eslint-config-prettier": "^9.1.0",
86
+ "eslint-import-resolver-typescript": "^3.6.3",
87
+ "eslint-plugin-import-x": "^4.2.1",
88
+ "eslint-plugin-jest": "^28.8.3",
89
+ "github-markdown-css": "^5.6.1",
90
+ "globals": "^15.9.0",
91
+ "jest": "^29.7.0",
92
+ "jest-environment-jsdom": "^29.7.0",
91
93
  "jest-junit": "^16.0.0",
92
94
  "jest-plugin-context": "^2.9.0",
93
- "markdown-it": "^13.0.1",
94
- "markdown-it-emoji": "^2.0.2",
95
+ "markdown-it": "^14.1.0",
96
+ "markdown-it-emoji": "^3.0.0",
95
97
  "mkdirp": "^3.0.1",
96
- "nodemon": "^3.0.1",
97
- "npm-run-all": "^4.1.5",
98
- "postcss-minify-params": "^6.0.0",
99
- "postcss-minify-selectors": "^6.0.0",
100
- "postcss-normalize-whitespace": "^6.0.0",
98
+ "nodemon": "^3.1.4",
99
+ "npm-check-updates": "^17.1.0",
100
+ "npm-run-all2": "^6.2.2",
101
101
  "postcss-url": "^10.1.3",
102
- "prettier": "^3.0.0",
103
- "rimraf": "^5.0.1",
104
- "rollup": "^3.27.0",
102
+ "prettier": "^3.3.3",
103
+ "rimraf": "^6.0.1",
104
+ "rollup": "^4.21.2",
105
105
  "rollup-plugin-postcss": "^4.0.2",
106
106
  "rollup-plugin-string": "^3.0.0",
107
- "sass": "^1.64.2",
108
- "sass-extended-importer": "^0.4.2",
107
+ "sass": "^1.77.8",
108
+ "sass-extended-importer": "^1.0.1",
109
109
  "self-closing-tags": "^1.0.1",
110
- "stylelint": "^15.10.2",
111
- "stylelint-config-prettier": "^9.0.5",
112
- "stylelint-config-standard-scss": "^10.0.0",
113
- "ts-jest": "29.1.1",
114
- "tslib": "^2.6.1",
115
- "typescript": "^5.1.6"
110
+ "stylelint": "^16.9.0",
111
+ "stylelint-config-standard-scss": "^13.1.0",
112
+ "ts-jest": "29.2.5",
113
+ "tslib": "^2.7.0",
114
+ "typescript": "^5.5.4",
115
+ "typescript-eslint": "^8.4.0"
116
116
  },
117
117
  "dependencies": {
118
- "@marp-team/marpit": "^2.5.3",
118
+ "@marp-team/marpit": "^3.1.1",
119
119
  "@marp-team/marpit-svg-polyfill": "^2.1.0",
120
- "highlight.js": "^11.8.0",
121
- "katex": "^0.16.8",
120
+ "highlight.js": "^11.10.0",
121
+ "katex": "^0.16.11",
122
122
  "mathjax-full": "^3.2.2",
123
- "postcss": "^8.4.27",
124
- "postcss-selector-parser": "^6.0.13",
125
- "xss": "^1.0.14"
126
- },
127
- "resolutions": {
128
- "sass-extended-importer/**/minimatch": "^3.1.2"
123
+ "postcss": "^8.4.41",
124
+ "postcss-selector-parser": "^6.1.2",
125
+ "xss": "^1.0.15"
129
126
  },
130
127
  "publishConfig": {
131
128
  "access": "public"
@@ -1,12 +1,13 @@
1
- type Constructor<T = {}> = new (...args: any[]) => T;
1
+ type Constructor<T = object> = new (...args: any[]) => T;
2
2
  export declare const createMarpCustomElement: <T extends Constructor<HTMLElement>>(Base: T, { attrs, style }: {
3
- attrs?: Record<string, string> | undefined;
4
- style?: string | undefined;
3
+ attrs?: Record<string, string>;
4
+ style?: string;
5
5
  }) => {
6
6
  new (...args: any[]): {
7
- shadowRoot: ShadowRoot;
7
+ readonly shadowRoot: ShadowRoot | null;
8
8
  connectedCallback(): void;
9
9
  attributeChangedCallback(): void;
10
+ _shadow(): ShadowRoot | null;
10
11
  _update(): void;
11
12
  accessKey: string;
12
13
  readonly accessKeyLabel: string;
@@ -23,15 +24,19 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
23
24
  readonly offsetTop: number;
24
25
  readonly offsetWidth: number;
25
26
  outerText: string;
27
+ popover: string | null;
26
28
  spellcheck: boolean;
27
29
  title: string;
28
30
  translate: boolean;
29
31
  attachInternals(): ElementInternals;
30
32
  click(): void;
31
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
32
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
33
- removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
34
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
33
+ hidePopover(): void;
34
+ showPopover(): void;
35
+ togglePopover(force?: boolean): boolean;
36
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
37
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
38
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
39
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
35
40
  readonly attributes: NamedNodeMap;
36
41
  readonly classList: DOMTokenList;
37
42
  className: string;
@@ -55,10 +60,10 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
55
60
  slot: string;
56
61
  readonly tagName: string;
57
62
  attachShadow(init: ShadowRootInit): ShadowRoot;
58
- checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
59
- closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
60
- closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
61
- closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
63
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
64
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
65
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
66
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
62
67
  closest<E extends Element = Element>(selectors: string): E | null;
63
68
  computedStyleMap(): StylePropertyMapReadOnly;
64
69
  getAttribute(qualifiedName: string): string | null;
@@ -69,10 +74,10 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
69
74
  getBoundingClientRect(): DOMRect;
70
75
  getClientRects(): DOMRectList;
71
76
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
72
- getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
73
- getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
74
- getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
75
- getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
77
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
78
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
79
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
80
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
76
81
  getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
77
82
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
78
83
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
@@ -90,21 +95,22 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
90
95
  removeAttribute(qualifiedName: string): void;
91
96
  removeAttributeNS(namespace: string | null, localName: string): void;
92
97
  removeAttributeNode(attr: Attr): Attr;
93
- requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
98
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
94
99
  requestPointerLock(): void;
95
- scroll(options?: ScrollToOptions | undefined): void;
100
+ scroll(options?: ScrollToOptions): void;
96
101
  scroll(x: number, y: number): void;
97
- scrollBy(options?: ScrollToOptions | undefined): void;
102
+ scrollBy(options?: ScrollToOptions): void;
98
103
  scrollBy(x: number, y: number): void;
99
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
100
- scrollTo(options?: ScrollToOptions | undefined): void;
104
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
105
+ scrollTo(options?: ScrollToOptions): void;
101
106
  scrollTo(x: number, y: number): void;
102
107
  setAttribute(qualifiedName: string, value: string): void;
103
108
  setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
104
109
  setAttributeNode(attr: Attr): Attr | null;
105
110
  setAttributeNodeNS(attr: Attr): Attr | null;
111
+ setHTMLUnsafe(html: string): void;
106
112
  setPointerCapture(pointerId: number): void;
107
- toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
113
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
108
114
  webkitMatchesSelector(selectors: string): boolean;
109
115
  readonly baseURI: string;
110
116
  readonly childNodes: NodeListOf<ChildNode>;
@@ -120,20 +126,20 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
120
126
  readonly previousSibling: ChildNode | null;
121
127
  textContent: string | null;
122
128
  appendChild<T_1 extends Node>(node: T_1): T_1;
123
- cloneNode(deep?: boolean | undefined): Node;
129
+ cloneNode(deep?: boolean): Node;
124
130
  compareDocumentPosition(other: Node): number;
125
131
  contains(other: Node | null): boolean;
126
- getRootNode(options?: GetRootNodeOptions | undefined): Node;
132
+ getRootNode(options?: GetRootNodeOptions): Node;
127
133
  hasChildNodes(): boolean;
128
- insertBefore<T_2 extends Node>(node: T_2, child: Node | null): T_2;
134
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
129
135
  isDefaultNamespace(namespace: string | null): boolean;
130
136
  isEqualNode(otherNode: Node | null): boolean;
131
137
  isSameNode(otherNode: Node | null): boolean;
132
138
  lookupNamespaceURI(prefix: string | null): string | null;
133
139
  lookupPrefix(namespace: string | null): string | null;
134
140
  normalize(): void;
135
- removeChild<T_3 extends Node>(child: T_3): T_3;
136
- replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
141
+ removeChild<T_1 extends Node>(child: T_1): T_1;
142
+ replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
137
143
  readonly ELEMENT_NODE: 1;
138
144
  readonly ATTRIBUTE_NODE: 2;
139
145
  readonly TEXT_NODE: 3;
@@ -155,12 +161,15 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
155
161
  dispatchEvent(event: Event): boolean;
156
162
  ariaAtomic: string | null;
157
163
  ariaAutoComplete: string | null;
164
+ ariaBrailleLabel: string | null;
165
+ ariaBrailleRoleDescription: string | null;
158
166
  ariaBusy: string | null;
159
167
  ariaChecked: string | null;
160
168
  ariaColCount: string | null;
161
169
  ariaColIndex: string | null;
162
170
  ariaColSpan: string | null;
163
171
  ariaCurrent: string | null;
172
+ ariaDescription: string | null;
164
173
  ariaDisabled: string | null;
165
174
  ariaExpanded: string | null;
166
175
  ariaHasPopup: string | null;
@@ -191,12 +200,12 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
191
200
  ariaValueNow: string | null;
192
201
  ariaValueText: string | null;
193
202
  role: string | null;
194
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
195
- getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
196
- after(...nodes: (string | Node)[]): void;
197
- before(...nodes: (string | Node)[]): void;
203
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
204
+ getAnimations(options?: GetAnimationsOptions): Animation[];
205
+ after(...nodes: (Node | string)[]): void;
206
+ before(...nodes: (Node | string)[]): void;
198
207
  remove(): void;
199
- replaceWith(...nodes: (string | Node)[]): void;
208
+ replaceWith(...nodes: (Node | string)[]): void;
200
209
  innerHTML: string;
201
210
  readonly nextElementSibling: Element | null;
202
211
  readonly previousElementSibling: Element | null;
@@ -204,19 +213,19 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
204
213
  readonly children: HTMLCollection;
205
214
  readonly firstElementChild: Element | null;
206
215
  readonly lastElementChild: Element | null;
207
- append(...nodes: (string | Node)[]): void;
208
- prepend(...nodes: (string | Node)[]): void;
209
- querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
210
- querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
211
- querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
212
- querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
213
- querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
214
- querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
215
- querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
216
- querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
217
- querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
218
- querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
219
- replaceChildren(...nodes: (string | Node)[]): void;
216
+ append(...nodes: (Node | string)[]): void;
217
+ prepend(...nodes: (Node | string)[]): void;
218
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
219
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
220
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
221
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
222
+ querySelector<E extends Element = Element>(selectors: string): E | null;
223
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
224
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
225
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
226
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
227
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
228
+ replaceChildren(...nodes: (Node | string)[]): void;
220
229
  readonly assignedSlot: HTMLSlotElement | null;
221
230
  readonly attributeStyleMap: StylePropertyMap;
222
231
  readonly style: CSSStyleDeclaration;
@@ -231,6 +240,7 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
231
240
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
232
241
  onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
233
242
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
243
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
234
244
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
235
245
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
236
246
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -286,11 +296,12 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
286
296
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
287
297
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
288
298
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
289
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
299
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
290
300
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
291
301
  onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
292
302
  onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
293
303
  onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
304
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
294
305
  onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
295
306
  onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
296
307
  onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -320,10 +331,10 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
320
331
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
321
332
  autofocus: boolean;
322
333
  readonly dataset: DOMStringMap;
323
- nonce?: string | undefined;
334
+ nonce?: string;
324
335
  tabIndex: number;
325
336
  blur(): void;
326
- focus(options?: FocusOptions | undefined): void;
337
+ focus(options?: FocusOptions): void;
327
338
  };
328
339
  readonly observedAttributes: string[];
329
340
  } & T;
@@ -1,2 +1 @@
1
- /// <reference types="highlight.js" />
2
1
  export declare const generateHighlightJSInstance: () => import("highlight.js").HLJSApi;