@cocreate/text 1.14.0 → 1.14.4

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,31 @@
1
+ ## [1.14.4](https://github.com/CoCreate-app/CoCreate-text/compare/v1.14.3...v1.14.4) (2021-12-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed document_id from demo ([62088ae](https://github.com/CoCreate-app/CoCreate-text/commit/62088ae3d1fb8f2bc8bf0a7cbf442a3ade02c9ae))
7
+
8
+ ## [1.14.3](https://github.com/CoCreate-app/CoCreate-text/compare/v1.14.2...v1.14.3) (2021-12-23)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * checkAttributeValue collection or document return ([500c156](https://github.com/CoCreate-app/CoCreate-text/commit/500c156c14fafec187ea40481a5f30f389ec4dc6))
14
+
15
+ ## [1.14.2](https://github.com/CoCreate-app/CoCreate-text/compare/v1.14.1...v1.14.2) (2021-12-15)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * update dependencies ([4280fbe](https://github.com/CoCreate-app/CoCreate-text/commit/4280fbef8700fc9cd7cfb39e2737561f04921ee4))
21
+
22
+ ## [1.14.1](https://github.com/CoCreate-app/CoCreate-text/compare/v1.14.0...v1.14.1) (2021-12-14)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * update dependencies ([423ec14](https://github.com/CoCreate-app/CoCreate-text/commit/423ec14a075157e1b525956e45428d1ea75da72e))
28
+
1
29
  # [1.14.0](https://github.com/CoCreate-app/CoCreate-text/compare/v1.13.4...v1.14.0) (2021-12-14)
2
30
 
3
31
 
package/demo/demos.1.html CHANGED
@@ -9,8 +9,8 @@
9
9
  </head>
10
10
 
11
11
  <body class="padding:20px">
12
- <form collection="apples1" document_id="61ad22d7a8b6b4001aa360d1">
13
- <textarea name="name1" class="width:100% padding:0px margin:0px border-width:0px" rows="10"></textarea>
12
+ <form collection="apples1" document_id="">
13
+ <textarea name="name1" class="width:100% padding:0px margin:0px" rows="10"></textarea>
14
14
  <textarea name="name2" class="width:100%" rows="10"></textarea>
15
15
  <iframe name='name2' width="100%" contenteditable></iframe>
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/text",
3
- "version": "1.14.0",
3
+ "version": "1.14.4",
4
4
  "description": "A simple text component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "text",
@@ -61,14 +61,14 @@
61
61
  "webpack-log": "^3.0.1"
62
62
  },
63
63
  "dependencies": {
64
- "@cocreate/actions": "^1.3.24",
65
- "@cocreate/crdt": "^1.8.27",
66
- "@cocreate/crud-client": "^1.4.39",
67
- "@cocreate/cursors": "^1.10.18",
68
- "@cocreate/docs": "^1.2.61",
69
- "@cocreate/hosting": "^1.2.57",
70
- "@cocreate/observer": "^1.3.53",
71
- "@cocreate/selection": "^1.2.21",
72
- "@cocreate/uuid": "^1.1.50"
64
+ "@cocreate/actions": "^1.3.25",
65
+ "@cocreate/crdt": "^1.8.28",
66
+ "@cocreate/crud-client": "^1.4.40",
67
+ "@cocreate/cursors": "^1.11.0",
68
+ "@cocreate/docs": "^1.2.62",
69
+ "@cocreate/hosting": "^1.2.58",
70
+ "@cocreate/observer": "^1.3.54",
71
+ "@cocreate/selection": "^1.3.1",
72
+ "@cocreate/uuid": "^1.1.51"
73
73
  }
74
74
  }
package/src/index.js CHANGED
@@ -29,7 +29,7 @@ function initElement (element) {
29
29
  const { collection, document_id, name, isRealtime, isCrdt, isCrud, isSave, isRead } = crud.getAttr(element);
30
30
  if(document_id == "pending") return;
31
31
  if(isCrdt == "false" || isRealtime == "false" || element.type == 'number') return;
32
- if(!crud.checkAttrValue(collection) && !crud.checkAttrValue(document_id)) return;
32
+ if(!crud.checkAttrValue(collection) || !crud.checkAttrValue(document_id)) return;
33
33
  if(element.tagName === "INPUT" && ["text", "email", "tel", "url"].includes(element.type) || element.tagName === "TEXTAREA" || element.hasAttribute('contenteditable')) {
34
34
  if(!collection || !document_id || !name) return;
35
35