microboard-ui-temp 0.1.97 → 0.1.99
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.js +18 -12
- package/dist/spa.js +18 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -259203,13 +259203,19 @@ class ConnectorTransformer extends Tool {
|
|
|
259203
259203
|
this.snap.connector = connector;
|
|
259204
259204
|
this.snap.pointerMove();
|
|
259205
259205
|
const point5 = this.snap.getControlPoint();
|
|
259206
|
-
|
|
259207
|
-
start:
|
|
259208
|
-
|
|
259209
|
-
|
|
259210
|
-
|
|
259211
|
-
|
|
259212
|
-
|
|
259206
|
+
switch (this.statePointer) {
|
|
259207
|
+
case "start":
|
|
259208
|
+
connector.setStartPoint(point5, this.beginTimeStamp);
|
|
259209
|
+
this.selection.subject.publish(this.selection);
|
|
259210
|
+
break;
|
|
259211
|
+
case "end":
|
|
259212
|
+
connector.setEndPoint(point5, this.beginTimeStamp);
|
|
259213
|
+
this.selection.subject.publish(this.selection);
|
|
259214
|
+
break;
|
|
259215
|
+
case "middle":
|
|
259216
|
+
connector.setMiddlePoint(point5, this.beginTimeStamp);
|
|
259217
|
+
break;
|
|
259218
|
+
}
|
|
259213
259219
|
this.selection.subject.publish(this.selection);
|
|
259214
259220
|
}
|
|
259215
259221
|
}
|
|
@@ -439725,16 +439731,16 @@ class TextEditor extends import_react362.default.Component {
|
|
|
439725
439731
|
return true;
|
|
439726
439732
|
}
|
|
439727
439733
|
if (event.key === "Enter" && !event.shiftKey) {
|
|
439728
|
-
|
|
439734
|
+
if (this.props.text.editor.handleSplitListItem()) {
|
|
439735
|
+
return true;
|
|
439736
|
+
}
|
|
439737
|
+
this.props.text.editor.splitNode();
|
|
439738
|
+
return true;
|
|
439729
439739
|
}
|
|
439730
439740
|
if (event.key === "Tab" && !event.shiftKey) {
|
|
439731
|
-
event.preventDefault();
|
|
439732
|
-
event.stopPropagation();
|
|
439733
439741
|
return this.props.text.editor.handleWrapIntoNestedList();
|
|
439734
439742
|
}
|
|
439735
439743
|
if (event.key === "Tab" && event.shiftKey) {
|
|
439736
|
-
event.preventDefault();
|
|
439737
|
-
event.stopPropagation();
|
|
439738
439744
|
const listType = this.props.text.editor.getListTypeAtSelectionStart();
|
|
439739
439745
|
if (!listType) {
|
|
439740
439746
|
return false;
|
package/dist/spa.js
CHANGED
|
@@ -259203,13 +259203,19 @@ class ConnectorTransformer extends Tool {
|
|
|
259203
259203
|
this.snap.connector = connector;
|
|
259204
259204
|
this.snap.pointerMove();
|
|
259205
259205
|
const point5 = this.snap.getControlPoint();
|
|
259206
|
-
|
|
259207
|
-
start:
|
|
259208
|
-
|
|
259209
|
-
|
|
259210
|
-
|
|
259211
|
-
|
|
259212
|
-
|
|
259206
|
+
switch (this.statePointer) {
|
|
259207
|
+
case "start":
|
|
259208
|
+
connector.setStartPoint(point5, this.beginTimeStamp);
|
|
259209
|
+
this.selection.subject.publish(this.selection);
|
|
259210
|
+
break;
|
|
259211
|
+
case "end":
|
|
259212
|
+
connector.setEndPoint(point5, this.beginTimeStamp);
|
|
259213
|
+
this.selection.subject.publish(this.selection);
|
|
259214
|
+
break;
|
|
259215
|
+
case "middle":
|
|
259216
|
+
connector.setMiddlePoint(point5, this.beginTimeStamp);
|
|
259217
|
+
break;
|
|
259218
|
+
}
|
|
259213
259219
|
this.selection.subject.publish(this.selection);
|
|
259214
259220
|
}
|
|
259215
259221
|
}
|
|
@@ -439725,16 +439731,16 @@ class TextEditor extends import_react362.default.Component {
|
|
|
439725
439731
|
return true;
|
|
439726
439732
|
}
|
|
439727
439733
|
if (event.key === "Enter" && !event.shiftKey) {
|
|
439728
|
-
|
|
439734
|
+
if (this.props.text.editor.handleSplitListItem()) {
|
|
439735
|
+
return true;
|
|
439736
|
+
}
|
|
439737
|
+
this.props.text.editor.splitNode();
|
|
439738
|
+
return true;
|
|
439729
439739
|
}
|
|
439730
439740
|
if (event.key === "Tab" && !event.shiftKey) {
|
|
439731
|
-
event.preventDefault();
|
|
439732
|
-
event.stopPropagation();
|
|
439733
439741
|
return this.props.text.editor.handleWrapIntoNestedList();
|
|
439734
439742
|
}
|
|
439735
439743
|
if (event.key === "Tab" && event.shiftKey) {
|
|
439736
|
-
event.preventDefault();
|
|
439737
|
-
event.stopPropagation();
|
|
439738
439744
|
const listType = this.props.text.editor.getListTypeAtSelectionStart();
|
|
439739
439745
|
if (!listType) {
|
|
439740
439746
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microboard-ui-temp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.99",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
61
61
|
"js-cookie": "^3.0.5",
|
|
62
62
|
"jwt-decode": "^4.0.0",
|
|
63
|
-
"microboard-temp": "^0.5.
|
|
63
|
+
"microboard-temp": "^0.5.35",
|
|
64
64
|
"nanoid": "^5.1.5",
|
|
65
65
|
"prop-types": "^15.8.1",
|
|
66
66
|
"react-hot-toast": "2.4.1",
|