@scalemule/nextjs 0.1.55 → 0.1.56
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.
- package/dist/audio.css +15 -0
- package/dist/audio.js +17 -2
- package/dist/audio.mjs +17 -2
- package/docs/network-audio.md +1 -1
- package/package.json +1 -1
package/dist/audio.css
CHANGED
|
@@ -296,12 +296,21 @@
|
|
|
296
296
|
flex: 0 0 20px;
|
|
297
297
|
}
|
|
298
298
|
.sm-network-player__row {
|
|
299
|
+
position: relative;
|
|
299
300
|
display: flex;
|
|
300
301
|
align-items: center;
|
|
301
302
|
gap: 20px;
|
|
302
303
|
max-width: 1320px;
|
|
303
304
|
margin: auto;
|
|
304
305
|
}
|
|
306
|
+
.sm-network-player .sm-network-player__close {
|
|
307
|
+
flex: 0 0 44px;
|
|
308
|
+
width: 44px;
|
|
309
|
+
height: 44px;
|
|
310
|
+
padding: 0;
|
|
311
|
+
border-color: transparent;
|
|
312
|
+
color: var(--sm-player-muted);
|
|
313
|
+
}
|
|
305
314
|
.sm-network-player .sm-network-player__play,
|
|
306
315
|
.sm-network-article__disc {
|
|
307
316
|
width: 48px;
|
|
@@ -655,6 +664,12 @@
|
|
|
655
664
|
}
|
|
656
665
|
.sm-network-player__story {
|
|
657
666
|
flex: 1 1 calc(100% - 60px);
|
|
667
|
+
padding-right: 56px;
|
|
668
|
+
}
|
|
669
|
+
.sm-network-player .sm-network-player__close {
|
|
670
|
+
position: absolute;
|
|
671
|
+
top: 2px;
|
|
672
|
+
right: 0;
|
|
658
673
|
}
|
|
659
674
|
.sm-network-player__story a {
|
|
660
675
|
font-size: 17px;
|
package/dist/audio.js
CHANGED
|
@@ -1506,7 +1506,8 @@ function AudioIcon({ name }) {
|
|
|
1506
1506
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M19 5v14" })
|
|
1507
1507
|
] }),
|
|
1508
1508
|
name === "chevron" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m7 10 5 5 5-5" }),
|
|
1509
|
-
name === "external" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 4h6v6m0-6L10 14m10 1v5H4V4h5" })
|
|
1509
|
+
name === "external" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 4h6v6m0-6L10 14m10 1v5H4V4h5" }),
|
|
1510
|
+
name === "close" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m6 6 12 12M18 6 6 18" })
|
|
1510
1511
|
] });
|
|
1511
1512
|
}
|
|
1512
1513
|
var formatTime = (seconds) => `${Math.floor(seconds / 60)}:${String(Math.floor(seconds % 60)).padStart(2, "0")}`;
|
|
@@ -1670,7 +1671,21 @@ function NetworkAudioPlayer({ networkName = "Your listening queue", advertisemen
|
|
|
1670
1671
|
]
|
|
1671
1672
|
}
|
|
1672
1673
|
)
|
|
1673
|
-
] })
|
|
1674
|
+
] }),
|
|
1675
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
1676
|
+
"button",
|
|
1677
|
+
{
|
|
1678
|
+
type: "button",
|
|
1679
|
+
className: "sm-network-player__close",
|
|
1680
|
+
"aria-label": "Close player",
|
|
1681
|
+
title: "Stop playback, clear queue, and close player",
|
|
1682
|
+
onClick: () => {
|
|
1683
|
+
setExpanded(false);
|
|
1684
|
+
command({ action: "clear" });
|
|
1685
|
+
},
|
|
1686
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AudioIcon, { name: "close" })
|
|
1687
|
+
}
|
|
1688
|
+
)
|
|
1674
1689
|
] }),
|
|
1675
1690
|
(notice || snapshot.error) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { role: "status", className: "sm-network-player__notice", children: notice ?? snapshot.error }),
|
|
1676
1691
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id: detailsId, hidden: !expanded, className: "sm-network-player__details", children: [
|
package/dist/audio.mjs
CHANGED
|
@@ -1486,7 +1486,8 @@ function AudioIcon({ name }) {
|
|
|
1486
1486
|
/* @__PURE__ */ jsx2("path", { d: "M19 5v14" })
|
|
1487
1487
|
] }),
|
|
1488
1488
|
name === "chevron" && /* @__PURE__ */ jsx2("path", { d: "m7 10 5 5 5-5" }),
|
|
1489
|
-
name === "external" && /* @__PURE__ */ jsx2("path", { d: "M14 4h6v6m0-6L10 14m10 1v5H4V4h5" })
|
|
1489
|
+
name === "external" && /* @__PURE__ */ jsx2("path", { d: "M14 4h6v6m0-6L10 14m10 1v5H4V4h5" }),
|
|
1490
|
+
name === "close" && /* @__PURE__ */ jsx2("path", { d: "m6 6 12 12M18 6 6 18" })
|
|
1490
1491
|
] });
|
|
1491
1492
|
}
|
|
1492
1493
|
var formatTime = (seconds) => `${Math.floor(seconds / 60)}:${String(Math.floor(seconds % 60)).padStart(2, "0")}`;
|
|
@@ -1650,7 +1651,21 @@ function NetworkAudioPlayer({ networkName = "Your listening queue", advertisemen
|
|
|
1650
1651
|
]
|
|
1651
1652
|
}
|
|
1652
1653
|
)
|
|
1653
|
-
] })
|
|
1654
|
+
] }),
|
|
1655
|
+
/* @__PURE__ */ jsx2(
|
|
1656
|
+
"button",
|
|
1657
|
+
{
|
|
1658
|
+
type: "button",
|
|
1659
|
+
className: "sm-network-player__close",
|
|
1660
|
+
"aria-label": "Close player",
|
|
1661
|
+
title: "Stop playback, clear queue, and close player",
|
|
1662
|
+
onClick: () => {
|
|
1663
|
+
setExpanded(false);
|
|
1664
|
+
command({ action: "clear" });
|
|
1665
|
+
},
|
|
1666
|
+
children: /* @__PURE__ */ jsx2(AudioIcon, { name: "close" })
|
|
1667
|
+
}
|
|
1668
|
+
)
|
|
1654
1669
|
] }),
|
|
1655
1670
|
(notice || snapshot.error) && /* @__PURE__ */ jsx2("p", { role: "status", className: "sm-network-player__notice", children: notice ?? snapshot.error }),
|
|
1656
1671
|
/* @__PURE__ */ jsxs2("div", { id: detailsId, hidden: !expanded, className: "sm-network-player__details", children: [
|
package/docs/network-audio.md
CHANGED
|
@@ -106,7 +106,7 @@ in different publications do not collide. The queue deduplicates entries and
|
|
|
106
106
|
holds up to 100 articles. Finishing an article advances to the next one.
|
|
107
107
|
Unavailable audio stops with a retry/choose-another message.
|
|
108
108
|
|
|
109
|
-
The compact bar exposes a playback-speed shortcut (cycles upward through the available rates, then resets to 1×)
|
|
109
|
+
The compact bar exposes a playback-speed shortcut (cycles upward through the available rates, then resets to 1×), a Follow along toggle, and a Close player button. Closing stops playback, clears the listening queue and active highlights, and dismisses the player. Readers can reopen it with any article’s Listen to this story control. The expanded Speed selector retains all rates, including 0.5× and 0.75×. The player highlighting shortcut is enabled only when the active article has mounted narration controls in this document; it shares the article toggle’s preference.
|
|
110
110
|
|
|
111
111
|
`useArticleNarration(track, narration)` attaches the same behavior to custom
|
|
112
112
|
controls. Highlighting is opt-in, applies only to the active article, clears
|
package/package.json
CHANGED