Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Commit

Permalink
build: release 1.0.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Mar 15, 2018
1 parent 0cbac78 commit 31b93ea
Show file tree
Hide file tree
Showing 12 changed files with 92 additions and 32 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.0-beta (Mar 15, 2018)

- Upgrade Viewer.js to 1.0.0-rc.1.

## 1.0.0-alpha (Mar 11, 2018)

- The core code of Viewer is replaced with [Viewer.js](https://github.com/fengyuanchen/viewerjs) now.
Expand Down
24 changes: 19 additions & 5 deletions dist/viewer.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer v1.0.0-alpha
* Viewer v1.0.0-beta
* https://github.com/fengyuanchen/viewer
*
* Copyright (c) 2015-2018 Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-03-11T04:59:30.721Z
* Date: 2018-03-15T14:11:04.644Z
*/

'use strict';
Expand Down Expand Up @@ -151,7 +151,7 @@ var EVENT_DRAG_START = 'dragstart';
var EVENT_KEY_DOWN = 'keydown';
var EVENT_LOAD = 'load';
var EVENT_POINTER_DOWN = WINDOW.PointerEvent ? 'pointerdown' : 'touchstart mousedown';
var EVENT_POINTER_MOVE = WINDOW.PointerEvent ? 'pointermove' : 'mousemove touchmove';
var EVENT_POINTER_MOVE = WINDOW.PointerEvent ? 'pointermove' : 'touchmove mousemove';
var EVENT_POINTER_UP = WINDOW.PointerEvent ? 'pointerup pointercancel' : 'touchend touchcancel mouseup';
var EVENT_RESIZE = 'resize';
var EVENT_TRANSITION_END = 'transitionend';
Expand Down Expand Up @@ -499,11 +499,22 @@ function removeData(element, name) {
var REGEXP_SPACES = /\s\s*/;
var onceSupported = function () {
var supported = false;
var once = false;
var listener = function listener() {};
var options = Object.defineProperty({}, 'once', {
get: function get$$1() {
supported = true;
return true;
return once;
},


/**
* This setter can fix a `TypeError` in strict mode
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only}
* @param {boolean} value - The value to set
*/
set: function set$$1(value) {
once = value;
}
});

Expand Down Expand Up @@ -2581,6 +2592,9 @@ var others = {
case ACTION_SWITCH:
this.action = 'switched';

// Empty `pointers` as `touchend` event will not be fired after swiped in iOS browsers.
this.pointers = {};

if (Math.abs(offsetX) > Math.abs(offsetY)) {
if (offsetX > 1) {
this.prev(options.loop);
Expand Down Expand Up @@ -2990,7 +3004,7 @@ if ($.fn) {
}
});

return typeof result === 'undefined' ? this : result;
return result !== undefined ? result : this;
};

$.fn.viewer.Constructor = Viewer;
Expand Down
4 changes: 2 additions & 2 deletions dist/viewer.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer v1.0.0-alpha
* Viewer v1.0.0-beta
* https://github.com/fengyuanchen/viewer
*
* Copyright (c) 2015-2018 Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-03-11T04:59:22.442Z
* Date: 2018-03-15T14:10:56.287Z
*/

.viewer-zoom-in::before,
Expand Down
24 changes: 19 additions & 5 deletions dist/viewer.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer v1.0.0-alpha
* Viewer v1.0.0-beta
* https://github.com/fengyuanchen/viewer
*
* Copyright (c) 2015-2018 Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-03-11T04:59:30.721Z
* Date: 2018-03-15T14:11:04.644Z
*/

import $ from 'jquery';
Expand Down Expand Up @@ -147,7 +147,7 @@ var EVENT_DRAG_START = 'dragstart';
var EVENT_KEY_DOWN = 'keydown';
var EVENT_LOAD = 'load';
var EVENT_POINTER_DOWN = WINDOW.PointerEvent ? 'pointerdown' : 'touchstart mousedown';
var EVENT_POINTER_MOVE = WINDOW.PointerEvent ? 'pointermove' : 'mousemove touchmove';
var EVENT_POINTER_MOVE = WINDOW.PointerEvent ? 'pointermove' : 'touchmove mousemove';
var EVENT_POINTER_UP = WINDOW.PointerEvent ? 'pointerup pointercancel' : 'touchend touchcancel mouseup';
var EVENT_RESIZE = 'resize';
var EVENT_TRANSITION_END = 'transitionend';
Expand Down Expand Up @@ -495,11 +495,22 @@ function removeData(element, name) {
var REGEXP_SPACES = /\s\s*/;
var onceSupported = function () {
var supported = false;
var once = false;
var listener = function listener() {};
var options = Object.defineProperty({}, 'once', {
get: function get$$1() {
supported = true;
return true;
return once;
},


/**
* This setter can fix a `TypeError` in strict mode
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only}
* @param {boolean} value - The value to set
*/
set: function set$$1(value) {
once = value;
}
});

Expand Down Expand Up @@ -2577,6 +2588,9 @@ var others = {
case ACTION_SWITCH:
this.action = 'switched';

// Empty `pointers` as `touchend` event will not be fired after swiped in iOS browsers.
this.pointers = {};

if (Math.abs(offsetX) > Math.abs(offsetY)) {
if (offsetX > 1) {
this.prev(options.loop);
Expand Down Expand Up @@ -2986,7 +3000,7 @@ if ($.fn) {
}
});

return typeof result === 'undefined' ? this : result;
return result !== undefined ? result : this;
};

$.fn.viewer.Constructor = Viewer;
Expand Down
24 changes: 19 additions & 5 deletions dist/viewer.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer v1.0.0-alpha
* Viewer v1.0.0-beta
* https://github.com/fengyuanchen/viewer
*
* Copyright (c) 2015-2018 Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-03-11T04:59:30.721Z
* Date: 2018-03-15T14:11:04.644Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -153,7 +153,7 @@ var EVENT_DRAG_START = 'dragstart';
var EVENT_KEY_DOWN = 'keydown';
var EVENT_LOAD = 'load';
var EVENT_POINTER_DOWN = WINDOW.PointerEvent ? 'pointerdown' : 'touchstart mousedown';
var EVENT_POINTER_MOVE = WINDOW.PointerEvent ? 'pointermove' : 'mousemove touchmove';
var EVENT_POINTER_MOVE = WINDOW.PointerEvent ? 'pointermove' : 'touchmove mousemove';
var EVENT_POINTER_UP = WINDOW.PointerEvent ? 'pointerup pointercancel' : 'touchend touchcancel mouseup';
var EVENT_RESIZE = 'resize';
var EVENT_TRANSITION_END = 'transitionend';
Expand Down Expand Up @@ -501,11 +501,22 @@ function removeData(element, name) {
var REGEXP_SPACES = /\s\s*/;
var onceSupported = function () {
var supported = false;
var once = false;
var listener = function listener() {};
var options = Object.defineProperty({}, 'once', {
get: function get$$1() {
supported = true;
return true;
return once;
},


/**
* This setter can fix a `TypeError` in strict mode
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only}
* @param {boolean} value - The value to set
*/
set: function set$$1(value) {
once = value;
}
});

Expand Down Expand Up @@ -2583,6 +2594,9 @@ var others = {
case ACTION_SWITCH:
this.action = 'switched';

// Empty `pointers` as `touchend` event will not be fired after swiped in iOS browsers.
this.pointers = {};

if (Math.abs(offsetX) > Math.abs(offsetY)) {
if (offsetX > 1) {
this.prev(options.loop);
Expand Down Expand Up @@ -2992,7 +3006,7 @@ if ($.fn) {
}
});

return typeof result === 'undefined' ? this : result;
return result !== undefined ? result : this;
};

$.fn.viewer.Constructor = Viewer;
Expand Down
4 changes: 2 additions & 2 deletions dist/viewer.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/viewer.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/css/viewer.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer v1.0.0-alpha
* Viewer v1.0.0-beta
* https://github.com/fengyuanchen/viewer
*
* Copyright (c) 2015-2018 Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-03-11T04:59:22.442Z
* Date: 2018-03-15T14:10:56.287Z
*/

.viewer-zoom-in::before,
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div class="container">
<div class="row">
<div class="col-md">
<h1>Viewer <small class="h6">v1.0.0-alpha</small></h1>
<h1>Viewer <small class="h6">v1.0.0-beta</small></h1>
<p class="lead">A simple jQuery image viewing plugin.</p>
</div>
<div class="col-md">
Expand Down
24 changes: 19 additions & 5 deletions docs/js/viewer.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer v1.0.0-alpha
* Viewer v1.0.0-beta
* https://github.com/fengyuanchen/viewer
*
* Copyright (c) 2015-2018 Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-03-11T04:59:30.721Z
* Date: 2018-03-15T14:11:04.644Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -153,7 +153,7 @@ var EVENT_DRAG_START = 'dragstart';
var EVENT_KEY_DOWN = 'keydown';
var EVENT_LOAD = 'load';
var EVENT_POINTER_DOWN = WINDOW.PointerEvent ? 'pointerdown' : 'touchstart mousedown';
var EVENT_POINTER_MOVE = WINDOW.PointerEvent ? 'pointermove' : 'mousemove touchmove';
var EVENT_POINTER_MOVE = WINDOW.PointerEvent ? 'pointermove' : 'touchmove mousemove';
var EVENT_POINTER_UP = WINDOW.PointerEvent ? 'pointerup pointercancel' : 'touchend touchcancel mouseup';
var EVENT_RESIZE = 'resize';
var EVENT_TRANSITION_END = 'transitionend';
Expand Down Expand Up @@ -501,11 +501,22 @@ function removeData(element, name) {
var REGEXP_SPACES = /\s\s*/;
var onceSupported = function () {
var supported = false;
var once = false;
var listener = function listener() {};
var options = Object.defineProperty({}, 'once', {
get: function get$$1() {
supported = true;
return true;
return once;
},


/**
* This setter can fix a `TypeError` in strict mode
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only}
* @param {boolean} value - The value to set
*/
set: function set$$1(value) {
once = value;
}
});

Expand Down Expand Up @@ -2583,6 +2594,9 @@ var others = {
case ACTION_SWITCH:
this.action = 'switched';

// Empty `pointers` as `touchend` event will not be fired after swiped in iOS browsers.
this.pointers = {};

if (Math.abs(offsetX) > Math.abs(offsetY)) {
if (offsetX > 1) {
this.prev(options.loop);
Expand Down Expand Up @@ -2992,7 +3006,7 @@ if ($.fn) {
}
});

return typeof result === 'undefined' ? this : result;
return result !== undefined ? result : this;
};

$.fn.viewer.Constructor = Viewer;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "imageviewer",
"description": "A simple jQuery image viewing plugin.",
"version": "1.0.0-alpha",
"version": "1.0.0-beta",
"main": "dist/viewer.common.js",
"module": "dist/viewer.esm.js",
"unpkg": "dist/viewer.js",
Expand Down

0 comments on commit 31b93ea

Please sign in to comment.