@cocreate/text 1.20.12 → 1.20.13
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/.github/FUNDING.yml +3 -3
- package/.github/workflows/automated.yml +95 -95
- package/.github/workflows/manual.yml +44 -44
- package/CHANGELOG.md +1797 -1790
- package/CONTRIBUTING.md +96 -96
- package/CoCreate.config.js +26 -26
- package/LICENSE +683 -683
- package/README.md +97 -97
- package/demo/custom-rich-text.html +277 -277
- package/demo/demos.1.html +24 -24
- package/demo/demos.html +38 -38
- package/demo/index.html +74 -74
- package/demo/test-webpage.html +376 -376
- package/docs/index.html +276 -276
- package/package.json +73 -73
- package/release.config.js +21 -21
- package/src/index.js +470 -470
- package/src/saveDomText.js +32 -32
- package/src/updateDom.js +208 -208
- package/src/updateText.js +79 -79
- package/webpack.config.js +84 -84
package/demo/demos.html
CHANGED
@@ -1,38 +1,38 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
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>Text | CoCreate</title>
|
8
|
-
<link rel="manifest" href="/manifest.webmanifest" />
|
9
|
-
</head>
|
10
|
-
|
11
|
-
<body class="padding:20px">
|
12
|
-
<form collection="test" document_id="62a3f5d5e6dfc91d581cdd2d">
|
13
|
-
<input type="email" name="email" />
|
14
|
-
<input type="tel" name="tel" />
|
15
|
-
<input type="url" name="url" />
|
16
|
-
<h1 name="name" collection="test"></h1>
|
17
|
-
<!-- <textarea name="name2"></textarea> -->
|
18
|
-
<!--<h1 name='name' contenteditable>I will be replaced by crdt</h1>-->
|
19
|
-
<!-- <div name='name2' contenteditable>I will be replaced by crud</div> -->
|
20
|
-
|
21
|
-
<div class="padding:20px">
|
22
|
-
CoCreateCrdt.init({collection: "apples1", document_id:
|
23
|
-
"60bea334b25613e8da1b4bdf", name: "src"});
|
24
|
-
</div>
|
25
|
-
<div class="padding:20px">
|
26
|
-
CoCreateCrdt.getText({collection: "apples1", document_id:
|
27
|
-
"60bea334b25613e8da1b4bdf", name: "src"});
|
28
|
-
</div>
|
29
|
-
<div class="padding:20px">
|
30
|
-
CoCreate.crdt.getText({collection: "apples1", document_id:
|
31
|
-
"5fe9e0a11b4a703e71c51ba8", name: "name"});
|
32
|
-
</div>
|
33
|
-
</form>
|
34
|
-
|
35
|
-
<!--<script src="../dist/CoCreate-text.js" ></script>-->
|
36
|
-
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
37
|
-
</body>
|
38
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
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>Text | CoCreate</title>
|
8
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body class="padding:20px">
|
12
|
+
<form collection="test" document_id="62a3f5d5e6dfc91d581cdd2d">
|
13
|
+
<input type="email" name="email" />
|
14
|
+
<input type="tel" name="tel" />
|
15
|
+
<input type="url" name="url" />
|
16
|
+
<h1 name="name" collection="test"></h1>
|
17
|
+
<!-- <textarea name="name2"></textarea> -->
|
18
|
+
<!--<h1 name='name' contenteditable>I will be replaced by crdt</h1>-->
|
19
|
+
<!-- <div name='name2' contenteditable>I will be replaced by crud</div> -->
|
20
|
+
|
21
|
+
<div class="padding:20px">
|
22
|
+
CoCreateCrdt.init({collection: "apples1", document_id:
|
23
|
+
"60bea334b25613e8da1b4bdf", name: "src"});
|
24
|
+
</div>
|
25
|
+
<div class="padding:20px">
|
26
|
+
CoCreateCrdt.getText({collection: "apples1", document_id:
|
27
|
+
"60bea334b25613e8da1b4bdf", name: "src"});
|
28
|
+
</div>
|
29
|
+
<div class="padding:20px">
|
30
|
+
CoCreate.crdt.getText({collection: "apples1", document_id:
|
31
|
+
"5fe9e0a11b4a703e71c51ba8", name: "name"});
|
32
|
+
</div>
|
33
|
+
</form>
|
34
|
+
|
35
|
+
<!--<script src="../dist/CoCreate-text.js" ></script>-->
|
36
|
+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
37
|
+
</body>
|
38
|
+
</html>
|
package/demo/index.html
CHANGED
@@ -1,74 +1,74 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
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>Text | CoCreate</title>
|
13
|
-
|
14
|
-
<link rel="manifest" href="/manifest.webmanifest" />
|
15
|
-
</head>
|
16
|
-
|
17
|
-
<body>
|
18
|
-
<div class="padding:20px">
|
19
|
-
<!--<input collection="modules" realtime="true" document_id="5e6d06ab430580425dd9e950" name="inputText" style="width: 500px; display: block">-->
|
20
|
-
<!--<textarea collection="modules" realtime="true" document_id="5e6d06ab430580425dd9e950" name="nameOtro" id="textare_test" rows="10" style="width: 500px; display: block" ></textarea>-->
|
21
|
-
<!--<textarea collection="modules" realtime="true" document_id="5e6d06ab430580425dd9e950" name="nameOtro2" id="textare_test" rows="10" style="width: 500px; display: block" ></textarea>-->
|
22
|
-
<form
|
23
|
-
realtime="true"
|
24
|
-
collection="module_activities"
|
25
|
-
class="margin-bottom:75px"
|
26
|
-
id="form">
|
27
|
-
<input
|
28
|
-
type="number"
|
29
|
-
collection="module_activities"
|
30
|
-
realtime="true"
|
31
|
-
document_id="5ef50326e0219c2a488dc6bc"
|
32
|
-
name="inputText"
|
33
|
-
style="width: 100%; display: block" />
|
34
|
-
<input
|
35
|
-
type="date"
|
36
|
-
collection="module_activities"
|
37
|
-
realtime="true"
|
38
|
-
document_id="5ef50326e0219c2a488dc6bc"
|
39
|
-
name="inputdate"
|
40
|
-
style="width: 100%; display: block" />
|
41
|
-
<textarea
|
42
|
-
realtime="true"
|
43
|
-
collection="module_activities"
|
44
|
-
document_id="5ef50326e0219c2a488dc6bc"
|
45
|
-
name="nameOtro"
|
46
|
-
rows="10"
|
47
|
-
class="floating-label"></textarea>
|
48
|
-
<textarea
|
49
|
-
realtime="true"
|
50
|
-
collection="module_activities"
|
51
|
-
document_id="5ef50326e0219c2a488dc6bc"
|
52
|
-
name="html"
|
53
|
-
rows="10"
|
54
|
-
class="floating-label"></textarea>
|
55
|
-
<textarea
|
56
|
-
collection="module_activities"
|
57
|
-
realtime="true"
|
58
|
-
document_id=""
|
59
|
-
name="nameOtro123"
|
60
|
-
rows="10"
|
61
|
-
style="width: 100%; display: block"></textarea>
|
62
|
-
<input
|
63
|
-
collection="modules"
|
64
|
-
realtime="true"
|
65
|
-
document_id="5ef50326e0219c2a488dc6bc"
|
66
|
-
name="text"
|
67
|
-
style="width: 500px; display: block" />
|
68
|
-
</form>
|
69
|
-
</div>
|
70
|
-
|
71
|
-
<!--<script src="../dist/CoCreate-text.js"></script>-->
|
72
|
-
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
73
|
-
</body>
|
74
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
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>Text | CoCreate</title>
|
13
|
+
|
14
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
15
|
+
</head>
|
16
|
+
|
17
|
+
<body>
|
18
|
+
<div class="padding:20px">
|
19
|
+
<!--<input collection="modules" realtime="true" document_id="5e6d06ab430580425dd9e950" name="inputText" style="width: 500px; display: block">-->
|
20
|
+
<!--<textarea collection="modules" realtime="true" document_id="5e6d06ab430580425dd9e950" name="nameOtro" id="textare_test" rows="10" style="width: 500px; display: block" ></textarea>-->
|
21
|
+
<!--<textarea collection="modules" realtime="true" document_id="5e6d06ab430580425dd9e950" name="nameOtro2" id="textare_test" rows="10" style="width: 500px; display: block" ></textarea>-->
|
22
|
+
<form
|
23
|
+
realtime="true"
|
24
|
+
collection="module_activities"
|
25
|
+
class="margin-bottom:75px"
|
26
|
+
id="form">
|
27
|
+
<input
|
28
|
+
type="number"
|
29
|
+
collection="module_activities"
|
30
|
+
realtime="true"
|
31
|
+
document_id="5ef50326e0219c2a488dc6bc"
|
32
|
+
name="inputText"
|
33
|
+
style="width: 100%; display: block" />
|
34
|
+
<input
|
35
|
+
type="date"
|
36
|
+
collection="module_activities"
|
37
|
+
realtime="true"
|
38
|
+
document_id="5ef50326e0219c2a488dc6bc"
|
39
|
+
name="inputdate"
|
40
|
+
style="width: 100%; display: block" />
|
41
|
+
<textarea
|
42
|
+
realtime="true"
|
43
|
+
collection="module_activities"
|
44
|
+
document_id="5ef50326e0219c2a488dc6bc"
|
45
|
+
name="nameOtro"
|
46
|
+
rows="10"
|
47
|
+
class="floating-label"></textarea>
|
48
|
+
<textarea
|
49
|
+
realtime="true"
|
50
|
+
collection="module_activities"
|
51
|
+
document_id="5ef50326e0219c2a488dc6bc"
|
52
|
+
name="html"
|
53
|
+
rows="10"
|
54
|
+
class="floating-label"></textarea>
|
55
|
+
<textarea
|
56
|
+
collection="module_activities"
|
57
|
+
realtime="true"
|
58
|
+
document_id=""
|
59
|
+
name="nameOtro123"
|
60
|
+
rows="10"
|
61
|
+
style="width: 100%; display: block"></textarea>
|
62
|
+
<input
|
63
|
+
collection="modules"
|
64
|
+
realtime="true"
|
65
|
+
document_id="5ef50326e0219c2a488dc6bc"
|
66
|
+
name="text"
|
67
|
+
style="width: 500px; display: block" />
|
68
|
+
</form>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
<!--<script src="../dist/CoCreate-text.js"></script>-->
|
72
|
+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
73
|
+
</body>
|
74
|
+
</html>
|