@cocreate/selection 1.2.10 → 1.2.14

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## [1.2.14](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.2.13...v1.2.14) (2021-11-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update dependencies ([8fd30ea](https://github.com/CoCreate-app/CoCreate-selection/commit/8fd30ea76af01c89e46f7c4e3f97ba0f4101f7e1))
7
+
8
+ ## [1.2.13](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.2.12...v1.2.13) (2021-11-23)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * if node begins with a textNode ([0be3739](https://github.com/CoCreate-app/CoCreate-selection/commit/0be373961d2da5c79b9abc2311133621a163c350))
14
+
15
+ ## [1.2.12](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.2.11...v1.2.12) (2021-11-20)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * remove cdn.CoCreate.min.css ([c412faf](https://github.com/CoCreate-app/CoCreate-selection/commit/c412fafdf2faa0600d39588be01cf932820ff7c1))
21
+
22
+ ## [1.2.11](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.2.10...v1.2.11) (2021-11-20)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * updated script tags and link tags ([fe1298e](https://github.com/CoCreate-app/CoCreate-selection/commit/fe1298ead9c4106d14ed02f19944b76cab3f58f9))
28
+
1
29
  ## [1.2.10](https://github.com/CoCreate-app/CoCreate-selection/compare/v1.2.9...v1.2.10) (2021-11-20)
2
30
 
3
31
 
package/docs/index.html CHANGED
@@ -10,8 +10,7 @@
10
10
  <meta name="keywords" content="helper classes, utility classes, css framework, css library, inline style classes" />
11
11
  <meta name="robots" content="index,follow" />
12
12
 
13
- <!-- CoCreate CSS CDN -->
14
- <link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
13
+ <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
15
14
 
16
15
  </head>
17
16
 
@@ -112,15 +111,7 @@
112
111
 
113
112
  </div>
114
113
  </div>
115
- <script>
116
- var config = {
117
- apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
118
- securityKey: 'f26baf68-e3a9-45fc-effe-502e47116265',
119
- organization_Id: '5de0387b12e200ea63204d6c'
120
- }
121
- </script>
122
-
123
- <!--CoCreateJS-->
124
- <script src="https://server.cocreate.app/js/CoCreate.min.js"></script>
114
+ <script src="/apikey.js"></script>
115
+ <script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
125
116
  </body>
126
117
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/selection",
3
- "version": "1.2.10",
3
+ "version": "1.2.14",
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",
@@ -61,8 +61,8 @@
61
61
  "webpack-log": "^3.0.1"
62
62
  },
63
63
  "dependencies": {
64
- "@cocreate/docs": "^1.2.53",
65
- "@cocreate/hosting": "^1.2.48",
66
- "@cocreate/utils": "^1.3.10"
64
+ "@cocreate/docs": "^1.2.55",
65
+ "@cocreate/hosting": "^1.2.51",
66
+ "@cocreate/utils": "^1.3.11"
67
67
  }
68
68
  }
package/src/index.js CHANGED
@@ -177,6 +177,9 @@ export function getElementPosition(str, start, end) {
177
177
  findEl.remove();
178
178
  }
179
179
  }
180
+ else if (angleStart == -1) {
181
+ type = 'textNode';
182
+ }
180
183
  else {
181
184
  let node = str.slice(angleStart, startString.length + endStringAngleEnd + 1);
182
185
  if (node.startsWith("</")) {