ep_comments_page 11.1.3 → 11.1.5

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.
Files changed (3) hide show
  1. package/AGENTS.md +2 -2
  2. package/index.js +6 -8
  3. package/package.json +1 -1
package/AGENTS.md CHANGED
@@ -44,8 +44,8 @@ ep_comments_page/
44
44
 
45
45
  ## Helpers used
46
46
 
47
- * `pad-toggle` from `ep_plugin_helpers`
48
- * `pad-toggle-server` from `ep_plugin_helpers`
47
+ * `padToggle` (client sub-path) from `ep_plugin_helpers`
48
+ * `padToggle` (server) from `ep_plugin_helpers`
49
49
 
50
50
 
51
51
  ## Helpers NOT used
package/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ const {template} = require('ep_plugin_helpers');
4
+
3
5
  const AttributePool = require('ep_etherpad-lite/static/js/AttributePool').default || require('ep_etherpad-lite/static/js/AttributePool');
4
6
  const Changeset = require('ep_etherpad-lite/static/js/Changeset').default || require('ep_etherpad-lite/static/js/Changeset');
5
7
  const eejs = require('ep_etherpad-lite/node/eejs/');
@@ -163,10 +165,8 @@ exports.socketio = (hookName, args, cb) => {
163
165
  return cb();
164
166
  };
165
167
 
166
- exports.eejsBlock_dd_insert = (hookName, args, cb) => {
167
- args.content += eejs.require('ep_comments_page/templates/menuButtons.ejs');
168
- return cb();
169
- };
168
+ exports.eejsBlock_dd_insert =
169
+ template('ep_comments_page/templates/menuButtons.ejs');
170
170
 
171
171
  exports.padInitToolbar = (hookName, args, cb) => {
172
172
  const toolbar = args.toolbar;
@@ -197,10 +197,8 @@ exports.eejsBlock_scripts = (hookName, args, cb) => {
197
197
  return cb();
198
198
  };
199
199
 
200
- exports.eejsBlock_styles = (hookName, args, cb) => {
201
- args.content += eejs.require('ep_comments_page/templates/styles.html');
202
- return cb();
203
- };
200
+ exports.eejsBlock_styles =
201
+ template('ep_comments_page/templates/styles.html');
204
202
 
205
203
  exports.clientVars = async (hook, context) => {
206
204
  const displayCommentAsIcon =
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "Adds comments on sidebar and link it to the text. For no-skin use ep_page_view.",
3
3
  "name": "ep_comments_page",
4
- "version": "11.1.3",
4
+ "version": "11.1.5",
5
5
  "author": {
6
6
  "name": "Nicolas Lescop",
7
7
  "email": "limplementeur@gmail.com"