@contentful/rich-text-types
Advanced tools
Comparing version 16.5.4 to 16.6.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var blocks_1 = require("../../blocks"); | ||
var helpers_1 = require("../../helpers"); | ||
var inlines_1 = require("../../inlines"); | ||
var helpers_1 = require("../../helpers"); | ||
test('isBlock', function () { | ||
@@ -7,0 +7,0 @@ var block = { nodeType: blocks_1.BLOCKS.PARAGRAPH }; |
@@ -1,2 +0,2 @@ | ||
import { Node, Block, Inline, Text } from './types'; | ||
import { Block, Inline, Node, Text } from './types'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Checks if the node is an instance of Inline. |
import { BLOCKS } from './blocks'; | ||
import { INLINES } from './inlines'; | ||
import { Block, Inline, Text, ListItemBlock } from './types'; | ||
import { Block, Inline, ListItemBlock, Text } from './types'; | ||
type EmptyNodeData = {}; | ||
@@ -5,0 +5,0 @@ export interface Heading1 extends Block { |
@@ -22,3 +22,3 @@ export declare type PrimitiveType = number | boolean | string | null; | ||
enum?: PrimitiveType[] | Definition[]; | ||
default?: PrimitiveType | Object; | ||
default?: PrimitiveType | Record<string, any>; | ||
additionalProperties?: Definition | boolean; | ||
@@ -25,0 +25,0 @@ required?: string[]; |
import { BLOCKS } from './blocks'; | ||
import { INLINES } from './inlines'; | ||
import { TopLevelBlockEnum, ListItemBlockEnum } from './schemaConstraints'; | ||
import { ListItemBlockEnum, TopLevelBlockEnum } from './schemaConstraints'; | ||
/** | ||
@@ -5,0 +5,0 @@ * @additionalProperties true |
{ | ||
"name": "@contentful/rich-text-types", | ||
"version": "16.5.4", | ||
"version": "16.6.0", | ||
"main": "dist/index.js", | ||
@@ -25,3 +25,2 @@ "typings": "dist/types/index.d.ts", | ||
"start": "tsc && rollup -c --bundleConfigAsCjs rollup.config.js -w", | ||
"lint": "tslint -t codeFrame '@(src|bin)/*.ts'", | ||
"generate-json-schema": "ts-node -O '{\"module\": \"commonjs\"}' ./tools/jsonSchemaGen", | ||
@@ -37,6 +36,5 @@ "test": "jest" | ||
"ts-jest": "^29.1.2", | ||
"tslint": "^6.1.3", | ||
"typescript-json-schema": "0.63.0" | ||
}, | ||
"gitHead": "caf897d8199f4686de5db7f52eef06008fbd0f65" | ||
"gitHead": "20be31a63585be2d76e2e29c9fd6b66978e5113d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7
138214
69
4923