quoin-editor 2.0.1 → 2.0.3
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.
- package/CHANGELOG.md +25 -0
- package/dist/ai.cjs +34 -34
- package/dist/ai.js +3 -3
- package/dist/catalogue.cjs +21 -21
- package/dist/catalogue.js +12 -12
- package/dist/{chunk-BYYCD54G.cjs → chunk-3B5VEXVQ.cjs} +2 -2
- package/dist/{chunk-5YAJZSTI.cjs → chunk-4EJJ4ZNC.cjs} +18 -18
- package/dist/{chunk-IKZSCTRF.cjs → chunk-55MN4QZU.cjs} +8 -5
- package/dist/{chunk-NFO3W644.cjs → chunk-5URH2Y2L.cjs} +22 -20
- package/dist/{chunk-B4VCDJSA.js → chunk-77THE3KY.js} +5 -5
- package/dist/{chunk-B4VCDJSA.js.map → chunk-77THE3KY.js.map} +1 -1
- package/dist/{chunk-V4WQG7FR.cjs → chunk-BCCFJINI.cjs} +70 -65
- package/dist/{chunk-NL5J77VD.js → chunk-BNTRGV4A.js} +44 -13
- package/dist/chunk-BNTRGV4A.js.map +1 -0
- package/dist/{chunk-IW4TMECB.js → chunk-C4SRLMQJ.js} +3 -3
- package/dist/{chunk-IW4TMECB.js.map → chunk-C4SRLMQJ.js.map} +1 -1
- package/dist/{chunk-CJVJNMOB.cjs → chunk-DZ5XR4O6.cjs} +177 -143
- package/dist/{chunk-ZN5DHNSL.js → chunk-FGVTDIHT.js} +80 -45
- package/dist/chunk-FGVTDIHT.js.map +1 -0
- package/dist/{chunk-66OPHDFA.cjs → chunk-H3TRVI44.cjs} +50 -50
- package/dist/{chunk-2UKI26JA.js → chunk-LCGOFL7S.js} +15 -10
- package/dist/{chunk-2UKI26JA.js.map → chunk-LCGOFL7S.js.map} +1 -1
- package/dist/{chunk-EU5IGKMP.js → chunk-MDIXI7DM.js} +3 -3
- package/dist/{chunk-EU5IGKMP.js.map → chunk-MDIXI7DM.js.map} +1 -1
- package/dist/{chunk-Z6LAARPB.cjs → chunk-MGN332NY.cjs} +45 -10
- package/dist/{chunk-4PIJC4FD.cjs → chunk-NAMZA4NW.cjs} +14 -14
- package/dist/{chunk-5X52BAZB.js → chunk-NLRSAOCK.js} +5 -5
- package/dist/{chunk-5X52BAZB.js.map → chunk-NLRSAOCK.js.map} +1 -1
- package/dist/{chunk-HOSDMHK6.cjs → chunk-OMUXPNCX.cjs} +27 -26
- package/dist/{chunk-YABGWOAV.js → chunk-QVWNUUMJ.js} +3 -3
- package/dist/{chunk-YABGWOAV.js.map → chunk-QVWNUUMJ.js.map} +1 -1
- package/dist/{chunk-6BVE46K7.js → chunk-RNYETN6X.js} +7 -5
- package/dist/{chunk-6BVE46K7.js.map → chunk-RNYETN6X.js.map} +1 -1
- package/dist/{chunk-77CNOLHY.cjs → chunk-SDFJZNYB.cjs} +3 -3
- package/dist/{chunk-LEICOZYK.cjs → chunk-SQHEZ3JY.cjs} +2 -2
- package/dist/{chunk-D6CIIWCU.cjs → chunk-UWCU6PJY.cjs} +30 -30
- package/dist/{chunk-KQPZTSW3.js → chunk-VQDQBMQY.js} +4 -4
- package/dist/{chunk-KQPZTSW3.js.map → chunk-VQDQBMQY.js.map} +1 -1
- package/dist/{chunk-M77A3EGD.js → chunk-WMM56LIB.js} +8 -5
- package/dist/{chunk-M77A3EGD.js.map → chunk-WMM56LIB.js.map} +1 -1
- package/dist/{chunk-MAS4AEF4.js → chunk-YHAVXOAA.js} +6 -5
- package/dist/chunk-YHAVXOAA.js.map +1 -0
- package/dist/{chunk-J2SVYBTC.js → chunk-YWYTLNAO.js} +4 -4
- package/dist/{chunk-J2SVYBTC.js.map → chunk-YWYTLNAO.js.map} +1 -1
- package/dist/comments.cjs +30 -30
- package/dist/comments.js +3 -3
- package/dist/diagram.cjs +6 -6
- package/dist/diagram.js +3 -3
- package/dist/embed.cjs +5 -5
- package/dist/embed.js +3 -3
- package/dist/emoji-data.cjs +4 -3
- package/dist/emoji-data.js +4 -3
- package/dist/emoji-data.js.map +1 -1
- package/dist/emoji.cjs +6 -6
- package/dist/emoji.js +3 -3
- package/dist/find.cjs +7 -7
- package/dist/find.js +3 -3
- package/dist/headless.cjs +11 -11
- package/dist/headless.js +1 -1
- package/dist/highlight.cjs +3 -3
- package/dist/highlight.js +2 -2
- package/dist/index.cjs +23 -23
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/math.cjs +6 -6
- package/dist/math.js +4 -4
- package/dist/mention.cjs +6 -6
- package/dist/mention.js +4 -4
- package/dist/presence.cjs +12 -12
- package/dist/presence.js +3 -3
- package/dist/source.cjs +2 -2
- package/dist/source.js +2 -2
- package/dist/stats.cjs +6 -6
- package/dist/stats.js +3 -3
- package/dist/styles.css +1 -1
- package/dist/table.cjs +22 -22
- package/dist/table.js +3 -3
- package/dist/toc.cjs +6 -6
- package/dist/toc.js +3 -3
- package/package.json +3 -2
- package/dist/chunk-MAS4AEF4.js.map +0 -1
- package/dist/chunk-NL5J77VD.js.map +0 -1
- package/dist/chunk-ZN5DHNSL.js.map +0 -1
package/dist/emoji.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkOMUXPNCX_cjs = require('./chunk-OMUXPNCX.cjs');
|
|
5
5
|
require('./chunk-2SWLD6R5.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-DZ5XR4O6.cjs');
|
|
7
|
+
require('./chunk-MGN332NY.cjs');
|
|
8
8
|
require('./chunk-ZWTIRGY5.cjs');
|
|
9
9
|
require('./chunk-A6PGQVTR.cjs');
|
|
10
10
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -15,13 +15,13 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "emojiExtension", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkOMUXPNCX_cjs.emojiExtension; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "englishEmojiLabels", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkOMUXPNCX_cjs.englishEmojiLabels; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "loadEmojiData", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkOMUXPNCX_cjs.loadEmojiData; }
|
|
27
27
|
});
|
package/dist/emoji.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { emojiExtension, englishEmojiLabels, loadEmojiData } from './chunk-
|
|
2
|
+
export { emojiExtension, englishEmojiLabels, loadEmojiData } from './chunk-YHAVXOAA.js';
|
|
3
3
|
import './chunk-KTUOPDVO.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-FGVTDIHT.js';
|
|
5
|
+
import './chunk-BNTRGV4A.js';
|
|
6
6
|
import './chunk-DLQCTGC3.js';
|
|
7
7
|
import './chunk-HDJ653LM.js';
|
|
8
8
|
import './chunk-5RBMZGKV.js';
|
package/dist/find.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var chunk5URH2Y2L_cjs = require('./chunk-5URH2Y2L.cjs');
|
|
5
|
+
require('./chunk-DZ5XR4O6.cjs');
|
|
6
|
+
require('./chunk-MGN332NY.cjs');
|
|
7
7
|
require('./chunk-ZWTIRGY5.cjs');
|
|
8
8
|
require('./chunk-A6PGQVTR.cjs');
|
|
9
9
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -14,17 +14,17 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "englishFindLabels", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk5URH2Y2L_cjs.englishFindLabels; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "findExtension", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk5URH2Y2L_cjs.findExtension; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "findMatches", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk5URH2Y2L_cjs.findMatches; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "replaceMatches", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk5URH2Y2L_cjs.replaceMatches; }
|
|
30
30
|
});
|
package/dist/find.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { englishFindLabels, findExtension, findMatches, replaceMatches } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
2
|
+
export { englishFindLabels, findExtension, findMatches, replaceMatches } from './chunk-RNYETN6X.js';
|
|
3
|
+
import './chunk-FGVTDIHT.js';
|
|
4
|
+
import './chunk-BNTRGV4A.js';
|
|
5
5
|
import './chunk-DLQCTGC3.js';
|
|
6
6
|
import './chunk-HDJ653LM.js';
|
|
7
7
|
import './chunk-5RBMZGKV.js';
|
package/dist/headless.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkMGN332NY_cjs = require('./chunk-MGN332NY.cjs');
|
|
5
5
|
var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
|
|
6
6
|
var chunkDJU25PFC_cjs = require('./chunk-DJU25PFC.cjs');
|
|
7
7
|
var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
|
|
@@ -10,43 +10,43 @@ var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "EditableRegion", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkMGN332NY_cjs.EditableRegion; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EditorView", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkMGN332NY_cjs.EditorView; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ViewController", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkMGN332NY_cjs.ViewController; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "caretFromPoint", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkMGN332NY_cjs.caretFromPoint; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "domMapOf", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkMGN332NY_cjs.domMapOf; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "hostKey", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkMGN332NY_cjs.hostKey; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "renderInline", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkMGN332NY_cjs.renderInline; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "useEditorState", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkMGN332NY_cjs.useEditorState; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "useQuoinEditor", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkMGN332NY_cjs.useQuoinEditor; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "useViewController", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkMGN332NY_cjs.useViewController; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "Transaction", {
|
|
52
52
|
enumerable: true,
|
package/dist/headless.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-
|
|
2
|
+
export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-BNTRGV4A.js';
|
|
3
3
|
export { Transaction, addMarkStep, applyTransaction, blockInputRules, blockRangeSelection, coreExtensions, countDoc, countText, createEditor, createPluginKey, createState, defineExtension, fromHTML, getPluginState, insertBlockAfter, insertBlocksStep, insertText, insertTextWithRules, joinBlocksStep, keyName, markInputRules, moveBlocksStep, nodeSelection, normalizeKey, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, setAttrsStep, setBlockType, setIndentStep, splitBlockStep, stepFromJSON, textSelection, toHTML, toMarkdown, toPlainText, toggleMark, typographyRules, undo } from './chunk-5RBMZGKV.js';
|
|
4
4
|
export { diffBlocks, diffInline } from './chunk-CSPCDVCT.js';
|
|
5
5
|
export { PALETTE, atom, coreBlockSpecs, createBlockCodec, createSchema, fromMarkdown, normalizeInline, parseInline, sanitizeHref, serializeInline, text } from './chunk-7Y4B7NHO.js';
|
package/dist/highlight.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunk2SWLD6R5_cjs = require('./chunk-2SWLD6R5.cjs');
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunkDZ5XR4O6_cjs = require('./chunk-DZ5XR4O6.cjs');
|
|
6
|
+
require('./chunk-MGN332NY.cjs');
|
|
7
7
|
require('./chunk-ZWTIRGY5.cjs');
|
|
8
8
|
require('./chunk-A6PGQVTR.cjs');
|
|
9
9
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -16,7 +16,7 @@ var NEAREST = { dockerfile: "docker", html: "markup", xml: "markup", shell: "bas
|
|
|
16
16
|
function grammarName(language) {
|
|
17
17
|
const key = language.trim().toLowerCase();
|
|
18
18
|
if (key === "") return void 0;
|
|
19
|
-
const known =
|
|
19
|
+
const known = chunkDZ5XR4O6_cjs.CODE_LANGUAGES.find(({ id, aliases = [] }) => id === key || aliases.includes(key));
|
|
20
20
|
return known && (NEAREST[known.id] ?? known.id);
|
|
21
21
|
}
|
|
22
22
|
|
package/dist/highlight.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { lazyLoad } from './chunk-KTUOPDVO.js';
|
|
3
|
-
import { CODE_LANGUAGES } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { CODE_LANGUAGES } from './chunk-FGVTDIHT.js';
|
|
4
|
+
import './chunk-BNTRGV4A.js';
|
|
5
5
|
import './chunk-DLQCTGC3.js';
|
|
6
6
|
import './chunk-HDJ653LM.js';
|
|
7
7
|
import './chunk-5RBMZGKV.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkDZ5XR4O6_cjs = require('./chunk-DZ5XR4O6.cjs');
|
|
5
|
+
var chunkMGN332NY_cjs = require('./chunk-MGN332NY.cjs');
|
|
6
6
|
require('./chunk-ZWTIRGY5.cjs');
|
|
7
7
|
var chunkA6PGQVTR_cjs = require('./chunk-A6PGQVTR.cjs');
|
|
8
8
|
var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
|
|
@@ -13,87 +13,87 @@ var chunkI7X7B3WD_cjs = require('./chunk-I7X7B3WD.cjs');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "BlockCanvas", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkDZ5XR4O6_cjs.BlockCanvas; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "FilePickerButton", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkDZ5XR4O6_cjs.FilePickerButton; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "QuoinProvider", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkDZ5XR4O6_cjs.QuoinProvider; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "UploadField", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkDZ5XR4O6_cjs.UploadField; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "coreBlocks", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkDZ5XR4O6_cjs.coreBlocks; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "englishLabels", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkDZ5XR4O6_cjs.englishLabels; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "formatShortcut", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkDZ5XR4O6_cjs.formatShortcut; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "resolveLabels", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkDZ5XR4O6_cjs.resolveLabels; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "useAutosave", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkDZ5XR4O6_cjs.useAutosave; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "useLabels", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkDZ5XR4O6_cjs.useLabels; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "useQuoin", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkDZ5XR4O6_cjs.useQuoin; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "EditableRegion", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkMGN332NY_cjs.EditableRegion; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "EditorView", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkMGN332NY_cjs.EditorView; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "ViewController", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkMGN332NY_cjs.ViewController; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "caretFromPoint", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkMGN332NY_cjs.caretFromPoint; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "domMapOf", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkMGN332NY_cjs.domMapOf; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "hostKey", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkMGN332NY_cjs.hostKey; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "renderInline", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkMGN332NY_cjs.renderInline; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "useEditorState", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkMGN332NY_cjs.useEditorState; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "useQuoinEditor", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkMGN332NY_cjs.useQuoinEditor; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "useViewController", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkMGN332NY_cjs.useViewController; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "blockByType", {
|
|
99
99
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -208,7 +208,7 @@ declare function useQuoin(): QuoinConfig;
|
|
|
208
208
|
declare const englishLabels: Required<QuoinLabels>;
|
|
209
209
|
|
|
210
210
|
/** The English labels with the host's overrides on top. A key the host leaves out, or passes as undefined, stays
|
|
211
|
-
* English. */
|
|
211
|
+
* English, and so does every entry of a record it overrides only part of. */
|
|
212
212
|
declare const resolveLabels: (overrides?: Partial<QuoinLabels>) => QuoinLabels;
|
|
213
213
|
|
|
214
214
|
type BlockMenuAction = {
|
package/dist/index.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ declare function useQuoin(): QuoinConfig;
|
|
|
208
208
|
declare const englishLabels: Required<QuoinLabels>;
|
|
209
209
|
|
|
210
210
|
/** The English labels with the host's overrides on top. A key the host leaves out, or passes as undefined, stays
|
|
211
|
-
* English. */
|
|
211
|
+
* English, and so does every entry of a record it overrides only part of. */
|
|
212
212
|
declare const resolveLabels: (overrides?: Partial<QuoinLabels>) => QuoinLabels;
|
|
213
213
|
|
|
214
214
|
type BlockMenuAction = {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { BlockCanvas, FilePickerButton, QuoinProvider, UploadField, coreBlocks, englishLabels, formatShortcut, resolveLabels, useAutosave, useLabels, useQuoin } from './chunk-
|
|
3
|
-
export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-
|
|
2
|
+
export { BlockCanvas, FilePickerButton, QuoinProvider, UploadField, coreBlocks, englishLabels, formatShortcut, resolveLabels, useAutosave, useLabels, useQuoin } from './chunk-FGVTDIHT.js';
|
|
3
|
+
export { EditableRegion, EditorView, ViewController, caretFromPoint, domMapOf, hostKey, renderInline, useEditorState, useQuoinEditor, useViewController } from './chunk-BNTRGV4A.js';
|
|
4
4
|
import './chunk-DLQCTGC3.js';
|
|
5
5
|
export { blockByType, defineBlock, paletteBlocks } from './chunk-HDJ653LM.js';
|
|
6
6
|
export { Transaction, addMarkStep, applyTransaction, blockInputRules, blockRangeSelection, coreExtensions, countDoc, countText, createEditor, createPluginKey, createState, defineExtension, fromHTML, getPluginState, insertBlockAfter, insertBlocksStep, insertText, insertTextWithRules, joinBlocksStep, keyName, markInputRules, moveBlocksStep, nodeSelection, normalizeKey, redo, removeBlocksStep, removeMarkStep, replaceBlockStep, replaceDocStep, replaceInlineStep, setAttrsStep, setBlockType, setIndentStep, splitBlockStep, stepFromJSON, textSelection, toHTML, toMarkdown, toPlainText, toggleMark, typographyRules, undo } from './chunk-5RBMZGKV.js';
|
package/dist/math.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunkUWCU6PJY_cjs = require('./chunk-UWCU6PJY.cjs');
|
|
5
|
+
require('./chunk-55MN4QZU.cjs');
|
|
6
6
|
require('./chunk-YEDPBYO5.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-DZ5XR4O6.cjs');
|
|
8
|
+
require('./chunk-MGN332NY.cjs');
|
|
9
9
|
require('./chunk-ZWTIRGY5.cjs');
|
|
10
10
|
require('./chunk-A6PGQVTR.cjs');
|
|
11
11
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -16,9 +16,9 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "englishMathLabels", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkUWCU6PJY_cjs.englishMathLabels; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "mathExtension", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkUWCU6PJY_cjs.mathExtension; }
|
|
24
24
|
});
|
package/dist/math.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { englishMathLabels, mathExtension } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
export { englishMathLabels, mathExtension } from './chunk-NLRSAOCK.js';
|
|
3
|
+
import './chunk-WMM56LIB.js';
|
|
4
4
|
import './chunk-LSI4RMTY.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-FGVTDIHT.js';
|
|
6
|
+
import './chunk-BNTRGV4A.js';
|
|
7
7
|
import './chunk-DLQCTGC3.js';
|
|
8
8
|
import './chunk-HDJ653LM.js';
|
|
9
9
|
import './chunk-5RBMZGKV.js';
|
package/dist/mention.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunk4EJJ4ZNC_cjs = require('./chunk-4EJJ4ZNC.cjs');
|
|
5
|
+
require('./chunk-55MN4QZU.cjs');
|
|
6
6
|
require('./chunk-LM3DHROX.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-DZ5XR4O6.cjs');
|
|
8
|
+
require('./chunk-MGN332NY.cjs');
|
|
9
9
|
require('./chunk-ZWTIRGY5.cjs');
|
|
10
10
|
require('./chunk-A6PGQVTR.cjs');
|
|
11
11
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -16,9 +16,9 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "englishMentionLabels", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk4EJJ4ZNC_cjs.englishMentionLabels; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "mentionExtension", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk4EJJ4ZNC_cjs.mentionExtension; }
|
|
24
24
|
});
|
package/dist/mention.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { englishMentionLabels, mentionExtension } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
export { englishMentionLabels, mentionExtension } from './chunk-77THE3KY.js';
|
|
3
|
+
import './chunk-WMM56LIB.js';
|
|
4
4
|
import './chunk-DBOZFNWU.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-FGVTDIHT.js';
|
|
6
|
+
import './chunk-BNTRGV4A.js';
|
|
7
7
|
import './chunk-DLQCTGC3.js';
|
|
8
8
|
import './chunk-HDJ653LM.js';
|
|
9
9
|
import './chunk-5RBMZGKV.js';
|
package/dist/presence.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkLE5XMIFJ_cjs = require('./chunk-LE5XMIFJ.cjs');
|
|
5
5
|
var chunkPURYVDC3_cjs = require('./chunk-PURYVDC3.cjs');
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
var
|
|
6
|
+
var chunk3B5VEXVQ_cjs = require('./chunk-3B5VEXVQ.cjs');
|
|
7
|
+
require('./chunk-DZ5XR4O6.cjs');
|
|
8
|
+
var chunkMGN332NY_cjs = require('./chunk-MGN332NY.cjs');
|
|
9
9
|
var chunkZWTIRGY5_cjs = require('./chunk-ZWTIRGY5.cjs');
|
|
10
10
|
var chunkA6PGQVTR_cjs = require('./chunk-A6PGQVTR.cjs');
|
|
11
11
|
var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
|
|
@@ -49,8 +49,8 @@ function followLayout(controller, root, place2) {
|
|
|
49
49
|
observer.observe(root);
|
|
50
50
|
const unsubscribe = controller.editor.subscribe(later);
|
|
51
51
|
const fonts = root.ownerDocument.fonts;
|
|
52
|
-
const unlistenScroll =
|
|
53
|
-
const unlistenFonts = fonts &&
|
|
52
|
+
const unlistenScroll = chunkMGN332NY_cjs.listen(root, { scroll: update }, { capture: true, passive: true });
|
|
53
|
+
const unlistenFonts = fonts && chunkMGN332NY_cjs.listen(fonts, { loadingdone: later });
|
|
54
54
|
return () => {
|
|
55
55
|
view.cancelAnimationFrame(frame);
|
|
56
56
|
unsubscribe();
|
|
@@ -101,9 +101,9 @@ function place(controller, root, group) {
|
|
|
101
101
|
group.style.transform = `translateY(${top}px)`;
|
|
102
102
|
}
|
|
103
103
|
function PresenceAvatars({ controller, labels }) {
|
|
104
|
-
const groups =
|
|
104
|
+
const groups = chunkMGN332NY_cjs.useEditorState(controller, groupsOf, chunkI7X7B3WD_cjs.sameValue);
|
|
105
105
|
const box = react.useRef(null);
|
|
106
|
-
|
|
106
|
+
chunkMGN332NY_cjs.useIsomorphicLayoutEffect(() => {
|
|
107
107
|
const root = controller.root;
|
|
108
108
|
if (!root || box.current === null) return void 0;
|
|
109
109
|
const children = Array.from(box.current.children);
|
|
@@ -336,7 +336,7 @@ function startPresence(editor, collaboration, awareness, link, sharedOf2) {
|
|
|
336
336
|
|
|
337
337
|
// src/extensions/presence/place-caret.ts
|
|
338
338
|
function caretBox(host, offset) {
|
|
339
|
-
const map =
|
|
339
|
+
const map = chunkMGN332NY_cjs.domMapOf(host);
|
|
340
340
|
if (!map || !host.isConnected) return null;
|
|
341
341
|
const doc = host.ownerDocument;
|
|
342
342
|
const spans = [
|
|
@@ -386,9 +386,9 @@ var shownOf = (state) => chunkFK7EBZPX_cjs.getPluginState(state, presenceKey).fl
|
|
|
386
386
|
({ client, name, color, idle, selection }) => selection?.kind === "text" ? [{ client, name, color, idle }] : []
|
|
387
387
|
);
|
|
388
388
|
function RemoteCarets({ controller, labels }) {
|
|
389
|
-
const shown =
|
|
389
|
+
const shown = chunkMGN332NY_cjs.useEditorState(controller, shownOf, chunkI7X7B3WD_cjs.sameValue);
|
|
390
390
|
const box = react.useRef(null);
|
|
391
|
-
|
|
391
|
+
chunkMGN332NY_cjs.useIsomorphicLayoutEffect(() => {
|
|
392
392
|
const root = controller.root;
|
|
393
393
|
if (!root || box.current === null) return void 0;
|
|
394
394
|
const carets = Array.from(box.current.children);
|
|
@@ -410,9 +410,9 @@ function usePresenceActivity(controller, link) {
|
|
|
410
410
|
react.useEffect(() => {
|
|
411
411
|
const doc = controller.root?.ownerDocument;
|
|
412
412
|
if (!doc) return void 0;
|
|
413
|
-
let focused =
|
|
413
|
+
let focused = chunk3B5VEXVQ_cjs.ownsNode(controller, doc.activeElement);
|
|
414
414
|
const update = () => setActive(link, focused && !controller.readOnly);
|
|
415
|
-
const stopFocus =
|
|
415
|
+
const stopFocus = chunk3B5VEXVQ_cjs.watchCanvasFocus(controller, doc, (inside2) => {
|
|
416
416
|
focused = inside2;
|
|
417
417
|
update();
|
|
418
418
|
});
|
package/dist/presence.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { clipBoxes } from './chunk-MQUCCSWG.js';
|
|
3
3
|
import { sharedOf, sharedChange, absolute, relative } from './chunk-UDBLZILE.js';
|
|
4
|
-
import { ownsNode, watchCanvasFocus } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import { useEditorState, useIsomorphicLayoutEffect, listen, domMapOf } from './chunk-
|
|
4
|
+
import { ownsNode, watchCanvasFocus } from './chunk-C4SRLMQJ.js';
|
|
5
|
+
import './chunk-FGVTDIHT.js';
|
|
6
|
+
import { useEditorState, useIsomorphicLayoutEffect, listen, domMapOf } from './chunk-BNTRGV4A.js';
|
|
7
7
|
import { mergeLabels } from './chunk-DLQCTGC3.js';
|
|
8
8
|
import { devWarn } from './chunk-HDJ653LM.js';
|
|
9
9
|
import { createPluginKey, defineExtension, getPluginState, mapSelection, sameSelection, headBlockId, markRanges, nodeSelection, blockRangeSelection, validateSelection, textSelection } from './chunk-5RBMZGKV.js';
|
package/dist/source.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
4
|
+
require('./chunk-DZ5XR4O6.cjs');
|
|
5
|
+
require('./chunk-MGN332NY.cjs');
|
|
6
6
|
var chunkZWTIRGY5_cjs = require('./chunk-ZWTIRGY5.cjs');
|
|
7
7
|
require('./chunk-A6PGQVTR.cjs');
|
|
8
8
|
var chunkFK7EBZPX_cjs = require('./chunk-FK7EBZPX.cjs');
|
package/dist/source.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
import './chunk-FGVTDIHT.js';
|
|
3
|
+
import './chunk-BNTRGV4A.js';
|
|
4
4
|
import { mergeLabels } from './chunk-DLQCTGC3.js';
|
|
5
5
|
import './chunk-HDJ653LM.js';
|
|
6
6
|
import { toMarkdown, selectedBlockIds } from './chunk-5RBMZGKV.js';
|
package/dist/stats.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkSQHEZ3JY_cjs = require('./chunk-SQHEZ3JY.cjs');
|
|
5
5
|
require('./chunk-YEDPBYO5.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-DZ5XR4O6.cjs');
|
|
7
|
+
require('./chunk-MGN332NY.cjs');
|
|
8
8
|
require('./chunk-ZWTIRGY5.cjs');
|
|
9
9
|
require('./chunk-A6PGQVTR.cjs');
|
|
10
10
|
require('./chunk-FK7EBZPX.cjs');
|
|
@@ -15,13 +15,13 @@ require('./chunk-I7X7B3WD.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "englishStatsLabels", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkSQHEZ3JY_cjs.englishStatsLabels; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "statsExtension", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkSQHEZ3JY_cjs.statsExtension; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "useEditorStats", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkSQHEZ3JY_cjs.useEditorStats; }
|
|
27
27
|
});
|
package/dist/stats.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { englishStatsLabels, statsExtension, useEditorStats } from './chunk-
|
|
2
|
+
export { englishStatsLabels, statsExtension, useEditorStats } from './chunk-QVWNUUMJ.js';
|
|
3
3
|
import './chunk-LSI4RMTY.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-FGVTDIHT.js';
|
|
5
|
+
import './chunk-BNTRGV4A.js';
|
|
6
6
|
import './chunk-DLQCTGC3.js';
|
|
7
7
|
import './chunk-HDJ653LM.js';
|
|
8
8
|
import './chunk-5RBMZGKV.js';
|