@evercam/ui 0.0.27 → 0.0.29
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/attributes.json +1 -1
- package/dist/index.mjs +97 -93
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/EVideoPlayer.vue.d.ts +8 -5
- package/dist/src/index.d.ts +6 -3
- package/dist/style.css +1 -1
- package/dist/web-types.json +5 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Vue from "vue";
|
|
2
|
-
export type
|
|
2
|
+
export type VideoSource = {
|
|
3
3
|
type: string;
|
|
4
4
|
src: string;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
export declare const VIDEO_PLAYER_EVENTS: string[];
|
|
7
7
|
declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, {
|
|
8
8
|
playing: boolean;
|
|
@@ -17,7 +17,9 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
17
17
|
isFullscreen: boolean;
|
|
18
18
|
isFinished: boolean;
|
|
19
19
|
isLoading: boolean;
|
|
20
|
+
isError: boolean;
|
|
20
21
|
}, {
|
|
22
|
+
handle404Error(): void;
|
|
21
23
|
bindEvents(): void;
|
|
22
24
|
unbindEvents(): void;
|
|
23
25
|
bindVideoEvent(which: string): void;
|
|
@@ -28,8 +30,9 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
28
30
|
initializeFullscreenListeners(): void;
|
|
29
31
|
handleFullscreenChange(): void;
|
|
30
32
|
isLooped(): boolean;
|
|
33
|
+
handleScrubbingOnMouseEnd(e: MouseEvent): void;
|
|
31
34
|
handleEnded(): void;
|
|
32
|
-
handleLoading(): void;
|
|
35
|
+
handleLoading(e: Event): void;
|
|
33
36
|
play(): void;
|
|
34
37
|
pause(): void;
|
|
35
38
|
togglePlay(): void;
|
|
@@ -46,11 +49,11 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
46
49
|
toggleScrubbing(e: MouseEvent): Promise<void>;
|
|
47
50
|
handleKeyDown(e: KeyboardEvent): void;
|
|
48
51
|
}, {
|
|
49
|
-
|
|
52
|
+
sourceItems: VideoSource[];
|
|
50
53
|
hasStartedOrFinished: boolean;
|
|
51
54
|
withControls: "" | "hide";
|
|
52
55
|
}, {
|
|
53
|
-
sources:
|
|
56
|
+
sources: string | VideoSource[];
|
|
54
57
|
videoListeners: {};
|
|
55
58
|
videoOptions: {};
|
|
56
59
|
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -129,7 +129,9 @@ export declare const components: {
|
|
|
129
129
|
isFullscreen: boolean;
|
|
130
130
|
isFinished: boolean;
|
|
131
131
|
isLoading: boolean;
|
|
132
|
+
isError: boolean;
|
|
132
133
|
}, {
|
|
134
|
+
handle404Error(): void;
|
|
133
135
|
bindEvents(): void;
|
|
134
136
|
unbindEvents(): void;
|
|
135
137
|
bindVideoEvent(which: string): void;
|
|
@@ -140,8 +142,9 @@ export declare const components: {
|
|
|
140
142
|
initializeFullscreenListeners(): void;
|
|
141
143
|
handleFullscreenChange(): void;
|
|
142
144
|
isLooped(): boolean;
|
|
145
|
+
handleScrubbingOnMouseEnd(e: MouseEvent): void;
|
|
143
146
|
handleEnded(): void;
|
|
144
|
-
handleLoading(): void;
|
|
147
|
+
handleLoading(e: Event): void;
|
|
145
148
|
play(): void;
|
|
146
149
|
pause(): void;
|
|
147
150
|
togglePlay(): void;
|
|
@@ -158,11 +161,11 @@ export declare const components: {
|
|
|
158
161
|
toggleScrubbing(e: MouseEvent): Promise<void>;
|
|
159
162
|
handleKeyDown(e: KeyboardEvent): void;
|
|
160
163
|
}, {
|
|
161
|
-
|
|
164
|
+
sourceItems: import('./components/EVideoPlayer.vue').VideoSource[];
|
|
162
165
|
hasStartedOrFinished: boolean;
|
|
163
166
|
withControls: "" | "hide";
|
|
164
167
|
}, {
|
|
165
|
-
sources: import('./components/EVideoPlayer.vue').
|
|
168
|
+
sources: string | import('./components/EVideoPlayer.vue').VideoSource[];
|
|
166
169
|
videoListeners: {};
|
|
167
170
|
videoOptions: {};
|
|
168
171
|
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin>;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.e-spinner[data-v-f6962f4a]{vertical-align:center}.e-spinner__primary[data-v-f6962f4a],.e-spinner__secondary[data-v-f6962f4a]{stroke-width:0;animation:fade-f6962f4a;animation-iteration-count:infinite}@keyframes fade-f6962f4a{0%{fill-opacity:0}50%{fill-opacity:1}to{fill-opacity:0}}.e-row.e-row--no-gutters{margin:0}.e-row.e-row--no-gutters>.e-col{padding:0}.e-col{padding:.75rem}.spinner-container[data-v-
|
|
1
|
+
.e-spinner[data-v-f6962f4a]{vertical-align:center}.e-spinner__primary[data-v-f6962f4a],.e-spinner__secondary[data-v-f6962f4a]{stroke-width:0;animation:fade-f6962f4a;animation-iteration-count:infinite}@keyframes fade-f6962f4a{0%{fill-opacity:0}50%{fill-opacity:1}to{fill-opacity:0}}.e-row.e-row--no-gutters{margin:0}.e-row.e-row--no-gutters>.e-col{padding:0}.e-col{padding:.75rem}.spinner-container[data-v-e5af201f]{position:absolute;background:linear-gradient(to top,rgba(0,0,0,.65),transparent);inset:0;display:flex;justify-content:center;align-items:center;vertical-align:middle}.video-container[data-v-e5af201f]{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;margin:0 auto}.video-container.full-screen[data-v-e5af201f]{max-width:initial;width:100%;max-height:100vh}video[data-v-e5af201f]{width:100%;height:inherit}.video-controls-container[data-v-e5af201f]{position:absolute;bottom:0;left:0;right:0;color:#fff;z-index:100;opacity:0;transition:opacity .15s ease-in-out}.hide[data-v-e5af201f]{display:none}.video-controls-container[data-v-e5af201f]:before{content:"";position:absolute;bottom:0;background:linear-gradient(to top,rgba(0,0,0,.75),transparent);width:100%;aspect-ratio:6 / 1;z-index:-1;pointer-events:none}.video-container:hover .video-controls-container[data-v-e5af201f],.video-container:focus-within .video-controls-container[data-v-e5af201f],.video-container.paused .video-controls-container[data-v-e5af201f]{opacity:1}.video-controls-container .controls[data-v-e5af201f]{display:flex;gap:.5rem;padding:.75rem 1rem;align-items:center;width:100%}.video-controls-container .controls button[data-v-e5af201f]{background:none;border:none;color:inherit;padding:0;height:32px;width:32px;font-size:1.35rem;cursor:pointer;opacity:.85;transition:opacity .15s ease-in-out}.video-controls-container .controls button[data-v-e5af201f]:hover{opacity:1}.duration-container[data-v-e5af201f]{display:flex;align-items:center;gap:.25rem;flex-grow:1}.video-container.captions .captions-btn[data-v-e5af201f]{border-bottom:3px solid red}.video-controls-container .controls button.wide-btn[data-v-e5af201f]{width:50px}.timeline-container[data-v-e5af201f]{width:100%;height:7px;margin-inline:.5rem;cursor:pointer;display:flex;align-items:center}.timeline[data-v-e5af201f]{background-color:#64646480;height:3px;width:100%;position:relative}.timeline[data-v-e5af201f]:before{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--preview-position) * 100%);background-color:#969696;display:none}.timeline[data-v-e5af201f]:after{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--progress-position) * 100%);background-color:red}.timeline .thumb-indicator[data-v-e5af201f]{--scale: 0;position:absolute;transform:translate(-50%) scale(var(--scale));height:200%;top:-50%;left:calc(var(--progress-position) * 100%);background-color:red;border-radius:50%;transition:transform .15s ease-in-out;aspect-ratio:1 / 1}.video-container.scrubbing .thumbnail-img[data-v-e5af201f]{display:block}.video-container.scrubbing .timeline[data-v-e5af201f]:before,.timeline-container:hover .timeline[data-v-e5af201f]:before{display:block}.video-container.scrubbing .thumb-indicator[data-v-e5af201f],.timeline-container:hover .thumb-indicator[data-v-e5af201f]{--scale: 1}.video-container.scrubbing .timeline[data-v-e5af201f],.timeline-container:hover .timeline[data-v-e5af201f]{height:100%}
|
package/dist/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@evercam/ui",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.29",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"types-syntax": "typescript",
|
|
@@ -488,7 +488,10 @@
|
|
|
488
488
|
"default": "undefined",
|
|
489
489
|
"value": {
|
|
490
490
|
"kind": "expression",
|
|
491
|
-
"type":
|
|
491
|
+
"type": [
|
|
492
|
+
"array",
|
|
493
|
+
"string"
|
|
494
|
+
]
|
|
492
495
|
}
|
|
493
496
|
},
|
|
494
497
|
{
|