mashlib 1.8.2 → 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/LICENSE.md +0 -0
- package/README.md +3 -2
- package/dist/browse.html +0 -0
- package/dist/databrowser.html +0 -0
- package/dist/mash.css +0 -0
- package/dist/mash.css.map +0 -0
- package/dist/mashlib.js +49 -46
- package/dist/mashlib.js.map +1 -1
- package/dist/mashlib.min.js +1 -1
- package/dist/mashlib.min.js.LICENSE.txt +0 -0
- package/dist/mashlib.min.js.map +1 -1
- package/package.json +10 -10
package/LICENSE.md
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -109,19 +109,20 @@ For backward compatibility reasons, there are now different ways to make use of
|
|
|
109
109
|
- the store (from solid-logic) can be used as `store` or `UI.store` or `panes.UI.store`
|
|
110
110
|
- rdflib is entirely acessible as `UI.rdf` or `panes.UI.rdf`
|
|
111
111
|
- the currentUser function is called as `authn.currentUser()` or `UI.auth.currentUser()` or `panes.UI.authn.currentUser()`
|
|
112
|
-
- to make use of the login pop-up, one needs to call the `UI.login.loginStatusBox` function
|
|
113
112
|
|
|
114
113
|
You can see example usage in the [SolidOS Databrowser Webapp code](https://github.com/solidos/mashlib/blob/main/static/browse.html#L11).
|
|
115
114
|
|
|
116
115
|
## Code changes due to moving authn from solid-ui to solid-logic
|
|
117
116
|
|
|
117
|
+
One function has been renamed and does not have a backwards-compatible fallback. To make use of the login pop-up, one needs to call the `UI.login.loginStatusBox` function. The old `UI.authn.loginStatusBox` function will no longer work from v1.8.0 onwards.
|
|
118
|
+
|
|
118
119
|
Some packages have been moved and with them some functions too. Here we report on these changes:
|
|
119
120
|
|
|
120
121
|
### Solid-ui & Solid-logic related:
|
|
121
122
|
|
|
122
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).
|
|
123
124
|
* Some functions in solid-ui which initially were found under `solid-ui/authn` are now under `solid-ui/login`.
|
|
124
|
-
*
|
|
125
|
+
* Three functions were renamed:
|
|
125
126
|
* logInLoadPreferences -> ensureLoadedPreferences
|
|
126
127
|
* logInLoadProfile -> ensureLoadedProfile
|
|
127
128
|
* logIn -> ensureLoggedIn
|
package/dist/browse.html
CHANGED
|
File without changes
|
package/dist/databrowser.html
CHANGED
|
File without changes
|
package/dist/mash.css
CHANGED
|
File without changes
|
package/dist/mash.css.map
CHANGED
|
File without changes
|
package/dist/mashlib.js
CHANGED
|
@@ -8985,28 +8985,26 @@ __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-
|
|
8989
|
-
commit: "
|
|
8988
|
+
buildTime: "2022-04-29T14:05:21Z",
|
|
8989
|
+
commit: "6dd19a2832f44262a0a827d85e9cdd0a3fbf87c8",
|
|
8990
8990
|
npmInfo: {
|
|
8991
|
-
mashlib: '1.8.
|
|
8992
|
-
npm: '
|
|
8993
|
-
node: '16.14.0',
|
|
8994
|
-
v8: '9.4.146.24-node.20',
|
|
8995
|
-
uv: '1.43.0',
|
|
8996
|
-
zlib: '1.2.11',
|
|
8997
|
-
brotli: '1.0.9',
|
|
8991
|
+
mashlib: '1.8.3',
|
|
8992
|
+
npm: '6.14.16',
|
|
8998
8993
|
ares: '1.18.1',
|
|
8999
|
-
|
|
9000
|
-
nghttp2: '1.45.1',
|
|
9001
|
-
napi: '8',
|
|
9002
|
-
llhttp: '6.0.4',
|
|
9003
|
-
openssl: '1.1.1m+quic',
|
|
8994
|
+
brotli: '1.0.9',
|
|
9004
8995
|
cldr: '40.0',
|
|
9005
8996
|
icu: '70.1',
|
|
8997
|
+
llhttp: '2.1.4',
|
|
8998
|
+
modules: '83',
|
|
8999
|
+
napi: '8',
|
|
9000
|
+
nghttp2: '1.42.0',
|
|
9001
|
+
node: '14.19.1',
|
|
9002
|
+
openssl: '1.1.1n',
|
|
9006
9003
|
tz: '2021a3',
|
|
9007
9004
|
unicode: '14.0',
|
|
9008
|
-
|
|
9009
|
-
|
|
9005
|
+
uv: '1.42.0',
|
|
9006
|
+
v8: '8.4.371.23-node.85',
|
|
9007
|
+
zlib: '1.2.11'
|
|
9010
9008
|
}
|
|
9011
9009
|
});
|
|
9012
9010
|
|
|
@@ -101093,17 +101091,14 @@ var humanReadablePane = {
|
|
|
101093
101091
|
|
|
101094
101092
|
div.setAttribute('class', 'docView');
|
|
101095
101093
|
var element = ct === 'text/markdown' ? 'DIV' : 'IFRAME';
|
|
101096
|
-
var frame = myDocument.createElement(element); //
|
|
101097
|
-
// render markdown to html
|
|
101094
|
+
var frame = myDocument.createElement(element); // render markdown to html
|
|
101098
101095
|
|
|
101099
101096
|
var markdownHtml = function markdownHtml() {
|
|
101100
101097
|
kb.fetcher.webOperation('GET', subject.uri).then(function (response) {
|
|
101101
101098
|
var markdownText = response.responseText;
|
|
101102
101099
|
var lines = Math.min(30, markdownText.split(/\n/).length + 5);
|
|
101103
101100
|
|
|
101104
|
-
var res = _marked.marked.parse(markdownText);
|
|
101105
|
-
// iframe.setAttribute('src', dataUri)
|
|
101106
|
-
|
|
101101
|
+
var res = _marked.marked.parse(markdownText);
|
|
101107
101102
|
|
|
101108
101103
|
frame.innerHTML = res;
|
|
101109
101104
|
frame.setAttribute('class', 'doc');
|
|
@@ -101113,6 +101108,17 @@ var humanReadablePane = {
|
|
|
101113
101108
|
|
|
101114
101109
|
if (ct === 'text/markdown') {
|
|
101115
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
|
+
});
|
|
101116
101122
|
} else {
|
|
101117
101123
|
frame.setAttribute('src', subject.uri); // allow-same-origin
|
|
101118
101124
|
|
|
@@ -101120,7 +101126,7 @@ var humanReadablePane = {
|
|
|
101120
101126
|
frame.setAttribute('style', 'resize = both; height:120em; width:80em;');
|
|
101121
101127
|
} // @@ Note below - if we set ANY sandbox, then Chrome and Safari won't display it if it is PDF.
|
|
101122
101128
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
|
|
101123
|
-
// You can
|
|
101129
|
+
// You can't have any sandbox and allow plugins.
|
|
101124
101130
|
// We could sandbox only HTML files I suppose.
|
|
101125
101131
|
// HTML5 bug: https://lists.w3.org/Archives/Public/public-html/2011Jun/0330.html
|
|
101126
101132
|
// iframe.setAttribute('sandbox', 'allow-same-origin allow-forms'); // allow-scripts ?? no documents should be static
|
|
@@ -103719,7 +103725,7 @@ function _default(context) {
|
|
|
103719
103725
|
thisOutline.showURI(about);
|
|
103720
103726
|
var st = node.AJAR_statement; // show blue cross when the why of that triple is editable
|
|
103721
103727
|
|
|
103722
|
-
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
|
|
103723
103729
|
|
|
103724
103730
|
if (st) {
|
|
103725
103731
|
// don't do these for headers or base nodes
|
|
@@ -104239,7 +104245,8 @@ function _default(context) {
|
|
|
104239
104245
|
// go to UserInput
|
|
104240
104246
|
|
|
104241
104247
|
|
|
104242
|
-
var st
|
|
104248
|
+
var st;
|
|
104249
|
+
if (node.parentNode) st = node.parentNode.AJAR_statement;
|
|
104243
104250
|
if (!st) return; // For example in the title TD of an expanded pane
|
|
104244
104251
|
|
|
104245
104252
|
var _target = st.why;
|
|
@@ -104441,9 +104448,7 @@ function _default(context) {
|
|
|
104441
104448
|
}
|
|
104442
104449
|
}
|
|
104443
104450
|
|
|
104444
|
-
if (subject.uri && !immediate && !UI.widgets.isAudio(subject) && !UI.widgets.isVideo(subject)
|
|
104445
|
-
!kb.holds(subject, UI.ns.rdf('type'), $rdf.Util.mediaTypeClass('application/pdf'))) {
|
|
104446
|
-
// or PDF
|
|
104451
|
+
if (subject.uri && !immediate && !UI.widgets.isAudio(subject) && !UI.widgets.isVideo(subject)) {
|
|
104447
104452
|
// Wait till at least the main URI is loaded before expanding:
|
|
104448
104453
|
sf.nowOrWhenFetched(subject.doc(), undefined, function (ok, body) {
|
|
104449
104454
|
if (ok) {
|
|
@@ -111832,28 +111837,26 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
111832
111837
|
}));
|
|
111833
111838
|
exports["default"] = void 0;
|
|
111834
111839
|
var _default = {
|
|
111835
|
-
buildTime: "2022-04-
|
|
111836
|
-
commit: "
|
|
111840
|
+
buildTime: "2022-04-29T13:53:56Z",
|
|
111841
|
+
commit: "72ba3e0e42a989021c60f35e803689c7dd35fda1",
|
|
111837
111842
|
npmInfo: {
|
|
111838
111843
|
'solid-panes': '3.5.24',
|
|
111839
|
-
npm: '
|
|
111840
|
-
|
|
111841
|
-
v8: '9.4.146.24-node.20',
|
|
111842
|
-
uv: '1.43.0',
|
|
111843
|
-
zlib: '1.2.11',
|
|
111844
|
+
npm: '6.14.13',
|
|
111845
|
+
ares: '1.17.1',
|
|
111844
111846
|
brotli: '1.0.9',
|
|
111845
|
-
|
|
111846
|
-
|
|
111847
|
-
|
|
111847
|
+
cldr: '39.0',
|
|
111848
|
+
icu: '69.1',
|
|
111849
|
+
llhttp: '2.1.3',
|
|
111850
|
+
modules: '83',
|
|
111848
111851
|
napi: '8',
|
|
111849
|
-
|
|
111850
|
-
|
|
111851
|
-
|
|
111852
|
-
|
|
111853
|
-
|
|
111854
|
-
|
|
111855
|
-
|
|
111856
|
-
|
|
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'
|
|
111857
111860
|
}
|
|
111858
111861
|
};
|
|
111859
111862
|
exports["default"] = _default;
|
|
@@ -155036,7 +155039,7 @@ const polyfillSupport = DEV_MODE
|
|
|
155036
155039
|
polyfillSupport === null || polyfillSupport === void 0 ? void 0 : polyfillSupport(Template, ChildPart);
|
|
155037
155040
|
// IMPORTANT: do not change the property name or the assignment expression.
|
|
155038
155041
|
// This line will be used in regexes to search for lit-html usage.
|
|
155039
|
-
((_d = globalThis.litHtmlVersions) !== null && _d !== void 0 ? _d : (globalThis.litHtmlVersions = [])).push('2.2.
|
|
155042
|
+
((_d = globalThis.litHtmlVersions) !== null && _d !== void 0 ? _d : (globalThis.litHtmlVersions = [])).push('2.2.3');
|
|
155040
155043
|
if (DEV_MODE && globalThis.litHtmlVersions.length > 1) {
|
|
155041
155044
|
issueWarning('multiple-versions', `Multiple versions of Lit loaded. ` +
|
|
155042
155045
|
`Loading multiple versions is not recommended.`);
|