@maizzle/framework 4.7.5 → 4.8.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 +7 -5
- package/src/commands/serve.js +1 -1
- package/src/generators/output/to-disk.js +16 -12
- package/types/baseUrl.d.ts +79 -0
- package/types/build.d.ts +74 -0
- package/types/components.d.ts +177 -0
- package/types/config.d.ts +341 -0
- package/types/events.d.ts +105 -0
- package/types/expressions.d.ts +78 -0
- package/types/fetch.d.ts +143 -0
- package/types/index.d.ts +187 -0
- package/types/inlineCss.d.ts +207 -0
- package/types/layouts.d.ts +39 -0
- package/types/markdown.d.ts +31 -0
- package/types/minify.d.ts +136 -0
- package/types/plaintext.d.ts +62 -0
- package/types/posthtml.d.ts +195 -0
- package/types/removeUnusedCss.d.ts +115 -0
- package/types/render.d.ts +130 -0
- package/types/tailwind.d.ts +22 -0
- package/types/templates.d.ts +181 -0
- package/types/urlParameters.d.ts +39 -0
- package/types/widowWords.d.ts +56 -0
- package/src/index.d.ts +0 -2141
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export default interface WidowWordsConfig {
|
|
2
|
+
/**
|
|
3
|
+
The attribute name to use.
|
|
4
|
+
|
|
5
|
+
@default 'prevent-widows'
|
|
6
|
+
*/
|
|
7
|
+
attrName?: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
Replace all widow word `nbsp;` instances with a single space.
|
|
11
|
+
This is basically the opposite of preventing widow words.
|
|
12
|
+
|
|
13
|
+
@default false
|
|
14
|
+
*/
|
|
15
|
+
removeWindowPreventionMeasures?: boolean;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
Convert the space entity to the `targetLanguage`.
|
|
19
|
+
|
|
20
|
+
@default true
|
|
21
|
+
*/
|
|
22
|
+
convertEntities?: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
Language to encode non-breaking spaces in.
|
|
26
|
+
|
|
27
|
+
@default 'html'
|
|
28
|
+
*/
|
|
29
|
+
targetLanguage?: 'html' | 'css' | 'js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
Should whitespace in front of dashes (-), n-dashes (–) or m-dashes (—) be replaced with a ` `.
|
|
33
|
+
|
|
34
|
+
@default true
|
|
35
|
+
*/
|
|
36
|
+
hyphens?: boolean;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
The minimum amount of words in a target string, in order to trigger the transformer.
|
|
40
|
+
|
|
41
|
+
@default 3
|
|
42
|
+
*/
|
|
43
|
+
minWordCount?: number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
The minimum amount non-whitespace characters in a target string, in order to trigger the transformer.
|
|
47
|
+
|
|
48
|
+
@default 20
|
|
49
|
+
*/
|
|
50
|
+
minCharCount?: number;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
Start/end pairs of strings that will prevent the transformer from removing widow words inside them.
|
|
54
|
+
*/
|
|
55
|
+
ignore?: string | string[];
|
|
56
|
+
}
|