3.1.1 • Published 2 years ago

@teamhive/content-viewers v3.1.1

Weekly downloads
211
License
MIT
Repository
github
Last release
2 years ago

Built With Stencil

Hive Content Viewers

Various content viewer web components for displaying different types of content.

Supported Content Types

Content TypeComponent
Imageshive-image-viewer
Videoshive-video-viewer
Audiohive-audio-viewer
Microsoft Documentshive-document-viewer
HTML Interactiveshive-iframe-viewer
HTML Courseshive-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

AttributeDescription
srcThe location of the content.

Viewers

Viewer ComponentDescription
hive-image-viewerThe image sized to the maximum width and height without cropping or stretching.
hive-video-viewerThe video sized to the maximum width and height without cropping or stretching in the browser default player. Controls are enabled.
hive-audio-viewerThe audio loaded in the browser default player.
hive-document-viewerMicrosoft documents are loaded in an iframe using the Office Web Viewer.
hive-iframe-viewerInteractives 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