@pecot/visual-mcp 1.2.0 → 1.3.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/.claude-plugin/plugin.json +1 -1
- package/assets/slidev/deck-lint.config.js +2 -2
- package/assets/slidev/deck-lint.env.config.js +2 -2
- package/assets/slidev/package.json +1 -1
- package/assets/slidev/scripts/eslint/_shared/dist/lib/drawio-geometry.js +10 -10
- package/assets/slidev/scripts/eslint/_shared/dist/lib/text-measurer.d.ts +2 -2
- package/assets/slidev/scripts/eslint/_shared/dist/lib/text-measurer.js +4 -4
- package/assets/slidev/scripts/eslint/_shared/dist/tsconfig.tsbuildinfo +1 -1
- package/assets/slidev/scripts/eslint/_shared/lib/drawio-geometry.ts +10 -10
- package/assets/slidev/scripts/eslint/_shared/lib/text-measurer.ts +4 -4
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-content-before-frontmatter.js +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-missing-marker-cell.js +4 -4
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-missing-page.js +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-numeric-asset-prefix.js +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-numeric-filename-prefix.js +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-scaled-drawio.js +3 -3
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-triple-hyphen-in-frontmatter.js +3 -3
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-unknown-props.js +3 -3
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/one-slide-per-file.js +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/require-matching-length.js +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/require-slides-entry.js +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/validate-clicks.js +7 -7
- package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/tsconfig.tsbuildinfo +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/no-content-before-frontmatter.ts +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/no-missing-marker-cell.ts +4 -4
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/no-missing-page.ts +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/no-numeric-asset-prefix.ts +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/no-numeric-filename-prefix.ts +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/no-scaled-drawio.ts +3 -3
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/no-triple-hyphen-in-frontmatter.ts +3 -3
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/no-unknown-props.ts +3 -3
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/one-slide-per-file.ts +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/require-matching-length.ts +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/require-slides-entry.ts +1 -1
- package/assets/slidev/scripts/eslint/slidev-pages-lint/lib/rules/validate-clicks.ts +7 -7
- package/assets/slidev/scripts/eslint/text-constraints/dist/lib/rules/max-chars.js +6 -6
- package/assets/slidev/scripts/eslint/text-constraints/dist/lib/rules/textlint-body.js +3 -3
- package/assets/slidev/scripts/eslint/text-constraints/dist/lib/rules/textlint.js +2 -2
- package/assets/slidev/scripts/eslint/text-constraints/dist/tsconfig.tsbuildinfo +1 -1
- package/assets/slidev/scripts/eslint/text-constraints/lib/rules/max-chars.ts +6 -6
- package/assets/slidev/scripts/eslint/text-constraints/lib/rules/textlint-body.ts +3 -3
- package/assets/slidev/scripts/eslint/text-constraints/lib/rules/textlint.ts +2 -2
- package/assets/slidev/scripts/eslint/validate-references/dist/index.js +1 -1
- package/assets/slidev/scripts/eslint/validate-references/dist/lib/semantic-validator.js +12 -12
- package/assets/slidev/scripts/eslint/validate-references/dist/tsconfig.tsbuildinfo +1 -1
- package/assets/slidev/scripts/eslint/validate-references/index.ts +1 -1
- package/assets/slidev/scripts/eslint/validate-references/lib/semantic-validator.ts +12 -12
- package/cli/dist/cli.js +8 -8
- package/cli/dist/commands/chromium/host-dependencies.js +3 -3
- package/cli/dist/commands/drawio/export.js +15 -15
- package/cli/dist/commands/drawio/theme.js +7 -7
- package/cli/dist/commands/drawio/url.js +14 -14
- package/cli/dist/commands/evidence-xlsx/create.js +11 -11
- package/cli/dist/commands/pptx-ooxml/preview.js +13 -13
- package/cli/dist/commands/slidev-project/create.js +12 -12
- package/cli/dist/commands/slidev-project/linked-theme.js +5 -5
- package/cli/dist/commands/slidev-project/lint.js +13 -13
- package/cli/dist/commands/slidev-project/sync.js +19 -19
- package/cli/dist/commands/slidev-project/theme.js +9 -9
- package/cli/dist/commands/slidev-to-pptx/convert.js +47 -47
- package/cli/dist/domain/_shared/text-check.js +2 -2
- package/cli/dist/domain/drawio/export.js +4 -4
- package/cli/dist/domain/drawio/label-text.js +1 -1
- package/cli/dist/domain/drawio/url.js +27 -27
- package/cli/dist/domain/evidence-xlsx/image-dimensions.js +14 -14
- package/cli/dist/domain/evidence-xlsx/spec-schema.js +26 -26
- package/cli/dist/domain/pptx-ooxml/merge.js +3 -3
- package/cli/dist/domain/slidev-project/generated-files.d.ts +1 -1
- package/cli/dist/domain/slidev-project/generated-files.js +34 -34
- package/cli/dist/domain/slidev-project/initial-pages.js +4 -4
- package/cli/dist/domain/slidev-project/lint.js +11 -11
- package/cli/dist/domain/slidev-project/sync.js +13 -13
- package/cli/dist/domain/slidev-project/warnings.js +4 -4
- package/cli/dist/domain/slidev-theme/declaration.js +9 -9
- package/cli/dist/domain/slidev-theme/references.js +10 -10
- package/cli/dist/domain/slidev-theme/store-layout.js +6 -6
- package/cli/dist/domain/slidev-theme/talk-theme.js +13 -13
- package/cli/dist/domain/slidev-theme/theme-spec.js +5 -5
- package/cli/dist/domain/slidev-to-pptx/errors.js +3 -3
- package/cli/dist/infra/_shared/dependency-root.js +4 -4
- package/cli/dist/infra/_shared/patch-apply.js +6 -5
- package/cli/dist/infra/_shared/runtime-install.js +4 -3
- package/cli/dist/infra/_shared/slidev-bin.js +1 -1
- package/cli/dist/infra/drawio/icons.js +3 -3
- package/cli/dist/infra/drawio/pdf.js +1 -1
- package/cli/dist/infra/drawio/screenshot.js +10 -9
- package/cli/dist/infra/evidence-xlsx/workbook-writer.js +2 -2
- package/cli/dist/infra/playwright/chromium.js +4 -3
- package/cli/dist/infra/playwright/host-dependencies.js +8 -8
- package/cli/dist/infra/playwright/launch.js +5 -5
- package/cli/dist/infra/pptx-ooxml/soffice.js +2 -2
- package/cli/dist/infra/slidev-project/eslint-runner.js +10 -9
- package/cli/dist/infra/slidev-project/fs.js +6 -6
- package/cli/dist/infra/slidev-theme/store.js +18 -15
- package/cli/dist/infra/slidev-to-pptx/cache-store.js +6 -6
- package/cli/dist/infra/slidev-to-pptx/dom-converter.js +12 -12
- package/cli/dist/infra/slidev-to-pptx/pipeline.d.ts +1 -1
- package/cli/dist/infra/slidev-to-pptx/pipeline.js +54 -54
- package/cli/dist/infra/slidev-to-pptx/prerender-capture.js +14 -14
- package/cli/dist/infra/slidev-to-pptx/prerender.js +10 -10
- package/cli/dist/infra/slidev-to-pptx/runner.js +1 -0
- package/cli/dist/infra/slidev-to-pptx/scanner.js +10 -10
- package/cli/dist/infra/slidev-to-pptx/server.js +2 -2
- package/cli/dist/infra/slidev-to-pptx/single-pass-worker.js +39 -39
- package/cli/dist/infra/slidev-to-pptx/slide-worker.js +3 -3
- package/cli/dist/infra/slidev-to-pptx/visibility-helpers.js +8 -8
- package/cli/dist/mcp/dev-server-registry.js +10 -9
- package/cli/dist/mcp/queue.js +1 -1
- package/cli/dist/mcp/result.js +4 -4
- package/cli/dist/mcp/serve.js +1 -1
- package/cli/dist/mcp/server.js +2 -2
- package/cli/dist/mcp/tools/_shared.d.ts +1 -1
- package/cli/dist/mcp/tools/_shared.js +36 -37
- package/cli/dist/mcp/tools/drawio.js +22 -22
- package/cli/dist/mcp/tools/evidence.js +8 -8
- package/cli/dist/mcp/tools/setup.js +26 -26
- package/cli/dist/mcp/tools/slide-dev.js +20 -20
- package/cli/dist/mcp/tools/slide-page.js +36 -36
- package/cli/dist/mcp/tools/slide-theme.js +6 -6
- package/cli/dist/mcp/tools/slide.js +49 -49
- package/cli/dist/mcp/windows-path.js +8 -7
- package/cli/dist/node-runtime.d.ts +6 -1
- package/cli/dist/node-runtime.js +16 -8
- package/npm-shrinkwrap.json +3 -3
- package/package.json +2 -2
- package/vendor/text-rules/dist/source-hash +1 -1
|
@@ -213,7 +213,7 @@ function stripXmlComments(xml: string): string {
|
|
|
213
213
|
*/
|
|
214
214
|
function scanCells(xml: string): Cell[] {
|
|
215
215
|
if (typeof xml !== 'string' || xml.trim() === '') {
|
|
216
|
-
throw new DrawioGeometryError('empty-xml', 'draw.io
|
|
216
|
+
throw new DrawioGeometryError('empty-xml', 'draw.io XML is empty')
|
|
217
217
|
}
|
|
218
218
|
const source = stripXmlComments(xml)
|
|
219
219
|
|
|
@@ -238,7 +238,7 @@ function scanCells(xml: string): Cell[] {
|
|
|
238
238
|
if (top?.name === 'diagram' && !top.hasChild && between.trim() !== '') {
|
|
239
239
|
throw new DrawioGeometryError(
|
|
240
240
|
'compressed',
|
|
241
|
-
'
|
|
241
|
+
'compressed <diagram> is not supported (fix: turn off File > Properties > Compressed in draw.io and save)'
|
|
242
242
|
)
|
|
243
243
|
}
|
|
244
244
|
if (name === 'mxCell') current = null
|
|
@@ -253,7 +253,7 @@ function scanCells(xml: string): Cell[] {
|
|
|
253
253
|
if (name === 'object' || name === 'UserObject') {
|
|
254
254
|
throw new DrawioGeometryError(
|
|
255
255
|
'wrapped-cell',
|
|
256
|
-
|
|
256
|
+
`cell wrapped in <${name}> is not supported; it is generated when a cell has properties or a link (fix: remove the properties so the cell is a plain mxCell)`
|
|
257
257
|
)
|
|
258
258
|
}
|
|
259
259
|
if (name === 'diagram') {
|
|
@@ -261,7 +261,7 @@ function scanCells(xml: string): Cell[] {
|
|
|
261
261
|
if (diagramCount > 1) {
|
|
262
262
|
throw new DrawioGeometryError(
|
|
263
263
|
'multi-page',
|
|
264
|
-
'
|
|
264
|
+
'multi-page draw.io file is not supported (fix: use a file with one page)'
|
|
265
265
|
)
|
|
266
266
|
}
|
|
267
267
|
}
|
|
@@ -307,7 +307,7 @@ function scanCells(xml: string): Cell[] {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
if (modelCount === 0) {
|
|
310
|
-
throw new DrawioGeometryError('no-model', 'draw.io
|
|
310
|
+
throw new DrawioGeometryError('no-model', 'draw.io XML has no <mxGraphModel>')
|
|
311
311
|
}
|
|
312
312
|
return cells
|
|
313
313
|
}
|
|
@@ -424,28 +424,28 @@ export function parseDrawio(xml: string): DrawioModel {
|
|
|
424
424
|
export function resolveCellRect(model: DrawioModel, cellId: string): CellRect {
|
|
425
425
|
const cell = model.byId.get(cellId)
|
|
426
426
|
if (!cell) {
|
|
427
|
-
throw new DrawioGeometryError('unknown-cell',
|
|
427
|
+
throw new DrawioGeometryError('unknown-cell', `cell not found in the diagram: ${cellId}`)
|
|
428
428
|
}
|
|
429
429
|
if (cell.edge) {
|
|
430
430
|
throw new DrawioGeometryError(
|
|
431
431
|
'edge-cell',
|
|
432
|
-
|
|
432
|
+
`cell is an edge: ${cellId} (fix: give the ID of a vertex for the marker)`
|
|
433
433
|
)
|
|
434
434
|
}
|
|
435
435
|
if (!cell.vertex) {
|
|
436
436
|
throw new DrawioGeometryError(
|
|
437
437
|
'not-vertex',
|
|
438
|
-
|
|
438
|
+
`cell is not a vertex, such as a layer: ${cellId} (fix: give the ID of a vertex)`
|
|
439
439
|
)
|
|
440
440
|
}
|
|
441
441
|
if (model.isHidden(cell)) {
|
|
442
|
-
throw new DrawioGeometryError('hidden-cell',
|
|
442
|
+
throw new DrawioGeometryError('hidden-cell', `cell is hidden (visible="0"): ${cellId}`)
|
|
443
443
|
}
|
|
444
444
|
const rect = model.vertexRect(cell)
|
|
445
445
|
if (!rect) {
|
|
446
446
|
throw new DrawioGeometryError(
|
|
447
447
|
'relative-cell',
|
|
448
|
-
|
|
448
|
+
`cell is placed relative to its parent (relative="1"), so its position cannot be determined: ${cellId}`
|
|
449
449
|
)
|
|
450
450
|
}
|
|
451
451
|
return { ...rect, crisp: crispOffsetOf(strokeOf(cell.style).width) }
|
|
@@ -37,7 +37,7 @@ export function fullWidthEquivalent(text: string): number {
|
|
|
37
37
|
const STRONG_TAG_PATTERN = /<strong(?:\s[^>]*)?>([\s\S]*?)<\/strong\s*>/gi;
|
|
38
38
|
|
|
39
39
|
export const BOLD_REQUIRED_MESSAGE =
|
|
40
|
-
'
|
|
40
|
+
'no bold emphasis on the key point (fix: wrap only the key point in <strong>…</strong>; wrapping the whole text is not emphasis; <b> and Markdown ** are not allowed)';
|
|
41
41
|
|
|
42
42
|
// 全文が strong に覆われていると強調の対比が消えるため、強調とみなさない。
|
|
43
43
|
// 複数の strong で分割して全文を覆うケースも同じ扱いにする。
|
|
@@ -64,7 +64,7 @@ export function hasBoldEmphasis(text: string): boolean {
|
|
|
64
64
|
const EM_TAG_PATTERN = /<em(?:\s[^>]*)?>/i;
|
|
65
65
|
|
|
66
66
|
export const EM_DISALLOWED_MESSAGE =
|
|
67
|
-
'<em>
|
|
67
|
+
'<em> is not allowed; use <strong> for emphasis only (fix: remove <em> and keep the words)';
|
|
68
68
|
|
|
69
69
|
export function hasDisallowedEmTag(text: string): boolean {
|
|
70
70
|
if (typeof text !== 'string') {
|
|
@@ -107,7 +107,7 @@ export function validateText(
|
|
|
107
107
|
if (minChars != null && fwe < minChars) {
|
|
108
108
|
errors.push({
|
|
109
109
|
type: 'minChars',
|
|
110
|
-
message: `${fwe}
|
|
110
|
+
message: `${fwe} chars (min: ${minChars})`,
|
|
111
111
|
actual: fwe,
|
|
112
112
|
limit: minChars,
|
|
113
113
|
});
|
|
@@ -117,7 +117,7 @@ export function validateText(
|
|
|
117
117
|
if (maxChars != null && fwe > maxChars) {
|
|
118
118
|
errors.push({
|
|
119
119
|
type: 'maxChars',
|
|
120
|
-
message: `${fwe}
|
|
120
|
+
message: `${fwe} chars (max: ${maxChars})`,
|
|
121
121
|
actual: fwe,
|
|
122
122
|
limit: maxChars,
|
|
123
123
|
});
|
|
@@ -23,7 +23,7 @@ const rule = {
|
|
|
23
23
|
},
|
|
24
24
|
schema: [],
|
|
25
25
|
messages: {
|
|
26
|
-
contentBeforeFrontmatter: 'frontmatter
|
|
26
|
+
contentBeforeFrontmatter: 'content before the frontmatter (---); Slidev shows a blank screen (fix: place the frontmatter at the top of the file)',
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
create(context) {
|
package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-missing-marker-cell.js
CHANGED
|
@@ -17,10 +17,10 @@ const rule = {
|
|
|
17
17
|
},
|
|
18
18
|
schema: [],
|
|
19
19
|
messages: {
|
|
20
|
-
missingDiagram: '
|
|
21
|
-
noDiagram: 'steps[{{index}}].marker.cell
|
|
22
|
-
invalidDiagram: '
|
|
23
|
-
invalidCell: 'steps[{{index}}].marker.cell
|
|
20
|
+
missingDiagram: 'diagram file not found: {{xmlSrc}} ({{filePath}}) (fix: write xmlSrc as a path from public/ of the talk-dir)',
|
|
21
|
+
noDiagram: 'steps[{{index}}].marker.cell is set, but there is no diagram (diagramContent.xmlSrc or steps[].diagram.xmlSrc)',
|
|
22
|
+
invalidDiagram: 'cannot parse diagram {{xmlSrc}}: {{reason}}',
|
|
23
|
+
invalidCell: 'cannot resolve steps[{{index}}].marker.cell in diagram {{xmlSrc}}: {{cell}} ({{reason}})',
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
create(context) {
|
package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-numeric-asset-prefix.js
CHANGED
|
@@ -52,7 +52,7 @@ const rule = {
|
|
|
52
52
|
},
|
|
53
53
|
schema: [],
|
|
54
54
|
messages: {
|
|
55
|
-
numericAssetPrefix: '
|
|
55
|
+
numericAssetPrefix: 'image file name starts with a digit: {{fileName}}; the number drifts from the real order when slides are swapped (fix: rename it to a scene-based English name such as lib-circleci-success.png and update the reference paths)',
|
|
56
56
|
},
|
|
57
57
|
},
|
|
58
58
|
create(context) {
|
package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/no-numeric-filename-prefix.js
CHANGED
|
@@ -10,7 +10,7 @@ const rule = {
|
|
|
10
10
|
},
|
|
11
11
|
schema: [],
|
|
12
12
|
messages: {
|
|
13
|
-
numericFilenamePrefix: '
|
|
13
|
+
numericFilenamePrefix: 'page file name starts with a digit: {{fileName}}; the slide order is managed only by the order of the src: entries in slides.md (fix: rename it to an English name that does not start with a digit, such as cover.md, and update src: in slides.md)',
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
create(context) {
|
|
@@ -19,9 +19,9 @@ const rule = {
|
|
|
19
19
|
},
|
|
20
20
|
schema: [],
|
|
21
21
|
messages: {
|
|
22
|
-
scaled: '
|
|
23
|
-
'{{layout}}
|
|
24
|
-
'
|
|
22
|
+
scaled: 'bounding box of diagram {{xmlSrc}} (including stroke width) is {{width}}×{{height}}px; ' +
|
|
23
|
+
'the limit for {{layout}} is {{maxWidth}}×{{maxHeight}}px, so it is scaled down to {{percent}}% ' +
|
|
24
|
+
'(fix: this cannot be fixed on the page; redraw the diagram with v-diagram-creator)',
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
create(context) {
|
|
@@ -27,9 +27,9 @@ const rule = {
|
|
|
27
27
|
},
|
|
28
28
|
schema: [],
|
|
29
29
|
messages: {
|
|
30
|
-
tripleHyphenInFrontmatter: '
|
|
31
|
-
'Slidev
|
|
32
|
-
'
|
|
30
|
+
tripleHyphenInFrontmatter: 'extra `---` in the frontmatter (line {{line}}); ' +
|
|
31
|
+
'Slidev mistakes it for a slide separator and the display breaks ' +
|
|
32
|
+
'(fix: remove `---` from the YAML value or rephrase it)',
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
create(context) {
|
|
@@ -27,8 +27,8 @@ const rule = {
|
|
|
27
27
|
},
|
|
28
28
|
schema: [],
|
|
29
29
|
messages: {
|
|
30
|
-
unknownProp:
|
|
31
|
-
unknownNestedProp:
|
|
30
|
+
unknownProp: 'property not defined in the {{layout}} layout: {{prop}} (allowed: {{allowed}})',
|
|
31
|
+
unknownNestedProp: 'key not defined in the {{layout}} layout: {{path}} (allowed: {{allowed}})',
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
create(context) {
|
|
@@ -57,7 +57,7 @@ const rule = {
|
|
|
57
57
|
const tree = getLayoutPropTree(reference, referencesDirectories);
|
|
58
58
|
const findings = collectUnknownProps(frontmatter, tree, SLIDEV_STANDARD_KEYS);
|
|
59
59
|
for (const finding of findings) {
|
|
60
|
-
const allowed = finding.allowed.length > 0 ? finding.allowed.join(', ') : '(
|
|
60
|
+
const allowed = finding.allowed.length > 0 ? finding.allowed.join(', ') : '(none)';
|
|
61
61
|
// ネスト配下の finding のみ unknownNestedProp で report する。
|
|
62
62
|
// 走査時に確定させた isNested を使う(path 文字列の解析はしない)。
|
|
63
63
|
if (finding.isNested) {
|
package/assets/slidev/scripts/eslint/slidev-pages-lint/dist/lib/rules/require-matching-length.js
CHANGED
|
@@ -8,7 +8,7 @@ const rule = {
|
|
|
8
8
|
},
|
|
9
9
|
schema: [],
|
|
10
10
|
messages: {
|
|
11
|
-
lengthMismatch:
|
|
11
|
+
lengthMismatch: 'item counts do not match: {{path}} ({{pathCount}} items) and {{target}} ({{targetCount}} items) (fix: use the same count and the same order)',
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
create(context) {
|
|
@@ -9,13 +9,13 @@ const rule = {
|
|
|
9
9
|
},
|
|
10
10
|
schema: [],
|
|
11
11
|
messages: {
|
|
12
|
-
missingClicks: '{{
|
|
13
|
-
incorrectClicks: 'clicks: {{actual}}
|
|
14
|
-
unnecessaryClicks: 'clicks: {{actual}}
|
|
15
|
-
missingClicksCount: '{{
|
|
16
|
-
incorrectClicksCount: 'clicks: {{actual}}
|
|
17
|
-
missingClicksRequired: '{{matchedProps}}
|
|
18
|
-
insufficientClicks: 'clicks: {{actual}}
|
|
12
|
+
missingClicks: '{{count}} {{sourceProp}} ({{perPage}} per page) require clicks: {{expected}}; without it, pages are dropped in PPTX conversion',
|
|
13
|
+
incorrectClicks: 'clicks: {{actual}} is incorrect; {{count}} {{sourceProp}} ({{perPage}} per page) (fix: set clicks: {{expected}})',
|
|
14
|
+
unnecessaryClicks: 'clicks: {{actual}} is set, but {{count}} {{sourceProp}} ({{perPage}} per page) need no paging (fix: remove clicks or set it to 0)',
|
|
15
|
+
missingClicksCount: '{{count}} {{sourceProp}} require clicks: {{expected}}',
|
|
16
|
+
incorrectClicksCount: 'clicks: {{actual}} is incorrect; {{count}} {{sourceProp}} (fix: set clicks: {{expected}})',
|
|
17
|
+
missingClicksRequired: 'the {{matchedProps}} layout requires clicks: {{minClicks}} or more',
|
|
18
|
+
insufficientClicks: 'clicks: {{actual}} is too small; the {{matchedProps}} layout requires clicks: {{minClicks}} or more (fix: raise clicks to at least {{minClicks}})',
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
create(context) {
|