codex-overleaf-link 2.4.0 → 2.4.1

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.
@@ -2,9 +2,9 @@
2
2
  "schemaVersion": 1,
3
3
  "entry": "extension/entries/content-entry.mjs",
4
4
  "output": "extension/src/content/generated/content.bundle.js",
5
- "sourceDigest": "f146d7e07b67706193fa5fcff26d7c9719826ac745aec9b745dd95c52413d27c",
6
- "outputDigest": "11993fd0746a026b1e74399060e70559eb569fca492fcdec36c2fb69a78d6b80",
7
- "byteLength": 2404976,
5
+ "sourceDigest": "b19a018ab6eb9c7bdca8cfad8ff6efcc4a30e80f81c3c0a2e89a7f78b6361d97",
6
+ "outputDigest": "7640649ee012b3224d696703c2a1ab323d549418a3fcc31e2219bf14399416b5",
7
+ "byteLength": 2422231,
8
8
  "inputs": [
9
9
  "extension/entries/content-entry.mjs",
10
10
  "extension/src/content/activeTurnControl.js",
@@ -137,15 +137,19 @@
137
137
  }
138
138
  const requestId = ++storageUsageRequestId;
139
139
  const projectId = getCurrentProjectId?.();
140
+ const settingsScope = getPanel?.()?.dataset?.settingsScope;
140
141
  const isCurrent = () => requestId === storageUsageRequestId && projectId === getCurrentProjectId?.()
142
+ && settingsScope === getPanel?.()?.dataset?.settingsScope
141
143
  && getSettingsPanelInstance()?.container?.querySelector('[data-storage-usage]') === node;
142
144
  const current = getState();
143
145
  const sessionCount = Array.isArray(current?.sessions) ? current.sessions.length : 0;
144
146
  const runCount = Array.isArray(current?.runs) ? current.runs.length : 0;
145
- const counts = tx(
146
- `${sessionCount} loaded session(s) in this project · ${runCount} run(s) in the active session`,
147
- `当前项目已加载 ${sessionCount} 个会话 · 当前会话 ${runCount} 轮运行`
148
- );
147
+ const counts = settingsScope === 'account'
148
+ ? tx('All projects in this browser', '当前浏览器中的所有项目')
149
+ : tx(
150
+ `${sessionCount} loaded session(s) in this project · ${runCount} run(s) in the active session`,
151
+ `当前项目已加载 ${sessionCount} 个会话 · 当前会话 ${runCount} 轮运行`
152
+ );
149
153
  // Dynamic text belongs to this renderer, not the loading-label translator.
150
154
  node.removeAttribute?.('data-i18n');
151
155
  node.textContent = counts;