@marp-team/marp-core 3.3.3 → 3.4.1

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.3.3",
3
+ "version": "3.4.1",
4
4
  "description": "The core of Marp tools",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -42,9 +42,9 @@
42
42
  "check:format": "yarn -s format -c",
43
43
  "check:ts": "tsc --noEmit",
44
44
  "clean": "rimraf lib",
45
- "format": "prettier \"**/*.{css,js,json,md,scss,ts,yaml,yml}\"",
45
+ "format": "prettier \"**/*.{css,js,json,md,mjs,scss,ts,yaml,yml}\"",
46
46
  "format:write": "yarn -s format --write",
47
- "lint:js": "eslint --ext .js,.ts --report-unused-disable-directives --cache .",
47
+ "lint:js": "eslint --ext .js,.mjs,.ts --report-unused-disable-directives --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,64 +65,68 @@
65
65
  "exec": "./node_modules/.bin/marp"
66
66
  },
67
67
  "devDependencies": {
68
- "@marp-team/marp-cli": "^1.7.2",
69
- "@rollup/plugin-alias": "^3.1.9",
70
- "@rollup/plugin-commonjs": "^22.0.2",
71
- "@rollup/plugin-json": "^4.1.0",
72
- "@rollup/plugin-node-resolve": "^13.3.0",
73
- "@rollup/plugin-replace": "^4.0.0",
74
- "@rollup/plugin-typescript": "^8.3.4",
75
- "@types/jest": "^28.1.6",
76
- "@typescript-eslint/eslint-plugin": "^5.33.0",
77
- "@typescript-eslint/parser": "^5.33.0",
78
- "autoprefixer": "^10.4.8",
68
+ "@marp-team/marp-cli": "^2.2.2",
69
+ "@rollup/plugin-alias": "^4.0.2",
70
+ "@rollup/plugin-commonjs": "^24.0.0",
71
+ "@rollup/plugin-json": "^6.0.0",
72
+ "@rollup/plugin-node-resolve": "^15.0.1",
73
+ "@rollup/plugin-replace": "^5.0.2",
74
+ "@rollup/plugin-typescript": "^10.0.1",
75
+ "@tsconfig/node12": "^1.0.11",
76
+ "@types/jest": "^29.2.4",
77
+ "@typescript-eslint/eslint-plugin": "^5.47.0",
78
+ "@typescript-eslint/parser": "^5.47.0",
79
+ "autoprefixer": "^10.4.13",
79
80
  "cheerio": "^1.0.0-rc.12",
80
- "cssnano": "^5.1.12",
81
- "eslint": "^8.21.0",
81
+ "cssnano": "^5.1.14",
82
+ "emoji-regex": "^10.2.1",
83
+ "eslint": "^8.30.0",
82
84
  "eslint-config-prettier": "^8.5.0",
83
85
  "eslint-plugin-import": "^2.26.0",
84
- "eslint-plugin-jest": "^26.8.2",
86
+ "eslint-plugin-jest": "^27.1.7",
85
87
  "github-markdown-css": "^5.1.0",
86
- "jest": "^28.1.3",
87
- "jest-environment-jsdom": "^28.1.3",
88
- "jest-junit": "^14.0.0",
88
+ "jest": "^29.3.1",
89
+ "jest-environment-jsdom": "^29.3.1",
90
+ "jest-junit": "^15.0.0",
89
91
  "jest-plugin-context": "^2.9.0",
90
92
  "markdown-it": "^13.0.1",
93
+ "markdown-it-emoji": "^2.0.2",
91
94
  "mkdirp": "^1.0.4",
92
- "nodemon": "^2.0.19",
95
+ "nodemon": "^2.0.20",
93
96
  "npm-run-all": "^4.1.5",
94
- "postcss-minify-params": "^5.1.3",
97
+ "postcss-minify-params": "^5.1.4",
95
98
  "postcss-minify-selectors": "^5.2.1",
96
99
  "postcss-normalize-whitespace": "^5.1.1",
97
100
  "postcss-url": "^10.1.3",
98
- "prettier": "^2.7.1",
101
+ "prettier": "^2.8.1",
99
102
  "rimraf": "^3.0.2",
100
- "rollup": "^2.77.2",
103
+ "rollup": "^3.8.1",
101
104
  "rollup-plugin-postcss": "^4.0.2",
102
105
  "rollup-plugin-string": "^3.0.0",
103
106
  "rollup-plugin-terser": "^7.0.2",
104
- "sass": "^1.54.4",
107
+ "sass": "^1.57.1",
105
108
  "sass-extended-importer": "^0.4.2",
106
109
  "self-closing-tags": "^1.0.1",
107
- "stylelint": "^14.9.1",
108
- "stylelint-config-prettier": "^9.0.3",
109
- "stylelint-config-standard-scss": "^5.0.0",
110
- "ts-jest": "28.0.7",
111
- "tslib": "^2.4.0",
112
- "typescript": "^4.7.4"
110
+ "stylelint": "^14.16.0",
111
+ "stylelint-config-prettier": "^9.0.4",
112
+ "stylelint-config-standard-scss": "^6.1.0",
113
+ "ts-jest": "29.0.3",
114
+ "tslib": "^2.4.1",
115
+ "twemoji": "^14.0.2",
116
+ "typescript": "^4.9.4"
113
117
  },
114
118
  "dependencies": {
115
- "@marp-team/marpit": "^2.4.0",
119
+ "@marp-team/marpit": "^2.4.2",
116
120
  "@marp-team/marpit-svg-polyfill": "^2.0.0",
117
- "emoji-regex": "^10.1.0",
118
- "highlight.js": "^11.6.0",
119
- "katex": "^0.16.0",
120
- "markdown-it-emoji": "^2.0.2",
121
+ "highlight.js": "^11.7.0",
122
+ "katex": "^0.16.4",
121
123
  "mathjax-full": "^3.2.2",
122
- "postcss": "^8.4.16",
123
- "postcss-selector-parser": "^6.0.10",
124
- "twemoji": "^14.0.2",
125
- "xss": "^1.0.13"
124
+ "postcss": "^8.4.20",
125
+ "postcss-selector-parser": "^6.0.11",
126
+ "xss": "^1.0.14"
127
+ },
128
+ "resolutions": {
129
+ "sass-extended-importer/**/minimatch": "^3.1.2"
126
130
  },
127
131
  "publishConfig": {
128
132
  "access": "public"
@@ -1,4 +1,4 @@
1
- declare type Constructor<T = {}> = new (...args: any[]) => T;
1
+ type Constructor<T = {}> = new (...args: any[]) => T;
2
2
  export declare const createMarpCustomElement: <T extends Constructor<HTMLElement>>(Base: T, { attrs, style }: {
3
3
  attrs?: Record<string, string> | undefined;
4
4
  style?: string | undefined;
@@ -14,6 +14,7 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
14
14
  dir: string;
15
15
  draggable: boolean;
16
16
  hidden: boolean;
17
+ inert: boolean;
17
18
  innerText: string;
18
19
  lang: string;
19
20
  readonly offsetHeight: number;
@@ -152,12 +153,14 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
152
153
  ariaChecked: string | null;
153
154
  ariaColCount: string | null;
154
155
  ariaColIndex: string | null;
156
+ ariaColIndexText: string | null;
155
157
  ariaColSpan: string | null;
156
158
  ariaCurrent: string | null;
157
159
  ariaDisabled: string | null;
158
160
  ariaExpanded: string | null;
159
161
  ariaHasPopup: string | null;
160
162
  ariaHidden: string | null;
163
+ ariaInvalid: string | null;
161
164
  ariaKeyShortcuts: string | null;
162
165
  ariaLabel: string | null;
163
166
  ariaLevel: string | null;
@@ -174,6 +177,7 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
174
177
  ariaRoleDescription: string | null;
175
178
  ariaRowCount: string | null;
176
179
  ariaRowIndex: string | null;
180
+ ariaRowIndexText: string | null;
177
181
  ariaRowSpan: string | null;
178
182
  ariaSelected: string | null;
179
183
  ariaSetSize: string | null;
@@ -182,6 +186,7 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
182
186
  ariaValueMin: string | null;
183
187
  ariaValueNow: string | null;
184
188
  ariaValueText: string | null;
189
+ role: string | null;
185
190
  animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
186
191
  getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
187
192
  after(...nodes: (string | Node)[]): void;
@@ -219,7 +224,9 @@ export declare const createMarpCustomElement: <T extends Constructor<HTMLElement
219
224
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
220
225
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
221
226
  onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
227
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
222
228
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
229
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
223
230
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
224
231
  oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
225
232
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -1,5 +1,5 @@
1
1
  import type { MathOptionsInterface } from './math';
2
- declare type MathContext = {
2
+ type MathContext = {
3
3
  /** Whether Markdown is using math syntax */
4
4
  enabled: boolean;
5
5
  /** Math options that have passed into Marp Core instance */
@@ -1,10 +1,10 @@
1
- export declare type MathPreferredLibrary = 'mathjax' | 'katex';
1
+ export type MathPreferredLibrary = 'mathjax' | 'katex';
2
2
  export interface MathOptionsInterface {
3
3
  lib?: MathPreferredLibrary;
4
4
  katexOption?: Record<string, unknown>;
5
5
  katexFontPath?: string | false;
6
6
  }
7
- export declare type MathOptions = boolean | MathPreferredLibrary | MathOptionsInterface;
7
+ export type MathOptions = boolean | MathPreferredLibrary | MathOptionsInterface;
8
8
  export declare const markdown: Marpit.Plugin<[], {
9
9
  marpit: Marpit.Marpit;
10
10
  }>;
@@ -1,4 +1,4 @@
1
- declare type ObserverOptions = {
1
+ type ObserverOptions = {
2
2
  once?: boolean;
3
3
  target?: ParentNode;
4
4
  };
@@ -2,6 +2,6 @@ interface ScriptOptionsInternal {
2
2
  nonce?: string;
3
3
  source: 'inline' | 'cdn';
4
4
  }
5
- export declare type ScriptOptions = Partial<ScriptOptionsInternal>;
5
+ export type ScriptOptions = Partial<ScriptOptionsInternal>;
6
6
  export declare function markdown(md: any): void;
7
7
  export {};