@cocreate/selection 1.6.6 → 1.6.8

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.6.8](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.6.7...v1.6.8) (2023-05-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * apikey renamed to key ([d14fe20](https://github.com/CoCreate-app/CoCreate-selection/commit/d14fe20711cb9352aef8bc49afc116ba59e73c67))
7
+
8
+ ## [1.6.7](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.6.6...v1.6.7) (2023-05-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump [@cocreate](https://github.com/cocreate) dependencies ([2d089fc](https://github.com/CoCreate-app/CoCreate-selection/commit/2d089fc2e21a4593acbd9cd56097569ffd3d6659))
14
+
1
15
  ## [1.6.6](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.6.5...v1.6.6) (2023-05-01)
2
16
 
3
17
 
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  "config": {
3
3
  "organization_id": "5ff747727005da1c272740ab",
4
- "apiKey": "2061acef-0451-4545-f754-60cf8160",
4
+ "key": "2061acef-0451-4545-f754-60cf8160",
5
5
  "host": "general.cocreate.app"
6
6
  },
7
7
  "sources": [
@@ -17,9 +17,10 @@ module.exports = {
17
17
  "general.cocreate.app"
18
18
  ],
19
19
  "directory": "/docs/selection",
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/selection",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
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.1",
63
- "@cocreate/hosting": "^1.9.2",
64
- "@cocreate/utils": "^1.20.1"
62
+ "@cocreate/docs": "^1.7.8",
63
+ "@cocreate/hosting": "^1.10.0",
64
+ "@cocreate/utils": "^1.20.6"
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
- // toDo: replace common ancestor value
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){