@milkdown/crepe 7.3.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/LICENSE +21 -0
- package/README.md +11 -0
- package/lib/apl-p0IPP13W.js +76 -0
- package/lib/asciiarmor-lJsBxlJJ.js +34 -0
- package/lib/asn1-Q9v1zIy5.js +102 -0
- package/lib/asterisk-foNkeTjy.js +273 -0
- package/lib/brainfuck-0XqyXpNS.js +35 -0
- package/lib/clike-ak6Z6Yhe.js +639 -0
- package/lib/clojure-iYO8U8Sg.js +810 -0
- package/lib/clsx-7d8NmkQq.js +21 -0
- package/lib/cmake-SVzjkxV_.js +28 -0
- package/lib/cobol-APHEnAOX.js +74 -0
- package/lib/coffeescript-KqQa0SYG.js +182 -0
- package/lib/commonlisp-bwqNqR5V.js +79 -0
- package/lib/core/crepe.d.ts +21 -0
- package/lib/core/crepe.d.ts.map +1 -0
- package/lib/core/index.d.ts +3 -0
- package/lib/core/index.d.ts.map +1 -0
- package/lib/core/slice.d.ts +12 -0
- package/lib/core/slice.d.ts.map +1 -0
- package/lib/crystal-BViWuDpA.js +217 -0
- package/lib/css-KHXHXfXg.js +1572 -0
- package/lib/cypher-XpTt4zQ3.js +69 -0
- package/lib/d-fLig6yqY.js +139 -0
- package/lib/diff-WoKGLpy6.js +18 -0
- package/lib/dockerfile-u6f6Vw2s.js +194 -0
- package/lib/dtd-SIJRUW6K.js +91 -0
- package/lib/dylan-4HCLhpWP.js +238 -0
- package/lib/ebnf-h_0lged5.js +77 -0
- package/lib/ecl-Lf4FF0lf.js +133 -0
- package/lib/eiffel-qlw8KUyf.js +112 -0
- package/lib/elm-QRnB3zXs.js +108 -0
- package/lib/erlang-fyVKb7eK.js +488 -0
- package/lib/factor-BEeN4upY.js +65 -0
- package/lib/fcl-lRek3hEb.js +106 -0
- package/lib/feature/block-edit/handle/component.d.ts +9 -0
- package/lib/feature/block-edit/handle/component.d.ts.map +1 -0
- package/lib/feature/block-edit/handle/index.d.ts +12 -0
- package/lib/feature/block-edit/handle/index.d.ts.map +1 -0
- package/lib/feature/block-edit/index.d.ts +3 -0
- package/lib/feature/block-edit/index.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/component.d.ts +14 -0
- package/lib/feature/block-edit/menu/component.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/config.d.ts +21 -0
- package/lib/feature/block-edit/menu/config.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/icons.d.ts +14 -0
- package/lib/feature/block-edit/menu/icons.d.ts.map +1 -0
- package/lib/feature/block-edit/menu/index.d.ts +9 -0
- package/lib/feature/block-edit/menu/index.d.ts.map +1 -0
- package/lib/feature/code-mirror/index.d.ts +3 -0
- package/lib/feature/code-mirror/index.d.ts.map +1 -0
- package/lib/feature/gap-cursor/index.d.ts +3 -0
- package/lib/feature/gap-cursor/index.d.ts.map +1 -0
- package/lib/feature/image-block/index.d.ts +3 -0
- package/lib/feature/image-block/index.d.ts.map +1 -0
- package/lib/feature/index.d.ts +18 -0
- package/lib/feature/index.d.ts.map +1 -0
- package/lib/feature/link-tooltip/consts.d.ts +5 -0
- package/lib/feature/link-tooltip/consts.d.ts.map +1 -0
- package/lib/feature/link-tooltip/index.d.ts +3 -0
- package/lib/feature/link-tooltip/index.d.ts.map +1 -0
- package/lib/feature/list-item/consts.d.ts +2 -0
- package/lib/feature/list-item/consts.d.ts.map +1 -0
- package/lib/feature/list-item/index.d.ts +3 -0
- package/lib/feature/list-item/index.d.ts.map +1 -0
- package/lib/feature/placeholder/index.d.ts +10 -0
- package/lib/feature/placeholder/index.d.ts.map +1 -0
- package/lib/feature/shared.d.ts +3 -0
- package/lib/feature/shared.d.ts.map +1 -0
- package/lib/feature/toolbar/component.d.ts +13 -0
- package/lib/feature/toolbar/component.d.ts.map +1 -0
- package/lib/feature/toolbar/consts.d.ts +5 -0
- package/lib/feature/toolbar/consts.d.ts.map +1 -0
- package/lib/feature/toolbar/index.d.ts +3 -0
- package/lib/feature/toolbar/index.d.ts.map +1 -0
- package/lib/forth-ua2bRd8T.js +60 -0
- package/lib/fortran-WnF7znuN.js +443 -0
- package/lib/gas-wowve1o7.js +183 -0
- package/lib/gherkin-m7GIChu3.js +34 -0
- package/lib/go-th443Dhb.js +158 -0
- package/lib/groovy-tR4RiZnc.js +161 -0
- package/lib/haskell-jxVBofv5.js +375 -0
- package/lib/haxe-kWPI2tq3.js +390 -0
- package/lib/hooks-82sqkbtE.js +21 -0
- package/lib/http-3GIFWUlG.js +45 -0
- package/lib/icons-HYkfuR-O.js +50 -0
- package/lib/idl-PvpMZg-l.js +947 -0
- package/lib/index-0RbcZMbq.js +8 -0
- package/lib/index-4afXjFMY.js +517 -0
- package/lib/index-7MeyepDG.js +78 -0
- package/lib/index-7QgQq3x3.js +551 -0
- package/lib/index-7pgP6qYs.js +107 -0
- package/lib/index-8DvtgRVa.js +19511 -0
- package/lib/index-8Gg-jEP4.js +288 -0
- package/lib/index-8S8qcncB.js +507 -0
- package/lib/index-9A_GmGh4.js +1039 -0
- package/lib/index-EJJfYLzA.js +928 -0
- package/lib/index-Eg39w5kL.js +984 -0
- package/lib/index-FIk_7oPb.js +168 -0
- package/lib/index-LlbrXb_n.js +368 -0
- package/lib/index-MovKtgMG.js +121 -0
- package/lib/index-N9GtIS4X.js +64 -0
- package/lib/index-Pwn25-kf.js +8 -0
- package/lib/index-SdFSDosa.js +1295 -0
- package/lib/index-W5Th22-Z.js +1744 -0
- package/lib/index-XiXSFLmI.js +20975 -0
- package/lib/index-bknOViGv.js +47 -0
- package/lib/index-bkuIUPFS.js +275 -0
- package/lib/index-jPA8J9Eo.js +8 -0
- package/lib/index-lsG76a9s.js +552 -0
- package/lib/index-oTRzPo3B.js +146 -0
- package/lib/index-rrf6_6DC.js +317 -0
- package/lib/index-vJbZIHYF.js +81 -0
- package/lib/index-vPRh55CO.js +137 -0
- package/lib/index-vxy63hib.js +323 -0
- package/lib/index-wn1_LgCS.js +99 -0
- package/lib/index-xHADmDT3.js +12 -0
- package/lib/index-yt2EpMtv.js +141 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.es.js +7 -0
- package/lib/javascript-8ZHqHagw.js +758 -0
- package/lib/jinja2-vsOFe0qD.js +154 -0
- package/lib/julia-dlp_pbN1.js +241 -0
- package/lib/livescript-Gf5R-LT6.js +273 -0
- package/lib/lua-c5Y_JsBp.js +221 -0
- package/lib/mathematica-iiGTGmUs.js +35 -0
- package/lib/mbox-ZJh86H8B.js +78 -0
- package/lib/meta-tAGyVRPE.js +511 -0
- package/lib/mirc-i0qkCa0y.js +73 -0
- package/lib/mllike-Dy551fZW.js +275 -0
- package/lib/modelica-n6tGqUT9.js +94 -0
- package/lib/mscgen-aKSbB7D9.js +104 -0
- package/lib/mumps-lNiKA6sp.js +25 -0
- package/lib/nginx--YmuCfDj.js +93 -0
- package/lib/nsis-zhS8iA09.js +62 -0
- package/lib/ntriples-E3jQl3MC.js +79 -0
- package/lib/octave-EQvkGIeG.js +144 -0
- package/lib/oz-W2cpqFf6.js +152 -0
- package/lib/pascal-lCh6ouNZ.js +79 -0
- package/lib/perl-PxEQBX0B.js +915 -0
- package/lib/pig-Y_bNcrzS.js +56 -0
- package/lib/powershell-GaQP-TZr.js +249 -0
- package/lib/properties-mbRyn54L.js +26 -0
- package/lib/prosemirror-noTDkx-k.js +4 -0
- package/lib/protobuf-8CJideyJ.js +49 -0
- package/lib/puppet-ABBaChNZ.js +45 -0
- package/lib/python-sKdHg3Ka.js +321 -0
- package/lib/q-_1yG40Nm.js +89 -0
- package/lib/r-Ziz56bHT.js +108 -0
- package/lib/rpm-ORjGOHaQ.js +57 -0
- package/lib/ruby-jlbYq0dT.js +233 -0
- package/lib/sas-2n7xeUuO.js +107 -0
- package/lib/schema-tKk3m1fu.js +62 -0
- package/lib/scheme-XCs-NPeU.js +126 -0
- package/lib/shell-0_1Um7Dq.js +184 -0
- package/lib/sieve-7uyJD1x1.js +73 -0
- package/lib/simple-mode--HIzBxba.js +95 -0
- package/lib/smalltalk-PEFzrlQ-.js +48 -0
- package/lib/solr-BLBaHahN.js +41 -0
- package/lib/sparql-4F9ZWf1b.js +204 -0
- package/lib/spreadsheet-SGSo6blj.js +49 -0
- package/lib/sql-tebLBzN0.js +291 -0
- package/lib/stex-SFJcFGOO.js +130 -0
- package/lib/stylus-rwwWYWFm.js +256 -0
- package/lib/swift-eorJ0tCv.js +238 -0
- package/lib/tcl-IwXMB8U4.js +82 -0
- package/lib/textile-ok2VyjwC.js +299 -0
- package/lib/theme/classic/index.d.ts +3 -0
- package/lib/theme/classic/index.d.ts.map +1 -0
- package/lib/theme/classic-dark/index.d.ts +3 -0
- package/lib/theme/classic-dark/index.d.ts.map +1 -0
- package/lib/theme/headless/index.d.ts +3 -0
- package/lib/theme/headless/index.d.ts.map +1 -0
- package/lib/theme/index.d.ts +8 -0
- package/lib/theme/index.d.ts.map +1 -0
- package/lib/theme/shared.d.ts +3 -0
- package/lib/theme/shared.d.ts.map +1 -0
- package/lib/tiddlywiki-DLhz8_pc.js +156 -0
- package/lib/tiki-DFAqFElY.js +183 -0
- package/lib/tippy.esm-MZ2vxByW.js +1813 -0
- package/lib/toml-ryxpTZEV.js +49 -0
- package/lib/tooltip-plugin-gcwyQdiT.js +119 -0
- package/lib/troff-ZzZyvNct.js +36 -0
- package/lib/ttcn-6gvkqqpW.js +136 -0
- package/lib/ttcn-cfg-oSu-Dq5C.js +98 -0
- package/lib/turtle-10ofr5au.js +87 -0
- package/lib/use-css-light-dom-EKWZDmbJ.js +82 -0
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/vb-a6n6fzrD.js +74 -0
- package/lib/vbscript-dgvo8jPt.js +324 -0
- package/lib/velocity-CBncCrwO.js +97 -0
- package/lib/verilog-KlcACt6C.js +271 -0
- package/lib/vhdl-NMd7Gf35.js +117 -0
- package/lib/webidl-z1UE5DN_.js +160 -0
- package/lib/xquery-hDt5jWTp.js +431 -0
- package/lib/yacas-ftgh_qwr.js +74 -0
- package/lib/yaml-DnNTfjXK.js +53 -0
- package/lib/z80-dA1PqWe1.js +62 -0
- package/package.json +87 -0
- package/src/core/crepe.ts +98 -0
- package/src/core/index.ts +4 -0
- package/src/core/slice.ts +44 -0
- package/src/feature/block-edit/handle/component.ts +68 -0
- package/src/feature/block-edit/handle/index.ts +81 -0
- package/src/feature/block-edit/index.ts +17 -0
- package/src/feature/block-edit/menu/component.ts +210 -0
- package/src/feature/block-edit/menu/config.ts +335 -0
- package/src/feature/block-edit/menu/icons.ts +171 -0
- package/src/feature/block-edit/menu/index.ts +113 -0
- package/src/feature/block-edit/style.css +126 -0
- package/src/feature/code-mirror/index.ts +60 -0
- package/src/feature/code-mirror/style.css +159 -0
- package/src/feature/gap-cursor/index.ts +31 -0
- package/src/feature/image-block/index.ts +59 -0
- package/src/feature/image-block/style.css +215 -0
- package/src/feature/index.ts +66 -0
- package/src/feature/link-tooltip/consts.ts +47 -0
- package/src/feature/link-tooltip/index.ts +22 -0
- package/src/feature/link-tooltip/style.css +107 -0
- package/src/feature/list-item/consts.ts +15 -0
- package/src/feature/list-item/index.ts +30 -0
- package/src/feature/list-item/style.css +23 -0
- package/src/feature/placeholder/index.ts +87 -0
- package/src/feature/placeholder/style.css +9 -0
- package/src/feature/shared.ts +4 -0
- package/src/feature/toolbar/component.ts +101 -0
- package/src/feature/toolbar/consts.ts +26 -0
- package/src/feature/toolbar/index.ts +92 -0
- package/src/feature/toolbar/style.css +37 -0
- package/src/index.ts +5 -0
- package/src/theme/classic/index.ts +12 -0
- package/src/theme/classic/style.css +192 -0
- package/src/theme/classic-dark/index.ts +12 -0
- package/src/theme/classic-dark/style.css +197 -0
- package/src/theme/headless/index.ts +9 -0
- package/src/theme/index.ts +26 -0
- package/src/theme/shared.ts +4 -0
- package/src/utils/index.ts +12 -0
- package/src/vite-env.d.ts +2 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Component } from 'atomico';
|
|
2
|
+
import type { Ctx } from '@milkdown/ctx';
|
|
3
|
+
export interface MenuProps {
|
|
4
|
+
ctx: Ctx;
|
|
5
|
+
show: boolean;
|
|
6
|
+
filter: string;
|
|
7
|
+
hide: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const menuComponent: Component<MenuProps>;
|
|
10
|
+
export declare const MenuElement: import("atomico/types/dom").Atomico<MenuProps | (MenuProps & import("atomico/types/component").SyntheticMetaProps<any>), {
|
|
11
|
+
new (): HTMLElement;
|
|
12
|
+
prototype: HTMLElement;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/feature/block-edit/menu/component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAGxC,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,IAAI,CAAA;CACjB;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,CAAC,SAAS,CA2L9C,CAAA;AASD,eAAO,MAAM,WAAW;;;EAAmB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { html } from 'atomico';
|
|
2
|
+
import type { Ctx } from '@milkdown/ctx';
|
|
3
|
+
interface MenuItem {
|
|
4
|
+
index: number;
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon: ReturnType<typeof html>;
|
|
8
|
+
onRun: (ctx: Ctx) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function getGroups(filter?: string): {
|
|
11
|
+
groups: ({
|
|
12
|
+
key: string;
|
|
13
|
+
label: string;
|
|
14
|
+
items: MenuItem[];
|
|
15
|
+
} & {
|
|
16
|
+
range: [start: number, end: number];
|
|
17
|
+
})[];
|
|
18
|
+
size: number;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/feature/block-edit/menu/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AA+BxC,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAA;IAC7B,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;CAC1B;AA8ED,wBAAgB,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM;;;;;;;;;EAyNxC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const textIcon: any;
|
|
2
|
+
export declare const h1Icon: any;
|
|
3
|
+
export declare const h2Icon: any;
|
|
4
|
+
export declare const h3Icon: any;
|
|
5
|
+
export declare const h4Icon: any;
|
|
6
|
+
export declare const h5Icon: any;
|
|
7
|
+
export declare const h6Icon: any;
|
|
8
|
+
export declare const bulletListIcon: any;
|
|
9
|
+
export declare const orderedListIcon: any;
|
|
10
|
+
export declare const quoteIcon: any;
|
|
11
|
+
export declare const dividerIcon: any;
|
|
12
|
+
export declare const imageIcon: any;
|
|
13
|
+
export declare const codeIcon: any;
|
|
14
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/feature/block-edit/menu/icons.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,KAWpB,CAAA;AAED,eAAO,MAAM,MAAM,KAWlB,CAAA;AAED,eAAO,MAAM,MAAM,KAWlB,CAAA;AAED,eAAO,MAAM,MAAM,KAWlB,CAAA;AAED,eAAO,MAAM,MAAM,KAWlB,CAAA;AAED,eAAO,MAAM,MAAM,KAWlB,CAAA;AAED,eAAO,MAAM,MAAM,KAWlB,CAAA;AAED,eAAO,MAAM,cAAc,KAW1B,CAAA;AAED,eAAO,MAAM,eAAe,KAW3B,CAAA;AAED,eAAO,MAAM,SAAS,KAWrB,CAAA;AAED,eAAO,MAAM,WAAW,KAWvB,CAAA;AAED,eAAO,MAAM,SAAS,KAWrB,CAAA;AAED,eAAO,MAAM,QAAQ,KAWpB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Ctx } from '@milkdown/ctx';
|
|
2
|
+
export declare const menu: import("@milkdown/plugin-slash").SlashPlugin<"CREPE_MENU", any>;
|
|
3
|
+
export interface MenuAPI {
|
|
4
|
+
show: (pos: number) => void;
|
|
5
|
+
hide: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const menuAPI: import("@milkdown/utils").$Ctx<MenuAPI, "menuAPICtx">;
|
|
8
|
+
export declare function configureMenu(ctx: Ctx): void;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/feature/block-edit/menu/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAOxC,eAAO,MAAM,IAAI,iEAA6B,CAAA;AAE9C,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3B,IAAI,EAAE,MAAM,IAAI,CAAA;CACjB;AAED,eAAO,MAAM,OAAO,uDAGO,CAAA;AAG3B,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,QAIrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feature/code-mirror/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAkC9C,eAAO,MAAM,aAAa,EAAE,aAgB3B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feature/gap-cursor/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAe9C,eAAO,MAAM,aAAa,EAAE,aAW3B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feature/image-block/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAkC9C,eAAO,MAAM,aAAa,EAAE,aAoB3B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Editor } from '@milkdown/core';
|
|
2
|
+
import type { PlaceHolderFeatureConfig } from './placeholder';
|
|
3
|
+
export declare enum CrepeFeature {
|
|
4
|
+
CodeMirror = "code-mirror",
|
|
5
|
+
ListItem = "list-item",
|
|
6
|
+
LinkTooltip = "link-tooltip",
|
|
7
|
+
GapCursor = "gap-cursor",
|
|
8
|
+
ImageBlock = "image-block",
|
|
9
|
+
BlockEdit = "block-edit",
|
|
10
|
+
Toolbar = "toolbar",
|
|
11
|
+
Placeholder = "placeholder"
|
|
12
|
+
}
|
|
13
|
+
export interface CrepeFeatureConfig {
|
|
14
|
+
[CrepeFeature.Placeholder]?: PlaceHolderFeatureConfig;
|
|
15
|
+
}
|
|
16
|
+
export declare const defaultFeatures: Record<CrepeFeature, boolean>;
|
|
17
|
+
export declare function loadFeature(feature: CrepeFeature, editor: Editor, config?: never): Promise<void>;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/feature/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AAE7D,oBAAY,YAAY;IACtB,UAAU,gBAAgB;IAC1B,QAAQ,cAAc;IACtB,WAAW,iBAAiB;IAC5B,SAAS,eAAe;IACxB,UAAU,gBAAgB;IAC1B,SAAS,eAAe;IACxB,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,EAAE,wBAAwB,CAAA;CACtD;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,CASzD,CAAA;AAED,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,iBAmCtF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/feature/link-tooltip/consts.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,KAIpB,CAAA;AAED,eAAO,MAAM,QAAQ,KAWpB,CAAA;AAED,eAAO,MAAM,UAAU,KAWtB,CAAA;AAED,eAAO,MAAM,WAAW,KAWvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feature/link-tooltip/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAI9C,eAAO,MAAM,aAAa,EAAE,aAc3B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/feature/list-item/consts.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,KAWtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feature/list-item/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAmB9C,eAAO,MAAM,aAAa,EAAE,aAK3B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DefineFeature } from '../shared';
|
|
2
|
+
export interface PlaceholderConfig {
|
|
3
|
+
text: string;
|
|
4
|
+
mode: 'doc' | 'block';
|
|
5
|
+
}
|
|
6
|
+
export type PlaceHolderFeatureConfig = Partial<PlaceholderConfig>;
|
|
7
|
+
export declare const placeholderConfig: import("@milkdown/utils").$Ctx<PlaceholderConfig, "placeholderConfigCtx">;
|
|
8
|
+
export declare const placeholderPlugin: import("@milkdown/utils").$Prose;
|
|
9
|
+
export declare const defineFeature: DefineFeature<PlaceHolderFeatureConfig>;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feature/placeholder/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AA8B9C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,KAAK,GAAG,OAAO,CAAA;CACtB;AAED,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;AAEjE,eAAO,MAAM,iBAAiB,2EAGiB,CAAA;AAE/C,eAAO,MAAM,iBAAiB,kCAqB5B,CAAA;AAEF,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,wBAAwB,CAejE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/feature/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAE5C,MAAM,MAAM,aAAa,CAAC,MAAM,GAAG,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Component } from 'atomico';
|
|
2
|
+
import type { Ctx } from '@milkdown/ctx';
|
|
3
|
+
export interface ToolbarProps {
|
|
4
|
+
ctx: Ctx;
|
|
5
|
+
hide: () => void;
|
|
6
|
+
show: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const toolbarComponent: Component<ToolbarProps>;
|
|
9
|
+
export declare const ToolbarElement: import("atomico/types/dom").Atomico<ToolbarProps | (ToolbarProps & import("atomico/types/component").SyntheticMetaProps<any>), {
|
|
10
|
+
new (): HTMLElement;
|
|
11
|
+
prototype: HTMLElement;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/feature/toolbar/component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAgBxC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,IAAI,EAAE,OAAO,CAAA;CACd;AAED,eAAO,MAAM,gBAAgB,EAAE,SAAS,CAAC,YAAY,CAmEpD,CAAA;AAQD,eAAO,MAAM,cAAc;;;EAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/feature/toolbar/consts.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,KAIpB,CAAA;AAED,eAAO,MAAM,UAAU,KAItB,CAAA;AAED,eAAO,MAAM,QAAQ,KAIpB,CAAA;AAED,eAAO,MAAM,QAAQ,KAIpB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feature/toolbar/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AA2E9C,eAAO,MAAM,aAAa,EAAE,aAS3B,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
function t(i) {
|
|
2
|
+
var n = [];
|
|
3
|
+
return i.split(" ").forEach(function(E) {
|
|
4
|
+
n.push({ name: E });
|
|
5
|
+
}), n;
|
|
6
|
+
}
|
|
7
|
+
var r = t(
|
|
8
|
+
"INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"
|
|
9
|
+
), O = t("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");
|
|
10
|
+
function R(i, n) {
|
|
11
|
+
var E;
|
|
12
|
+
for (E = i.length - 1; E >= 0; E--)
|
|
13
|
+
if (i[E].name === n.toUpperCase())
|
|
14
|
+
return i[E];
|
|
15
|
+
}
|
|
16
|
+
const L = {
|
|
17
|
+
name: "forth",
|
|
18
|
+
startState: function() {
|
|
19
|
+
return {
|
|
20
|
+
state: "",
|
|
21
|
+
base: 10,
|
|
22
|
+
coreWordList: r,
|
|
23
|
+
immediateWordList: O,
|
|
24
|
+
wordList: []
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
token: function(i, n) {
|
|
28
|
+
var E;
|
|
29
|
+
if (i.eatSpace())
|
|
30
|
+
return null;
|
|
31
|
+
if (n.state === "") {
|
|
32
|
+
if (i.match(/^(\]|:NONAME)(\s|$)/i))
|
|
33
|
+
return n.state = " compilation", "builtin";
|
|
34
|
+
if (E = i.match(/^(\:)\s+(\S+)(\s|$)+/), E)
|
|
35
|
+
return n.wordList.push({ name: E[2].toUpperCase() }), n.state = " compilation", "def";
|
|
36
|
+
if (E = i.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i), E)
|
|
37
|
+
return n.wordList.push({ name: E[2].toUpperCase() }), "def";
|
|
38
|
+
if (E = i.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/), E)
|
|
39
|
+
return "builtin";
|
|
40
|
+
} else {
|
|
41
|
+
if (i.match(/^(\;|\[)(\s)/))
|
|
42
|
+
return n.state = "", i.backUp(1), "builtin";
|
|
43
|
+
if (i.match(/^(\;|\[)($)/))
|
|
44
|
+
return n.state = "", "builtin";
|
|
45
|
+
if (i.match(/^(POSTPONE)\s+\S+(\s|$)+/))
|
|
46
|
+
return "builtin";
|
|
47
|
+
}
|
|
48
|
+
if (E = i.match(/^(\S+)(\s+|$)/), E)
|
|
49
|
+
return R(n.wordList, E[1]) !== void 0 ? "variable" : E[1] === "\\" ? (i.skipToEnd(), "comment") : R(n.coreWordList, E[1]) !== void 0 ? "builtin" : R(n.immediateWordList, E[1]) !== void 0 ? "keyword" : E[1] === "(" ? (i.eatWhile(function(e) {
|
|
50
|
+
return e !== ")";
|
|
51
|
+
}), i.eat(")"), "comment") : E[1] === ".(" ? (i.eatWhile(function(e) {
|
|
52
|
+
return e !== ")";
|
|
53
|
+
}), i.eat(")"), "string") : E[1] === 'S"' || E[1] === '."' || E[1] === 'C"' ? (i.eatWhile(function(e) {
|
|
54
|
+
return e !== '"';
|
|
55
|
+
}), i.eat('"'), "string") : E[1] - 68719476735 ? "number" : "atom";
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
L as forth
|
|
60
|
+
};
|