@cloudcannon/configuration-types 0.0.26 → 0.0.27

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.
@@ -951,6 +951,12 @@
951
951
  "markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
952
952
  "type": "boolean"
953
953
  },
954
+ "softwrap": {
955
+ "default": false,
956
+ "description": "Enables soft wrapping of the code.",
957
+ "markdownDescription": "Enables soft wrapping of the code.",
958
+ "type": "boolean"
959
+ },
954
960
  "syntax": {
955
961
  "$ref": "#/definitions/Syntax",
956
962
  "description": "Changes how the editor parses your content for syntax highlighting. Should be set to the language of the code going into the input.",
@@ -1336,6 +1342,11 @@
1336
1342
  "description": "Set the string for the commit template. This will only be used if `template_path` is not set.",
1337
1343
  "markdownDescription": "Set the string for the commit template. This will only be used if `template_path` is not set.",
1338
1344
  "type": "string"
1345
+ },
1346
+ "wrap_width": {
1347
+ "description": "Sets the width of the text wrap in the editor.",
1348
+ "markdownDescription": "Sets the width of the text wrap in the editor.",
1349
+ "type": "number"
1339
1350
  }
1340
1351
  },
1341
1352
  "type": "object"
@@ -9161,6 +9172,12 @@
9161
9172
  "markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
9162
9173
  "type": "boolean"
9163
9174
  },
9175
+ "softwrap": {
9176
+ "default": false,
9177
+ "description": "Enables soft wrapping of the code.",
9178
+ "markdownDescription": "Enables soft wrapping of the code.",
9179
+ "type": "boolean"
9180
+ },
9164
9181
  "tab_size": {
9165
9182
  "default": 2,
9166
9183
  "description": "This key defines the auto-indentation of each line and how many spaces a tab indentation counts as.\n\nBy default, this key is `2`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.tab_size",
@@ -11030,6 +11047,11 @@
11030
11047
  "description": "Specifies the time zone that dates are displayed and edited in. Also changes the suffix the date is persisted to the file with.\n\nhttps://cloudcannon.com/documentation/articles/configuration-file-reference/#timezone",
11031
11048
  "markdownDescription": "Specifies the time zone that dates are displayed and edited in. Also changes the suffix the\ndate is persisted to the file with.\n\nhttps://cloudcannon.com/documentation/articles/configuration-file-reference/#timezone"
11032
11049
  },
11050
+ "upstream_commit_template": {
11051
+ "description": "The commit template to use when pulling changes from the upstream repository.\n\nhttps://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/",
11052
+ "markdownDescription": "The commit template to use when pulling changes from the upstream repository.\n\nhttps://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/",
11053
+ "type": "string"
11054
+ },
11033
11055
  "version": {
11034
11056
  "const": "latest",
11035
11057
  "description": "Controls which schema this file is validated against. Defaults to the latest schema.",
@@ -1202,6 +1202,12 @@
1202
1202
  "markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
1203
1203
  "type": "boolean"
1204
1204
  },
1205
+ "softwrap": {
1206
+ "default": false,
1207
+ "description": "Enables soft wrapping of the code.",
1208
+ "markdownDescription": "Enables soft wrapping of the code.",
1209
+ "type": "boolean"
1210
+ },
1205
1211
  "syntax": {
1206
1212
  "$ref": "#/definitions/Syntax",
1207
1213
  "description": "Changes how the editor parses your content for syntax highlighting. Should be set to the language of the code going into the input.",
@@ -1406,6 +1412,11 @@
1406
1412
  "description": "Set the string for the commit template. This will only be used if `template_path` is not set.",
1407
1413
  "markdownDescription": "Set the string for the commit template. This will only be used if `template_path` is not set.",
1408
1414
  "type": "string"
1415
+ },
1416
+ "wrap_width": {
1417
+ "description": "Sets the width of the text wrap in the editor.",
1418
+ "markdownDescription": "Sets the width of the text wrap in the editor.",
1419
+ "type": "number"
1409
1420
  }
1410
1421
  },
1411
1422
  "type": "object"
@@ -9252,6 +9263,12 @@
9252
9263
  "markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
9253
9264
  "type": "boolean"
9254
9265
  },
9266
+ "softwrap": {
9267
+ "default": false,
9268
+ "description": "Enables soft wrapping of the code.",
9269
+ "markdownDescription": "Enables soft wrapping of the code.",
9270
+ "type": "boolean"
9271
+ },
9255
9272
  "tab_size": {
9256
9273
  "default": 2,
9257
9274
  "description": "This key defines the auto-indentation of each line and how many spaces a tab indentation counts as.\n\nBy default, this key is `2`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.tab_size",
@@ -11126,6 +11143,11 @@
11126
11143
  "description": "Specifies the time zone that dates are displayed and edited in. Also changes the suffix the date is persisted to the file with.\n\nhttps://cloudcannon.com/documentation/articles/configuration-file-reference/#timezone",
11127
11144
  "markdownDescription": "Specifies the time zone that dates are displayed and edited in. Also changes the suffix the\ndate is persisted to the file with.\n\nhttps://cloudcannon.com/documentation/articles/configuration-file-reference/#timezone"
11128
11145
  },
11146
+ "upstream_commit_template": {
11147
+ "description": "The commit template to use when pulling changes from the upstream repository.\n\nhttps://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/",
11148
+ "markdownDescription": "The commit template to use when pulling changes from the upstream repository.\n\nhttps://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/",
11149
+ "type": "string"
11150
+ },
11129
11151
  "version": {
11130
11152
  "const": "legacy-eleventy",
11131
11153
  "description": "Controls which schema this file is validated against. Defaults to the latest schema.",
@@ -1013,6 +1013,12 @@
1013
1013
  "markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
1014
1014
  "type": "boolean"
1015
1015
  },
1016
+ "softwrap": {
1017
+ "default": false,
1018
+ "description": "Enables soft wrapping of the code.",
1019
+ "markdownDescription": "Enables soft wrapping of the code.",
1020
+ "type": "boolean"
1021
+ },
1016
1022
  "syntax": {
1017
1023
  "$ref": "#/definitions/Syntax",
1018
1024
  "description": "Changes how the editor parses your content for syntax highlighting. Should be set to the language of the code going into the input.",
@@ -1217,6 +1223,11 @@
1217
1223
  "description": "Set the string for the commit template. This will only be used if `template_path` is not set.",
1218
1224
  "markdownDescription": "Set the string for the commit template. This will only be used if `template_path` is not set.",
1219
1225
  "type": "string"
1226
+ },
1227
+ "wrap_width": {
1228
+ "description": "Sets the width of the text wrap in the editor.",
1229
+ "markdownDescription": "Sets the width of the text wrap in the editor.",
1230
+ "type": "number"
1220
1231
  }
1221
1232
  },
1222
1233
  "type": "object"
@@ -9259,6 +9270,12 @@
9259
9270
  "markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
9260
9271
  "type": "boolean"
9261
9272
  },
9273
+ "softwrap": {
9274
+ "default": false,
9275
+ "description": "Enables soft wrapping of the code.",
9276
+ "markdownDescription": "Enables soft wrapping of the code.",
9277
+ "type": "boolean"
9278
+ },
9262
9279
  "tab_size": {
9263
9280
  "default": 2,
9264
9281
  "description": "This key defines the auto-indentation of each line and how many spaces a tab indentation counts as.\n\nBy default, this key is `2`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.tab_size",
@@ -11133,6 +11150,11 @@
11133
11150
  "description": "Specifies the time zone that dates are displayed and edited in. Also changes the suffix the date is persisted to the file with.\n\nhttps://cloudcannon.com/documentation/articles/configuration-file-reference/#timezone",
11134
11151
  "markdownDescription": "Specifies the time zone that dates are displayed and edited in. Also changes the suffix the\ndate is persisted to the file with.\n\nhttps://cloudcannon.com/documentation/articles/configuration-file-reference/#timezone"
11135
11152
  },
11153
+ "upstream_commit_template": {
11154
+ "description": "The commit template to use when pulling changes from the upstream repository.\n\nhttps://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/",
11155
+ "markdownDescription": "The commit template to use when pulling changes from the upstream repository.\n\nhttps://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/",
11156
+ "type": "string"
11157
+ },
11136
11158
  "version": {
11137
11159
  "const": "legacy-hugo",
11138
11160
  "description": "Controls which schema this file is validated against. Defaults to the latest schema.",
@@ -1202,6 +1202,12 @@
1202
1202
  "markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
1203
1203
  "type": "boolean"
1204
1204
  },
1205
+ "softwrap": {
1206
+ "default": false,
1207
+ "description": "Enables soft wrapping of the code.",
1208
+ "markdownDescription": "Enables soft wrapping of the code.",
1209
+ "type": "boolean"
1210
+ },
1205
1211
  "syntax": {
1206
1212
  "$ref": "#/definitions/Syntax",
1207
1213
  "description": "Changes how the editor parses your content for syntax highlighting. Should be set to the language of the code going into the input.",
@@ -1406,6 +1412,11 @@
1406
1412
  "description": "Set the string for the commit template. This will only be used if `template_path` is not set.",
1407
1413
  "markdownDescription": "Set the string for the commit template. This will only be used if `template_path` is not set.",
1408
1414
  "type": "string"
1415
+ },
1416
+ "wrap_width": {
1417
+ "description": "Sets the width of the text wrap in the editor.",
1418
+ "markdownDescription": "Sets the width of the text wrap in the editor.",
1419
+ "type": "number"
1409
1420
  }
1410
1421
  },
1411
1422
  "type": "object"
@@ -9252,6 +9263,12 @@
9252
9263
  "markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
9253
9264
  "type": "boolean"
9254
9265
  },
9266
+ "softwrap": {
9267
+ "default": false,
9268
+ "description": "Enables soft wrapping of the code.",
9269
+ "markdownDescription": "Enables soft wrapping of the code.",
9270
+ "type": "boolean"
9271
+ },
9255
9272
  "tab_size": {
9256
9273
  "default": 2,
9257
9274
  "description": "This key defines the auto-indentation of each line and how many spaces a tab indentation counts as.\n\nBy default, this key is `2`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.tab_size",
@@ -11126,6 +11143,11 @@
11126
11143
  "description": "Specifies the time zone that dates are displayed and edited in. Also changes the suffix the date is persisted to the file with.\n\nhttps://cloudcannon.com/documentation/articles/configuration-file-reference/#timezone",
11127
11144
  "markdownDescription": "Specifies the time zone that dates are displayed and edited in. Also changes the suffix the\ndate is persisted to the file with.\n\nhttps://cloudcannon.com/documentation/articles/configuration-file-reference/#timezone"
11128
11145
  },
11146
+ "upstream_commit_template": {
11147
+ "description": "The commit template to use when pulling changes from the upstream repository.\n\nhttps://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/",
11148
+ "markdownDescription": "The commit template to use when pulling changes from the upstream repository.\n\nhttps://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/",
11149
+ "type": "string"
11150
+ },
11129
11151
  "version": {
11130
11152
  "const": "legacy-jekyll",
11131
11153
  "description": "Controls which schema this file is validated against. Defaults to the latest schema.",
@@ -1013,6 +1013,12 @@
1013
1013
  "markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
1014
1014
  "type": "boolean"
1015
1015
  },
1016
+ "softwrap": {
1017
+ "default": false,
1018
+ "description": "Enables soft wrapping of the code.",
1019
+ "markdownDescription": "Enables soft wrapping of the code.",
1020
+ "type": "boolean"
1021
+ },
1016
1022
  "syntax": {
1017
1023
  "$ref": "#/definitions/Syntax",
1018
1024
  "description": "Changes how the editor parses your content for syntax highlighting. Should be set to the language of the code going into the input.",
@@ -1217,6 +1223,11 @@
1217
1223
  "description": "Set the string for the commit template. This will only be used if `template_path` is not set.",
1218
1224
  "markdownDescription": "Set the string for the commit template. This will only be used if `template_path` is not set.",
1219
1225
  "type": "string"
1226
+ },
1227
+ "wrap_width": {
1228
+ "description": "Sets the width of the text wrap in the editor.",
1229
+ "markdownDescription": "Sets the width of the text wrap in the editor.",
1230
+ "type": "number"
1220
1231
  }
1221
1232
  },
1222
1233
  "type": "object"
@@ -9281,6 +9292,12 @@
9281
9292
  "markdownDescription": "This key toggles the gutter on the left of the editing interface, displaying line numbers and\ncode folding controls.\n\nBy default, this key is `true`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.show_gutter",
9282
9293
  "type": "boolean"
9283
9294
  },
9295
+ "softwrap": {
9296
+ "default": false,
9297
+ "description": "Enables soft wrapping of the code.",
9298
+ "markdownDescription": "Enables soft wrapping of the code.",
9299
+ "type": "boolean"
9300
+ },
9284
9301
  "tab_size": {
9285
9302
  "default": 2,
9286
9303
  "description": "This key defines the auto-indentation of each line and how many spaces a tab indentation counts as.\n\nBy default, this key is `2`.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor.tab_size",
@@ -11179,6 +11196,11 @@
11179
11196
  "description": "Specifies the time zone that dates are displayed and edited in. Also changes the suffix the date is persisted to the file with.\n\nhttps://cloudcannon.com/documentation/articles/configuration-file-reference/#timezone",
11180
11197
  "markdownDescription": "Specifies the time zone that dates are displayed and edited in. Also changes the suffix the\ndate is persisted to the file with.\n\nhttps://cloudcannon.com/documentation/articles/configuration-file-reference/#timezone"
11181
11198
  },
11199
+ "upstream_commit_template": {
11200
+ "description": "The commit template to use when pulling changes from the upstream repository.\n\nhttps://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/",
11201
+ "markdownDescription": "The commit template to use when pulling changes from the upstream repository.\n\nhttps://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/",
11202
+ "type": "string"
11203
+ },
11182
11204
  "version": {
11183
11205
  "const": "legacy-reader",
11184
11206
  "description": "Controls which schema this file is validated against. Defaults to the latest schema.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcannon/configuration-types",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "type": "module",
5
5
  "description": "Contains TypeScript declarations and generates JSONSchema files for the CloudCannon configuration file.",
6
6
  "author": "CloudCannon <support@cloudcannon.com>",
@@ -616,6 +616,10 @@ export interface CommitTemplate {
616
616
  * Define additional template strings, for building nested templates.
617
617
  */
618
618
  extra_data?: Record<string, string>;
619
+ /**
620
+ * Sets the width of the text wrap in the editor.
621
+ */
622
+ wrap_width?: number;
619
623
  }
620
624
 
621
625
  /**
@@ -697,6 +701,13 @@ export interface Configuration extends Cascade, WithPaths {
697
701
  * https://cloudcannon.com/documentation/articles/configuration-file-reference/#commit_templates
698
702
  */
699
703
  commit_templates?: CommitTemplate[];
704
+
705
+ /**
706
+ * The commit template to use when pulling changes from the upstream repository.
707
+ *
708
+ * https://cloudcannon.com/documentation/articles/configure-an-upstream-commit-message-template/
709
+ */
710
+ upstream_commit_template?: string;
700
711
  /**
701
712
  * Contains settings for various Markdown engines.
702
713
  *
@@ -19,7 +19,7 @@ export interface OpenCustomDataPanelOptions extends CloseCustomDataPanelOptions
19
19
  * Interface defining the public JavaScript API for interacting with CloudCannon's Visual Editor.
20
20
  * This API provides methods for managing content, handling file operations, and controlling the editor's state.
21
21
  */
22
- export interface CloudCannonJavascriptAPI {
22
+ export interface CloudCannonJavaScriptAPI {
23
23
  /** Whether event handling is currently enabled */
24
24
  eventsEnabled: boolean;
25
25
  /** Whether the API should be installed globally */
@@ -43,6 +43,12 @@ export interface SourceEditor {
43
43
  * @default true
44
44
  */
45
45
  show_gutter?: boolean;
46
+ /**
47
+ * Enables soft wrapping of the code.
48
+ *
49
+ * @default false
50
+ */
51
+ softwrap?: boolean;
46
52
  }
47
53
 
48
54
  export type Theme =