@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/README.md +17 -15
- package/lib/browser.cjs.js +1 -1
- package/lib/browser.js +1 -1
- package/lib/marp.js +2 -2
- package/package.json +54 -57
- package/types/src/custom-elements/browser/marp-custom-element.d.ts +59 -48
- package/types/src/highlightjs.d.ts +0 -1
- package/types/src/html/allowlist.d.ts +508 -0
- package/types/src/marp.d.ts +503 -6
- package/types/src/size/size.d.ts +0 -1
- package/types/src/prebundles/mocks/browserslist.d.ts +0 -2
- package/types/src/prebundles/postcss-minify-plugins.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marp-team/marp-core",
|
|
3
|
-
"version": "
|
|
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": "
|
|
37
|
+
"node": ">=18"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "
|
|
41
|
-
"check:audit": "
|
|
42
|
-
"check:format": "
|
|
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": "
|
|
47
|
-
"lint:js": "eslint --
|
|
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
|
-
"@
|
|
69
|
-
"@rollup/plugin-
|
|
70
|
-
"@rollup/plugin-
|
|
71
|
-
"@rollup/plugin-
|
|
72
|
-
"@rollup/plugin-
|
|
73
|
-
"@rollup/plugin-terser": "^0.4.
|
|
74
|
-
"@rollup/plugin-typescript": "^11.1.
|
|
75
|
-
"@tsconfig/
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"autoprefixer": "^10.4.
|
|
81
|
-
"cheerio": "^1.0.0
|
|
82
|
-
"cssnano": "^
|
|
83
|
-
"emoji-regex": "
|
|
84
|
-
"eslint": "^
|
|
85
|
-
"eslint-config-prettier": "^
|
|
86
|
-
"eslint-
|
|
87
|
-
"eslint-plugin-
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
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": "^
|
|
94
|
-
"markdown-it-emoji": "^
|
|
95
|
+
"markdown-it": "^14.1.0",
|
|
96
|
+
"markdown-it-emoji": "^3.0.0",
|
|
95
97
|
"mkdirp": "^3.0.1",
|
|
96
|
-
"nodemon": "^3.
|
|
97
|
-
"npm-
|
|
98
|
-
"
|
|
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.
|
|
103
|
-
"rimraf": "^
|
|
104
|
-
"rollup": "^
|
|
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.
|
|
108
|
-
"sass-extended-importer": "^0.
|
|
107
|
+
"sass": "^1.77.8",
|
|
108
|
+
"sass-extended-importer": "^1.0.1",
|
|
109
109
|
"self-closing-tags": "^1.0.1",
|
|
110
|
-
"stylelint": "^
|
|
111
|
-
"stylelint-config-
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"typescript": "^
|
|
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": "^
|
|
118
|
+
"@marp-team/marpit": "^3.1.1",
|
|
119
119
|
"@marp-team/marpit-svg-polyfill": "^2.1.0",
|
|
120
|
-
"highlight.js": "^11.
|
|
121
|
-
"katex": "^0.16.
|
|
120
|
+
"highlight.js": "^11.10.0",
|
|
121
|
+
"katex": "^0.16.11",
|
|
122
122
|
"mathjax-full": "^3.2.2",
|
|
123
|
-
"postcss": "^8.4.
|
|
124
|
-
"postcss-selector-parser": "^6.
|
|
125
|
-
"xss": "^1.0.
|
|
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 =
|
|
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
|
|
4
|
-
style?: string
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
59
|
-
closest<
|
|
60
|
-
closest<
|
|
61
|
-
closest<
|
|
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<
|
|
73
|
-
getElementsByTagName<
|
|
74
|
-
getElementsByTagName<
|
|
75
|
-
getElementsByTagName<
|
|
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
|
|
98
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
94
99
|
requestPointerLock(): void;
|
|
95
|
-
scroll(options?: ScrollToOptions
|
|
100
|
+
scroll(options?: ScrollToOptions): void;
|
|
96
101
|
scroll(x: number, y: number): void;
|
|
97
|
-
scrollBy(options?: ScrollToOptions
|
|
102
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
98
103
|
scrollBy(x: number, y: number): void;
|
|
99
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions
|
|
100
|
-
scrollTo(options?: ScrollToOptions
|
|
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
|
|
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
|
|
129
|
+
cloneNode(deep?: boolean): Node;
|
|
124
130
|
compareDocumentPosition(other: Node): number;
|
|
125
131
|
contains(other: Node | null): boolean;
|
|
126
|
-
getRootNode(options?: GetRootNodeOptions
|
|
132
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
127
133
|
hasChildNodes(): boolean;
|
|
128
|
-
insertBefore<
|
|
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<
|
|
136
|
-
replaceChild<
|
|
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
|
|
195
|
-
getAnimations(options?: GetAnimationsOptions
|
|
196
|
-
after(...nodes: (
|
|
197
|
-
before(...nodes: (
|
|
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: (
|
|
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: (
|
|
208
|
-
prepend(...nodes: (
|
|
209
|
-
querySelector<
|
|
210
|
-
querySelector<
|
|
211
|
-
querySelector<
|
|
212
|
-
querySelector<
|
|
213
|
-
querySelector<
|
|
214
|
-
querySelectorAll<
|
|
215
|
-
querySelectorAll<
|
|
216
|
-
querySelectorAll<
|
|
217
|
-
querySelectorAll<
|
|
218
|
-
querySelectorAll<
|
|
219
|
-
replaceChildren(...nodes: (
|
|
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
|
|
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
|
|
334
|
+
nonce?: string;
|
|
324
335
|
tabIndex: number;
|
|
325
336
|
blur(): void;
|
|
326
|
-
focus(options?: FocusOptions
|
|
337
|
+
focus(options?: FocusOptions): void;
|
|
327
338
|
};
|
|
328
339
|
readonly observedAttributes: string[];
|
|
329
340
|
} & T;
|