@yoobic/yobi 8.2.0-26 → 8.2.0-27

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.
@@ -35,12 +35,12 @@ const YooAudioPlayerComponent = class {
35
35
  this.currentTime = 0;
36
36
  this.currentTimeDisplay = '00:00';
37
37
  }
38
- onSrcChanged() {
39
- return this.initPlayer(true);
40
- }
41
38
  onVisibilityChanged() {
42
39
  this.pause();
43
40
  }
41
+ onSrcChanged() {
42
+ return this.initPlayer(true);
43
+ }
44
44
  async getAudio() {
45
45
  return this.audio;
46
46
  }
@@ -49,7 +49,7 @@ const YooAudioPlayerComponent = class {
49
49
  return (_a = this.audio) === null || _a === void 0 ? void 0 : _a.pause();
50
50
  }
51
51
  async componentWillLoad() {
52
- return await this.initPlayer();
52
+ await this.initPlayer();
53
53
  }
54
54
  disconnectedCallback() {
55
55
  this.pause();
@@ -107,7 +107,7 @@ const YooAudioPlayerComponent = class {
107
107
  .map((v) => v.toString().padStart(2, '0'))
108
108
  .join(':');
109
109
  }
110
- async togglePlay(ev) {
110
+ togglePlay(ev) {
111
111
  if (ev && this.audio) {
112
112
  ev.stopPropagation();
113
113
  const { paused, ended, currentTime } = this.audio;
@@ -121,7 +121,10 @@ const YooAudioPlayerComponent = class {
121
121
  }
122
122
  }
123
123
  }
124
- render() {
124
+ renderPlayButton() {
125
+ return index.h("yoo-button", { disabled: this.disabled, animated: index$1.isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) }, index.h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" }));
126
+ }
127
+ renderRange() {
125
128
  const pausePlay = (ev) => {
126
129
  this.isDragging = !ev;
127
130
  this.pause();
@@ -131,16 +134,24 @@ const YooAudioPlayerComponent = class {
131
134
  this.currentTime = this.audio.currentTime = value !== null && value !== void 0 ? value : 0;
132
135
  this.audio.play();
133
136
  };
134
- return (index.h(index.Host, null, [
135
- index.h("yoo-button", { disabled: this.disabled, animated: index$1.isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) }, index.h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" })),
136
- index.h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: (ev) => this.currentTimeDisplay = this.formateTime(ev === null || ev === void 0 ? void 0 : ev.detail), onKnobPressed: () => pausePlay(), onMouseDown: (ev) => pausePlay(ev), onKnobReleased: (ev) => resumePlay(ev === null || ev === void 0 ? void 0 : ev.detail) }),
137
- index.h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly && index.h("span", null, index$1.translate('AUDIO')), index.h("span", null, this.currentTimeDisplay)])
137
+ return index.h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: ({ detail }) => this.currentTimeDisplay = this.formateTime(detail), onKnobPressed: () => pausePlay(), onKnobReleased: ({ detail }) => resumePlay(detail) });
138
+ }
139
+ renderInfo() {
140
+ return index.h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly &&
141
+ index.h("span", null, index$1.translate('AUDIO')), index.h("span", null, this.currentTimeDisplay)
142
+ ]);
143
+ }
144
+ render() {
145
+ return (index.h(index.Host, null, " ", [
146
+ this.renderPlayButton(),
147
+ this.renderRange(),
148
+ this.renderInfo()
138
149
  ]));
139
150
  }
140
151
  get host() { return index.getElement(this); }
141
152
  static get watchers() { return {
142
- "src": ["onSrcChanged"],
143
- "isVisible": ["onVisibilityChanged"]
153
+ "isVisible": ["onVisibilityChanged"],
154
+ "src": ["onSrcChanged"]
144
155
  }; }
145
156
  };
146
157
  YooAudioPlayerComponent.style = audioPlayerCss;
@@ -244,7 +244,7 @@ const YooFormCarouselComponent = class {
244
244
  return this.renderVideo(src, index$2);
245
245
  }
246
246
  else if (type === 'audio') {
247
- return index.h("yoo-audio-player", { class: "audio-player", src: src });
247
+ return index.h("yoo-audio-player", { onClick: ev => ev === null || ev === void 0 ? void 0 : ev.stopPropagation(), class: "audio-player", src: src });
248
248
  }
249
249
  else if (type === 'document') {
250
250
  return index.h("yoo-form-document", { class: "expanded", isPdf: this.isPdf, extraClass: "feed", showDialog: true, showActionSheet: index$1.isNativeMobile() && index$1.isPdf(src), document: src });
@@ -257,7 +257,7 @@ const YooRangeComponent = class {
257
257
  const values = Array.from({ length: this.max - this.min + 1 }, (_, i) => this.min + i).filter(v => !(v % this.step));
258
258
  return (this.ticks || this.ticksLabels) && values.map(v => {
259
259
  const showTickLabel = filterPattern(v);
260
- return (this.ticks || showTickLabel) && index.h("div", { class: { 'tick': true, 'hidden': !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
260
+ return (this.ticks || showTickLabel) && index.h("div", { class: { tick: true, hidden: !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
261
261
  });
262
262
  }
263
263
  renderBar(start, end) {
@@ -240,7 +240,7 @@ export class YooRangeComponent {
240
240
  const values = Array.from({ length: this.max - this.min + 1 }, (_, i) => this.min + i).filter(v => !(v % this.step));
241
241
  return (this.ticks || this.ticksLabels) && values.map(v => {
242
242
  const showTickLabel = filterPattern(v);
243
- return (this.ticks || showTickLabel) && h("div", { class: { 'tick': true, 'hidden': !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
243
+ return (this.ticks || showTickLabel) && h("div", { class: { tick: true, hidden: !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
244
244
  });
245
245
  }
246
246
  renderBar(start, end) {
@@ -22,12 +22,12 @@ export class YooAudioPlayerComponent {
22
22
  this.currentTime = 0;
23
23
  this.currentTimeDisplay = '00:00';
24
24
  }
25
- onSrcChanged() {
26
- return this.initPlayer(true);
27
- }
28
25
  onVisibilityChanged() {
29
26
  this.pause();
30
27
  }
28
+ onSrcChanged() {
29
+ return this.initPlayer(true);
30
+ }
31
31
  async getAudio() {
32
32
  return this.audio;
33
33
  }
@@ -36,7 +36,7 @@ export class YooAudioPlayerComponent {
36
36
  return (_a = this.audio) === null || _a === void 0 ? void 0 : _a.pause();
37
37
  }
38
38
  async componentWillLoad() {
39
- return await this.initPlayer();
39
+ await this.initPlayer();
40
40
  }
41
41
  disconnectedCallback() {
42
42
  this.pause();
@@ -94,7 +94,7 @@ export class YooAudioPlayerComponent {
94
94
  .map((v) => v.toString().padStart(2, '0'))
95
95
  .join(':');
96
96
  }
97
- async togglePlay(ev) {
97
+ togglePlay(ev) {
98
98
  if (ev && this.audio) {
99
99
  ev.stopPropagation();
100
100
  const { paused, ended, currentTime } = this.audio;
@@ -108,7 +108,11 @@ export class YooAudioPlayerComponent {
108
108
  }
109
109
  }
110
110
  }
111
- render() {
111
+ renderPlayButton() {
112
+ return h("yoo-button", { disabled: this.disabled, animated: isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) },
113
+ h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" }));
114
+ }
115
+ renderRange() {
112
116
  const pausePlay = (ev) => {
113
117
  this.isDragging = !ev;
114
118
  this.pause();
@@ -118,12 +122,21 @@ export class YooAudioPlayerComponent {
118
122
  this.currentTime = this.audio.currentTime = value !== null && value !== void 0 ? value : 0;
119
123
  this.audio.play();
120
124
  };
121
- return (h(Host, null, [
122
- h("yoo-button", { disabled: this.disabled, animated: isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) },
123
- h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" })),
124
- h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: (ev) => this.currentTimeDisplay = this.formateTime(ev === null || ev === void 0 ? void 0 : ev.detail), onKnobPressed: () => pausePlay(), onMouseDown: (ev) => pausePlay(ev), onKnobReleased: (ev) => resumePlay(ev === null || ev === void 0 ? void 0 : ev.detail) }),
125
- h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly && h("span", null, translate('AUDIO')), h("span", null, this.currentTimeDisplay)])
126
- ]));
125
+ return h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: ({ detail }) => this.currentTimeDisplay = this.formateTime(detail), onKnobPressed: () => pausePlay(), onKnobReleased: ({ detail }) => resumePlay(detail) });
126
+ }
127
+ renderInfo() {
128
+ return h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly &&
129
+ h("span", null, translate('AUDIO')), h("span", null, this.currentTimeDisplay)
130
+ ]);
131
+ }
132
+ render() {
133
+ return (h(Host, null,
134
+ " ",
135
+ [
136
+ this.renderPlayButton(),
137
+ this.renderRange(),
138
+ this.renderInfo()
139
+ ]));
127
140
  }
128
141
  static get is() { return "yoo-audio-player"; }
129
142
  static get encapsulation() { return "shadow"; }
@@ -316,10 +329,10 @@ export class YooAudioPlayerComponent {
316
329
  }; }
317
330
  static get elementRef() { return "host"; }
318
331
  static get watchers() { return [{
319
- "propName": "src",
320
- "methodName": "onSrcChanged"
321
- }, {
322
332
  "propName": "isVisible",
323
333
  "methodName": "onVisibilityChanged"
334
+ }, {
335
+ "propName": "src",
336
+ "methodName": "onSrcChanged"
324
337
  }]; }
325
338
  }
@@ -229,7 +229,7 @@ export class YooFormCarouselComponent {
229
229
  return this.renderVideo(src, index);
230
230
  }
231
231
  else if (type === 'audio') {
232
- return h("yoo-audio-player", { class: "audio-player", src: src });
232
+ return h("yoo-audio-player", { onClick: ev => ev === null || ev === void 0 ? void 0 : ev.stopPropagation(), class: "audio-player", src: src });
233
233
  }
234
234
  else if (type === 'document') {
235
235
  return h("yoo-form-document", { class: "expanded", isPdf: this.isPdf, extraClass: "feed", showDialog: true, showActionSheet: isNativeMobile() && isPdf(src), document: src });
@@ -31,12 +31,12 @@ const YooAudioPlayerComponent = class {
31
31
  this.currentTime = 0;
32
32
  this.currentTimeDisplay = '00:00';
33
33
  }
34
- onSrcChanged() {
35
- return this.initPlayer(true);
36
- }
37
34
  onVisibilityChanged() {
38
35
  this.pause();
39
36
  }
37
+ onSrcChanged() {
38
+ return this.initPlayer(true);
39
+ }
40
40
  async getAudio() {
41
41
  return this.audio;
42
42
  }
@@ -45,7 +45,7 @@ const YooAudioPlayerComponent = class {
45
45
  return (_a = this.audio) === null || _a === void 0 ? void 0 : _a.pause();
46
46
  }
47
47
  async componentWillLoad() {
48
- return await this.initPlayer();
48
+ await this.initPlayer();
49
49
  }
50
50
  disconnectedCallback() {
51
51
  this.pause();
@@ -103,7 +103,7 @@ const YooAudioPlayerComponent = class {
103
103
  .map((v) => v.toString().padStart(2, '0'))
104
104
  .join(':');
105
105
  }
106
- async togglePlay(ev) {
106
+ togglePlay(ev) {
107
107
  if (ev && this.audio) {
108
108
  ev.stopPropagation();
109
109
  const { paused, ended, currentTime } = this.audio;
@@ -117,7 +117,10 @@ const YooAudioPlayerComponent = class {
117
117
  }
118
118
  }
119
119
  }
120
- render() {
120
+ renderPlayButton() {
121
+ return h("yoo-button", { disabled: this.disabled, animated: isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) }, h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" }));
122
+ }
123
+ renderRange() {
121
124
  const pausePlay = (ev) => {
122
125
  this.isDragging = !ev;
123
126
  this.pause();
@@ -127,16 +130,24 @@ const YooAudioPlayerComponent = class {
127
130
  this.currentTime = this.audio.currentTime = value !== null && value !== void 0 ? value : 0;
128
131
  this.audio.play();
129
132
  };
130
- return (h(Host, null, [
131
- h("yoo-button", { disabled: this.disabled, animated: isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) }, h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" })),
132
- h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: (ev) => this.currentTimeDisplay = this.formateTime(ev === null || ev === void 0 ? void 0 : ev.detail), onKnobPressed: () => pausePlay(), onMouseDown: (ev) => pausePlay(ev), onKnobReleased: (ev) => resumePlay(ev === null || ev === void 0 ? void 0 : ev.detail) }),
133
- h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly && h("span", null, translate('AUDIO')), h("span", null, this.currentTimeDisplay)])
133
+ return h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: ({ detail }) => this.currentTimeDisplay = this.formateTime(detail), onKnobPressed: () => pausePlay(), onKnobReleased: ({ detail }) => resumePlay(detail) });
134
+ }
135
+ renderInfo() {
136
+ return h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly &&
137
+ h("span", null, translate('AUDIO')), h("span", null, this.currentTimeDisplay)
138
+ ]);
139
+ }
140
+ render() {
141
+ return (h(Host, null, " ", [
142
+ this.renderPlayButton(),
143
+ this.renderRange(),
144
+ this.renderInfo()
134
145
  ]));
135
146
  }
136
147
  get host() { return getElement(this); }
137
148
  static get watchers() { return {
138
- "src": ["onSrcChanged"],
139
- "isVisible": ["onVisibilityChanged"]
149
+ "isVisible": ["onVisibilityChanged"],
150
+ "src": ["onSrcChanged"]
140
151
  }; }
141
152
  };
142
153
  YooAudioPlayerComponent.style = audioPlayerCss;
@@ -240,7 +240,7 @@ const YooFormCarouselComponent = class {
240
240
  return this.renderVideo(src, index);
241
241
  }
242
242
  else if (type === 'audio') {
243
- return h("yoo-audio-player", { class: "audio-player", src: src });
243
+ return h("yoo-audio-player", { onClick: ev => ev === null || ev === void 0 ? void 0 : ev.stopPropagation(), class: "audio-player", src: src });
244
244
  }
245
245
  else if (type === 'document') {
246
246
  return h("yoo-form-document", { class: "expanded", isPdf: this.isPdf, extraClass: "feed", showDialog: true, showActionSheet: isNativeMobile() && isPdf(src), document: src });
@@ -253,7 +253,7 @@ const YooRangeComponent = class {
253
253
  const values = Array.from({ length: this.max - this.min + 1 }, (_, i) => this.min + i).filter(v => !(v % this.step));
254
254
  return (this.ticks || this.ticksLabels) && values.map(v => {
255
255
  const showTickLabel = filterPattern(v);
256
- return (this.ticks || showTickLabel) && h("div", { class: { 'tick': true, 'hidden': !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
256
+ return (this.ticks || showTickLabel) && h("div", { class: { tick: true, hidden: !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
257
257
  });
258
258
  }
259
259
  renderBar(start, end) {
@@ -31,12 +31,12 @@ const YooAudioPlayerComponent = class {
31
31
  this.currentTime = 0;
32
32
  this.currentTimeDisplay = '00:00';
33
33
  }
34
- onSrcChanged() {
35
- return this.initPlayer(true);
36
- }
37
34
  onVisibilityChanged() {
38
35
  this.pause();
39
36
  }
37
+ onSrcChanged() {
38
+ return this.initPlayer(true);
39
+ }
40
40
  async getAudio() {
41
41
  return this.audio;
42
42
  }
@@ -45,7 +45,7 @@ const YooAudioPlayerComponent = class {
45
45
  return (_a = this.audio) === null || _a === void 0 ? void 0 : _a.pause();
46
46
  }
47
47
  async componentWillLoad() {
48
- return await this.initPlayer();
48
+ await this.initPlayer();
49
49
  }
50
50
  disconnectedCallback() {
51
51
  this.pause();
@@ -103,7 +103,7 @@ const YooAudioPlayerComponent = class {
103
103
  .map((v) => v.toString().padStart(2, '0'))
104
104
  .join(':');
105
105
  }
106
- async togglePlay(ev) {
106
+ togglePlay(ev) {
107
107
  if (ev && this.audio) {
108
108
  ev.stopPropagation();
109
109
  const { paused, ended, currentTime } = this.audio;
@@ -117,7 +117,10 @@ const YooAudioPlayerComponent = class {
117
117
  }
118
118
  }
119
119
  }
120
- render() {
120
+ renderPlayButton() {
121
+ return h("yoo-button", { disabled: this.disabled, animated: isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) }, h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" }));
122
+ }
123
+ renderRange() {
121
124
  const pausePlay = (ev) => {
122
125
  this.isDragging = !ev;
123
126
  this.pause();
@@ -127,16 +130,24 @@ const YooAudioPlayerComponent = class {
127
130
  this.currentTime = this.audio.currentTime = value !== null && value !== void 0 ? value : 0;
128
131
  this.audio.play();
129
132
  };
130
- return (h(Host, null, [
131
- h("yoo-button", { disabled: this.disabled, animated: isWeb(this.host), shape: "circular", fill: "transparent", onClick: (ev) => this.togglePlay(ev) }, h("yoo-icon", { name: `${this.audio.paused ? 'play' : 'pause'}-audio`, size: "large" })),
132
- h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: (ev) => this.currentTimeDisplay = this.formateTime(ev === null || ev === void 0 ? void 0 : ev.detail), onKnobPressed: () => pausePlay(), onMouseDown: (ev) => pausePlay(ev), onKnobReleased: (ev) => resumePlay(ev === null || ev === void 0 ? void 0 : ev.detail) }),
133
- h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly && h("span", null, translate('AUDIO')), h("span", null, this.currentTimeDisplay)])
133
+ return h("yoo-range", { max: this.duration, value: this.currentTime, disabled: this.disabled, onValueChanged: ({ detail }) => this.currentTimeDisplay = this.formateTime(detail), onKnobPressed: () => pausePlay(), onKnobReleased: ({ detail }) => resumePlay(detail) });
134
+ }
135
+ renderInfo() {
136
+ return h("div", { class: { 'audio-info': true, 'only-time': this.displayTimeOnly } }, [!this.displayTimeOnly &&
137
+ h("span", null, translate('AUDIO')), h("span", null, this.currentTimeDisplay)
138
+ ]);
139
+ }
140
+ render() {
141
+ return (h(Host, null, " ", [
142
+ this.renderPlayButton(),
143
+ this.renderRange(),
144
+ this.renderInfo()
134
145
  ]));
135
146
  }
136
147
  get host() { return getElement(this); }
137
148
  static get watchers() { return {
138
- "src": ["onSrcChanged"],
139
- "isVisible": ["onVisibilityChanged"]
149
+ "isVisible": ["onVisibilityChanged"],
150
+ "src": ["onSrcChanged"]
140
151
  }; }
141
152
  };
142
153
  YooAudioPlayerComponent.style = audioPlayerCss;
@@ -240,7 +240,7 @@ const YooFormCarouselComponent = class {
240
240
  return this.renderVideo(src, index);
241
241
  }
242
242
  else if (type === 'audio') {
243
- return h("yoo-audio-player", { class: "audio-player", src: src });
243
+ return h("yoo-audio-player", { onClick: ev => ev === null || ev === void 0 ? void 0 : ev.stopPropagation(), class: "audio-player", src: src });
244
244
  }
245
245
  else if (type === 'document') {
246
246
  return h("yoo-form-document", { class: "expanded", isPdf: this.isPdf, extraClass: "feed", showDialog: true, showActionSheet: isNativeMobile() && isPdf(src), document: src });
@@ -253,7 +253,7 @@ const YooRangeComponent = class {
253
253
  const values = Array.from({ length: this.max - this.min + 1 }, (_, i) => this.min + i).filter(v => !(v % this.step));
254
254
  return (this.ticks || this.ticksLabels) && values.map(v => {
255
255
  const showTickLabel = filterPattern(v);
256
- return (this.ticks || showTickLabel) && h("div", { class: { 'tick': true, 'hidden': !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
256
+ return (this.ticks || showTickLabel) && h("div", { class: { tick: true, hidden: !this.ticks }, style: { [start]: `${this.valueToRatio(v) * 100}%` }, ...(this.ticksLabels && showTickLabel && { i: v }) });
257
257
  });
258
258
  }
259
259
  renderBar(start, end) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentInterface, EventEmitter } from '../../../stencil-public-runtime';
2
3
  export declare class YooAudioPlayerComponent implements ComponentInterface {
3
4
  /**
@@ -20,10 +21,12 @@ export declare class YooAudioPlayerComponent implements ComponentInterface {
20
21
  * Reinit the player when being within in a slide
21
22
  */
22
23
  isVisible?: boolean;
24
+ onVisibilityChanged(): void;
23
25
  /**
24
26
  * Set the audio source url
25
27
  */
26
28
  src?: string;
29
+ onSrcChanged(): Promise<void>;
27
30
  inputChanged: EventEmitter<boolean>;
28
31
  validityChanged: EventEmitter<boolean>;
29
32
  currentTime: number;
@@ -32,8 +35,6 @@ export declare class YooAudioPlayerComponent implements ComponentInterface {
32
35
  host: HTMLYooAudioPlayerElement;
33
36
  private audio;
34
37
  private isDragging;
35
- onSrcChanged(): Promise<void>;
36
- onVisibilityChanged(): void;
37
38
  getAudio(): Promise<HTMLAudioElement>;
38
39
  pause(): Promise<void>;
39
40
  componentWillLoad(): Promise<void>;
@@ -44,5 +45,8 @@ export declare class YooAudioPlayerComponent implements ComponentInterface {
44
45
  private initPlayer;
45
46
  private formateTime;
46
47
  private togglePlay;
47
- render(): any;
48
+ renderPlayButton(): JSX.Element;
49
+ renderRange(): JSX.Element;
50
+ renderInfo(): JSX.Element;
51
+ render(): JSX.Element;
48
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.2.0-26",
3
+ "version": "8.2.0-27",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",