@widgetic/editor 3.10.48 → 3.10.49

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.48");
13350
+ this.el.attr('editorVersion', "3.10.49");
13351
13351
  }
13352
13352
 
13353
13353
 
@@ -17121,7 +17121,15 @@ var template = function () {
17121
17121
 
17122
17122
  // sort files by last modified date
17123
17123
  files = files.sort(function (a, b) {
17124
- return a.lastModified - b.lastModified;
17124
+ var x = a.lastModified;
17125
+ if (!x) x = 0;
17126
+
17127
+ var y = b.lastModified;
17128
+ if (!y) y = 0;
17129
+
17130
+ // console.log("x & y: ", x, y);
17131
+
17132
+ return x - y;
17125
17133
  });
17126
17134
  console.log("uploadedFiles after sort: ", files);
17127
17135
 
@@ -17200,7 +17208,7 @@ var template = function () {
17200
17208
  */
17201
17209
 
17202
17210
  _onUpdate: function _onUpdate(event) {
17203
- console.log("on Update Content:", event);
17211
+ // console.log("on Update Content:", event);
17204
17212
 
17205
17213
  // re-load uploaded files
17206
17214
  this.refresh();
@@ -17210,12 +17218,12 @@ var template = function () {
17210
17218
  file = _ref2[0],
17211
17219
  instanceId = _ref2[1];
17212
17220
 
17213
- console.log("on Upload Complete:", file, instanceId);
17221
+ // console.log("on Upload Complete:", file, instanceId);
17214
17222
 
17215
17223
  // toggle the file only if it's upload originated from this instance
17216
17224
  if (instanceId === this.get('instanceId')) this._toggleSelect(file, { afterUpload: true });
17217
17225
 
17218
- // sort files by upload date
17226
+ // reload files by upload date
17219
17227
  // this.refresh();
17220
17228
  }
17221
17229
  }
@@ -17224,8 +17232,8 @@ var template = function () {
17224
17232
 
17225
17233
  function add_css() {
17226
17234
  var style = __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["e" /* createElement */]('style');
17227
- style.id = "svelte-1522966996-style";
17228
- style.textContent = "\n section[svelte-1522966996], [svelte-1522966996] 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-1522966996]:focus, [svelte-1522966996] a:focus {\n outline: none;\n }\n\n [svelte-1522966996].error-panel, [svelte-1522966996] .error-panel {\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n text-align: center;\n padding-right: 20px;\n }\n\n [svelte-1522966996].browser-nav, [svelte-1522966996] .browser-nav {\n position: static;\n\n font-family: ProximaNova-Regular;\n font-size: 16px;\n color: #0055FF;\n }\n\n [svelte-1522966996].blogvio-browser-title, [svelte-1522966996] .blogvio-browser-title {\n margin-top: 0;\n font: 30px/60px \"ProximaNova-Regular\";\n color: #0055FF;\n }\n\n [svelte-1522966996].nano, [svelte-1522966996] .nano {\n flex: 1;\n }\n\n strong[svelte-1522966996], [svelte-1522966996] strong {\n color: #0055FF;\n }\n\n [svelte-1522966996].dropzone_plchldr, [svelte-1522966996] .dropzone_plchldr {\n position: relative;\n margin: 20px 20px 20px 0;\n height: 75px;\n }\n\n [svelte-1522966996].dropzone, [svelte-1522966996] .dropzone {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n\n [svelte-1522966996].scrolling-container, [svelte-1522966996] .scrolling-container {\n transition: opacity 200ms ease-in;\n }\n\n [svelte-1522966996].dropzone--dragging .scrolling-container, [svelte-1522966996] .dropzone--dragging .scrolling-container {\n opacity: 0.4;\n }\n\n [svelte-1522966996].dropzone--dragging .dropzone, [svelte-1522966996] .dropzone--dragging .dropzone {\n top: -100px;\n }\n\n [svelte-1522966996].dropzone--large .dropzone, [svelte-1522966996] .dropzone--large .dropzone,\n [svelte-1522966996].dropzone--dragging .dropzone--large .dropzone, [svelte-1522966996] .dropzone--dragging .dropzone--large .dropzone {\n top: -200px;\n }\n\n [svelte-1522966996].icon, [svelte-1522966996] .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-1522966996].clear-content svg, [svelte-1522966996] .clear-content svg {\n width: 14px;\n fill: #a0a0a0;\n position: relative;\n top: 1px;\n right: 2px;\n }\n\n [svelte-1522966996].clear-content:hover svg, [svelte-1522966996] .clear-content:hover svg {\n fill: #665b68;\n }\n";
17235
+ style.id = "svelte-712365636-style";
17236
+ style.textContent = "\n section[svelte-712365636], [svelte-712365636] 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-712365636]:focus, [svelte-712365636] a:focus {\n outline: none;\n }\n\n [svelte-712365636].error-panel, [svelte-712365636] .error-panel {\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n text-align: center;\n padding-right: 20px;\n }\n\n [svelte-712365636].browser-nav, [svelte-712365636] .browser-nav {\n position: static;\n\n font-family: ProximaNova-Regular;\n font-size: 16px;\n color: #0055FF;\n }\n\n [svelte-712365636].blogvio-browser-title, [svelte-712365636] .blogvio-browser-title {\n margin-top: 0;\n font: 30px/60px \"ProximaNova-Regular\";\n color: #0055FF;\n }\n\n [svelte-712365636].nano, [svelte-712365636] .nano {\n flex: 1;\n }\n\n strong[svelte-712365636], [svelte-712365636] strong {\n color: #0055FF;\n }\n\n [svelte-712365636].dropzone_plchldr, [svelte-712365636] .dropzone_plchldr {\n position: relative;\n margin: 20px 20px 20px 0;\n height: 75px;\n }\n\n [svelte-712365636].dropzone, [svelte-712365636] .dropzone {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n\n [svelte-712365636].scrolling-container, [svelte-712365636] .scrolling-container {\n transition: opacity 200ms ease-in;\n }\n\n [svelte-712365636].dropzone--dragging .scrolling-container, [svelte-712365636] .dropzone--dragging .scrolling-container {\n opacity: 0.4;\n }\n\n [svelte-712365636].dropzone--dragging .dropzone, [svelte-712365636] .dropzone--dragging .dropzone {\n top: -100px;\n }\n\n [svelte-712365636].dropzone--large .dropzone, [svelte-712365636] .dropzone--large .dropzone,\n [svelte-712365636].dropzone--dragging .dropzone--large .dropzone, [svelte-712365636] .dropzone--dragging .dropzone--large .dropzone {\n top: -200px;\n }\n\n [svelte-712365636].icon, [svelte-712365636] .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-712365636].clear-content svg, [svelte-712365636] .clear-content svg {\n width: 14px;\n fill: #a0a0a0;\n position: relative;\n top: 1px;\n right: 2px;\n }\n\n [svelte-712365636].clear-content:hover svg, [svelte-712365636] .clear-content:hover svg {\n fill: #665b68;\n }\n";
17229
17237
  __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["b" /* appendNode */](style, document.head);
17230
17238
  }
17231
17239
 
@@ -17270,7 +17278,7 @@ function create_main_fragment(state, component) {
17270
17278
  },
17271
17279
 
17272
17280
  hydrate: function hydrate(nodes) {
17273
- __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](svg, 'svelte-1522966996', '');
17281
+ __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](svg, 'svelte-712365636', '');
17274
17282
  __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](svg, 'style', "position: absolute; width: 0; height: 0; overflow: hidden");
17275
17283
  __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](svg, 'version', "1.1");
17276
17284
  __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](svg, 'xmlns', "http://www.w3.org/2000/svg");
@@ -17838,7 +17846,7 @@ function create_if_block_1(state, component) {
17838
17846
  },
17839
17847
 
17840
17848
  hydrate: function hydrate(nodes) {
17841
- __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](div, 'svelte-1522966996', '');
17849
+ __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](div, 'svelte-712365636', '');
17842
17850
  div.className = "error-panel";
17843
17851
  h2.className = "blogvio-browser-title";
17844
17852
  a.href = "#";
@@ -17942,9 +17950,9 @@ function create_if_block_2(state, component) {
17942
17950
  },
17943
17951
 
17944
17952
  hydrate: function hydrate(nodes) {
17945
- __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](div, 'svelte-1522966996', '');
17953
+ __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](div, 'svelte-712365636', '');
17946
17954
  div.className = "browser-nav";
17947
- __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](section, 'svelte-1522966996', '');
17955
+ __WEBPACK_IMPORTED_MODULE_4_svelte_shared_js__["p" /* setAttribute */](section, 'svelte-712365636', '');
17948
17956
  section.className = section_class_value = state.dragging ? 'dropzone--dragging' : '';
17949
17957
  div_1.className = div_1_class_value = "dropzone_plchldr " + (!state.files.length ? 'dropzone--large' : '');
17950
17958
  },
@@ -18077,7 +18085,7 @@ function SvelteComponent(options) {
18077
18085
  this._yield = options._yield;
18078
18086
 
18079
18087
  this._torndown = false;
18080
- if (!document.getElementById("svelte-1522966996-style")) add_css();
18088
+ if (!document.getElementById("svelte-712365636-style")) add_css();
18081
18089
  this._renderHooks = [];
18082
18090
 
18083
18091
  this._fragment = create_main_fragment(this._state, this);