@pushword/js-helper 0.0.54 → 0.0.58
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/package.json +2 -1
- package/src/helpers.js +2 -2
- package/src/tailwind.config.js +1 -0
- package/src/tailwind.helpers.js +6 -0
- package/src/tailwind.prose.scss +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushword/js-helper",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.58",
|
|
4
4
|
"description": "Pushword front end helpers. ",
|
|
5
5
|
"author": "Robin@PiedWeb <contact@piedweb.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"@tailwindcss/aspect-ratio": "^0.2",
|
|
14
14
|
"@tailwindcss/forms": "^0.4",
|
|
15
15
|
"@tailwindcss/typography": "^0.5",
|
|
16
|
+
"tailwindcss-multi-column": "^1.0.2",
|
|
16
17
|
"ace-builds": "^1.4.12",
|
|
17
18
|
"autoprefixer": "^10.1.0",
|
|
18
19
|
"babel-preset-stage-2": "^6.24.1",
|
package/src/helpers.js
CHANGED
|
@@ -199,7 +199,7 @@ export async function uncloakLinks(attribute = "data-rot", when = "onEvent") {
|
|
|
199
199
|
if (element.getAttribute(attribute) === null) {
|
|
200
200
|
var element = element.closest("[" + attribute + "]");
|
|
201
201
|
}
|
|
202
|
-
if (element.getAttribute(attribute) === null) return;
|
|
202
|
+
if (element === null || element.getAttribute(attribute) === null) return;
|
|
203
203
|
var link = document.createElement("a");
|
|
204
204
|
var href = element.getAttribute(attribute);
|
|
205
205
|
element.removeAttribute(attribute);
|
|
@@ -233,7 +233,7 @@ export async function uncloakLinks(attribute = "data-rot", when = "onEvent") {
|
|
|
233
233
|
} else {
|
|
234
234
|
var element = convertLink(event.target);
|
|
235
235
|
}
|
|
236
|
-
fireEventLinksBuilt(element, event);
|
|
236
|
+
if (element) fireEventLinksBuilt(element, event);
|
|
237
237
|
};
|
|
238
238
|
|
|
239
239
|
if (when == "onEvent") {
|
package/src/tailwind.config.js
CHANGED
package/src/tailwind.helpers.js
CHANGED