@pushword/js-helper 0.0.55 → 0.0.59
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 +1 -1
- package/src/encore.js +8 -8
- package/src/helpers.js +2 -2
- package/src/tailwind.prose.scss +1 -6
package/package.json
CHANGED
package/src/encore.js
CHANGED
|
@@ -2,15 +2,15 @@ const WatchExternalFilesPlugin = require("webpack-watch-files-plugin").default;
|
|
|
2
2
|
const Encore = require("@symfony/webpack-encore");
|
|
3
3
|
const tailwindcss = require("tailwindcss");
|
|
4
4
|
|
|
5
|
-
function getFilesToWatch() {
|
|
5
|
+
function getFilesToWatch(basePath = "./..") {
|
|
6
6
|
return [
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
7
|
+
basePath + "/vendor/pushword/core/src/templates/**/*.html.twig",
|
|
8
|
+
basePath + "/vendor/pushword/core/src/templates/*.html.twig",
|
|
9
|
+
basePath + "/vendor/pushword/conversation/src/templates/*.html.twig",
|
|
10
|
+
basePath + "/vendor/pushword/admin-block-editor/src/templates/page/*.html.twig",
|
|
11
|
+
basePath + "/templates/*.html.twig",
|
|
12
|
+
basePath + "/templates/**/*.html.twig",
|
|
13
|
+
basePath + "/templates/**/**/*.html.twig",
|
|
14
14
|
];
|
|
15
15
|
}
|
|
16
16
|
function getTailwindConfig(watchFiles = null) {
|
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.prose.scss
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
text-decoration: none !important;
|
|
12
12
|
color: inherit !important;
|
|
13
13
|
cursor: auto !important;
|
|
14
|
-
border-bottom: 0;
|
|
14
|
+
border-bottom: 0 !important;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.link-btn {
|
|
@@ -51,8 +51,3 @@ html {
|
|
|
51
51
|
max-height: 100vh;
|
|
52
52
|
padding-top: 1rem;
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
/*
|
|
56
|
-
* Special full-width from everywhere alias .w-full-vw:
|
|
57
|
-
w-screen relative left-[49%] ml-[-50vw] my-6
|
|
58
|
-
*/
|