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
117
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.10.1 to 15.11.0

20

dist/schemaConstraints.js
"use strict";
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
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;
exports.V1_NODE_TYPES = exports.TEXT_CONTAINERS = exports.HEADINGS = exports.CONTAINERS = exports.VOID_BLOCKS = exports.TABLE_BLOCKS = exports.LIST_ITEM_BLOCKS = exports.TOP_LEVEL_BLOCKS = void 0;
var blocks_1 = require("./blocks");

@@ -71,6 +80,5 @@ var inlines_1 = require("./inlines");

/**
* Array of all block types that may contain text and inline nodes.
* Array of all heading levels
*/
exports.TEXT_CONTAINERS = [
blocks_1.BLOCKS.PARAGRAPH,
exports.HEADINGS = [
blocks_1.BLOCKS.HEADING_1,

@@ -84,2 +92,6 @@ blocks_1.BLOCKS.HEADING_2,

/**
* Array of all block types that may contain text and inline nodes.
*/
exports.TEXT_CONTAINERS = __spreadArray([blocks_1.BLOCKS.PARAGRAPH], exports.HEADINGS, true);
/**
* Node types before `tables` release.

@@ -86,0 +98,0 @@ */

4

dist/types/schemaConstraints.d.ts

@@ -34,2 +34,6 @@ import { BLOCKS } from './blocks';

/**
* Array of all heading levels
*/
export declare const HEADINGS: BLOCKS[];
/**
* Array of all block types that may contain text and inline nodes.

@@ -36,0 +40,0 @@ */

{
"name": "@contentful/rich-text-types",
"version": "15.10.1",
"version": "15.11.0",
"main": "dist/index.js",

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

},
"gitHead": "f4fe4b43c9b233a56fd802b7995beacb6bcb3ddc"
"gitHead": "38846b2330f1a9a8d1379ef339ee7cf783a3dd68"
}

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