mashlib 1.8.2-d32aa1cd → 1.8.3-6dd19a28

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/README.md CHANGED
@@ -122,7 +122,7 @@ Some packages have been moved and with them some functions too. Here we report o
122
122
 
123
123
  * There is no more `authn` as you might have known it in solid-ui pre mashlib version 1.7.18 (solid-ui 2.4.16).
124
124
  * Some functions in solid-ui which initially were found under `solid-ui/authn` are now under `solid-ui/login`.
125
- * Two functions were renamed:
125
+ * Three functions were renamed:
126
126
  * logInLoadPreferences -> ensureLoadedPreferences
127
127
  * logInLoadProfile -> ensureLoadedProfile
128
128
  * logIn -> ensureLoggedIn
package/dist/mashlib.js CHANGED
@@ -8985,10 +8985,10 @@ __webpack_require__.r(__webpack_exports__);
8985
8985
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8986
8986
  /* harmony export */ });
8987
8987
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
8988
- buildTime: "2022-04-15T08:12:28Z",
8989
- commit: "d32aa1cd126aa0cdf6f9eef2c4acea65a91d9b6c",
8988
+ buildTime: "2022-04-29T14:05:21Z",
8989
+ commit: "6dd19a2832f44262a0a827d85e9cdd0a3fbf87c8",
8990
8990
  npmInfo: {
8991
- mashlib: '1.8.2',
8991
+ mashlib: '1.8.3',
8992
8992
  npm: '6.14.16',
8993
8993
  ares: '1.18.1',
8994
8994
  brotli: '1.0.9',
@@ -101091,17 +101091,14 @@ var humanReadablePane = {
101091
101091
 
101092
101092
  div.setAttribute('class', 'docView');
101093
101093
  var element = ct === 'text/markdown' ? 'DIV' : 'IFRAME';
101094
- var frame = myDocument.createElement(element); // let dataUri
101095
- // render markdown to html
101094
+ var frame = myDocument.createElement(element); // render markdown to html
101096
101095
 
101097
101096
  var markdownHtml = function markdownHtml() {
101098
101097
  kb.fetcher.webOperation('GET', subject.uri).then(function (response) {
101099
101098
  var markdownText = response.responseText;
101100
101099
  var lines = Math.min(30, markdownText.split(/\n/).length + 5);
101101
101100
 
101102
- var res = _marked.marked.parse(markdownText); // dataUri = 'data:text/html;charset=utf-8,' + encodeURIComponent(res)
101103
- // iframe.setAttribute('src', dataUri)
101104
-
101101
+ var res = _marked.marked.parse(markdownText);
101105
101102
 
101106
101103
  frame.innerHTML = res;
101107
101104
  frame.setAttribute('class', 'doc');
@@ -101111,6 +101108,17 @@ var humanReadablePane = {
101111
101108
 
101112
101109
  if (ct === 'text/markdown') {
101113
101110
  markdownHtml();
101111
+ } else if (ct !== 'text/html') {
101112
+ // get with authenticated fetch
101113
+ kb.fetcher._fetch(subject.uri).then(function (response) {
101114
+ return response.blob();
101115
+ }).then(function (blob) {
101116
+ var objectURL = URL.createObjectURL(blob);
101117
+ frame.setAttribute('src', objectURL); // w640 h480 //
101118
+
101119
+ frame.setAttribute('class', 'doc');
101120
+ frame.setAttribute('style', "border: 1px solid; padding: 1em; height:120em; width:80em; resize: both; overflow: auto;");
101121
+ });
101114
101122
  } else {
101115
101123
  frame.setAttribute('src', subject.uri); // allow-same-origin
101116
101124
 
@@ -101118,7 +101126,7 @@ var humanReadablePane = {
101118
101126
  frame.setAttribute('style', 'resize = both; height:120em; width:80em;');
101119
101127
  } // @@ Note below - if we set ANY sandbox, then Chrome and Safari won't display it if it is PDF.
101120
101128
  // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
101121
- // You can;'t have any sandbox and allow plugins.
101129
+ // You can't have any sandbox and allow plugins.
101122
101130
  // We could sandbox only HTML files I suppose.
101123
101131
  // HTML5 bug: https://lists.w3.org/Archives/Public/public-html/2011Jun/0330.html
101124
101132
  // iframe.setAttribute('sandbox', 'allow-same-origin allow-forms'); // allow-scripts ?? no documents should be static
@@ -103717,7 +103725,7 @@ function _default(context) {
103717
103725
  thisOutline.showURI(about);
103718
103726
  var st = node.AJAR_statement; // show blue cross when the why of that triple is editable
103719
103727
 
103720
- if (typeof st === 'undefined') st = node.parentNode.AJAR_statement; // if (typeof st === 'undefined') return; // @@ Kludge? Click in the middle of nowhere
103728
+ if (typeof st === 'undefined' && node.parentNode) st = node.parentNode.AJAR_statement; // if (typeof st === 'undefined') return; // @@ Kludge? Click in the middle of nowhere
103721
103729
 
103722
103730
  if (st) {
103723
103731
  // don't do these for headers or base nodes
@@ -104237,7 +104245,8 @@ function _default(context) {
104237
104245
  // go to UserInput
104238
104246
 
104239
104247
 
104240
- var st = node.parentNode.AJAR_statement;
104248
+ var st;
104249
+ if (node.parentNode) st = node.parentNode.AJAR_statement;
104241
104250
  if (!st) return; // For example in the title TD of an expanded pane
104242
104251
 
104243
104252
  var _target = st.why;
@@ -104439,9 +104448,7 @@ function _default(context) {
104439
104448
  }
104440
104449
  }
104441
104450
 
104442
- if (subject.uri && !immediate && !UI.widgets.isAudio(subject) && !UI.widgets.isVideo(subject) && // Never parse videos as data
104443
- !kb.holds(subject, UI.ns.rdf('type'), $rdf.Util.mediaTypeClass('application/pdf'))) {
104444
- // or PDF
104451
+ if (subject.uri && !immediate && !UI.widgets.isAudio(subject) && !UI.widgets.isVideo(subject)) {
104445
104452
  // Wait till at least the main URI is loaded before expanding:
104446
104453
  sf.nowOrWhenFetched(subject.doc(), undefined, function (ok, body) {
104447
104454
  if (ok) {
@@ -111830,28 +111837,26 @@ Object.defineProperty(exports, "__esModule", ({
111830
111837
  }));
111831
111838
  exports["default"] = void 0;
111832
111839
  var _default = {
111833
- buildTime: "2022-04-14T19:51:41Z",
111834
- commit: "506c126345c03f6667cde9c6440753122186f955",
111840
+ buildTime: "2022-04-29T13:53:56Z",
111841
+ commit: "72ba3e0e42a989021c60f35e803689c7dd35fda1",
111835
111842
  npmInfo: {
111836
111843
  'solid-panes': '3.5.24',
111837
- npm: '8.3.1',
111838
- node: '16.14.0',
111839
- v8: '9.4.146.24-node.20',
111840
- uv: '1.43.0',
111841
- zlib: '1.2.11',
111844
+ npm: '6.14.13',
111845
+ ares: '1.17.1',
111842
111846
  brotli: '1.0.9',
111843
- ares: '1.18.1',
111844
- modules: '93',
111845
- nghttp2: '1.45.1',
111847
+ cldr: '39.0',
111848
+ icu: '69.1',
111849
+ llhttp: '2.1.3',
111850
+ modules: '83',
111846
111851
  napi: '8',
111847
- llhttp: '6.0.4',
111848
- openssl: '1.1.1m+quic',
111849
- cldr: '40.0',
111850
- icu: '70.1',
111851
- tz: '2021a3',
111852
- unicode: '14.0',
111853
- ngtcp2: '0.1.0-DEV',
111854
- nghttp3: '0.1.0-DEV'
111852
+ nghttp2: '1.42.0',
111853
+ node: '14.17.3',
111854
+ openssl: '1.1.1k',
111855
+ tz: '2021a',
111856
+ unicode: '13.0',
111857
+ uv: '1.41.0',
111858
+ v8: '8.4.371.23-node.67',
111859
+ zlib: '1.2.11'
111855
111860
  }
111856
111861
  };
111857
111862
  exports["default"] = _default;
@@ -155034,7 +155039,7 @@ const polyfillSupport = DEV_MODE
155034
155039
  polyfillSupport === null || polyfillSupport === void 0 ? void 0 : polyfillSupport(Template, ChildPart);
155035
155040
  // IMPORTANT: do not change the property name or the assignment expression.
155036
155041
  // This line will be used in regexes to search for lit-html usage.
155037
- ((_d = globalThis.litHtmlVersions) !== null && _d !== void 0 ? _d : (globalThis.litHtmlVersions = [])).push('2.2.2');
155042
+ ((_d = globalThis.litHtmlVersions) !== null && _d !== void 0 ? _d : (globalThis.litHtmlVersions = [])).push('2.2.3');
155038
155043
  if (DEV_MODE && globalThis.litHtmlVersions.length > 1) {
155039
155044
  issueWarning('multiple-versions', `Multiple versions of Lit loaded. ` +
155040
155045
  `Loading multiple versions is not recommended.`);