action_text-trix 2.1.16 → 2.1.17
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/trix.js +22 -8
- data/lib/action_text/trix/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8cf5a80e4ea3934de46916afc13b3d2d598a704b29c07aa399ab545a0e54cc4f
|
|
4
|
+
data.tar.gz: 273ddae41040f29675d28a2387154abf3facbcb8beb0ecf4c9b0e3415b34ecab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5e1b53de72ab8ce7f9a61f287b806154741cb8c9321c875bbb05bf7c49ae526bcd710a74a00196cb4dda833e01f8cba9936df9ca800826c0055e7b90193178c
|
|
7
|
+
data.tar.gz: 444d9bcb83134dff0bc91df57ddef1f167ee4d314ff70021687d287ccb4a013da9d45ba653e4eee87a51df89e884804a1aaeacbed3a9198b2beec0325e1da209
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Trix 2.1.
|
|
3
|
-
Copyright ©
|
|
2
|
+
Trix 2.1.17
|
|
3
|
+
Copyright © 2026 37signals, LLC
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
6
6
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -9,7 +9,7 @@ Copyright © 2025 37signals, LLC
|
|
|
9
9
|
})(this, (function () { 'use strict';
|
|
10
10
|
|
|
11
11
|
var name = "trix";
|
|
12
|
-
var version = "2.1.
|
|
12
|
+
var version = "2.1.17";
|
|
13
13
|
var description = "A rich text editor for everyday writing";
|
|
14
14
|
var main = "dist/trix.umd.min.js";
|
|
15
15
|
var module = "dist/trix.esm.min.js";
|
|
@@ -43,22 +43,22 @@ Copyright © 2025 37signals, LLC
|
|
|
43
43
|
"@rollup/plugin-json": "^4.1.0",
|
|
44
44
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
45
45
|
"@web/dev-server": "^0.1.34",
|
|
46
|
+
"@web/test-runner": "^0.20.2",
|
|
47
|
+
"@web/test-runner-playwright": "^0.11.1",
|
|
48
|
+
"@web/test-runner-webdriver": "^0.9.0",
|
|
46
49
|
"babel-eslint": "^10.1.0",
|
|
47
50
|
chokidar: "^4.0.2",
|
|
48
51
|
concurrently: "^7.4.0",
|
|
49
52
|
eslint: "^7.32.0",
|
|
50
53
|
esm: "^3.2.25",
|
|
51
54
|
idiomorph: "^0.7.3",
|
|
52
|
-
karma: "6.4.1",
|
|
53
|
-
"karma-chrome-launcher": "3.2.0",
|
|
54
|
-
"karma-qunit": "^4.1.2",
|
|
55
|
-
"karma-sauce-launcher": "^4.3.6",
|
|
56
55
|
qunit: "2.19.1",
|
|
57
56
|
rangy: "^1.3.0",
|
|
58
57
|
rollup: "^2.56.3",
|
|
59
58
|
"rollup-plugin-includepaths": "^0.2.4",
|
|
60
59
|
"rollup-plugin-terser": "^7.0.2",
|
|
61
60
|
sass: "^1.83.0",
|
|
61
|
+
"source-map": "^0.7.6",
|
|
62
62
|
svgo: "^2.8.0",
|
|
63
63
|
webdriverio: "^7.19.5"
|
|
64
64
|
};
|
|
@@ -74,7 +74,8 @@ Copyright © 2025 37signals, LLC
|
|
|
74
74
|
watch: "rollup -c -w",
|
|
75
75
|
lint: "eslint .",
|
|
76
76
|
pretest: "yarn run lint && yarn run build",
|
|
77
|
-
test: "
|
|
77
|
+
test: "web-test-runner",
|
|
78
|
+
"test:watch": "web-test-runner --watch",
|
|
78
79
|
version: "yarn build && git add action_text-trix",
|
|
79
80
|
prerelease: "yarn version && yarn test",
|
|
80
81
|
"release-npm": "npm adduser && npm publish",
|
|
@@ -3117,6 +3118,10 @@ $\
|
|
|
3117
3118
|
var purify = createDOMPurify();
|
|
3118
3119
|
|
|
3119
3120
|
purify.addHook("uponSanitizeAttribute", function (node, data) {
|
|
3121
|
+
if (data.attrName === "data-trix-serialized-attributes") {
|
|
3122
|
+
data.keepAttr = false;
|
|
3123
|
+
return;
|
|
3124
|
+
}
|
|
3120
3125
|
const allowedAttributePattern = /^data-trix-/;
|
|
3121
3126
|
if (allowedAttributePattern.test(data.attrName)) {
|
|
3122
3127
|
data.forceKeepAttr = true;
|
|
@@ -10043,6 +10048,15 @@ $\
|
|
|
10043
10048
|
} else {
|
|
10044
10049
|
if (node.parentNode === container) {
|
|
10045
10050
|
if (childIndex++ === offset) {
|
|
10051
|
+
if (!strict && nodeIsBlockStart(node, {
|
|
10052
|
+
strict
|
|
10053
|
+
})) {
|
|
10054
|
+
if (foundBlock) {
|
|
10055
|
+
location.index++;
|
|
10056
|
+
}
|
|
10057
|
+
location.offset = 0;
|
|
10058
|
+
foundBlock = true;
|
|
10059
|
+
}
|
|
10046
10060
|
break;
|
|
10047
10061
|
}
|
|
10048
10062
|
} else if (!elementContainsNode(container, node)) {
|