@contentful/rich-text-types
Advanced tools
Comparing version 15.3.0 to 15.3.1
192
CHANGELOG.md
@@ -6,2 +6,10 @@ # Change Log | ||
## [15.3.1](https://github.com/contentful/rich-text/compare/v15.3.0...v15.3.1) (2021-09-07) | ||
**Note:** Version bump only for package @contentful/rich-text-types | ||
# [15.3.0](https://github.com/contentful/rich-text/compare/v15.2.0...v15.3.0) (2021-09-06) | ||
@@ -20,1 +28,185 @@ | ||
* add TableHeaderCell type ([5e25ac9](https://github.com/contentful/rich-text/commit/5e25ac9f35be2ad6c7ad7857cbde808cbc3437f9)) | ||
# [15.2.0](https://github.com/contentful/rich-text/compare/v15.2.0...v15.1.0) (2021-09-06) | ||
### Bug Fixes | ||
* allow the first item in Table to be a TableHeaderRow ([9a6de55](https://github.com/contentful/rich-text/commit/9a6de55ed97ca413d3922958850b8215922c06b5)) | ||
* don't export the helper TableHeaderRow type ([179c3cb](https://github.com/contentful/rich-text/commit/179c3cb10c0f65725297445afe955f0cca135005)) | ||
* typo ([2282665](https://github.com/contentful/rich-text/commit/2282665924404771b3353dd9b380d8863f1d4c41)) | ||
### Features | ||
* add TableHeaderCell type ([5e25ac9](https://github.com/contentful/rich-text/commit/5e25ac9f35be2ad6c7ad7857cbde808cbc3437f9)) | ||
# [15.1.0](https://github.com/contentful/rich-text/compare/v15.0.0...v15.1.0) (2021-08-02) | ||
### Features | ||
* add rowspan ([e0264fb](https://github.com/contentful/rich-text/commit/e0264fbe4d9467eedf78b7c5c3a9825a584124cf)) | ||
# [15.0.0](https://github.com/contentful/rich-text/compare/v14.2.0...v15.0.0) (2021-06-15) | ||
### Features | ||
* add table markup support ([c6ae127](https://github.com/contentful/rich-text/commit/c6ae127aa460f4cd26cd6b671cd43fd2714bc650)) | ||
## [14.1.2](https://github.com/contentful/rich-text/compare/v14.0.1...v14.1.2) (2020-11-02) | ||
### Bug Fixes | ||
* 🐛 configure rollup copy correctly ([3446a33](https://github.com/contentful/rich-text/commit/3446a33fc5711087095a58b088828dfe6066bc7f)) | ||
## [14.0.1](https://github.com/contentful/rich-text/compare/v14.0.0...v14.0.1) (2020-01-30) | ||
### Features | ||
* 🎸 emptyDoc representing an empty RT document ([80315ef](https://github.com/contentful/rich-text/commit/80315ef5130b79336336ba31de8a55e42bafe319)) | ||
# [14.0.0](https://github.com/contentful/rich-text/compare/v13.4.0...v14.0.0) (2020-01-28) | ||
# [13.4.0](https://github.com/contentful/rich-text/compare/v13.3.0...v13.4.0) (2019-08-01) | ||
# [13.1.0](https://github.com/contentful/rich-text/compare/v13.0.1...v13.1.0) (2019-03-04) | ||
# [13.0.0](https://github.com/contentful/rich-text/compare/v12.2.1...v13.0.0) (2019-01-22) | ||
## [12.1.2](https://github.com/contentful/rich-text/compare/v12.1.1...v12.1.2) (2018-12-14) | ||
## [12.0.1](https://github.com/contentful/rich-text/compare/v12.0.0...v12.0.1) (2018-12-04) | ||
### Bug Fixes | ||
* 🐛 add Object.values and Array.prototype.includes polyfills ([9e2ffb4](https://github.com/contentful/rich-text/commit/9e2ffb46e3564a523c74504270b29ccc8b8249ad)) | ||
# [12.0.0](https://github.com/contentful/rich-text/compare/v11.0.0...v12.0.0) (2018-11-29) | ||
# [11.0.0](https://github.com/contentful/rich-text/compare/v10.3.0...v11.0.0) (2018-11-27) | ||
### Bug Fixes | ||
* 🐛 Removes obsolete field `title` from Hyperlinks ([8cb9027](https://github.com/contentful/rich-text/commit/8cb90279f5348a7fb59f211c2ba209a28fd432be)) | ||
# [10.3.0](https://github.com/contentful/rich-text/compare/v10.2.0...v10.3.0) (2018-11-26) | ||
# [10.2.0](https://github.com/contentful/rich-text/compare/v10.1.0...v10.2.0) (2018-11-19) | ||
### Features | ||
* 🎸 Add rich-text-references ([363b4e5](https://github.com/contentful/rich-text/commit/363b4e509e94af0932fd7cece8e56beafe8d67d2)) | ||
# [10.1.0](https://github.com/contentful/rich-text/compare/v10.0.5...v10.1.0) (2018-11-16) | ||
### Features | ||
* 🎸 adds json schema generation to rich text types ([8916140](https://github.com/contentful/rich-text/commit/89161404eb911f126be23ba2a146ebf748f7489e)) | ||
* 🎸 introduces top-level-block type ([a6bf35e](https://github.com/contentful/rich-text/commit/a6bf35e7c9ca35915a512de774b3a3fdc4c76e5d)) | ||
## [10.0.1](https://github.com/contentful/rich-text/compare/v10.0.0...v10.0.1) (2018-11-08) | ||
# [10.0.0](https://github.com/contentful/rich-text/compare/v9.0.2...v10.0.0) (2018-11-02) | ||
### Features | ||
* 🎸 removes nodeClass from Node interface ([09b8162](https://github.com/contentful/rich-text/commit/09b8162bcba65bc13afa14b2b5ff046c9fed7b3b)) | ||
### BREAKING CHANGES | ||
* Removes accidentally added nodeClass | ||
## [9.0.2](https://github.com/contentful/rich-text/compare/v9.0.1...v9.0.2) (2018-10-31) | ||
# [9.0.0](https://github.com/contentful/rich-text/compare/v8.0.3...v9.0.0) (2018-10-30) | ||
### Features | ||
* 🎸 Explicitly declare nodeClass and nodeType in core types ([0749c61](https://github.com/contentful/rich-text/commit/0749c6199bb2681509608539c76bd8149cade564)) | ||
### BREAKING CHANGES | ||
* Potentially breaks TypeScript libraries pulling this in as a dependency | ||
if they are not explicitly stating nodeClass and nodeType. | ||
## [8.0.3](https://github.com/contentful/rich-text/compare/v8.0.2...v8.0.3) (2018-10-30) | ||
## [8.0.2](https://github.com/contentful/rich-text/compare/v8.0.1...v8.0.2) (2018-10-29) | ||
## [8.0.1](https://github.com/contentful/rich-text/compare/v8.0.0...v8.0.1) (2018-10-26) | ||
### Bug Fixes | ||
* 🐛 Revert mock hypenation commits ([bde9432](https://github.com/contentful/rich-text/commit/bde94323fcc02bf5ab3feeef46a9d8fc8b08d59b)) | ||
### Features | ||
* 🎸 take all packages out of "demo mode" ([815f18b](https://github.com/contentful/rich-text/commit/815f18be6a914e7e4782790ee46053689712494b)) | ||
### BREAKING CHANGES | ||
* renames all packages | ||
# 6.0.0 (2018-10-24) |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isText = exports.isBlock = exports.isInline = void 0; | ||
var blocks_1 = __importDefault(require("./blocks")); | ||
@@ -8,0 +9,0 @@ var inlines_1 = __importDefault(require("./inlines")); |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.helpers = exports.EMPTY_DOCUMENT = exports.MARKS = exports.INLINES = exports.BLOCKS = void 0; | ||
require("core-js/features/object/values"); | ||
require("core-js/features/array/includes"); | ||
var blocks_1 = require("./blocks"); | ||
exports.BLOCKS = blocks_1.default; | ||
Object.defineProperty(exports, "BLOCKS", { enumerable: true, get: function () { return __importDefault(blocks_1).default; } }); | ||
var inlines_1 = require("./inlines"); | ||
exports.INLINES = inlines_1.default; | ||
Object.defineProperty(exports, "INLINES", { enumerable: true, get: function () { return __importDefault(inlines_1).default; } }); | ||
var marks_1 = require("./marks"); | ||
exports.MARKS = marks_1.default; | ||
__export(require("./schemaConstraints")); | ||
Object.defineProperty(exports, "MARKS", { enumerable: true, get: function () { return __importDefault(marks_1).default; } }); | ||
__exportStar(require("./schemaConstraints"), exports); | ||
__exportStar(require("./types"), exports); | ||
__exportStar(require("./nodeTypes"), exports); | ||
var emptyDocument_1 = require("./emptyDocument"); | ||
exports.EMPTY_DOCUMENT = emptyDocument_1.default; | ||
Object.defineProperty(exports, "EMPTY_DOCUMENT", { enumerable: true, get: function () { return __importDefault(emptyDocument_1).default; } }); | ||
var helpers = __importStar(require("./helpers")); | ||
exports.helpers = helpers; | ||
//# sourceMappingURL=index.js.map |
"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 __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
var _a; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var _a; | ||
exports.CONTAINERS = exports.VOID_BLOCKS = exports.TOP_LEVEL_BLOCKS = void 0; | ||
var blocks_1 = __importDefault(require("./blocks")); | ||
@@ -38,3 +48,3 @@ /** | ||
_a[blocks_1.default.UL_LIST] = [blocks_1.default.LIST_ITEM], | ||
_a[blocks_1.default.LIST_ITEM] = exports.TOP_LEVEL_BLOCKS.slice(), | ||
_a[blocks_1.default.LIST_ITEM] = __spreadArray([], exports.TOP_LEVEL_BLOCKS, true), | ||
_a[blocks_1.default.QUOTE] = [blocks_1.default.PARAGRAPH], | ||
@@ -41,0 +51,0 @@ _a[blocks_1.default.TABLE] = [blocks_1.default.TABLE_ROW], |
@@ -10,3 +10,3 @@ "use strict"; | ||
var matchesSnapshot = function (nodeType) { | ||
var jsonSchema = index_1.getSchemaWithNodeType(nodeType); | ||
var jsonSchema = (0, index_1.getSchemaWithNodeType)(nodeType); | ||
expect(jsonSchema).toMatchSnapshot(nodeType); | ||
@@ -25,5 +25,5 @@ }; | ||
it('throws error if no schema found', function () { | ||
expect(function () { return index_1.getSchemaWithNodeType('unknown-node-type'); }).toThrowErrorMatchingSnapshot(); | ||
expect(function () { return (0, index_1.getSchemaWithNodeType)('unknown-node-type'); }).toThrowErrorMatchingSnapshot(); | ||
}); | ||
}); | ||
//# sourceMappingURL=schemas.test.js.map |
@@ -93,3 +93,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -117,3 +117,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -120,0 +120,0 @@ "type": "object" |
@@ -85,3 +85,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -125,3 +125,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -149,3 +149,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -152,0 +152,0 @@ "type": "object" |
@@ -20,3 +20,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -54,3 +54,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -107,3 +107,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -163,3 +163,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -203,3 +203,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -227,3 +227,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -230,0 +230,0 @@ "type": "object" |
@@ -102,3 +102,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -142,3 +142,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -166,3 +166,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -169,0 +169,0 @@ "type": "object" |
@@ -102,3 +102,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -142,3 +142,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -166,3 +166,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -169,0 +169,0 @@ "type": "object" |
@@ -94,3 +94,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -118,3 +118,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -121,0 +121,0 @@ "type": "object" |
@@ -93,3 +93,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -117,3 +117,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -120,0 +120,0 @@ "type": "object" |
@@ -58,3 +58,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -98,3 +98,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -122,3 +122,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -125,0 +125,0 @@ "type": "object" |
@@ -58,3 +58,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -98,3 +98,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -122,3 +122,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -125,0 +125,0 @@ "type": "object" |
@@ -58,3 +58,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -98,3 +98,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -122,3 +122,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -125,0 +125,0 @@ "type": "object" |
@@ -58,3 +58,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -98,3 +98,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -122,3 +122,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -125,0 +125,0 @@ "type": "object" |
@@ -58,3 +58,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -98,3 +98,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -122,3 +122,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -125,0 +125,0 @@ "type": "object" |
@@ -58,3 +58,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -98,3 +98,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -122,3 +122,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -125,0 +125,0 @@ "type": "object" |
@@ -59,3 +59,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -99,3 +99,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -123,3 +123,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -126,0 +126,0 @@ "type": "object" |
@@ -58,3 +58,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -82,3 +82,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -85,0 +85,0 @@ "type": "object" |
@@ -54,3 +54,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -107,3 +107,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -163,3 +163,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -203,3 +203,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -227,3 +227,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -230,0 +230,0 @@ "type": "object" |
@@ -81,3 +81,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -134,3 +134,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -190,3 +190,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -230,3 +230,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -254,3 +254,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -257,0 +257,0 @@ "type": "object" |
@@ -58,3 +58,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -98,3 +98,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -122,3 +122,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -125,0 +125,0 @@ "type": "object" |
@@ -93,3 +93,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -133,3 +133,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -157,3 +157,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -160,0 +160,0 @@ "type": "object" |
@@ -93,3 +93,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -133,3 +133,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -157,3 +157,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -160,0 +160,0 @@ "type": "object" |
@@ -120,3 +120,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -160,3 +160,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -184,3 +184,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -187,0 +187,0 @@ "type": "object" |
@@ -163,3 +163,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -203,3 +203,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -227,3 +227,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -230,0 +230,0 @@ "type": "object" |
@@ -23,3 +23,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -47,3 +47,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -50,0 +50,0 @@ "type": "object" |
@@ -81,3 +81,3 @@ { | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -134,3 +134,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -190,3 +190,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -230,3 +230,3 @@ }, | ||
"data": { | ||
"$ref": "#/definitions/Record<string,any>" | ||
"$ref": "#/definitions/NodeData" | ||
} | ||
@@ -254,3 +254,3 @@ }, | ||
}, | ||
"Record<string,any>": { | ||
"NodeData": { | ||
"additionalProperties": true, | ||
@@ -257,0 +257,0 @@ "type": "object" |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSchemaWithNodeType = void 0; | ||
function getSchemaWithNodeType(nodeType) { | ||
@@ -4,0 +5,0 @@ try { |
@@ -189,3 +189,3 @@ 'use strict'; | ||
version: '3.17.2', | ||
mode: 'global', | ||
mode: 'global', | ||
copyright: '© 2021 Denis Pushkarev (zloirock.ru)' | ||
@@ -902,2 +902,23 @@ }); | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
function __spreadArray(to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
} | ||
var _a; | ||
@@ -934,3 +955,3 @@ /** | ||
_a[BLOCKS$1.UL_LIST] = [BLOCKS$1.LIST_ITEM], | ||
_a[BLOCKS$1.LIST_ITEM] = TOP_LEVEL_BLOCKS.slice(), | ||
_a[BLOCKS$1.LIST_ITEM] = __spreadArray([], TOP_LEVEL_BLOCKS), | ||
_a[BLOCKS$1.QUOTE] = [BLOCKS$1.PARAGRAPH], | ||
@@ -986,2 +1007,3 @@ _a[BLOCKS$1.TABLE] = [BLOCKS$1.TABLE_ROW], | ||
var helpers = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
isInline: isInline, | ||
@@ -988,0 +1010,0 @@ isBlock: isBlock, |
@@ -16,10 +16,10 @@ import BLOCKS from './blocks'; | ||
export declare const CONTAINERS: { | ||
[BLOCKS.OL_LIST]: BLOCKS[]; | ||
[BLOCKS.UL_LIST]: BLOCKS[]; | ||
[BLOCKS.LIST_ITEM]: TopLevelBlockEnum[]; | ||
[BLOCKS.QUOTE]: BLOCKS[]; | ||
[BLOCKS.TABLE]: BLOCKS[]; | ||
[BLOCKS.TABLE_ROW]: BLOCKS[]; | ||
[BLOCKS.TABLE_CELL]: BLOCKS[]; | ||
[BLOCKS.TABLE_HEADER_CELL]: BLOCKS[]; | ||
"ordered-list": BLOCKS[]; | ||
"unordered-list": BLOCKS[]; | ||
"list-item": TopLevelBlockEnum[]; | ||
blockquote: BLOCKS[]; | ||
table: BLOCKS[]; | ||
"table-row": BLOCKS[]; | ||
"table-cell": BLOCKS[]; | ||
"table-header-cell": BLOCKS[]; | ||
}; |
{ | ||
"name": "@contentful/rich-text-types", | ||
"version": "15.3.0", | ||
"version": "15.3.1", | ||
"main": "dist/rich-text-types.es5.js", | ||
@@ -28,22 +28,23 @@ "typings": "dist/types/index.d.ts", | ||
"devDependencies": { | ||
"@types/jest": "^24.0.12", | ||
"@types/node": "^11.13.9", | ||
"core-js": "^3.0.1", | ||
"@types/jest": "^27.0.1", | ||
"@types/node": "^14.17.14", | ||
"core-js": "^3.17.2", | ||
"faker": "^4.1.0", | ||
"jest": "^24.7.1", | ||
"jest": "^27.1.0", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.11.0", | ||
"rollup": "^1.32.1", | ||
"rollup-plugin-commonjs": "^9.3.4", | ||
"rollup-plugin-copy": "^2.0.0", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-resolve": "^4.2.3", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-typescript2": "^0.21.0", | ||
"ts-jest": "^24.0.2", | ||
"ts-node": "^8.1.0", | ||
"tslint": "^5.16.0", | ||
"typescript": "^3.4.5", | ||
"typescript-json-schema": "^0.37.0" | ||
"rollup-plugin-node-resolve": "^4.2.4", | ||
"rollup-plugin-sourcemaps": "^0.6.3", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"ts-jest": "^27.0.5", | ||
"ts-node": "^10.2.1", | ||
"tslib": "^2.3.1", | ||
"tslint": "^6.1.3", | ||
"typescript": "^4.4.2", | ||
"typescript-json-schema": "^0.50.1" | ||
}, | ||
"gitHead": "8744fa8300f14a0ee224152fa8da3bbc6f085c69" | ||
"gitHead": "264c16cef58794e31d1f7c11dd98d627147b2e9d" | ||
} |
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
217096
5319
19