@micromag/viewer 0.2.384 → 0.2.389
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/assets/css/styles.css +3 -3
- package/es/index.js +139 -120
- package/lib/index.js +139 -120
- package/package.json +8 -8
package/assets/css/styles.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.micromag-viewer-screen-container{position:relative;height:100%;
|
|
2
|
-
|
|
1
|
+
.micromag-viewer-container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.micromag-viewer-container address,.micromag-viewer-container blockquote,.micromag-viewer-container caption,.micromag-viewer-container dl,.micromag-viewer-container figure,.micromag-viewer-container h1,.micromag-viewer-container h2,.micromag-viewer-container h3,.micromag-viewer-container h4,.micromag-viewer-container h5,.micromag-viewer-container h6,.micromag-viewer-container label,.micromag-viewer-container legend,.micromag-viewer-container li,.micromag-viewer-container ol,.micromag-viewer-container p,.micromag-viewer-container pre,.micromag-viewer-container ul{margin:0;padding:0}.micromag-viewer-container *,.micromag-viewer-container :after,.micromag-viewer-container :before{-webkit-box-sizing:border-box;box-sizing:border-box}.micromag-viewer-container .micromag-viewer-menuPreview,.micromag-viewer-container .micromag-viewer-menuPreviewContainer,.micromag-viewer-container .micromag-viewer-screen,.micromag-viewer-container .micromag-viewer-screenInner{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-viewer-container .micromag-viewer-screen:focus-visible{outline:3px solid #a13dff}.micromag-viewer-container{background-color:#1c1c1c;color:#fff}.micromag-viewer-container,.micromag-viewer-container .micromag-viewer-content{position:relative;width:100%;height:100%;overflow:hidden}.micromag-viewer-container .micromag-viewer-content{z-index:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.micromag-viewer-container .micromag-viewer-menuDotsContainer{-ms-touch-action:none;touch-action:none;visibility:hidden;position:absolute;z-index:2;top:0;right:50%;width:100%;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.micromag-viewer-container .micromag-viewer-menuDots{position:relative;padding:8px 10px;-webkit-transition:opacity .25s ease;-o-transition:opacity .25s ease;transition:opacity .25s ease}.micromag-viewer-container .micromag-viewer-menuPreviewContainer{visibility:hidden;z-index:3;top:-100%}.micromag-viewer-container .micromag-viewer-menuPreview{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.micromag-viewer-container .micromag-viewer-screen{display:-webkit-flex;display:-ms-flexbox;display:flex;opacity:0}.micromag-viewer-container .micromag-viewer-screen.micromag-viewer-current{opacity:1}.micromag-viewer-container.micromag-viewer-landscape .micromag-viewer-screen{top:0;right:auto;bottom:0;left:50%;margin:auto;-webkit-transition:opacity .3s ease,-webkit-transform .3s ease;transition:opacity .3s ease,-webkit-transform .3s ease;-o-transition:transform .3s ease,opacity .3s ease;transition:transform .3s ease,opacity .3s ease;transition:transform .3s ease,opacity .3s ease,-webkit-transform .3s ease;opacity:.2;cursor:pointer}.micromag-viewer-container.micromag-viewer-landscape .micromag-viewer-screen:focus-visible,.micromag-viewer-container.micromag-viewer-landscape .micromag-viewer-screen:hover{opacity:.3}.micromag-viewer-container.micromag-viewer-landscape .micromag-viewer-screen.micromag-viewer-current{opacity:1;cursor:auto}.micromag-viewer-container.micromag-viewer-hideMenu:not(.micromag-viewer-landscape) .micromag-viewer-menuDotsContainer{pointer-events:none}.micromag-viewer-container.micromag-viewer-hideMenu:not(.micromag-viewer-landscape) .micromag-viewer-menuDots{opacity:0}.micromag-viewer-container.micromag-viewer-ready .micromag-viewer-menuDotsContainer,.micromag-viewer-container.micromag-viewer-ready .micromag-viewer-menuPreviewContainer{visibility:visible}
|
|
3
2
|
.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-closeButton,.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item .micromag-viewer-menus-menu-dots-button,.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-menuButton{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-menuButton{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-closeButton:focus-visible,.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-menuButton:focus-visible{outline:3px solid #a13dff}.micromag-viewer-menus-menu-dots-container{position:relative}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item,.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-items{margin:0;padding:0;list-style:none}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-items{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;width:100%}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item{-webkit-flex:1 1;-ms-flex:1 1;flex:1 1}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item .micromag-viewer-menus-menu-dots-button{display:block;width:100%;padding:10px 2px}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item .micromag-viewer-menus-menu-dots-dot{display:block;width:100%;height:2px;border-radius:2px}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item:last-child{margin-right:0}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-menu{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;width:16px;height:16px;padding-left:10px}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-menuIcon{display:block;height:100%}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-closeButton{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-left:10px;font-size:26px}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical{background:rgba(0,0,0,0)}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical,.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical .micromag-viewer-menus-menu-dots-items{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical .micromag-viewer-menus-menu-dots-items{width:auto;height:100%}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical .micromag-viewer-menus-menu-dots-item .micromag-viewer-menus-menu-dots-button{width:auto;height:100%;padding:2px 10px}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical .micromag-viewer-menus-menu-dots-item .micromag-viewer-menus-menu-dots-dot{width:2px;height:100%}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical .micromag-viewer-menus-menu-dots-menu{position:absolute;top:10px;right:10px;padding-left:0}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-withShadow{background:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.4)),to(rgba(0,0,0,0)));background:-o-linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,0));background:linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,0))}
|
|
3
|
+
|
|
4
4
|
.micromag-viewer-partials-share-modal-container{pointer-events:none}.micromag-viewer-partials-share-modal-container .micromag-viewer-partials-share-modal-content{padding:5px;-webkit-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8);-webkit-transform-origin:center top;-ms-transform-origin:center top;transform-origin:center top;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;border-radius:10px;opacity:0;background-color:#fff}.micromag-viewer-partials-share-modal-container .micromag-viewer-partials-share-modal-content:before{content:"";position:absolute;bottom:100%;left:50%;width:0;height:0;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);border-right:8px solid rgba(0,0,0,0);border-bottom:8px solid #fff;border-left:8px solid rgba(0,0,0,0)}.micromag-viewer-partials-share-modal-container button{display:block;margin:5px}.micromag-viewer-partials-share-modal-container.micromag-viewer-partials-share-modal-opened{pointer-events:auto}.micromag-viewer-partials-share-modal-container.micromag-viewer-partials-share-modal-opened .micromag-viewer-partials-share-modal-content{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1}
|
|
5
5
|
.micromag-viewer-partials-share-button-container{position:relative;white-space:nowrap}.micromag-viewer-partials-share-button-container .micromag-viewer-partials-share-button-shareModal{position:absolute;top:100%;right:50%;margin-top:15px;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}
|
|
6
6
|
.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenButton{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-activeScreenBorder,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-itemContent,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenButton,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-scroll{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-button:focus-visible,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-shareButton:focus-visible{outline:3px solid #a13dff}.micromag-viewer-menus-menu-preview-container{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%;padding:10px;background-color:#000;background-repeat:no-repeat;background-position:50%;background-size:cover;color:#fff}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenButton{display:block}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenButton:focus-visible{border:4px solid #a13dff;outline:none}.micromag-viewer-menus-menu-preview-container.micromag-viewer-menus-menu-preview-disabled .micromag-viewer-menus-menu-preview-screenButton{pointer-events:none}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:20px}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-button,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-shareButton{display:inline-block;border:0;border-radius:0;background-color:rgba(0,0,0,0);color:inherit;font-size:.9rem;font-weight:600;line-height:1.4;text-align:center;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-button{width:20px;margin-left:10px;padding:0}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-button:first-child{margin-left:0}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-shareButton{z-index:1}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-icon{display:block;width:100%;height:100%}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-buttons{display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-organisation{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:30px;height:30px;margin-right:10px;border-radius:50%;background-color:#fff;background-repeat:no-repeat;background-position:50%;background-size:contain}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-title{margin-right:auto;color:#fff;font-family:Helvetica,Arial,sans-serif}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-content,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-nav{position:relative;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-nav{overflow:hidden}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-item,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-items{margin:0;padding:0;list-style:none}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-items{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-item{position:relative;height:0}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-item.micromag-viewer-menus-menu-preview-active .micromag-viewer-menus-menu-preview-screenButton{pointer-events:none}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-itemContent{padding:2px}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenContainer{position:relative;height:100%}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-activeScreenBorder{border:2px solid #fff}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenContent{-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;background-color:#2b2b2b}
|
|
7
|
-
.micromag-viewer-
|
|
7
|
+
.micromag-viewer-screen-container{position:relative;height:100%;pointer-events:none}.micromag-viewer-screen-container.micromag-viewer-screen-current{pointer-events:auto}
|
|
8
8
|
.micromag-screen-audio-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-audio-disabled.micromag-screen-audio-container{overflow:hidden;pointer-events:none}.micromag-screen-audio-hidden.micromag-screen-audio-container{display:none;visibility:hidden}.micromag-screen-audio-placeholder.micromag-screen-audio-container .micromag-screen-audio-content{position:relative;padding:6px}.micromag-screen-audio-container .micromag-screen-audio-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-audio-container .micromag-screen-audio-mediaControls{padding:10px 20px 0}.micromag-screen-audio-container .micromag-screen-audio-audio{position:absolute;bottom:50%;left:0;width:100%;-webkit-transform:translateY(50%);-ms-transform:translateY(50%);transform:translateY(50%)}.micromag-screen-audio-container .micromag-screen-audio-bottomContent{position:relative}.micromag-screen-audio-container .micromag-screen-audio-empty{width:100%;height:100px;margin:0 auto}.micromag-screen-audio-container.micromag-screen-audio-isPreview{pointer-events:none}.micromag-screen-contribution-container .micromag-screen-contribution-content{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-contribution-container .micromag-screen-contribution-buttonSubmit:focus-visible{outline:3px solid #a13dff}.micromag-screen-contribution-container{position:relative}@-webkit-keyframes micromag-screen-contribution-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes micromag-screen-contribution-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.micromag-screen-contribution-container .micromag-screen-contribution-emptyInputMessage,.micromag-screen-contribution-container .micromag-screen-contribution-emptyInputName,.micromag-screen-contribution-container .micromag-screen-contribution-emptySubmit,.micromag-screen-contribution-container .micromag-screen-contribution-emptyTitle{margin-bottom:10px;padding:10px}.micromag-screen-contribution-container .micromag-screen-contribution-emptyInputMessage{height:100px}.micromag-screen-contribution-container .micromag-screen-contribution-title{padding-bottom:20px}.micromag-screen-contribution-container .micromag-screen-contribution-interactiveContainer{-webkit-transition-property:height;-o-transition-property:height;transition-property:height;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.micromag-screen-contribution-container .micromag-screen-contribution-form{position:relative}.micromag-screen-contribution-container .micromag-screen-contribution-buttonSubmit,.micromag-screen-contribution-container .micromag-screen-contribution-inputMessage,.micromag-screen-contribution-container .micromag-screen-contribution-inputName{display:block;width:100%;padding:4px}.micromag-screen-contribution-container .micromag-screen-contribution-inputMessage,.micromag-screen-contribution-container .micromag-screen-contribution-inputName{margin-bottom:10px}.micromag-screen-contribution-container .micromag-screen-contribution-inputMessage{height:100px}.micromag-screen-contribution-container .micromag-screen-contribution-buttonSubmit{border:0}.micromag-screen-contribution-container .micromag-screen-contribution-buttonSubmit:disabled{opacity:1}.micromag-screen-contribution-container .micromag-screen-contribution-formContent{-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.micromag-screen-contribution-container .micromag-screen-contribution-formLoading{position:absolute;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;-webkit-transition:opacity .25s ease;-o-transition:opacity .25s ease;transition:opacity .25s ease;-webkit-animation:micromag-screen-contribution-rotate 1s linear infinite;animation:micromag-screen-contribution-rotate 1s linear infinite;opacity:0;pointer-events:none}.micromag-screen-contribution-container .micromag-screen-contribution-formLoading .micromag-screen-contribution-loadingIcon{display:block;width:100%;height:100%}.micromag-screen-contribution-container .micromag-screen-contribution-contributionsContainer{position:relative;-webkit-transition:opacity .25s ease;-o-transition:opacity .25s ease;transition:opacity .25s ease;opacity:0}.micromag-screen-contribution-container .micromag-screen-contribution-contributionsContent{position:absolute;width:100%;height:0;overflow:hidden}.micromag-screen-contribution-container .micromag-screen-contribution-contributions{position:relative}.micromag-screen-contribution-container .micromag-screen-contribution-contribution{margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #fff}.micromag-screen-contribution-container .micromag-screen-contribution-contribution:first-child{padding-top:20px;border-top:1px solid #fff}.micromag-screen-contribution-container .micromag-screen-contribution-contribution:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}.micromag-screen-contribution-container .micromag-screen-contribution-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-contribution-container.micromag-screen-contribution-submitting .micromag-screen-contribution-form{pointer-events:none}.micromag-screen-contribution-container.micromag-screen-contribution-submitting .micromag-screen-contribution-formContent{opacity:.4}.micromag-screen-contribution-container.micromag-screen-contribution-submitting .micromag-screen-contribution-formLoading{opacity:1}.micromag-screen-contribution-container.micromag-screen-contribution-submitted .micromag-screen-contribution-formContent{opacity:0}.micromag-screen-contribution-container.micromag-screen-contribution-showContributions .micromag-screen-contribution-form{display:none}.micromag-screen-contribution-container.micromag-screen-contribution-showContributions .micromag-screen-contribution-contributionsContainer{opacity:1}.micromag-screen-contribution-container.micromag-screen-contribution-showContributions .micromag-screen-contribution-contributionsContent{position:relative;height:auto;overflow:visible}.micromag-screen-contribution-container.micromag-screen-contribution-isPlaceholder .micromag-screen-contribution-content{padding:10px}.micromag-screen-conversation-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-conversation-disabled.micromag-screen-conversation-container{overflow:hidden;pointer-events:none}.micromag-screen-conversation-hidden.micromag-screen-conversation-container{display:none;visibility:hidden}.micromag-screen-conversation-placeholder.micromag-screen-conversation-container .micromag-screen-conversation-content{position:relative;padding:6px}.micromag-screen-conversation-container{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}.micromag-screen-conversation-container .micromag-screen-conversation-conversationHeader{width:100%;padding-bottom:16px;font-style:italic}.micromag-screen-conversation-container .micromag-screen-conversation-empty{height:200px}.micromag-screen-conversation-container .micromag-screen-conversation-title{padding-bottom:16px}.micromag-screen-conversation-container .micromag-screen-conversation-callToAction a{padding:0}.micromag-screen-conversation-messageContainer{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:#000}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message{max-width:80%;margin:1px 0;padding:10px;-webkit-transition:border-radius .2s ease;-o-transition:border-radius .2s ease;transition:border-radius .2s ease;background-color:#fff;overflow-wrap:break-word}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message.micromag-screen-conversation-normalLeft{border-radius:1px 15px 15px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message.micromag-screen-conversation-inBetweenLeft{border-radius:1px 15px 15px 1px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message.micromag-screen-conversation-normalRight{border-radius:15px 1px 15px 15px;background-color:#58afff}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message.micromag-screen-conversation-inBetweenRight{border-radius:15px 1px 1px 15px;background-color:#58afff}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message.micromag-screen-conversation-last{margin:1px 0 16px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-speakerDetails{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;padding-bottom:10px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-speakerDetails.micromag-screen-conversation-right{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-avatarContainer{width:30px;height:30px;margin-right:10px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-avatarContainer.micromag-screen-conversation-right{margin-right:0;margin-left:10px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-avatar{display:inline-block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:50%}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-imageContainer{width:100%;height:100%;padding-bottom:10px}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-withAnimation .micromag-screen-conversation-message{-webkit-animation:micromag-screen-conversation-appear .18s ease forwards;animation:micromag-screen-conversation-appear .18s ease forwards}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-withAnimation .micromag-screen-conversation-message.micromag-screen-conversation-normalLeft{-webkit-transform:translate(-300px) scale(.5);-ms-transform:translate(-300px) scale(.5);transform:translate(-300px) scale(.5)}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-withAnimation .micromag-screen-conversation-message.micromag-screen-conversation-inBetweenLeft{border-radius:1px 15px 15px 1px}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-withAnimation .micromag-screen-conversation-message.micromag-screen-conversation-normalRight{-webkit-transform:translate(300px) scale(.5);-ms-transform:translate(300px) scale(.5);transform:translate(300px) scale(.5)}@-webkit-keyframes micromag-screen-conversation-appear{to{-webkit-transform:translate(0) scale(1);transform:translate(0) scale(1)}}@keyframes micromag-screen-conversation-appear{to{-webkit-transform:translate(0) scale(1);transform:translate(0) scale(1)}}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loadingContainer{display:-webkit-flex;display:-ms-flexbox;display:flex;color:#fff}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loading,.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loadingContainer{-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loading{display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;margin:5px 0 10px;padding:7px 10px;border-radius:10px;background:#fff}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loading .micromag-screen-conversation-dot{width:5px;height:5px;margin-right:4px;-webkit-animation:micromag-screen-conversation-bounce .35s linear infinite alternate;animation:micromag-screen-conversation-bounce .35s linear infinite alternate;border-radius:50%;background:#000}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loading .micromag-screen-conversation-dot:nth-child(2){-webkit-animation-delay:.08s;animation-delay:.08s}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loading .micromag-screen-conversation-dot:nth-child(3){margin-right:0;-webkit-animation-delay:.16s;animation-delay:.16s}@-webkit-keyframes micromag-screen-conversation-bounce{0%{-webkit-transform:translateY(-2px);transform:translateY(-2px);opacity:.5}to{-webkit-transform:translateY(2px);transform:translateY(2px);opacity:1}}@keyframes micromag-screen-conversation-bounce{0%{-webkit-transform:translateY(-2px);transform:translateY(-2px);opacity:.5}to{-webkit-transform:translateY(2px);transform:translateY(2px);opacity:1}}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loadingSpeakerName{margin:0 5px;opacity:.6;font-size:12px;font-style:italic}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-right{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-right .micromag-screen-conversation-loadingContainer{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.micromag-screen-gallery-container .micromag-screen-gallery-content,.micromag-screen-gallery-container .micromag-screen-gallery-image{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-gallery-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-gallery-disabled.micromag-screen-gallery-container{overflow:hidden;pointer-events:none}.micromag-screen-gallery-hidden.micromag-screen-gallery-container{display:none;visibility:hidden}.micromag-screen-gallery-placeholder.micromag-screen-gallery-container .micromag-screen-gallery-content{position:relative;padding:6px}.micromag-screen-gallery-container .micromag-screen-gallery-emptyCaption,.micromag-screen-gallery-container .micromag-screen-gallery-emptyImage{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-gallery-container .micromag-screen-gallery-grid{position:relative;height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-placeholder{height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-emptyCaption,.micromag-screen-gallery-container .micromag-screen-gallery-emptyImage{width:100%}.micromag-screen-gallery-container .micromag-screen-gallery-emptyImage{height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-emptyCaption{height:50px;margin-top:10px}.micromag-screen-gallery-container .micromag-screen-gallery-gridItem{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-imageContainer{position:relative;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-screen-gallery-container .micromag-screen-gallery-caption{padding:10px 0}.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyCaption,.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyImage{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-gallery-feed-container{position:relative}.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyCaption,.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyImage{width:100%;margin:10px auto}.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyImage{height:200px}.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyCaption{height:50px}.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-gallery-feed-container.micromag-screen-gallery-feed-isPlaceholder .micromag-screen-gallery-feed-layout{padding:10px}.micromag-screen-image-container .micromag-screen-image-image{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-image-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-image-disabled.micromag-screen-image-container{overflow:hidden;pointer-events:none}.micromag-screen-image-hidden.micromag-screen-image-container{display:none;visibility:hidden}.micromag-screen-image-placeholder.micromag-screen-image-container .micromag-screen-image-content{position:relative;padding:6px}.micromag-screen-image-container .micromag-screen-image-emptyImage,.micromag-screen-image-container .micromag-screen-image-emptyLegend,.micromag-screen-image-container .micromag-screen-image-emptyText,.micromag-screen-image-container .micromag-screen-image-emptyTitle{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-image-container .micromag-screen-image-content{position:relative;height:100%}.micromag-screen-image-container .micromag-screen-image-emptyImage,.micromag-screen-image-container .micromag-screen-image-emptyLegend,.micromag-screen-image-container .micromag-screen-image-emptyText,.micromag-screen-image-container .micromag-screen-image-emptyTitle{width:100%;margin:10px auto}.micromag-screen-image-container .micromag-screen-image-emptyImage{height:100%}.micromag-screen-image-container .micromag-screen-image-emptyTitle{height:100px}.micromag-screen-image-container .micromag-screen-image-emptyText{height:80px}.micromag-screen-image-container .micromag-screen-image-emptyLegend{height:50px}.micromag-screen-image-container .micromag-screen-image-imageContainer{position:relative;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-screen-image-container .micromag-screen-image-placeholderImage{height:100%}.micromag-screen-image-container .micromag-screen-image-callToAction{margin-top:-10px}.micromag-screen-image-container.micromag-screen-image-isPlaceholder .micromag-screen-image-layout{padding:10px}.micromag-screen-image-container.micromag-screen-image-isCard .micromag-screen-image-placeholderImage{margin:-10px -10px 0}.micromag-screen-image-container.micromag-screen-image-isCardReverse .micromag-screen-image-placeholderImage{margin:10px -10px 0}.micromag-screen-image-container.micromag-screen-image-isCardReverse .micromag-screen-image-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-image-container.micromag-screen-image-isFullscreen .micromag-screen-image-layout{padding:0}.micromag-screen-image-container.micromag-screen-image-isFullscreen .micromag-screen-image-callToAction{position:absolute;bottom:10px;width:100%;margin-top:0}.micromag-screen-map-container .micromag-screen-map-markerOverlayContainer,.micromag-screen-map-container .micromag-screen-map-markerOverlayScrollable,.micromag-screen-map-container .micromag-screen-map-splash{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-map-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-map-disabled.micromag-screen-map-container{overflow:hidden;pointer-events:none}.micromag-screen-map-hidden.micromag-screen-map-container{display:none;visibility:hidden}.micromag-screen-map-placeholder.micromag-screen-map-container .micromag-screen-map-content{position:relative;padding:6px}.micromag-screen-map-container .micromag-screen-map-placeholder{height:100%}.micromag-screen-map-container .micromag-screen-map-markerOverlayContainer{-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;opacity:0;background-color:rgba(28,28,28,.4);pointer-events:none}.micromag-screen-map-container .micromag-screen-map-markerOverlaySafe{display:block;width:100%}.micromag-screen-map-container .micromag-screen-map-markerOverlay{width:100%;overflow:hidden}.micromag-screen-map-container .micromag-screen-map-markerOverlay,.micromag-screen-map-container .micromag-screen-map-markerOverlayContent{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.micromag-screen-map-container .micromag-screen-map-markerOverlayContent{position:relative;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:0 20px;-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;-o-transition:transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease;background-color:#fff}.micromag-screen-map-container .micromag-screen-map-markerOverlayContentInner{color:#1c1c1c}.micromag-screen-map-container .micromag-screen-map-swipeIndicator{width:30px;margin:10px auto;border:2px solid #adadad;border-radius:2px}.micromag-screen-map-container .micromag-screen-map-splash{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:20px;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;background-color:rgba(28,28,28,.75)}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-description,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-title{margin:10px 0}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-button{display:inline-block}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyButton,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyDescription,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyTitle{width:100%;margin:5px auto}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyTitle{height:50px}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyDescription{height:80px}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyButton{height:70px}.micromag-screen-map-container .micromag-screen-map-splashButton{margin-top:10px}.micromag-screen-map-container .micromag-screen-map-closeButton{display:block;position:absolute;top:20px;right:20px;width:44px;height:44px;padding:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;border-radius:50%;opacity:0;background-color:rgba(43,43,43,.8);font-size:30px;line-height:0;text-align:center;pointer-events:none}.micromag-screen-map-container .micromag-screen-map-markerDescription,.micromag-screen-map-container .micromag-screen-map-markerImage,.micromag-screen-map-container .micromag-screen-map-markerSubtitle,.micromag-screen-map-container .micromag-screen-map-markerTitle{margin-bottom:20px}.micromag-screen-map-container.micromag-screen-map-hasSelectedMarker .micromag-screen-map-markerOverlayContainer{opacity:1;pointer-events:auto}.micromag-screen-map-container.micromag-screen-map-hasSelectedMarker .micromag-screen-map-markerOverlayContent{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.micromag-screen-map-container.micromag-screen-map-opened .micromag-screen-map-splash{opacity:0;pointer-events:none}.micromag-screen-map-container.micromag-screen-map-opened .micromag-screen-map-closeButton{opacity:1;pointer-events:all}.micromag-screen-quiz-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-quiz-disabled.micromag-screen-quiz-container{overflow:hidden;pointer-events:none}.micromag-screen-quiz-hidden.micromag-screen-quiz-container{display:none;visibility:hidden}.micromag-screen-quiz-placeholder.micromag-screen-quiz-container .micromag-screen-quiz-content{position:relative;padding:6px}.micromag-screen-quiz-container .micromag-screen-quiz-emptyAnswer,.micromag-screen-quiz-container .micromag-screen-quiz-emptyResult,.micromag-screen-quiz-container .micromag-screen-quiz-emptyTitle{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-quiz-container .micromag-screen-quiz-button:focus-visible{outline:3px solid #a13dff}.micromag-screen-quiz-container .micromag-screen-quiz-question{margin-bottom:10px}.micromag-screen-quiz-container .micromag-screen-quiz-answers,.micromag-screen-quiz-container .micromag-screen-quiz-items{position:relative}.micromag-screen-quiz-container .micromag-screen-quiz-item{-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity;-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.micromag-screen-quiz-container .micromag-screen-quiz-item.micromag-screen-quiz-rightAnswer{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform}.micromag-screen-quiz-container .micromag-screen-quiz-item.micromag-screen-quiz-rightAnswer .micromag-screen-quiz-resultIcon{background-color:#0ed88f}.micromag-screen-quiz-container .micromag-screen-quiz-itemContent{padding:5px 0}.micromag-screen-quiz-container .micromag-screen-quiz-button{position:relative;width:100%;padding:10px 40px;border:2px solid #6c6c6c}.micromag-screen-quiz-container .micromag-screen-quiz-button:disabled{opacity:1;pointer-events:none}.micromag-screen-quiz-container .micromag-screen-quiz-resultIcon{display:-webkit-flex;display:-ms-flexbox;display:flex;position:absolute;top:50%;left:5px;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:32px;height:32px;margin-top:-16px;padding:5px;-webkit-transition:opacity .15s ease;-o-transition:opacity .15s ease;transition:opacity .15s ease;border:2px solid #1c1c1c;border-radius:50%;opacity:0;background-color:#ff2945}.micromag-screen-quiz-container .micromag-screen-quiz-result{position:absolute;-webkit-transition:opacity .5s ease;-o-transition:opacity .5s ease;transition:opacity .5s ease;opacity:0;pointer-events:none}.micromag-screen-quiz-container .micromag-screen-quiz-resultContent{padding:20px 0}.micromag-screen-quiz-container .micromag-screen-quiz-emptyAnswer,.micromag-screen-quiz-container .micromag-screen-quiz-emptyResult,.micromag-screen-quiz-container .micromag-screen-quiz-emptyTitle{width:100%;margin:0 auto}.micromag-screen-quiz-container .micromag-screen-quiz-emptyTitle{height:60px}.micromag-screen-quiz-container .micromag-screen-quiz-emptyAnswer{height:50px}.micromag-screen-quiz-container .micromag-screen-quiz-emptyResult{height:100px}.micromag-screen-quiz-container .micromag-screen-quiz-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-quiz-container.micromag-screen-quiz-answered .micromag-screen-quiz-resultIcon{opacity:1}.micromag-screen-quiz-container.micromag-screen-quiz-showResults .micromag-screen-quiz-item{opacity:0}.micromag-screen-quiz-container.micromag-screen-quiz-showResults .micromag-screen-quiz-item.micromag-screen-quiz-rightAnswer{opacity:1}.micromag-screen-quiz-container.micromag-screen-quiz-answerTransitionComplete .micromag-screen-quiz-item.micromag-screen-quiz-rightAnswer{-webkit-transition:none;-o-transition:none;transition:none}.micromag-screen-quiz-container.micromag-screen-quiz-answerTransitionComplete .micromag-screen-quiz-result{position:relative;opacity:1;pointer-events:all}.micromag-screen-quiz-container.micromag-screen-quiz-isPlaceholder .micromag-screen-quiz-layout{padding:10px}.micromag-screen-quiz-container.micromag-screen-quiz-isPlaceholder .micromag-screen-quiz-item{padding:1px 0}.micromag-screen-quote-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-quote-disabled.micromag-screen-quote-container{overflow:hidden;pointer-events:none}.micromag-screen-quote-hidden.micromag-screen-quote-container{display:none;visibility:hidden}.micromag-screen-quote-placeholder.micromag-screen-quote-container .micromag-screen-quote-content{position:relative;padding:6px}.micromag-screen-quote-container .micromag-screen-quote-emptyAuthor,.micromag-screen-quote-container .micromag-screen-quote-emptyQuote{border:2px dashed #343434;color:#343434;width:100%;margin:10px auto}.micromag-screen-quote-container .micromag-screen-quote-emptyQuote{height:200px}.micromag-screen-quote-container .micromag-screen-quote-emptyAuthor{height:50px}.micromag-screen-quote-container .micromag-screen-quote-quote{font-size:2em}.micromag-screen-quote-container .micromag-screen-quote-quote.micromag-screen-quote-withMargin{margin-bottom:1em}.micromag-screen-quote-container.micromag-screen-quote-isPlaceholder .micromag-screen-quote-layout{padding:10px}.micromag-screen-ranking-container .micromag-screen-ranking-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-ranking-container{position:relative}.micromag-screen-ranking-container .micromag-screen-ranking-empty{height:50px;margin-right:10px}.micromag-screen-ranking-container .micromag-screen-ranking-item{position:relative;padding:10px 0}.micromag-screen-ranking-container .micromag-screen-ranking-rankText{font-size:48px}.micromag-screen-ranking-container .micromag-screen-ranking-description,.micromag-screen-ranking-container .micromag-screen-ranking-title{padding:8px 0}.micromag-screen-ranking-container .micromag-screen-ranking-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-ranking-container.micromag-screen-ranking-sideLayout .micromag-screen-ranking-layout{display:table;width:100%}.micromag-screen-ranking-container.micromag-screen-ranking-sideLayout .micromag-screen-ranking-item{display:table-row;padding:0}.micromag-screen-ranking-container.micromag-screen-ranking-sideLayout .micromag-screen-ranking-content,.micromag-screen-ranking-container.micromag-screen-ranking-sideLayout .micromag-screen-ranking-rank{display:table-cell;padding:10px 0;vertical-align:top}.micromag-screen-ranking-container.micromag-screen-ranking-sideLayout .micromag-screen-ranking-rank{padding-right:20px}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder .micromag-screen-ranking-rank{color:rgba(28,28,28,.5);font-size:16px;text-align:left}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder .micromag-screen-ranking-scroll{padding:5px}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder .micromag-screen-ranking-description,.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder .micromag-screen-ranking-title{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder .micromag-screen-ranking-item{padding:1px 0}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder.micromag-screen-ranking-sideLayout .micromag-screen-ranking-rank{width:24px;padding-top:8px;padding-right:4px}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder.micromag-screen-ranking-sideLayout .micromag-screen-ranking-content{padding:5px 0}.micromag-screen-survey-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-survey-disabled.micromag-screen-survey-container{overflow:hidden;pointer-events:none}.micromag-screen-survey-hidden.micromag-screen-survey-container{display:none;visibility:hidden}.micromag-screen-survey-placeholder.micromag-screen-survey-container .micromag-screen-survey-content{position:relative;padding:6px}.micromag-screen-survey-container .micromag-screen-survey-emptyAnswer,.micromag-screen-survey-container .micromag-screen-survey-emptyQuestion{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-survey-container .micromag-screen-survey-question{margin-bottom:20px}.micromag-screen-survey-container .micromag-screen-survey-answers,.micromag-screen-survey-container .micromag-screen-survey-items{position:relative}.micromag-screen-survey-container .micromag-screen-survey-item{padding:5px 0}.micromag-screen-survey-container .micromag-screen-survey-item:first-child .micromag-screen-survey-placeholderAnswer{width:80%}.micromag-screen-survey-container .micromag-screen-survey-item:last-child .micromag-screen-survey-placeholderAnswer{width:90%}.micromag-screen-survey-container .micromag-screen-survey-itemContent{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.micromag-screen-survey-container .micromag-screen-survey-resultContainer{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;padding:15px 0;-webkit-transition-property:padding;-o-transition-property:padding;transition-property:padding;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.micromag-screen-survey-container .micromag-screen-survey-resultContent{width:0;height:1em;-webkit-transition-property:width opacity;-o-transition-property:width opacity;transition-property:width opacity;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;opacity:0}.micromag-screen-survey-container .micromag-screen-survey-result{position:relative;height:100%;background-color:#fff}.micromag-screen-survey-container .micromag-screen-survey-resultLabel{position:absolute;top:50%;left:100%;margin-left:5px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);color:#fff}.micromag-screen-survey-container .micromag-screen-survey-itemInner{width:100%;-webkit-transition-property:width;-o-transition-property:width;transition-property:width;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.micromag-screen-survey-container .micromag-screen-survey-button{position:relative;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;padding:0;border:2px solid #6c6c6c;-webkit-transition:opacity .5s ease-out;-o-transition:opacity .5s ease-out;transition:opacity .5s ease-out}.micromag-screen-survey-container .micromag-screen-survey-button:disabled{opacity:1;pointer-events:none}.micromag-screen-survey-container .micromag-screen-survey-itemLabel{display:inline-block;padding:10px;margin-left:50%;-webkit-transition:margin-left .3s ease-out,-webkit-transform .3s ease-out;transition:margin-left .3s ease-out,-webkit-transform .3s ease-out;-o-transition:margin-left .3s ease-out,transform .3s ease-out;transition:margin-left .3s ease-out,transform .3s ease-out;transition:margin-left .3s ease-out,transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translate(-50%);-ms-transform:translate(-50%);transform:translate(-50%)}.micromag-screen-survey-container .micromag-screen-survey-emptyAnswer,.micromag-screen-survey-container .micromag-screen-survey-emptyQuestion{width:100%;margin:0 auto}.micromag-screen-survey-container .micromag-screen-survey-emptyQuestion{height:75px}.micromag-screen-survey-container .micromag-screen-survey-emptyAnswer{height:50px}.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-resultContainer{padding-right:50px;padding-left:15px}.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-resultContent{width:100%;opacity:1}.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-button{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0)}.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-button,.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-result,.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-resultLabel{opacity:.6}.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-itemLabel{margin-left:0;text-align:left;-webkit-transform:translate(-10px);-ms-transform:translate(-10px);transform:translate(-10px)}.micromag-screen-survey-container .micromag-screen-survey-userAnswer .micromag-screen-survey-button,.micromag-screen-survey-container .micromag-screen-survey-userAnswer .micromag-screen-survey-result,.micromag-screen-survey-container .micromag-screen-survey-userAnswer .micromag-screen-survey-resultLabel{opacity:1}.micromag-screen-survey-container.micromag-screen-survey-isPlaceholder .micromag-screen-survey-layout{padding:10px}.micromag-screen-survey-container.micromag-screen-survey-isPlaceholder .micromag-screen-survey-item{padding:1px 0}.micromag-screen-text-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-text-disabled.micromag-screen-text-container{overflow:hidden;pointer-events:none}.micromag-screen-text-hidden.micromag-screen-text-container{display:none;visibility:hidden}.micromag-screen-text-placeholder.micromag-screen-text-container .micromag-screen-text-content{position:relative;padding:6px}.micromag-screen-text-container .micromag-screen-text-emptyText,.micromag-screen-text-container .micromag-screen-text-emptyTitle{border:2px dashed #343434;color:#343434;width:100%;margin:10px auto}.micromag-screen-text-container .micromag-screen-text-emptyTitle{height:100px}.micromag-screen-text-container .micromag-screen-text-emptyText{height:50px}.micromag-screen-text-container .micromag-screen-text-title.micromag-screen-text-withMargin{margin-bottom:20px}.micromag-screen-text-container.micromag-screen-text-isPlaceholder .micromag-screen-text-layout{padding:10px}.micromag-screen-timeline-container .micromag-screen-timeline-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-timeline-container{position:relative}.micromag-screen-timeline-container .micromag-screen-timeline-empty{height:50px;margin-right:10px}.micromag-screen-timeline-container .micromag-screen-timeline-item{position:relative}.micromag-screen-timeline-container .micromag-screen-timeline-element,.micromag-screen-timeline-container .micromag-screen-timeline-timeline{display:-webkit-flex;display:-ms-flexbox;display:flex}.micromag-screen-timeline-container .micromag-screen-timeline-timeline{-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:15px;padding-right:20px}.micromag-screen-timeline-container .micromag-screen-timeline-line{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;width:1px}.micromag-screen-timeline-container .micromag-screen-timeline-line.micromag-screen-timeline-hidden{width:auto}.micromag-screen-timeline-container .micromag-screen-timeline-bullet{width:15px;height:15px;margin:2px 0;border-width:1px;border-style:solid}.micromag-screen-timeline-container .micromag-screen-timeline-content{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-screen-timeline-container .micromag-screen-timeline-content.micromag-screen-timeline-lastContent{margin-bottom:20px}.micromag-screen-timeline-container .micromag-screen-timeline-description,.micromag-screen-timeline-container .micromag-screen-timeline-imageContainer,.micromag-screen-timeline-container .micromag-screen-timeline-title{padding:8px 0}.micromag-screen-timeline-container .micromag-screen-timeline-imageContainer{position:relative;overflow:hidden}.micromag-screen-timeline-container .micromag-screen-timeline-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-scroll{padding:10px}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-timeline{padding-right:0}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-bullet{width:10px;height:10px;border-color:rgba(28,28,28,.5);background-color:rgba(28,28,28,.5)}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-content.micromag-screen-timeline-lastContent{margin-bottom:4px}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-description,.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-imageContainer,.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-title{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;padding:2px 0}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-line{background-color:rgba(28,28,28,.5)}.micromag-screen-timeline-container.micromag-screen-timeline-circleBulletShape .micromag-screen-timeline-bullet{border-radius:50%}.micromag-screen-timeline-container.micromag-screen-timeline-withoutLines .micromag-screen-timeline-timeline{visibility:hidden}.micromag-screen-title-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-title-disabled.micromag-screen-title-container{overflow:hidden;pointer-events:none}.micromag-screen-title-hidden.micromag-screen-title-container{display:none;visibility:hidden}.micromag-screen-title-placeholder.micromag-screen-title-container .micromag-screen-title-content{position:relative;padding:6px}.micromag-screen-title-container .micromag-screen-title-emptyDescription,.micromag-screen-title-container .micromag-screen-title-emptySubtitle,.micromag-screen-title-container .micromag-screen-title-emptyTitle{border:2px dashed #343434;color:#343434;width:100%;margin:10px auto}.micromag-screen-title-container .micromag-screen-title-emptyTitle{height:100px}.micromag-screen-title-container .micromag-screen-title-emptyDescription,.micromag-screen-title-container .micromag-screen-title-emptySubtitle{height:50px}.micromag-screen-title-container .micromag-screen-title-subtitle.micromag-screen-title-withMargin,.micromag-screen-title-container .micromag-screen-title-title.micromag-screen-title-withMargin{margin-bottom:.2em}.micromag-screen-title-container.micromag-screen-title-isPlaceholder .micromag-screen-title-layout{padding:10px}.micromag-screen-video-container .micromag-screen-video-content,.micromag-screen-video-container .micromag-screen-video-empty,.micromag-screen-video-container .micromag-screen-video-emptyContainer,.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-image,.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-placeholder,.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-video{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-video-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-video-disabled.micromag-screen-video-container{overflow:hidden;pointer-events:none}.micromag-screen-video-hidden.micromag-screen-video-container{display:none;visibility:hidden}.micromag-screen-video-placeholder.micromag-screen-video-container .micromag-screen-video-content{position:relative;padding:6px}.micromag-screen-video-container .micromag-screen-video-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-video-container .micromag-screen-video-emptyContainer{top:50%;height:0;padding-bottom:56.25%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.micromag-screen-video-container .micromag-screen-video-empty{margin:0}.micromag-screen-video-container .micromag-screen-video-content{overflow:hidden}.micromag-screen-video-container .micromag-screen-video-mediaControls{padding:10px 20px 20px}.micromag-screen-video-container .micromag-screen-video-placeholder{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}.micromag-screen-video-container .micromag-screen-video-videoContainer{position:absolute}.micromag-screen-video-container .micromag-screen-video-bottomContent{position:absolute;bottom:0;width:100%}.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-emptyContainer{top:0;height:100%;padding-bottom:0;-webkit-transform:none;-ms-transform:none;transform:none}.micromag-screen-video-360-container .micromag-screen-video-360-canvasButton{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-screen-video-360-container .micromag-screen-video-360-canvas,.micromag-screen-video-360-container .micromag-screen-video-360-canvasButton,.micromag-screen-video-360-container .micromag-screen-video-360-content,.micromag-screen-video-360-container .micromag-screen-video-360-placeholder,.micromag-screen-video-360-container .micromag-screen-video-360-video{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-video-360-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-video-360-disabled.micromag-screen-video-360-container{overflow:hidden;pointer-events:none}.micromag-screen-video-360-hidden.micromag-screen-video-360-container{display:none;visibility:hidden}.micromag-screen-video-360-placeholder.micromag-screen-video-360-container .micromag-screen-video-360-content{position:relative;padding:6px}.micromag-screen-video-360-container .micromag-screen-video-360-empty{border:2px dashed #343434;color:#343434;height:100%;margin:0}.micromag-screen-video-360-container .micromag-screen-video-360-canvasButton{-ms-touch-action:none;touch-action:none}.micromag-screen-video-360-container .micromag-screen-video-360-videoContainer{position:absolute}.micromag-screen-video-360-container .micromag-screen-video-360-video{visibility:hidden}.micromag-screen-video-360-container .micromag-screen-video-360-video video{height:100%}.micromag-screen-video-360-container .micromag-screen-video-360-mediaControls{padding:10px 20px 20px}.micromag-screen-video-360-container .micromag-screen-video-360-placeholder{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}.micromag-screen-video-360-container .micromag-screen-video-360-bottomContent{position:absolute;bottom:0;width:100%}.micromag-screen-video-360-container.micromag-screen-video-360-showVideo .micromag-screen-video-360-video{visibility:visible}.micromag-element-audio-audio-wave-container .micromag-element-audio-audio-wave-button{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-element-audio-audio-wave-container .micromag-element-audio-audio-wave-button,.micromag-element-audio-audio-wave-container .micromag-element-audio-audio-wave-canvasBackground,.micromag-element-audio-audio-wave-container .micromag-element-audio-audio-wave-canvasProgress{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-element-audio-audio-wave-container{position:relative;height:100px;-ms-touch-action:pan-y;touch-action:pan-y}.micromag-element-audio-container .micromag-element-audio-wave{height:150px}.micromag-element-background-container,.micromag-element-background-layer,.micromag-element-background-layers,.micromag-element-background-video,.micromag-element-background-videoContainer{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-element-background-container{z-index:0;overflow:hidden}.micromag-element-background-layer,.micromag-element-background-layers{z-index:0}.micromag-element-background-right .micromag-element-background-background{right:0;left:auto}.micromag-element-background-bottom .micromag-element-background-background{top:auto;bottom:0}.micromag-element-button-container{display:inline-block;position:relative;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:5px 10px;border-radius:0;background-color:hsla(0,0%,100%,.1)}.micromag-element-button-container.micromag-element-button-active,.micromag-element-button-container.micromag-element-button-focus,.micromag-element-button-container:active,.micromag-element-button-container:focus{-webkit-box-shadow:none!important;box-shadow:none!important}.micromag-element-button-container.micromag-element-button-disabled,.micromag-element-button-container:disabled{cursor:auto}@-webkit-keyframes micromag-element-call-to-action-appear{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes micromag-element-call-to-action-appear{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.micromag-element-call-to-action-container{position:relative;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;opacity:1;text-align:center}.micromag-element-call-to-action-container .micromag-element-call-to-action-arrow{-webkit-animation:micromag-element-call-to-action-upAndDown .5s ease-in-out infinite alternate;animation:micromag-element-call-to-action-upAndDown .5s ease-in-out infinite alternate}.micromag-element-call-to-action-container .micromag-element-call-to-action-label{display:block}.micromag-element-call-to-action-container .micromag-element-call-to-action-button{display:block;margin:0 auto;padding:20px 0;-ms-touch-action:none;touch-action:none;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.micromag-element-call-to-action-container .micromag-element-call-to-action-button:hover{text-decoration:none}.micromag-element-call-to-action-container .micromag-element-call-to-action-selfTargetLink{display:none}.micromag-element-call-to-action-container .micromag-element-call-to-action-leavingFrame{position:fixed;top:0;left:0;width:100vw;height:100vh;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-animation:micromag-element-call-to-action-appear .5s ease both;animation:micromag-element-call-to-action-appear .5s ease both;opacity:0;background-color:#fff}.micromag-element-call-to-action-container.micromag-element-call-to-action-animationDisabled .micromag-element-call-to-action-arrow{-webkit-animation:none;animation:none}.micromag-element-call-to-action-container.micromag-element-call-to-action-invalidUrl{opacity:.5;pointer-events:none}.micromag-element-call-to-action-container.micromag-element-call-to-action-invalidUrl .micromag-element-call-to-action-arrow{-webkit-animation:none;animation:none}.micromag-element-call-to-action-container.micromag-element-call-to-action-disabled{opacity:0;pointer-events:none}@-webkit-keyframes micromag-element-call-to-action-upAndDown{0%{-webkit-transform:translateY(0);transform:translateY(0)}to{-webkit-transform:translateY(25%);transform:translateY(25%)}}@keyframes micromag-element-call-to-action-upAndDown{0%{-webkit-transform:translateY(0);transform:translateY(0)}to{-webkit-transform:translateY(25%);transform:translateY(25%)}}.micromag-element-checkbox-container{position:relative}.micromag-element-checkbox-container .micromag-element-checkbox-label{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:0}.micromag-element-checkbox-container .micromag-element-checkbox-input{margin-right:5px}.micromag-element-closed-captions-container{position:relative;text-align:center}.micromag-element-closed-captions-container .micromag-element-closed-captions-captions{display:inline-block;padding:10px;background-color:#1c1c1c;color:#fff;word-break:break-word}.micromag-element-container-container{position:relative;overflow:hidden}.micromag-element-grid-container{position:relative}.micromag-element-grid-container .micromag-element-grid-items{-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;height:100%}.micromag-element-grid-container .micromag-element-grid-cross,.micromag-element-grid-container .micromag-element-grid-items{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative}.micromag-element-grid-container .micromag-element-grid-axis{position:relative}.micromag-element-heading-container em,.micromag-element-heading-container i{font-style:italic}.micromag-element-heading-container b,.micromag-element-heading-container strong{font-weight:700}.micromag-element-heading-container p{margin-top:.5em;margin-bottom:.5em}.micromag-element-heading-container mark{padding:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}.micromag-element-heading-container{line-height:1}.micromag-element-heading-container,.micromag-element-heading-container p{margin:0;padding:0}.micromag-element-image-container .micromag-element-image-showEmpty{margin:5px auto}.micromag-element-image-container{position:relative;overflow:hidden}.micromag-element-image-container .micromag-element-image-img{display:block;position:relative}.micromag-element-image-container .micromag-element-image-showEmpty{width:300px;height:200px;border:2px dashed #343434;color:#343434}.micromag-element-layout-container.micromag-element-layout-fullscreen{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-element-layout-container{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.micromag-element-layout-container,.micromag-element-layout-container .micromag-element-layout-horizontal{display:-webkit-flex;display:-ms-flexbox;display:flex}.micromag-element-layout-container .micromag-element-layout-horizontal{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.micromag-element-link-container{margin:0;padding:0}.micromag-element-map-container,.micromag-element-map-container .micromag-element-map-map{width:100%;height:100%}.micromag-element-map-container.micromag-element-map-preventScroll .micromag-element-map-map div{cursor:default}.micromag-element-map-container{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0}.micromag-element-media-controls-seek-bar-container .micromag-element-media-controls-seek-bar-button{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-element-media-controls-seek-bar-container .micromag-element-media-controls-seek-bar-button,.micromag-element-media-controls-seek-bar-container .micromag-element-media-controls-seek-bar-progress{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-element-media-controls-seek-bar-container{position:relative;height:10px}.micromag-element-media-controls-seek-bar-container .micromag-element-media-controls-seek-bar-progress{position:relative;-webkit-transform-origin:left center;-ms-transform-origin:left center;transform-origin:left center}.micromag-element-media-controls-container .micromag-element-media-controls-muteButton,.micromag-element-media-controls-container .micromag-element-media-controls-playPauseButton{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-element-media-controls-container .micromag-element-media-controls-toggles{position:relative;color:#fff}.micromag-element-media-controls-container .micromag-element-media-controls-seekBar{margin-bottom:10px}.micromag-element-media-controls-container .micromag-element-media-controls-muteButton,.micromag-element-media-controls-container .micromag-element-media-controls-playPauseButton{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:60px;height:60px}.micromag-element-media-controls-container .micromag-element-media-controls-playPauseButton{visibility:hidden;margin:0 auto;border:2px solid #fff;border-radius:50%}.micromag-element-media-controls-container .micromag-element-media-controls-playPauseButton .micromag-element-media-controls-icon{display:block;width:40%;height:40%;-webkit-transform:translateX(5%);-ms-transform:translateX(5%);transform:translateX(5%)}.micromag-element-media-controls-container .micromag-element-media-controls-muteButton{visibility:hidden;position:absolute;top:50%;right:0;width:40px;height:40px;margin-top:-20px}.micromag-element-media-controls-container .micromag-element-media-controls-muteButton .micromag-element-media-controls-icon{display:block;width:90%;height:90%}.micromag-element-media-controls-container .micromag-element-media-controls-muteButton:after{content:"";display:none;position:absolute;top:0;left:50%;width:2px;height:100%;margin-left:-1px;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);background-color:#fff}.micromag-element-media-controls-container.micromag-element-media-controls-playing .micromag-element-media-controls-playPauseButton .micromag-element-media-controls-icon{-webkit-transform:none;-ms-transform:none;transform:none}.micromag-element-media-controls-container.micromag-element-media-controls-muted .micromag-element-media-controls-muteButton{visibility:visible}.micromag-element-media-controls-container.micromag-element-media-controls-muted .micromag-element-media-controls-muteButton:after{display:block}.micromag-element-media-controls-container.micromag-element-media-controls-withPlayPause .micromag-element-media-controls-playPauseButton{visibility:visible}.micromag-element-quote-container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.micromag-element-quote-container em,.micromag-element-quote-container i{font-style:italic}.micromag-element-quote-container b,.micromag-element-quote-container strong{font-weight:700}.micromag-element-quote-container p{margin-top:.5em;margin-bottom:.5em}.micromag-element-quote-container mark{padding:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}.micromag-element-quote-container{line-height:1.3}.micromag-element-quote-container h2{font-size:2em}.micromag-element-quote-container h3{font-size:1.75em}.micromag-element-quote-container h4{font-size:1.5em}.micromag-element-quote-container blockquote{padding:0 0 0 1em}.micromag-element-quote-container{margin:0;padding:0}.micromag-element-quote-container.micromag-element-quote-showEmpty{display:inline-block;width:300px;height:80px;border:2px dashed #343434;color:#343434}.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable{scrollbar-width:none}.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable::-webkit-scrollbar{display:none}.micromag-element-scroll-container{position:relative;height:100%;min-height:inherit;margin:0 auto}.micromag-element-scroll-container .micromag-element-scroll-scrollable{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;min-height:inherit}.micromag-element-scroll-container .micromag-element-scroll-arrowContainer{position:absolute;bottom:0;left:0;width:100%;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;opacity:0;text-align:center;pointer-events:none}.micromag-element-scroll-container .micromag-element-scroll-arrow{display:inline-block;width:20px;height:20px;-webkit-animation:micromag-element-scroll-upAndDown .75s ease-in-out infinite alternate;animation:micromag-element-scroll-upAndDown .75s ease-in-out infinite alternate;color:#fff}.micromag-element-scroll-container .micromag-element-scroll-arrow path{stroke-width:20;stroke:#1c1c1c}.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable{overflow-x:hidden;overflow-y:auto}.micromag-element-scroll-container.micromag-element-scroll-withScroll.micromag-element-scroll-containOverscroll .micromag-element-scroll-scrollable,.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable{-ms-scroll-chaining:none;overscroll-behavior:contain}.micromag-element-scroll-container.micromag-element-scroll-top .micromag-element-scroll-scrollee{margin-bottom:auto}.micromag-element-scroll-container.micromag-element-scroll-middle .micromag-element-scroll-scrollee{margin:auto 0}.micromag-element-scroll-container.micromag-element-scroll-bottom .micromag-element-scroll-scrollee{margin-top:auto}.micromag-element-scroll-container.micromag-element-scroll-withArrow .micromag-element-scroll-arrowContainer{opacity:1}@-webkit-keyframes micromag-element-scroll-upAndDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes micromag-element-scroll-upAndDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.micromag-element-stack-spacer-container{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-element-stack-spacer-container.micromag-element-stack-spacer-hasSize{-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0}.micromag-element-stack-container{display:-webkit-flex;display:-ms-flexbox;display:flex}.micromag-element-text-container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.micromag-element-text-container em,.micromag-element-text-container i{font-style:italic}.micromag-element-text-container b,.micromag-element-text-container strong{font-weight:700}.micromag-element-text-container p{margin-top:.5em;margin-bottom:.5em}.micromag-element-text-container mark{padding:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}.micromag-element-text-container{line-height:1.3}.micromag-element-text-container h2{font-size:2em}.micromag-element-text-container h3{font-size:1.75em}.micromag-element-text-container h4{font-size:1.5em}.micromag-element-text-container blockquote{padding:0 0 0 1em}.micromag-element-text-container{margin:0;padding:0}.micromag-element-text-container.micromag-element-text-showEmpty{display:inline-block;width:300px;height:80px;border:2px dashed #343434;color:#343434}.micromag-element-text-container.micromag-element-text-withLineClamp{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.micromag-element-text-input-container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.micromag-element-text-input-container em,.micromag-element-text-input-container i{font-style:italic}.micromag-element-text-input-container b,.micromag-element-text-input-container strong{font-weight:700}.micromag-element-text-input-container p{margin-top:.5em;margin-bottom:.5em}.micromag-element-text-input-container mark{padding:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}.micromag-element-text-input-container{line-height:1.3}.micromag-element-text-input-container h2{font-size:2em}.micromag-element-text-input-container h3{font-size:1.75em}.micromag-element-text-input-container h4{font-size:1.5em}.micromag-element-text-input-container blockquote{padding:0 0 0 1em}.micromag-element-text-input-container{margin:0;padding:0}.micromag-element-text-input-element{border:0;outline:0;background-color:hsla(0,0%,100%,.1)}.micromag-element-video-container.micromag-element-video-withSize .micromag-element-video-video{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-element-video-container{position:relative}.micromag-element-video-container .micromag-element-video-video{display:block;width:100%}.micromag-element-visual-container{position:relative;overflow:hidden}.micromag-element-visual-container .micromag-element-visual-videoContainer{position:absolute;overflow:hidden}.sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;-webkit-clip-path:inset(50%);clip-path:inset(50%)}
|
package/es/index.js
CHANGED
|
@@ -12,17 +12,17 @@ import { ScreenSizeProvider, ViewerProvider, useRoutes, useRoutePush, GoogleKeys
|
|
|
12
12
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
13
13
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
14
14
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
15
|
-
import {
|
|
15
|
+
import { Button, ScreenPreview, Screen, Meta, FontFaces } from '@micromag/core/components';
|
|
16
|
+
import { useDocumentEvent, useParsedStory, useLoadedFonts, useTrackScreenView, useTrackEvent, useScreenSizeFromElement, useResizeObserver, useFullscreen } from '@micromag/core/hooks';
|
|
17
|
+
import { getStyleFromColor, getStyleFromText, getDeviceScreens } from '@micromag/core/utils';
|
|
18
|
+
import { useSpring, config } from '@react-spring/core';
|
|
19
|
+
import { animated } from '@react-spring/web';
|
|
16
20
|
import classNames from 'classnames';
|
|
21
|
+
import { Helmet } from 'react-helmet';
|
|
17
22
|
import { useIntl, FormattedMessage } from 'react-intl';
|
|
18
23
|
import { useDrag } from 'react-use-gesture';
|
|
19
|
-
import { useSpring, config } from '@react-spring/core';
|
|
20
|
-
import { animated } from '@react-spring/web';
|
|
21
|
-
import { useDocumentEvent, useParsedStory, useLoadedFonts, useTrackScreenView, useTrackEvent, useScreenSizeFromElement, useResizeObserver, useFullscreen } from '@micromag/core/hooks';
|
|
22
|
-
import { getStyleFromColor, getStyleFromText, getDeviceScreens } from '@micromag/core/utils';
|
|
23
|
-
import { Screen, Button, ScreenPreview, Meta, FontFaces } from '@micromag/core/components';
|
|
24
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
25
24
|
import { faTimes, faShare, faCompress, faExpand } from '@fortawesome/free-solid-svg-icons';
|
|
25
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
26
26
|
import Scroll from '@micromag/element-scroll';
|
|
27
27
|
import { FacebookShareButton, FacebookIcon, TwitterShareButton, TwitterIcon, EmailShareButton, EmailIcon } from 'react-share';
|
|
28
28
|
|
|
@@ -31,71 +31,19 @@ var routes = PropTypes.shape({
|
|
|
31
31
|
screen: PropTypes.string.isRequired
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
var styles$6 = {"container":"micromag-viewer-
|
|
34
|
+
var styles$6 = {"container":"micromag-viewer-container","menuPreview":"micromag-viewer-menuPreview","menuPreviewContainer":"micromag-viewer-menuPreviewContainer","screen":"micromag-viewer-screen","screenInner":"micromag-viewer-screenInner","content":"micromag-viewer-content","menuDotsContainer":"micromag-viewer-menuDotsContainer","menuDots":"micromag-viewer-menuDots","current":"micromag-viewer-current","landscape":"micromag-viewer-landscape","hideMenu":"micromag-viewer-hideMenu","ready":"micromag-viewer-ready"};
|
|
35
35
|
|
|
36
|
-
var
|
|
37
|
-
screen: PropTypes$1.screenComponent,
|
|
38
|
-
renderContext: PropTypes$1.renderContext,
|
|
39
|
-
current: PropTypes.bool,
|
|
40
|
-
active: PropTypes.bool,
|
|
41
|
-
onPrevious: PropTypes.func,
|
|
42
|
-
onNext: PropTypes.func,
|
|
43
|
-
onEnableInteraction: PropTypes.func,
|
|
44
|
-
onDisableInteraction: PropTypes.func,
|
|
45
|
-
getMediaRef: PropTypes.func
|
|
46
|
-
};
|
|
47
|
-
var defaultProps$8 = {
|
|
48
|
-
screen: null,
|
|
49
|
-
renderContext: null,
|
|
50
|
-
current: false,
|
|
51
|
-
active: true,
|
|
52
|
-
onPrevious: null,
|
|
53
|
-
onNext: null,
|
|
54
|
-
onEnableInteraction: null,
|
|
55
|
-
onDisableInteraction: null,
|
|
56
|
-
getMediaRef: null
|
|
57
|
-
};
|
|
36
|
+
var styles$5 = {"container":"micromag-viewer-menus-menu-dots-container","closeButton":"micromag-viewer-menus-menu-dots-closeButton","item":"micromag-viewer-menus-menu-dots-item","button":"micromag-viewer-menus-menu-dots-button","menuButton":"micromag-viewer-menus-menu-dots-menuButton","items":"micromag-viewer-menus-menu-dots-items","dot":"micromag-viewer-menus-menu-dots-dot","menu":"micromag-viewer-menus-menu-dots-menu","menuIcon":"micromag-viewer-menus-menu-dots-menuIcon","vertical":"micromag-viewer-menus-menu-dots-vertical","withShadow":"micromag-viewer-menus-menu-dots-withShadow"};
|
|
58
37
|
|
|
59
|
-
var
|
|
60
|
-
var _ref2;
|
|
38
|
+
var styles$4 = {};
|
|
61
39
|
|
|
62
|
-
|
|
63
|
-
renderContext = _ref.renderContext,
|
|
64
|
-
active = _ref.active,
|
|
65
|
-
current = _ref.current,
|
|
66
|
-
onPrevious = _ref.onPrevious,
|
|
67
|
-
onNext = _ref.onNext,
|
|
68
|
-
onEnableInteraction = _ref.onEnableInteraction,
|
|
69
|
-
onDisableInteraction = _ref.onDisableInteraction,
|
|
70
|
-
getMediaRef = _ref.getMediaRef;
|
|
71
|
-
return screen !== null ? /*#__PURE__*/React.createElement("div", {
|
|
72
|
-
className: classNames([styles$6.container, (_ref2 = {}, _defineProperty(_ref2, styles$6.active, active), _defineProperty(_ref2, styles$6.current, current), _ref2)]),
|
|
73
|
-
"aria-hidden": current ? null : 'true'
|
|
74
|
-
}, /*#__PURE__*/React.createElement(Screen, {
|
|
75
|
-
screen: screen,
|
|
76
|
-
renderContext: renderContext,
|
|
77
|
-
active: active,
|
|
78
|
-
current: current,
|
|
79
|
-
onPrevious: onPrevious,
|
|
80
|
-
onNext: onNext,
|
|
81
|
-
onEnableInteraction: onEnableInteraction,
|
|
82
|
-
onDisableInteraction: onDisableInteraction,
|
|
83
|
-
getMediaRef: getMediaRef
|
|
84
|
-
})) : null;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
ViewerScreen.propTypes = propTypes$8;
|
|
88
|
-
ViewerScreen.defaultProps = defaultProps$8;
|
|
89
|
-
|
|
90
|
-
var styles$5 = {};
|
|
91
|
-
|
|
92
|
-
var propTypes$7 = {
|
|
40
|
+
var propTypes$8 = {
|
|
93
41
|
size: PropTypes.number,
|
|
94
42
|
spacing: PropTypes.number,
|
|
95
43
|
color: PropTypes.string,
|
|
96
44
|
className: PropTypes.string
|
|
97
45
|
};
|
|
98
|
-
var defaultProps$
|
|
46
|
+
var defaultProps$8 = {
|
|
99
47
|
size: 100,
|
|
100
48
|
spacing: 8,
|
|
101
49
|
color: 'white',
|
|
@@ -109,7 +57,7 @@ var MenuIcon = function MenuIcon(_ref) {
|
|
|
109
57
|
className = _ref.className;
|
|
110
58
|
var squareSize = (size - 2 * spacing) / 3;
|
|
111
59
|
return /*#__PURE__*/React.createElement("svg", {
|
|
112
|
-
className: classNames([styles$
|
|
60
|
+
className: classNames([styles$4.container, _defineProperty({}, className, className !== null)]),
|
|
113
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
114
62
|
viewBox: "0 0 ".concat(size, " ").concat(size),
|
|
115
63
|
"aria-hidden": "true"
|
|
@@ -127,52 +75,57 @@ var MenuIcon = function MenuIcon(_ref) {
|
|
|
127
75
|
}));
|
|
128
76
|
};
|
|
129
77
|
|
|
130
|
-
MenuIcon.propTypes = propTypes$
|
|
131
|
-
MenuIcon.defaultProps = defaultProps$
|
|
132
|
-
|
|
133
|
-
var styles$4 = {"container":"micromag-viewer-menus-menu-dots-container","closeButton":"micromag-viewer-menus-menu-dots-closeButton","item":"micromag-viewer-menus-menu-dots-item","button":"micromag-viewer-menus-menu-dots-button","menuButton":"micromag-viewer-menus-menu-dots-menuButton","items":"micromag-viewer-menus-menu-dots-items","dot":"micromag-viewer-menus-menu-dots-dot","menu":"micromag-viewer-menus-menu-dots-menu","menuIcon":"micromag-viewer-menus-menu-dots-menuIcon","vertical":"micromag-viewer-menus-menu-dots-vertical","withShadow":"micromag-viewer-menus-menu-dots-withShadow"};
|
|
78
|
+
MenuIcon.propTypes = propTypes$8;
|
|
79
|
+
MenuIcon.defaultProps = defaultProps$8;
|
|
134
80
|
|
|
135
|
-
var propTypes$
|
|
81
|
+
var propTypes$7 = {
|
|
136
82
|
direction: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
137
83
|
withShadow: PropTypes.bool,
|
|
138
84
|
items: PropTypes$1.menuItems,
|
|
139
85
|
current: PropTypes.number,
|
|
140
86
|
onClickItem: PropTypes.func,
|
|
141
|
-
|
|
142
|
-
|
|
87
|
+
colors: PropTypes.shape({
|
|
88
|
+
primary: PropTypes.string,
|
|
89
|
+
secondary: PropTypes.string
|
|
90
|
+
}),
|
|
143
91
|
closeable: PropTypes.bool,
|
|
144
92
|
onClose: PropTypes.func,
|
|
145
93
|
className: PropTypes.string
|
|
146
94
|
};
|
|
147
|
-
var defaultProps$
|
|
95
|
+
var defaultProps$7 = {
|
|
148
96
|
direction: 'horizontal',
|
|
149
97
|
withShadow: false,
|
|
150
98
|
items: [],
|
|
151
99
|
current: 0,
|
|
152
100
|
onClickItem: null,
|
|
153
|
-
|
|
154
|
-
colorBackground: 'rgba(200, 200, 200, 0.5)',
|
|
101
|
+
colors: null,
|
|
155
102
|
closeable: false,
|
|
156
103
|
onClose: null,
|
|
157
104
|
className: null
|
|
158
105
|
};
|
|
159
106
|
|
|
160
107
|
var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
161
|
-
var
|
|
108
|
+
var _ref3;
|
|
162
109
|
|
|
163
110
|
var direction = _ref.direction,
|
|
164
111
|
withShadow = _ref.withShadow,
|
|
165
112
|
items = _ref.items,
|
|
166
113
|
current = _ref.current,
|
|
167
114
|
onClickItem = _ref.onClickItem,
|
|
168
|
-
|
|
169
|
-
colorBackground = _ref.colorBackground,
|
|
115
|
+
colors = _ref.colors,
|
|
170
116
|
closeable = _ref.closeable,
|
|
171
117
|
onClose = _ref.onClose,
|
|
172
118
|
className = _ref.className;
|
|
119
|
+
|
|
120
|
+
var _ref2 = colors || {},
|
|
121
|
+
_ref2$primary = _ref2.primary,
|
|
122
|
+
primary = _ref2$primary === void 0 ? 'rgba(255, 255, 255, 1)' : _ref2$primary,
|
|
123
|
+
_ref2$secondary = _ref2.secondary,
|
|
124
|
+
secondary = _ref2$secondary === void 0 ? 'rgba(200, 200, 200, 0.5)' : _ref2$secondary;
|
|
125
|
+
|
|
173
126
|
var intl = useIntl();
|
|
174
127
|
return /*#__PURE__*/React.createElement("nav", {
|
|
175
|
-
className: classNames([styles$
|
|
128
|
+
className: classNames([styles$5.container, (_ref3 = {}, _defineProperty(_ref3, className, className !== null), _defineProperty(_ref3, styles$5.vertical, direction === 'vertical'), _defineProperty(_ref3, styles$5.withShadow, withShadow), _ref3)]),
|
|
176
129
|
"aria-label": intl.formatMessage({
|
|
177
130
|
"id": "bLYuuN",
|
|
178
131
|
"defaultMessage": [{
|
|
@@ -196,15 +149,15 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
196
149
|
total: items.length
|
|
197
150
|
})
|
|
198
151
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
199
|
-
className: styles$
|
|
152
|
+
className: styles$5.items
|
|
200
153
|
}, items.map(function (item, index) {
|
|
201
154
|
return /*#__PURE__*/React.createElement("li", {
|
|
202
|
-
className: classNames([styles$
|
|
155
|
+
className: classNames([styles$5.item, _defineProperty({}, styles$5.active, current === index)]),
|
|
203
156
|
key: "item-".concat(index),
|
|
204
157
|
"aria-hidden": "true"
|
|
205
158
|
}, /*#__PURE__*/React.createElement("button", {
|
|
206
159
|
type: "button",
|
|
207
|
-
className: styles$
|
|
160
|
+
className: styles$5.button,
|
|
208
161
|
onClick: function onClick() {
|
|
209
162
|
if (onClickItem !== null) {
|
|
210
163
|
onClickItem(index);
|
|
@@ -212,16 +165,16 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
212
165
|
},
|
|
213
166
|
tabIndex: "-1"
|
|
214
167
|
}, /*#__PURE__*/React.createElement("span", {
|
|
215
|
-
className: styles$
|
|
168
|
+
className: styles$5.dot,
|
|
216
169
|
style: {
|
|
217
|
-
backgroundColor: index <= current ?
|
|
170
|
+
backgroundColor: index <= current ? primary : secondary
|
|
218
171
|
}
|
|
219
172
|
})));
|
|
220
173
|
}), /*#__PURE__*/React.createElement("li", {
|
|
221
|
-
className: styles$
|
|
174
|
+
className: styles$5.menu
|
|
222
175
|
}, /*#__PURE__*/React.createElement(MenuIcon, {
|
|
223
|
-
className: styles$
|
|
224
|
-
color:
|
|
176
|
+
className: styles$5.menuIcon,
|
|
177
|
+
color: primary
|
|
225
178
|
}), /*#__PURE__*/React.createElement("button", {
|
|
226
179
|
type: "button",
|
|
227
180
|
title: intl.formatMessage({
|
|
@@ -238,20 +191,20 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
238
191
|
"value": "Menu"
|
|
239
192
|
}]
|
|
240
193
|
}),
|
|
241
|
-
className: styles$
|
|
194
|
+
className: styles$5.menuButton,
|
|
242
195
|
onClick: function onClick() {
|
|
243
196
|
if (onClickItem !== null) {
|
|
244
197
|
onClickItem(null);
|
|
245
198
|
}
|
|
246
199
|
}
|
|
247
200
|
})), closeable ? /*#__PURE__*/React.createElement("li", {
|
|
248
|
-
className: styles$
|
|
201
|
+
className: styles$5.closeButton,
|
|
249
202
|
style: {
|
|
250
|
-
color:
|
|
203
|
+
color: primary
|
|
251
204
|
}
|
|
252
205
|
}, /*#__PURE__*/React.createElement("button", {
|
|
253
206
|
type: "button",
|
|
254
|
-
className: styles$
|
|
207
|
+
className: styles$5.closeButton,
|
|
255
208
|
onClick: onClose,
|
|
256
209
|
title: intl.formatMessage({
|
|
257
210
|
"id": "dj/p/q",
|
|
@@ -272,12 +225,12 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
272
225
|
}))) : null));
|
|
273
226
|
};
|
|
274
227
|
|
|
275
|
-
ViewerMenuDots.propTypes = propTypes$
|
|
276
|
-
ViewerMenuDots.defaultProps = defaultProps$
|
|
228
|
+
ViewerMenuDots.propTypes = propTypes$7;
|
|
229
|
+
ViewerMenuDots.defaultProps = defaultProps$7;
|
|
277
230
|
|
|
278
231
|
var styles$3 = {"container":"micromag-viewer-partials-share-modal-container","content":"micromag-viewer-partials-share-modal-content","opened":"micromag-viewer-partials-share-modal-opened"};
|
|
279
232
|
|
|
280
|
-
var propTypes$
|
|
233
|
+
var propTypes$6 = {
|
|
281
234
|
url: PropTypes.string,
|
|
282
235
|
title: PropTypes.string,
|
|
283
236
|
opened: PropTypes.bool,
|
|
@@ -285,7 +238,7 @@ var propTypes$5 = {
|
|
|
285
238
|
onShare: PropTypes.func,
|
|
286
239
|
onCancel: PropTypes.func
|
|
287
240
|
};
|
|
288
|
-
var defaultProps$
|
|
241
|
+
var defaultProps$6 = {
|
|
289
242
|
url: null,
|
|
290
243
|
title: null,
|
|
291
244
|
opened: false,
|
|
@@ -369,12 +322,12 @@ var ShareModal = function ShareModal(_ref) {
|
|
|
369
322
|
}), /*#__PURE__*/React.createElement(EmailIcon, shareIconProps)))));
|
|
370
323
|
};
|
|
371
324
|
|
|
372
|
-
ShareModal.propTypes = propTypes$
|
|
373
|
-
ShareModal.defaultProps = defaultProps$
|
|
325
|
+
ShareModal.propTypes = propTypes$6;
|
|
326
|
+
ShareModal.defaultProps = defaultProps$6;
|
|
374
327
|
|
|
375
328
|
var styles$2 = {"container":"micromag-viewer-partials-share-button-container","shareModal":"micromag-viewer-partials-share-button-shareModal"};
|
|
376
329
|
|
|
377
|
-
var propTypes$
|
|
330
|
+
var propTypes$5 = {
|
|
378
331
|
title: PropTypes.string,
|
|
379
332
|
url: PropTypes.string,
|
|
380
333
|
className: PropTypes.string,
|
|
@@ -383,7 +336,7 @@ var propTypes$4 = {
|
|
|
383
336
|
children: PropTypes.node,
|
|
384
337
|
focusable: PropTypes.bool
|
|
385
338
|
};
|
|
386
|
-
var defaultProps$
|
|
339
|
+
var defaultProps$5 = {
|
|
387
340
|
title: null,
|
|
388
341
|
url: null,
|
|
389
342
|
className: null,
|
|
@@ -453,12 +406,12 @@ var ShareButton = function ShareButton(_ref) {
|
|
|
453
406
|
}));
|
|
454
407
|
};
|
|
455
408
|
|
|
456
|
-
ShareButton.propTypes = propTypes$
|
|
457
|
-
ShareButton.defaultProps = defaultProps$
|
|
409
|
+
ShareButton.propTypes = propTypes$5;
|
|
410
|
+
ShareButton.defaultProps = defaultProps$5;
|
|
458
411
|
|
|
459
412
|
var styles$1 = {"container":"micromag-viewer-menus-menu-preview-container","screenButton":"micromag-viewer-menus-menu-preview-screenButton","activeScreenBorder":"micromag-viewer-menus-menu-preview-activeScreenBorder","itemContent":"micromag-viewer-menus-menu-preview-itemContent","scroll":"micromag-viewer-menus-menu-preview-scroll","header":"micromag-viewer-menus-menu-preview-header","button":"micromag-viewer-menus-menu-preview-button","shareButton":"micromag-viewer-menus-menu-preview-shareButton","disabled":"micromag-viewer-menus-menu-preview-disabled","icon":"micromag-viewer-menus-menu-preview-icon","buttons":"micromag-viewer-menus-menu-preview-buttons","organisation":"micromag-viewer-menus-menu-preview-organisation","title":"micromag-viewer-menus-menu-preview-title","content":"micromag-viewer-menus-menu-preview-content","nav":"micromag-viewer-menus-menu-preview-nav","item":"micromag-viewer-menus-menu-preview-item","items":"micromag-viewer-menus-menu-preview-items","active":"micromag-viewer-menus-menu-preview-active","screenContainer":"micromag-viewer-menus-menu-preview-screenContainer","screenContent":"micromag-viewer-menus-menu-preview-screenContent"};
|
|
460
413
|
|
|
461
|
-
var propTypes$
|
|
414
|
+
var propTypes$4 = {
|
|
462
415
|
viewerTheme: PropTypes$1.viewerTheme,
|
|
463
416
|
screenWidth: PropTypes.number,
|
|
464
417
|
title: PropTypes.string,
|
|
@@ -475,7 +428,7 @@ var propTypes$3 = {
|
|
|
475
428
|
fullscreenEnabled: PropTypes.bool,
|
|
476
429
|
className: PropTypes.string
|
|
477
430
|
};
|
|
478
|
-
var defaultProps$
|
|
431
|
+
var defaultProps$4 = {
|
|
479
432
|
viewerTheme: null,
|
|
480
433
|
screenWidth: null,
|
|
481
434
|
title: null,
|
|
@@ -749,10 +702,64 @@ var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
|
749
702
|
})))))) : null;
|
|
750
703
|
};
|
|
751
704
|
|
|
752
|
-
ViewerMenuPreview.propTypes = propTypes$
|
|
753
|
-
ViewerMenuPreview.defaultProps = defaultProps$
|
|
705
|
+
ViewerMenuPreview.propTypes = propTypes$4;
|
|
706
|
+
ViewerMenuPreview.defaultProps = defaultProps$4;
|
|
754
707
|
|
|
755
|
-
var styles = {"container":"micromag-viewer-container","
|
|
708
|
+
var styles = {"container":"micromag-viewer-screen-container","current":"micromag-viewer-screen-current"};
|
|
709
|
+
|
|
710
|
+
var propTypes$3 = {
|
|
711
|
+
screen: PropTypes$1.screenComponent,
|
|
712
|
+
renderContext: PropTypes$1.renderContext,
|
|
713
|
+
current: PropTypes.bool,
|
|
714
|
+
active: PropTypes.bool,
|
|
715
|
+
onPrevious: PropTypes.func,
|
|
716
|
+
onNext: PropTypes.func,
|
|
717
|
+
onEnableInteraction: PropTypes.func,
|
|
718
|
+
onDisableInteraction: PropTypes.func,
|
|
719
|
+
getMediaRef: PropTypes.func
|
|
720
|
+
};
|
|
721
|
+
var defaultProps$3 = {
|
|
722
|
+
screen: null,
|
|
723
|
+
renderContext: null,
|
|
724
|
+
current: false,
|
|
725
|
+
active: true,
|
|
726
|
+
onPrevious: null,
|
|
727
|
+
onNext: null,
|
|
728
|
+
onEnableInteraction: null,
|
|
729
|
+
onDisableInteraction: null,
|
|
730
|
+
getMediaRef: null
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
var ViewerScreen = function ViewerScreen(_ref) {
|
|
734
|
+
var _ref2;
|
|
735
|
+
|
|
736
|
+
var screen = _ref.screen,
|
|
737
|
+
renderContext = _ref.renderContext,
|
|
738
|
+
active = _ref.active,
|
|
739
|
+
current = _ref.current,
|
|
740
|
+
onPrevious = _ref.onPrevious,
|
|
741
|
+
onNext = _ref.onNext,
|
|
742
|
+
onEnableInteraction = _ref.onEnableInteraction,
|
|
743
|
+
onDisableInteraction = _ref.onDisableInteraction,
|
|
744
|
+
getMediaRef = _ref.getMediaRef;
|
|
745
|
+
return screen !== null ? /*#__PURE__*/React.createElement("div", {
|
|
746
|
+
className: classNames([styles.container, (_ref2 = {}, _defineProperty(_ref2, styles.active, active), _defineProperty(_ref2, styles.current, current), _ref2)]),
|
|
747
|
+
"aria-hidden": current ? null : 'true'
|
|
748
|
+
}, /*#__PURE__*/React.createElement(Screen, {
|
|
749
|
+
screen: screen,
|
|
750
|
+
renderContext: renderContext,
|
|
751
|
+
active: active,
|
|
752
|
+
current: current,
|
|
753
|
+
onPrevious: onPrevious,
|
|
754
|
+
onNext: onNext,
|
|
755
|
+
onEnableInteraction: onEnableInteraction,
|
|
756
|
+
onDisableInteraction: onDisableInteraction,
|
|
757
|
+
getMediaRef: getMediaRef
|
|
758
|
+
})) : null;
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
ViewerScreen.propTypes = propTypes$3;
|
|
762
|
+
ViewerScreen.defaultProps = defaultProps$3;
|
|
756
763
|
|
|
757
764
|
var propTypes$2 = {
|
|
758
765
|
story: PropTypes$1.story,
|
|
@@ -779,6 +786,11 @@ var propTypes$2 = {
|
|
|
779
786
|
onViewModeChange: PropTypes.func,
|
|
780
787
|
currentScreenMedia: PropTypes$1.ref,
|
|
781
788
|
screensMedias: PropTypes$1.ref,
|
|
789
|
+
screenSizeOptions: PropTypes.shape({
|
|
790
|
+
withoutMaxSize: PropTypes.bool,
|
|
791
|
+
desktopHeightRatio: PropTypes.number,
|
|
792
|
+
screenRatio: PropTypes.number
|
|
793
|
+
}),
|
|
782
794
|
className: PropTypes.string
|
|
783
795
|
};
|
|
784
796
|
var defaultProps$2 = {
|
|
@@ -805,11 +817,12 @@ var defaultProps$2 = {
|
|
|
805
817
|
onViewModeChange: null,
|
|
806
818
|
currentScreenMedia: null,
|
|
807
819
|
screensMedias: null,
|
|
820
|
+
screenSizeOptions: null,
|
|
808
821
|
className: null
|
|
809
822
|
};
|
|
810
823
|
|
|
811
824
|
var Viewer = function Viewer(_ref) {
|
|
812
|
-
var
|
|
825
|
+
var _ref15;
|
|
813
826
|
|
|
814
827
|
var story = _ref.story,
|
|
815
828
|
basePath = _ref.basePath,
|
|
@@ -834,6 +847,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
834
847
|
onViewModeChange = _ref.onViewModeChange,
|
|
835
848
|
currentScreenMedia = _ref.currentScreenMedia,
|
|
836
849
|
screensMedias = _ref.screensMedias,
|
|
850
|
+
screenSizeOptions = _ref.screenSizeOptions,
|
|
837
851
|
className = _ref.className;
|
|
838
852
|
var intl = useIntl();
|
|
839
853
|
var parsedStory = useParsedStory(story, {
|
|
@@ -883,11 +897,11 @@ var Viewer = function Viewer(_ref) {
|
|
|
883
897
|
var trackEvent = useTrackEvent();
|
|
884
898
|
var contentRef = useRef(null); // Get screen size
|
|
885
899
|
|
|
886
|
-
var _useScreenSizeFromEle = useScreenSizeFromElement({
|
|
900
|
+
var _useScreenSizeFromEle = useScreenSizeFromElement(_objectSpread({
|
|
887
901
|
width: width,
|
|
888
902
|
height: height,
|
|
889
903
|
screens: deviceScreens
|
|
890
|
-
}),
|
|
904
|
+
}, screenSizeOptions)),
|
|
891
905
|
containerRef = _useScreenSizeFromEle.ref,
|
|
892
906
|
screenSize = _useScreenSizeFromEle.screenSize;
|
|
893
907
|
|
|
@@ -1305,6 +1319,11 @@ var Viewer = function Viewer(_ref) {
|
|
|
1305
1319
|
description: screenDescription
|
|
1306
1320
|
}) : metadata;
|
|
1307
1321
|
}, [metadata]);
|
|
1322
|
+
|
|
1323
|
+
var _ref14 = viewerTheme || {},
|
|
1324
|
+
_ref14$menuTheme = _ref14.menuTheme,
|
|
1325
|
+
menuTheme = _ref14$menuTheme === void 0 ? null : _ref14$menuTheme;
|
|
1326
|
+
|
|
1308
1327
|
return /*#__PURE__*/React.createElement(ScreenSizeProvider, {
|
|
1309
1328
|
size: screenSize
|
|
1310
1329
|
}, /*#__PURE__*/React.createElement(ViewerProvider, {
|
|
@@ -1316,18 +1335,18 @@ var Viewer = function Viewer(_ref) {
|
|
|
1316
1335
|
}, overscrollStyle) : /*#__PURE__*/React.createElement(Helmet, null, overscrollStyle), /*#__PURE__*/React.createElement(FontFaces, {
|
|
1317
1336
|
fonts: finalFonts
|
|
1318
1337
|
}), /*#__PURE__*/React.createElement("div", {
|
|
1319
|
-
className: classNames([styles.container, screenSize.screens.map(function (screenName) {
|
|
1338
|
+
className: classNames([styles$6.container, screenSize.screens.map(function (screenName) {
|
|
1320
1339
|
return "story-screen-".concat(screenName);
|
|
1321
|
-
}), (
|
|
1340
|
+
}), (_ref15 = {}, _defineProperty(_ref15, styles$6.landscape, landscape), _defineProperty(_ref15, styles$6.hideMenu, !menuVisible), _defineProperty(_ref15, styles$6.ready, ready || withoutScreensTransforms), _defineProperty(_ref15, className, className), _ref15)]),
|
|
1322
1341
|
ref: containerRef,
|
|
1323
1342
|
onContextMenu: onContextMenu
|
|
1324
1343
|
}, !withoutMenu ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", Object.assign({
|
|
1325
|
-
className: styles.menuDotsContainer,
|
|
1344
|
+
className: styles$6.menuDotsContainer,
|
|
1326
1345
|
ref: menuDotsContainerRef,
|
|
1327
1346
|
style: {
|
|
1328
1347
|
width: screenWidth
|
|
1329
1348
|
}
|
|
1330
|
-
}, menuDragBind()), /*#__PURE__*/React.createElement(ViewerMenuDots, {
|
|
1349
|
+
}, menuDragBind()), /*#__PURE__*/React.createElement(ViewerMenuDots, Object.assign({}, menuTheme, {
|
|
1331
1350
|
direction: "horizontal",
|
|
1332
1351
|
withShadow: menuOverScreen,
|
|
1333
1352
|
items: screens,
|
|
@@ -1335,16 +1354,16 @@ var Viewer = function Viewer(_ref) {
|
|
|
1335
1354
|
onClickItem: onClickDotsMenuItem,
|
|
1336
1355
|
closeable: closeable,
|
|
1337
1356
|
onClose: onClose,
|
|
1338
|
-
className: styles.menuDots
|
|
1339
|
-
})), /*#__PURE__*/React.createElement(animated.div, {
|
|
1340
|
-
className: styles.menuPreviewContainer,
|
|
1357
|
+
className: styles$6.menuDots
|
|
1358
|
+
}))), /*#__PURE__*/React.createElement(animated.div, {
|
|
1359
|
+
className: styles$6.menuPreviewContainer,
|
|
1341
1360
|
style: menuPreviewStyle,
|
|
1342
1361
|
ref: menuPreviewContainerRef
|
|
1343
1362
|
}, /*#__PURE__*/React.createElement(ViewerMenuPreview, {
|
|
1344
1363
|
viewerTheme: viewerTheme,
|
|
1345
1364
|
title: title,
|
|
1346
1365
|
shareUrl: shareUrl,
|
|
1347
|
-
className: styles.menuPreview,
|
|
1366
|
+
className: styles$6.menuPreview,
|
|
1348
1367
|
screenWidth: screenWidth,
|
|
1349
1368
|
focusable: previewMenuOpen,
|
|
1350
1369
|
items: screens,
|
|
@@ -1357,7 +1376,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
1357
1376
|
fullscreenEnabled: fullscreenEnabled
|
|
1358
1377
|
}))) : null, ready || withoutScreensTransforms ? /*#__PURE__*/React.createElement("div", {
|
|
1359
1378
|
ref: contentRef,
|
|
1360
|
-
className: styles.content
|
|
1379
|
+
className: styles$6.content
|
|
1361
1380
|
}, screens.map(function (scr, i) {
|
|
1362
1381
|
var current = i === screenIndex;
|
|
1363
1382
|
var active = i > screenIndex - neighborScreensActive && i < screenIndex + neighborScreensActive;
|
|
@@ -1390,14 +1409,14 @@ var Viewer = function Viewer(_ref) {
|
|
|
1390
1409
|
"type": 0,
|
|
1391
1410
|
"value": "Go to previous screen"
|
|
1392
1411
|
}]
|
|
1393
|
-
})
|
|
1412
|
+
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
1394
1413
|
ref: current ? currentScreenRef : null,
|
|
1395
1414
|
style: {
|
|
1396
1415
|
width: landscape ? screenWidth : null,
|
|
1397
1416
|
height: landscape ? screenHeight : null,
|
|
1398
1417
|
transform: !withoutScreensTransforms ? screenTransform : null
|
|
1399
1418
|
},
|
|
1400
|
-
className: classNames([styles.screen, _defineProperty({}, styles.current, current)]),
|
|
1419
|
+
className: classNames([styles$6.screen, _defineProperty({}, styles$6.current, current)]),
|
|
1401
1420
|
tabIndex: active ? '0' : '-1'
|
|
1402
1421
|
/* eslint-disable-line */
|
|
1403
1422
|
,
|
package/lib/index.js
CHANGED
|
@@ -16,17 +16,17 @@ var contexts = require('@micromag/core/contexts');
|
|
|
16
16
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
17
17
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
18
18
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
19
|
-
var
|
|
19
|
+
var components = require('@micromag/core/components');
|
|
20
|
+
var hooks = require('@micromag/core/hooks');
|
|
21
|
+
var utils = require('@micromag/core/utils');
|
|
22
|
+
var core$1 = require('@react-spring/core');
|
|
23
|
+
var web = require('@react-spring/web');
|
|
20
24
|
var classNames = require('classnames');
|
|
25
|
+
var reactHelmet = require('react-helmet');
|
|
21
26
|
var reactIntl = require('react-intl');
|
|
22
27
|
var reactUseGesture = require('react-use-gesture');
|
|
23
|
-
var core$1 = require('@react-spring/core');
|
|
24
|
-
var web = require('@react-spring/web');
|
|
25
|
-
var hooks = require('@micromag/core/hooks');
|
|
26
|
-
var utils = require('@micromag/core/utils');
|
|
27
|
-
var components = require('@micromag/core/components');
|
|
28
|
-
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
29
28
|
var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
|
29
|
+
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
30
30
|
var Scroll = require('@micromag/element-scroll');
|
|
31
31
|
var reactShare = require('react-share');
|
|
32
32
|
|
|
@@ -48,71 +48,19 @@ var routes = PropTypes__default["default"].shape({
|
|
|
48
48
|
screen: PropTypes__default["default"].string.isRequired
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
var styles$6 = {"container":"micromag-viewer-
|
|
52
|
-
|
|
53
|
-
var propTypes$8 = {
|
|
54
|
-
screen: core.PropTypes.screenComponent,
|
|
55
|
-
renderContext: core.PropTypes.renderContext,
|
|
56
|
-
current: PropTypes__default["default"].bool,
|
|
57
|
-
active: PropTypes__default["default"].bool,
|
|
58
|
-
onPrevious: PropTypes__default["default"].func,
|
|
59
|
-
onNext: PropTypes__default["default"].func,
|
|
60
|
-
onEnableInteraction: PropTypes__default["default"].func,
|
|
61
|
-
onDisableInteraction: PropTypes__default["default"].func,
|
|
62
|
-
getMediaRef: PropTypes__default["default"].func
|
|
63
|
-
};
|
|
64
|
-
var defaultProps$8 = {
|
|
65
|
-
screen: null,
|
|
66
|
-
renderContext: null,
|
|
67
|
-
current: false,
|
|
68
|
-
active: true,
|
|
69
|
-
onPrevious: null,
|
|
70
|
-
onNext: null,
|
|
71
|
-
onEnableInteraction: null,
|
|
72
|
-
onDisableInteraction: null,
|
|
73
|
-
getMediaRef: null
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
var ViewerScreen = function ViewerScreen(_ref) {
|
|
77
|
-
var _ref2;
|
|
78
|
-
|
|
79
|
-
var screen = _ref.screen,
|
|
80
|
-
renderContext = _ref.renderContext,
|
|
81
|
-
active = _ref.active,
|
|
82
|
-
current = _ref.current,
|
|
83
|
-
onPrevious = _ref.onPrevious,
|
|
84
|
-
onNext = _ref.onNext,
|
|
85
|
-
onEnableInteraction = _ref.onEnableInteraction,
|
|
86
|
-
onDisableInteraction = _ref.onDisableInteraction,
|
|
87
|
-
getMediaRef = _ref.getMediaRef;
|
|
88
|
-
return screen !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
89
|
-
className: classNames__default["default"]([styles$6.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, styles$6.active, active), _defineProperty__default["default"](_ref2, styles$6.current, current), _ref2)]),
|
|
90
|
-
"aria-hidden": current ? null : 'true'
|
|
91
|
-
}, /*#__PURE__*/React__default["default"].createElement(components.Screen, {
|
|
92
|
-
screen: screen,
|
|
93
|
-
renderContext: renderContext,
|
|
94
|
-
active: active,
|
|
95
|
-
current: current,
|
|
96
|
-
onPrevious: onPrevious,
|
|
97
|
-
onNext: onNext,
|
|
98
|
-
onEnableInteraction: onEnableInteraction,
|
|
99
|
-
onDisableInteraction: onDisableInteraction,
|
|
100
|
-
getMediaRef: getMediaRef
|
|
101
|
-
})) : null;
|
|
102
|
-
};
|
|
51
|
+
var styles$6 = {"container":"micromag-viewer-container","menuPreview":"micromag-viewer-menuPreview","menuPreviewContainer":"micromag-viewer-menuPreviewContainer","screen":"micromag-viewer-screen","screenInner":"micromag-viewer-screenInner","content":"micromag-viewer-content","menuDotsContainer":"micromag-viewer-menuDotsContainer","menuDots":"micromag-viewer-menuDots","current":"micromag-viewer-current","landscape":"micromag-viewer-landscape","hideMenu":"micromag-viewer-hideMenu","ready":"micromag-viewer-ready"};
|
|
103
52
|
|
|
104
|
-
|
|
105
|
-
ViewerScreen.defaultProps = defaultProps$8;
|
|
53
|
+
var styles$5 = {"container":"micromag-viewer-menus-menu-dots-container","closeButton":"micromag-viewer-menus-menu-dots-closeButton","item":"micromag-viewer-menus-menu-dots-item","button":"micromag-viewer-menus-menu-dots-button","menuButton":"micromag-viewer-menus-menu-dots-menuButton","items":"micromag-viewer-menus-menu-dots-items","dot":"micromag-viewer-menus-menu-dots-dot","menu":"micromag-viewer-menus-menu-dots-menu","menuIcon":"micromag-viewer-menus-menu-dots-menuIcon","vertical":"micromag-viewer-menus-menu-dots-vertical","withShadow":"micromag-viewer-menus-menu-dots-withShadow"};
|
|
106
54
|
|
|
107
|
-
var styles$
|
|
55
|
+
var styles$4 = {};
|
|
108
56
|
|
|
109
|
-
var propTypes$
|
|
57
|
+
var propTypes$8 = {
|
|
110
58
|
size: PropTypes__default["default"].number,
|
|
111
59
|
spacing: PropTypes__default["default"].number,
|
|
112
60
|
color: PropTypes__default["default"].string,
|
|
113
61
|
className: PropTypes__default["default"].string
|
|
114
62
|
};
|
|
115
|
-
var defaultProps$
|
|
63
|
+
var defaultProps$8 = {
|
|
116
64
|
size: 100,
|
|
117
65
|
spacing: 8,
|
|
118
66
|
color: 'white',
|
|
@@ -126,7 +74,7 @@ var MenuIcon = function MenuIcon(_ref) {
|
|
|
126
74
|
className = _ref.className;
|
|
127
75
|
var squareSize = (size - 2 * spacing) / 3;
|
|
128
76
|
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
129
|
-
className: classNames__default["default"]([styles$
|
|
77
|
+
className: classNames__default["default"]([styles$4.container, _defineProperty__default["default"]({}, className, className !== null)]),
|
|
130
78
|
xmlns: "http://www.w3.org/2000/svg",
|
|
131
79
|
viewBox: "0 0 ".concat(size, " ").concat(size),
|
|
132
80
|
"aria-hidden": "true"
|
|
@@ -144,52 +92,57 @@ var MenuIcon = function MenuIcon(_ref) {
|
|
|
144
92
|
}));
|
|
145
93
|
};
|
|
146
94
|
|
|
147
|
-
MenuIcon.propTypes = propTypes$
|
|
148
|
-
MenuIcon.defaultProps = defaultProps$
|
|
95
|
+
MenuIcon.propTypes = propTypes$8;
|
|
96
|
+
MenuIcon.defaultProps = defaultProps$8;
|
|
149
97
|
|
|
150
|
-
var
|
|
151
|
-
|
|
152
|
-
var propTypes$6 = {
|
|
98
|
+
var propTypes$7 = {
|
|
153
99
|
direction: PropTypes__default["default"].oneOf(['horizontal', 'vertical']),
|
|
154
100
|
withShadow: PropTypes__default["default"].bool,
|
|
155
101
|
items: core.PropTypes.menuItems,
|
|
156
102
|
current: PropTypes__default["default"].number,
|
|
157
103
|
onClickItem: PropTypes__default["default"].func,
|
|
158
|
-
|
|
159
|
-
|
|
104
|
+
colors: PropTypes__default["default"].shape({
|
|
105
|
+
primary: PropTypes__default["default"].string,
|
|
106
|
+
secondary: PropTypes__default["default"].string
|
|
107
|
+
}),
|
|
160
108
|
closeable: PropTypes__default["default"].bool,
|
|
161
109
|
onClose: PropTypes__default["default"].func,
|
|
162
110
|
className: PropTypes__default["default"].string
|
|
163
111
|
};
|
|
164
|
-
var defaultProps$
|
|
112
|
+
var defaultProps$7 = {
|
|
165
113
|
direction: 'horizontal',
|
|
166
114
|
withShadow: false,
|
|
167
115
|
items: [],
|
|
168
116
|
current: 0,
|
|
169
117
|
onClickItem: null,
|
|
170
|
-
|
|
171
|
-
colorBackground: 'rgba(200, 200, 200, 0.5)',
|
|
118
|
+
colors: null,
|
|
172
119
|
closeable: false,
|
|
173
120
|
onClose: null,
|
|
174
121
|
className: null
|
|
175
122
|
};
|
|
176
123
|
|
|
177
124
|
var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
178
|
-
var
|
|
125
|
+
var _ref3;
|
|
179
126
|
|
|
180
127
|
var direction = _ref.direction,
|
|
181
128
|
withShadow = _ref.withShadow,
|
|
182
129
|
items = _ref.items,
|
|
183
130
|
current = _ref.current,
|
|
184
131
|
onClickItem = _ref.onClickItem,
|
|
185
|
-
|
|
186
|
-
colorBackground = _ref.colorBackground,
|
|
132
|
+
colors = _ref.colors,
|
|
187
133
|
closeable = _ref.closeable,
|
|
188
134
|
onClose = _ref.onClose,
|
|
189
135
|
className = _ref.className;
|
|
136
|
+
|
|
137
|
+
var _ref2 = colors || {},
|
|
138
|
+
_ref2$primary = _ref2.primary,
|
|
139
|
+
primary = _ref2$primary === void 0 ? 'rgba(255, 255, 255, 1)' : _ref2$primary,
|
|
140
|
+
_ref2$secondary = _ref2.secondary,
|
|
141
|
+
secondary = _ref2$secondary === void 0 ? 'rgba(200, 200, 200, 0.5)' : _ref2$secondary;
|
|
142
|
+
|
|
190
143
|
var intl = reactIntl.useIntl();
|
|
191
144
|
return /*#__PURE__*/React__default["default"].createElement("nav", {
|
|
192
|
-
className: classNames__default["default"]([styles$
|
|
145
|
+
className: classNames__default["default"]([styles$5.container, (_ref3 = {}, _defineProperty__default["default"](_ref3, className, className !== null), _defineProperty__default["default"](_ref3, styles$5.vertical, direction === 'vertical'), _defineProperty__default["default"](_ref3, styles$5.withShadow, withShadow), _ref3)]),
|
|
193
146
|
"aria-label": intl.formatMessage({
|
|
194
147
|
"id": "bLYuuN",
|
|
195
148
|
"defaultMessage": [{
|
|
@@ -213,15 +166,15 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
213
166
|
total: items.length
|
|
214
167
|
})
|
|
215
168
|
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
216
|
-
className: styles$
|
|
169
|
+
className: styles$5.items
|
|
217
170
|
}, items.map(function (item, index) {
|
|
218
171
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
219
|
-
className: classNames__default["default"]([styles$
|
|
172
|
+
className: classNames__default["default"]([styles$5.item, _defineProperty__default["default"]({}, styles$5.active, current === index)]),
|
|
220
173
|
key: "item-".concat(index),
|
|
221
174
|
"aria-hidden": "true"
|
|
222
175
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
223
176
|
type: "button",
|
|
224
|
-
className: styles$
|
|
177
|
+
className: styles$5.button,
|
|
225
178
|
onClick: function onClick() {
|
|
226
179
|
if (onClickItem !== null) {
|
|
227
180
|
onClickItem(index);
|
|
@@ -229,16 +182,16 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
229
182
|
},
|
|
230
183
|
tabIndex: "-1"
|
|
231
184
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
232
|
-
className: styles$
|
|
185
|
+
className: styles$5.dot,
|
|
233
186
|
style: {
|
|
234
|
-
backgroundColor: index <= current ?
|
|
187
|
+
backgroundColor: index <= current ? primary : secondary
|
|
235
188
|
}
|
|
236
189
|
})));
|
|
237
190
|
}), /*#__PURE__*/React__default["default"].createElement("li", {
|
|
238
|
-
className: styles$
|
|
191
|
+
className: styles$5.menu
|
|
239
192
|
}, /*#__PURE__*/React__default["default"].createElement(MenuIcon, {
|
|
240
|
-
className: styles$
|
|
241
|
-
color:
|
|
193
|
+
className: styles$5.menuIcon,
|
|
194
|
+
color: primary
|
|
242
195
|
}), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
243
196
|
type: "button",
|
|
244
197
|
title: intl.formatMessage({
|
|
@@ -255,20 +208,20 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
255
208
|
"value": "Menu"
|
|
256
209
|
}]
|
|
257
210
|
}),
|
|
258
|
-
className: styles$
|
|
211
|
+
className: styles$5.menuButton,
|
|
259
212
|
onClick: function onClick() {
|
|
260
213
|
if (onClickItem !== null) {
|
|
261
214
|
onClickItem(null);
|
|
262
215
|
}
|
|
263
216
|
}
|
|
264
217
|
})), closeable ? /*#__PURE__*/React__default["default"].createElement("li", {
|
|
265
|
-
className: styles$
|
|
218
|
+
className: styles$5.closeButton,
|
|
266
219
|
style: {
|
|
267
|
-
color:
|
|
220
|
+
color: primary
|
|
268
221
|
}
|
|
269
222
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
270
223
|
type: "button",
|
|
271
|
-
className: styles$
|
|
224
|
+
className: styles$5.closeButton,
|
|
272
225
|
onClick: onClose,
|
|
273
226
|
title: intl.formatMessage({
|
|
274
227
|
"id": "dj/p/q",
|
|
@@ -289,12 +242,12 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
289
242
|
}))) : null));
|
|
290
243
|
};
|
|
291
244
|
|
|
292
|
-
ViewerMenuDots.propTypes = propTypes$
|
|
293
|
-
ViewerMenuDots.defaultProps = defaultProps$
|
|
245
|
+
ViewerMenuDots.propTypes = propTypes$7;
|
|
246
|
+
ViewerMenuDots.defaultProps = defaultProps$7;
|
|
294
247
|
|
|
295
248
|
var styles$3 = {"container":"micromag-viewer-partials-share-modal-container","content":"micromag-viewer-partials-share-modal-content","opened":"micromag-viewer-partials-share-modal-opened"};
|
|
296
249
|
|
|
297
|
-
var propTypes$
|
|
250
|
+
var propTypes$6 = {
|
|
298
251
|
url: PropTypes__default["default"].string,
|
|
299
252
|
title: PropTypes__default["default"].string,
|
|
300
253
|
opened: PropTypes__default["default"].bool,
|
|
@@ -302,7 +255,7 @@ var propTypes$5 = {
|
|
|
302
255
|
onShare: PropTypes__default["default"].func,
|
|
303
256
|
onCancel: PropTypes__default["default"].func
|
|
304
257
|
};
|
|
305
|
-
var defaultProps$
|
|
258
|
+
var defaultProps$6 = {
|
|
306
259
|
url: null,
|
|
307
260
|
title: null,
|
|
308
261
|
opened: false,
|
|
@@ -386,12 +339,12 @@ var ShareModal = function ShareModal(_ref) {
|
|
|
386
339
|
}), /*#__PURE__*/React__default["default"].createElement(reactShare.EmailIcon, shareIconProps)))));
|
|
387
340
|
};
|
|
388
341
|
|
|
389
|
-
ShareModal.propTypes = propTypes$
|
|
390
|
-
ShareModal.defaultProps = defaultProps$
|
|
342
|
+
ShareModal.propTypes = propTypes$6;
|
|
343
|
+
ShareModal.defaultProps = defaultProps$6;
|
|
391
344
|
|
|
392
345
|
var styles$2 = {"container":"micromag-viewer-partials-share-button-container","shareModal":"micromag-viewer-partials-share-button-shareModal"};
|
|
393
346
|
|
|
394
|
-
var propTypes$
|
|
347
|
+
var propTypes$5 = {
|
|
395
348
|
title: PropTypes__default["default"].string,
|
|
396
349
|
url: PropTypes__default["default"].string,
|
|
397
350
|
className: PropTypes__default["default"].string,
|
|
@@ -400,7 +353,7 @@ var propTypes$4 = {
|
|
|
400
353
|
children: PropTypes__default["default"].node,
|
|
401
354
|
focusable: PropTypes__default["default"].bool
|
|
402
355
|
};
|
|
403
|
-
var defaultProps$
|
|
356
|
+
var defaultProps$5 = {
|
|
404
357
|
title: null,
|
|
405
358
|
url: null,
|
|
406
359
|
className: null,
|
|
@@ -470,12 +423,12 @@ var ShareButton = function ShareButton(_ref) {
|
|
|
470
423
|
}));
|
|
471
424
|
};
|
|
472
425
|
|
|
473
|
-
ShareButton.propTypes = propTypes$
|
|
474
|
-
ShareButton.defaultProps = defaultProps$
|
|
426
|
+
ShareButton.propTypes = propTypes$5;
|
|
427
|
+
ShareButton.defaultProps = defaultProps$5;
|
|
475
428
|
|
|
476
429
|
var styles$1 = {"container":"micromag-viewer-menus-menu-preview-container","screenButton":"micromag-viewer-menus-menu-preview-screenButton","activeScreenBorder":"micromag-viewer-menus-menu-preview-activeScreenBorder","itemContent":"micromag-viewer-menus-menu-preview-itemContent","scroll":"micromag-viewer-menus-menu-preview-scroll","header":"micromag-viewer-menus-menu-preview-header","button":"micromag-viewer-menus-menu-preview-button","shareButton":"micromag-viewer-menus-menu-preview-shareButton","disabled":"micromag-viewer-menus-menu-preview-disabled","icon":"micromag-viewer-menus-menu-preview-icon","buttons":"micromag-viewer-menus-menu-preview-buttons","organisation":"micromag-viewer-menus-menu-preview-organisation","title":"micromag-viewer-menus-menu-preview-title","content":"micromag-viewer-menus-menu-preview-content","nav":"micromag-viewer-menus-menu-preview-nav","item":"micromag-viewer-menus-menu-preview-item","items":"micromag-viewer-menus-menu-preview-items","active":"micromag-viewer-menus-menu-preview-active","screenContainer":"micromag-viewer-menus-menu-preview-screenContainer","screenContent":"micromag-viewer-menus-menu-preview-screenContent"};
|
|
477
430
|
|
|
478
|
-
var propTypes$
|
|
431
|
+
var propTypes$4 = {
|
|
479
432
|
viewerTheme: core.PropTypes.viewerTheme,
|
|
480
433
|
screenWidth: PropTypes__default["default"].number,
|
|
481
434
|
title: PropTypes__default["default"].string,
|
|
@@ -492,7 +445,7 @@ var propTypes$3 = {
|
|
|
492
445
|
fullscreenEnabled: PropTypes__default["default"].bool,
|
|
493
446
|
className: PropTypes__default["default"].string
|
|
494
447
|
};
|
|
495
|
-
var defaultProps$
|
|
448
|
+
var defaultProps$4 = {
|
|
496
449
|
viewerTheme: null,
|
|
497
450
|
screenWidth: null,
|
|
498
451
|
title: null,
|
|
@@ -766,10 +719,64 @@ var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
|
766
719
|
})))))) : null;
|
|
767
720
|
};
|
|
768
721
|
|
|
769
|
-
ViewerMenuPreview.propTypes = propTypes$
|
|
770
|
-
ViewerMenuPreview.defaultProps = defaultProps$
|
|
722
|
+
ViewerMenuPreview.propTypes = propTypes$4;
|
|
723
|
+
ViewerMenuPreview.defaultProps = defaultProps$4;
|
|
724
|
+
|
|
725
|
+
var styles = {"container":"micromag-viewer-screen-container","current":"micromag-viewer-screen-current"};
|
|
726
|
+
|
|
727
|
+
var propTypes$3 = {
|
|
728
|
+
screen: core.PropTypes.screenComponent,
|
|
729
|
+
renderContext: core.PropTypes.renderContext,
|
|
730
|
+
current: PropTypes__default["default"].bool,
|
|
731
|
+
active: PropTypes__default["default"].bool,
|
|
732
|
+
onPrevious: PropTypes__default["default"].func,
|
|
733
|
+
onNext: PropTypes__default["default"].func,
|
|
734
|
+
onEnableInteraction: PropTypes__default["default"].func,
|
|
735
|
+
onDisableInteraction: PropTypes__default["default"].func,
|
|
736
|
+
getMediaRef: PropTypes__default["default"].func
|
|
737
|
+
};
|
|
738
|
+
var defaultProps$3 = {
|
|
739
|
+
screen: null,
|
|
740
|
+
renderContext: null,
|
|
741
|
+
current: false,
|
|
742
|
+
active: true,
|
|
743
|
+
onPrevious: null,
|
|
744
|
+
onNext: null,
|
|
745
|
+
onEnableInteraction: null,
|
|
746
|
+
onDisableInteraction: null,
|
|
747
|
+
getMediaRef: null
|
|
748
|
+
};
|
|
749
|
+
|
|
750
|
+
var ViewerScreen = function ViewerScreen(_ref) {
|
|
751
|
+
var _ref2;
|
|
752
|
+
|
|
753
|
+
var screen = _ref.screen,
|
|
754
|
+
renderContext = _ref.renderContext,
|
|
755
|
+
active = _ref.active,
|
|
756
|
+
current = _ref.current,
|
|
757
|
+
onPrevious = _ref.onPrevious,
|
|
758
|
+
onNext = _ref.onNext,
|
|
759
|
+
onEnableInteraction = _ref.onEnableInteraction,
|
|
760
|
+
onDisableInteraction = _ref.onDisableInteraction,
|
|
761
|
+
getMediaRef = _ref.getMediaRef;
|
|
762
|
+
return screen !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
763
|
+
className: classNames__default["default"]([styles.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, styles.active, active), _defineProperty__default["default"](_ref2, styles.current, current), _ref2)]),
|
|
764
|
+
"aria-hidden": current ? null : 'true'
|
|
765
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Screen, {
|
|
766
|
+
screen: screen,
|
|
767
|
+
renderContext: renderContext,
|
|
768
|
+
active: active,
|
|
769
|
+
current: current,
|
|
770
|
+
onPrevious: onPrevious,
|
|
771
|
+
onNext: onNext,
|
|
772
|
+
onEnableInteraction: onEnableInteraction,
|
|
773
|
+
onDisableInteraction: onDisableInteraction,
|
|
774
|
+
getMediaRef: getMediaRef
|
|
775
|
+
})) : null;
|
|
776
|
+
};
|
|
771
777
|
|
|
772
|
-
|
|
778
|
+
ViewerScreen.propTypes = propTypes$3;
|
|
779
|
+
ViewerScreen.defaultProps = defaultProps$3;
|
|
773
780
|
|
|
774
781
|
var propTypes$2 = {
|
|
775
782
|
story: core.PropTypes.story,
|
|
@@ -796,6 +803,11 @@ var propTypes$2 = {
|
|
|
796
803
|
onViewModeChange: PropTypes__default["default"].func,
|
|
797
804
|
currentScreenMedia: core.PropTypes.ref,
|
|
798
805
|
screensMedias: core.PropTypes.ref,
|
|
806
|
+
screenSizeOptions: PropTypes__default["default"].shape({
|
|
807
|
+
withoutMaxSize: PropTypes__default["default"].bool,
|
|
808
|
+
desktopHeightRatio: PropTypes__default["default"].number,
|
|
809
|
+
screenRatio: PropTypes__default["default"].number
|
|
810
|
+
}),
|
|
799
811
|
className: PropTypes__default["default"].string
|
|
800
812
|
};
|
|
801
813
|
var defaultProps$2 = {
|
|
@@ -822,11 +834,12 @@ var defaultProps$2 = {
|
|
|
822
834
|
onViewModeChange: null,
|
|
823
835
|
currentScreenMedia: null,
|
|
824
836
|
screensMedias: null,
|
|
837
|
+
screenSizeOptions: null,
|
|
825
838
|
className: null
|
|
826
839
|
};
|
|
827
840
|
|
|
828
841
|
var Viewer = function Viewer(_ref) {
|
|
829
|
-
var
|
|
842
|
+
var _ref15;
|
|
830
843
|
|
|
831
844
|
var story = _ref.story,
|
|
832
845
|
basePath = _ref.basePath,
|
|
@@ -851,6 +864,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
851
864
|
onViewModeChange = _ref.onViewModeChange,
|
|
852
865
|
currentScreenMedia = _ref.currentScreenMedia,
|
|
853
866
|
screensMedias = _ref.screensMedias,
|
|
867
|
+
screenSizeOptions = _ref.screenSizeOptions,
|
|
854
868
|
className = _ref.className;
|
|
855
869
|
var intl = reactIntl.useIntl();
|
|
856
870
|
var parsedStory = hooks.useParsedStory(story, {
|
|
@@ -900,11 +914,11 @@ var Viewer = function Viewer(_ref) {
|
|
|
900
914
|
var trackEvent = hooks.useTrackEvent();
|
|
901
915
|
var contentRef = React.useRef(null); // Get screen size
|
|
902
916
|
|
|
903
|
-
var _useScreenSizeFromEle = hooks.useScreenSizeFromElement({
|
|
917
|
+
var _useScreenSizeFromEle = hooks.useScreenSizeFromElement(_objectSpread__default["default"]({
|
|
904
918
|
width: width,
|
|
905
919
|
height: height,
|
|
906
920
|
screens: deviceScreens
|
|
907
|
-
}),
|
|
921
|
+
}, screenSizeOptions)),
|
|
908
922
|
containerRef = _useScreenSizeFromEle.ref,
|
|
909
923
|
screenSize = _useScreenSizeFromEle.screenSize;
|
|
910
924
|
|
|
@@ -1322,6 +1336,11 @@ var Viewer = function Viewer(_ref) {
|
|
|
1322
1336
|
description: screenDescription
|
|
1323
1337
|
}) : metadata;
|
|
1324
1338
|
}, [metadata]);
|
|
1339
|
+
|
|
1340
|
+
var _ref14 = viewerTheme || {},
|
|
1341
|
+
_ref14$menuTheme = _ref14.menuTheme,
|
|
1342
|
+
menuTheme = _ref14$menuTheme === void 0 ? null : _ref14$menuTheme;
|
|
1343
|
+
|
|
1325
1344
|
return /*#__PURE__*/React__default["default"].createElement(contexts.ScreenSizeProvider, {
|
|
1326
1345
|
size: screenSize
|
|
1327
1346
|
}, /*#__PURE__*/React__default["default"].createElement(contexts.ViewerProvider, {
|
|
@@ -1333,18 +1352,18 @@ var Viewer = function Viewer(_ref) {
|
|
|
1333
1352
|
}, overscrollStyle) : /*#__PURE__*/React__default["default"].createElement(reactHelmet.Helmet, null, overscrollStyle), /*#__PURE__*/React__default["default"].createElement(components.FontFaces, {
|
|
1334
1353
|
fonts: finalFonts
|
|
1335
1354
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1336
|
-
className: classNames__default["default"]([styles.container, screenSize.screens.map(function (screenName) {
|
|
1355
|
+
className: classNames__default["default"]([styles$6.container, screenSize.screens.map(function (screenName) {
|
|
1337
1356
|
return "story-screen-".concat(screenName);
|
|
1338
|
-
}), (
|
|
1357
|
+
}), (_ref15 = {}, _defineProperty__default["default"](_ref15, styles$6.landscape, landscape), _defineProperty__default["default"](_ref15, styles$6.hideMenu, !menuVisible), _defineProperty__default["default"](_ref15, styles$6.ready, ready || withoutScreensTransforms), _defineProperty__default["default"](_ref15, className, className), _ref15)]),
|
|
1339
1358
|
ref: containerRef,
|
|
1340
1359
|
onContextMenu: onContextMenu
|
|
1341
1360
|
}, !withoutMenu ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
|
|
1342
|
-
className: styles.menuDotsContainer,
|
|
1361
|
+
className: styles$6.menuDotsContainer,
|
|
1343
1362
|
ref: menuDotsContainerRef,
|
|
1344
1363
|
style: {
|
|
1345
1364
|
width: screenWidth
|
|
1346
1365
|
}
|
|
1347
|
-
}, menuDragBind()), /*#__PURE__*/React__default["default"].createElement(ViewerMenuDots, {
|
|
1366
|
+
}, menuDragBind()), /*#__PURE__*/React__default["default"].createElement(ViewerMenuDots, Object.assign({}, menuTheme, {
|
|
1348
1367
|
direction: "horizontal",
|
|
1349
1368
|
withShadow: menuOverScreen,
|
|
1350
1369
|
items: screens,
|
|
@@ -1352,16 +1371,16 @@ var Viewer = function Viewer(_ref) {
|
|
|
1352
1371
|
onClickItem: onClickDotsMenuItem,
|
|
1353
1372
|
closeable: closeable,
|
|
1354
1373
|
onClose: onClose,
|
|
1355
|
-
className: styles.menuDots
|
|
1356
|
-
})), /*#__PURE__*/React__default["default"].createElement(web.animated.div, {
|
|
1357
|
-
className: styles.menuPreviewContainer,
|
|
1374
|
+
className: styles$6.menuDots
|
|
1375
|
+
}))), /*#__PURE__*/React__default["default"].createElement(web.animated.div, {
|
|
1376
|
+
className: styles$6.menuPreviewContainer,
|
|
1358
1377
|
style: menuPreviewStyle,
|
|
1359
1378
|
ref: menuPreviewContainerRef
|
|
1360
1379
|
}, /*#__PURE__*/React__default["default"].createElement(ViewerMenuPreview, {
|
|
1361
1380
|
viewerTheme: viewerTheme,
|
|
1362
1381
|
title: title,
|
|
1363
1382
|
shareUrl: shareUrl,
|
|
1364
|
-
className: styles.menuPreview,
|
|
1383
|
+
className: styles$6.menuPreview,
|
|
1365
1384
|
screenWidth: screenWidth,
|
|
1366
1385
|
focusable: previewMenuOpen,
|
|
1367
1386
|
items: screens,
|
|
@@ -1374,7 +1393,7 @@ var Viewer = function Viewer(_ref) {
|
|
|
1374
1393
|
fullscreenEnabled: fullscreenEnabled
|
|
1375
1394
|
}))) : null, ready || withoutScreensTransforms ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1376
1395
|
ref: contentRef,
|
|
1377
|
-
className: styles.content
|
|
1396
|
+
className: styles$6.content
|
|
1378
1397
|
}, screens.map(function (scr, i) {
|
|
1379
1398
|
var current = i === screenIndex;
|
|
1380
1399
|
var active = i > screenIndex - neighborScreensActive && i < screenIndex + neighborScreensActive;
|
|
@@ -1407,14 +1426,14 @@ var Viewer = function Viewer(_ref) {
|
|
|
1407
1426
|
"type": 0,
|
|
1408
1427
|
"value": "Go to previous screen"
|
|
1409
1428
|
}]
|
|
1410
|
-
})
|
|
1429
|
+
})) : null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1411
1430
|
ref: current ? currentScreenRef : null,
|
|
1412
1431
|
style: {
|
|
1413
1432
|
width: landscape ? screenWidth : null,
|
|
1414
1433
|
height: landscape ? screenHeight : null,
|
|
1415
1434
|
transform: !withoutScreensTransforms ? screenTransform : null
|
|
1416
1435
|
},
|
|
1417
|
-
className: classNames__default["default"]([styles.screen, _defineProperty__default["default"]({}, styles.current, current)]),
|
|
1436
|
+
className: classNames__default["default"]([styles$6.screen, _defineProperty__default["default"]({}, styles$6.current, current)]),
|
|
1418
1437
|
tabIndex: active ? '0' : '-1'
|
|
1419
1438
|
/* eslint-disable-line */
|
|
1420
1439
|
,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.389",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
56
56
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
57
57
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
58
|
-
"@micromag/core": "^0.2.
|
|
59
|
-
"@micromag/element-scroll": "^0.2.
|
|
60
|
-
"@micromag/elements": "^0.2.
|
|
61
|
-
"@micromag/fields": "^0.2.
|
|
62
|
-
"@micromag/intl": "^0.2.
|
|
63
|
-
"@micromag/screens": "^0.2.
|
|
58
|
+
"@micromag/core": "^0.2.386",
|
|
59
|
+
"@micromag/element-scroll": "^0.2.386",
|
|
60
|
+
"@micromag/elements": "^0.2.386",
|
|
61
|
+
"@micromag/fields": "^0.2.388",
|
|
62
|
+
"@micromag/intl": "^0.2.388",
|
|
63
|
+
"@micromag/screens": "^0.2.386",
|
|
64
64
|
"@react-spring/core": "^9.1.1",
|
|
65
65
|
"@react-spring/web": "^9.1.1",
|
|
66
66
|
"classnames": "^2.2.6",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "4d1e175e60baf8da9ecbbce89d29d6d4a57f29ad"
|
|
80
80
|
}
|