@cocreate/utils 1.33.0 → 1.33.2

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.33.2](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.33.1...v1.33.2) (2024-02-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * selector split ([fd205fa](https://github.com/CoCreate-app/CoCreate-utils/commit/fd205faa2dfb2fef5a57526a9630d77974229ad6))
7
+
8
+ ## [1.33.1](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.33.0...v1.33.1) (2024-02-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Removed https://cdn.cocreate.app/latest/CoCreate.min.css ([93e7304](https://github.com/CoCreate-app/CoCreate-utils/commit/93e7304cd0a391f1e59465a12c52fcc0f395de79))
14
+
1
15
  # [1.33.0](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.32.0...v1.33.0) (2024-01-30)
2
16
 
3
17
 
package/docs/index.html CHANGED
@@ -21,11 +21,6 @@
21
21
  property="og:image"
22
22
  content="https://cdn.cocreate.app/docs/utils.png" />
23
23
 
24
- <!-- CoCreate CSS -->
25
- <link
26
- rel="stylesheet"
27
- href="https://cdn.cocreate.app/latest/CoCreate.min.css"
28
- type="text/css" />
29
24
  <link
30
25
  rel="stylesheet"
31
26
  href="../index.css"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/utils",
3
- "version": "1.33.0",
3
+ "version": "1.33.2",
4
4
  "description": "A simple utils component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "utils",
package/src/index.js CHANGED
@@ -302,9 +302,8 @@
302
302
  }
303
303
 
304
304
  if (Selector) {
305
- // let selectors = Selector.split(/,(?![^()]*\))/g);
305
+ let selectors = Selector.split(/,(?![^()]*\))/g);
306
306
 
307
- let selectors = Selector.split(',');
308
307
  for (let j = 0; j < selectors.length; j++) {
309
308
  if (selectors[j].includes('@')) {
310
309
  selectors[j] = checkMediaQueries(selectors[j])
@@ -718,7 +717,7 @@
718
717
  for (let attribute of el.attributes) {
719
718
  let variable = attributes[attribute.name]
720
719
  if (variable) {
721
- object[variable] = attribute.value
720
+ object[variable] = el.getAttribute(attribute.name)
722
721
  }
723
722
  }
724
723