@widgetic/editor 3.10.54 → 3.10.55

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.54");
13350
+ this.el.attr('editorVersion', "3.10.55");
13351
13351
  }
13352
13352
 
13353
13353
 
@@ -17145,7 +17145,7 @@ var template = function () {
17145
17145
  // // console.log("noIdA & noIdB: ", noIdA, noIdB, (noIdA - noIdB));
17146
17146
  // return noIdA - noIdB;
17147
17147
  // });
17148
- // console.log("uploadedFiles after sort: ", files);
17148
+ // console.log("uploadedFiles before sort: ", files);
17149
17149
 
17150
17150
  // sort files by last modified(uploadTime) date
17151
17151
  files = files.sort(function (a, b) {
@@ -17154,7 +17154,10 @@ var template = function () {
17154
17154
  var x = a.lastModified;
17155
17155
 
17156
17156
  // read the lastModified date from the id
17157
- if (!x) x = a.id.substring(a.id.indexOf('_u') + 3);
17157
+ if (!x && a.id) {
17158
+ var indexOft = a.id.indexOf('_u');
17159
+ if (indexOft) x = a.id.substring(indexOft + 3);
17160
+ }
17158
17161
 
17159
17162
  // if still not available then set it to 0
17160
17163
  if (!x) x = 0;
@@ -17165,7 +17168,10 @@ var template = function () {
17165
17168
  var y = b.lastModified;
17166
17169
 
17167
17170
  // read the lastModified date from the id
17168
- if (!y) y = b.id.substring(b.id.indexOf('_u') + 3);
17171
+ if (!y && b.id) {
17172
+ var _indexOft = b.id.indexOf('_u');
17173
+ if (_indexOft) y = b.id.substring(_indexOft + 3);
17174
+ }
17169
17175
 
17170
17176
  // if still not available then set it to 0
17171
17177
  if (!y) y = 0;
@@ -17290,8 +17296,8 @@ var template = function () {
17290
17296
 
17291
17297
  function add_css() {
17292
17298
  var style = __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["e" /* createElement */]('style');
17293
- style.id = "svelte-2441907646-style";
17294
- style.textContent = "\n section[svelte-2441907646], [svelte-2441907646] section {\n display: flex;\n flex-direction: column;\n padding-left: 20px;\n height: calc(100% - 25px);\n color: #665b68;\n }\n\n a[svelte-2441907646]:focus, [svelte-2441907646] a:focus {\n outline: none;\n }\n\n [svelte-2441907646].error-panel, [svelte-2441907646] .error-panel {\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n text-align: center;\n padding-right: 20px;\n }\n\n [svelte-2441907646].browser-nav, [svelte-2441907646] .browser-nav {\n position: static;\n\n font-family: ProximaNova-Regular;\n font-size: 16px;\n color: #0055FF;\n }\n\n [svelte-2441907646].blogvio-browser-title, [svelte-2441907646] .blogvio-browser-title {\n margin-top: 0;\n font: 30px/60px \"ProximaNova-Regular\";\n color: #0055FF;\n }\n\n [svelte-2441907646].nano, [svelte-2441907646] .nano {\n flex: 1;\n }\n\n strong[svelte-2441907646], [svelte-2441907646] strong {\n color: #0055FF;\n }\n\n [svelte-2441907646].dropzone_plchldr, [svelte-2441907646] .dropzone_plchldr {\n position: relative;\n margin: 20px 20px 20px 0;\n height: 75px;\n }\n\n [svelte-2441907646].dropzone, [svelte-2441907646] .dropzone {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n\n [svelte-2441907646].scrolling-container, [svelte-2441907646] .scrolling-container {\n transition: opacity 200ms ease-in;\n }\n\n [svelte-2441907646].dropzone--dragging .scrolling-container, [svelte-2441907646] .dropzone--dragging .scrolling-container {\n opacity: 0.4;\n }\n\n [svelte-2441907646].dropzone--dragging .dropzone, [svelte-2441907646] .dropzone--dragging .dropzone {\n top: -100px;\n }\n\n [svelte-2441907646].dropzone--large .dropzone, [svelte-2441907646] .dropzone--large .dropzone,\n [svelte-2441907646].dropzone--dragging .dropzone--large .dropzone, [svelte-2441907646] .dropzone--dragging .dropzone--large .dropzone {\n top: -200px;\n }\n\n [svelte-2441907646].icon, [svelte-2441907646] .icon {\n display: inline-block;\n width: 1em;\n height: 1em;\n stroke-width: 0;\n stroke: currentColor;\n fill: currentColor\n }\n\n [svelte-2441907646].clear-content svg, [svelte-2441907646] .clear-content svg {\n width: 14px;\n fill: #a0a0a0;\n position: relative;\n top: 1px;\n right: 2px;\n }\n\n [svelte-2441907646].clear-content:hover svg, [svelte-2441907646] .clear-content:hover svg {\n fill: #665b68;\n }\n";
17299
+ style.id = "svelte-3539814272-style";
17300
+ style.textContent = "\n section[svelte-3539814272], [svelte-3539814272] section {\n display: flex;\n flex-direction: column;\n padding-left: 20px;\n height: calc(100% - 25px);\n color: #665b68;\n }\n\n a[svelte-3539814272]:focus, [svelte-3539814272] a:focus {\n outline: none;\n }\n\n [svelte-3539814272].error-panel, [svelte-3539814272] .error-panel {\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n text-align: center;\n padding-right: 20px;\n }\n\n [svelte-3539814272].browser-nav, [svelte-3539814272] .browser-nav {\n position: static;\n\n font-family: ProximaNova-Regular;\n font-size: 16px;\n color: #0055FF;\n }\n\n [svelte-3539814272].blogvio-browser-title, [svelte-3539814272] .blogvio-browser-title {\n margin-top: 0;\n font: 30px/60px \"ProximaNova-Regular\";\n color: #0055FF;\n }\n\n [svelte-3539814272].nano, [svelte-3539814272] .nano {\n flex: 1;\n }\n\n strong[svelte-3539814272], [svelte-3539814272] strong {\n color: #0055FF;\n }\n\n [svelte-3539814272].dropzone_plchldr, [svelte-3539814272] .dropzone_plchldr {\n position: relative;\n margin: 20px 20px 20px 0;\n height: 75px;\n }\n\n [svelte-3539814272].dropzone, [svelte-3539814272] .dropzone {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n\n [svelte-3539814272].scrolling-container, [svelte-3539814272] .scrolling-container {\n transition: opacity 200ms ease-in;\n }\n\n [svelte-3539814272].dropzone--dragging .scrolling-container, [svelte-3539814272] .dropzone--dragging .scrolling-container {\n opacity: 0.4;\n }\n\n [svelte-3539814272].dropzone--dragging .dropzone, [svelte-3539814272] .dropzone--dragging .dropzone {\n top: -100px;\n }\n\n [svelte-3539814272].dropzone--large .dropzone, [svelte-3539814272] .dropzone--large .dropzone,\n [svelte-3539814272].dropzone--dragging .dropzone--large .dropzone, [svelte-3539814272] .dropzone--dragging .dropzone--large .dropzone {\n top: -200px;\n }\n\n [svelte-3539814272].icon, [svelte-3539814272] .icon {\n display: inline-block;\n width: 1em;\n height: 1em;\n stroke-width: 0;\n stroke: currentColor;\n fill: currentColor\n }\n\n [svelte-3539814272].clear-content svg, [svelte-3539814272] .clear-content svg {\n width: 14px;\n fill: #a0a0a0;\n position: relative;\n top: 1px;\n right: 2px;\n }\n\n [svelte-3539814272].clear-content:hover svg, [svelte-3539814272] .clear-content:hover svg {\n fill: #665b68;\n }\n";
17295
17301
  __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["b" /* appendNode */](style, document.head);
17296
17302
  }
17297
17303
 
@@ -17336,7 +17342,7 @@ function create_main_fragment(state, component) {
17336
17342
  },
17337
17343
 
17338
17344
  hydrate: function hydrate(nodes) {
17339
- __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](svg, 'svelte-2441907646', '');
17345
+ __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](svg, 'svelte-3539814272', '');
17340
17346
  __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](svg, 'style', "position: absolute; width: 0; height: 0; overflow: hidden");
17341
17347
  __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](svg, 'version', "1.1");
17342
17348
  __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](svg, 'xmlns', "http://www.w3.org/2000/svg");
@@ -17904,7 +17910,7 @@ function create_if_block_1(state, component) {
17904
17910
  },
17905
17911
 
17906
17912
  hydrate: function hydrate(nodes) {
17907
- __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](div, 'svelte-2441907646', '');
17913
+ __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](div, 'svelte-3539814272', '');
17908
17914
  div.className = "error-panel";
17909
17915
  h2.className = "blogvio-browser-title";
17910
17916
  a.href = "#";
@@ -18008,9 +18014,9 @@ function create_if_block_2(state, component) {
18008
18014
  },
18009
18015
 
18010
18016
  hydrate: function hydrate(nodes) {
18011
- __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](div, 'svelte-2441907646', '');
18017
+ __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](div, 'svelte-3539814272', '');
18012
18018
  div.className = "browser-nav";
18013
- __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](section, 'svelte-2441907646', '');
18019
+ __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](section, 'svelte-3539814272', '');
18014
18020
  section.className = section_class_value = state.dragging ? 'dropzone--dragging' : '';
18015
18021
  div_1.className = div_1_class_value = "dropzone_plchldr " + (!state.files.length ? 'dropzone--large' : '');
18016
18022
  },
@@ -18143,7 +18149,7 @@ function SvelteComponent(options) {
18143
18149
  this._yield = options._yield;
18144
18150
 
18145
18151
  this._torndown = false;
18146
- if (!document.getElementById("svelte-2441907646-style")) add_css();
18152
+ if (!document.getElementById("svelte-3539814272-style")) add_css();
18147
18153
  this._renderHooks = [];
18148
18154
 
18149
18155
  this._fragment = create_main_fragment(this._state, this);