@cocreate/utils 1.7.5 → 1.7.6
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 +7 -0
- package/package.json +1 -1
- package/src/index.js +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.7.6](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.7.5...v1.7.6) (2022-06-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove functon getAttributes ([162228d](https://github.com/CoCreate-app/CoCreate-utils/commit/162228ddd99bcdf64a59088bddf2a6216a911898))
|
|
7
|
+
|
|
1
8
|
## [1.7.5](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.7.4...v1.7.5) (2022-06-24)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -20,13 +20,6 @@ function clickedElement() {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export function getAttributes(element) {
|
|
24
|
-
return element.getAttributeNames().reduce((attrMap, name) => {
|
|
25
|
-
attrMap[name] = element.getAttribute(name);
|
|
26
|
-
return attrMap;
|
|
27
|
-
}, {});
|
|
28
|
-
}
|
|
29
|
-
|
|
30
23
|
export function parseTextToHtml(text) {
|
|
31
24
|
let doc = new DOMParser().parseFromString(text, "text/html");
|
|
32
25
|
if (doc.head.children[0]) return doc.head.children[0];
|
|
@@ -207,7 +200,6 @@ clickedElement();
|
|
|
207
200
|
|
|
208
201
|
export default {
|
|
209
202
|
parseTextToHtml,
|
|
210
|
-
getAttributes,
|
|
211
203
|
cssPath,
|
|
212
204
|
domParser,
|
|
213
205
|
queryFrameSelectorAll
|