Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contentful/rich-text-types

Package Overview
Dependencies
Maintainers
111
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/rich-text-types - npm Package Compare versions

Comparing version 15.6.2 to 15.7.0

dist/lib/__test__/schemaConstraints.test.js

16

dist/lib/schemaConstraints.js

@@ -7,3 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.V1_NODE_TYPES = exports.CONTAINERS = exports.VOID_BLOCKS = exports.TABLE_BLOCKS = exports.LIST_ITEM_BLOCKS = exports.TOP_LEVEL_BLOCKS = void 0;
exports.V1_NODE_TYPES = exports.TEXT_CONTAINERS = exports.CONTAINERS = exports.VOID_BLOCKS = exports.TABLE_BLOCKS = exports.LIST_ITEM_BLOCKS = exports.TOP_LEVEL_BLOCKS = void 0;
var blocks_1 = __importDefault(require("./blocks"));

@@ -61,2 +61,4 @@ var inlines_1 = __importDefault(require("./inlines"));

* Dictionary of all container block types, and the set block types they accept as children.
*
* Note: This does not include `[BLOCKS.DOCUMENT]: TOP_LEVEL_BLOCKS`
*/

@@ -74,2 +76,14 @@ exports.CONTAINERS = (_a = {},

/**
* Array of all block types that may contain text and inline nodes.
*/
exports.TEXT_CONTAINERS = [
blocks_1.default.PARAGRAPH,
blocks_1.default.HEADING_1,
blocks_1.default.HEADING_2,
blocks_1.default.HEADING_3,
blocks_1.default.HEADING_4,
blocks_1.default.HEADING_5,
blocks_1.default.HEADING_6,
];
/**
* Node types before `tables` release.

@@ -76,0 +90,0 @@ */

@@ -1042,2 +1042,4 @@ 'use strict';

* Dictionary of all container block types, and the set block types they accept as children.
*
* Note: This does not include `[BLOCKS.DOCUMENT]: TOP_LEVEL_BLOCKS`
*/

@@ -1055,2 +1057,14 @@ var CONTAINERS = (_a = {},

/**
* Array of all block types that may contain text and inline nodes.
*/
var TEXT_CONTAINERS = [
BLOCKS$1.PARAGRAPH,
BLOCKS$1.HEADING_1,
BLOCKS$1.HEADING_2,
BLOCKS$1.HEADING_3,
BLOCKS$1.HEADING_4,
BLOCKS$1.HEADING_5,
BLOCKS$1.HEADING_6,
];
/**
* Node types before `tables` release.

@@ -1137,2 +1151,3 @@ */

exports.TABLE_BLOCKS = TABLE_BLOCKS;
exports.TEXT_CONTAINERS = TEXT_CONTAINERS;
exports.TOP_LEVEL_BLOCKS = TOP_LEVEL_BLOCKS;

@@ -1139,0 +1154,0 @@ exports.V1_NODE_TYPES = V1_NODE_TYPES;

@@ -20,2 +20,4 @@ import BLOCKS from './blocks';

* Dictionary of all container block types, and the set block types they accept as children.
*
* Note: This does not include `[BLOCKS.DOCUMENT]: TOP_LEVEL_BLOCKS`
*/

@@ -33,4 +35,8 @@ export declare const CONTAINERS: {

/**
* Array of all block types that may contain text and inline nodes.
*/
export declare const TEXT_CONTAINERS: BLOCKS[];
/**
* Node types before `tables` release.
*/
export declare const V1_NODE_TYPES: string[];

4

package.json
{
"name": "@contentful/rich-text-types",
"version": "15.6.2",
"version": "15.7.0",
"main": "dist/rich-text-types.es5.js",

@@ -48,3 +48,3 @@ "typings": "dist/types/index.d.ts",

},
"gitHead": "b391b031804815917be831c1cf45635664365401"
"gitHead": "f1e1e5792731ffd4800e9c7136425d4306d8ef87"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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