@datocms/cma-client 5.4.14 → 5.4.15
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/cjs/generated/Client.js +1 -1
- package/dist/esm/fieldTypes/appearance/color_picker.d.ts +4 -4
- package/dist/esm/fieldTypes/appearance/framed_single_block.d.ts +1 -1
- package/dist/esm/fieldTypes/appearance/markdown.d.ts +2 -2
- package/dist/esm/fieldTypes/appearance/rich_text.d.ts +1 -1
- package/dist/esm/fieldTypes/appearance/seo.d.ts +4 -4
- package/dist/esm/fieldTypes/appearance/single_line.d.ts +2 -2
- package/dist/esm/fieldTypes/appearance/structured_text.d.ts +9 -9
- package/dist/esm/fieldTypes/appearance/wysiwyg.d.ts +2 -2
- package/dist/esm/fieldTypes/validators/sanitized_html.d.ts +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/types/fieldTypes/appearance/color_picker.d.ts +4 -4
- package/dist/types/fieldTypes/appearance/framed_single_block.d.ts +1 -1
- package/dist/types/fieldTypes/appearance/markdown.d.ts +2 -2
- package/dist/types/fieldTypes/appearance/rich_text.d.ts +1 -1
- package/dist/types/fieldTypes/appearance/seo.d.ts +4 -4
- package/dist/types/fieldTypes/appearance/single_line.d.ts +2 -2
- package/dist/types/fieldTypes/appearance/structured_text.d.ts +9 -9
- package/dist/types/fieldTypes/appearance/wysiwyg.d.ts +2 -2
- package/dist/types/fieldTypes/validators/sanitized_html.d.ts +1 -1
- package/package.json +2 -2
- package/src/fieldTypes/appearance/color_picker.ts +4 -4
- package/src/fieldTypes/appearance/framed_single_block.ts +1 -1
- package/src/fieldTypes/appearance/markdown.ts +2 -2
- package/src/fieldTypes/appearance/rich_text.ts +1 -1
- package/src/fieldTypes/appearance/seo.ts +4 -4
- package/src/fieldTypes/appearance/single_line.ts +2 -2
- package/src/fieldTypes/appearance/structured_text.ts +9 -9
- package/src/fieldTypes/appearance/wysiwyg.ts +2 -2
- package/src/fieldTypes/validators/sanitized_html.ts +1 -1
- package/src/generated/Client.ts +1 -1
|
@@ -90,7 +90,7 @@ class Client {
|
|
|
90
90
|
return this.config.baseUrl || Client.defaultBaseUrl;
|
|
91
91
|
}
|
|
92
92
|
request(options) {
|
|
93
|
-
return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.4.
|
|
93
|
+
return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.4.15', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
94
94
|
? { 'X-Environment': this.config.environment }
|
|
95
95
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
|
|
96
96
|
return this.jobResultsFetcher
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Built-in editor for Color fields.
|
|
3
3
|
*/
|
|
4
4
|
export type ColorPickerEditorConfiguration = {
|
|
5
|
-
/** Should the color picker allow to specify the alpha value? */
|
|
6
|
-
enable_alpha
|
|
7
|
-
/** List of preset colors to offer to the user (hex color strings) */
|
|
8
|
-
preset_colors
|
|
5
|
+
/** Should the color picker allow to specify the alpha value? (default: false) */
|
|
6
|
+
enable_alpha?: boolean;
|
|
7
|
+
/** List of preset colors to offer to the user (hex color strings) (default: []) */
|
|
8
|
+
preset_colors?: Array<string>;
|
|
9
9
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Built-in editor for Single block fields.
|
|
3
3
|
*/
|
|
4
4
|
export type FramedSingleBlockEditorConfiguration = {
|
|
5
|
-
/** Whether you want block record collapsed by default or not */
|
|
5
|
+
/** Whether you want block record collapsed by default or not (default: false) */
|
|
6
6
|
start_collapsed?: boolean;
|
|
7
7
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Markdown editor for Multiple-paragraph text fields.
|
|
3
3
|
*/
|
|
4
4
|
export type MarkdownEditorConfiguration = {
|
|
5
|
-
/** Specify which buttons the toolbar should have */
|
|
6
|
-
toolbar
|
|
5
|
+
/** Specify which buttons the toolbar should have (default: all allowed values) */
|
|
6
|
+
toolbar?: Array<'heading' | 'bold' | 'italic' | 'strikethrough' | 'code' | 'unordered_list' | 'ordered_list' | 'quote' | 'link' | 'image' | 'fullscreen'>;
|
|
7
7
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Built-in editor for Modular content fields.
|
|
3
3
|
*/
|
|
4
4
|
export type RichTextEditorConfiguration = {
|
|
5
|
-
/** Whether you want block records collapsed by default or not */
|
|
5
|
+
/** Whether you want block records collapsed by default or not (default: false) */
|
|
6
6
|
start_collapsed?: boolean;
|
|
7
7
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Built-in editor for SEO fields.
|
|
3
3
|
*/
|
|
4
4
|
export type SeoEditorConfiguration = {
|
|
5
|
-
/** Specify which fields of the SEO input should be visible to editors */
|
|
6
|
-
fields
|
|
7
|
-
/** Specify which previews should be visible to editors */
|
|
8
|
-
previews
|
|
5
|
+
/** Specify which fields of the SEO input should be visible to editors (default: all allowed values) */
|
|
6
|
+
fields?: Array<'title' | 'description' | 'image' | 'no_index' | 'twitter_card'>;
|
|
7
|
+
/** Specify which previews should be visible to editors (default: all allowed values) */
|
|
8
|
+
previews?: Array<'google' | 'twitter' | 'slack' | 'whatsapp' | 'telegram' | 'facebook' | 'linkedin'>;
|
|
9
9
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Simple textual input for Single-line string fields.
|
|
3
3
|
*/
|
|
4
4
|
export type SingleLineEditorConfiguration = {
|
|
5
|
-
/** Indicates if the field should be shown bigger, as a field representing a heading */
|
|
6
|
-
heading
|
|
5
|
+
/** Indicates if the field should be shown bigger, as a field representing a heading (default: false) */
|
|
6
|
+
heading?: boolean;
|
|
7
7
|
/** A placeholder that will be shown in the editor's input to provide editors with an example */
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
};
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* Built-in editor for Structured text fields.
|
|
3
3
|
*/
|
|
4
4
|
export type StructuredTextEditorConfiguration = {
|
|
5
|
-
/** Specify which nodes the field should allow */
|
|
6
|
-
nodes
|
|
7
|
-
/** Specify which marks the field should allow */
|
|
8
|
-
marks
|
|
9
|
-
/** If nodes includes "heading", specify which heading levels the field should allow (numbers between 1 and 6) */
|
|
10
|
-
heading_levels
|
|
11
|
-
/** Whether you want block nodes collapsed by default or not */
|
|
5
|
+
/** Specify which nodes the field should allow (default: all allowed values) */
|
|
6
|
+
nodes?: Array<'blockquote' | 'code' | 'heading' | 'link' | 'list' | 'thematicBreak'>;
|
|
7
|
+
/** Specify which marks the field should allow (default: all allowed values) */
|
|
8
|
+
marks?: Array<'strong' | 'emphasis' | 'underline' | 'strikethrough' | 'code' | 'highlight'>;
|
|
9
|
+
/** If nodes includes "heading", specify which heading levels the field should allow (numbers between 1 and 6) (default: all allowed values) */
|
|
10
|
+
heading_levels?: Array<1 | 2 | 3 | 4 | 5 | 6>;
|
|
11
|
+
/** Whether you want block nodes collapsed by default or not (default: false) */
|
|
12
12
|
blocks_start_collapsed?: boolean;
|
|
13
|
-
/** Whether you want to show the "Open this link in a new tab?" checkbox, that fills in the target: "_blank" meta attribute for links */
|
|
13
|
+
/** Whether you want to show the "Open this link in a new tab?" checkbox, that fills in the target: "_blank" meta attribute for links (default: true) */
|
|
14
14
|
show_links_target_blank?: boolean;
|
|
15
|
-
/** Whether you want to show the complete meta editor for links */
|
|
15
|
+
/** Whether you want to show the complete meta editor for links (default: false) */
|
|
16
16
|
show_links_meta_editor?: boolean;
|
|
17
17
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* HTML editor for Multiple-paragraph text fields.
|
|
3
3
|
*/
|
|
4
4
|
export type WysiwygEditorConfiguration = {
|
|
5
|
-
/** Specify which buttons the toolbar should have */
|
|
6
|
-
toolbar
|
|
5
|
+
/** Specify which buttons the toolbar should have (default: ['format', 'bold', 'italic', 'strikethrough', 'ordered_list', 'unordered_list', 'quote', 'table', 'link', 'image', 'show_source', 'fullscreen']) */
|
|
6
|
+
toolbar?: Array<'format' | 'bold' | 'italic' | 'strikethrough' | 'code' | 'ordered_list' | 'unordered_list' | 'quote' | 'table' | 'link' | 'image' | 'show_source' | 'undo' | 'redo' | 'align_left' | 'align_center' | 'align_right' | 'align_justify' | 'outdent' | 'indent' | 'fullscreen'>;
|
|
7
7
|
};
|
|
@@ -64,7 +64,7 @@ export class Client {
|
|
|
64
64
|
return this.config.baseUrl || Client.defaultBaseUrl;
|
|
65
65
|
}
|
|
66
66
|
request(options) {
|
|
67
|
-
return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.4.
|
|
67
|
+
return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.4.15', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
68
68
|
? { 'X-Environment': this.config.environment }
|
|
69
69
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
|
|
70
70
|
return this.jobResultsFetcher
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Built-in editor for Color fields.
|
|
3
3
|
*/
|
|
4
4
|
export type ColorPickerEditorConfiguration = {
|
|
5
|
-
/** Should the color picker allow to specify the alpha value? */
|
|
6
|
-
enable_alpha
|
|
7
|
-
/** List of preset colors to offer to the user (hex color strings) */
|
|
8
|
-
preset_colors
|
|
5
|
+
/** Should the color picker allow to specify the alpha value? (default: false) */
|
|
6
|
+
enable_alpha?: boolean;
|
|
7
|
+
/** List of preset colors to offer to the user (hex color strings) (default: []) */
|
|
8
|
+
preset_colors?: Array<string>;
|
|
9
9
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Built-in editor for Single block fields.
|
|
3
3
|
*/
|
|
4
4
|
export type FramedSingleBlockEditorConfiguration = {
|
|
5
|
-
/** Whether you want block record collapsed by default or not */
|
|
5
|
+
/** Whether you want block record collapsed by default or not (default: false) */
|
|
6
6
|
start_collapsed?: boolean;
|
|
7
7
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Markdown editor for Multiple-paragraph text fields.
|
|
3
3
|
*/
|
|
4
4
|
export type MarkdownEditorConfiguration = {
|
|
5
|
-
/** Specify which buttons the toolbar should have */
|
|
6
|
-
toolbar
|
|
5
|
+
/** Specify which buttons the toolbar should have (default: all allowed values) */
|
|
6
|
+
toolbar?: Array<'heading' | 'bold' | 'italic' | 'strikethrough' | 'code' | 'unordered_list' | 'ordered_list' | 'quote' | 'link' | 'image' | 'fullscreen'>;
|
|
7
7
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Built-in editor for Modular content fields.
|
|
3
3
|
*/
|
|
4
4
|
export type RichTextEditorConfiguration = {
|
|
5
|
-
/** Whether you want block records collapsed by default or not */
|
|
5
|
+
/** Whether you want block records collapsed by default or not (default: false) */
|
|
6
6
|
start_collapsed?: boolean;
|
|
7
7
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Built-in editor for SEO fields.
|
|
3
3
|
*/
|
|
4
4
|
export type SeoEditorConfiguration = {
|
|
5
|
-
/** Specify which fields of the SEO input should be visible to editors */
|
|
6
|
-
fields
|
|
7
|
-
/** Specify which previews should be visible to editors */
|
|
8
|
-
previews
|
|
5
|
+
/** Specify which fields of the SEO input should be visible to editors (default: all allowed values) */
|
|
6
|
+
fields?: Array<'title' | 'description' | 'image' | 'no_index' | 'twitter_card'>;
|
|
7
|
+
/** Specify which previews should be visible to editors (default: all allowed values) */
|
|
8
|
+
previews?: Array<'google' | 'twitter' | 'slack' | 'whatsapp' | 'telegram' | 'facebook' | 'linkedin'>;
|
|
9
9
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Simple textual input for Single-line string fields.
|
|
3
3
|
*/
|
|
4
4
|
export type SingleLineEditorConfiguration = {
|
|
5
|
-
/** Indicates if the field should be shown bigger, as a field representing a heading */
|
|
6
|
-
heading
|
|
5
|
+
/** Indicates if the field should be shown bigger, as a field representing a heading (default: false) */
|
|
6
|
+
heading?: boolean;
|
|
7
7
|
/** A placeholder that will be shown in the editor's input to provide editors with an example */
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
};
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* Built-in editor for Structured text fields.
|
|
3
3
|
*/
|
|
4
4
|
export type StructuredTextEditorConfiguration = {
|
|
5
|
-
/** Specify which nodes the field should allow */
|
|
6
|
-
nodes
|
|
7
|
-
/** Specify which marks the field should allow */
|
|
8
|
-
marks
|
|
9
|
-
/** If nodes includes "heading", specify which heading levels the field should allow (numbers between 1 and 6) */
|
|
10
|
-
heading_levels
|
|
11
|
-
/** Whether you want block nodes collapsed by default or not */
|
|
5
|
+
/** Specify which nodes the field should allow (default: all allowed values) */
|
|
6
|
+
nodes?: Array<'blockquote' | 'code' | 'heading' | 'link' | 'list' | 'thematicBreak'>;
|
|
7
|
+
/** Specify which marks the field should allow (default: all allowed values) */
|
|
8
|
+
marks?: Array<'strong' | 'emphasis' | 'underline' | 'strikethrough' | 'code' | 'highlight'>;
|
|
9
|
+
/** If nodes includes "heading", specify which heading levels the field should allow (numbers between 1 and 6) (default: all allowed values) */
|
|
10
|
+
heading_levels?: Array<1 | 2 | 3 | 4 | 5 | 6>;
|
|
11
|
+
/** Whether you want block nodes collapsed by default or not (default: false) */
|
|
12
12
|
blocks_start_collapsed?: boolean;
|
|
13
|
-
/** Whether you want to show the "Open this link in a new tab?" checkbox, that fills in the target: "_blank" meta attribute for links */
|
|
13
|
+
/** Whether you want to show the "Open this link in a new tab?" checkbox, that fills in the target: "_blank" meta attribute for links (default: true) */
|
|
14
14
|
show_links_target_blank?: boolean;
|
|
15
|
-
/** Whether you want to show the complete meta editor for links */
|
|
15
|
+
/** Whether you want to show the complete meta editor for links (default: false) */
|
|
16
16
|
show_links_meta_editor?: boolean;
|
|
17
17
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* HTML editor for Multiple-paragraph text fields.
|
|
3
3
|
*/
|
|
4
4
|
export type WysiwygEditorConfiguration = {
|
|
5
|
-
/** Specify which buttons the toolbar should have */
|
|
6
|
-
toolbar
|
|
5
|
+
/** Specify which buttons the toolbar should have (default: ['format', 'bold', 'italic', 'strikethrough', 'ordered_list', 'unordered_list', 'quote', 'table', 'link', 'image', 'show_source', 'fullscreen']) */
|
|
6
|
+
toolbar?: Array<'format' | 'bold' | 'italic' | 'strikethrough' | 'code' | 'ordered_list' | 'unordered_list' | 'quote' | 'table' | 'link' | 'image' | 'show_source' | 'undo' | 'redo' | 'align_left' | 'align_center' | 'align_right' | 'align_justify' | 'outdent' | 'indent' | 'fullscreen'>;
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.15",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@datocms/dashboard-client": "^5.4.9",
|
|
46
46
|
"@types/uuid": "^9.0.7"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "c368fd252a0ba33c3b22759b5619781c7a8aba7b"
|
|
49
49
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Built-in editor for Color fields.
|
|
3
3
|
*/
|
|
4
4
|
export type ColorPickerEditorConfiguration = {
|
|
5
|
-
/** Should the color picker allow to specify the alpha value? */
|
|
6
|
-
enable_alpha
|
|
7
|
-
/** List of preset colors to offer to the user (hex color strings) */
|
|
8
|
-
preset_colors
|
|
5
|
+
/** Should the color picker allow to specify the alpha value? (default: false) */
|
|
6
|
+
enable_alpha?: boolean;
|
|
7
|
+
/** List of preset colors to offer to the user (hex color strings) (default: []) */
|
|
8
|
+
preset_colors?: Array<string>;
|
|
9
9
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Built-in editor for Single block fields.
|
|
3
3
|
*/
|
|
4
4
|
export type FramedSingleBlockEditorConfiguration = {
|
|
5
|
-
/** Whether you want block record collapsed by default or not */
|
|
5
|
+
/** Whether you want block record collapsed by default or not (default: false) */
|
|
6
6
|
start_collapsed?: boolean;
|
|
7
7
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Markdown editor for Multiple-paragraph text fields.
|
|
3
3
|
*/
|
|
4
4
|
export type MarkdownEditorConfiguration = {
|
|
5
|
-
/** Specify which buttons the toolbar should have */
|
|
6
|
-
toolbar
|
|
5
|
+
/** Specify which buttons the toolbar should have (default: all allowed values) */
|
|
6
|
+
toolbar?: Array<
|
|
7
7
|
| 'heading'
|
|
8
8
|
| 'bold'
|
|
9
9
|
| 'italic'
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Built-in editor for Modular content fields.
|
|
3
3
|
*/
|
|
4
4
|
export type RichTextEditorConfiguration = {
|
|
5
|
-
/** Whether you want block records collapsed by default or not */
|
|
5
|
+
/** Whether you want block records collapsed by default or not (default: false) */
|
|
6
6
|
start_collapsed?: boolean;
|
|
7
7
|
};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Built-in editor for SEO fields.
|
|
3
3
|
*/
|
|
4
4
|
export type SeoEditorConfiguration = {
|
|
5
|
-
/** Specify which fields of the SEO input should be visible to editors */
|
|
6
|
-
fields
|
|
5
|
+
/** Specify which fields of the SEO input should be visible to editors (default: all allowed values) */
|
|
6
|
+
fields?: Array<
|
|
7
7
|
'title' | 'description' | 'image' | 'no_index' | 'twitter_card'
|
|
8
8
|
>;
|
|
9
|
-
/** Specify which previews should be visible to editors */
|
|
10
|
-
previews
|
|
9
|
+
/** Specify which previews should be visible to editors (default: all allowed values) */
|
|
10
|
+
previews?: Array<
|
|
11
11
|
| 'google'
|
|
12
12
|
| 'twitter'
|
|
13
13
|
| 'slack'
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Simple textual input for Single-line string fields.
|
|
3
3
|
*/
|
|
4
4
|
export type SingleLineEditorConfiguration = {
|
|
5
|
-
/** Indicates if the field should be shown bigger, as a field representing a heading */
|
|
6
|
-
heading
|
|
5
|
+
/** Indicates if the field should be shown bigger, as a field representing a heading (default: false) */
|
|
6
|
+
heading?: boolean;
|
|
7
7
|
/** A placeholder that will be shown in the editor's input to provide editors with an example */
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
};
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
* Built-in editor for Structured text fields.
|
|
3
3
|
*/
|
|
4
4
|
export type StructuredTextEditorConfiguration = {
|
|
5
|
-
/** Specify which nodes the field should allow */
|
|
6
|
-
nodes
|
|
5
|
+
/** Specify which nodes the field should allow (default: all allowed values) */
|
|
6
|
+
nodes?: Array<
|
|
7
7
|
'blockquote' | 'code' | 'heading' | 'link' | 'list' | 'thematicBreak'
|
|
8
8
|
>;
|
|
9
|
-
/** Specify which marks the field should allow */
|
|
10
|
-
marks
|
|
9
|
+
/** Specify which marks the field should allow (default: all allowed values) */
|
|
10
|
+
marks?: Array<
|
|
11
11
|
'strong' | 'emphasis' | 'underline' | 'strikethrough' | 'code' | 'highlight'
|
|
12
12
|
>;
|
|
13
|
-
/** If nodes includes "heading", specify which heading levels the field should allow (numbers between 1 and 6) */
|
|
14
|
-
heading_levels
|
|
15
|
-
/** Whether you want block nodes collapsed by default or not */
|
|
13
|
+
/** If nodes includes "heading", specify which heading levels the field should allow (numbers between 1 and 6) (default: all allowed values) */
|
|
14
|
+
heading_levels?: Array<1 | 2 | 3 | 4 | 5 | 6>;
|
|
15
|
+
/** Whether you want block nodes collapsed by default or not (default: false) */
|
|
16
16
|
blocks_start_collapsed?: boolean;
|
|
17
|
-
/** Whether you want to show the "Open this link in a new tab?" checkbox, that fills in the target: "_blank" meta attribute for links */
|
|
17
|
+
/** Whether you want to show the "Open this link in a new tab?" checkbox, that fills in the target: "_blank" meta attribute for links (default: true) */
|
|
18
18
|
show_links_target_blank?: boolean;
|
|
19
|
-
/** Whether you want to show the complete meta editor for links */
|
|
19
|
+
/** Whether you want to show the complete meta editor for links (default: false) */
|
|
20
20
|
show_links_meta_editor?: boolean;
|
|
21
21
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* HTML editor for Multiple-paragraph text fields.
|
|
3
3
|
*/
|
|
4
4
|
export type WysiwygEditorConfiguration = {
|
|
5
|
-
/** Specify which buttons the toolbar should have */
|
|
6
|
-
toolbar
|
|
5
|
+
/** Specify which buttons the toolbar should have (default: ['format', 'bold', 'italic', 'strikethrough', 'ordered_list', 'unordered_list', 'quote', 'table', 'link', 'image', 'show_source', 'fullscreen']) */
|
|
6
|
+
toolbar?: Array<
|
|
7
7
|
| 'format'
|
|
8
8
|
| 'bold'
|
|
9
9
|
| 'italic'
|
package/src/generated/Client.ts
CHANGED
|
@@ -151,7 +151,7 @@ export class Client {
|
|
|
151
151
|
...this.config,
|
|
152
152
|
...options,
|
|
153
153
|
logFn: this.config.logFn || console.log,
|
|
154
|
-
userAgent: '@datocms/cma-client v5.4.
|
|
154
|
+
userAgent: '@datocms/cma-client v5.4.15',
|
|
155
155
|
baseUrl: this.baseUrl,
|
|
156
156
|
preCallStack: new Error().stack,
|
|
157
157
|
extraHeaders: {
|