3.1.1 • Published 2 years ago
@teamhive/content-viewers v3.1.1
Hive Content Viewers
Various content viewer web components for displaying different types of content.
Supported Content Types
Content Type | Component |
---|---|
Images | hive-image-viewer |
Videos | hive-video-viewer |
Audio | hive-audio-viewer |
Microsoft Documents | hive-document-viewer |
HTML Interactives | hive-iframe-viewer |
HTML Courses | hive-iframe-viewer |
Usage
Installation
npm i @teamhive/content-viewers
Somewhere in your app (e.g. main.ts
for Angular):
import { defineCustomElements } from '@teamhive/content-viewers/dist/loader';
defineCustomElements(window);
Or if you already have another stencil component library, define them separately:
import { defineCustomElements as defineHiveContentViewers } from '@teamhive/content-viewers/dist/loader';
defineHiveContentViewers(window);
Image Viewer
To leverage viewerjs
built in styling, you will need to import the global stylesheet into your application (instead of us bundling it with each image-viewer instance).
@import '~viewerjs/dist/viewer.min.css';
Attributes
Attribute | Description |
---|---|
src | The location of the content. |
Viewers
Viewer Component | Description |
---|---|
hive-image-viewer | The image sized to the maximum width and height without cropping or stretching. |
hive-video-viewer | The video sized to the maximum width and height without cropping or stretching in the browser default player. Controls are enabled. |
hive-audio-viewer | The audio loaded in the browser default player. |
hive-document-viewer | Microsoft documents are loaded in an iframe using the Office Web Viewer. |
hive-iframe-viewer | Interactives or Courses are loaded in an iframe . |
3.1.1
2 years ago
3.1.0
2 years ago
3.0.0-beta.14
4 years ago
3.0.0-beta.12
5 years ago
3.0.0-beta.13
5 years ago
3.0.0-beta.10
5 years ago
3.0.0-beta.11
5 years ago
3.0.0-beta.9
5 years ago
3.0.0-beta.8
5 years ago
3.0.0-beta.7
5 years ago
3.0.0-beta.0
5 years ago
3.0.0-beta.5
5 years ago
3.0.0-beta.4
5 years ago
3.0.0-beta.6
5 years ago
2.3.0
5 years ago
2.3.1
5 years ago
2.2.2
5 years ago
2.2.1
5 years ago
2.2.0
5 years ago
2.1.4
5 years ago
2.1.5
5 years ago
2.1.3
5 years ago
2.1.2
5 years ago
2.1.1
5 years ago
2.1.0
5 years ago
2.0.0
5 years ago
1.2.0
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
7 years ago
1.0.0
7 years ago