@widgetic/editor 3.10.35 → 3.10.39
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/lib/dev/editor.js
CHANGED
|
@@ -13347,7 +13347,7 @@ WidgetEditor = (function(superClass) {
|
|
|
13347
13347
|
this.el.append(this.tabs.el);
|
|
13348
13348
|
LoginPopup.place(this.el);
|
|
13349
13349
|
Blogvio.pubsub.subscribe('api/token/update', this._updateLoggedInStatus);
|
|
13350
|
-
this.el.attr('editorVersion', "3.10.
|
|
13350
|
+
this.el.attr('editorVersion', "3.10.39");
|
|
13351
13351
|
}
|
|
13352
13352
|
|
|
13353
13353
|
|
|
@@ -16683,7 +16683,7 @@ var UploadService = function (_EventsMixin) {
|
|
|
16683
16683
|
var _this = _possibleConstructorReturn(this, (UploadService.__proto__ || Object.getPrototypeOf(UploadService)).call(this));
|
|
16684
16684
|
|
|
16685
16685
|
_this.user = user.id;
|
|
16686
|
-
_this.maxFilesize = user.premium ?
|
|
16686
|
+
_this.maxFilesize = user.premium ? 250 : 100;
|
|
16687
16687
|
_this.token = token;
|
|
16688
16688
|
|
|
16689
16689
|
_this.files = [];
|
|
@@ -23636,7 +23636,7 @@ module.exports = InstagramService;
|
|
|
23636
23636
|
/* 170 */
|
|
23637
23637
|
/***/ (function(module, exports, __webpack_require__) {
|
|
23638
23638
|
|
|
23639
|
-
var Entry, SC, Service, SoundCloudService, config,
|
|
23639
|
+
var Entry, SC, Service, SoundCloudService, config, widgetic_backend_url,
|
|
23640
23640
|
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
|
|
23641
23641
|
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
|
23642
23642
|
hasProp = {}.hasOwnProperty;
|
|
@@ -23645,26 +23645,26 @@ Service = __webpack_require__(8);
|
|
|
23645
23645
|
|
|
23646
23646
|
Entry = __webpack_require__(9);
|
|
23647
23647
|
|
|
23648
|
+
widgetic_backend_url = 'https://widgetic.com/wservices/soundcloud/';
|
|
23649
|
+
|
|
23648
23650
|
SC = __webpack_require__(171);
|
|
23649
23651
|
|
|
23650
23652
|
config = {
|
|
23653
|
+
api_url: 'https://api.soundcloud.com',
|
|
23651
23654
|
client_id: 'aed0aa63baf747a83ad0b6b246acddca',
|
|
23652
23655
|
redirect_uri: 'https://widgetic.com/connect/soundcloud',
|
|
23653
|
-
|
|
23654
|
-
|
|
23655
|
-
grant_type: 'authorization_code',
|
|
23656
|
-
client_secret: '3173e3098379153d42084aba06fe3ec4',
|
|
23657
|
-
api_url: 'https://api.soundcloud.com'
|
|
23656
|
+
tracks_url: widgetic_backend_url + 'tracks/',
|
|
23657
|
+
grant_type: 'refresh_token'
|
|
23658
23658
|
};
|
|
23659
23659
|
|
|
23660
23660
|
SC.initialize(config);
|
|
23661
23661
|
|
|
23662
23662
|
SC.client_id = config.client_id;
|
|
23663
23663
|
|
|
23664
|
-
SC.redirect_uri = config.redirect_uri;
|
|
23665
|
-
|
|
23666
23664
|
SC.api_url = config.api_url;
|
|
23667
23665
|
|
|
23666
|
+
SC.tracks_url = config.tracks_url;
|
|
23667
|
+
|
|
23668
23668
|
try {
|
|
23669
23669
|
SC.auth_token = localStorage.getItem('soundcloudAuthToken');
|
|
23670
23670
|
} catch (error1) {}
|
|
@@ -23775,6 +23775,7 @@ SoundCloudService = (function(superClass) {
|
|
|
23775
23775
|
SoundCloudService.prototype.fetchTracks = function(playlistId) {
|
|
23776
23776
|
var path;
|
|
23777
23777
|
path = playlistId ? "/playlists/" + playlistId : "/users/" + SC.userId + "/tracks";
|
|
23778
|
+
path += "?access=playable";
|
|
23778
23779
|
return this.SCGet(path).then((function(_this) {
|
|
23779
23780
|
return function(result) {
|
|
23780
23781
|
var tracks;
|
|
@@ -23825,15 +23826,7 @@ SoundCloudService = (function(superClass) {
|
|
|
23825
23826
|
};
|
|
23826
23827
|
|
|
23827
23828
|
SoundCloudService.prototype.getURL = function(entry, callback) {
|
|
23828
|
-
return
|
|
23829
|
-
return function(streams) {
|
|
23830
|
-
return callback(streams.http_mp3_128_url);
|
|
23831
|
-
};
|
|
23832
|
-
})(this))["catch"]((function(_this) {
|
|
23833
|
-
return function(error) {
|
|
23834
|
-
return console.log('Fetch Track Streams error: ' + error);
|
|
23835
|
-
};
|
|
23836
|
-
})(this));
|
|
23829
|
+
return callback(SC.tracks_url + "?id=" + entry.id + "&atoken=" + SC.auth_token);
|
|
23837
23830
|
};
|
|
23838
23831
|
|
|
23839
23832
|
return SoundCloudService;
|