@jvs-milkdown/plugin-cursor 1.0.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.
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/lib/__internal__/with-meta.d.ts +3 -0
- package/lib/__internal__/with-meta.d.ts.map +1 -0
- package/lib/drop-indicator/drop-indicator-dom.d.ts +2 -0
- package/lib/drop-indicator/drop-indicator-dom.d.ts.map +1 -0
- package/lib/drop-indicator/index.d.ts +4 -0
- package/lib/drop-indicator/index.d.ts.map +1 -0
- package/lib/drop-indicator/plugin.d.ts +2 -0
- package/lib/drop-indicator/plugin.d.ts.map +1 -0
- package/lib/drop-indicator/state.d.ts +10 -0
- package/lib/drop-indicator/state.d.ts.map +1 -0
- package/lib/gap-cursor.d.ts +2 -0
- package/lib/gap-cursor.d.ts.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +118 -0
- package/lib/index.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +37 -0
- package/src/__internal__/with-meta.ts +15 -0
- package/src/drop-indicator/drop-indicator-dom.ts +100 -0
- package/src/drop-indicator/index.ts +3 -0
- package/src/drop-indicator/plugin.ts +30 -0
- package/src/drop-indicator/state.ts +42 -0
- package/src/gap-cursor.ts +11 -0
- package/src/index.ts +26 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020-present Mirone
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @jvs-milkdown/plugin-cursor
|
|
2
|
+
|
|
3
|
+
The cursor plugin of [milkdown](https://milkdown.dev/).
|
|
4
|
+
|
|
5
|
+
# Official Documentation
|
|
6
|
+
|
|
7
|
+
Documentation can be found on the [Milkdown website](https://milkdown.dev/).
|
|
8
|
+
|
|
9
|
+
# License
|
|
10
|
+
|
|
11
|
+
Milkdown is open sourced software licensed under [MIT license](https://github.com/Milkdown/milkdown/blob/main/LICENSE).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-meta.d.ts","sourceRoot":"","sources":["../../src/__internal__/with-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAE7D,wBAAgB,QAAQ,CAAC,CAAC,SAAS,cAAc,EAC/C,MAAM,EAAE,CAAC,EACT,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,GAC9C,CAAC,CASH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop-indicator-dom.d.ts","sourceRoot":"","sources":["../../src/drop-indicator/drop-indicator-dom.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,sBAAsB,sCAmClC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/drop-indicator/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/drop-indicator/plugin.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,mBAAmB,sCAe9B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ShowHandlerOptions } from 'prosemirror-drop-indicator';
|
|
2
|
+
export type DropIndicatorState = ShowHandlerOptions | null;
|
|
3
|
+
export declare const dropIndicatorState: import("@jvs-milkdown/utils").$Ctx<DropIndicatorState, "dropIndicatorState">;
|
|
4
|
+
export type dropIndicatorConfig = {
|
|
5
|
+
width: number;
|
|
6
|
+
color: string | false;
|
|
7
|
+
class: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const dropIndicatorConfig: import("@jvs-milkdown/utils").$Ctx<dropIndicatorConfig, "dropIndicatorConfig">;
|
|
10
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/drop-indicator/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,GAAG,IAAI,CAAA;AAG1D,eAAO,MAAM,kBAAkB,8EAG9B,CAAA;AAOD,MAAM,MAAM,mBAAmB,GAAG;IAEhC,KAAK,EAAE,MAAM,CAAA;IAEb,KAAK,EAAE,MAAM,GAAG,KAAK,CAAA;IAErB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAGD,eAAO,MAAM,mBAAmB,gFAO/B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gap-cursor.d.ts","sourceRoot":"","sources":["../src/gap-cursor.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,sCAA4B,CAAA"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MilkdownPlugin } from '@jvs-milkdown/ctx';
|
|
2
|
+
import { dropIndicatorConfig } from './drop-indicator';
|
|
3
|
+
export declare const dropCursorConfig: import("@jvs-milkdown/utils").$Ctx<dropIndicatorConfig, "dropIndicatorConfig">;
|
|
4
|
+
export * from './drop-indicator';
|
|
5
|
+
export * from './gap-cursor';
|
|
6
|
+
export declare const cursor: MilkdownPlugin[];
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,OAAO,EACL,mBAAmB,EAGpB,MAAM,kBAAkB,CAAA;AAOzB,eAAO,MAAM,gBAAgB,gFAAsB,CAAA;AAEnD,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAG5B,eAAO,MAAM,MAAM,EAAE,cAAc,EAM3B,CAAA"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Plugin, PluginKey } from "@jvs-milkdown/prose/state";
|
|
2
|
+
import { $ctx, $prose } from "@jvs-milkdown/utils";
|
|
3
|
+
import { createDropIndicatorPlugin } from "prosemirror-drop-indicator";
|
|
4
|
+
import { gapCursor } from "@jvs-milkdown/prose/gapcursor";
|
|
5
|
+
//#region src/__internal__/with-meta.ts
|
|
6
|
+
function withMeta(plugin, meta) {
|
|
7
|
+
Object.assign(plugin, { meta: {
|
|
8
|
+
package: "@jvs-milkdown/plugin-cursor",
|
|
9
|
+
...meta
|
|
10
|
+
} });
|
|
11
|
+
return plugin;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/drop-indicator/state.ts
|
|
15
|
+
var dropIndicatorState = $ctx(null, "dropIndicatorState");
|
|
16
|
+
withMeta(dropIndicatorState, { displayName: "Ctx<dropIndicatorState>" });
|
|
17
|
+
var dropIndicatorConfig = $ctx({
|
|
18
|
+
width: 2,
|
|
19
|
+
color: false,
|
|
20
|
+
class: "milkdown-drop-indicator"
|
|
21
|
+
}, "dropIndicatorConfig");
|
|
22
|
+
withMeta(dropIndicatorConfig, { displayName: "Ctx<dropIndicatorConfig>" });
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/drop-indicator/drop-indicator-dom.ts
|
|
25
|
+
var key = new PluginKey("MILKDOWN_DROP_INDICATOR_DOM");
|
|
26
|
+
var dropIndicatorDOMPlugin = $prose((ctx) => new Plugin({
|
|
27
|
+
key,
|
|
28
|
+
view: (view) => {
|
|
29
|
+
const config = ctx.get(dropIndicatorConfig.key);
|
|
30
|
+
const dom = document.createElement("div");
|
|
31
|
+
Object.assign(dom.style, {
|
|
32
|
+
position: "fixed",
|
|
33
|
+
pointerEvents: "none",
|
|
34
|
+
display: "none",
|
|
35
|
+
backgroundColor: config.color,
|
|
36
|
+
top: "0",
|
|
37
|
+
left: "0"
|
|
38
|
+
});
|
|
39
|
+
dom.classList.add(config.class);
|
|
40
|
+
dom.classList.add("milkdown-drop-indicator");
|
|
41
|
+
view.dom.parentNode?.appendChild(dom);
|
|
42
|
+
const stateSlice = ctx.use(dropIndicatorState.key);
|
|
43
|
+
const onUpdate = (state) => {
|
|
44
|
+
renderIndicator(dom, state, config);
|
|
45
|
+
};
|
|
46
|
+
stateSlice.on(onUpdate);
|
|
47
|
+
return { destroy: () => {
|
|
48
|
+
stateSlice.off(onUpdate);
|
|
49
|
+
dom.remove();
|
|
50
|
+
} };
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
53
|
+
withMeta(dropIndicatorDOMPlugin, { displayName: "Prose<dropIndicatorDOM>" });
|
|
54
|
+
function renderIndicator(dom, state, config) {
|
|
55
|
+
if (!state) {
|
|
56
|
+
Object.assign(dom.style, { display: "none" });
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const { line } = state;
|
|
60
|
+
const { width: lineWidth } = config;
|
|
61
|
+
const { p1: { x: x1, y: y1 }, p2: { x: x2, y: y2 } } = line;
|
|
62
|
+
const horizontal = y1 === y2;
|
|
63
|
+
let width;
|
|
64
|
+
let height;
|
|
65
|
+
let top = y1;
|
|
66
|
+
let left = x1;
|
|
67
|
+
if (horizontal) {
|
|
68
|
+
width = x2 - x1;
|
|
69
|
+
height = lineWidth;
|
|
70
|
+
top -= lineWidth / 2;
|
|
71
|
+
} else {
|
|
72
|
+
width = lineWidth;
|
|
73
|
+
height = y2 - y1;
|
|
74
|
+
left -= lineWidth / 2;
|
|
75
|
+
}
|
|
76
|
+
top = Math.round(top);
|
|
77
|
+
left = Math.round(left);
|
|
78
|
+
Object.assign(dom.style, {
|
|
79
|
+
display: "block",
|
|
80
|
+
width: `${width}px`,
|
|
81
|
+
height: `${height}px`,
|
|
82
|
+
transform: `translate(${left}px, ${top}px)`
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/drop-indicator/plugin.ts
|
|
87
|
+
var dropIndicatorPlugin = $prose((ctx) => {
|
|
88
|
+
const onShow = (options) => {
|
|
89
|
+
ctx.set(dropIndicatorState.key, options);
|
|
90
|
+
};
|
|
91
|
+
const onHide = () => {
|
|
92
|
+
ctx.set(dropIndicatorState.key, null);
|
|
93
|
+
};
|
|
94
|
+
return createDropIndicatorPlugin({
|
|
95
|
+
onShow,
|
|
96
|
+
onHide,
|
|
97
|
+
onDrag: () => true
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
withMeta(dropIndicatorPlugin, { displayName: "Prose<dropIndicator>" });
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/gap-cursor.ts
|
|
103
|
+
var gapCursorPlugin = $prose(() => gapCursor());
|
|
104
|
+
withMeta(gapCursorPlugin, { displayName: "Prose<gapCursor>" });
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/index.ts
|
|
107
|
+
var dropCursorConfig = dropIndicatorConfig;
|
|
108
|
+
var cursor = [
|
|
109
|
+
gapCursorPlugin,
|
|
110
|
+
dropIndicatorConfig,
|
|
111
|
+
dropIndicatorState,
|
|
112
|
+
dropIndicatorDOMPlugin,
|
|
113
|
+
dropIndicatorPlugin
|
|
114
|
+
].flat();
|
|
115
|
+
//#endregion
|
|
116
|
+
export { cursor, dropCursorConfig, dropIndicatorConfig, dropIndicatorDOMPlugin, dropIndicatorPlugin, dropIndicatorState, gapCursorPlugin };
|
|
117
|
+
|
|
118
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/__internal__/with-meta.ts","../src/drop-indicator/state.ts","../src/drop-indicator/drop-indicator-dom.ts","../src/drop-indicator/plugin.ts","../src/gap-cursor.ts","../src/index.ts"],"sourcesContent":["import type { Meta, MilkdownPlugin } from '@jvs-milkdown/ctx'\n\nexport function withMeta<T extends MilkdownPlugin>(\n plugin: T,\n meta: Partial<Meta> & Pick<Meta, 'displayName'>\n): T {\n Object.assign(plugin, {\n meta: {\n package: '@jvs-milkdown/plugin-cursor',\n ...meta,\n },\n })\n\n return plugin\n}\n","import type { ShowHandlerOptions } from 'prosemirror-drop-indicator'\n\nimport { $ctx } from '@jvs-milkdown/utils'\n\nimport { withMeta } from '../__internal__/with-meta'\n\n/// @internal\nexport type DropIndicatorState = ShowHandlerOptions | null\n\n/// The drop indicator state to store the current drop indicator information.\nexport const dropIndicatorState = $ctx(\n null as DropIndicatorState,\n 'dropIndicatorState'\n)\n\nwithMeta(dropIndicatorState, {\n displayName: 'Ctx<dropIndicatorState>',\n})\n\n/// Configuration for the drop indicator.\nexport type dropIndicatorConfig = {\n /// The width of the drop indicator in pixels.\n width: number\n /// The color of the drop indicator.\n color: string | false\n /// The CSS class of the drop indicator.\n class: string\n}\n\n/// The drop indicator configuration with default values.\nexport const dropIndicatorConfig = $ctx(\n {\n width: 2,\n color: false,\n class: 'milkdown-drop-indicator',\n } as dropIndicatorConfig,\n 'dropIndicatorConfig'\n)\n\nwithMeta(dropIndicatorConfig, {\n displayName: 'Ctx<dropIndicatorConfig>',\n})\n","import type { Ctx } from '@jvs-milkdown/ctx'\n\nimport { Plugin, PluginKey } from '@jvs-milkdown/prose/state'\nimport { $prose } from '@jvs-milkdown/utils'\n\nimport { withMeta } from '../__internal__/with-meta'\nimport {\n dropIndicatorConfig,\n dropIndicatorState,\n type DropIndicatorState,\n} from './state'\n\nconst key = new PluginKey('MILKDOWN_DROP_INDICATOR_DOM')\n\n/// The drop indicator DOM plugin to render the drop indicator as a DOM element.\nexport const dropIndicatorDOMPlugin = $prose(\n (ctx: Ctx) =>\n new Plugin({\n key,\n view: (view) => {\n const config = ctx.get(dropIndicatorConfig.key)\n const dom = document.createElement('div')\n Object.assign(dom.style, {\n position: 'fixed',\n pointerEvents: 'none',\n display: 'none',\n backgroundColor: config.color,\n top: '0',\n left: '0',\n })\n dom.classList.add(config.class)\n dom.classList.add('milkdown-drop-indicator')\n\n view.dom.parentNode?.appendChild(dom)\n const stateSlice = ctx.use(dropIndicatorState.key)\n\n const onUpdate = (state: DropIndicatorState) => {\n renderIndicator(dom, state, config)\n }\n\n stateSlice.on(onUpdate)\n\n return {\n destroy: () => {\n stateSlice.off(onUpdate)\n dom.remove()\n },\n }\n },\n })\n)\n\nwithMeta(dropIndicatorDOMPlugin, {\n displayName: 'Prose<dropIndicatorDOM>',\n})\n\nfunction renderIndicator(\n dom: HTMLDivElement,\n state: DropIndicatorState,\n config: dropIndicatorConfig\n) {\n if (!state) {\n Object.assign(dom.style, { display: 'none' })\n return\n }\n\n const { line } = state\n const { width: lineWidth } = config\n\n const {\n p1: { x: x1, y: y1 },\n p2: { x: x2, y: y2 },\n } = line\n const horizontal = y1 === y2\n\n let width: number\n let height: number\n let top: number = y1\n let left: number = x1\n\n if (horizontal) {\n width = x2 - x1\n height = lineWidth\n top -= lineWidth / 2\n } else {\n width = lineWidth\n height = y2 - y1\n left -= lineWidth / 2\n }\n\n top = Math.round(top)\n left = Math.round(left)\n\n Object.assign(dom.style, {\n display: 'block',\n width: `${width}px`,\n height: `${height}px`,\n transform: `translate(${left}px, ${top}px)`,\n })\n}\n","import { $prose } from '@jvs-milkdown/utils'\nimport {\n createDropIndicatorPlugin,\n type ShowHandler,\n} from 'prosemirror-drop-indicator'\n\nimport { withMeta } from '../__internal__/with-meta'\nimport { dropIndicatorState } from './state'\n\n/// Drop indicator plugin to update the drop indicator state.\nexport const dropIndicatorPlugin = $prose((ctx) => {\n const onShow: ShowHandler = (options) => {\n ctx.set(dropIndicatorState.key, options)\n }\n const onHide: VoidFunction = () => {\n ctx.set(dropIndicatorState.key, null)\n }\n\n const plugin = createDropIndicatorPlugin({\n onShow,\n onHide,\n onDrag: () => true,\n })\n\n return plugin\n})\n\nwithMeta(dropIndicatorPlugin, {\n displayName: 'Prose<dropIndicator>',\n})\n","import { gapCursor } from '@jvs-milkdown/prose/gapcursor'\nimport { $prose } from '@jvs-milkdown/utils'\n\nimport { withMeta } from './__internal__/with-meta'\n\n/// This plugin wraps [gap cursor](https://github.com/ProseMirror/prosemirror-gapcursor).\nexport const gapCursorPlugin = $prose(() => gapCursor())\n\nwithMeta(gapCursorPlugin, {\n displayName: 'Prose<gapCursor>',\n})\n","import type { MilkdownPlugin } from '@jvs-milkdown/ctx'\n\nimport {\n dropIndicatorConfig,\n dropIndicatorDOMPlugin,\n dropIndicatorState,\n} from './drop-indicator'\nimport { dropIndicatorPlugin } from './drop-indicator/plugin'\nimport { gapCursorPlugin } from './gap-cursor'\n\n/// @deprecated\n/// Use `dropIndicatorConfig` instead.\n/// Backward compatibility export for `dropCursorConfig`\nexport const dropCursorConfig = dropIndicatorConfig\n\nexport * from './drop-indicator'\nexport * from './gap-cursor'\n\n/// All plugins exported by this package.\nexport const cursor: MilkdownPlugin[] = [\n gapCursorPlugin,\n dropIndicatorConfig,\n dropIndicatorState,\n dropIndicatorDOMPlugin,\n dropIndicatorPlugin,\n].flat()\n"],"mappings":";;;;;AAEA,SAAgB,SACd,QACA,MACG;AACH,QAAO,OAAO,QAAQ,EACpB,MAAM;EACJ,SAAS;EACT,GAAG;EACJ,EACF,CAAC;AAEF,QAAO;;;;ACHT,IAAa,qBAAqB,KAChC,MACA,qBACD;AAED,SAAS,oBAAoB,EAC3B,aAAa,2BACd,CAAC;AAaF,IAAa,sBAAsB,KACjC;CACE,OAAO;CACP,OAAO;CACP,OAAO;CACR,EACD,sBACD;AAED,SAAS,qBAAqB,EAC5B,aAAa,4BACd,CAAC;;;AC7BF,IAAM,MAAM,IAAI,UAAU,8BAA8B;AAGxD,IAAa,yBAAyB,QACnC,QACC,IAAI,OAAO;CACT;CACA,OAAO,SAAS;EACd,MAAM,SAAS,IAAI,IAAI,oBAAoB,IAAI;EAC/C,MAAM,MAAM,SAAS,cAAc,MAAM;AACzC,SAAO,OAAO,IAAI,OAAO;GACvB,UAAU;GACV,eAAe;GACf,SAAS;GACT,iBAAiB,OAAO;GACxB,KAAK;GACL,MAAM;GACP,CAAC;AACF,MAAI,UAAU,IAAI,OAAO,MAAM;AAC/B,MAAI,UAAU,IAAI,0BAA0B;AAE5C,OAAK,IAAI,YAAY,YAAY,IAAI;EACrC,MAAM,aAAa,IAAI,IAAI,mBAAmB,IAAI;EAElD,MAAM,YAAY,UAA8B;AAC9C,mBAAgB,KAAK,OAAO,OAAO;;AAGrC,aAAW,GAAG,SAAS;AAEvB,SAAO,EACL,eAAe;AACb,cAAW,IAAI,SAAS;AACxB,OAAI,QAAQ;KAEf;;CAEJ,CAAC,CACL;AAED,SAAS,wBAAwB,EAC/B,aAAa,2BACd,CAAC;AAEF,SAAS,gBACP,KACA,OACA,QACA;AACA,KAAI,CAAC,OAAO;AACV,SAAO,OAAO,IAAI,OAAO,EAAE,SAAS,QAAQ,CAAC;AAC7C;;CAGF,MAAM,EAAE,SAAS;CACjB,MAAM,EAAE,OAAO,cAAc;CAE7B,MAAM,EACJ,IAAI,EAAE,GAAG,IAAI,GAAG,MAChB,IAAI,EAAE,GAAG,IAAI,GAAG,SACd;CACJ,MAAM,aAAa,OAAO;CAE1B,IAAI;CACJ,IAAI;CACJ,IAAI,MAAc;CAClB,IAAI,OAAe;AAEnB,KAAI,YAAY;AACd,UAAQ,KAAK;AACb,WAAS;AACT,SAAO,YAAY;QACd;AACL,UAAQ;AACR,WAAS,KAAK;AACd,UAAQ,YAAY;;AAGtB,OAAM,KAAK,MAAM,IAAI;AACrB,QAAO,KAAK,MAAM,KAAK;AAEvB,QAAO,OAAO,IAAI,OAAO;EACvB,SAAS;EACT,OAAO,GAAG,MAAM;EAChB,QAAQ,GAAG,OAAO;EAClB,WAAW,aAAa,KAAK,MAAM,IAAI;EACxC,CAAC;;;;ACxFJ,IAAa,sBAAsB,QAAQ,QAAQ;CACjD,MAAM,UAAuB,YAAY;AACvC,MAAI,IAAI,mBAAmB,KAAK,QAAQ;;CAE1C,MAAM,eAA6B;AACjC,MAAI,IAAI,mBAAmB,KAAK,KAAK;;AASvC,QANe,0BAA0B;EACvC;EACA;EACA,cAAc;EACf,CAAC;EAGF;AAEF,SAAS,qBAAqB,EAC5B,aAAa,wBACd,CAAC;;;ACvBF,IAAa,kBAAkB,aAAa,WAAW,CAAC;AAExD,SAAS,iBAAiB,EACxB,aAAa,oBACd,CAAC;;;ACGF,IAAa,mBAAmB;AAMhC,IAAa,SAA2B;CACtC;CACA;CACA;CACA;CACA;CACD,CAAC,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.d.ts","../../../../node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.d.ts","../../../../node_modules/.pnpm/prosemirror-transform@1.11.0/node_modules/prosemirror-transform/dist/index.d.ts","../../../../node_modules/.pnpm/prosemirror-view@1.41.7/node_modules/prosemirror-view/dist/index.d.ts","../../../../node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.d.ts","../../../../node_modules/.pnpm/prosemirror-gapcursor@1.4.1/node_modules/prosemirror-gapcursor/dist/index.d.ts","../../../prose/lib/gapcursor.d.ts","../../../ctx/lib/context/slice.d.ts","../../../ctx/lib/context/container.d.ts","../../../ctx/lib/context/index.d.ts","../../../ctx/lib/inspector/meta.d.ts","../../../ctx/lib/timer/timer.d.ts","../../../ctx/lib/timer/clock.d.ts","../../../ctx/lib/timer/index.d.ts","../../../ctx/lib/inspector/inspector.d.ts","../../../ctx/lib/inspector/index.d.ts","../../../ctx/lib/plugin/ctx.d.ts","../../../ctx/lib/plugin/types.d.ts","../../../ctx/lib/plugin/index.d.ts","../../../ctx/lib/index.d.ts","../../../../node_modules/.pnpm/prosemirror-inputrules@1.5.1/node_modules/prosemirror-inputrules/dist/index.d.ts","../../../prose/lib/inputrules.d.ts","../../../prose/lib/state.d.ts","../../../prose/lib/view.d.ts","../../../prose/lib/model.d.ts","../../../../node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts","../../../../node_modules/.pnpm/@types+mdast@4.0.4/node_modules/@types/mdast/index.d.ts","../../../../node_modules/.pnpm/micromark-util-types@2.0.2/node_modules/micromark-util-types/index.d.ts","../../../../node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/lib/types.d.ts","../../../../node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/lib/index.d.ts","../../../../node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/index.d.ts","../../../../node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.d.ts","../../../../node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/index.d.ts","../../../../node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.d.ts","../../../../node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/index.d.ts","../../../../node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.d.ts","../../../../node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.d.ts","../../../../node_modules/.pnpm/trough@2.2.0/node_modules/trough/index.d.ts","../../../../node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.d.ts","../../../../node_modules/.pnpm/unified@11.0.5/node_modules/unified/index.d.ts","../../../../node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.d.ts","../../../../node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/index.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/types.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/index.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts","../../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/index.d.ts","../../../../node_modules/.pnpm/remark-stringify@11.0.0/node_modules/remark-stringify/lib/index.d.ts","../../../../node_modules/.pnpm/remark-stringify@11.0.0/node_modules/remark-stringify/index.d.ts","../../../../node_modules/.pnpm/remark@15.0.1/node_modules/remark/index.d.ts","../../../transformer/lib/utility/stack.d.ts","../../../transformer/lib/utility/index.d.ts","../../../transformer/lib/serializer/stack-element.d.ts","../../../transformer/lib/serializer/state.d.ts","../../../transformer/lib/serializer/types.d.ts","../../../transformer/lib/utility/types.d.ts","../../../transformer/lib/parser/stack-element.d.ts","../../../transformer/lib/parser/state.d.ts","../../../transformer/lib/parser/types.d.ts","../../../transformer/lib/parser/index.d.ts","../../../transformer/lib/serializer/index.d.ts","../../../transformer/lib/index.d.ts","../../../core/lib/internal-plugin/atoms.d.ts","../../../core/lib/internal-plugin/commands.d.ts","../../../core/lib/internal-plugin/config.d.ts","../../../core/lib/internal-plugin/editor-state.d.ts","../../../core/lib/internal-plugin/editor-view.d.ts","../../../core/lib/internal-plugin/init.d.ts","../../../core/lib/internal-plugin/parser.d.ts","../../../core/lib/internal-plugin/schema.d.ts","../../../core/lib/internal-plugin/serializer.d.ts","../../../core/lib/internal-plugin/keymap.d.ts","../../../core/lib/internal-plugin/paste-rule.d.ts","../../../core/lib/internal-plugin/index.d.ts","../../../core/lib/editor/editor.d.ts","../../../core/lib/editor/index.d.ts","../../../core/lib/index.d.ts","../../../utils/lib/composable/utils.d.ts","../../../utils/lib/composable/$command.d.ts","../../../utils/lib/composable/$input-rule.d.ts","../../../utils/lib/composable/$paste-rule.d.ts","../../../utils/lib/composable/$mark.d.ts","../../../utils/lib/composable/$node.d.ts","../../../utils/lib/composable/$prose.d.ts","../../../utils/lib/composable/$shortcut.d.ts","../../../utils/lib/composable/$view.d.ts","../../../utils/lib/composable/$ctx.d.ts","../../../utils/lib/composable/composed/$node-schema.d.ts","../../../utils/lib/composable/composed/$mark-schema.d.ts","../../../utils/lib/composable/composed/$use-keymap.d.ts","../../../utils/lib/composable/composed/$attr.d.ts","../../../utils/lib/composable/composed/$remark.d.ts","../../../utils/lib/composable/composed/index.d.ts","../../../utils/lib/composable/index.d.ts","../../../utils/lib/macro/call-command.d.ts","../../../utils/lib/macro/force-update.d.ts","../../../utils/lib/macro/get-html.d.ts","../../../utils/lib/macro/get-markdown.d.ts","../../../utils/lib/macro/insert.d.ts","../../../utils/lib/macro/outline.d.ts","../../../utils/lib/macro/replace-all.d.ts","../../../utils/lib/macro/set-attr.d.ts","../../../utils/lib/macro/insert-pos.d.ts","../../../utils/lib/macro/replace-range.d.ts","../../../utils/lib/macro/markdown-to-slice.d.ts","../../../utils/lib/macro/index.d.ts","../../../utils/lib/pipe.d.ts","../../../utils/lib/index.d.ts","../src/__internal__/with-meta.ts","../src/gap-cursor.ts","../../../../node_modules/.pnpm/prosemirror-drop-indicator@0.1.3/node_modules/prosemirror-drop-indicator/dist/index.d.ts","../src/drop-indicator/state.ts","../src/drop-indicator/drop-indicator-dom.ts","../src/drop-indicator/plugin.ts","../src/drop-indicator/index.ts","../src/index.ts"],"fileIdsList":[[84],[86,87,88,89],[85,86,87,89],[85,86,89],[101,102,122],[85,123],[85],[103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121],[84,85],[60,62,63],[60,61,63],[60,63],[59],[60,61,62],[60],[85,86,89,98,99,100,125],[85,89,93,98,100,125],[85,98,100,123,124,125],[85,93,98,100,123,125],[85,98,100,125],[95],[93,97],[84,93,94,96,98,100,125],[90],[91,92],[84,91,93],[78,150],[151],[150,152],[78,80,81,82,125,138,152],[78,81],[78],[78,81,83,138],[78,82],[139,140,141,142,143,144,145,146,147,148,149],[78,152],[78,138],[78,82,83],[78,83,138],[66],[66,67],[67],[68,72,74,77],[69,73],[68,69,72],[68,72,74,78],[75,76],[74,75],[70],[70,71],[71],[78,81,184,185,188],[188,189,190],[184,185,187,188],[184,185,187],[65,184,185],[78,186,190,191],[64],[79],[63],[62],[128,136,137],[134,135],[83,128],[83,128,133,135],[83,132,134],[130,131],[128,138],[83,128,129,131],[83,130],[127,132],[83,98,100,125,126,131,135],[78,153,154],[78,80,154],[78,83,138,154],[78,81,154],[78,81,153,154],[78,82,154,170],[83,163],[78,138,158,163],[78,138,159,163],[78,138,163],[78,81,161,163],[164,165,166,167,168],[154,155,156,157,158,159,160,161,162,163,169],[170,182,183],[78,153],[171,172,173,174,175,176,177,178,179,180,181],[78,83]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"264f935450101e4b000eb351cf75c9d799ca20a278b260a9e5770303b5f2b6a3","impliedFormat":99},{"version":"f6f171b23ae6db93454343f1b788960f799c8f37043904874a752c0990c6fca6","impliedFormat":99},{"version":"089f9928e7ab1ca2c225e167a80ff1cb5ed0a71c98be7e81f040a51e2cc6bf5e","impliedFormat":99},{"version":"b11acc27c280988d7256bbd8ffe9f1cb5a0e5ed17cddf5335289ee0e81500369","affectsGlobalScope":true,"impliedFormat":99},{"version":"02ab5dbcaa58da1d58c46c7cdfa7f94792c5ccf0fc7c0622ef33755fe415366c","impliedFormat":99},{"version":"b081fb50ede6d895e0aa56df631560582fd0ee9699150c6234673c479a844e7d","impliedFormat":99},"093150714823146fe085332a615c3ed54e290f21c0f0d70b2d4df7b3476775dc","73cc073d7a102374d6b9bcdbde8072f3aa3c8f86767f562086b6a7a7df5f22c0","e66deb230968faf1a8f37ea6f217f319dd0dad7a39ead1bf5d4f54e2eb5ce4bd","13ee17bbdd42459d6450899cea1999aab64c723328e773c0be5e8a13b51b6259","f79062b892847b4e33d0b730bf9dcf66ac24fc3fe9df7bba4d0997c6bdf6cbde","20f3a5481b2c009533e9e6b864cbd4ae3c09ccfca0577918b3587cda295e7071","2797c77cc0da0836a37c8c1fe64942a999c73f811f5481d827ac7d8cb9ddedd3","5a40849c3a5d5a8c2aa754fc964830ea344c94bfeddd4b442bdeae899e2f5339","848836f528d4ac80a5b3212c719225a3ba09406d44fea755cb642299a68d7056","fae981646738728f2b882c14625b99c23c430400a21c081dc6888d9703bd6c68","45c8a077eb724bae4e1fc0d15f76618650e32e55c4582dc1f27153ecdeb66ca6","302c082712d8fe41be387cd34af45b163b5314c04ddeefe53b1cb57fe46d3221","0c1a84d7b974db1961c6e9ab71d5257dfa38d99fb6300f22de55750526c9daef","69bc40bb169ea922cab72dc2142f37e75b44095cf1e79ca1b2809164c284de57",{"version":"2a04530c2579ddcf996e1cf017caaba573e0ebf8a5b9e45d3bc25ba4489fb5a3","impliedFormat":99},"f41d91b2db1112fcc673a6862fe68cadcbdd0a66ed16b47ac74a0a6da8932bb4","e689cc8cd8a102d31c9d3a7b0db0028594202093c4aca25982b425e8ae744556","1b4ed9deaba72d4bc8495bf46db690dbf91040da0cb2401db10bad162732c0e2","478e59ac0830a0f6360236632d0d589fb0211183aa1ab82292fbca529c0cce35",{"version":"89121c1bf2990f5219bfd802a3e7fc557de447c62058d6af68d6b6348d64499a","impliedFormat":1},{"version":"d4a22007b481fe2a2e6bfd3a42c00cd62d41edb36d30fc4697df2692e9891fc8","impliedFormat":1},{"version":"a5dbd4c9941b614526619bad31047ddd5f504ec4cdad88d6117b549faef34dd3","impliedFormat":99},{"version":"d36518bd617ff673c7d9f372706f241932a43f27673187f2a8472e93c40041c6","impliedFormat":99},{"version":"f8eb2909590ec619643841ead2fc4b4b183fbd859848ef051295d35fef9d8469","impliedFormat":99},{"version":"fe784567dd721417e2c4c7c1d7306f4b8611a4f232f5b7ce734382cf34b417d2","impliedFormat":99},{"version":"2b37ba54ec067598bf912d56fcb81f6d8ad86a045c757e79440bdef97b52fe1b","impliedFormat":99},{"version":"1bc9dd465634109668661f998485a32da369755d9f32b5a55ed64a525566c94b","impliedFormat":99},{"version":"5702b3c2f5d248290ed99419d77ca1cc3e6c29db5847172377659c50e6303768","impliedFormat":99},{"version":"9764b2eb5b4fc0b8951468fb3dbd6cd922d7752343ef5fbf1a7cd3dfcd54a75e","impliedFormat":99},{"version":"1fc2d3fe8f31c52c802c4dee6c0157c5a1d1f6be44ece83c49174e316cf931ad","impliedFormat":99},{"version":"dc4aae103a0c812121d9db1f7a5ea98231801ed405bf577d1c9c46a893177e36","impliedFormat":99},{"version":"106d3f40907ba68d2ad8ce143a68358bad476e1cc4a5c710c11c7dbaac878308","impliedFormat":99},{"version":"42ad582d92b058b88570d5be95393cf0a6c09a29ba9aa44609465b41d39d2534","impliedFormat":99},{"version":"36e051a1e0d2f2a808dbb164d846be09b5d98e8b782b37922a3b75f57ee66698","impliedFormat":99},{"version":"4f7e6730a707b0d4971d96de3b562819ce304af770723707a58a578dd55a5e52","impliedFormat":99},{"version":"d1c1213e9176398b4d1d9aa543691181fd5ae23ae5415e80ede41f1ec1ccf72a","impliedFormat":99},{"version":"45d1e8fb4fd3e265b15f5a77866a8e21870eae4c69c473c33289a4b971e93704","impliedFormat":99},{"version":"cd40919f70c875ca07ecc5431cc740e366c008bcbe08ba14b8c78353fb4680df","impliedFormat":99},{"version":"ddfd9196f1f83997873bbe958ce99123f11b062f8309fc09d9c9667b2c284391","impliedFormat":99},{"version":"2999ba314a310f6a333199848166d008d088c6e36d090cbdcc69db67d8ae3154","impliedFormat":99},{"version":"62c1e573cd595d3204dfc02b96eba623020b181d2aa3ce6a33e030bc83bebb41","impliedFormat":99},{"version":"ca1616999d6ded0160fea978088a57df492b6c3f8c457a5879837a7e68d69033","impliedFormat":99},{"version":"835e3d95251bbc48918bb874768c13b8986b87ea60471ad8eceb6e38ddd8845e","impliedFormat":99},{"version":"de54e18f04dbcc892a4b4241b9e4c233cfce9be02ac5f43a631bbc25f479cd84","impliedFormat":99},{"version":"453fb9934e71eb8b52347e581b36c01d7751121a75a5cd1a96e3237e3fd9fc7e","impliedFormat":99},{"version":"bc1a1d0eba489e3eb5c2a4aa8cd986c700692b07a76a60b73a3c31e52c7ef983","impliedFormat":99},{"version":"4098e612efd242b5e203c5c0b9afbf7473209905ab2830598be5c7b3942643d0","impliedFormat":99},{"version":"28410cfb9a798bd7d0327fbf0afd4c4038799b1d6a3f86116dc972e31156b6d2","impliedFormat":99},{"version":"514ae9be6724e2164eb38f2a903ef56cf1d0e6ddb62d0d40f155f32d1317c116","impliedFormat":99},{"version":"970e5e94a9071fd5b5c41e2710c0ef7d73e7f7732911681592669e3f7bd06308","impliedFormat":99},{"version":"491fb8b0e0aef777cec1339cb8f5a1a599ed4973ee22a2f02812dd0f48bd78c1","impliedFormat":99},{"version":"6acf0b3018881977d2cfe4382ac3e3db7e103904c4b634be908f1ade06eb302d","impliedFormat":99},{"version":"2dbb2e03b4b7f6524ad5683e7b5aa2e6aef9c83cab1678afd8467fde6d5a3a92","impliedFormat":99},{"version":"135b12824cd5e495ea0a8f7e29aba52e1adb4581bb1e279fb179304ba60c0a44","impliedFormat":99},{"version":"e4c784392051f4bbb80304d3a909da18c98bc58b093456a09b3e3a1b7b10937f","impliedFormat":99},{"version":"2e87c3480512f057f2e7f44f6498b7e3677196e84e0884618fc9e8b6d6228bed","impliedFormat":99},{"version":"66984309d771b6b085e3369227077da237b40e798570f0a2ddbfea383db39812","impliedFormat":99},{"version":"e41be8943835ad083a4f8a558bd2a89b7fe39619ed99f1880187c75e231d033e","impliedFormat":99},{"version":"260558fff7344e4985cfc78472ae58cbc2487e406d23c1ddaf4d484618ce4cfd","impliedFormat":99},{"version":"e6274d956641c1cbd5a01a221a85a6671fd85104ed6b530f8d34ad3086804133","impliedFormat":99},{"version":"77516308358982bb05209e8c0ed6f321860e03393587d89f61055941e5bbcdd2","impliedFormat":99},{"version":"dc8652855a95ef9b9c12be8d2f5e6fc37b96aa2144f6c6f195cd1d2e07f721ee","impliedFormat":99},"e2cb25ca55e10ba874410188a53331a6b0b2bc13c0ee4d538bde50460a4e1b77","041afde4e1ac27e6fabdc2ca87882a3a766443fcfe1a1cfc3ed78bcc1c25b28a","c2049793874bbeafd60402bab915f3d285f4057e718dfdefe8a54ccc80c991dd","8a2b6f999a708119f4fa55fc58c5803ca9563340d0a54b9fe2a4fa14838f148c","2db5b1bbf946e20cef3c889cb7be46e3da384bdd1b4b53964253d97635718774","79e620484ae1a7011482631159563e4729f7f4d4c316b914125cb95f678ffbb9","6434c2976daf446cfd95935af4e0a0b6b369ce81af183579dab3ac6567dbbfd0","f50c1778b48a9275078ad81abaa5b4cb13a295b3889986f8e72fe61dd9cd8b86","6e935a5aec1b1f86cfa97fb93ec13c8759479712014d7dc4c13f140f7d409357","8cd4c86b90f9a96ba804585a4b6a998f484a860af3dfd12641ecb9eca109274b","8cd4c86b90f9a96ba804585a4b6a998f484a860af3dfd12641ecb9eca109274b","1b92de1f5b74cf4bda283aa7688c80781e9c7273f44a4ef2db084747a94be933","8c24aeb14985e8089f29e1fea075e95a7c8825077277079d5dc4130ceb6339de","ff041f34cc1936cb45f94de1924d396abd69b3d6e0cc887dfaa0b6ec176e27e1","6abd2f68e6651205f5d7763dcf7a5b5e5dc28b6194b097b467913d2cf19c1dd2","c04c352fc277c57e16519814a13e1b84e6c54c461b89ee63c8bff94ddf615555","e406a8398f12e8bb0d7661b9974a9ce78043a916cd2c652f7b82b7889e57f9e8","441c8ea68ff583cefd0f77d2a1699f6328d714ebfb9435ffedad5470392de2e7","cc60d13b9e2058908f082cca058357d2ebd83143b3dc4e3a01731e8a4b7ae2fe","5ca4d7a999b9fa8c7e2ef9746968eaeabb8e69a904cc62a3c18ac23b9664c8a8","bff722032fb479d76cdd167e0aa05e2e3ca9b728cff777e893aa694bad01e3a9","de54e6c6d074b3a521a47b0fbe17732a951a852ef704402daceabcd450134283","ad43cfeea2ffc4f26107e49ae92bed3fe01b0c2aa3e328e293d7b0dceb01300f","50e52950b1b92455f40c3fba61ee9a43e74bf9bdf6a25e01ad2e3a2226bbb2ec","cd2e2d6ffad8a1de80249fd4aa35f6c6f9160c18f69fbaf6507072eba208abda","3b8dd8f967501f6193f2d31f8a124e05186264f37f1b73d073cf39c6e123fe50","bc699cb86e1528d370a29ae99fe8f89e3a838bb620ad4071a4c9999a390c8361","487ae9dd80a97c7c7fa8cb272b81033c4252b064047f8b10b2d421e3a909dacf","0e0f762a06bd12f01872c86e03fd88a6830c3991ea17734ea2859a43a96b6ac5","88738bfae85b658c5728b5d84e7e9b78788281edc397bc6a75da4d1b554d2041","af1e3e5216a3a605be2384495ea43d50684dc0b674b0fc795cdaaaa51f979db6","d531e9345fbc0cb9e1fa9428752f675b40f2c32c8bda0c1547fc64522e3295d5","33be8125f7170aedbf456f05059014f0fbbfbf4842eb76d3c43a86bb82045df6","2246cd9c0a20fdf3df7fa37ee25c4e8d3989d38eb6274203fb0e9d43020a5cfc","f6d2f543d91edabb84f53c26e611514f0ecec59b72f6e5321145c00c70d0f1e7","6e12e26efaaeb591c891d49658152d874a1fc869c1231176172a4e90a78320c4","8e0872445888b4eac9c8915022cc2b58291db248fc33b0994c7e3296d7af306a","7064efe511093c8ab839f6c8bbe2ffc2911bc299ec8880f2129b541e2e32cc4c","41259a2d0eac0369e1581e08e5aef6ffef48f9ffc3d06d874524c9da6f1e4f29","9722d152fcdb95a635c8132764b7ded085073b4734daf2b19798be965fb10160","db3f677fdf3de11b7a334e5c8e677df05686b3d6e172d46ad3a1674790e5d03c","3a5ebec0a04030822776a5dcc7f9b053a38d79aa4b15e7c4df009ee5ac813dbf","77b54b2bf7d6e4a05b79d286903ad9f71141f91409729c5deb8bfa417d7f0960","573f356148118ea54c7b9a2eff374329022b1e38d5a1070cae53c97d7b0ef355","ef5ae01c8b2b11403554c319af51db9c3dc26051cb077b75c8885b5d02821557","1da18878fb9f757426713faa0c4b289ff717f1bb26bcefc358c2b03aae5f11be","5d7c0080e6e16f13e23ec822364b951a8135242ec61db38d230725c4cc8bba00","9fe63d563259a1a7e32332cd5cc24bccd9f0a34d0d9f2e80df7370d4205e91cb","947c6ccd6a0b2805b4e3479b51112d8affc4b64ecb209ee15a480a10c44a48a1","c4f0b3fb0d90e865c3ab69b9fff9c8eb13ff8fd49bcfce1f10f696bf5db9cdc9","e39e74456caf2be7616c1327e6447e6559e64d5ffb161d43bb44f50b3461ee59","8c3dde564136c2b88384fa63c823c9b4282b5b813ad8287a1c8f3734efb801a0","defdff60f915e05c089175d08b85199747f561dc318ac8dceacc844753060e6d","1a3dbaf2ef5ba30576b22fe1a26c868d9c76646670afb0c90ce7b6e1233211b2","d6faa230dcddc146229e72291ed444476e5c3fcf75b102fb0c78a46510e82424","bfa14541c2b697d5a73041bfa7a318b47db2301e2045856c7ab9db7bb3f4d21b","caee8e88a02710517f1d1849b48fa8793878f4ab0c51cde5c025ba6f21b946df","bbf57449e9341dc4b6f56e7ce74d0edee6cd7c4ca55b52664469de0c7d384445",{"version":"d01b9a24b8406375a3ea48716a68a88f7a3d605524c4b241be29b41c12dd370e","signature":"6d17ed9b7135b0b3db99ead1c9a36ed2c4891df097fff6c3e2a9ef3df9a5740f"},{"version":"5445f49cb9f7630c6ec31d5517da0c1b43662fc70bf6a92d6f0c22b3cb825acc","signature":"e14239fca18ff925986fffc7defc13f8c82c4a5390e3a6ee53a677b38a1ca97d"},{"version":"aa79f1983d84108f26944e2dcb7348d04c8a9f52cdb5908203949db00f19d876","impliedFormat":99},{"version":"61c8b95fd9eb65bb53e59ff0cefbb7967b41e3f10a66bab9e9e971db6aed1499","signature":"94097c64b486090742a2a8242173888301bc8a6b6703c2c1999cf2d1e62c2318"},{"version":"99d346de719dc7fa1ee2792625f4a1ad84e978672bfda4865d4390634863593b","signature":"7b0eac57a4a9d011dc81b8fef20337b8bd6c2cf04f2f4cf36dc3528a0dea48f4"},{"version":"9012849de73d248ffb8700e8a95dfcff5e5191b1eea3e9a7144cf13a7411a71d","signature":"eb8356b033eb1ebdca64311fcaf957c9b180ee1d0448b41551613441bc19c69e"},{"version":"81bb20749c721055bf297e8ac051c0ec0488e04f45a371b981755a552497fe3c","signature":"9d99b2d6f08d07f399182002af3d41dddccdee08b3335fc9d7b57e9eddf962ee"},{"version":"d79bb8f7ca59b5b24f8b2c12dd907124fb492a5460ee96097cb5d160f8d2f23e","signature":"39281cd83f7040ecada3262a71adf770fee8c0210de171053200cb3be923f48a"}],"root":[185,186,[188,192]],"options":{"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"module":99,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noPropertyAccessFromIndexSignature":false,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":5,"tsBuildInfoFile":"./tsconfig.tsbuildinfo","useUnknownInCatchVariables":true,"verbatimModuleSyntax":true},"referencedMap":[[85,1],[89,2],[88,3],[87,4],[123,5],[103,6],[104,6],[105,6],[106,6],[107,6],[108,6],[109,7],[111,6],[110,6],[122,8],[112,6],[114,6],[113,6],[116,6],[115,6],[117,6],[118,6],[119,6],[120,6],[121,6],[102,6],[101,9],[187,10],[64,11],[79,12],[60,13],[63,14],[61,15],[62,11],[100,16],[99,17],[125,18],[124,19],[126,20],[96,21],[98,22],[97,23],[91,24],[90,1],[93,25],[92,26],[151,27],[152,28],[153,29],[139,30],[140,31],[141,32],[142,33],[143,34],[150,35],[144,36],[148,31],[145,37],[149,38],[146,39],[147,37],[67,40],[68,41],[66,42],[78,43],[74,44],[73,45],[75,46],[77,47],[76,48],[71,49],[72,50],[70,51],[185,32],[189,52],[191,53],[190,54],[188,55],[186,56],[192,57],[65,58],[80,59],[83,15],[81,60],[82,61],[138,62],[136,63],[133,64],[134,65],[135,66],[137,67],[129,68],[130,69],[131,70],[128,71],[132,72],[155,73],[163,32],[156,74],[158,75],[159,75],[157,73],[160,76],[161,77],[162,78],[167,79],[165,80],[164,81],[168,82],[166,83],[169,84],[170,85],[154,32],[184,86],[171,87],[172,32],[173,32],[174,32],[182,88],[179,32],[175,32],[181,32],[176,32],[177,32],[180,32],[178,89]],"latestChangedDtsFile":"./index.d.ts","version":"6.0.2"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jvs-milkdown/plugin-cursor",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"milkdown",
|
|
6
|
+
"milkdown plugin"
|
|
7
|
+
],
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/Milkdown/milkdown.git",
|
|
12
|
+
"directory": "packages/plugins/plugin-cursor"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"lib",
|
|
16
|
+
"src"
|
|
17
|
+
],
|
|
18
|
+
"type": "module",
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"main": "./lib/index.js",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./lib/index.js",
|
|
24
|
+
"types": "./lib/index.d.ts"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"prosemirror-drop-indicator": "^0.1.0",
|
|
29
|
+
"@jvs-milkdown/ctx": "1.0.0",
|
|
30
|
+
"@jvs-milkdown/prose": "1.0.0",
|
|
31
|
+
"@jvs-milkdown/utils": "1.0.0"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "vite build"
|
|
35
|
+
},
|
|
36
|
+
"types": "./lib/index.d.ts"
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Meta, MilkdownPlugin } from '@jvs-milkdown/ctx'
|
|
2
|
+
|
|
3
|
+
export function withMeta<T extends MilkdownPlugin>(
|
|
4
|
+
plugin: T,
|
|
5
|
+
meta: Partial<Meta> & Pick<Meta, 'displayName'>
|
|
6
|
+
): T {
|
|
7
|
+
Object.assign(plugin, {
|
|
8
|
+
meta: {
|
|
9
|
+
package: '@jvs-milkdown/plugin-cursor',
|
|
10
|
+
...meta,
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
return plugin
|
|
15
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { Ctx } from '@jvs-milkdown/ctx'
|
|
2
|
+
|
|
3
|
+
import { Plugin, PluginKey } from '@jvs-milkdown/prose/state'
|
|
4
|
+
import { $prose } from '@jvs-milkdown/utils'
|
|
5
|
+
|
|
6
|
+
import { withMeta } from '../__internal__/with-meta'
|
|
7
|
+
import {
|
|
8
|
+
dropIndicatorConfig,
|
|
9
|
+
dropIndicatorState,
|
|
10
|
+
type DropIndicatorState,
|
|
11
|
+
} from './state'
|
|
12
|
+
|
|
13
|
+
const key = new PluginKey('MILKDOWN_DROP_INDICATOR_DOM')
|
|
14
|
+
|
|
15
|
+
/// The drop indicator DOM plugin to render the drop indicator as a DOM element.
|
|
16
|
+
export const dropIndicatorDOMPlugin = $prose(
|
|
17
|
+
(ctx: Ctx) =>
|
|
18
|
+
new Plugin({
|
|
19
|
+
key,
|
|
20
|
+
view: (view) => {
|
|
21
|
+
const config = ctx.get(dropIndicatorConfig.key)
|
|
22
|
+
const dom = document.createElement('div')
|
|
23
|
+
Object.assign(dom.style, {
|
|
24
|
+
position: 'fixed',
|
|
25
|
+
pointerEvents: 'none',
|
|
26
|
+
display: 'none',
|
|
27
|
+
backgroundColor: config.color,
|
|
28
|
+
top: '0',
|
|
29
|
+
left: '0',
|
|
30
|
+
})
|
|
31
|
+
dom.classList.add(config.class)
|
|
32
|
+
dom.classList.add('milkdown-drop-indicator')
|
|
33
|
+
|
|
34
|
+
view.dom.parentNode?.appendChild(dom)
|
|
35
|
+
const stateSlice = ctx.use(dropIndicatorState.key)
|
|
36
|
+
|
|
37
|
+
const onUpdate = (state: DropIndicatorState) => {
|
|
38
|
+
renderIndicator(dom, state, config)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
stateSlice.on(onUpdate)
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
destroy: () => {
|
|
45
|
+
stateSlice.off(onUpdate)
|
|
46
|
+
dom.remove()
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
})
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
withMeta(dropIndicatorDOMPlugin, {
|
|
54
|
+
displayName: 'Prose<dropIndicatorDOM>',
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
function renderIndicator(
|
|
58
|
+
dom: HTMLDivElement,
|
|
59
|
+
state: DropIndicatorState,
|
|
60
|
+
config: dropIndicatorConfig
|
|
61
|
+
) {
|
|
62
|
+
if (!state) {
|
|
63
|
+
Object.assign(dom.style, { display: 'none' })
|
|
64
|
+
return
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const { line } = state
|
|
68
|
+
const { width: lineWidth } = config
|
|
69
|
+
|
|
70
|
+
const {
|
|
71
|
+
p1: { x: x1, y: y1 },
|
|
72
|
+
p2: { x: x2, y: y2 },
|
|
73
|
+
} = line
|
|
74
|
+
const horizontal = y1 === y2
|
|
75
|
+
|
|
76
|
+
let width: number
|
|
77
|
+
let height: number
|
|
78
|
+
let top: number = y1
|
|
79
|
+
let left: number = x1
|
|
80
|
+
|
|
81
|
+
if (horizontal) {
|
|
82
|
+
width = x2 - x1
|
|
83
|
+
height = lineWidth
|
|
84
|
+
top -= lineWidth / 2
|
|
85
|
+
} else {
|
|
86
|
+
width = lineWidth
|
|
87
|
+
height = y2 - y1
|
|
88
|
+
left -= lineWidth / 2
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
top = Math.round(top)
|
|
92
|
+
left = Math.round(left)
|
|
93
|
+
|
|
94
|
+
Object.assign(dom.style, {
|
|
95
|
+
display: 'block',
|
|
96
|
+
width: `${width}px`,
|
|
97
|
+
height: `${height}px`,
|
|
98
|
+
transform: `translate(${left}px, ${top}px)`,
|
|
99
|
+
})
|
|
100
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { $prose } from '@jvs-milkdown/utils'
|
|
2
|
+
import {
|
|
3
|
+
createDropIndicatorPlugin,
|
|
4
|
+
type ShowHandler,
|
|
5
|
+
} from 'prosemirror-drop-indicator'
|
|
6
|
+
|
|
7
|
+
import { withMeta } from '../__internal__/with-meta'
|
|
8
|
+
import { dropIndicatorState } from './state'
|
|
9
|
+
|
|
10
|
+
/// Drop indicator plugin to update the drop indicator state.
|
|
11
|
+
export const dropIndicatorPlugin = $prose((ctx) => {
|
|
12
|
+
const onShow: ShowHandler = (options) => {
|
|
13
|
+
ctx.set(dropIndicatorState.key, options)
|
|
14
|
+
}
|
|
15
|
+
const onHide: VoidFunction = () => {
|
|
16
|
+
ctx.set(dropIndicatorState.key, null)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const plugin = createDropIndicatorPlugin({
|
|
20
|
+
onShow,
|
|
21
|
+
onHide,
|
|
22
|
+
onDrag: () => true,
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
return plugin
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
withMeta(dropIndicatorPlugin, {
|
|
29
|
+
displayName: 'Prose<dropIndicator>',
|
|
30
|
+
})
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ShowHandlerOptions } from 'prosemirror-drop-indicator'
|
|
2
|
+
|
|
3
|
+
import { $ctx } from '@jvs-milkdown/utils'
|
|
4
|
+
|
|
5
|
+
import { withMeta } from '../__internal__/with-meta'
|
|
6
|
+
|
|
7
|
+
/// @internal
|
|
8
|
+
export type DropIndicatorState = ShowHandlerOptions | null
|
|
9
|
+
|
|
10
|
+
/// The drop indicator state to store the current drop indicator information.
|
|
11
|
+
export const dropIndicatorState = $ctx(
|
|
12
|
+
null as DropIndicatorState,
|
|
13
|
+
'dropIndicatorState'
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
withMeta(dropIndicatorState, {
|
|
17
|
+
displayName: 'Ctx<dropIndicatorState>',
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
/// Configuration for the drop indicator.
|
|
21
|
+
export type dropIndicatorConfig = {
|
|
22
|
+
/// The width of the drop indicator in pixels.
|
|
23
|
+
width: number
|
|
24
|
+
/// The color of the drop indicator.
|
|
25
|
+
color: string | false
|
|
26
|
+
/// The CSS class of the drop indicator.
|
|
27
|
+
class: string
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/// The drop indicator configuration with default values.
|
|
31
|
+
export const dropIndicatorConfig = $ctx(
|
|
32
|
+
{
|
|
33
|
+
width: 2,
|
|
34
|
+
color: false,
|
|
35
|
+
class: 'milkdown-drop-indicator',
|
|
36
|
+
} as dropIndicatorConfig,
|
|
37
|
+
'dropIndicatorConfig'
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
withMeta(dropIndicatorConfig, {
|
|
41
|
+
displayName: 'Ctx<dropIndicatorConfig>',
|
|
42
|
+
})
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { gapCursor } from '@jvs-milkdown/prose/gapcursor'
|
|
2
|
+
import { $prose } from '@jvs-milkdown/utils'
|
|
3
|
+
|
|
4
|
+
import { withMeta } from './__internal__/with-meta'
|
|
5
|
+
|
|
6
|
+
/// This plugin wraps [gap cursor](https://github.com/ProseMirror/prosemirror-gapcursor).
|
|
7
|
+
export const gapCursorPlugin = $prose(() => gapCursor())
|
|
8
|
+
|
|
9
|
+
withMeta(gapCursorPlugin, {
|
|
10
|
+
displayName: 'Prose<gapCursor>',
|
|
11
|
+
})
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { MilkdownPlugin } from '@jvs-milkdown/ctx'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
dropIndicatorConfig,
|
|
5
|
+
dropIndicatorDOMPlugin,
|
|
6
|
+
dropIndicatorState,
|
|
7
|
+
} from './drop-indicator'
|
|
8
|
+
import { dropIndicatorPlugin } from './drop-indicator/plugin'
|
|
9
|
+
import { gapCursorPlugin } from './gap-cursor'
|
|
10
|
+
|
|
11
|
+
/// @deprecated
|
|
12
|
+
/// Use `dropIndicatorConfig` instead.
|
|
13
|
+
/// Backward compatibility export for `dropCursorConfig`
|
|
14
|
+
export const dropCursorConfig = dropIndicatorConfig
|
|
15
|
+
|
|
16
|
+
export * from './drop-indicator'
|
|
17
|
+
export * from './gap-cursor'
|
|
18
|
+
|
|
19
|
+
/// All plugins exported by this package.
|
|
20
|
+
export const cursor: MilkdownPlugin[] = [
|
|
21
|
+
gapCursorPlugin,
|
|
22
|
+
dropIndicatorConfig,
|
|
23
|
+
dropIndicatorState,
|
|
24
|
+
dropIndicatorDOMPlugin,
|
|
25
|
+
dropIndicatorPlugin,
|
|
26
|
+
].flat()
|