tiny-markdown-editor 0.1.30 → 0.1.32
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/README.md +15 -11
- package/dist/tiny-mde.js +1280 -808
- package/dist/tiny-mde.min.css +1 -1
- package/dist/tiny-mde.min.js +1 -1
- package/dist/tiny-mde.tiny.js +1 -1
- package/lib/TinyMDE.js +89 -54
- package/lib/TinyMDECommandBar.js +114 -101
- package/lib/grammar.js +0 -1
- package/lib/index.js +1 -1
- package/lib/svg/svg.js +4 -1
- package/lib/tiny.js +1 -1
- package/package.json +25 -25
package/lib/svg/svg.js
CHANGED
|
@@ -16,7 +16,10 @@ const svg = {
|
|
|
16
16
|
italic: `<svg height="18" width="18"><path d="M9 2a1 1 0 000 2L7 14a1 1 0 100 2h2a1 1 0 000-2l2-10a1 1 0 100-2z"/></svg>`,
|
|
17
17
|
link: `<svg height="18" width="18"><path d="M9.07 5.18a3.9 3.9 0 00-1.52.43C6.31 6.22 5.3 7.29 4.3 8.29c-1 1-2.07 2.02-2.68 3.26-.31.62-.5 1.33-.41 2.07.09.75.48 1.47 1.1 2.09.61.61 1.33 1 2.08 1.1.74.09 1.45-.1 2.07-.42 1.24-.61 2.26-1.68 3.26-2.68.46-.47.94-.94 1.39-1.44l-.43.26c-.68.34-1.49.56-2.36.46-.2-.03-.4-.08-.6-.14-.79.76-1.55 1.45-2.16 1.76-.38.19-.67.24-.92.21-.26-.03-.54-.14-.92-.53-.39-.38-.5-.66-.53-.91-.03-.26.02-.55.21-.93.39-.76 1.32-1.74 2.32-2.74 1-1 1.98-1.93 2.74-2.32.38-.19.67-.24.93-.21.25.03.53.14.91.53.39.38.5.66.53.92v.06l1.12-1.06.44-.47c-.18-.3-.4-.6-.67-.87-.62-.61-1.34-1-2.09-1.1a3.08 3.08 0 00-.55-.01z"/><path d="M13.07.86a3.9 3.9 0 00-1.52.43c-1.24.62-2.26 1.69-3.26 2.69-.46.47-.94.94-1.39 1.43.15-.08.28-.18.43-.25a4.4 4.4 0 012.36-.46c.2.02.4.07.6.14.79-.77 1.55-1.46 2.16-1.76.38-.19.67-.25.93-.21.25.03.53.14.91.52.39.38.5.66.53.92.03.26-.02.55-.21.93-.39.76-1.32 1.74-2.32 2.74-1 1-1.98 1.93-2.74 2.31-.38.2-.67.25-.93.22-.25-.04-.53-.15-.91-.53-.39-.38-.5-.66-.53-.92V9c-.36.33-.73.67-1.12 1.06l-.43.46c.17.3.4.6.66.87.62.62 1.34 1 2.08 1.1.75.1 1.46-.1 2.08-.41 1.24-.62 2.26-1.69 3.26-2.69s2.07-2.02 2.68-3.26c.31-.62.5-1.32.41-2.07a3.63 3.63 0 00-1.1-2.08c-.61-.62-1.33-1-2.07-1.1a3.08 3.08 0 00-.56-.02z"/></svg>`,
|
|
18
18
|
ol: `<svg height="18" width="18"><path d="M1.5 7a.5.5 0 100 1h1a.5.5 0 01.5.5c0 .164-.08.31-.14.355l-1.655 1.25A.492.492 0 001 10.5a.5.5 0 00.5.5h2a.5.5 0 000-1H3l.398-.299A1.5 1.5 0 002.5 7z"/><path d="M1.5 12c-.667 0-.667 1 0 1h1.25c.333 0 .333.5 0 .5H2.5c-.667 0-.667 1 0 1h.25c.333 0 .333.5 0 .5H1.5c-.667 0-.667 1 0 1h1c.398 0 .78-.131 1.06-.365.282-.235.44-.554.44-.885a1.121 1.121 0 00-.303-.75c.191-.204.3-.47.303-.75 0-.332-.158-.651-.44-.885-.3-.241-.675-.37-1.06-.365z"/><rect y="13" x="6" height="2" width="12" ry="1"/><rect ry="1" width="12" height="2" x="6" y="8"/><rect y="3" x="6" height="2" width="12" ry="1"/><path d="M1.5 2a.5.5 0 100 1H2v2h-.5a.5.5 0 100 1h2a.5.5 0 100-1H3V2.5c0-.277-.223-.5-.5-.5z"/></svg>`,
|
|
19
|
+
redo: `<svg height="18" width="18"><path d="M 7.2695308,2.7050781 C 8.1128755,2.7081581 8.9529895,2.8712156 9.730469,3.1347656 11.408874,3.7037121 12.90142,4.6847104 14,5.6367188 V 4 h 2 V 9 H 11 V 7 h 1.509765 C 11.59075,6.2485173 10.340208,5.453808 9.0878904,5.0292969 7.4309398,4.4676231 5.9453458,4.468717 4.7070308,5.7070312 c -1.225014,1.2250142 -1.409769,2.7206953 -0.779297,4.2968748 0.630472,1.57618 2.167475,3.158006 4.4433598,4.06836 l -0.7421878,1.855468 c -2.724115,-1.089646 -4.687112,-3.00782 -5.55664,-5.18164 -0.869528,-2.1738206 -0.554283,-4.6781393 1.220703,-6.4531252 0.923857,-0.9238568 2.015388,-1.388828 3.134765,-1.5351563 0.279845,-0.036582 0.560682,-0.053761 0.841797,-0.052734 z" /></svg>`,
|
|
19
20
|
strikethrough: `<svg width="18" height="18"><path d="M10 2C6 2 4 4 4 6c0 .338.08.672.193 1h2.34C6.113 6.629 6 6.295 6 6c0-.334.117-.725.691-1.154C7.265 4.416 8.331 4 10 4h3a1 1 0 000-2zm1.477 9c.413.368.523.706.523 1 0 .334-.127.712-.701 1.143-.575.43-1.632.85-3.299.857l-1.006.007V14H5a1 1 0 000 2h3c4 0 6-2 6-4 0-.338-.081-.672-.195-1z"/><rect ry="1" y="8" x="1" height="2" width="16"/></svg>`,
|
|
20
|
-
ul: `<svg height="18" width="18"><circle cx="2" cy="9" r="2"/><circle cy="4" cx="2" r="2"/><rect y="3" x="6" height="2" width="12" ry="1"/><circle cx="2" cy="14" r="2"/><rect ry="1" width="12" height="2" x="6" y="8"/><rect y="13" x="6" height="2" width="12" ry="1"/></svg
|
|
21
|
+
ul: `<svg height="18" width="18"><circle cx="2" cy="9" r="2"/><circle cy="4" cx="2" r="2"/><rect y="3" x="6" height="2" width="12" ry="1"/><circle cx="2" cy="14" r="2"/><rect ry="1" width="12" height="2" x="6" y="8"/><rect y="13" x="6" height="2" width="12" ry="1"/></svg>`,
|
|
22
|
+
undo: `<svg height="18" width="18"><path d="M 10.730469 2.7050781 C 9.8871243 2.7081594 9.0470103 2.8712156 8.2695312 3.1347656 C 6.5911256 3.7037121 5.0985797 4.6847104 4 5.6367188 L 4 4 L 2 4 L 2 9 L 7 9 L 7 7 L 5.4902344 7 C 6.4092499 6.2485173 7.6597914 5.453808 8.9121094 5.0292969 C 10.56906 4.4676231 12.054654 4.468717 13.292969 5.7070312 C 14.517983 6.9320454 14.702738 8.4277265 14.072266 10.003906 C 13.441794 11.580086 11.904791 13.161912 9.6289062 14.072266 L 10.371094 15.927734 C 13.095209 14.838088 15.058206 12.919914 15.927734 10.746094 C 16.797262 8.5722734 16.482017 6.0679547 14.707031 4.2929688 C 13.783174 3.369112 12.691643 2.9041408 11.572266 2.7578125 C 11.292421 2.7212304 11.011584 2.704051 10.730469 2.7050781 z " /></svg>
|
|
23
|
+
`
|
|
21
24
|
};
|
|
22
25
|
var _default = exports.default = svg;
|
package/lib/tiny.js
CHANGED
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "Editor", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _TinyMDE = _interopRequireDefault(require("./TinyMDE"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tiny-markdown-editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"description": "TinyMDE: A tiny, ultra low dependency, embeddable HTML/JavaScript Markdown editor.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -35,37 +35,37 @@
|
|
|
35
35
|
"homepage": "https://github.com/jefago/tiny-markdown-editor#readme",
|
|
36
36
|
"browserslist": "> 0.25%, not dead",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"core-js": "^3.
|
|
38
|
+
"core-js": "^3.42.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@babel/core": "^7.
|
|
42
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
43
|
-
"@babel/preset-env": "^7.
|
|
44
|
-
"@octokit/rest": "^
|
|
45
|
-
"@rollup/plugin-babel": "^6.0.
|
|
46
|
-
"@rollup/plugin-commonjs": "^
|
|
47
|
-
"@rollup/plugin-node-resolve": "^
|
|
41
|
+
"@babel/core": "^7.27.4",
|
|
42
|
+
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
|
|
43
|
+
"@babel/preset-env": "^7.27.2",
|
|
44
|
+
"@octokit/rest": "^22.0.0",
|
|
45
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
46
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
47
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
48
48
|
"@rollup/stream": "^3.0.1",
|
|
49
|
-
"autoprefixer": "^10.4.
|
|
50
|
-
"cssnano": "^
|
|
51
|
-
"del": "^
|
|
52
|
-
"dotenv": "^16.
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"express": "^
|
|
55
|
-
"gulp": "^5.0.
|
|
49
|
+
"autoprefixer": "^10.4.21",
|
|
50
|
+
"cssnano": "^7.0.7",
|
|
51
|
+
"del": "^8.0.0",
|
|
52
|
+
"dotenv": "^16.5.0",
|
|
53
|
+
"eslint": "^9.28.0",
|
|
54
|
+
"express": "^5.1.0",
|
|
55
|
+
"gulp": "^5.0.1",
|
|
56
56
|
"gulp-babel": "^8.0.0",
|
|
57
|
-
"gulp-postcss": "^
|
|
57
|
+
"gulp-postcss": "^10.0.0",
|
|
58
58
|
"gulp-rename": "^2.0.0",
|
|
59
|
-
"gulp-size": "^
|
|
59
|
+
"gulp-size": "^5.0.0",
|
|
60
60
|
"gulp-terser": "^2.1.0",
|
|
61
|
-
"jest": "^29.
|
|
62
|
-
"jest-cli": "^29.
|
|
63
|
-
"jest-puppeteer": "^
|
|
64
|
-
"postcss-import": "^
|
|
65
|
-
"puppeteer": "^
|
|
66
|
-
"rollup": "^4.
|
|
61
|
+
"jest": "^29.7.0",
|
|
62
|
+
"jest-cli": "^29.7.0",
|
|
63
|
+
"jest-puppeteer": "^11.0.0",
|
|
64
|
+
"postcss-import": "^16.1.0",
|
|
65
|
+
"puppeteer": "^24.10.0",
|
|
66
|
+
"rollup": "^4.41.1",
|
|
67
67
|
"rollup-plugin-eslint": "^7.0.0",
|
|
68
|
-
"terser": "^5.
|
|
68
|
+
"terser": "^5.40.0",
|
|
69
69
|
"vinyl-buffer": "^1.0.1",
|
|
70
70
|
"vinyl-source-stream": "^2.0.0"
|
|
71
71
|
}
|