@netless/app-slide 0.2.75 → 0.2.77
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/LICENSE +21 -0
- package/dist/index.d.ts +2 -1
- package/dist/main.cjs.js +4 -4
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +9 -7
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +4 -4
- package/dist/main.iife.js.map +1 -1
- package/package.json +9 -9
- package/src/SlideController/index.ts +3 -1
- package/src/index.ts +0 -1
- package/src/typings.ts +2 -1
package/dist/main.es.js
CHANGED
|
@@ -31510,7 +31510,7 @@ void main(void){
|
|
|
31510
31510
|
class d_ extends Za.a {
|
|
31511
31511
|
constructor(t2, e2, i2, n2) {
|
|
31512
31512
|
var r2, o2;
|
|
31513
|
-
super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.domAudio = null, this.pcmSource = null, this.isHowlEnd = false, this.isHowlLoadEmit = false, this.staticEventId = 1001, this._catParams = void 0, this.url = t2, this.runningAudio = e2, i2 && (this._catParams = i2), Yy.RtcAudioClazz ? (this.rctClient = new Yy.RtcAudioClazz(t2, null === (r2 = this._catParams) || void 0 === r2 ? void 0 : r2.start, null === (o2 = this._catParams) || void 0 === o2 ? void 0 : o2.end), this.rctClient.on("load", () => this.emit("load")), this.rctClient.on("pause", () => this.emit("pause")), this.rctClient.on("play", () => {
|
|
31513
|
+
super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.domAudio = null, this.pcmSource = null, this.isHowlEnd = false, this.isHowlLoadEmit = false, this.staticEventId = 1001, this._catParams = void 0, this.isDomAudioPlayed = false, this.domAudioRemainSeek = [], this.url = t2, this.runningAudio = e2, i2 && (this._catParams = i2), Yy.RtcAudioClazz ? (this.rctClient = new Yy.RtcAudioClazz(t2, null === (r2 = this._catParams) || void 0 === r2 ? void 0 : r2.start, null === (o2 = this._catParams) || void 0 === o2 ? void 0 : o2.end), this.rctClient.on("load", () => this.emit("load")), this.rctClient.on("pause", () => this.emit("pause")), this.rctClient.on("play", () => {
|
|
31514
31514
|
this.startTimeChangeEmit(), this.emit("play");
|
|
31515
31515
|
}), this.rctClient.on("resumeAllAudioInterruptByAudioSessionChanged", () => {
|
|
31516
31516
|
this.emit("resumeAllAudioInterruptByAudioSessionChanged");
|
|
@@ -31519,7 +31519,7 @@ void main(void){
|
|
|
31519
31519
|
}), this.pcmSource = window.__pcmProxy.connect(this.domAudio), this.domAudio.addEventListener("loadedmetadata", () => {
|
|
31520
31520
|
this.emit("load");
|
|
31521
31521
|
}), this.domAudio.addEventListener("playing", () => {
|
|
31522
|
-
this.startTimeChangeEmit(), this.emit("play");
|
|
31522
|
+
this.isDomAudioPlayed = true, this.domAudioRemainSeek.length > 0 && this.domAudio && (this.domAudio.currentTime = this.domAudioRemainSeek[this.domAudioRemainSeek.length - 1]), this.startTimeChangeEmit(), this.emit("play");
|
|
31523
31523
|
})) : (this.howl = new c_.Howl({ src: [t2], html5: null == n2 ? void 0 : n2.enableWebAudio }), [this.staticEventId] = this.howl._getSoundIds(), this.howl.load(), this.howl.on("load", () => {
|
|
31524
31524
|
this.isHowlLoadEmit = true, this.emit("load");
|
|
31525
31525
|
}), this.howl.on("pause", () => this.emit("pause")), this.howl.on("play", () => {
|
|
@@ -31562,7 +31562,7 @@ void main(void){
|
|
|
31562
31562
|
return this.rctClient ? this.rctClient.currentTime : this.howl ? this.howl.seek(this.staticEventId) : this.domAudio ? this.domAudio.currentTime : -1;
|
|
31563
31563
|
}
|
|
31564
31564
|
set currentTime(t2) {
|
|
31565
|
-
this.rctClient ? this.rctClient.currentTime = t2 : this.howl ? this.howl.seek(t2, this.staticEventId) : this.domAudio && (this.domAudio.currentTime = t2);
|
|
31565
|
+
this.rctClient ? this.rctClient.currentTime = t2 : this.howl ? this.howl.seek(t2, this.staticEventId) : this.domAudio && (this.isDomAudioPlayed ? this.domAudio.currentTime = t2 : this.domAudioRemainSeek.push(t2));
|
|
31566
31566
|
}
|
|
31567
31567
|
get duration() {
|
|
31568
31568
|
return this.rctClient ? this.rctClient.duration : this.howl ? this.howl.duration(this.staticEventId) : this.domAudio ? this.domAudio.duration : 0;
|
|
@@ -36242,7 +36242,7 @@ void main(void){
|
|
|
36242
36242
|
}
|
|
36243
36243
|
var vT = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange", slideStepEnd: "slideEnd", slideStepStart: "slideStart", useraddLink: "useraddLink" }, _T = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, yT = "";
|
|
36244
36244
|
try {
|
|
36245
|
-
yT = "1.4.
|
|
36245
|
+
yT = "1.4.35";
|
|
36246
36246
|
} catch (t2) {
|
|
36247
36247
|
yT = "-dev-";
|
|
36248
36248
|
}
|
|
@@ -37622,7 +37622,8 @@ const EmptyAttributes = {
|
|
|
37622
37622
|
url: "",
|
|
37623
37623
|
state: null,
|
|
37624
37624
|
resourceList: [],
|
|
37625
|
-
previewList: []
|
|
37625
|
+
previewList: [],
|
|
37626
|
+
customLinks: []
|
|
37626
37627
|
};
|
|
37627
37628
|
const noop$1 = function noop2() {
|
|
37628
37629
|
};
|
|
@@ -37865,6 +37866,7 @@ class SlideController {
|
|
|
37865
37866
|
createSlide(anchor, defaults = {}) {
|
|
37866
37867
|
var _a, _b, _c;
|
|
37867
37868
|
const options = this.context.getAppOptions() || {};
|
|
37869
|
+
const attribute = this.context.storage.state;
|
|
37868
37870
|
const slide = new Slide.Slide({
|
|
37869
37871
|
anchor,
|
|
37870
37872
|
interactive: true,
|
|
@@ -37893,7 +37895,7 @@ class SlideController {
|
|
|
37893
37895
|
whiteTracker: defaults.whiteTracker,
|
|
37894
37896
|
timestamp: this.timestamp,
|
|
37895
37897
|
skipActionWhenFrozen: true,
|
|
37896
|
-
customLinks:
|
|
37898
|
+
customLinks: attribute.customLinks
|
|
37897
37899
|
});
|
|
37898
37900
|
return slide;
|
|
37899
37901
|
}
|
|
@@ -39532,7 +39534,7 @@ class SlidePreviewer {
|
|
|
39532
39534
|
}
|
|
39533
39535
|
}
|
|
39534
39536
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
39535
|
-
const version = "0.2.
|
|
39537
|
+
const version = "0.2.76";
|
|
39536
39538
|
const SlideApp = {
|
|
39537
39539
|
kind: "Slide",
|
|
39538
39540
|
setup(context) {
|