@cloudcannon/configuration-types 0.0.37 → 0.0.39
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 +9336 -10956
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +9442 -11056
- package/dist/cloudcannon-config.legacy-hugo.schema.json +9412 -11031
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +9442 -11056
- package/dist/cloudcannon-config.legacy-reader.schema.json +5865 -7487
- package/package.json +19 -21
- package/src/build-coupled.ts +295 -0
- package/src/cascade.ts +38 -0
- package/src/configuration.ts +426 -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
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export interface ImageResizeable {
|
|
2
|
-
/**
|
|
3
|
-
* Sets the format images are converted to prior to upload. The extension of the file is updated
|
|
4
|
-
* to match. Defaults to keeping the mime type of the uploaded file.
|
|
5
|
-
*/
|
|
6
|
-
mime_type?: 'image/jpeg' | 'image/png' | 'image/webp';
|
|
7
|
-
/**
|
|
8
|
-
* Sets how uploaded image files are resized with a bounding box defined by width and height prior
|
|
9
|
-
* to upload. Has no effect when selecting existing images, or if width and height are unset.
|
|
10
|
-
*
|
|
11
|
-
* @default contain
|
|
12
|
-
*/
|
|
13
|
-
resize_style?: 'cover' | 'contain' | 'stretch' | 'crop';
|
|
14
|
-
/**
|
|
15
|
-
* Defines the width of the bounding box used in the image resizing process defined with
|
|
16
|
-
* resize_style.
|
|
17
|
-
*/
|
|
18
|
-
width?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Defines the height of the bounding box used in the image resizing process defined with
|
|
21
|
-
* resize_style.
|
|
22
|
-
*/
|
|
23
|
-
height?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Controls whether or not images can be upscaled to fit the bounding box during resize prior to
|
|
26
|
-
* upload. Has no effect if files are not resized.
|
|
27
|
-
*
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
expandable?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Instructs the editor to save `width` and `height` attributes on the image elements. This can
|
|
33
|
-
* prevent pop-in as a page loads.
|
|
34
|
-
*
|
|
35
|
-
* @default true
|
|
36
|
-
*/
|
|
37
|
-
image_size_attributes?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* If you have one or more DAMs connected to your site, you can use this key to list which asset
|
|
40
|
-
* sources can be uploaded to and selected from.
|
|
41
|
-
*/
|
|
42
|
-
allowed_sources?: string[];
|
|
43
|
-
/**
|
|
44
|
-
* Enable to skip the image resizing process configured for this input when selecting existing
|
|
45
|
-
* images.
|
|
46
|
-
*
|
|
47
|
-
* @default false
|
|
48
|
-
*/
|
|
49
|
-
prevent_resize_existing_files?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Definitions for creating additional images of different sizes when uploading or selecting
|
|
52
|
-
* existing files.
|
|
53
|
-
*/
|
|
54
|
-
sizes?: {
|
|
55
|
-
/**
|
|
56
|
-
* A number suffixed with "x" (relative size) or "w" (fixed width) for setting the dimensions of
|
|
57
|
-
* the image (e.g. 2x, 3x, 100w, 360w).
|
|
58
|
-
*/
|
|
59
|
-
size: string;
|
|
60
|
-
/**
|
|
61
|
-
* A reference to another input that is given the path to this additional image file.
|
|
62
|
-
*/
|
|
63
|
-
target?: string;
|
|
64
|
-
}[];
|
|
65
|
-
}
|
package/src/index.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type * from './build-coupled';
|
|
2
|
-
export type * from './cascade';
|
|
3
|
-
export type * from './configuration';
|
|
4
|
-
export type * from './documentation';
|
|
5
|
-
export type * from './editables';
|
|
6
|
-
export type * from './icon';
|
|
7
|
-
export type * from './image-resizeable';
|
|
8
|
-
export type * from './inputs';
|
|
9
|
-
export type * from './markdown';
|
|
10
|
-
export type * from './paths';
|
|
11
|
-
export type * from './preview';
|
|
12
|
-
export type * from './select-values';
|
|
13
|
-
export type * from './snippets';
|
|
14
|
-
export type * from './source-editor';
|
|
15
|
-
export type * from './structures';
|
|
16
|
-
export type * from './timezone';
|
|
17
|
-
export type * from './javascript-api';
|
|
18
|
-
|
|
19
|
-
export type SsgKey =
|
|
20
|
-
| 'hugo'
|
|
21
|
-
| 'jekyll'
|
|
22
|
-
| 'eleventy'
|
|
23
|
-
| 'astro'
|
|
24
|
-
| 'lume'
|
|
25
|
-
| 'mkdocs'
|
|
26
|
-
| 'nextjs'
|
|
27
|
-
| 'sveltekit'
|
|
28
|
-
| 'bridgetown'
|
|
29
|
-
| 'docusaurus'
|
|
30
|
-
| 'gatsby'
|
|
31
|
-
| 'hexo'
|
|
32
|
-
| 'nuxtjs'
|
|
33
|
-
| 'sphinx'
|
|
34
|
-
| 'static'
|
|
35
|
-
| 'legacy'
|
|
36
|
-
| 'other';
|