@fibery/prosemirror-schema 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +583 -785
  2. package/package.json +10 -6
package/lib/index.js CHANGED
@@ -1,210 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
- /******/ var __webpack_modules__ = ({
4
-
5
- /***/ 17:
6
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7
-
8
- var __webpack_unused_export__;
9
-
10
-
11
- __webpack_unused_export__ = ({ value: true });
12
-
13
- var prosemirrorModel = __webpack_require__(63);
14
-
15
- // :: Object
16
- // [Specs](#model.NodeSpec) for the nodes defined in this schema.
17
- var nodes = {
18
- // :: NodeSpec The top level document node.
19
- doc: {
20
- content: "block+"
21
- },
22
-
23
- // :: NodeSpec A plain paragraph textblock. Represented in the DOM
24
- // as a `<p>` element.
25
- paragraph: {
26
- content: "inline*",
27
- group: "block",
28
- parseDOM: [{tag: "p"}],
29
- toDOM: function toDOM() { return ["p", 0] }
30
- },
31
-
32
- // :: NodeSpec A blockquote (`<blockquote>`) wrapping one or more blocks.
33
- blockquote: {
34
- content: "block+",
35
- group: "block",
36
- defining: true,
37
- parseDOM: [{tag: "blockquote"}],
38
- toDOM: function toDOM() { return ["blockquote", 0] }
39
- },
40
-
41
- // :: NodeSpec A horizontal rule (`<hr>`).
42
- horizontal_rule: {
43
- group: "block",
44
- parseDOM: [{tag: "hr"}],
45
- toDOM: function toDOM() { return ["hr"] }
46
- },
47
-
48
- // :: NodeSpec A heading textblock, with a `level` attribute that
49
- // should hold the number 1 to 6. Parsed and serialized as `<h1>` to
50
- // `<h6>` elements.
51
- heading: {
52
- attrs: {level: {default: 1}},
53
- content: "inline*",
54
- group: "block",
55
- defining: true,
56
- parseDOM: [{tag: "h1", attrs: {level: 1}},
57
- {tag: "h2", attrs: {level: 2}},
58
- {tag: "h3", attrs: {level: 3}},
59
- {tag: "h4", attrs: {level: 4}},
60
- {tag: "h5", attrs: {level: 5}},
61
- {tag: "h6", attrs: {level: 6}}],
62
- toDOM: function toDOM(node) { return ["h" + node.attrs.level, 0] }
63
- },
64
-
65
- // :: NodeSpec A code listing. Disallows marks or non-text inline
66
- // nodes by default. Represented as a `<pre>` element with a
67
- // `<code>` element inside of it.
68
- code_block: {
69
- content: "text*",
70
- marks: "",
71
- group: "block",
72
- code: true,
73
- defining: true,
74
- parseDOM: [{tag: "pre", preserveWhitespace: "full"}],
75
- toDOM: function toDOM() { return ["pre", ["code", 0]] }
76
- },
77
-
78
- // :: NodeSpec The text node.
79
- text: {
80
- group: "inline"
81
- },
82
-
83
- // :: NodeSpec An inline image (`<img>`) node. Supports `src`,
84
- // `alt`, and `href` attributes. The latter two default to the empty
85
- // string.
86
- image: {
87
- inline: true,
88
- attrs: {
89
- src: {},
90
- alt: {default: null},
91
- title: {default: null}
92
- },
93
- group: "inline",
94
- draggable: true,
95
- parseDOM: [{tag: "img[src]", getAttrs: function getAttrs(dom) {
96
- return {
97
- src: dom.getAttribute("src"),
98
- title: dom.getAttribute("title"),
99
- alt: dom.getAttribute("alt")
100
- }
101
- }}],
102
- toDOM: function toDOM(node) { return ["img", node.attrs] }
103
- },
104
-
105
- // :: NodeSpec A hard line break, represented in the DOM as `<br>`.
106
- hard_break: {
107
- inline: true,
108
- group: "inline",
109
- selectable: false,
110
- parseDOM: [{tag: "br"}],
111
- toDOM: function toDOM() { return ["br"] }
112
- }
113
- };
114
-
115
- // :: Object [Specs](#model.MarkSpec) for the marks in the schema.
116
- var marks = {
117
- // :: MarkSpec A link. Has `href` and `title` attributes. `title`
118
- // defaults to the empty string. Rendered and parsed as an `<a>`
119
- // element.
120
- link: {
121
- attrs: {
122
- href: {},
123
- title: {default: null}
124
- },
125
- inclusive: false,
126
- parseDOM: [{tag: "a[href]", getAttrs: function getAttrs(dom) {
127
- return {href: dom.getAttribute("href"), title: dom.getAttribute("title")}
128
- }}],
129
- toDOM: function toDOM(node) { return ["a", node.attrs] }
130
- },
131
-
132
- // :: MarkSpec An emphasis mark. Rendered as an `<em>` element.
133
- // Has parse rules that also match `<i>` and `font-style: italic`.
134
- em: {
135
- parseDOM: [{tag: "i"}, {tag: "em"}, {style: "font-style=italic"}],
136
- toDOM: function toDOM() { return ["em"] }
137
- },
138
-
139
- // :: MarkSpec A strong mark. Rendered as `<strong>`, parse rules
140
- // also match `<b>` and `font-weight: bold`.
141
- strong: {
142
- parseDOM: [{tag: "strong"},
143
- // This works around a Google Docs misbehavior where
144
- // pasted content will be inexplicably wrapped in `<b>`
145
- // tags with a font-weight normal.
146
- {tag: "b", getAttrs: function (node) { return node.style.fontWeight != "normal" && null; }},
147
- {style: "font-weight", getAttrs: function (value) { return /^(bold(er)?|[5-9]\d{2,})$/.test(value) && null; }}],
148
- toDOM: function toDOM() { return ["strong"] }
149
- },
150
-
151
- // :: MarkSpec Code font mark. Represented as a `<code>` element.
152
- code: {
153
- parseDOM: [{tag: "code"}],
154
- toDOM: function toDOM() { return ["code"] }
155
- }
156
- };
157
-
158
- // :: Schema
159
- // This schema rougly corresponds to the document schema used by
160
- // [CommonMark](http://commonmark.org/), minus the list elements,
161
- // which are defined in the [`prosemirror-schema-list`](#schema-list)
162
- // module.
163
- //
164
- // To reuse elements from this schema, extend or read from its
165
- // `spec.nodes` and `spec.marks` [properties](#model.Schema.spec).
166
- var schema = new prosemirrorModel.Schema({nodes: nodes, marks: marks});
167
-
168
- exports.td = nodes;
169
- exports.EI = marks;
170
- __webpack_unused_export__ = schema;
171
- //# sourceMappingURL=schema-basic.js.map
172
-
173
-
174
- /***/ }),
175
-
176
- /***/ 63:
177
- /***/ ((module) => {
178
-
179
- module.exports = require("prosemirror-model");;
180
-
181
- /***/ })
182
-
183
- /******/ });
184
- /************************************************************************/
185
- /******/ // The module cache
186
- /******/ var __webpack_module_cache__ = {};
187
- /******/
188
- /******/ // The require function
189
- /******/ function __webpack_require__(moduleId) {
190
- /******/ // Check if module is in cache
191
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
192
- /******/ if (cachedModule !== undefined) {
193
- /******/ return cachedModule.exports;
194
- /******/ }
195
- /******/ // Create a new module (and put it into the cache)
196
- /******/ var module = __webpack_module_cache__[moduleId] = {
197
- /******/ // no module.id needed
198
- /******/ // no module.loaded needed
199
- /******/ exports: {}
200
- /******/ };
201
- /******/
202
- /******/ // Execute the module function
203
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
204
- /******/
205
- /******/ // Return the exports of the module
206
- /******/ return module.exports;
207
- /******/ }
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
208
5
  /******/
209
6
  /************************************************************************/
210
7
  /******/ /* webpack/runtime/define property getters */
@@ -237,289 +34,602 @@ module.exports = require("prosemirror-model");;
237
34
  /******/
238
35
  /************************************************************************/
239
36
  var __webpack_exports__ = {};
240
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
241
- (() => {
242
37
  // ESM COMPAT FLAG
243
38
  __webpack_require__.r(__webpack_exports__);
244
39
 
245
40
  // EXPORTS
246
41
  __webpack_require__.d(__webpack_exports__, {
247
- "createSchema": () => (/* binding */ createSchema)
42
+ "createSchema": () => (/* reexport */ createSchema)
248
43
  });
249
44
 
250
- // EXTERNAL MODULE: external "prosemirror-model"
251
- var external_prosemirror_model_ = __webpack_require__(63);
252
- // EXTERNAL MODULE: ../node_modules/prosemirror-schema-basic/dist/schema-basic.js
253
- var schema_basic = __webpack_require__(17);
45
+ ;// CONCATENATED MODULE: external "prosemirror-model"
46
+ const external_prosemirror_model_namespaceObject = require("prosemirror-model");
47
+ ;// CONCATENATED MODULE: external "prosemirror-schema-basic"
48
+ const external_prosemirror_schema_basic_namespaceObject = require("prosemirror-schema-basic");
254
49
  ;// CONCATENATED MODULE: external "prosemirror-schema-list"
255
- const external_prosemirror_schema_list_namespaceObject = require("prosemirror-schema-list");;
50
+ const external_prosemirror_schema_list_namespaceObject = require("prosemirror-schema-list");
256
51
  ;// CONCATENATED MODULE: external "prosemirror-tables"
257
- const external_prosemirror_tables_namespaceObject = require("prosemirror-tables");;
258
- ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
259
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
260
- // require the crypto API and do not support built-in fallback to lower quality random number
261
- // generators (like Math.random()).
262
- var getRandomValues;
263
- var rnds8 = new Uint8Array(16);
264
- function rng() {
265
- // lazy load so that environments that need to polyfill have a chance to do so
266
- if (!getRandomValues) {
267
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
268
- // find the complete implementation of crypto (msCrypto) on IE11.
269
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
270
-
271
- if (!getRandomValues) {
272
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
273
- }
274
- }
52
+ const external_prosemirror_tables_namespaceObject = require("prosemirror-tables");
53
+ ;// CONCATENATED MODULE: ./src/nodes/tableNodes.js
54
+
55
+ const tableNodes = (0,external_prosemirror_tables_namespaceObject.tableNodes)({
56
+ tableGroup: "block",
57
+ cellContent: "block+",
58
+ cellAttributes: {
59
+ background: {
60
+ default: null,
61
+
62
+ getFromDOM(dom) {
63
+ return dom.style.backgroundColor || null;
64
+ },
275
65
 
276
- return getRandomValues(rnds8);
277
- }
278
- ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/regex.js
279
- /* harmony default export */ const regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
280
- ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/validate.js
66
+ setDOMAttr(value, attrs) {
67
+ if (value) {
68
+ attrs.style = (attrs.style || "") + "background-color: ".concat(value, ";");
69
+ }
70
+ }
281
71
 
72
+ }
73
+ }
74
+ });
75
+ ;// CONCATENATED MODULE: ./src/nodes/paragraph.js
76
+ const paragraph = {
77
+ content: "inline*",
78
+ group: "block",
79
+ attrs: {
80
+ guid: {
81
+ default: ""
82
+ }
83
+ },
84
+ parseDOM: [{
85
+ tag: "p",
86
+ getAttrs: dom => ({
87
+ guid: dom.getAttribute("data-guid")
88
+ })
89
+ }],
90
+
91
+ toDOM(node) {
92
+ const {
93
+ guid
94
+ } = node.attrs;
95
+ return ["p", {
96
+ "data-guid": guid
97
+ }, 0];
98
+ }
282
99
 
283
- function validate(uuid) {
284
- return typeof uuid === 'string' && regex.test(uuid);
285
- }
100
+ };
101
+ ;// CONCATENATED MODULE: ./src/nodes/heading.js
102
+ const DEFAULT_GUID = "";
103
+ const makeHeading = ({
104
+ headingToDOM
105
+ }) => ({
106
+ content: "inline*",
107
+ group: "block",
108
+ attrs: {
109
+ level: {
110
+ default: 1
111
+ },
112
+ guid: {
113
+ default: DEFAULT_GUID
114
+ }
115
+ },
116
+ defining: true,
117
+ parseDOM: [{
118
+ tag: "h1",
119
+ getAttrs: dom => ({
120
+ level: 1,
121
+ guid: dom.getAttribute("guid") || DEFAULT_GUID
122
+ })
123
+ }, {
124
+ tag: "h2",
125
+ getAttrs: dom => ({
126
+ level: 2,
127
+ guid: dom.getAttribute("guid") || DEFAULT_GUID
128
+ })
129
+ }, {
130
+ tag: "h3",
131
+ getAttrs: dom => ({
132
+ level: 3,
133
+ guid: dom.getAttribute("guid") || DEFAULT_GUID
134
+ })
135
+ }, {
136
+ tag: "h4",
137
+ getAttrs: dom => ({
138
+ level: 4,
139
+ guid: dom.getAttribute("guid") || DEFAULT_GUID
140
+ })
141
+ }, {
142
+ tag: "h5",
143
+ getAttrs: dom => ({
144
+ level: 5,
145
+ guid: dom.getAttribute("guid") || DEFAULT_GUID
146
+ })
147
+ }, {
148
+ tag: "h6",
149
+ getAttrs: dom => ({
150
+ level: 6,
151
+ guid: dom.getAttribute("guid") || DEFAULT_GUID
152
+ })
153
+ }],
154
+
155
+ toDOM(node) {
156
+ if (headingToDOM) {
157
+ return headingToDOM(node);
158
+ }
286
159
 
287
- /* harmony default export */ const esm_browser_validate = (validate);
288
- ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
160
+ const {
161
+ guid
162
+ } = node.attrs;
163
+ return ["h" + node.attrs.level, {
164
+ guid
165
+ }, 0];
166
+ }
289
167
 
290
- /**
291
- * Convert array of 16 byte values to UUID string format of the form:
292
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
293
- */
168
+ });
169
+ ;// CONCATENATED MODULE: ./src/nodes/media.js
170
+ const makeMedia = ({
171
+ mediaToDom
172
+ }) => ({
173
+ inline: false,
174
+ attrs: {
175
+ url: {}
176
+ },
177
+ group: "block",
178
+ draggable: true,
179
+ parseDOM: [{
180
+ tag: "div[data-url]",
294
181
 
295
- var byteToHex = [];
182
+ getAttrs(dom) {
183
+ return {
184
+ url: dom.getAttribute("data-url")
185
+ };
186
+ }
296
187
 
297
- for (var i = 0; i < 256; ++i) {
298
- byteToHex.push((i + 0x100).toString(16).substr(1));
299
- }
188
+ }],
300
189
 
301
- function stringify(arr) {
302
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
303
- // Note: Be careful editing this code! It's been tuned for performance
304
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
305
- var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
306
- // of the following:
307
- // - One or more input array values don't map to a hex octet (leading to
308
- // "undefined" in the uuid)
309
- // - Invalid input values for the RFC `version` or `variant` fields
190
+ toDOM(node) {
191
+ if (mediaToDom) {
192
+ return mediaToDom(node);
193
+ }
310
194
 
311
- if (!esm_browser_validate(uuid)) {
312
- throw TypeError('Stringified UUID is invalid');
195
+ const {
196
+ url
197
+ } = node.attrs;
198
+ const attrs = {
199
+ "data-url": url,
200
+ contenteditable: "false"
201
+ };
202
+ return ["div", attrs, url];
313
203
  }
314
204
 
315
- return uuid;
316
- }
317
-
318
- /* harmony default export */ const esm_browser_stringify = (stringify);
319
- ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
320
-
321
-
205
+ });
206
+ ;// CONCATENATED MODULE: ./src/nodes/note.js
207
+ const note = {
208
+ content: "inline*",
209
+ group: "block",
210
+
211
+ toDOM() {
212
+ return ["div", {
213
+ class: "fibery-note"
214
+ }, ["p", 0]];
215
+ },
322
216
 
323
- function v4(options, buf, offset) {
324
- options = options || {};
325
- var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
217
+ parseDOM: [{
218
+ tag: "div.fibery-note"
219
+ }]
220
+ };
221
+ ;// CONCATENATED MODULE: ./src/nodes/important.js
222
+ const important = {
223
+ content: "inline*",
224
+ group: "block",
225
+ parseDOM: [{
226
+ tag: "div.fibery-important"
227
+ }],
228
+
229
+ toDOM() {
230
+ return ["div", {
231
+ class: "fibery-important"
232
+ }, ["p", 0]];
233
+ }
326
234
 
327
- rnds[6] = rnds[6] & 0x0f | 0x40;
328
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
235
+ };
236
+ ;// CONCATENATED MODULE: ./src/nodes/entity.js
237
+ const entity = {
238
+ inline: true,
239
+ group: "inline",
240
+ selectable: false,
241
+ attrs: {
242
+ id: {
243
+ default: ""
244
+ },
245
+ text: {
246
+ default: ""
247
+ },
248
+ typeId: {
249
+ default: ""
250
+ }
251
+ },
252
+ parseDOM: [{
253
+ tag: "span[data-entity-id]",
254
+ getAttrs: domNode => {
255
+ return {
256
+ id: domNode.getAttribute("data-entity-id"),
257
+ text: domNode.textContent,
258
+ typeId: domNode.getAttribute("data-entity-type-id")
259
+ };
260
+ }
261
+ }],
262
+
263
+ toDOM(node) {
264
+ const {
265
+ id,
266
+ typeId,
267
+ text
268
+ } = node.attrs;
269
+ const attrs = {
270
+ "data-entity-id": id,
271
+ "data-entity-type-id": typeId,
272
+ contenteditable: "false"
273
+ };
274
+ return ["span", attrs, text];
275
+ }
329
276
 
330
- if (buf) {
331
- offset = offset || 0;
277
+ };
278
+ ;// CONCATENATED MODULE: ./src/nodes/mention.js
279
+ const mention = {
280
+ inline: true,
281
+ group: "inline",
282
+ selectable: false,
283
+ attrs: {
284
+ id: {
285
+ default: ""
286
+ },
287
+ name: {
288
+ default: ""
289
+ },
290
+ typeId: {
291
+ default: ""
292
+ }
293
+ },
294
+ parseDOM: [{
295
+ tag: "span[data-mention-id]",
296
+ getAttrs: domNode => {
297
+ return {
298
+ id: domNode.getAttribute("data-mention-id"),
299
+ name: domNode.textContent,
300
+ typeId: domNode.getAttribute("data-mention-type-id")
301
+ };
302
+ }
303
+ }],
304
+
305
+ toDOM(node) {
306
+ const {
307
+ id,
308
+ typeId,
309
+ name
310
+ } = node.attrs;
311
+ const attrs = {
312
+ "data-mention-id": id,
313
+ "data-mention-type-id": typeId,
314
+ contenteditable: "false"
315
+ };
316
+ return ["span", attrs, name];
317
+ }
332
318
 
333
- for (var i = 0; i < 16; ++i) {
334
- buf[offset + i] = rnds[i];
319
+ };
320
+ ;// CONCATENATED MODULE: external "uuid"
321
+ const external_uuid_namespaceObject = require("uuid");
322
+ ;// CONCATENATED MODULE: ./src/nodes/checkList.js
323
+
324
+ const check_list = {
325
+ group: "block",
326
+ defining: true,
327
+ content: "check_item+",
328
+ attrs: {
329
+ id: {
330
+ default: ""
335
331
  }
332
+ },
333
+ parseDOM: [{
334
+ tag: "ol[data-check-list-id]",
335
+ // Default priority is 50. We normaly don't change this but since this node type is
336
+ // also used by ordered-list we need to make sure that we run this parser first.
337
+ priority: 100,
338
+ getAttrs: () => ({
339
+ id: (0,external_uuid_namespaceObject.v4)()
340
+ })
341
+ }],
342
+
343
+ toDOM(node) {
344
+ const {
345
+ id
346
+ } = node.attrs;
347
+ const attrs = {
348
+ "data-check-list-id": id,
349
+ style: "list-style: none; padding-left: 0; margin-left: 0; margin-bottom: 0;"
350
+ };
351
+ return ["ol", attrs, 0];
352
+ }
336
353
 
337
- return buf;
354
+ };
355
+ ;// CONCATENATED MODULE: ./src/nodes/checkItem.js
356
+
357
+ const check_item = {
358
+ content: "inline*",
359
+ defining: true,
360
+ marks: "_",
361
+ attrs: {
362
+ id: {
363
+ default: ""
364
+ },
365
+ state: {
366
+ default: "TODO"
367
+ }
368
+ },
369
+ parseDOM: [{
370
+ tag: "li[data-check-item-id]",
371
+ // Default priority is 50. We normally don't change this but since this node type is
372
+ // also used by list-item we need to make sure that we run this parser first.
373
+ priority: 100,
374
+ getAttrs: dom => ({
375
+ id: (0,external_uuid_namespaceObject.v4)(),
376
+ state: dom.getAttribute("data-check-item-state")
377
+ })
378
+ }],
379
+
380
+ toDOM(node) {
381
+ const {
382
+ id,
383
+ state
384
+ } = node.attrs;
385
+ const attrs = {
386
+ "data-check-item-id": id,
387
+ "data-check-item-state": state
388
+ };
389
+ return ["li", attrs, 0];
338
390
  }
339
391
 
340
- return esm_browser_stringify(rnds);
341
- }
392
+ };
393
+ ;// CONCATENATED MODULE: ./src/nodes/codeBlock.js
394
+ const code_block = {
395
+ content: "text*",
396
+ marks: "",
397
+ group: "block",
398
+ code: true,
399
+ defining: true,
400
+ attrs: {
401
+ language: {
402
+ default: null
403
+ }
404
+ },
405
+ parseDOM: [{
406
+ tag: "pre",
407
+ preserveWhitespace: "full",
408
+ getAttrs: dom => {
409
+ const language = getLanguageFromCode(dom);
410
+ return {
411
+ language
412
+ };
413
+ }
414
+ }],
342
415
 
343
- /* harmony default export */ const esm_browser_v4 = (v4);
344
- ;// CONCATENATED MODULE: ./index.js
345
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
416
+ toDOM(node) {
417
+ return ["pre", ["code", {
418
+ "data-language": node.attrs.language
419
+ }, 0]];
420
+ }
346
421
 
347
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
422
+ }; // If there is a child code element, check that for data-language
348
423
 
349
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
424
+ const getLanguageFromCode = dom => {
425
+ const firstChild = dom.firstElementChild;
350
426
 
427
+ if (firstChild && firstChild.nodeName === "CODE") {
428
+ return firstChild.getAttribute("data-language") || undefined;
429
+ }
351
430
 
431
+ return undefined;
432
+ };
433
+ ;// CONCATENATED MODULE: ./src/nodes/video.js
434
+ const DEFAULT_VIDEO_WIDTH = 400;
435
+ const DEFAULT_VIDEO_HEIGHT = 200;
436
+ const video = {
437
+ inline: false,
438
+ attrs: {
439
+ src: {},
440
+ type: {},
441
+ width: {
442
+ default: DEFAULT_VIDEO_WIDTH
443
+ },
444
+ height: {
445
+ default: DEFAULT_VIDEO_HEIGHT
446
+ },
447
+ title: {
448
+ default: null
449
+ },
450
+ alignment: {
451
+ default: ":alignment/block-center"
452
+ }
453
+ },
454
+ group: "block",
455
+ draggable: true,
456
+ parseDOM: [{
457
+ tag: "video",
352
458
 
459
+ getAttrs(dom) {
460
+ return {
461
+ src: dom.getAttribute("src"),
462
+ type: dom.getAttribute("type"),
463
+ width: Number(dom.getAttribute("width")) || DEFAULT_VIDEO_WIDTH,
464
+ height: Number(dom.getAttribute("height")) || DEFAULT_VIDEO_HEIGHT,
465
+ title: dom.getAttribute("title")
466
+ };
467
+ }
353
468
 
469
+ }],
470
+
471
+ toDOM(node) {
472
+ const {
473
+ src,
474
+ type,
475
+ width = DEFAULT_VIDEO_WIDTH,
476
+ height = DEFAULT_VIDEO_HEIGHT,
477
+ title
478
+ } = node.attrs;
479
+ return ["video", {
480
+ src,
481
+ type,
482
+ width,
483
+ height,
484
+ title,
485
+ playsinline: "",
486
+ controls: "",
487
+ preload: "metadata"
488
+ }];
489
+ }
354
490
 
491
+ };
492
+ ;// CONCATENATED MODULE: ./src/marks/strike.js
493
+ const strike = {
494
+ parseDOM: [{
495
+ tag: "strike"
496
+ }, {
497
+ style: "text-decoration=line-through"
498
+ }],
499
+ toDOM: () => ["strike"]
500
+ };
501
+ ;// CONCATENATED MODULE: ./src/marks/underline.js
502
+ const underline = {
503
+ parseDOM: [{
504
+ tag: "u"
505
+ }, {
506
+ style: "text-decoration=underline"
507
+ }],
508
+ toDOM: () => ["u"]
509
+ };
510
+ ;// CONCATENATED MODULE: ./src/marks/hintQuery.js
511
+ const hintQuery = {
512
+ excludes: "searchQuery",
513
+ inclusive: true,
514
+ group: "searchQuery",
515
+ attrs: {
516
+ trigger: {
517
+ default: ""
518
+ },
519
+ guid: {
520
+ default: ""
521
+ }
522
+ },
523
+ parseDOM: [{
524
+ tag: "span[data-hint-query]"
525
+ }],
526
+
527
+ toDOM(node) {
528
+ return ["span", {
529
+ "data-hint-query": "true",
530
+ "data-trigger": node.attrs.trigger,
531
+ "data-guid": node.attrs.guid
532
+ }];
533
+ }
355
534
 
356
- const createSchema = ({
357
- sharedColorGenerator = null,
358
- headingToDOM = null,
359
- mediaToDom = null
360
- } = {}) => {
361
- const hyphenatePascal = str => str.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([A-Z]{2})[a-z]/, "$1-").toLowerCase();
535
+ };
536
+ ;// CONCATENATED MODULE: ./src/marks/highlight.js
537
+ const highlight = {
538
+ attrs: {
539
+ color: {
540
+ default: "#FFE4B5"
541
+ },
542
+ guid: {
543
+ default: ""
544
+ }
545
+ },
546
+ parseDOM: [{
547
+ tag: "span[data-highlight]",
548
+ getAttrs: domNode => {
549
+ return {
550
+ color: domNode.style.backgroundColor || "#FFE4B5"
551
+ };
552
+ }
553
+ }],
554
+
555
+ toDOM(node) {
556
+ return ["span", {
557
+ "data-highlight": "true",
558
+ "data-guid": node.attrs.guid,
559
+ style: "background-color:".concat(node.attrs.color)
560
+ }];
561
+ }
362
562
 
363
- const createMark = markType => {
364
- const markTag = `span.${markType}`;
365
- const markClassName = `${markType}`;
563
+ };
564
+ ;// CONCATENATED MODULE: ./src/marks/linkedHighlight.js
565
+ const hyphenatePascal = str => str.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([A-Z]{2})[a-z]/, "$1-").toLowerCase();
366
566
 
367
- const preserveBool = attr => attr === "true" ? true : attr === "false" ? false : attr; // const serializeLinks = (links) => links.map(({typeId, id}) => `${typeId}/${id}`).join(`,`);
368
- // const deserializeLinks = (links) => links.split(`,`).map((pair) => {
369
- // const [typeId, id] = pair.split(`/`);
370
- // return {typeId, id};
371
- // });
567
+ const createMark = (markType, sharedColorGenerator) => {
568
+ const markTag = "span.".concat(markType);
569
+ const markClassName = "".concat(markType);
372
570
 
571
+ const preserveBool = attr => attr === "true" ? true : attr === "false" ? false : attr;
373
572
 
374
- return {
375
- attrs: {
376
- id: {},
377
- // links: {default: [{typeId: "typeId1", id: "id1"}, {typeId: "typeId2", id: "id2"}]},
378
- meta: {
379
- default: {}
380
- }
381
- },
382
- inclusive: false,
383
- parseDOM: [{
384
- tag: markTag,
385
- getAttrs: ({
386
- dataset
387
- }) => {
388
- return {
389
- id: dataset.id || false,
390
- // links: deserializeLinks(dataset.links),
391
- meta: Object.keys(dataset).filter(key => key !== "id" && dataset[key] !== "false") // remove special or falses
392
- .reduce((out, key) => _objectSpread(_objectSpread({}, out), {}, {
393
- [key]: preserveBool(JSON.parse(dataset[key]))
394
- }), {
395
- type: markType
396
- })
397
- };
398
- }
399
- }],
400
- // Spit out the node based on the type
401
- toDOM: ({
402
- attrs
403
- }) => {
404
- const {
405
- id,
406
- meta
407
- } = attrs;
408
- const {
409
- hidden = false
410
- } = meta;
411
- const {
412
- typeId
413
- } = meta.links && meta.links.length > 0 ? meta.links[0] : {};
414
- const color = sharedColorGenerator ? sharedColorGenerator.generate(typeId) : "#eeeeee";
415
- return [markTag, _objectSpread({
416
- class: [markClassName, hidden ? `${markClassName}--collapsed` : ``].join(" "),
417
- contenteditable: !hidden,
418
- style: color ? `background-color:${color}` : ``,
419
- // "data-links": serializeLinks(attrs.links),
420
- "data-id": id
421
- }, Object.keys(meta).filter(key => meta[key] !== false) // remove specials
422
- .reduce((out, key) => _objectSpread(_objectSpread({}, out), {}, {
423
- [`data-${hyphenatePascal(key)}`]: JSON.stringify(meta[key])
424
- }), {}))];
425
- }
426
- };
427
- }; // customize basic paragraph with guid
428
-
429
-
430
- schema_basic/* nodes.paragraph */.td.paragraph = {
431
- content: "inline*",
432
- group: "block",
573
+ return {
433
574
  attrs: {
434
- guid: {
435
- default: ""
575
+ id: {},
576
+ meta: {
577
+ default: {}
436
578
  }
437
579
  },
580
+ inclusive: false,
438
581
  parseDOM: [{
439
- tag: "p",
440
- getAttrs: dom => ({
441
- guid: dom.getAttribute("data-guid")
442
- })
443
- }],
444
-
445
- toDOM(node) {
446
- const {
447
- guid
448
- } = node.attrs;
449
- return ["p", {
450
- "data-guid": guid
451
- }, 0];
452
- }
453
-
454
- };
455
- const headingDefaultGuid = ""; // Rendered using custom NodeView
456
-
457
- schema_basic/* nodes.heading */.td.heading = {
458
- content: "inline*",
459
- group: "block",
460
- attrs: {
461
- level: {
462
- default: 1
463
- },
464
- guid: {
465
- default: headingDefaultGuid
582
+ tag: markTag,
583
+ getAttrs: ({
584
+ dataset
585
+ }) => {
586
+ return {
587
+ id: dataset.id || false,
588
+ meta: Object.keys(dataset).filter(key => key !== "id" && dataset[key] !== "false").reduce((out, key) => ({ ...out,
589
+ [key]: preserveBool(JSON.parse(dataset[key]))
590
+ }), {
591
+ type: markType
592
+ })
593
+ };
466
594
  }
467
- },
468
- defining: true,
469
- parseDOM: [{
470
- tag: "h1",
471
- getAttrs: dom => ({
472
- level: 1,
473
- guid: dom.getAttribute("guid") || headingDefaultGuid
474
- })
475
- }, {
476
- tag: "h2",
477
- getAttrs: dom => ({
478
- level: 2,
479
- guid: dom.getAttribute("guid") || headingDefaultGuid
480
- })
481
- }, {
482
- tag: "h3",
483
- getAttrs: dom => ({
484
- level: 3,
485
- guid: dom.getAttribute("guid") || headingDefaultGuid
486
- })
487
- }, {
488
- tag: "h4",
489
- getAttrs: dom => ({
490
- level: 4,
491
- guid: dom.getAttribute("guid") || headingDefaultGuid
492
- })
493
- }, {
494
- tag: "h5",
495
- getAttrs: dom => ({
496
- level: 5,
497
- guid: dom.getAttribute("guid") || headingDefaultGuid
498
- })
499
- }, {
500
- tag: "h6",
501
- getAttrs: dom => ({
502
- level: 6,
503
- guid: dom.getAttribute("guid") || headingDefaultGuid
504
- })
505
595
  }],
506
-
507
- toDOM(node) {
508
- if (headingToDOM) {
509
- return headingToDOM(node);
510
- }
511
-
596
+ toDOM: ({
597
+ attrs
598
+ }) => {
512
599
  const {
513
- guid
514
- } = node.attrs;
515
- return ["h" + node.attrs.level, {
516
- guid
517
- }, 0];
600
+ id,
601
+ meta
602
+ } = attrs;
603
+ const {
604
+ hidden = false
605
+ } = meta;
606
+ const {
607
+ typeId
608
+ } = meta.links && meta.links.length > 0 ? meta.links[0] : {};
609
+ const color = sharedColorGenerator ? sharedColorGenerator.generate(typeId) : "#eeeeee";
610
+ return [markTag, {
611
+ class: [markClassName, hidden ? "".concat(markClassName, "--collapsed") : ""].join(" "),
612
+ contenteditable: !hidden,
613
+ style: color ? "background-color:".concat(color) : "",
614
+ "data-id": id,
615
+ ...Object.keys(meta).filter(key => meta[key] !== false) // remove specials
616
+ .reduce((out, key) => ({ ...out,
617
+ ["data-".concat(hyphenatePascal(key))]: JSON.stringify(meta[key])
618
+ }), {})
619
+ }];
518
620
  }
621
+ };
622
+ };
519
623
 
520
- }; // Override link's toDom method in order to specify target
624
+ const makeLinkedHighlight = ({
625
+ sharedColorGenerator
626
+ }) => {
627
+ return createMark("linkedhighlight", sharedColorGenerator);
628
+ };
629
+ ;// CONCATENATED MODULE: ./src/marks/link.js
630
+ const makeLink = baseLink => {
631
+ return { ...baseLink,
521
632
 
522
- schema_basic/* marks.link */.EI.link = _objectSpread(_objectSpread({}, schema_basic/* marks.link */.EI.link), {}, {
523
633
  toDOM(node) {
524
634
  let {
525
635
  href,
@@ -532,377 +642,65 @@ const createSchema = ({
532
642
  }, 0];
533
643
  }
534
644
 
535
- });
536
- const base = new external_prosemirror_model_.Schema({
537
- nodes: schema_basic/* nodes */.td,
538
- marks: schema_basic/* marks */.EI
539
- });
540
- const media = {
541
- inline: false,
542
- attrs: {
543
- url: {}
544
- },
545
- group: "block",
546
- draggable: true,
547
- parseDOM: [{
548
- tag: "div[data-url]",
549
-
550
- getAttrs(dom) {
551
- return {
552
- url: dom.getAttribute("data-url")
553
- };
554
- }
645
+ };
646
+ };
647
+ ;// CONCATENATED MODULE: ./src/createSchema.js
555
648
 
556
- }],
557
649
 
558
- toDOM(node) {
559
- if (mediaToDom) {
560
- return mediaToDom(node);
561
- }
562
650
 
563
- const {
564
- url
565
- } = node.attrs;
566
- const attrs = {
567
- "data-url": url,
568
- contenteditable: "false"
569
- };
570
- return ["div", attrs, url];
571
- }
572
651
 
573
- };
574
- const entity = {
575
- inline: true,
576
- group: "inline",
577
- selectable: false,
578
- attrs: {
579
- id: {
580
- default: ""
581
- },
582
- text: {
583
- default: ""
584
- },
585
- typeId: {
586
- default: ""
587
- }
588
- },
589
- parseDOM: [{
590
- tag: "span[data-entity-id]",
591
- getAttrs: domNode => {
592
- return {
593
- id: domNode.getAttribute("data-entity-id"),
594
- text: domNode.textContent,
595
- typeId: domNode.getAttribute("data-entity-type-id")
596
- };
597
- }
598
- }],
599
652
 
600
- toDOM(node) {
601
- const {
602
- id,
603
- typeId,
604
- text
605
- } = node.attrs;
606
- const attrs = {
607
- "data-entity-id": id,
608
- "data-entity-type-id": typeId,
609
- contenteditable: "false"
610
- };
611
- return ["span", attrs, text];
612
- }
613
653
 
614
- };
615
- const mention = {
616
- inline: true,
617
- group: "inline",
618
- selectable: false,
619
- attrs: {
620
- id: {
621
- default: ""
622
- },
623
- name: {
624
- default: ""
625
- },
626
- typeId: {
627
- default: ""
628
- }
629
- },
630
- parseDOM: [{
631
- tag: "span[data-mention-id]",
632
- getAttrs: domNode => {
633
- return {
634
- id: domNode.getAttribute("data-mention-id"),
635
- name: domNode.textContent,
636
- typeId: domNode.getAttribute("data-mention-type-id")
637
- };
638
- }
639
- }],
640
654
 
641
- toDOM(node) {
642
- const {
643
- id,
644
- typeId,
645
- name
646
- } = node.attrs;
647
- const attrs = {
648
- "data-mention-id": id,
649
- "data-mention-type-id": typeId,
650
- contenteditable: "false"
651
- };
652
- return ["span", attrs, name];
653
- }
654
655
 
655
- };
656
- const check_list = {
657
- group: "block",
658
- defining: true,
659
- content: "check_item+",
660
- attrs: {
661
- id: {
662
- default: ""
663
- }
664
- },
665
- parseDOM: [{
666
- tag: "ol[data-check-list-id]",
667
- // Default priority is 50. We normaly don't change this but since this node type is
668
- // also used by ordered-list we need to make sure that we run this parser first.
669
- priority: 100,
670
- getAttrs: () => ({
671
- id: esm_browser_v4()
672
- })
673
- }],
674
656
 
675
- toDOM(node) {
676
- const {
677
- id
678
- } = node.attrs;
679
- const attrs = {
680
- "data-check-list-id": id,
681
- style: "list-style: none; padding-left: 0; margin-left: 0; margin-bottom: 0;"
682
- };
683
- return ["ol", attrs, 0];
684
- }
685
657
 
686
- };
687
- const check_item = {
688
- content: "inline*",
689
- defining: true,
690
- marks: "_",
691
- attrs: {
692
- id: {
693
- default: ""
694
- },
695
- state: {
696
- default: "TODO"
697
- }
698
- },
699
- parseDOM: [{
700
- tag: "li[data-check-item-id]",
701
- // Default priority is 50. We normally don't change this but since this node type is
702
- // also used by list-item we need to make sure that we run this parser first.
703
- priority: 100,
704
- getAttrs: dom => ({
705
- id: esm_browser_v4(),
706
- state: dom.getAttribute("data-check-item-state")
707
- })
708
- }],
709
658
 
710
- toDOM(node) {
711
- const {
712
- id,
713
- state
714
- } = node.attrs;
715
- const attrs = {
716
- "data-check-item-id": id,
717
- "data-check-item-state": state
718
- };
719
- return ["li", attrs, 0];
720
- }
721
659
 
722
- };
723
- const DEFAULT_VIDEO_WIDTH = 400;
724
- const DEFAULT_VIDEO_HEIGHT = 200;
725
- const video = {
726
- inline: false,
727
- attrs: {
728
- src: {},
729
- type: {},
730
- width: {
731
- default: DEFAULT_VIDEO_WIDTH
732
- },
733
- height: {
734
- default: DEFAULT_VIDEO_HEIGHT
735
- },
736
- title: {
737
- default: null
738
- },
739
- alignment: {
740
- default: ":alignment/block-center"
741
- }
742
- },
743
- group: "block",
744
- draggable: true,
745
- parseDOM: [{
746
- tag: "video",
747
660
 
748
- getAttrs(dom) {
749
- return {
750
- src: dom.getAttribute("src"),
751
- type: dom.getAttribute("type"),
752
- width: Number(dom.getAttribute("width")) || DEFAULT_VIDEO_WIDTH,
753
- height: Number(dom.getAttribute("height")) || DEFAULT_VIDEO_HEIGHT,
754
- title: dom.getAttribute("title")
755
- };
756
- }
757
661
 
758
- }],
759
662
 
760
- toDOM(node) {
761
- const {
762
- src,
763
- type,
764
- width = DEFAULT_VIDEO_WIDTH,
765
- height = DEFAULT_VIDEO_HEIGHT,
766
- title
767
- } = node.attrs;
768
- return ["video", {
769
- src,
770
- type,
771
- width,
772
- height,
773
- title,
774
- playsinline: "",
775
- controls: "",
776
- preload: "metadata"
777
- }];
778
- }
779
663
 
780
- };
781
- const additionalWikiBlocks = {
782
- note: {
783
- content: "inline*",
784
- group: "block",
785
-
786
- toDOM() {
787
- return ["div", {
788
- class: "fibery-note"
789
- }, ["p", 0]];
790
- },
791
664
 
792
- parseDOM: [{
793
- tag: "div.fibery-note"
794
- }]
795
- },
796
- important: {
797
- content: "inline*",
798
- group: "block",
799
- parseDOM: [{
800
- tag: "div.fibery-important"
801
- }],
802
-
803
- toDOM() {
804
- return ["div", {
805
- class: "fibery-important"
806
- }, ["p", 0]];
807
- }
808
665
 
809
- },
810
- entity,
811
- mention,
812
- media,
813
- check_item,
814
- check_list,
815
- video
816
- };
817
- return new external_prosemirror_model_.Schema({
818
- nodes: (0,external_prosemirror_schema_list_namespaceObject.addListNodes)(base.spec.nodes, "paragraph block*", "block").append((0,external_prosemirror_tables_namespaceObject.tableNodes)({
819
- tableGroup: "block",
820
- cellContent: "block+",
821
- cellAttributes: {
822
- background: {
823
- default: null,
824
-
825
- getFromDOM(dom) {
826
- return dom.style.backgroundColor || null;
827
- },
828
-
829
- setDOMAttr(value, attrs) {
830
- if (value) {
831
- attrs.style = (attrs.style || "") + `background-color: ${value};`;
832
- }
833
- }
834
666
 
835
- }
836
- }
837
- })).append(additionalWikiBlocks),
838
- marks: base.spec.marks.addToEnd("strike", {
839
- parseDOM: [{
840
- tag: "strike"
841
- }, {
842
- style: "text-decoration=line-through"
843
- }],
844
- toDOM: () => ["strike"]
845
- }).addToEnd("underline", {
846
- parseDOM: [{
847
- tag: "u"
848
- }, {
849
- style: "text-decoration=underline"
850
- }],
851
- toDOM: () => ["u"]
852
- }).addToEnd("hintQuery", {
853
- excludes: "searchQuery",
854
- inclusive: true,
855
- group: "searchQuery",
856
- parseDOM: [{
857
- tag: "span[data-hint-query]"
858
- }],
859
-
860
- toDOM(node) {
861
- return ["span", {
862
- "data-hint-query": "true",
863
- "data-trigger": node.attrs.trigger,
864
- "data-guid": node.attrs.guid
865
- }];
866
- },
867
667
 
868
- attrs: {
869
- trigger: {
870
- default: ""
871
- },
872
- guid: {
873
- default: ""
874
- }
875
- }
876
- }).addToEnd("highlight", {
877
- parseDOM: [{
878
- tag: "span[data-highlight]",
879
- getAttrs: domNode => {
880
- return {
881
- color: domNode.style.backgroundColor || "#FFE4B5"
882
- };
883
- }
884
- }],
885
-
886
- toDOM(node) {
887
- return ["span", {
888
- "data-highlight": "true",
889
- "data-guid": node.attrs.guid,
890
- style: `background-color:${node.attrs.color}`
891
- }];
892
- },
893
668
 
894
- attrs: {
895
- color: {
896
- default: "#FFE4B5"
897
- },
898
- guid: {
899
- default: ""
900
- }
901
- }
902
- }).addToEnd("linkedhighlight", createMark("linkedhighlight"))
669
+ const createSchema = ({
670
+ sharedColorGenerator = null,
671
+ headingToDOM = null,
672
+ mediaToDom = null
673
+ } = {}) => {
674
+ external_prosemirror_schema_basic_namespaceObject.nodes.code_block = code_block;
675
+ external_prosemirror_schema_basic_namespaceObject.nodes.paragraph = paragraph;
676
+ external_prosemirror_schema_basic_namespaceObject.nodes.heading = makeHeading({
677
+ headingToDOM
678
+ });
679
+ external_prosemirror_schema_basic_namespaceObject.marks.link = makeLink(external_prosemirror_schema_basic_namespaceObject.marks.link);
680
+ const base = new external_prosemirror_model_namespaceObject.Schema({
681
+ nodes: external_prosemirror_schema_basic_namespaceObject.nodes,
682
+ marks: external_prosemirror_schema_basic_namespaceObject.marks
683
+ });
684
+ const customNodes = {
685
+ note: note,
686
+ important: important,
687
+ entity: entity,
688
+ mention: mention,
689
+ media: makeMedia({
690
+ mediaToDom
691
+ }),
692
+ check_item: check_item,
693
+ check_list: check_list,
694
+ video: video
695
+ };
696
+ return new external_prosemirror_model_namespaceObject.Schema({
697
+ nodes: (0,external_prosemirror_schema_list_namespaceObject.addListNodes)(base.spec.nodes, "paragraph block*", "block").append(tableNodes).append(customNodes),
698
+ marks: base.spec.marks.addToEnd("strike", strike).addToEnd("underline", underline).addToEnd("hintQuery", hintQuery).addToEnd("highlight", highlight).addToEnd("linkedhighlight", makeLinkedHighlight({
699
+ sharedColorGenerator
700
+ }))
903
701
  });
904
702
  };
905
- })();
703
+ ;// CONCATENATED MODULE: ./index.js
906
704
 
907
705
  module.exports = __webpack_exports__;
908
706
  /******/ })()