@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/source-editor.d.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This key defines the appearance and behavior of the Source Editor. The following nested keys are
|
|
3
|
-
* available:
|
|
4
|
-
*
|
|
5
|
-
* - `tab_size`
|
|
6
|
-
* - `show_gutter`
|
|
7
|
-
* - `theme`
|
|
8
|
-
*
|
|
9
|
-
* This key has no default.
|
|
10
|
-
*
|
|
11
|
-
* https://cloudcannon.com/documentation/articles/the-source-editor/#source_editor
|
|
12
|
-
*/
|
|
13
|
-
export interface SourceEditor {
|
|
14
|
-
/**
|
|
15
|
-
* This key defines the auto-indentation of each line and how many spaces a tab indentation counts
|
|
16
|
-
* as.
|
|
17
|
-
*
|
|
18
|
-
* By default, this key is `2`.
|
|
19
|
-
*
|
|
20
|
-
* https://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.tab_size
|
|
21
|
-
*
|
|
22
|
-
* @default 2
|
|
23
|
-
*/
|
|
24
|
-
tab_size?: number;
|
|
25
|
-
/**
|
|
26
|
-
* This key defines the color theme for syntax highlighting in the Source Editor.
|
|
27
|
-
*
|
|
28
|
-
* By default, this key is `monokai`.
|
|
29
|
-
*
|
|
30
|
-
* https://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.theme
|
|
31
|
-
*
|
|
32
|
-
* @default monokai
|
|
33
|
-
*/
|
|
34
|
-
theme?: Theme;
|
|
35
|
-
/**
|
|
36
|
-
* This key toggles the gutter on the left of the editing interface, displaying line numbers and
|
|
37
|
-
* code folding controls.
|
|
38
|
-
*
|
|
39
|
-
* By default, this key is `true`.
|
|
40
|
-
*
|
|
41
|
-
* https://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter
|
|
42
|
-
*
|
|
43
|
-
* @default true
|
|
44
|
-
*/
|
|
45
|
-
show_gutter?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Enables soft wrapping of the code.
|
|
48
|
-
*
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
soft_wrap?: boolean;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type Theme =
|
|
55
|
-
| 'ambiance'
|
|
56
|
-
| 'chaos'
|
|
57
|
-
| 'chrome'
|
|
58
|
-
| 'clouds'
|
|
59
|
-
| 'clouds_midnight'
|
|
60
|
-
| 'cobalt'
|
|
61
|
-
| 'crimson_editor'
|
|
62
|
-
| 'dawn'
|
|
63
|
-
| 'dracula'
|
|
64
|
-
| 'dreamweaver'
|
|
65
|
-
| 'eclipse'
|
|
66
|
-
| 'github'
|
|
67
|
-
| 'gob'
|
|
68
|
-
| 'gruvbox'
|
|
69
|
-
| 'idle_fingers'
|
|
70
|
-
| 'iplastic'
|
|
71
|
-
| 'katzenmilch'
|
|
72
|
-
| 'kr_theme'
|
|
73
|
-
| 'kuroir'
|
|
74
|
-
| 'merbivore'
|
|
75
|
-
| 'merbivore_soft'
|
|
76
|
-
| 'mono_industrial'
|
|
77
|
-
| 'monokai'
|
|
78
|
-
| 'nord_dark'
|
|
79
|
-
| 'pastel_on_dark'
|
|
80
|
-
| 'solarized_dark'
|
|
81
|
-
| 'solarized_light'
|
|
82
|
-
| 'sqlserver'
|
|
83
|
-
| 'terminal'
|
|
84
|
-
| 'textmate'
|
|
85
|
-
| 'tomorrow'
|
|
86
|
-
| 'tomorrow_night'
|
|
87
|
-
| 'tomorrow_night_blue'
|
|
88
|
-
| 'tomorrow_night_bright'
|
|
89
|
-
| 'tomorrow_night_eighties'
|
|
90
|
-
| 'twilight'
|
|
91
|
-
| 'vibrant_ink'
|
|
92
|
-
| 'xcode';
|
package/src/structures.d.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import type { Cascade } from './cascade';
|
|
2
|
-
import type { Documentation } from './documentation';
|
|
3
|
-
import type { Icon } from './icon';
|
|
4
|
-
import type { ObjectInputGroup } from './inputs';
|
|
5
|
-
import type { WithPickerPreview, WithPreview } from './preview';
|
|
6
|
-
|
|
7
|
-
interface StructureBase {
|
|
8
|
-
/**
|
|
9
|
-
* If true, inputs are sorted to match when editing. Extra inputs are ordered after expected
|
|
10
|
-
* inputs, unless `remove_extra_inputs` is true. Defaults to true.
|
|
11
|
-
*/
|
|
12
|
-
reorder_inputs?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Hides unexpected inputs when editing. Has no effect if `remove_extra_inputs` is true. Defaults
|
|
15
|
-
* to false.
|
|
16
|
-
*/
|
|
17
|
-
hide_extra_inputs?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* If checked, empty inputs are removed from the source file on save. Removed inputs will be
|
|
20
|
-
* available for editing again, provided they are in the matching schema/structure. Defaults to
|
|
21
|
-
* false.
|
|
22
|
-
*/
|
|
23
|
-
remove_empty_inputs?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* If checked, extra inputs are removed when editing. Defaults to true.
|
|
26
|
-
*/
|
|
27
|
-
remove_extra_inputs?: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface Structure extends StructureBase {
|
|
31
|
-
/**
|
|
32
|
-
* Defines what values are available to add when using this structure.
|
|
33
|
-
*/
|
|
34
|
-
values: StructureValue[];
|
|
35
|
-
/**
|
|
36
|
-
* Defines what key should be used to detect which structure an item is. If this key is not found
|
|
37
|
-
* in the existing structure, a comparison of key names is used. Defaults to "_type".
|
|
38
|
-
*/
|
|
39
|
-
id_key?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Defines whether options are shown to your editors in a select menu (select, default) or a modal
|
|
42
|
-
* pop up window (modal) when adding a new item.
|
|
43
|
-
*
|
|
44
|
-
* @default select
|
|
45
|
-
*/
|
|
46
|
-
style?: 'select' | 'modal';
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface StructureValue extends WithPreview, WithPickerPreview, StructureBase, Cascade {
|
|
50
|
-
/**
|
|
51
|
-
* A unique reference value used when referring to this structure value from the Object input's
|
|
52
|
-
* assigned_structures option.
|
|
53
|
-
*/
|
|
54
|
-
id?: string;
|
|
55
|
-
/**
|
|
56
|
-
* If set to true, this item will be considered the default type for this structure. If the type
|
|
57
|
-
* of a value within a structure cannot be inferred based on its id_key or matching fields, then
|
|
58
|
-
* it will fall back to this item. If multiple items have default set to true, only the first item
|
|
59
|
-
* will be used.
|
|
60
|
-
*
|
|
61
|
-
* @default false
|
|
62
|
-
*/
|
|
63
|
-
default?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* An icon used when displaying the structure (defaults to either format_list_bulleted for items
|
|
66
|
-
* in arrays, or notes otherwise).
|
|
67
|
-
*/
|
|
68
|
-
icon?: Icon;
|
|
69
|
-
/**
|
|
70
|
-
* Path to an image in your source files used when displaying the structure. Can be either a
|
|
71
|
-
* source (has priority) or output path.
|
|
72
|
-
*/
|
|
73
|
-
image?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Used as the main text in the interface for this value.
|
|
76
|
-
*/
|
|
77
|
-
label?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Used to group and filter items when selecting from a modal.
|
|
80
|
-
*/
|
|
81
|
-
tags?: string[];
|
|
82
|
-
/**
|
|
83
|
-
* Allows you to group the inputs inside this object together without changing the data structure.
|
|
84
|
-
*/
|
|
85
|
-
groups?: ObjectInputGroup[];
|
|
86
|
-
/**
|
|
87
|
-
* Controls which order input groups and ungrouped inputs appear in.
|
|
88
|
-
*
|
|
89
|
-
* @default false
|
|
90
|
-
*/
|
|
91
|
-
place_groups_below?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Show nested objects as tabs. Requires all top-level keys to be objects.
|
|
94
|
-
*
|
|
95
|
-
* @default false
|
|
96
|
-
*/
|
|
97
|
-
tabbed?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* The actual value used when items are added after selection.
|
|
100
|
-
*/
|
|
101
|
-
value: unknown;
|
|
102
|
-
/**
|
|
103
|
-
* Provides short descriptive text for editors shown in the Data Editor for expanded values
|
|
104
|
-
* matching this Structure value. Has no default. Supports a limited set of Markdown: links, bold,
|
|
105
|
-
* italic, subscript, superscript, and inline code elements are allowed.
|
|
106
|
-
*/
|
|
107
|
-
comment?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Provides a custom link for documentation for editors shown in the Data Editor for expanded
|
|
110
|
-
* values matching this Structure value. Has no default.
|
|
111
|
-
*/
|
|
112
|
-
documentation?: Documentation;
|
|
113
|
-
}
|