@vizor-vr/vue 0.2.0
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/README.md +31 -0
- package/dist/VzAnnotation.vue.d.ts +25 -0
- package/dist/VzAnnotation.vue.d.ts.map +1 -0
- package/dist/VzCaption.vue.d.ts +12 -0
- package/dist/VzCaption.vue.d.ts.map +1 -0
- package/dist/VzCinema.vue.d.ts +202 -0
- package/dist/VzCinema.vue.d.ts.map +1 -0
- package/dist/VzImg.vue.d.ts +162 -0
- package/dist/VzImg.vue.d.ts.map +1 -0
- package/dist/VzLive.vue.d.ts +203 -0
- package/dist/VzLive.vue.d.ts.map +1 -0
- package/dist/VzPlaylist.vue.d.ts +54 -0
- package/dist/VzPlaylist.vue.d.ts.map +1 -0
- package/dist/VzTour.vue.d.ts +162 -0
- package/dist/VzTour.vue.d.ts.map +1 -0
- package/dist/VzVideo.vue.d.ts +205 -0
- package/dist/VzVideo.vue.d.ts.map +1 -0
- package/dist/__tests__/components.test.d.ts +2 -0
- package/dist/__tests__/components.test.d.ts.map +1 -0
- package/dist/__tests__/vz-caption.test.d.ts +2 -0
- package/dist/__tests__/vz-caption.test.d.ts.map +1 -0
- package/dist/dash-adapter-tid9ZyhO-4XHuq5__.js +63 -0
- package/dist/dash.all.min-DJEXrg26.js +18063 -0
- package/dist/hls-CxmYC9fy.js +21786 -0
- package/dist/hls-adapter-BivH46L_-BkyufEEx.js +84 -0
- package/dist/index-a2S14O1a.js +283 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22428 -0
- package/dist/omnitone-BEhsj_gd.js +494 -0
- package/dist/use-vizor.d.ts +166 -0
- package/dist/use-vizor.d.ts.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import '@vizor-vr/player/register';
|
|
3
|
+
/**
|
|
4
|
+
* Composable that attaches DOM event listeners to a Vizor custom element
|
|
5
|
+
* and emits them as Vue events.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useVizorEvents(elRef: Ref<HTMLElement | null>, emit: (event: string, ...args: unknown[]) => void): void;
|
|
8
|
+
/** Create a template ref for the custom element */
|
|
9
|
+
export declare function useVizorRef(): Ref<HTMLElement | null, HTMLElement | null>;
|
|
10
|
+
/** Common emit declarations for Vizor components */
|
|
11
|
+
export declare const vizorEmits: string[];
|
|
12
|
+
/** Common props shared by all Vizor components */
|
|
13
|
+
export declare const vizorProps: {
|
|
14
|
+
readonly format: {
|
|
15
|
+
readonly type: StringConstructor;
|
|
16
|
+
readonly default: undefined;
|
|
17
|
+
};
|
|
18
|
+
readonly title: {
|
|
19
|
+
readonly type: StringConstructor;
|
|
20
|
+
readonly default: undefined;
|
|
21
|
+
};
|
|
22
|
+
readonly poster: {
|
|
23
|
+
readonly type: StringConstructor;
|
|
24
|
+
readonly default: undefined;
|
|
25
|
+
};
|
|
26
|
+
readonly loop: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly default: false;
|
|
29
|
+
};
|
|
30
|
+
readonly muted: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: false;
|
|
33
|
+
};
|
|
34
|
+
readonly preload: {
|
|
35
|
+
readonly type: () => "auto" | "metadata" | "none";
|
|
36
|
+
readonly default: undefined;
|
|
37
|
+
};
|
|
38
|
+
readonly src: {
|
|
39
|
+
readonly type: StringConstructor;
|
|
40
|
+
readonly default: undefined;
|
|
41
|
+
};
|
|
42
|
+
readonly apiKey: {
|
|
43
|
+
readonly type: StringConstructor;
|
|
44
|
+
readonly default: undefined;
|
|
45
|
+
};
|
|
46
|
+
readonly licenseKey: {
|
|
47
|
+
readonly type: StringConstructor;
|
|
48
|
+
readonly default: undefined;
|
|
49
|
+
};
|
|
50
|
+
readonly apiEndpoint: {
|
|
51
|
+
readonly type: StringConstructor;
|
|
52
|
+
readonly default: undefined;
|
|
53
|
+
};
|
|
54
|
+
readonly contentId: {
|
|
55
|
+
readonly type: StringConstructor;
|
|
56
|
+
readonly default: undefined;
|
|
57
|
+
};
|
|
58
|
+
readonly controlsBehavior: {
|
|
59
|
+
readonly type: () => "autohide" | "always" | "minimal";
|
|
60
|
+
readonly default: undefined;
|
|
61
|
+
};
|
|
62
|
+
readonly hideControls: {
|
|
63
|
+
readonly type: BooleanConstructor;
|
|
64
|
+
readonly default: false;
|
|
65
|
+
};
|
|
66
|
+
readonly primaryColor: {
|
|
67
|
+
readonly type: StringConstructor;
|
|
68
|
+
readonly default: undefined;
|
|
69
|
+
};
|
|
70
|
+
readonly collabServer: {
|
|
71
|
+
readonly type: StringConstructor;
|
|
72
|
+
readonly default: undefined;
|
|
73
|
+
};
|
|
74
|
+
readonly collabRoom: {
|
|
75
|
+
readonly type: StringConstructor;
|
|
76
|
+
readonly default: undefined;
|
|
77
|
+
};
|
|
78
|
+
readonly collabRole: {
|
|
79
|
+
readonly type: () => "host" | "viewer";
|
|
80
|
+
readonly default: undefined;
|
|
81
|
+
};
|
|
82
|
+
readonly collabUserId: {
|
|
83
|
+
readonly type: StringConstructor;
|
|
84
|
+
readonly default: undefined;
|
|
85
|
+
};
|
|
86
|
+
readonly collabDisplayName: {
|
|
87
|
+
readonly type: StringConstructor;
|
|
88
|
+
readonly default: undefined;
|
|
89
|
+
};
|
|
90
|
+
readonly collabPassword: {
|
|
91
|
+
readonly type: StringConstructor;
|
|
92
|
+
readonly default: undefined;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
/** Image-specific props (no loop, muted, preload) */
|
|
96
|
+
export declare const vizorImgProps: {
|
|
97
|
+
readonly format: {
|
|
98
|
+
readonly type: StringConstructor;
|
|
99
|
+
readonly default: undefined;
|
|
100
|
+
};
|
|
101
|
+
readonly title: {
|
|
102
|
+
readonly type: StringConstructor;
|
|
103
|
+
readonly default: undefined;
|
|
104
|
+
};
|
|
105
|
+
readonly poster: {
|
|
106
|
+
readonly type: StringConstructor;
|
|
107
|
+
readonly default: undefined;
|
|
108
|
+
};
|
|
109
|
+
readonly src: {
|
|
110
|
+
readonly type: StringConstructor;
|
|
111
|
+
readonly default: undefined;
|
|
112
|
+
};
|
|
113
|
+
readonly apiKey: {
|
|
114
|
+
readonly type: StringConstructor;
|
|
115
|
+
readonly default: undefined;
|
|
116
|
+
};
|
|
117
|
+
readonly licenseKey: {
|
|
118
|
+
readonly type: StringConstructor;
|
|
119
|
+
readonly default: undefined;
|
|
120
|
+
};
|
|
121
|
+
readonly apiEndpoint: {
|
|
122
|
+
readonly type: StringConstructor;
|
|
123
|
+
readonly default: undefined;
|
|
124
|
+
};
|
|
125
|
+
readonly contentId: {
|
|
126
|
+
readonly type: StringConstructor;
|
|
127
|
+
readonly default: undefined;
|
|
128
|
+
};
|
|
129
|
+
readonly controlsBehavior: {
|
|
130
|
+
readonly type: () => "autohide" | "always" | "minimal";
|
|
131
|
+
readonly default: undefined;
|
|
132
|
+
};
|
|
133
|
+
readonly hideControls: {
|
|
134
|
+
readonly type: BooleanConstructor;
|
|
135
|
+
readonly default: false;
|
|
136
|
+
};
|
|
137
|
+
readonly primaryColor: {
|
|
138
|
+
readonly type: StringConstructor;
|
|
139
|
+
readonly default: undefined;
|
|
140
|
+
};
|
|
141
|
+
readonly collabServer: {
|
|
142
|
+
readonly type: StringConstructor;
|
|
143
|
+
readonly default: undefined;
|
|
144
|
+
};
|
|
145
|
+
readonly collabRoom: {
|
|
146
|
+
readonly type: StringConstructor;
|
|
147
|
+
readonly default: undefined;
|
|
148
|
+
};
|
|
149
|
+
readonly collabRole: {
|
|
150
|
+
readonly type: () => "host" | "viewer";
|
|
151
|
+
readonly default: undefined;
|
|
152
|
+
};
|
|
153
|
+
readonly collabUserId: {
|
|
154
|
+
readonly type: StringConstructor;
|
|
155
|
+
readonly default: undefined;
|
|
156
|
+
};
|
|
157
|
+
readonly collabDisplayName: {
|
|
158
|
+
readonly type: StringConstructor;
|
|
159
|
+
readonly default: undefined;
|
|
160
|
+
};
|
|
161
|
+
readonly collabPassword: {
|
|
162
|
+
readonly type: StringConstructor;
|
|
163
|
+
readonly default: undefined;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=use-vizor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-vizor.d.ts","sourceRoot":"","sources":["../src/use-vizor.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAIvE,OAAO,2BAA2B,CAAC;AA2BnC;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAC9B,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,QAgClD;AAED,mDAAmD;AACnD,wBAAgB,WAAW,gDAE1B;AAED,oDAAoD;AACpD,eAAO,MAAM,UAAU,EAAE,MAAM,EAgB9B,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;uBAMM,MAAM,MAAM,GAAG,UAAU,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;uBAO3C,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;uBAO3B,MAAM,MAAM,GAAG,QAAQ;;;;;;;;;;;;;;;CAI7C,CAAC;AAEX,qDAAqD;AACrD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAdN,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;uBAO3B,MAAM,MAAM,GAAG,QAAQ;;;;;;;;;;;;;;;CAyB7C,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vizor-vr/vue",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Vue 3 wrappers for Vizor VR Player",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "UTG Networks",
|
|
7
|
+
"homepage": "https://vizor-vr.com",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/vizor-vr/vizor-vr.git",
|
|
11
|
+
"directory": "packages/vue"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"vue",
|
|
15
|
+
"vue3",
|
|
16
|
+
"vr",
|
|
17
|
+
"360-video",
|
|
18
|
+
"webxr",
|
|
19
|
+
"three.js",
|
|
20
|
+
"video-player"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "dist/index.js",
|
|
24
|
+
"module": "dist/index.js",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"vue": ">=3.3.0"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@vizor-vr/player": "0.2.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@vitejs/plugin-vue": "^5.2.0",
|
|
43
|
+
"@vitest/coverage-v8": "^3.0.0",
|
|
44
|
+
"typescript": "^5.7.0",
|
|
45
|
+
"vite": "^6.0.0",
|
|
46
|
+
"vitest": "^3.0.0",
|
|
47
|
+
"vue": "^3.5.0",
|
|
48
|
+
"vue-tsc": "^2.2.0"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly",
|
|
55
|
+
"dev": "vite build --watch",
|
|
56
|
+
"test": "vitest run"
|
|
57
|
+
}
|
|
58
|
+
}
|