@cloudcannon/configuration-types 0.0.36 → 0.0.38
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/dist/cloudcannon-config.latest.schema.json +9352 -10975
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +9476 -11093
- package/dist/cloudcannon-config.legacy-hugo.schema.json +9424 -11046
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +9476 -11093
- package/dist/cloudcannon-config.legacy-reader.schema.json +5882 -7507
- package/package.json +19 -21
- package/src/build-coupled.ts +295 -0
- package/src/cascade.ts +38 -0
- package/src/configuration.ts +421 -0
- package/src/documentation.ts +22 -0
- package/src/editables.ts +243 -0
- package/src/icon.ts +3597 -0
- package/src/image-options.ts +72 -0
- package/src/index.ts +40 -0
- package/src/inputs.ts +993 -0
- package/src/markdown.ts +97 -0
- package/src/mimetype.ts +445 -0
- package/src/paths.ts +43 -0
- package/src/preview.ts +125 -0
- package/src/select-values.ts +26 -0
- package/src/snippets.ts +113 -0
- package/src/source-editor.ts +68 -0
- package/src/structures.ts +120 -0
- package/src/syntax.ts +183 -0
- package/src/timezone.ts +607 -0
- package/src/build-coupled.d.ts +0 -315
- package/src/cascade.d.ts +0 -37
- package/src/cloudcannon-config.schema.json +0 -79
- package/src/configuration.d.ts +0 -750
- package/src/documentation.d.ts +0 -18
- package/src/editables.d.ts +0 -252
- package/src/icon.d.ts +0 -3585
- package/src/image-resizeable.d.ts +0 -65
- package/src/index.d.ts +0 -36
- package/src/inputs.d.ts +0 -1648
- package/src/javascript-api.d.ts +0 -204
- package/src/markdown.d.ts +0 -103
- package/src/paths.d.ts +0 -44
- package/src/preview.d.ts +0 -110
- package/src/select-values.d.ts +0 -6
- package/src/snippets.d.ts +0 -227
- package/src/source-editor.d.ts +0 -92
- package/src/structures.d.ts +0 -113
- package/src/timezone.d.ts +0 -596
package/src/documentation.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Icon } from './icon';
|
|
2
|
-
|
|
3
|
-
export interface Documentation {
|
|
4
|
-
/**
|
|
5
|
-
* The "href" value of the link.
|
|
6
|
-
*/
|
|
7
|
-
url: string;
|
|
8
|
-
/**
|
|
9
|
-
* The visible text used in the link.
|
|
10
|
-
*/
|
|
11
|
-
text?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The icon displayed next to the link.
|
|
14
|
-
*
|
|
15
|
-
* @default auto_stories
|
|
16
|
-
*/
|
|
17
|
-
icon?: Icon;
|
|
18
|
-
}
|
package/src/editables.d.ts
DELETED
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
import type { ImageResizeable } from './image-resizeable';
|
|
2
|
-
import type { WithPaths } from './paths';
|
|
3
|
-
|
|
4
|
-
export interface Editables {
|
|
5
|
-
/**
|
|
6
|
-
* Contains input options for the Content Editor.
|
|
7
|
-
*/
|
|
8
|
-
content?: BlockEditable;
|
|
9
|
-
/**
|
|
10
|
-
* Contains input options for block Editable Regions.
|
|
11
|
-
*/
|
|
12
|
-
block?: BlockEditable;
|
|
13
|
-
/**
|
|
14
|
-
* Contains input options for link Editable Regions.
|
|
15
|
-
*/
|
|
16
|
-
link?: LinkEditable;
|
|
17
|
-
/**
|
|
18
|
-
* Contains input options for image Editable Regions.
|
|
19
|
-
*/
|
|
20
|
-
image?: ImageEditable;
|
|
21
|
-
/**
|
|
22
|
-
* Contains input options for text Editable Regions.
|
|
23
|
-
*/
|
|
24
|
-
text?: TextEditable;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface ToolbarOptions {
|
|
28
|
-
/**
|
|
29
|
-
* Enables a control to wrap blocks of text in block quotes.
|
|
30
|
-
*
|
|
31
|
-
* @default true
|
|
32
|
-
*/
|
|
33
|
-
blockquote?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Enables a control to insert an unordered list, or to convert selected blocks of text into a
|
|
36
|
-
* unordered list.
|
|
37
|
-
*
|
|
38
|
-
* @default true
|
|
39
|
-
*/
|
|
40
|
-
bulletedlist?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Enables a control to center align text by toggling a class name for a block of text. The value
|
|
43
|
-
* is the class name the editor should add to align the text. The styles for this class need to be
|
|
44
|
-
* listed in the `styles` file to take effect outside of the input.
|
|
45
|
-
*/
|
|
46
|
-
center?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Enables a control to create an inline code element, containing any selected text.
|
|
49
|
-
*
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
code_inline?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Enables a control to insert a code block.
|
|
55
|
-
*
|
|
56
|
-
* @default false
|
|
57
|
-
*/
|
|
58
|
-
code_block?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Enables both block and inline code controls: `code_block` and `code_inline`.
|
|
61
|
-
*
|
|
62
|
-
* @default false
|
|
63
|
-
*/
|
|
64
|
-
code?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Enables a control to insert a region of raw HTML, including YouTube, Vimeo, Tweets, and other
|
|
67
|
-
* media. Embedded content is sanitized to mitigate XSS risks, which includes removing style tags.
|
|
68
|
-
* Embeds containing script tags are not loaded in the editor.
|
|
69
|
-
*
|
|
70
|
-
* @default false
|
|
71
|
-
*/
|
|
72
|
-
embed?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Enables a drop down menu for structured text. Has options for "p", "h1", "h2", "h3", "h4",
|
|
75
|
-
* "h5", "h6". Set as space separated options (e.g. "p h1 h2").
|
|
76
|
-
*
|
|
77
|
-
* @default p h1 h2 h3 h4 h5 h6
|
|
78
|
-
*/
|
|
79
|
-
format?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Enables a control to insert a horizontal rule.
|
|
82
|
-
*
|
|
83
|
-
* @default false
|
|
84
|
-
*/
|
|
85
|
-
horizontalrule?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Enables a control to insert an image. The image can be uploaded, existing or an external link.
|
|
88
|
-
*
|
|
89
|
-
* @default true
|
|
90
|
-
*/
|
|
91
|
-
image?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Enables a control to increase indentation for numbered and unordered lists.
|
|
94
|
-
*
|
|
95
|
-
* @default false
|
|
96
|
-
*/
|
|
97
|
-
indent?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Enables a control to justify text by toggling a class name for a block of text. The value is
|
|
100
|
-
* the class name the editor should add to justify the text. The styles for this class need to be
|
|
101
|
-
* listed in the `styles` file to take effect outside of the input.
|
|
102
|
-
*/
|
|
103
|
-
justify?: string;
|
|
104
|
-
/**
|
|
105
|
-
* Enables a control to left align text by toggling a class name for a block of text. The value is
|
|
106
|
-
* the class name the editor should add to align the text. The styles for this class need to be
|
|
107
|
-
* listed in the `styles` file to take effect outside of the input.
|
|
108
|
-
*/
|
|
109
|
-
left?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Enables a control to insert a numbered list, or to convert selected blocks of text into a
|
|
112
|
-
* numbered list.
|
|
113
|
-
*
|
|
114
|
-
* @default true
|
|
115
|
-
*/
|
|
116
|
-
numberedlist?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Enables a control to reduce indentation for numbered and unordered lists.
|
|
119
|
-
*
|
|
120
|
-
* @default false
|
|
121
|
-
*/
|
|
122
|
-
outdent?: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* Enables a control to right align text by toggling a class name for a block of text. The value
|
|
125
|
-
* is the class name the editor should add to align the text. The styles for this class need to be
|
|
126
|
-
* listed in the `styles` file to take effect outside of the input.
|
|
127
|
-
*/
|
|
128
|
-
right?: string;
|
|
129
|
-
/**
|
|
130
|
-
* Enables a control to insert snippets, if any are available.
|
|
131
|
-
*
|
|
132
|
-
* @default true
|
|
133
|
-
*/
|
|
134
|
-
snippet?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* Enables a drop down menu for editors to style selected text or blocks or text. Styles are the
|
|
137
|
-
* combination of an element and class name. The value for this option is the path (either source
|
|
138
|
-
* or build output) to the CSS file containing the styles.
|
|
139
|
-
*/
|
|
140
|
-
styles?: string;
|
|
141
|
-
/**
|
|
142
|
-
* Enables a control to insert a table. Further options for table cells are available in the
|
|
143
|
-
* context menu for cells within the editor.
|
|
144
|
-
*
|
|
145
|
-
* @default false
|
|
146
|
-
*/
|
|
147
|
-
table?: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Enables a control to join the selected block with the block above it.
|
|
150
|
-
*
|
|
151
|
-
* @default false
|
|
152
|
-
*/
|
|
153
|
-
join_above?: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Enables a control to join the selected block with the block below it.
|
|
156
|
-
*
|
|
157
|
-
* @default false
|
|
158
|
-
*/
|
|
159
|
-
join_below?: boolean;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export type BlockEditable = ImageResizeable & TextEditable & ToolbarOptions;
|
|
163
|
-
|
|
164
|
-
export type ImageEditable = ImageResizeable & WithPaths;
|
|
165
|
-
|
|
166
|
-
export type LinkEditable = WithPaths;
|
|
167
|
-
|
|
168
|
-
export interface TextEditable extends WithPaths {
|
|
169
|
-
/**
|
|
170
|
-
* Enables a control to set selected text to bold.
|
|
171
|
-
*
|
|
172
|
-
* @default true
|
|
173
|
-
*/
|
|
174
|
-
bold?: boolean;
|
|
175
|
-
/**
|
|
176
|
-
* Enables a control to copy formatting from text to other text. Only applies to formatting from
|
|
177
|
-
* `bold`, `italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not copy other
|
|
178
|
-
* styles or formatting.
|
|
179
|
-
*
|
|
180
|
-
* @default false
|
|
181
|
-
*/
|
|
182
|
-
copyformatting?: boolean;
|
|
183
|
-
/**
|
|
184
|
-
* Enables a control to italicize selected text.
|
|
185
|
-
*
|
|
186
|
-
* @default true
|
|
187
|
-
*/
|
|
188
|
-
italic?: boolean;
|
|
189
|
-
/**
|
|
190
|
-
* Enables a control to create hyperlinks around selected text.
|
|
191
|
-
*
|
|
192
|
-
* @default true
|
|
193
|
-
*/
|
|
194
|
-
link?: boolean;
|
|
195
|
-
/**
|
|
196
|
-
* Enables a control to redo recent edits undone with undo. Redo is always enabled through
|
|
197
|
-
* standard OS-specific keyboard shortcuts.
|
|
198
|
-
*
|
|
199
|
-
* @default false
|
|
200
|
-
*/
|
|
201
|
-
redo?: boolean;
|
|
202
|
-
/**
|
|
203
|
-
* Enables the control to remove formatting from text. Applies to formatting from `bold`,
|
|
204
|
-
* `italic`, `underline`, `strike`, `subscript`, and `superscript`. Does not remove other styles
|
|
205
|
-
* or formatting.
|
|
206
|
-
*
|
|
207
|
-
* @default true
|
|
208
|
-
*/
|
|
209
|
-
removeformat?: boolean;
|
|
210
|
-
/**
|
|
211
|
-
* Enables a control to strike selected text.
|
|
212
|
-
*
|
|
213
|
-
* @default false
|
|
214
|
-
*/
|
|
215
|
-
strike?: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* Enables a control to set selected text to subscript.
|
|
218
|
-
*
|
|
219
|
-
* @default false
|
|
220
|
-
*/
|
|
221
|
-
subscript?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* Enables a control to set selected text to superscript.
|
|
224
|
-
*
|
|
225
|
-
* @default false
|
|
226
|
-
*/
|
|
227
|
-
superscript?: boolean;
|
|
228
|
-
/**
|
|
229
|
-
* Enables a control to underline selected text.
|
|
230
|
-
*
|
|
231
|
-
* @default false
|
|
232
|
-
*/
|
|
233
|
-
underline?: boolean;
|
|
234
|
-
/**
|
|
235
|
-
* Enables a control to undo recent edits. Undo is always enabled through standard OS-specific
|
|
236
|
-
* keyboard shortcuts.
|
|
237
|
-
*
|
|
238
|
-
* @default false
|
|
239
|
-
*/
|
|
240
|
-
undo?: boolean;
|
|
241
|
-
/**
|
|
242
|
-
* Defines if the content should be stripped of "custom markup". It is recommended to have this
|
|
243
|
-
* option turned on once you have all of your rich text options configured. Having
|
|
244
|
-
* `allow_custom_markup` turned on disables this option. Defaults to false.
|
|
245
|
-
*/
|
|
246
|
-
remove_custom_markup?: boolean;
|
|
247
|
-
/**
|
|
248
|
-
* Defines if the content can contain "custom markup". It is not recommended to have this option
|
|
249
|
-
* turned on. Defaults to true for non-content editable regions, false otherwise.
|
|
250
|
-
*/
|
|
251
|
-
allow_custom_markup?: boolean;
|
|
252
|
-
}
|