@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 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
- <head>
5
- <meta charset="utf-8">
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
- <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
9
- <title>Cursors | CoCreate</title>
10
-
11
- <!-- CoCreateCSS -->
12
- <link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
13
-
14
- <!-- CoCreate Cursors -->
15
- <link rel="stylesheet" href="./CoCreate-cursors.css" type="text/css" />
16
-
17
-
18
- <link rel="manifest" href="/manifest.webmanifest">
19
- </head>
20
-
21
- <body>
22
-
23
- <form collection="module_activities" class="margin:20px">
24
-
25
- <input type="text"
26
- cursors="true"
27
- collection="module_activities"
28
- document_id="5edda7608d5c7a7d656edecd"
29
- name="name"
30
- placeholder="Text"
31
- class="floating-label">
32
-
33
- <textarea
34
- cursors="true"
35
- collection="module_activities"
36
- document_id="5edda7608d5c7a7d656edecd"
37
- name="text_area"
38
- placeholder="Text Area"
39
- class="floating-label">
40
- </textarea>
41
-
42
- <button class="submitBtn position:fixed bottom:15px right:15px bg-blue grow-hover round"><i class="height:20px fill:#505050" src="/assets/svg/save.svg"></i></button>
43
-
44
- </form>
45
-
46
-
47
- <!--<script src="../dist/CoCreate-cursor.js"></script>-->
48
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
49
-
50
-
51
- </body>
52
- </html>
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 </title>
8
- <link rel="icon" type="image/png" sizes="32x32" href="https://cocreate.app/images/favicon.ico">
9
- <meta name="description" content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
10
- <meta name="keywords" content="helper classes, utility classes, css framework, css library, inline style classes" />
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
- <meta property="og:image" content="https://cdn.cocreate.app/docs/boilerplate.png">
13
- <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true"/>
14
- <link rel="manifest" href="/manifest.webmanifest" />
15
- </head>
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
- <nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" collection="files" document_id="60395ef42b3ac232657040fd" name="src">
19
- </nav>
20
- <sidenav id="menuL" class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl" resizable resize-target="[content_id='content']" resize-property="margin-left" resize-value="width">
21
- <menu collection="files" document_id="603717b07de7fb350ae9fec8" name="src"></menu>
22
- <div resize="right"></div>
23
- </sidenav>
24
- <main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="cocreate-cursor">
25
- <div class="display:flex flex-wrap:wrap justify-content:space-between">
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 class="display:flex align-items:center font-size:20px" share-height="600" share-width="500" share-media="https://via.placeholder.com/300/09f/fff.png">
30
- <a href="https://github.com/CoCreate-app/CoCreate-cursor" target="_blank" class="margin-right:15px"><i class="height:20px fill:#505050" src="/assets/svg/github.svg"></i></a>
31
- <a class="margin-right:15px share" share-network='twitter' title="Share on twitter"><i class="height:20px fill:#505050" src="/assets/svg/twitter.svg"></i></a>
32
- <a class="margin-right:15px share" share-network='facebook' title="Share on Facebook"><i class="height:20px fill:#505050" src="/assets/svg/facebook.svg"></i></a>
33
- <a class="margin-right:15px share" share-network='instagram' title="Share on instagram"><i class="height:20px fill:#505050" src="/assets/svg/instagram.svg"></i></a>
34
- <a class="margin-right:15px share" share-network='share' title="Share on share"><i class="height:20px fill:#505050" src="/assets/svg/share-alt.svg"></i></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">A simple component of HTML5, CSS and pure JavaScript. Easy configuration using data attributes and highly stylizable, whose objective is to provide a shared cursor in an html element (input, textarea or div [content-editable])</p>
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 class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px">
40
- <h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Install</h2>
41
- <pre><code class="language-javascript">npm install cocreate-cursors</code></pre>
42
- <p class="padding:10px_0px">Or you can use cdn link:</p>
43
- <pre><code class="language-javascript">https://cdn.cocreate.app/CoCreate-cursors.min.js</code></pre>
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
- <h2 class="border-bottom:1px_solid_lightgrey margin-top:80px padding:5px_0px">Usage</h2>
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 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Attributes</h2>
68
- <ul class="list-style-type:none ">
69
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
70
- <h4><span>-</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
71
- <p>It has no data attributes, the cursor starts automatically for elements with realtime = true</p>
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 class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
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 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Demo</h2>
79
- <div class="position:sticky top:0 padding:15px_0px height:100vh">
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 class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
82
-
83
- <div id="demo-code" resizable class="position:relative height:50%">
84
- <textarea type="code" lang="html" collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
85
- <div resize="bottom" class="background:lightgrey"></div>
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 id="demo-preview" class="position:relative overflow:auto background-color:white">
89
- <div class="demopreview" class="padding:20px"></div>
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 class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
93
- <a class="margin-right:10px" id="eye" show="#eye-slash" hide="#eye, #demo-preview" toggle="code-height" toggle-target="#demo-code"><i class="height:18px fill:#505050" src="/assets/svg/eye.svg"></i></a>
94
- <a class="margin-right:10px" hidden id="eye-slash" show="#eye, #demo-preview" hide="#eye-slash" toggle="code-height" toggle-target="#demo-code"><i class="height:20px fill:#505050" src="/assets/svg/eye-slash.svg"></i></a>
95
- <a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="height:20px fill:#505050" src="/assets/svg/code.svg"></i></a>
96
- <a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="display:flex height:18px fill:#505050" src="/assets/svg/code.svg"></i></a>
97
- <a class="margin-right:5px" fullscreen fullscreen-target="#playground"></a>
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
- </div>
267
+ </div>
103
268
  </div>
104
-
105
- </div>
269
+ </div>
106
270
  </main>
107
-
108
- <script src="/apikey.js"></script>
109
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
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.11",
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.4",
64
- "@cocreate/docs": "^1.7.12",
65
- "@cocreate/local-storage": "^1.7.2",
66
- "@cocreate/message-client": "^1.3.10",
67
- "@cocreate/observer": "^1.7.9",
68
- "@cocreate/random-color": "^1.4.9",
69
- "@cocreate/selection": "^1.6.9",
70
- "@cocreate/uuid": "^1.4.10"
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
  }