@textbus/collaborate 2.5.5 → 2.5.6
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/bundles/index.esm.js +6 -13
- package/bundles/index.js +6 -13
- package/package.json +2 -2
package/bundles/index.esm.js
CHANGED
|
@@ -188,7 +188,7 @@ let CollaborateCursor = class CollaborateCursor {
|
|
|
188
188
|
color: item.color,
|
|
189
189
|
left: cursorRect.left - containerRect.left,
|
|
190
190
|
top: cursorRect.top - containerRect.top,
|
|
191
|
-
width:
|
|
191
|
+
width: 1,
|
|
192
192
|
height: cursorRect.height
|
|
193
193
|
};
|
|
194
194
|
if (rect.left < 0 || rect.top < 0 || rect.left > containerRect.width) {
|
|
@@ -231,7 +231,6 @@ let CollaborateCursor = class CollaborateCursor {
|
|
|
231
231
|
const userTip = createElement('span', {
|
|
232
232
|
styles: {
|
|
233
233
|
position: 'absolute',
|
|
234
|
-
display: 'none',
|
|
235
234
|
left: '50%',
|
|
236
235
|
transform: 'translateX(-50%)',
|
|
237
236
|
marginBottom: '2px',
|
|
@@ -239,6 +238,7 @@ let CollaborateCursor = class CollaborateCursor {
|
|
|
239
238
|
whiteSpace: 'nowrap',
|
|
240
239
|
color: '#fff',
|
|
241
240
|
boxShadow: '0 1px 2px rgba(0,0,0,.1)',
|
|
241
|
+
opacity: 0.8,
|
|
242
242
|
borderRadius: '3px',
|
|
243
243
|
padding: '3px 5px',
|
|
244
244
|
pointerEvents: 'none',
|
|
@@ -249,20 +249,13 @@ let CollaborateCursor = class CollaborateCursor {
|
|
|
249
249
|
position: 'absolute',
|
|
250
250
|
top: '-2px',
|
|
251
251
|
left: '-2px',
|
|
252
|
-
width: '
|
|
253
|
-
height: '
|
|
252
|
+
width: '5px',
|
|
253
|
+
height: '5px',
|
|
254
|
+
borderRadius: '50%',
|
|
254
255
|
pointerEvents: 'auto',
|
|
255
256
|
pointer: 'cursor',
|
|
256
257
|
},
|
|
257
|
-
children: [userTip]
|
|
258
|
-
on: {
|
|
259
|
-
mouseenter() {
|
|
260
|
-
userTip.style.display = 'block';
|
|
261
|
-
},
|
|
262
|
-
mouseleave() {
|
|
263
|
-
userTip.style.display = 'none';
|
|
264
|
-
}
|
|
265
|
-
}
|
|
258
|
+
children: [userTip]
|
|
266
259
|
});
|
|
267
260
|
child = createElement('span', {
|
|
268
261
|
styles: {
|
package/bundles/index.js
CHANGED
|
@@ -190,7 +190,7 @@ exports.CollaborateCursor = class CollaborateCursor {
|
|
|
190
190
|
color: item.color,
|
|
191
191
|
left: cursorRect.left - containerRect.left,
|
|
192
192
|
top: cursorRect.top - containerRect.top,
|
|
193
|
-
width:
|
|
193
|
+
width: 1,
|
|
194
194
|
height: cursorRect.height
|
|
195
195
|
};
|
|
196
196
|
if (rect.left < 0 || rect.top < 0 || rect.left > containerRect.width) {
|
|
@@ -233,7 +233,6 @@ exports.CollaborateCursor = class CollaborateCursor {
|
|
|
233
233
|
const userTip = browser.createElement('span', {
|
|
234
234
|
styles: {
|
|
235
235
|
position: 'absolute',
|
|
236
|
-
display: 'none',
|
|
237
236
|
left: '50%',
|
|
238
237
|
transform: 'translateX(-50%)',
|
|
239
238
|
marginBottom: '2px',
|
|
@@ -241,6 +240,7 @@ exports.CollaborateCursor = class CollaborateCursor {
|
|
|
241
240
|
whiteSpace: 'nowrap',
|
|
242
241
|
color: '#fff',
|
|
243
242
|
boxShadow: '0 1px 2px rgba(0,0,0,.1)',
|
|
243
|
+
opacity: 0.8,
|
|
244
244
|
borderRadius: '3px',
|
|
245
245
|
padding: '3px 5px',
|
|
246
246
|
pointerEvents: 'none',
|
|
@@ -251,20 +251,13 @@ exports.CollaborateCursor = class CollaborateCursor {
|
|
|
251
251
|
position: 'absolute',
|
|
252
252
|
top: '-2px',
|
|
253
253
|
left: '-2px',
|
|
254
|
-
width: '
|
|
255
|
-
height: '
|
|
254
|
+
width: '5px',
|
|
255
|
+
height: '5px',
|
|
256
|
+
borderRadius: '50%',
|
|
256
257
|
pointerEvents: 'auto',
|
|
257
258
|
pointer: 'cursor',
|
|
258
259
|
},
|
|
259
|
-
children: [userTip]
|
|
260
|
-
on: {
|
|
261
|
-
mouseenter() {
|
|
262
|
-
userTip.style.display = 'block';
|
|
263
|
-
},
|
|
264
|
-
mouseleave() {
|
|
265
|
-
userTip.style.display = 'none';
|
|
266
|
-
}
|
|
267
|
-
}
|
|
260
|
+
children: [userTip]
|
|
268
261
|
});
|
|
269
262
|
child = browser.createElement('span', {
|
|
270
263
|
styles: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@textbus/collaborate",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.6",
|
|
4
4
|
"description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
|
|
5
5
|
"main": "./bundles/index.js",
|
|
6
6
|
"module": "./bundles/index.esm.js",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"bugs": {
|
|
52
52
|
"url": "https://github.com/textbus/textbus.git/issues"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "cd75d4ae54f0976cbb87c654ab322b5d66f572e5"
|
|
55
55
|
}
|