ep_offline_edit 0.0.70 → 0.0.72

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@v6
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@v6
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/AGENTS.md ADDED
@@ -0,0 +1,65 @@
1
+ # Agent Guide — ep_offline_edit
2
+
3
+ View your pad data even if you are disconnected from the Internets.
4
+
5
+ ## Tech stack
6
+
7
+ * Etherpad plugin framework (hooks declared in `ep.json`)
8
+ * EJS templates rendered server-side via `eejsBlock_*` hooks
9
+
10
+ ## Project structure
11
+
12
+ ```
13
+ ep_offline_edit/
14
+ ├── AGENTS.md
15
+ ├── CONTRIBUTING.md
16
+ ├── LICENSE.md
17
+ ├── ep.json
18
+ ├── index.js
19
+ ├── package.json
20
+ ├── static/
21
+ │ ├── css/
22
+ │ ├── js/
23
+ │ ├── tests/
24
+ ├── templates/
25
+ │ ├── editOfflineButton.ejs
26
+ │ ├── offline.ejs
27
+ ```
28
+
29
+ ## Helpers used
30
+
31
+ _None — `ep_plugin_helpers` is not a dependency. Adoption is part of the helpers-adoption sweep (Phase 4)._
32
+
33
+
34
+ ## Helpers NOT used
35
+
36
+ _To be audited in the helpers-adoption sweep (Phase 4)._
37
+
38
+
39
+ ## Running tests locally
40
+
41
+ `ep_offline_edit` runs inside Etherpad's test harness. From an etherpad checkout that has installed this plugin via `pnpm run plugins i --path ../ep_offline_edit`:
42
+
43
+ ```bash
44
+ # Backend (Mocha) — harness boots its own server
45
+ pnpm --filter ep_etherpad-lite run test
46
+
47
+ # Playwright — needs `pnpm run dev` in a second terminal
48
+ pnpm --filter ep_etherpad-lite run test-ui
49
+ ```
50
+
51
+ ## Standing rules for agent edits
52
+
53
+ * PRs target `main`. Linear commits, no merge commits.
54
+ * Every bug fix includes a regression test in the same commit.
55
+ * All user-facing strings in `locales/`. No hardcoded English in templates.
56
+ * No hardcoded `aria-label` on icon-only controls — etherpad's html10n auto-populates `aria-label` from the localized string when (a) the element has a `data-l10n-id` and (b) no author-supplied `aria-label` is present. Adding a hardcoded English `aria-label` blocks that and leaves it untranslated. (See `etherpad-lite/src/static/js/vendors/html10n.ts:665-678`.)
57
+ * No nested interactive elements (no `<button>` inside `<a>`).
58
+ * LLM/Agent contributions are explicitly welcomed by maintainers.
59
+
60
+ ## Quick reference: hooks declared in `ep.json`
61
+
62
+ * Server: `eejsBlock_scripts`, `eejsBlock_styles`, `eejsBlock_disconnected`, `eejsBlock_htmlHead`, `expressConfigure`, `expressCreateServer`
63
+ * Client: `aceEditEvent`
64
+
65
+ When adding a hook, register it in both `ep.json` *and* the matching `exports.<hook> = ...` in the JS file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep_offline_edit",
3
- "version": "0.0.70",
3
+ "version": "0.0.72",
4
4
  "description": "View your pad data even if you are disconnected from the Internets",
5
5
  "author": {
6
6
  "name": "John McLear",