@cocreate/text 1.20.6 → 1.20.8

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,17 @@
1
+ ## [1.20.8](https://github.com/CoCreate-app/CoCreate-text/compare/v1.20.7...v1.20.8) (2023-05-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * replace $ single quotes will double quotes t prevent db from escaping character ([44f5162](https://github.com/CoCreate-app/CoCreate-text/commit/44f5162c8009d96eab9f0bdb160ab1b9b3ec6702))
7
+
8
+ ## [1.20.7](https://github.com/CoCreate-app/CoCreate-text/compare/v1.20.6...v1.20.7) (2023-05-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump [@cocreate](https://github.com/cocreate) dependencies ([0c16197](https://github.com/CoCreate-app/CoCreate-text/commit/0c16197ff737a8286b43a6b12ef0327d0b2d43bf))
14
+
1
15
  ## [1.20.6](https://github.com/CoCreate-app/CoCreate-text/compare/v1.20.5...v1.20.6) (2023-05-01)
2
16
 
3
17
 
@@ -17,9 +17,10 @@ module.exports = {
17
17
  "general.cocreate.app"
18
18
  ],
19
19
  "directory": "/docs/text",
20
- "content-type": "text/html",
20
+ "parentDirectory": "{{parentDirectory}}",
21
+ "content-type": "{{content-type}}",
21
22
  "public": "true",
22
- "website_id": "5ffbceb7f11d2d00103c4535"
23
+ "website_id": "644d4bff8036fb9d1d1fd69c"
23
24
  }
24
25
  }
25
26
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/text",
3
- "version": "1.20.6",
3
+ "version": "1.20.8",
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",
@@ -59,15 +59,15 @@
59
59
  "webpack-log": "^3.0.1"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/actions": "^1.8.2",
63
- "@cocreate/crdt": "^1.18.2",
64
- "@cocreate/crud-client": "^1.19.9",
65
- "@cocreate/cursors": "^1.16.2",
66
- "@cocreate/docs": "^1.7.1",
67
- "@cocreate/hosting": "^1.9.2",
68
- "@cocreate/observer": "^1.7.1",
69
- "@cocreate/selection": "^1.6.1",
70
- "@cocreate/utils": "^1.20.1",
71
- "@cocreate/uuid": "^1.4.1"
62
+ "@cocreate/actions": "^1.8.8",
63
+ "@cocreate/crdt": "^1.18.7",
64
+ "@cocreate/crud-client": "^1.20.4",
65
+ "@cocreate/cursors": "^1.16.7",
66
+ "@cocreate/docs": "^1.7.8",
67
+ "@cocreate/hosting": "^1.10.0",
68
+ "@cocreate/observer": "^1.7.6",
69
+ "@cocreate/selection": "^1.6.6",
70
+ "@cocreate/utils": "^1.20.6",
71
+ "@cocreate/uuid": "^1.4.7"
72
72
  }
73
73
  }
package/src/index.js CHANGED
@@ -40,7 +40,7 @@ function initElement (element) {
40
40
  return
41
41
  if (!crud.checkValue(collection) || !crud.checkValue(document_id)|| !crud.checkValue(name))
42
42
  return
43
- if (name && name.startsWith('$'))
43
+ if (name && name.startsWith("$"))
44
44
  return
45
45
 
46
46
  if (element.tagName === "INPUT" && ["text", "tel", "url"].includes(element.type) || element.tagName === "TEXTAREA" || element.hasAttribute('contenteditable')) {