New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cloudcannon/configuration-types

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudcannon/configuration-types - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

package.json
{
"name": "@cloudcannon/configuration-types",
"version": "0.0.8",
"version": "0.0.9",
"description": "Contains TypeScript declarations and generates JSONSchema files for the CloudCannon configuration file.",

@@ -5,0 +5,0 @@ "author": "CloudCannon <support@cloudcannon.com>",

@@ -12,3 +12,100 @@ import Scrapbooker from '@cloudcannon/snippet-types';

export type SortOrder = 'ascending' | 'descending' | 'asc' | 'desc';
export type AttributeListPosition = 'none' | 'right' | 'space right' | 'below' | 'newline below';
export interface MarkdownAttributeElementOptions {
inline?: AttributeListPosition;
block?: AttributeListPosition;
ul?: AttributeListPosition;
ol?: AttributeListPosition;
li?: AttributeListPosition;
table?: AttributeListPosition;
tr?: AttributeListPosition;
td?: AttributeListPosition;
blockquote?: AttributeListPosition;
img?: AttributeListPosition;
}
export interface MarkdownSettings {
engine: 'commonmark' | 'kramdown';
options: {
/**
* Output HTML tags from source.
*/
html?: boolean;
/**
* Use '/' to close single tags (<br />).
*/
xhtml?: boolean;
/**
* Convert '\n' in paragraphs into <br>.
*/
breaks?: boolean;
/**
* Autoconvert URL-like text to links.
*/
linkify?: boolean;
/**
* Enable some language-neutral replacement + quotes beautification.
*/
typographer?: boolean;
/**
* 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).
*/
quotes?: string;
/**
* Output lists with an extra space in Markdown.
*/
spaced_lists?: boolean;
/**
* Add linebreaks between sentences in Markdown.
*/
sentence_per_line?: boolean;
/**
* Enable GFM mode.
*/
gfm?: boolean;
/**
* Determines which style of code block fences to use.
*/
code_block_fences?: '```' | '~~~';
/**
* Determines whether 4 spaces on indentation should be read as a code block.
*/
treat_indentation_as_code?: boolean;
/**
* Render snippets as plain text within code blocks.
*/
escape_snippets_in_code_blocks?: boolean;
/**
* Output tables in Markdown format.
*/
table?: boolean;
/**
* Output strikes in wrapped in double tildes (e.g. ~~strike~~)
*/
strikethrough?: boolean;
/**
* Output subscript in wrapped in tildes (e.g. ~sub~)
*/
subscript?: boolean;
/**
* Output superscript in wrapped in carets (e.g. ^super^)
*/
superscript?: boolean;
/**
* Generate IDs for headings
*/
heading_ids?: boolean;
/**
* Save element attributes in Markdown format instead of converting to HTML.
*/
attributes?: boolean;
/**
* Define positioning behaviour of Markdown attributes for different elements.
*/
attribute_elements?: MarkdownAttributeElementOptions;
}
}
// TODO: use SnippetConfig from @cloudcannon/scrap-booker when ParserConfig issue resolved.

@@ -125,11 +222,4 @@ export interface SnippetConfig extends ReducedCascade, Previewable, PickerPreviewable {

*/
mime_type?: 'image/jpeg' | 'image/png';
mime_type?: 'image/jpeg' | 'image/png' | 'image/webp';
/**
* Controls whether or not the JPEG headers defining how an image should be rotated before being
* displayed is baked into images prior to upload.
*
* @default true
*/
correct_orientation?: boolean;
/**
* Sets how uploaded image files are resized with a bounding box defined by width and height prior

@@ -1498,33 +1588,3 @@ * to upload. Has no effect when selecting existing images, or if width and height are unset.

*/
generator?: {
/**
* Settings for various Markdown engines.
*/
metadata?: {
/**
* The Markdown engine used on your site.
*/
markdown: 'kramdown' | 'commonmark' | 'commonmarkghpages' | 'goldmark' | 'markdown-it';
/**
* Markdown options specific used when markdown is set to "kramdown".
*/
kramdown?: Record<string, any>;
/**
* Markdown options specific used when markdown is set to "commonmark".
*/
commonmark?: Record<string, any>;
/**
* Markdown options specific used when markdown is set to "commonmarkghpages".
*/
commonmarkghpages?: Record<string, any>;
/**
* Markdown options specific used when markdown is set to "goldmark".
*/
goldmark?: Record<string, any>;
/**
* Markdown options specific used when markdown is set to "markdown-it".
*/
'markdown-it'?: Record<string, any>;
};
};
markdown?: MarkdownSettings;
/**

@@ -1531,0 +1591,0 @@ * Specifies the time zone that dates are displayed and edited in. Also changes the suffix the

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc