@cocreate/selection 1.6.7 → 1.6.9
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 +14 -0
- package/CoCreate.config.js +1 -1
- package/package.json +4 -4
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## [1.6.9](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.6.8...v1.6.9) (2023-05-19)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* update packages to latest version. This commit updates various packages in the dependencies section of the package.json file to their latest published versions, thereby fixing multiple bugs and improving overall performance. ([f0d53c4](https://github.com/CoCreate-app/CoCreate-selection/commit/f0d53c43aa0274a1a6cf1e523558aeb53968f56b))
|
7
|
+
|
8
|
+
## [1.6.8](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.6.7...v1.6.8) (2023-05-18)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* apikey renamed to key ([d14fe20](https://github.com/CoCreate-app/CoCreate-selection/commit/d14fe20711cb9352aef8bc49afc116ba59e73c67))
|
14
|
+
|
1
15
|
## [1.6.7](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.6.6...v1.6.7) (2023-05-06)
|
2
16
|
|
3
17
|
|
package/CoCreate.config.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cocreate/selection",
|
3
|
-
"version": "1.6.
|
3
|
+
"version": "1.6.9",
|
4
4
|
"description": "A simple selection component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
|
5
5
|
"keywords": [
|
6
6
|
"selection",
|
@@ -59,8 +59,8 @@
|
|
59
59
|
"webpack-log": "^3.0.1"
|
60
60
|
},
|
61
61
|
"dependencies": {
|
62
|
-
"@cocreate/docs": "^1.7.
|
63
|
-
"@cocreate/hosting": "^1.10.
|
64
|
-
"@cocreate/utils": "^1.20.
|
62
|
+
"@cocreate/docs": "^1.7.10",
|
63
|
+
"@cocreate/hosting": "^1.10.2",
|
64
|
+
"@cocreate/utils": "^1.20.8"
|
65
65
|
}
|
66
66
|
}
|
package/src/index.js
CHANGED
@@ -31,7 +31,7 @@ export function getSelection(element) {
|
|
31
31
|
}
|
32
32
|
|
33
33
|
if (range.startContainer != range.endContainer) {
|
34
|
-
//
|
34
|
+
// TODO: replace common ancestor value
|
35
35
|
}
|
36
36
|
let contenteditable = range.startContainer.parentElement.closest('[contenteditable][collection][document_id][name]');
|
37
37
|
if (contenteditable){
|