prosemirror-slash-menu-react 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +5 -5
- package/dist/index.js +5 -5
- package/package.json +19 -33
package/dist/index.es.js
CHANGED
|
@@ -137,17 +137,17 @@ const H3Icon = () => (React.createElement("svg", { width: "36", height: "36", vi
|
|
|
137
137
|
const ItalicIcon = () => (React.createElement("svg", { width: "25", height: "24", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
138
138
|
React.createElement("path", { d: "M8.38197 18L14.382 6H11.5C10.9477 6 10.5 5.55228 10.5 5C10.5 4.44772 10.9477 4 11.5 4H19.5C20.0523 4 20.5 4.44772 20.5 5C20.5 5.55228 20.0523 6 19.5 6H16.618L10.618 18H13.5C14.0523 18 14.5 18.4477 14.5 19C14.5 19.5523 14.0523 20 13.5 20H5.5C4.94772 20 4.5 19.5523 4.5 19C4.5 18.4477 4.94772 18 5.5 18H8.38197Z", fill: "#050038" })));
|
|
139
139
|
const BoldIcon = () => (React.createElement("svg", { width: "25", height: "24", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
140
|
-
React.createElement("path", {
|
|
141
|
-
const ArrowLeft = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor",
|
|
140
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.5 15C19.5 17.7614 17.2614 20 14.5 20H8.5C7.94772 20 7.5 19.5523 7.5 19V5C7.5 4.44772 7.94772 4 8.5 4H14C16.4853 4 18.5 6.01472 18.5 8.5C18.5 9.4786 18.1876 10.3842 17.6572 11.1226C18.7818 12.0395 19.5 13.4359 19.5 15ZM10.5 10H14C14.8284 10 15.5 9.32843 15.5 8.5C15.5 7.67157 14.8284 7 14 7H10.5V10ZM10.5 17V13H14.5C15.6046 13 16.5 13.8954 16.5 15C16.5 16.1046 15.6046 17 14.5 17H10.5Z", fill: "#050038" })));
|
|
141
|
+
const ArrowLeft = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-arrow-left" },
|
|
142
142
|
React.createElement("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
|
|
143
143
|
React.createElement("polyline", { points: "12 19 5 12 12 5" })));
|
|
144
|
-
const ArrowRight = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor",
|
|
144
|
+
const ArrowRight = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-arrow-right" },
|
|
145
145
|
React.createElement("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
|
|
146
146
|
React.createElement("polyline", { points: "12 5 19 12 12 19" })));
|
|
147
|
-
const CodeIcon = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor",
|
|
147
|
+
const CodeIcon = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-code" },
|
|
148
148
|
React.createElement("polyline", { points: "16 18 22 12 16 6" }),
|
|
149
149
|
React.createElement("polyline", { points: "8 6 2 12 8 18" })));
|
|
150
|
-
const LinkIcon = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor",
|
|
150
|
+
const LinkIcon = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-link-2" },
|
|
151
151
|
React.createElement("path", { d: "M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3" }),
|
|
152
152
|
React.createElement("line", { x1: "8", y1: "12", x2: "16", y2: "12" })));
|
|
153
153
|
const defaultIcons = {
|
package/dist/index.js
CHANGED
|
@@ -145,17 +145,17 @@ const H3Icon = () => (React__default["default"].createElement("svg", { width: "3
|
|
|
145
145
|
const ItalicIcon = () => (React__default["default"].createElement("svg", { width: "25", height: "24", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
146
146
|
React__default["default"].createElement("path", { d: "M8.38197 18L14.382 6H11.5C10.9477 6 10.5 5.55228 10.5 5C10.5 4.44772 10.9477 4 11.5 4H19.5C20.0523 4 20.5 4.44772 20.5 5C20.5 5.55228 20.0523 6 19.5 6H16.618L10.618 18H13.5C14.0523 18 14.5 18.4477 14.5 19C14.5 19.5523 14.0523 20 13.5 20H5.5C4.94772 20 4.5 19.5523 4.5 19C4.5 18.4477 4.94772 18 5.5 18H8.38197Z", fill: "#050038" })));
|
|
147
147
|
const BoldIcon = () => (React__default["default"].createElement("svg", { width: "25", height: "24", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
148
|
-
React__default["default"].createElement("path", {
|
|
149
|
-
const ArrowLeft = () => (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor",
|
|
148
|
+
React__default["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.5 15C19.5 17.7614 17.2614 20 14.5 20H8.5C7.94772 20 7.5 19.5523 7.5 19V5C7.5 4.44772 7.94772 4 8.5 4H14C16.4853 4 18.5 6.01472 18.5 8.5C18.5 9.4786 18.1876 10.3842 17.6572 11.1226C18.7818 12.0395 19.5 13.4359 19.5 15ZM10.5 10H14C14.8284 10 15.5 9.32843 15.5 8.5C15.5 7.67157 14.8284 7 14 7H10.5V10ZM10.5 17V13H14.5C15.6046 13 16.5 13.8954 16.5 15C16.5 16.1046 15.6046 17 14.5 17H10.5Z", fill: "#050038" })));
|
|
149
|
+
const ArrowLeft = () => (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-arrow-left" },
|
|
150
150
|
React__default["default"].createElement("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
|
|
151
151
|
React__default["default"].createElement("polyline", { points: "12 19 5 12 12 5" })));
|
|
152
|
-
const ArrowRight = () => (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor",
|
|
152
|
+
const ArrowRight = () => (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-arrow-right" },
|
|
153
153
|
React__default["default"].createElement("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
|
|
154
154
|
React__default["default"].createElement("polyline", { points: "12 5 19 12 12 19" })));
|
|
155
|
-
const CodeIcon = () => (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor",
|
|
155
|
+
const CodeIcon = () => (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-code" },
|
|
156
156
|
React__default["default"].createElement("polyline", { points: "16 18 22 12 16 6" }),
|
|
157
157
|
React__default["default"].createElement("polyline", { points: "8 6 2 12 8 18" })));
|
|
158
|
-
const LinkIcon = () => (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor",
|
|
158
|
+
const LinkIcon = () => (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-link-2" },
|
|
159
159
|
React__default["default"].createElement("path", { d: "M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3" }),
|
|
160
160
|
React__default["default"].createElement("line", { x1: "8", y1: "12", x2: "16", y2: "12" })));
|
|
161
161
|
const defaultIcons = {
|
package/package.json
CHANGED
|
@@ -1,42 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosemirror-slash-menu-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Implementation of prosemirror-slash-menu in react",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@popperjs/core": "^2.11.8",
|
|
10
|
-
"@rollup/plugin-commonjs": "^25.0.0",
|
|
11
|
-
"@rollup/plugin-sucrase": "^5.0.1",
|
|
12
|
-
"@rollup/plugin-typescript": "^11.1.1",
|
|
13
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
14
|
-
"@testing-library/react": "^13.4.0",
|
|
15
|
-
"@testing-library/user-event": "^13.5.0",
|
|
16
|
-
"@types/jest": "^27.5.2",
|
|
17
|
-
"@types/node": "^16.18.34",
|
|
18
|
-
"@types/react": "^18.2.9",
|
|
19
|
-
"@types/react-dom": "^18.2.4",
|
|
20
|
-
"prettier": "^2.8.8",
|
|
21
9
|
"prosemirror-commands": "^1.5.2",
|
|
22
10
|
"prosemirror-schema-basic": "^1.2.2",
|
|
23
11
|
"prosemirror-slash-menu": "^0.1.0",
|
|
24
|
-
"prosemirror-view": "^1.31.
|
|
12
|
+
"prosemirror-view": "^1.31.5",
|
|
25
13
|
"react": "^18.2.0",
|
|
26
14
|
"react-dom": "^18.2.0",
|
|
27
15
|
"react-popper": "^2.3.0",
|
|
28
|
-
"
|
|
29
|
-
"rollup-plugin-import-css": "^3.2.1",
|
|
30
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
31
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
32
|
-
"typescript": "^4.9.5",
|
|
33
|
-
"web-vitals": "^2.1.4"
|
|
16
|
+
"rollup-plugin-import-css": "^3.2.1"
|
|
34
17
|
},
|
|
35
18
|
"scripts": {
|
|
36
|
-
"start": "react-scripts start",
|
|
37
|
-
"test": "react-scripts test",
|
|
38
|
-
"eject": "react-scripts eject",
|
|
39
19
|
"build": "rollup -c --bundleConfigAsCjs",
|
|
20
|
+
"test": "echo TODO",
|
|
40
21
|
"yalc:watch": "nodemon --watch dist --exec 'yalc push'",
|
|
41
22
|
"dev:watch": "npm-run-all --parallel dev yalc:watch"
|
|
42
23
|
},
|
|
@@ -59,25 +40,30 @@
|
|
|
59
40
|
"url": "https://github.com/emergence-engineering/prosemirror-slash-menu-react/issues"
|
|
60
41
|
},
|
|
61
42
|
"homepage": "https://github.com/emergence-engineering/prosemirror-slash-menu-react#readme",
|
|
62
|
-
"eslintConfig": {
|
|
63
|
-
"extends": [
|
|
64
|
-
"react-app",
|
|
65
|
-
"react-app/jest"
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
43
|
"devDependencies": {
|
|
69
|
-
"@babel/core": "^7.22.
|
|
70
|
-
"@babel/preset-env": "^7.22.
|
|
71
|
-
"@babel/preset-react": "^7.22.
|
|
44
|
+
"@babel/core": "^7.22.5",
|
|
45
|
+
"@babel/preset-env": "^7.22.5",
|
|
46
|
+
"@babel/preset-react": "^7.22.5",
|
|
47
|
+
"@popperjs/core": "^2.11.8",
|
|
72
48
|
"@rollup/plugin-babel": "^6.0.3",
|
|
49
|
+
"@rollup/plugin-commonjs": "^25.0.2",
|
|
73
50
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
51
|
+
"@rollup/plugin-sucrase": "^5.0.1",
|
|
52
|
+
"@rollup/plugin-typescript": "^11.1.1",
|
|
53
|
+
"@types/react": "^18.2.13",
|
|
74
54
|
"nodemon": "^2.0.22",
|
|
55
|
+
"prettier": "^2.8.8",
|
|
75
56
|
"rollup": "^2.79.1",
|
|
76
57
|
"rollup-plugin-babel": "^4.4.0",
|
|
77
58
|
"rollup-plugin-copy": "^3.4.0",
|
|
78
|
-
"rollup-plugin-typescript2": "^0.34.1"
|
|
59
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
60
|
+
"typescript": "^5.1.3"
|
|
79
61
|
},
|
|
80
62
|
"peerDependencies": {
|
|
81
63
|
"react": "^18.2.0"
|
|
64
|
+
},
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=12",
|
|
67
|
+
"npm": ">=6"
|
|
82
68
|
}
|
|
83
69
|
}
|