@ox-content/vite-plugin 3.0.0-alpha.17 → 3.0.0-alpha.18

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 (38) hide show
  1. package/dist/index.cjs +4 -3
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +5677 -3
  4. package/dist/index.d.cts.map +1 -1
  5. package/dist/index.d.mts +5677 -3
  6. package/dist/index.d.mts.map +1 -1
  7. package/dist/index.mjs +4 -3
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/reader-chrome.cjs.map +1 -1
  10. package/dist/reader-chrome.d.cts +58 -5703
  11. package/dist/reader-chrome.d.mts +58 -5703
  12. package/dist/reader-chrome.mjs.map +1 -1
  13. package/dist/styles/all.css +1 -0
  14. package/dist/styles/core.css +53 -1
  15. package/dist/styles/reader-chrome.css +12 -9
  16. package/dist/styles/theme-transition.css +37 -0
  17. package/dist/styles/twitter-full.css +22 -4
  18. package/dist/theme-transition-client.cjs +161 -0
  19. package/dist/theme-transition-client.d.cts +21 -0
  20. package/dist/theme-transition-client.d.mts +21 -0
  21. package/dist/theme-transition-client.mjs +160 -0
  22. package/dist/twitter-client.cjs +84 -0
  23. package/dist/twitter-client.d.cts +11 -0
  24. package/dist/twitter-client.d.mts +11 -0
  25. package/dist/twitter-client.mjs +83 -0
  26. package/dist/vitepress.cjs +3 -0
  27. package/dist/vitepress.cjs.map +1 -1
  28. package/dist/vitepress.mjs +3 -0
  29. package/dist/vitepress.mjs.map +1 -1
  30. package/package.json +25 -4
  31. package/dist/reader-chrome.d.cts.map +0 -1
  32. package/dist/reader-chrome.d.mts.map +0 -1
  33. package/dist/reader-chrome2.d.cts +0 -2
  34. package/dist/reader-chrome2.d.mts +0 -2
  35. package/dist/theme-tokens2.d.cts +0 -75
  36. package/dist/theme-tokens2.d.cts.map +0 -1
  37. package/dist/theme-tokens2.d.mts +0 -75
  38. package/dist/theme-tokens2.d.mts.map +0 -1
package/dist/index.cjs CHANGED
@@ -3965,11 +3965,12 @@ function renderInfo(permalink, createdAt, timeZone) {
3965
3965
  function renderActions(permalink, data) {
3966
3966
  const id = statusId(data, permalink);
3967
3967
  if (!id) return "";
3968
+ const likes = formatCount(data.favorite_count) ?? "0";
3968
3969
  return [
3969
3970
  "<div class=\"ox-tweet__actions\">",
3970
- `<a class="ox-tweet__action ox-tweet__action--like" href="https://x.com/intent/like?tweet_id=${id}" target="_blank" rel="noopener noreferrer"><span class="ox-tweet__action-icon"><span class="ox-tweet__icon ox-tweet__icon--like"></span></span><span class="ox-tweet__action-text">${formatCount(data.favorite_count) ?? "0"}</span></a>`,
3971
- `<a class="ox-tweet__action ox-tweet__action--reply" href="https://x.com/intent/tweet?in_reply_to=${id}" target="_blank" rel="noopener noreferrer"><span class="ox-tweet__action-icon"><span class="ox-tweet__icon ox-tweet__icon--reply"></span></span><span class="ox-tweet__action-text">Reply</span></a>`,
3972
- `<a class="ox-tweet__action ox-tweet__action--copy" href="${escapeAttribute$4(permalink)}" target="_blank" rel="noopener noreferrer" data-ox-tweet-copy data-ox-tweet-copy-url="${escapeAttribute$4(permalink)}" aria-label="Copy link to post"><span class="ox-tweet__action-icon"><span class="ox-tweet__icon ox-tweet__icon--copy"></span></span><span class="ox-tweet__action-text ox-tweet__copy-text">Copy link</span><span class="ox-tweet__action-text ox-tweet__copied-text">Copied!</span></a>`,
3971
+ `<a class="ox-tweet__action ox-tweet__action--like" href="https://x.com/intent/like?tweet_id=${id}" target="_blank" rel="noopener noreferrer" aria-label="Like. This Tweet has ${escapeAttribute$4(likes)} likes"><span class="ox-tweet__action-icon" aria-hidden="true"><span class="ox-tweet__icon ox-tweet__icon--like"></span></span><span class="ox-tweet__action-text">${likes}</span></a>`,
3972
+ `<a class="ox-tweet__action ox-tweet__action--reply" href="https://x.com/intent/tweet?in_reply_to=${id}" target="_blank" rel="noopener noreferrer" aria-label="Reply to this Tweet on Twitter"><span class="ox-tweet__action-icon" aria-hidden="true"><span class="ox-tweet__icon ox-tweet__icon--reply"></span></span><span class="ox-tweet__action-text">Reply</span></a>`,
3973
+ `<a class="ox-tweet__action ox-tweet__action--copy" href="${escapeAttribute$4(permalink)}" target="_blank" rel="noopener noreferrer" data-ox-tweet-copy data-ox-tweet-copy-url="${escapeAttribute$4(permalink)}" aria-label="Copy link"><span class="ox-tweet__action-icon" aria-hidden="true"><span class="ox-tweet__icon ox-tweet__icon--copy"></span></span><span class="ox-tweet__action-text ox-tweet__copy-text">Copy link</span><span class="ox-tweet__action-text ox-tweet__copied-text">Copied!</span><span class="ox-tweet__copy-status" data-ox-tweet-copy-status role="status" aria-live="polite"></span></a>`,
3973
3974
  "</div>"
3974
3975
  ].join("");
3975
3976
  }