@cocreate/text 1.26.2 → 1.26.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,17 @@
1
+ ## [1.26.4](https://github.com/CoCreate-app/CoCreate-text/compare/v1.26.3...v1.26.4) (2024-04-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump cocreate dependencies ([8acb8bb](https://github.com/CoCreate-app/CoCreate-text/commit/8acb8bb800d99426a81e97633407d4acf7ecbf99))
7
+
8
+ ## [1.26.3](https://github.com/CoCreate-app/CoCreate-text/compare/v1.26.2...v1.26.3) (2024-02-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * realtime defaults to false ([bb50bda](https://github.com/CoCreate-app/CoCreate-text/commit/bb50bda41000223ae64836e3826283c3c47d6dff))
14
+
1
15
  ## [1.26.2](https://github.com/CoCreate-app/CoCreate-text/compare/v1.26.1...v1.26.2) (2024-02-05)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/text",
3
- "version": "1.26.2",
3
+ "version": "1.26.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",
@@ -58,12 +58,12 @@
58
58
  "webpack-log": "^3.0.1"
59
59
  },
60
60
  "dependencies": {
61
- "@cocreate/actions": "^1.14.0",
62
- "@cocreate/crdt": "^1.26.0",
63
- "@cocreate/cursors": "^1.22.0",
64
- "@cocreate/observer": "^1.14.0",
65
- "@cocreate/selection": "^1.11.0",
66
- "@cocreate/utils": "^1.29.0",
67
- "@cocreate/uuid": "^1.9.0"
61
+ "@cocreate/actions": "^1.18.1",
62
+ "@cocreate/crdt": "^1.27.3",
63
+ "@cocreate/cursors": "^1.23.3",
64
+ "@cocreate/observer": "^1.16.0",
65
+ "@cocreate/selection": "^1.12.1",
66
+ "@cocreate/utils": "^1.33.6",
67
+ "@cocreate/uuid": "^1.11.1"
68
68
  }
69
69
  }
package/src/index.js CHANGED
@@ -35,7 +35,7 @@ function initElement(element) {
35
35
  }
36
36
  if (['_id', 'organization_id', 'storage', 'database', 'array'].includes(key))
37
37
  return
38
- if (isCrdt == "false" || isRealtime == "false" || element.type == 'number')
38
+ if (!isRealtime || isCrdt == "false" || isRealtime == "false" || element.type == 'number' || element.type == 'file' || element.getAttribute('type') === 'file')
39
39
  return
40
40
  if (!checkValue(array) || !checkValue(object) || !checkValue(key))
41
41
  return