ep_disable_error_messages 0.0.65 → 0.0.67

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.
@@ -29,7 +29,7 @@ jobs:
29
29
  - uses: actions/setup-node@v4
30
30
  name: Install Node.js
31
31
  with:
32
- node-version: 22
32
+ node-version: 25
33
33
  - uses: pnpm/action-setup@v6
34
34
  name: Install pnpm
35
35
  with:
@@ -19,7 +19,7 @@ jobs:
19
19
  - uses: actions/setup-node@v4
20
20
  name: Install Node.js
21
21
  with:
22
- node-version: 22
22
+ node-version: 25
23
23
  - uses: pnpm/action-setup@v6
24
24
  name: Install pnpm
25
25
  with:
@@ -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: 20
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/ep.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
- "disables": ["@feature:error-gritter"],
3
- "parts":[
2
+ "disables": [
3
+ "@feature:error-gritter"
4
+ ],
5
+ "parts": [
4
6
  {
5
7
  "name": "ep_disable_error_messages",
6
- "hooks": {},
7
- "client_hooks": {
8
- "postAceInit":"ep_disable_error_messages/static/js/disable_error_messages:postAceInit"
9
- }
8
+ "hooks": {
9
+ "eejsBlock_styles": "ep_disable_error_messages/index:eejsBlock_styles"
10
+ },
11
+ "client_hooks": {}
10
12
  }
11
13
  ]
12
14
  }
package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const {hideCSS} = require('ep_plugin_helpers');
4
+
5
+ // Hide error gritter notifications on the pad page. Previously this
6
+ // injected the CSS client-side from postAceInit; serving it from
7
+ // eejsBlock_styles instead makes it available before the editor
8
+ // initialises, so users never see the error popup flash on load.
9
+ exports.eejsBlock_styles = hideCSS('#gritter-container > .error');
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "deprecated": false,
10
10
  "description": "Disable Error messages to clients in Etherpad",
11
11
  "name": "ep_disable_error_messages",
12
- "version": "0.0.65",
12
+ "version": "0.0.67",
13
13
  "funding": {
14
14
  "type": "individual",
15
15
  "url": "https://etherpad.org/"
@@ -29,5 +29,8 @@
29
29
  "repository": {
30
30
  "type": "git",
31
31
  "url": "https://github.com/ether/ep_disable_error_messages.git"
32
+ },
33
+ "dependencies": {
34
+ "ep_plugin_helpers": "^0.5.0"
32
35
  }
33
36
  }
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- exports.postAceInit = (hookName, args, cb) => {
4
- $('body').append(
5
- `<style type="text/css">
6
- #gritter-container > .error {
7
- display:none !important;
8
- }
9
- </style>
10
- `);
11
- return cb();
12
- };