@milkdown/utils
Advanced tools
Comparing version 7.6.2 to 7.6.3
@@ -1,2 +0,2 @@ | ||
import { createCmdKey as O, commandsTimerCtx as I, CommandsReady as R, commandsCtx as d, editorStateTimerCtx as A, SchemaReady as l, inputRulesCtx as C, schemaCtx as g, schemaTimerCtx as E, marksCtx as w, nodesCtx as k, prosePluginsCtx as p, editorViewTimerCtx as D, nodeViewCtx as $, markViewCtx as v, InitReady as N, remarkPluginsCtx as b, editorViewCtx as f, serializerCtx as H, parserCtx as M, editorStateOptionsCtx as L } from "@milkdown/core"; | ||
import { createCmdKey as O, commandsTimerCtx as I, CommandsReady as R, commandsCtx as d, editorStateTimerCtx as A, SchemaReady as l, inputRulesCtx as C, schemaCtx as g, schemaTimerCtx as E, marksCtx as w, nodesCtx as k, prosePluginsCtx as p, editorViewTimerCtx as D, nodeViewCtx as v, markViewCtx as $, InitReady as N, remarkPluginsCtx as b, editorViewCtx as f, serializerCtx as H, parserCtx as M, editorStateOptionsCtx as L } from "@milkdown/core"; | ||
import { createTimer as F, createSlice as U } from "@milkdown/ctx"; | ||
@@ -189,10 +189,10 @@ import { customAlphabet as q } from "nanoid"; | ||
const e = o(t); | ||
return n.type(t) instanceof T ? t.update($, (a) => [ | ||
return n.type(t) instanceof T ? t.update(v, (a) => [ | ||
...a, | ||
[n.id, e] | ||
]) : t.update(v, (a) => [ | ||
]) : t.update($, (a) => [ | ||
...a, | ||
[n.id, e] | ||
]), r.view = e, r.type = n, () => { | ||
n.type(t) instanceof T ? t.update($, (a) => a.filter((s) => s[0] !== n.id)) : t.update(v, (a) => a.filter((s) => s[0] !== n.id)); | ||
n.type(t) instanceof T ? t.update(v, (a) => a.filter((s) => s[0] !== n.id)) : t.update($, (a) => a.filter((s) => s[0] !== n.id)); | ||
}; | ||
@@ -207,10 +207,10 @@ }; | ||
const a = await o(t); | ||
return n.type(t) instanceof T ? t.update($, (s) => [ | ||
return n.type(t) instanceof T ? t.update(v, (s) => [ | ||
...s, | ||
[n.id, a] | ||
]) : t.update(v, (s) => [ | ||
]) : t.update($, (s) => [ | ||
...s, | ||
[n.id, a] | ||
]), e.view = a, e.type = n, () => { | ||
n.type(t) instanceof T ? t.update($, (s) => s.filter((i) => i[0] !== n.id)) : t.update(v, (s) => s.filter((i) => i[0] !== n.id)); | ||
n.type(t) instanceof T ? t.update(v, (s) => s.filter((i) => i[0] !== n.id)) : t.update($, (s) => s.filter((i) => i[0] !== n.id)); | ||
}; | ||
@@ -282,3 +282,3 @@ }, | ||
} | ||
function $e() { | ||
function ve() { | ||
return (n) => { | ||
@@ -291,3 +291,3 @@ const o = document.createElement("div"), r = n.get(g), t = n.get(f), e = B.fromSchema(r).serializeFragment( | ||
} | ||
function ve() { | ||
function $e() { | ||
return (n) => { | ||
@@ -390,4 +390,4 @@ const o = n.get(f); | ||
Ce as forceUpdate, | ||
$e as getHTML, | ||
ve as getMarkdown, | ||
ve as getHTML, | ||
$e as getMarkdown, | ||
Te as insert, | ||
@@ -394,0 +394,0 @@ J as nanoid, |
{ | ||
"name": "@milkdown/utils", | ||
"type": "module", | ||
"version": "7.6.2", | ||
"version": "7.6.3", | ||
"license": "MIT", | ||
@@ -30,11 +30,11 @@ "repository": { | ||
"dependencies": { | ||
"nanoid": "^5.0.0", | ||
"nanoid": "^5.0.9", | ||
"tslib": "^2.8.1", | ||
"@milkdown/exception": "7.6.2" | ||
"@milkdown/exception": "7.6.3" | ||
}, | ||
"devDependencies": { | ||
"@milkdown/core": "7.6.2", | ||
"@milkdown/ctx": "7.6.2", | ||
"@milkdown/prose": "7.6.2", | ||
"@milkdown/transformer": "7.6.2" | ||
"@milkdown/core": "7.6.3", | ||
"@milkdown/ctx": "7.6.3", | ||
"@milkdown/prose": "7.6.3", | ||
"@milkdown/transformer": "7.6.3" | ||
}, | ||
@@ -41,0 +41,0 @@ "nx": { |
- Removed@milkdown/exception@7.6.2(transitive)
Updated@milkdown/exception@7.6.3
Updatednanoid@^5.0.9