@cocreate/cursors 1.16.11 → 1.16.12
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/CHANGELOG.md +7 -0
- package/demo/index.html +55 -50
- package/docs/index.html +229 -65
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.16.12](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.16.11...v1.16.12) (2023-06-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([6d7452d](https://github.com/CoCreate-app/CoCreate-cursors/commit/6d7452d48d130c8db3a706d84f496ab9bcc91436))
|
|
7
|
+
|
|
1
8
|
## [1.16.11](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.16.10...v1.16.11) (2023-05-21)
|
|
2
9
|
|
|
3
10
|
|
package/demo/index.html
CHANGED
|
@@ -1,52 +1,57 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
collection="module_activities"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<link
|
|
8
|
+
rel="icon"
|
|
9
|
+
href="https://cdn.cocreate.app/favicon.ico"
|
|
10
|
+
type="image/ico"
|
|
11
|
+
sizes="16x16" />
|
|
12
|
+
<title>Cursors | CoCreate</title>
|
|
13
|
+
|
|
14
|
+
<!-- CoCreateCSS -->
|
|
15
|
+
<link
|
|
16
|
+
rel="stylesheet"
|
|
17
|
+
href="https://cdn.cocreate.app/latest/CoCreate.min.css"
|
|
18
|
+
type="text/css" />
|
|
19
|
+
|
|
20
|
+
<!-- CoCreate Cursors -->
|
|
21
|
+
<link rel="stylesheet" href="./CoCreate-cursors.css" type="text/css" />
|
|
22
|
+
|
|
23
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
24
|
+
</head>
|
|
25
|
+
|
|
26
|
+
<body>
|
|
27
|
+
<form collection="module_activities" class="margin:20px">
|
|
28
|
+
<input
|
|
29
|
+
type="text"
|
|
30
|
+
cursors="true"
|
|
31
|
+
collection="module_activities"
|
|
32
|
+
document_id="5edda7608d5c7a7d656edecd"
|
|
33
|
+
name="name"
|
|
34
|
+
placeholder="Text"
|
|
35
|
+
class="floating-label" />
|
|
36
|
+
|
|
37
|
+
<textarea
|
|
38
|
+
cursors="true"
|
|
39
|
+
collection="module_activities"
|
|
40
|
+
document_id="5edda7608d5c7a7d656edecd"
|
|
41
|
+
name="text_area"
|
|
42
|
+
placeholder="Text Area"
|
|
43
|
+
class="floating-label">
|
|
44
|
+
</textarea>
|
|
45
|
+
|
|
46
|
+
<button
|
|
47
|
+
class="submitBtn position:fixed bottom:15px right:15px bg-blue grow-hover round">
|
|
48
|
+
<i
|
|
49
|
+
class="height:20px fill:#505050"
|
|
50
|
+
src="/assets/svg/save.svg"></i>
|
|
51
|
+
</button>
|
|
52
|
+
</form>
|
|
53
|
+
|
|
54
|
+
<!--<script src="../dist/CoCreate-cursor.js"></script>-->
|
|
55
|
+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
56
|
+
</body>
|
|
57
|
+
</html>
|
package/docs/index.html
CHANGED
|
@@ -1,51 +1,139 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<meta charset="utf-8"
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge"
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"
|
|
7
|
-
<title>CoCreate-cursor Documentation | CoCreateJS
|
|
8
|
-
<link
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<title>CoCreate-cursor Documentation | CoCreateJS</title>
|
|
8
|
+
<link
|
|
9
|
+
rel="icon"
|
|
10
|
+
type="image/png"
|
|
11
|
+
sizes="32x32"
|
|
12
|
+
href="https://cocreate.app/images/favicon.ico" />
|
|
13
|
+
<meta
|
|
14
|
+
name="description"
|
|
15
|
+
content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
|
|
16
|
+
<meta
|
|
17
|
+
name="keywords"
|
|
18
|
+
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
11
19
|
<meta name="robots" content="index,follow" />
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
<meta
|
|
21
|
+
property="og:image"
|
|
22
|
+
content="https://cdn.cocreate.app/docs/boilerplate.png" />
|
|
23
|
+
<link
|
|
24
|
+
rel="stylesheet"
|
|
25
|
+
href="/docs/index.css"
|
|
26
|
+
collection="files"
|
|
27
|
+
document_id="60888216117c640e7596303f"
|
|
28
|
+
name="src"
|
|
29
|
+
type="text/css"
|
|
30
|
+
save="true" />
|
|
31
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
32
|
+
</head>
|
|
16
33
|
|
|
17
34
|
<body>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
35
|
+
<nav
|
|
36
|
+
class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
|
|
37
|
+
content_id="content"
|
|
38
|
+
scroll="sticky-nav,hide-nav"
|
|
39
|
+
scroll-up="10"
|
|
40
|
+
scroll-down="10"
|
|
41
|
+
collection="files"
|
|
42
|
+
document_id="60395ef42b3ac232657040fd"
|
|
43
|
+
name="src"></nav>
|
|
44
|
+
<sidenav
|
|
45
|
+
id="menuL"
|
|
46
|
+
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
47
|
+
resizable
|
|
48
|
+
resize-target="[content_id='content']"
|
|
49
|
+
resize-property="margin-left"
|
|
50
|
+
resize-value="width">
|
|
51
|
+
<menu
|
|
52
|
+
collection="files"
|
|
53
|
+
document_id="603717b07de7fb350ae9fec8"
|
|
54
|
+
name="src"></menu>
|
|
55
|
+
<div resize="right"></div>
|
|
56
|
+
</sidenav>
|
|
57
|
+
<main
|
|
58
|
+
class="padding-top:15px padding:15px@lg@xl"
|
|
59
|
+
content_id="content"
|
|
60
|
+
id="cocreate-cursor">
|
|
61
|
+
<div
|
|
62
|
+
class="display:flex flex-wrap:wrap justify-content:space-between">
|
|
26
63
|
<div class="display:flex align-items:center">
|
|
27
64
|
<h2>CoCreate-cursor</h2>
|
|
28
65
|
</div>
|
|
29
|
-
<div
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<a
|
|
66
|
+
<div
|
|
67
|
+
class="display:flex align-items:center font-size:20px"
|
|
68
|
+
share-height="600"
|
|
69
|
+
share-width="500"
|
|
70
|
+
share-media="https://via.placeholder.com/300/09f/fff.png">
|
|
71
|
+
<a
|
|
72
|
+
href="https://github.com/CoCreate-app/CoCreate-cursor"
|
|
73
|
+
target="_blank"
|
|
74
|
+
class="margin-right:15px"
|
|
75
|
+
><i
|
|
76
|
+
class="height:20px fill:#505050"
|
|
77
|
+
src="/assets/svg/github.svg"></i
|
|
78
|
+
></a>
|
|
79
|
+
<a
|
|
80
|
+
class="margin-right:15px share"
|
|
81
|
+
share-network="twitter"
|
|
82
|
+
title="Share on twitter"
|
|
83
|
+
><i
|
|
84
|
+
class="height:20px fill:#505050"
|
|
85
|
+
src="/assets/svg/twitter.svg"></i
|
|
86
|
+
></a>
|
|
87
|
+
<a
|
|
88
|
+
class="margin-right:15px share"
|
|
89
|
+
share-network="facebook"
|
|
90
|
+
title="Share on Facebook"
|
|
91
|
+
><i
|
|
92
|
+
class="height:20px fill:#505050"
|
|
93
|
+
src="/assets/svg/facebook.svg"></i
|
|
94
|
+
></a>
|
|
95
|
+
<a
|
|
96
|
+
class="margin-right:15px share"
|
|
97
|
+
share-network="instagram"
|
|
98
|
+
title="Share on instagram"
|
|
99
|
+
><i
|
|
100
|
+
class="height:20px fill:#505050"
|
|
101
|
+
src="/assets/svg/instagram.svg"></i
|
|
102
|
+
></a>
|
|
103
|
+
<a
|
|
104
|
+
class="margin-right:15px share"
|
|
105
|
+
share-network="share"
|
|
106
|
+
title="Share on share"
|
|
107
|
+
><i
|
|
108
|
+
class="height:20px fill:#505050"
|
|
109
|
+
src="/assets/svg/share-alt.svg"></i
|
|
110
|
+
></a>
|
|
35
111
|
</div>
|
|
36
112
|
</div>
|
|
37
|
-
<p class="max-width:500px margin:20px_0px">
|
|
113
|
+
<p class="max-width:500px margin:20px_0px">
|
|
114
|
+
A simple component of HTML5, CSS and pure JavaScript. Easy
|
|
115
|
+
configuration using data attributes and highly stylizable, whose
|
|
116
|
+
objective is to provide a shared cursor in an html element
|
|
117
|
+
(input, textarea or div [content-editable])
|
|
118
|
+
</p>
|
|
38
119
|
<div id="cursor-section" class="display:flex flex-wrap:wrap">
|
|
39
|
-
<div
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
120
|
+
<div
|
|
121
|
+
class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px">
|
|
122
|
+
<h2
|
|
123
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
124
|
+
Install
|
|
125
|
+
</h2>
|
|
126
|
+
<pre><code class="language-javascript">npm install cocreate-cursors</code></pre>
|
|
127
|
+
<p class="padding:10px_0px">Or you can use cdn link:</p>
|
|
128
|
+
<pre><code class="language-javascript">https://cdn.cocreate.app/CoCreate-cursors.min.js</code></pre>
|
|
44
129
|
|
|
45
|
-
|
|
130
|
+
<h2
|
|
131
|
+
class="border-bottom:1px_solid_lightgrey margin-top:80px padding:5px_0px">
|
|
132
|
+
Usage
|
|
133
|
+
</h2>
|
|
46
134
|
<div class="">
|
|
47
135
|
<p class="padding:10px_0px">This is cursor reference</p>
|
|
48
|
-
|
|
136
|
+
|
|
49
137
|
<div class="flex-grow:1 min-width:300px width:100%">
|
|
50
138
|
<pre>
|
|
51
139
|
<code>
|
|
@@ -64,48 +152,124 @@
|
|
|
64
152
|
</div>
|
|
65
153
|
<p class="padding:10px_0px">This is cursor reference</p>
|
|
66
154
|
</div>
|
|
67
|
-
<h2
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
155
|
+
<h2
|
|
156
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
157
|
+
Attributes
|
|
158
|
+
</h2>
|
|
159
|
+
<ul class="list-style-type:none">
|
|
160
|
+
<li
|
|
161
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
162
|
+
<h4>
|
|
163
|
+
<span>-</span>
|
|
164
|
+
<span class="cocreate-badge success"
|
|
165
|
+
>string</span
|
|
166
|
+
>
|
|
167
|
+
<span class="cocreate-badge warning"
|
|
168
|
+
>optional</span
|
|
169
|
+
>
|
|
170
|
+
</h4>
|
|
171
|
+
<p>
|
|
172
|
+
It has no data attributes, the cursor starts
|
|
173
|
+
automatically for elements with realtime = true
|
|
174
|
+
</p>
|
|
72
175
|
</li>
|
|
73
176
|
</ul>
|
|
74
177
|
</div>
|
|
75
|
-
|
|
76
|
-
<div
|
|
178
|
+
|
|
179
|
+
<div
|
|
180
|
+
class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
|
|
77
181
|
<!-- SandBox -->
|
|
78
|
-
<h2
|
|
79
|
-
|
|
182
|
+
<h2
|
|
183
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
184
|
+
Demo
|
|
185
|
+
</h2>
|
|
186
|
+
<div
|
|
187
|
+
class="position:sticky top:0 padding:15px_0px height:100vh">
|
|
80
188
|
<!-- SandBox -->
|
|
81
|
-
<div
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
189
|
+
<div
|
|
190
|
+
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
191
|
+
id="playground">
|
|
192
|
+
<div
|
|
193
|
+
id="demo-code"
|
|
194
|
+
resizable
|
|
195
|
+
class="position:relative height:50%">
|
|
196
|
+
<textarea
|
|
197
|
+
type="code"
|
|
198
|
+
lang="html"
|
|
199
|
+
collection="demos"
|
|
200
|
+
document_id=""
|
|
201
|
+
name="demo"
|
|
202
|
+
save="false"
|
|
203
|
+
id="demo"
|
|
204
|
+
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
205
|
+
<div
|
|
206
|
+
resize="bottom"
|
|
207
|
+
class="background:lightgrey"></div>
|
|
86
208
|
</div>
|
|
87
|
-
|
|
88
|
-
<div
|
|
89
|
-
|
|
209
|
+
|
|
210
|
+
<div
|
|
211
|
+
id="demo-preview"
|
|
212
|
+
class="position:relative overflow:auto background-color:white">
|
|
213
|
+
<div class="demopreview padding:20px"></div>
|
|
90
214
|
</div>
|
|
91
|
-
|
|
92
|
-
<div
|
|
93
|
-
|
|
94
|
-
<a
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
215
|
+
|
|
216
|
+
<div
|
|
217
|
+
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
218
|
+
<a
|
|
219
|
+
class="margin-right:10px"
|
|
220
|
+
id="eye"
|
|
221
|
+
show="#eye-slash"
|
|
222
|
+
hide="#eye, #demo-preview"
|
|
223
|
+
toggle="code-height"
|
|
224
|
+
toggle-target="#demo-code"
|
|
225
|
+
><i
|
|
226
|
+
class="height:18px fill:#505050"
|
|
227
|
+
src="/assets/svg/eye.svg"></i
|
|
228
|
+
></a>
|
|
229
|
+
<a
|
|
230
|
+
class="margin-right:10px"
|
|
231
|
+
hidden
|
|
232
|
+
id="eye-slash"
|
|
233
|
+
show="#eye, #demo-preview"
|
|
234
|
+
hide="#eye-slash"
|
|
235
|
+
toggle="code-height"
|
|
236
|
+
toggle-target="#demo-code"
|
|
237
|
+
><i
|
|
238
|
+
class="height:20px fill:#505050"
|
|
239
|
+
src="/assets/svg/eye-slash.svg"></i
|
|
240
|
+
></a>
|
|
241
|
+
<a
|
|
242
|
+
class="margin-right:10px"
|
|
243
|
+
id="code"
|
|
244
|
+
show="#code-slash"
|
|
245
|
+
hide="#code, #demo-code"
|
|
246
|
+
><i
|
|
247
|
+
class="height:20px fill:#505050"
|
|
248
|
+
src="/assets/svg/code.svg"></i
|
|
249
|
+
></a>
|
|
250
|
+
<a
|
|
251
|
+
class="margin-right:10px"
|
|
252
|
+
hidden
|
|
253
|
+
id="code-slash"
|
|
254
|
+
show="#code, #demo-code"
|
|
255
|
+
hide="#code-slash"
|
|
256
|
+
><i
|
|
257
|
+
class="display:flex height:18px fill:#505050"
|
|
258
|
+
src="/assets/svg/code.svg"></i
|
|
259
|
+
></a>
|
|
260
|
+
<a
|
|
261
|
+
class="margin-right:5px"
|
|
262
|
+
fullscreen
|
|
263
|
+
fullscreen-target="#playground"></a>
|
|
98
264
|
</div>
|
|
99
|
-
|
|
100
265
|
</div>
|
|
101
266
|
<!-- End SandBox -->
|
|
102
|
-
|
|
267
|
+
</div>
|
|
103
268
|
</div>
|
|
104
|
-
|
|
105
|
-
</div>
|
|
269
|
+
</div>
|
|
106
270
|
</main>
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"
|
|
271
|
+
|
|
272
|
+
<script src="/apikey.js"></script>
|
|
273
|
+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
110
274
|
</body>
|
|
111
|
-
</html>
|
|
275
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/cursors",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.12",
|
|
4
4
|
"description": "Collaborative user cursor position for inputs, textarea's and contenteditable elements.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cursors",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"webpack-log": "^3.0.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@cocreate/crud-client": "^1.21.
|
|
64
|
-
"@cocreate/docs": "^1.7.
|
|
65
|
-
"@cocreate/local-storage": "^1.7.
|
|
66
|
-
"@cocreate/message-client": "^1.3.
|
|
67
|
-
"@cocreate/observer": "^1.
|
|
68
|
-
"@cocreate/random-color": "^1.4.
|
|
69
|
-
"@cocreate/selection": "^1.6.
|
|
70
|
-
"@cocreate/uuid": "^1.4.
|
|
63
|
+
"@cocreate/crud-client": "^1.21.5",
|
|
64
|
+
"@cocreate/docs": "^1.7.13",
|
|
65
|
+
"@cocreate/local-storage": "^1.7.3",
|
|
66
|
+
"@cocreate/message-client": "^1.3.11",
|
|
67
|
+
"@cocreate/observer": "^1.8.0",
|
|
68
|
+
"@cocreate/random-color": "^1.4.10",
|
|
69
|
+
"@cocreate/selection": "^1.6.10",
|
|
70
|
+
"@cocreate/uuid": "^1.4.11"
|
|
71
71
|
}
|
|
72
72
|
}
|