@cloudcannon/configuration-types 0.0.37 → 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 -10957
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +9476 -11075
- package/dist/cloudcannon-config.legacy-hugo.schema.json +9424 -11028
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +9476 -11075
- package/dist/cloudcannon-config.legacy-reader.schema.json +5882 -7489
- 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 -1647
- 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/markdown.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
export const AttributeListPositionSchema = z
|
|
4
|
+
.enum(['none', 'right', 'space right', 'below', 'newline below', 'right-of-prefix'])
|
|
5
|
+
.meta({
|
|
6
|
+
id: 'AttributeListPosition',
|
|
7
|
+
title: 'Attribute List Position',
|
|
8
|
+
description: 'Positioning options for Markdown attribute elements.',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export const MarkdownAttributeElementOptionsSchema = z
|
|
12
|
+
.intersection(
|
|
13
|
+
z.object({
|
|
14
|
+
inline: AttributeListPositionSchema.optional(),
|
|
15
|
+
block: AttributeListPositionSchema.optional(),
|
|
16
|
+
}),
|
|
17
|
+
z.record(z.string(), AttributeListPositionSchema)
|
|
18
|
+
)
|
|
19
|
+
.meta({
|
|
20
|
+
title: 'Markdown Attribute Element Options',
|
|
21
|
+
description: 'Configuration for positioning Markdown attributes on different element types.',
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const MarkdownSettingsSchema = z
|
|
25
|
+
.object({
|
|
26
|
+
engine: z.enum(['commonmark', 'kramdown']).default('commonmark').meta({
|
|
27
|
+
description: 'The flavor of Markdown to use to convert between HTML and Markdown.',
|
|
28
|
+
}),
|
|
29
|
+
options: z.object({
|
|
30
|
+
html: z.boolean().optional().meta({
|
|
31
|
+
description: 'Output HTML tags from source.',
|
|
32
|
+
}),
|
|
33
|
+
xhtml: z.boolean().optional().meta({
|
|
34
|
+
description: 'Use `/` to close single tags (e.g. `<br />`).',
|
|
35
|
+
}),
|
|
36
|
+
breaks: z.boolean().optional().meta({
|
|
37
|
+
description: 'Convert `\\n` in paragraphs into `<br>`.',
|
|
38
|
+
}),
|
|
39
|
+
linkify: z.boolean().optional().meta({
|
|
40
|
+
description: 'Autoconvert URL-like text to links.',
|
|
41
|
+
}),
|
|
42
|
+
typographer: z.boolean().optional().meta({
|
|
43
|
+
description: 'Enable some language-neutral replacement, as well as quotes beautification.',
|
|
44
|
+
}),
|
|
45
|
+
quotes: z.string().optional().meta({
|
|
46
|
+
description:
|
|
47
|
+
'Double + single quotes replacement pairs, when typographer enabled and smartquotes on. For example, you can use "«»„"" for Russian, ""„"‚"" for German, and ["«\\xA0", "\\xA0»", "‹\\xA0", "\\xA0›"] for French (including `nbsp`).',
|
|
48
|
+
}),
|
|
49
|
+
spaced_lists: z.boolean().optional().meta({
|
|
50
|
+
description: 'Output lists with an extra space in Markdown.',
|
|
51
|
+
}),
|
|
52
|
+
sentence_per_line: z.boolean().optional().meta({
|
|
53
|
+
description: 'Add linebreaks between sentences in Markdown.',
|
|
54
|
+
}),
|
|
55
|
+
gfm: z.boolean().optional().meta({
|
|
56
|
+
description: 'Enable GFM mode.',
|
|
57
|
+
}),
|
|
58
|
+
code_block_fences: z.enum(['```', '~~~']).optional().meta({
|
|
59
|
+
description: 'Determines which style of code block fences to use.',
|
|
60
|
+
}),
|
|
61
|
+
treat_indentation_as_code: z.boolean().optional().meta({
|
|
62
|
+
description: 'Determines whether 4 spaces on indentation should be read as a code block.',
|
|
63
|
+
}),
|
|
64
|
+
escape_snippets_in_code_blocks: z.boolean().optional().meta({
|
|
65
|
+
description: 'Render snippets as plain text within code blocks.',
|
|
66
|
+
}),
|
|
67
|
+
table: z.boolean().optional().meta({
|
|
68
|
+
description: 'Output tables in Markdown format.',
|
|
69
|
+
}),
|
|
70
|
+
strikethrough: z.boolean().optional().meta({
|
|
71
|
+
description: 'Output strikes in wrapped in double tildes (e.g. `~~strike~~`).',
|
|
72
|
+
}),
|
|
73
|
+
subscript: z.boolean().optional().meta({
|
|
74
|
+
description: 'Output subscript in wrapped in tildes (e.g. `~sub~`).',
|
|
75
|
+
}),
|
|
76
|
+
superscript: z.boolean().optional().meta({
|
|
77
|
+
description: 'Output superscript in wrapped in carets (e.g. `^super^`).',
|
|
78
|
+
}),
|
|
79
|
+
heading_ids: z.boolean().optional().meta({
|
|
80
|
+
description: 'Generate IDs for headings.',
|
|
81
|
+
}),
|
|
82
|
+
attributes: z.boolean().optional().meta({
|
|
83
|
+
description: 'Save element attributes in Markdown format instead of converting to HTML.',
|
|
84
|
+
}),
|
|
85
|
+
attribute_elements: MarkdownAttributeElementOptionsSchema.optional().meta({
|
|
86
|
+
description: 'Define positioning behavior of Markdown attributes for different elements.',
|
|
87
|
+
}),
|
|
88
|
+
}),
|
|
89
|
+
})
|
|
90
|
+
.meta({
|
|
91
|
+
title: 'Markdown Settings',
|
|
92
|
+
description: 'Configuration for Markdown processing engines and formatting options.',
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export type AttributeListPosition = z.infer<typeof AttributeListPositionSchema>;
|
|
96
|
+
export type MarkdownAttributeElementOptions = z.infer<typeof MarkdownAttributeElementOptionsSchema>;
|
|
97
|
+
export type MarkdownSettings = z.infer<typeof MarkdownSettingsSchema>;
|
package/src/mimetype.ts
ADDED
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
export const MimeTypeSchema = z
|
|
4
|
+
.enum([
|
|
5
|
+
'x-world/x-3dmf',
|
|
6
|
+
'application/x-authorware-bin',
|
|
7
|
+
'application/x-authorware-map',
|
|
8
|
+
'application/x-authorware-seg',
|
|
9
|
+
'text/vnd.abc',
|
|
10
|
+
'video/animaflex',
|
|
11
|
+
'application/postscript',
|
|
12
|
+
'audio/aiff',
|
|
13
|
+
'audio/x-aiff',
|
|
14
|
+
'application/x-aim',
|
|
15
|
+
'text/x-audiosoft-intra',
|
|
16
|
+
'application/x-navi-animation',
|
|
17
|
+
'application/x-nokia-9000-communicator-add-on-software',
|
|
18
|
+
'application/mime',
|
|
19
|
+
'application/arj',
|
|
20
|
+
'image/x-jg',
|
|
21
|
+
'video/x-ms-asf',
|
|
22
|
+
'text/x-asm',
|
|
23
|
+
'text/asp',
|
|
24
|
+
'application/x-mplayer2',
|
|
25
|
+
'video/x-ms-asf-plugin',
|
|
26
|
+
'audio/basic',
|
|
27
|
+
'audio/x-au',
|
|
28
|
+
'application/x-troff-msvideo',
|
|
29
|
+
'video/avi',
|
|
30
|
+
'video/msvideo',
|
|
31
|
+
'video/x-msvideo',
|
|
32
|
+
'video/avs-video',
|
|
33
|
+
'application/x-bcpio',
|
|
34
|
+
'application/mac-binary',
|
|
35
|
+
'application/macbinary',
|
|
36
|
+
'application/x-binary',
|
|
37
|
+
'application/x-macbinary',
|
|
38
|
+
'image/bmp',
|
|
39
|
+
'image/x-windows-bmp',
|
|
40
|
+
'application/book',
|
|
41
|
+
'application/x-bsh',
|
|
42
|
+
'application/x-bzip',
|
|
43
|
+
'application/x-bzip2',
|
|
44
|
+
'text/plain',
|
|
45
|
+
'text/x-c',
|
|
46
|
+
'application/vnd.ms-pki.seccat',
|
|
47
|
+
'application/clariscad',
|
|
48
|
+
'application/x-cocoa',
|
|
49
|
+
'application/cdf',
|
|
50
|
+
'application/x-cdf',
|
|
51
|
+
'application/x-netcdf',
|
|
52
|
+
'application/pkix-cert',
|
|
53
|
+
'application/x-x509-ca-cert',
|
|
54
|
+
'application/x-chat',
|
|
55
|
+
'application/java',
|
|
56
|
+
'application/java-byte-code',
|
|
57
|
+
'application/x-java-class',
|
|
58
|
+
'application/x-cpio',
|
|
59
|
+
'application/mac-compactpro',
|
|
60
|
+
'application/x-compactpro',
|
|
61
|
+
'application/x-cpt',
|
|
62
|
+
'application/pkcs-crl',
|
|
63
|
+
'application/pkix-crl',
|
|
64
|
+
'application/x-x509-user-cert',
|
|
65
|
+
'application/x-csh',
|
|
66
|
+
'text/x-script.csh',
|
|
67
|
+
'application/x-pointplus',
|
|
68
|
+
'text/css',
|
|
69
|
+
'text/csv',
|
|
70
|
+
'application/x-director',
|
|
71
|
+
'application/x-deepv',
|
|
72
|
+
'video/x-dv',
|
|
73
|
+
'video/dl',
|
|
74
|
+
'video/x-dl',
|
|
75
|
+
'application/msword',
|
|
76
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
77
|
+
'application/commonground',
|
|
78
|
+
'application/drafting',
|
|
79
|
+
'application/x-dvi',
|
|
80
|
+
'drawing/x-dwf (old)',
|
|
81
|
+
'model/vnd.dwf',
|
|
82
|
+
'application/acad',
|
|
83
|
+
'image/vnd.dwg',
|
|
84
|
+
'image/x-dwg',
|
|
85
|
+
'application/dxf',
|
|
86
|
+
'text/x-script.elisp',
|
|
87
|
+
'application/x-bytecode.elisp (compiled elisp)',
|
|
88
|
+
'application/x-elc',
|
|
89
|
+
'application/x-envoy',
|
|
90
|
+
'application/x-esrehber',
|
|
91
|
+
'text/x-setext',
|
|
92
|
+
'application/envoy',
|
|
93
|
+
'text/x-fortran',
|
|
94
|
+
'application/vnd.fdf',
|
|
95
|
+
'application/fractals',
|
|
96
|
+
'image/fif',
|
|
97
|
+
'video/fli',
|
|
98
|
+
'video/x-fli',
|
|
99
|
+
'image/florian',
|
|
100
|
+
'text/vnd.fmi.flexstor',
|
|
101
|
+
'video/x-atomic3d-feature',
|
|
102
|
+
'image/vnd.fpx',
|
|
103
|
+
'image/vnd.net-fpx',
|
|
104
|
+
'application/freeloader',
|
|
105
|
+
'audio/make',
|
|
106
|
+
'image/g3fax',
|
|
107
|
+
'image/gif',
|
|
108
|
+
'video/gl',
|
|
109
|
+
'video/x-gl',
|
|
110
|
+
'audio/x-gsm',
|
|
111
|
+
'application/x-gsp',
|
|
112
|
+
'application/x-gss',
|
|
113
|
+
'application/x-gtar',
|
|
114
|
+
'application/x-compressed',
|
|
115
|
+
'application/x-gzip',
|
|
116
|
+
'multipart/x-gzip',
|
|
117
|
+
'text/x-h',
|
|
118
|
+
'application/x-hdf',
|
|
119
|
+
'application/x-helpfile',
|
|
120
|
+
'application/vnd.hp-hpgl',
|
|
121
|
+
'text/x-script',
|
|
122
|
+
'application/hlp',
|
|
123
|
+
'application/x-winhelp',
|
|
124
|
+
'application/binhex',
|
|
125
|
+
'application/binhex4',
|
|
126
|
+
'application/mac-binhex',
|
|
127
|
+
'application/mac-binhex40',
|
|
128
|
+
'application/x-binhex40',
|
|
129
|
+
'application/x-mac-binhex40',
|
|
130
|
+
'application/hta',
|
|
131
|
+
'text/x-component',
|
|
132
|
+
'text/html',
|
|
133
|
+
'text/webviewhtml',
|
|
134
|
+
'x-conference/x-cooltalk',
|
|
135
|
+
'image/x-icon',
|
|
136
|
+
'image/ief',
|
|
137
|
+
'application/iges',
|
|
138
|
+
'model/iges',
|
|
139
|
+
'application/x-ima',
|
|
140
|
+
'application/x-httpd-imap',
|
|
141
|
+
'application/inf',
|
|
142
|
+
'application/x-internett-signup',
|
|
143
|
+
'application/x-ip2',
|
|
144
|
+
'video/x-isvideo',
|
|
145
|
+
'audio/it',
|
|
146
|
+
'application/x-inventor',
|
|
147
|
+
'i-world/i-vrml',
|
|
148
|
+
'application/x-livescreen',
|
|
149
|
+
'audio/x-jam',
|
|
150
|
+
'text/x-java-source',
|
|
151
|
+
'application/x-java-commerce',
|
|
152
|
+
'image/jpeg',
|
|
153
|
+
'image/pjpeg',
|
|
154
|
+
'image/x-jps',
|
|
155
|
+
'application/x-javascript',
|
|
156
|
+
'application/javascript',
|
|
157
|
+
'application/ecmascript',
|
|
158
|
+
'text/javascript',
|
|
159
|
+
'text/ecmascript',
|
|
160
|
+
'application/json',
|
|
161
|
+
'image/jutvision',
|
|
162
|
+
'music/x-karaoke',
|
|
163
|
+
'application/x-ksh',
|
|
164
|
+
'text/x-script.ksh',
|
|
165
|
+
'audio/nspaudio',
|
|
166
|
+
'audio/x-nspaudio',
|
|
167
|
+
'audio/x-liveaudio',
|
|
168
|
+
'application/x-latex',
|
|
169
|
+
'application/lha',
|
|
170
|
+
'application/x-lha',
|
|
171
|
+
'application/x-lisp',
|
|
172
|
+
'text/x-script.lisp',
|
|
173
|
+
'text/x-la-asf',
|
|
174
|
+
'application/x-lzh',
|
|
175
|
+
'application/lzx',
|
|
176
|
+
'application/x-lzx',
|
|
177
|
+
'text/x-m',
|
|
178
|
+
'audio/mpeg',
|
|
179
|
+
'audio/x-mpequrl',
|
|
180
|
+
'audio/m4a',
|
|
181
|
+
'audio/x-m4a',
|
|
182
|
+
'application/x-troff-man',
|
|
183
|
+
'application/x-navimap',
|
|
184
|
+
'application/mbedlet',
|
|
185
|
+
'application/x-magic-cap-package-1.0',
|
|
186
|
+
'application/mcad',
|
|
187
|
+
'application/x-mathcad',
|
|
188
|
+
'image/vasa',
|
|
189
|
+
'text/mcf',
|
|
190
|
+
'application/netmc',
|
|
191
|
+
'text/markdown',
|
|
192
|
+
'application/x-troff-me',
|
|
193
|
+
'message/rfc822',
|
|
194
|
+
'application/x-midi',
|
|
195
|
+
'audio/midi',
|
|
196
|
+
'audio/x-mid',
|
|
197
|
+
'audio/x-midi',
|
|
198
|
+
'music/crescendo',
|
|
199
|
+
'x-music/x-midi',
|
|
200
|
+
'application/x-frame',
|
|
201
|
+
'application/x-mif',
|
|
202
|
+
'www/mime',
|
|
203
|
+
'audio/x-vnd.audioexplosion.mjuicemediafile',
|
|
204
|
+
'video/x-motion-jpeg',
|
|
205
|
+
'application/base64',
|
|
206
|
+
'application/x-meme',
|
|
207
|
+
'audio/mod',
|
|
208
|
+
'audio/x-mod',
|
|
209
|
+
'video/quicktime',
|
|
210
|
+
'video/x-sgi-movie',
|
|
211
|
+
'audio/x-mpeg',
|
|
212
|
+
'video/x-mpeg',
|
|
213
|
+
'video/x-mpeq2a',
|
|
214
|
+
'audio/mpeg3',
|
|
215
|
+
'audio/x-mpeg-3',
|
|
216
|
+
'video/mp4',
|
|
217
|
+
'application/x-project',
|
|
218
|
+
'video/mpeg',
|
|
219
|
+
'application/vnd.ms-project',
|
|
220
|
+
'application/marc',
|
|
221
|
+
'application/x-troff-ms',
|
|
222
|
+
'application/x-vnd.audioexplosion.mzz',
|
|
223
|
+
'image/naplps',
|
|
224
|
+
'application/vnd.nokia.configuration-message',
|
|
225
|
+
'image/x-niff',
|
|
226
|
+
'application/x-mix-transfer',
|
|
227
|
+
'application/x-conference',
|
|
228
|
+
'application/x-navidoc',
|
|
229
|
+
'application/octet-stream',
|
|
230
|
+
'application/oda',
|
|
231
|
+
'audio/ogg',
|
|
232
|
+
'application/ogg',
|
|
233
|
+
'video/ogg',
|
|
234
|
+
'application/x-omc',
|
|
235
|
+
'application/x-omcdatamaker',
|
|
236
|
+
'application/x-omcregerator',
|
|
237
|
+
'text/x-pascal',
|
|
238
|
+
'application/pkcs10',
|
|
239
|
+
'application/x-pkcs10',
|
|
240
|
+
'application/pkcs-12',
|
|
241
|
+
'application/x-pkcs12',
|
|
242
|
+
'application/x-pkcs7-signature',
|
|
243
|
+
'application/pkcs7-mime',
|
|
244
|
+
'application/x-pkcs7-mime',
|
|
245
|
+
'application/x-pkcs7-certreqresp',
|
|
246
|
+
'application/pkcs7-signature',
|
|
247
|
+
'application/pro_eng',
|
|
248
|
+
'text/pascal',
|
|
249
|
+
'image/x-portable-bitmap',
|
|
250
|
+
'application/vnd.hp-pcl',
|
|
251
|
+
'application/x-pcl',
|
|
252
|
+
'image/x-pict',
|
|
253
|
+
'image/x-pcx',
|
|
254
|
+
'chemical/x-pdb',
|
|
255
|
+
'application/pdf',
|
|
256
|
+
'audio/make.my.funk',
|
|
257
|
+
'image/x-portable-graymap',
|
|
258
|
+
'image/x-portable-greymap',
|
|
259
|
+
'image/pict',
|
|
260
|
+
'application/x-newton-compatible-pkg',
|
|
261
|
+
'application/vnd.ms-pki.pko',
|
|
262
|
+
'text/x-script.perl',
|
|
263
|
+
'application/x-pixclscript',
|
|
264
|
+
'image/x-xpixmap',
|
|
265
|
+
'text/x-script.perl-module',
|
|
266
|
+
'application/x-pagemaker',
|
|
267
|
+
'image/png',
|
|
268
|
+
'application/x-portable-anymap',
|
|
269
|
+
'image/x-portable-anymap',
|
|
270
|
+
'model/x-pov',
|
|
271
|
+
'image/x-portable-pixmap',
|
|
272
|
+
'application/mspowerpoint',
|
|
273
|
+
'application/powerpoint',
|
|
274
|
+
'application/vnd.ms-powerpoint',
|
|
275
|
+
'application/x-mspowerpoint',
|
|
276
|
+
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
277
|
+
'application/x-freelance',
|
|
278
|
+
'paleovu/x-pv',
|
|
279
|
+
'text/x-script.phyton',
|
|
280
|
+
'application/x-bytecode.python',
|
|
281
|
+
'audio/vnd.qcelp',
|
|
282
|
+
'image/x-quicktime',
|
|
283
|
+
'video/x-qtc',
|
|
284
|
+
'audio/x-pn-realaudio',
|
|
285
|
+
'audio/x-pn-realaudio-plugin',
|
|
286
|
+
'audio/x-realaudio',
|
|
287
|
+
'application/x-cmu-raster',
|
|
288
|
+
'image/cmu-raster',
|
|
289
|
+
'image/x-cmu-raster',
|
|
290
|
+
'text/x-script.rexx',
|
|
291
|
+
'image/vnd.rn-realflash',
|
|
292
|
+
'image/x-rgb',
|
|
293
|
+
'application/vnd.rn-realmedia',
|
|
294
|
+
'audio/mid',
|
|
295
|
+
'application/ringing-tones',
|
|
296
|
+
'application/vnd.nokia.ringing-tone',
|
|
297
|
+
'application/vnd.rn-realplayer',
|
|
298
|
+
'application/x-troff',
|
|
299
|
+
'image/vnd.rn-realpix',
|
|
300
|
+
'application/x-rtf',
|
|
301
|
+
'text/richtext',
|
|
302
|
+
'application/rtf',
|
|
303
|
+
'video/vnd.rn-realvideo',
|
|
304
|
+
'audio/s3m',
|
|
305
|
+
'application/x-tbook',
|
|
306
|
+
'application/x-lotusscreencam',
|
|
307
|
+
'text/x-script.guile',
|
|
308
|
+
'text/x-script.scheme',
|
|
309
|
+
'video/x-scm',
|
|
310
|
+
'application/sdp',
|
|
311
|
+
'application/x-sdp',
|
|
312
|
+
'application/sounder',
|
|
313
|
+
'application/sea',
|
|
314
|
+
'application/x-sea',
|
|
315
|
+
'application/set',
|
|
316
|
+
'text/sgml',
|
|
317
|
+
'text/x-sgml',
|
|
318
|
+
'application/x-sh',
|
|
319
|
+
'application/x-shar',
|
|
320
|
+
'text/x-script.sh',
|
|
321
|
+
'text/x-server-parsed-html',
|
|
322
|
+
'audio/x-psid',
|
|
323
|
+
'application/x-sit',
|
|
324
|
+
'application/x-stuffit',
|
|
325
|
+
'application/x-koan',
|
|
326
|
+
'application/x-seelogo',
|
|
327
|
+
'application/smil',
|
|
328
|
+
'audio/x-adpcm',
|
|
329
|
+
'application/solids',
|
|
330
|
+
'application/x-pkcs7-certificates',
|
|
331
|
+
'text/x-speech',
|
|
332
|
+
'application/futuresplash',
|
|
333
|
+
'application/x-sprite',
|
|
334
|
+
'application/x-wais-source',
|
|
335
|
+
'application/streamingmedia',
|
|
336
|
+
'application/vnd.ms-pki.certstore',
|
|
337
|
+
'application/step',
|
|
338
|
+
'application/sla',
|
|
339
|
+
'application/vnd.ms-pki.stl',
|
|
340
|
+
'application/x-navistyle',
|
|
341
|
+
'application/x-sv4cpio',
|
|
342
|
+
'application/x-sv4crc',
|
|
343
|
+
'image/svg+xml',
|
|
344
|
+
'application/x-world',
|
|
345
|
+
'x-world/x-svr',
|
|
346
|
+
'application/x-shockwave-flash',
|
|
347
|
+
'application/x-tar',
|
|
348
|
+
'application/toolbook',
|
|
349
|
+
'application/x-tcl',
|
|
350
|
+
'text/x-script.tcl',
|
|
351
|
+
'text/x-script.tcsh',
|
|
352
|
+
'application/x-tex',
|
|
353
|
+
'application/x-texinfo',
|
|
354
|
+
'application/plain',
|
|
355
|
+
'application/gnutar',
|
|
356
|
+
'image/tiff',
|
|
357
|
+
'image/x-tiff',
|
|
358
|
+
'application/toml',
|
|
359
|
+
'audio/tsp-audio',
|
|
360
|
+
'application/dsptype',
|
|
361
|
+
'audio/tsplayer',
|
|
362
|
+
'text/tab-separated-values',
|
|
363
|
+
'application/i-deas',
|
|
364
|
+
'text/uri-list',
|
|
365
|
+
'application/x-ustar',
|
|
366
|
+
'multipart/x-ustar',
|
|
367
|
+
'text/x-uuencode',
|
|
368
|
+
'application/x-cdlink',
|
|
369
|
+
'text/x-vcalendar',
|
|
370
|
+
'application/vda',
|
|
371
|
+
'video/vdo',
|
|
372
|
+
'application/groupwise',
|
|
373
|
+
'video/vivo',
|
|
374
|
+
'video/vnd.vivo',
|
|
375
|
+
'application/vocaltec-media-desc',
|
|
376
|
+
'application/vocaltec-media-file',
|
|
377
|
+
'audio/voc',
|
|
378
|
+
'audio/x-voc',
|
|
379
|
+
'video/vosaic',
|
|
380
|
+
'audio/voxware',
|
|
381
|
+
'audio/x-twinvq-plugin',
|
|
382
|
+
'audio/x-twinvq',
|
|
383
|
+
'application/x-vrml',
|
|
384
|
+
'model/vrml',
|
|
385
|
+
'x-world/x-vrml',
|
|
386
|
+
'x-world/x-vrt',
|
|
387
|
+
'application/x-visio',
|
|
388
|
+
'application/wordperfect6.0',
|
|
389
|
+
'application/wordperfect6.1',
|
|
390
|
+
'audio/wav',
|
|
391
|
+
'audio/x-wav',
|
|
392
|
+
'application/x-qpro',
|
|
393
|
+
'image/vnd.wap.wbmp',
|
|
394
|
+
'application/vnd.xara',
|
|
395
|
+
'video/webm',
|
|
396
|
+
'audio/webm',
|
|
397
|
+
'image/webp',
|
|
398
|
+
'application/x-123',
|
|
399
|
+
'windows/metafile',
|
|
400
|
+
'text/vnd.wap.wml',
|
|
401
|
+
'application/vnd.wap.wmlc',
|
|
402
|
+
'text/vnd.wap.wmlscript',
|
|
403
|
+
'application/vnd.wap.wmlscriptc',
|
|
404
|
+
'video/x-ms-wmv',
|
|
405
|
+
'application/wordperfect',
|
|
406
|
+
'application/x-wpwin',
|
|
407
|
+
'application/x-lotus',
|
|
408
|
+
'application/mswrite',
|
|
409
|
+
'application/x-wri',
|
|
410
|
+
'text/scriplet',
|
|
411
|
+
'application/x-wintalk',
|
|
412
|
+
'image/x-xbitmap',
|
|
413
|
+
'image/x-xbm',
|
|
414
|
+
'image/xbm',
|
|
415
|
+
'video/x-amt-demorun',
|
|
416
|
+
'xgl/drawing',
|
|
417
|
+
'image/vnd.xiff',
|
|
418
|
+
'application/excel',
|
|
419
|
+
'application/vnd.ms-excel',
|
|
420
|
+
'application/x-excel',
|
|
421
|
+
'application/x-msexcel',
|
|
422
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
423
|
+
'audio/xm',
|
|
424
|
+
'application/xml',
|
|
425
|
+
'text/xml',
|
|
426
|
+
'xgl/movie',
|
|
427
|
+
'application/x-vnd.ls-xpix',
|
|
428
|
+
'image/xpm',
|
|
429
|
+
'video/x-amt-showrun',
|
|
430
|
+
'image/x-xwd',
|
|
431
|
+
'image/x-xwindowdump',
|
|
432
|
+
'text/vnd.yaml',
|
|
433
|
+
'application/x-compress',
|
|
434
|
+
'application/x-zip-compressed',
|
|
435
|
+
'application/zip',
|
|
436
|
+
'multipart/x-zip',
|
|
437
|
+
'text/x-script.zsh',
|
|
438
|
+
])
|
|
439
|
+
.meta({
|
|
440
|
+
id: 'MimeType',
|
|
441
|
+
title: 'Mime Type',
|
|
442
|
+
description: 'MIME type identifiers for file type validation and handling in CloudCannon.',
|
|
443
|
+
});
|
|
444
|
+
|
|
445
|
+
export type MimeType = z.infer<typeof MimeTypeSchema>;
|
package/src/paths.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
export const PathsSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
static: z.string().optional().meta({
|
|
6
|
+
id: 'Paths.static',
|
|
7
|
+
description:
|
|
8
|
+
'Location of assets that are statically copied to the output site. This prefix will be removed from the _Uploads_ path when CloudCannon outputs the URL of an asset.',
|
|
9
|
+
}),
|
|
10
|
+
uploads: z.string().default('uploads').optional().meta({
|
|
11
|
+
id: 'Paths.uploads',
|
|
12
|
+
description: 'Default location of newly uploaded site files.',
|
|
13
|
+
}),
|
|
14
|
+
uploads_filename: z.string().optional().meta({
|
|
15
|
+
id: 'Paths.uploads_filename',
|
|
16
|
+
description: 'Filename template for newly uploaded site files.',
|
|
17
|
+
}),
|
|
18
|
+
dam_uploads: z.string().optional().meta({
|
|
19
|
+
id: 'Paths.dam_uploads',
|
|
20
|
+
description: 'Default location of newly uploaded DAM files.',
|
|
21
|
+
}),
|
|
22
|
+
dam_uploads_filename: z.string().optional().meta({
|
|
23
|
+
id: 'Paths.dam_uploads_filename',
|
|
24
|
+
description: 'Filename template for newly uploaded DAM files.',
|
|
25
|
+
}),
|
|
26
|
+
dam_static: z.string().optional().meta({
|
|
27
|
+
id: 'Paths.dam_static',
|
|
28
|
+
description:
|
|
29
|
+
'Location of statically copied assets for DAM files. This prefix will be removed from the _DAM Uploads_ path when CloudCannon outputs the URL of an asset.',
|
|
30
|
+
}),
|
|
31
|
+
uploads_use_relative_path: z.boolean().optional().meta({
|
|
32
|
+
id: 'Paths.uploads_use_relative_path',
|
|
33
|
+
description:
|
|
34
|
+
'When set to true, CloudCannon will reference files relative to the path of the file they were uploaded to.',
|
|
35
|
+
}),
|
|
36
|
+
})
|
|
37
|
+
.meta({
|
|
38
|
+
id: 'paths',
|
|
39
|
+
description:
|
|
40
|
+
'Paths to where new asset files are uploaded to. They also set the default path when choosing existing images, and linking to existing files. Each path is relative to global `source`. Defaults to the global `paths`.',
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export type Paths = z.infer<typeof PathsSchema>;
|