ep_timesliderdiff 0.0.60 → 0.0.62
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.
|
@@ -23,7 +23,7 @@ jobs:
|
|
|
23
23
|
# OIDC trusted publishing needs npm >= 11.5.1, which requires
|
|
24
24
|
# Node >= 20.17.0. setup-node's `20` resolves to the latest
|
|
25
25
|
# 20.x, which satisfies that.
|
|
26
|
-
node-version:
|
|
26
|
+
node-version: 25
|
|
27
27
|
registry-url: https://registry.npmjs.org/
|
|
28
28
|
- name: Upgrade npm to >=11.5.1 (required for trusted publishing)
|
|
29
29
|
run: npm install -g npm@latest
|
package/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const {template} = require('ep_plugin_helpers');
|
|
3
4
|
const eejs = require('ep_etherpad-lite/node/eejs');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
6
|
+
// The diff view relies on endpoints that the read-only timeslider cannot
|
|
7
|
+
// reach, so suppress the button entirely for read-only viewers (regression
|
|
8
|
+
// for #4). `renderContext.isReadOnly` is set by specialpages.ts when
|
|
9
|
+
// rendering `/p/:pad/timeslider`.
|
|
10
|
+
exports.eejsBlock_timesliderEditbarRight =
|
|
11
|
+
template('ep_timesliderdiff/templates/timesliderDiff.ejs', {
|
|
12
|
+
skip: (args) => args.renderContext && args.renderContext.isReadOnly,
|
|
13
|
+
});
|
|
14
14
|
|
|
15
15
|
exports.eejsBlock_timesliderStyles = (hook_name, args, cb) => {
|
|
16
16
|
args.content += '<link rel="stylesheet" ' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ep_timesliderdiff",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.62",
|
|
4
4
|
"description": "See a diff view showing the changes between the latest pad and a revision",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "John McLear",
|
|
@@ -32,5 +32,8 @@
|
|
|
32
32
|
"scripts": {
|
|
33
33
|
"lint": "eslint .",
|
|
34
34
|
"lint:fix": "eslint --fix ."
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"ep_plugin_helpers": "^0.5.0"
|
|
35
38
|
}
|
|
36
39
|
}
|