solid-ui 2.4.21 → 2.4.22
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 +8 -8
- package/dist/main.js +215 -167
- package/dist/main.js.map +1 -1
- package/lib/acl/access-controller.js +2 -2
- package/lib/acl/access-controller.js.map +1 -1
- package/lib/acl/access-groups.d.ts +1 -1
- package/lib/acl/access-groups.js +1 -1
- package/lib/acl/access-groups.js.map +1 -1
- package/lib/acl/acl-control.d.ts +2 -2
- package/lib/acl/acl-control.js +5 -5
- package/lib/acl/acl-control.js.map +1 -1
- package/lib/acl/acl.d.ts +1 -1
- package/lib/acl/acl.js +1 -1
- package/lib/acl/acl.js.map +1 -1
- package/lib/acl/add-agent-buttons.d.ts +1 -1
- package/lib/acl/add-agent-buttons.js +1 -1
- package/lib/acl/add-agent-buttons.js.map +1 -1
- package/lib/acl/styles.d.ts +1 -1
- package/lib/acl/styles.js +1 -1
- package/lib/acl/styles.js.map +1 -1
- package/lib/chat/infinite.js.map +1 -1
- package/lib/iconBase.d.ts.map +1 -1
- package/lib/iconBase.js +2 -2
- package/lib/iconBase.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/jss/index.d.ts +2 -2
- package/lib/jss/index.js +2 -2
- package/lib/jss/index.js.map +1 -1
- package/lib/login/login.d.ts +57 -57
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +74 -72
- package/lib/login/login.js.map +1 -1
- package/lib/participation.js +1 -1
- package/lib/participation.js.map +1 -1
- package/lib/tabs.d.ts +1 -1
- package/lib/tabs.d.ts.map +1 -1
- package/lib/tabs.js +5 -3
- package/lib/tabs.js.map +1 -1
- package/lib/utils/headerFooterHelpers.d.ts.map +1 -1
- package/lib/utils/headerFooterHelpers.js +51 -30
- package/lib/utils/headerFooterHelpers.js.map +1 -1
- package/lib/versionInfo.d.ts +9 -11
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +16 -18
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/forms/autocomplete/language.js.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.js +1 -1
- package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
- package/package.json +7 -6
package/dist/main.js
CHANGED
|
@@ -219,7 +219,7 @@ var AccessController = /*#__PURE__*/function () {
|
|
|
219
219
|
value: function renderTemporaryStatus(message) {
|
|
220
220
|
var _this5 = this;
|
|
221
221
|
|
|
222
|
-
// @@ TODO Introduce better system for error notification to user https://github.com/
|
|
222
|
+
// @@ TODO Introduce better system for error notification to user https://github.com/solidos/mashlib/issues/87
|
|
223
223
|
this.statusElement.classList.add(this.classes.aclControlBoxStatusRevealed);
|
|
224
224
|
this.statusElement.innerText = message;
|
|
225
225
|
this.statusElement.classList.add(this.classes.temporaryStatusInit);
|
|
@@ -233,7 +233,7 @@ var AccessController = /*#__PURE__*/function () {
|
|
|
233
233
|
}, {
|
|
234
234
|
key: "renderStatus",
|
|
235
235
|
value: function renderStatus(message) {
|
|
236
|
-
// @@ TODO Introduce better system for error notification to user https://github.com/
|
|
236
|
+
// @@ TODO Introduce better system for error notification to user https://github.com/solidos/mashlib/issues/87
|
|
237
237
|
this.statusElement.classList.toggle(this.classes.aclControlBoxStatusRevealed, !!message);
|
|
238
238
|
this.statusElement.innerText = message;
|
|
239
239
|
}
|
|
@@ -555,7 +555,7 @@ var EXPLANATION = {
|
|
|
555
555
|
|
|
556
556
|
/**
|
|
557
557
|
* Renders the table of Owners, Editors, Posters, Submitters, Viewers
|
|
558
|
-
* for https://github.com/
|
|
558
|
+
* for https://github.com/solidos/userguide/blob/main/views/sharing/userguide.md
|
|
559
559
|
*/
|
|
560
560
|
var AccessGroups = /*#__PURE__*/function () {
|
|
561
561
|
// @@ was LiveStore but does not need to be connected to web
|
|
@@ -1058,7 +1058,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
1058
1058
|
|
|
1059
1059
|
/**
|
|
1060
1060
|
* Functions for rendering the ACL User Interface.
|
|
1061
|
-
* See https://github.com/
|
|
1061
|
+
* See https://github.com/solidos/userguide/blob/main/views/sharing/userguide.md#view
|
|
1062
1062
|
* for a screenshot.
|
|
1063
1063
|
* @packageDocumentation
|
|
1064
1064
|
*/
|
|
@@ -1155,7 +1155,7 @@ function shortNameForFolder(x) {
|
|
|
1155
1155
|
if (slash >= 0) {
|
|
1156
1156
|
str = str.slice(slash + 1);
|
|
1157
1157
|
} // Return the folder's filename, or '/' if nothing found
|
|
1158
|
-
// (but see https://github.com/
|
|
1158
|
+
// (but see https://github.com/solidos/solid-ui/issues/196
|
|
1159
1159
|
// regarding whether this happens at the domain root or
|
|
1160
1160
|
// not)
|
|
1161
1161
|
|
|
@@ -1168,7 +1168,7 @@ function shortNameForFolder(x) {
|
|
|
1168
1168
|
* Presumably the '5' is a version number of some sort,
|
|
1169
1169
|
* but all we know is it was already called ACLControlBox5
|
|
1170
1170
|
* when it was introduced into solid-ui in
|
|
1171
|
-
* https://github.com/
|
|
1171
|
+
* https://github.com/solidos/solid-ui/commit/948b874bd93e7bf5160e6e224821b888f07d15f3#diff-4192a29f38a0ababd563b36b47eba5bbR54
|
|
1172
1172
|
*/
|
|
1173
1173
|
|
|
1174
1174
|
|
|
@@ -1285,13 +1285,13 @@ function getDirectory(doc) {
|
|
|
1285
1285
|
function isStorage(doc, aclDoc, store) {
|
|
1286
1286
|
// @@ TODO: The methods used for targetIsStorage are HACKs - it should not be relied upon, and work is
|
|
1287
1287
|
// @@ underway to standardize a behavior that does not rely upon this hack
|
|
1288
|
-
// @@ hopefully fixed as part of https://github.com/
|
|
1288
|
+
// @@ hopefully fixed as part of https://github.com/solidos/data-interoperability-panel/issues/10
|
|
1289
1289
|
return store.holds(doc, ns.rdf('type'), ns.space('Storage'), aclDoc);
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
1292
|
function hasProtectedAcl(targetDoc) {
|
|
1293
1293
|
// @@ TODO: This is hacky way of knowing whether or not a certain ACL file can be removed
|
|
1294
|
-
// Hopefully we'll find a better, standardized solution to this - https://github.com/
|
|
1294
|
+
// Hopefully we'll find a better, standardized solution to this - https://github.com/solidos/specification/issues/37
|
|
1295
1295
|
return targetDoc.uri === targetDoc.site().uri;
|
|
1296
1296
|
}
|
|
1297
1297
|
/** @internal */
|
|
@@ -1360,7 +1360,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
1360
1360
|
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Non-UI functions for access control.
|
|
1363
|
-
* See https://github.com/
|
|
1363
|
+
* See https://github.com/solidos/web-access-control-spec
|
|
1364
1364
|
* for the spec that defines how ACL documents work.
|
|
1365
1365
|
* @packageDocumentation
|
|
1366
1366
|
*/
|
|
@@ -1962,7 +1962,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
1962
1962
|
|
|
1963
1963
|
/**
|
|
1964
1964
|
* Renders the Sharing pane's "+" button and the menus behind it,
|
|
1965
|
-
* see https://github.com/
|
|
1965
|
+
* see https://github.com/solidos/userguide/blob/main/views/sharing/userguide.md#add
|
|
1966
1966
|
*/
|
|
1967
1967
|
var AddAgentButtons = /*#__PURE__*/function () {
|
|
1968
1968
|
function AddAgentButtons(groupList) {
|
|
@@ -2531,7 +2531,7 @@ exports.styles = void 0;
|
|
|
2531
2531
|
|
|
2532
2532
|
/**
|
|
2533
2533
|
* Contains CSS styles for the Sharing pane,
|
|
2534
|
-
* see https://github.com/
|
|
2534
|
+
* see https://github.com/solidos/userguide/blob/main/views/sharing/userguide.md
|
|
2535
2535
|
* @packageDocumentation
|
|
2536
2536
|
*/
|
|
2537
2537
|
var styles = {
|
|
@@ -7102,11 +7102,11 @@ var _debug = __webpack_require__(/*! ./debug */ "./lib/debug.js");
|
|
|
7102
7102
|
*
|
|
7103
7103
|
* You can also use it if you want to just run a mashlib whhich takes its
|
|
7104
7104
|
* icons seved by other than github.
|
|
7105
|
-
*/
|
|
7105
|
+
*/
|
|
7106
7106
|
|
|
7107
7107
|
/* eslint-disable multiline-ternary */
|
|
7108
7108
|
// Do not export. lways us this module to find the icons, as it varies
|
|
7109
|
-
var iconsOnGithub = 'https://
|
|
7109
|
+
var iconsOnGithub = 'https://solidos.github.io/solid-ui/src';
|
|
7110
7110
|
var icons = module.scriptURI // Firefox extension
|
|
7111
7111
|
? {
|
|
7112
7112
|
iconBase: module.scriptURI.slice(0, module.scriptURI.lastIndexOf('/')) + '/icons/',
|
|
@@ -7162,7 +7162,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
7162
7162
|
SOFTWARE.
|
|
7163
7163
|
|
|
7164
7164
|
If you would like to know more about the solid Solid project, please see
|
|
7165
|
-
https://github.com/
|
|
7165
|
+
https://github.com/solidos/solid
|
|
7166
7166
|
*/
|
|
7167
7167
|
|
|
7168
7168
|
/**
|
|
@@ -7436,7 +7436,7 @@ var stylesheetsMap = new Map();
|
|
|
7436
7436
|
/**
|
|
7437
7437
|
* returns a StyleSheet object.
|
|
7438
7438
|
* See https://cssinjs.org/ for more info about JSS.
|
|
7439
|
-
* (despite the name, see https://github.com/
|
|
7439
|
+
* (despite the name, see https://github.com/solidos/solid-ui/issues/199)
|
|
7440
7440
|
*/
|
|
7441
7441
|
|
|
7442
7442
|
function getClasses(insertionPoint, styles) {
|
|
@@ -7446,7 +7446,7 @@ function getClasses(insertionPoint, styles) {
|
|
|
7446
7446
|
/**
|
|
7447
7447
|
* returns a JSS object.
|
|
7448
7448
|
* See https://cssinjs.org/ for more info about JSS.
|
|
7449
|
-
* (despite the name, see https://github.com/
|
|
7449
|
+
* (despite the name, see https://github.com/solidos/solid-ui/issues/199)
|
|
7450
7450
|
*/
|
|
7451
7451
|
|
|
7452
7452
|
|
|
@@ -7783,6 +7783,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
7783
7783
|
|
|
7784
7784
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
7785
7785
|
|
|
7786
|
+
/* eslint-disable camelcase */
|
|
7787
|
+
|
|
7786
7788
|
/**
|
|
7787
7789
|
* Signing in, signing up, profile and preferences reloading
|
|
7788
7790
|
* Type index management
|
|
@@ -7809,10 +7811,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
7809
7811
|
*/
|
|
7810
7812
|
|
|
7811
7813
|
/**
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7814
|
+
* Resolves with the logged in user's WebID
|
|
7815
|
+
*
|
|
7816
|
+
* @param context
|
|
7817
|
+
*/
|
|
7816
7818
|
// used to be logIn
|
|
7817
7819
|
function ensureLoggedIn(context) {
|
|
7818
7820
|
var me = _solidLogic.authn.currentUser();
|
|
@@ -8006,11 +8008,11 @@ function ensureLoadedProfile(_x3) {
|
|
|
8006
8008
|
return _ensureLoadedProfile.apply(this, arguments);
|
|
8007
8009
|
}
|
|
8008
8010
|
/**
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8011
|
+
* Returns promise of context with arrays of symbols
|
|
8012
|
+
*
|
|
8013
|
+
* 2016-12-11 change to include forClass arc a la
|
|
8014
|
+
* https://github.com/solid/solid/blob/main/proposals/data-discovery.md
|
|
8015
|
+
*/
|
|
8014
8016
|
|
|
8015
8017
|
|
|
8016
8018
|
function _ensureLoadedProfile() {
|
|
@@ -8078,8 +8080,8 @@ function findAppInstances(_x4, _x5, _x6) {
|
|
|
8078
8080
|
return _findAppInstances.apply(this, arguments);
|
|
8079
8081
|
}
|
|
8080
8082
|
/**
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
+
* UI to control registration of instance
|
|
8084
|
+
*/
|
|
8083
8085
|
|
|
8084
8086
|
|
|
8085
8087
|
function _findAppInstances() {
|
|
@@ -8228,8 +8230,8 @@ function registrationControl(_x7, _x8, _x9) {
|
|
|
8228
8230
|
return _registrationControl.apply(this, arguments);
|
|
8229
8231
|
}
|
|
8230
8232
|
/**
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
+
* UI to List at all registered things
|
|
8234
|
+
*/
|
|
8233
8235
|
|
|
8234
8236
|
|
|
8235
8237
|
function _registrationControl() {
|
|
@@ -8455,14 +8457,14 @@ function getDefaultSignInButtonStyle() {
|
|
|
8455
8457
|
return 'padding: 1em; border-radius:0.5em; font-size: 100%;';
|
|
8456
8458
|
}
|
|
8457
8459
|
/**
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8460
|
+
* Bootstrapping identity
|
|
8461
|
+
* (Called by `loginStatusBox()`)
|
|
8462
|
+
*
|
|
8463
|
+
* @param dom
|
|
8464
|
+
* @param setUserCallback
|
|
8465
|
+
*
|
|
8466
|
+
* @returns
|
|
8467
|
+
*/
|
|
8466
8468
|
|
|
8467
8469
|
|
|
8468
8470
|
function signInOrSignUpBox(dom, setUserCallback) {
|
|
@@ -8540,8 +8542,8 @@ function signInOrSignUpBox(dom, setUserCallback) {
|
|
|
8540
8542
|
|
|
8541
8543
|
function renderSignInPopup(dom) {
|
|
8542
8544
|
/**
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
+
* Issuer Menu
|
|
8546
|
+
*/
|
|
8545
8547
|
var issuerPopup = dom.createElement('div');
|
|
8546
8548
|
issuerPopup.setAttribute('style', 'position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center;');
|
|
8547
8549
|
dom.body.appendChild(issuerPopup);
|
|
@@ -8555,7 +8557,7 @@ function renderSignInPopup(dom) {
|
|
|
8555
8557
|
issuerPopupBoxLabel.setAttribute('style', 'margin-right: 5px; font-weight: 800');
|
|
8556
8558
|
issuerPopupBoxLabel.innerText = 'Select an identity provider';
|
|
8557
8559
|
var issuerPopupBoxCloseButton = dom.createElement('button');
|
|
8558
|
-
issuerPopupBoxCloseButton.innerHTML = '<img src="https://
|
|
8560
|
+
issuerPopupBoxCloseButton.innerHTML = '<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">';
|
|
8559
8561
|
issuerPopupBoxCloseButton.setAttribute('style', 'background-color: transparent; border: none;');
|
|
8560
8562
|
issuerPopupBoxCloseButton.addEventListener('click', function () {
|
|
8561
8563
|
issuerPopup.remove();
|
|
@@ -8608,8 +8610,8 @@ function renderSignInPopup(dom) {
|
|
|
8608
8610
|
};
|
|
8609
8611
|
}();
|
|
8610
8612
|
/**
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
+
* Text-based idp selection
|
|
8614
|
+
*/
|
|
8613
8615
|
|
|
8614
8616
|
|
|
8615
8617
|
var issuerTextContainer = dom.createElement('div');
|
|
@@ -8636,8 +8638,8 @@ function renderSignInPopup(dom) {
|
|
|
8636
8638
|
issuerTextContainer.appendChild(issuerTextInputContainer);
|
|
8637
8639
|
issuerPopupBox.appendChild(issuerTextContainer);
|
|
8638
8640
|
/**
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
+
* Button-based idp selection
|
|
8642
|
+
*/
|
|
8641
8643
|
|
|
8642
8644
|
var issuerButtonContainer = dom.createElement('div');
|
|
8643
8645
|
issuerButtonContainer.setAttribute('style', "\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");
|
|
@@ -8657,15 +8659,15 @@ function renderSignInPopup(dom) {
|
|
|
8657
8659
|
issuerPopupBox.appendChild(issuerButtonContainer);
|
|
8658
8660
|
}
|
|
8659
8661
|
/**
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8662
|
+
* Login status box
|
|
8663
|
+
*
|
|
8664
|
+
* A big sign-up/sign in box or a logout box depending on the state
|
|
8665
|
+
*
|
|
8666
|
+
* @param dom
|
|
8667
|
+
* @param listener
|
|
8668
|
+
*
|
|
8669
|
+
* @returns
|
|
8670
|
+
*/
|
|
8669
8671
|
|
|
8670
8672
|
|
|
8671
8673
|
function loginStatusBox(dom) {
|
|
@@ -8826,28 +8828,28 @@ _solidLogic.authSession.onLogout( /*#__PURE__*/(0, _asyncToGenerator2["default"]
|
|
|
8826
8828
|
}, _callee2, null, [[2, 17]]);
|
|
8827
8829
|
})));
|
|
8828
8830
|
/**
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8831
|
+
* Workspace selection etc
|
|
8832
|
+
* See https://github.com/solidos/userguide/issues/16
|
|
8833
|
+
*/
|
|
8832
8834
|
|
|
8833
8835
|
/**
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8836
|
+
* Returns a UI object which, if it selects a workspace,
|
|
8837
|
+
* will callback(workspace, newBase).
|
|
8838
|
+
* See https://github.com/solidos/userguide/issues/16 for more info on workspaces.
|
|
8839
|
+
*
|
|
8840
|
+
* If necessary, will get an account, preference file, etc. In sequence:
|
|
8841
|
+
*
|
|
8842
|
+
* - If not logged in, log in.
|
|
8843
|
+
* - Load preference file
|
|
8844
|
+
* - Prompt user for workspaces
|
|
8845
|
+
* - Allows the user to just type in a URI by hand
|
|
8846
|
+
*
|
|
8847
|
+
* Calls back with the workspace and the base URI
|
|
8848
|
+
*
|
|
8849
|
+
* @param dom
|
|
8850
|
+
* @param appDetails
|
|
8851
|
+
* @param callbackWS
|
|
8852
|
+
*/
|
|
8851
8853
|
|
|
8852
8854
|
|
|
8853
8855
|
function selectWorkspace(dom, appDetails, callbackWS) {
|
|
@@ -9110,21 +9112,21 @@ function selectWorkspace(dom, appDetails, callbackWS) {
|
|
|
9110
9112
|
} // selectWorkspace
|
|
9111
9113
|
|
|
9112
9114
|
/**
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9115
|
+
* Creates a new instance of an app.
|
|
9116
|
+
*
|
|
9117
|
+
* An instance of an app could be e.g. an issue tracker for a given project,
|
|
9118
|
+
* or a chess game, or calendar, or a health/fitness record for a person.
|
|
9119
|
+
*
|
|
9120
|
+
* Note that this use of the term 'app' refers more to entries in the user's
|
|
9121
|
+
* type index than to actual software applications that use the personal data
|
|
9122
|
+
* to which these entries point.
|
|
9123
|
+
*
|
|
9124
|
+
* @param dom
|
|
9125
|
+
* @param appDetails
|
|
9126
|
+
* @param callback
|
|
9127
|
+
*
|
|
9128
|
+
* @returns A div with a button in it for making a new app instance
|
|
9129
|
+
*/
|
|
9128
9130
|
|
|
9129
9131
|
|
|
9130
9132
|
function newAppInstance(dom, appDetails, callback) {
|
|
@@ -11405,7 +11407,7 @@ function participationObject(subject, padDoc, me) {
|
|
|
11405
11407
|
});
|
|
11406
11408
|
|
|
11407
11409
|
if (parps.length > 1) {
|
|
11408
|
-
// This can happen. https://github.com/
|
|
11410
|
+
// This can happen. https://github.com/solidos/chat-pane/issues/71
|
|
11409
11411
|
var candidates = [];
|
|
11410
11412
|
|
|
11411
11413
|
var _iterator = _createForOfIteratorHelper(parps),
|
|
@@ -13750,7 +13752,7 @@ var TabElement = /*#__PURE__*/function (_HTMLElement3) {
|
|
|
13750
13752
|
/**
|
|
13751
13753
|
* Use this widget to generate tabs from triples set in the global store.
|
|
13752
13754
|
*
|
|
13753
|
-
* [Here you can see examples of the tabs](https://
|
|
13755
|
+
* [Here you can see examples of the tabs](https://solidos.github.io/solid-ui/examples/tabs/).
|
|
13754
13756
|
*
|
|
13755
13757
|
* It assumes that items to use for tabs will be in a collection by default,
|
|
13756
13758
|
* e.g.:
|
|
@@ -13930,7 +13932,9 @@ function tabWidget(options) {
|
|
|
13930
13932
|
var selectedTabURI = options.selectedTab.uri;
|
|
13931
13933
|
var selectedTab1 = Array.from(tabContainer.children) // @ts-ignore
|
|
13932
13934
|
.find(function (tab) {
|
|
13933
|
-
return tab.subject &&
|
|
13935
|
+
return tab.subject && // @ts-ignore
|
|
13936
|
+
tab.subject.uri && // @ts-ignore
|
|
13937
|
+
tab.subject.uri === selectedTabURI;
|
|
13934
13938
|
});
|
|
13935
13939
|
var tab = selectedTab1 || selectedTab0 || tabContainer.children[0];
|
|
13936
13940
|
var clickMe = tab.firstChild; // @ts-ignore
|
|
@@ -13945,7 +13949,7 @@ function tabWidget(options) {
|
|
|
13945
13949
|
function addCancelButton(tabContainer) {
|
|
13946
13950
|
if (tabContainer.dataset.onCloseSet) {
|
|
13947
13951
|
// @@ TODO: this is only here to make the browser tests work
|
|
13948
|
-
// Discussion at https://github.com/
|
|
13952
|
+
// Discussion at https://github.com/solidos/solid-ui/pull/110#issuecomment-527080663
|
|
13949
13953
|
var existingCancelButton = tabContainer.querySelector('.unstyled');
|
|
13950
13954
|
tabContainer.removeChild(existingCancelButton);
|
|
13951
13955
|
}
|
|
@@ -14234,94 +14238,115 @@ function getPodOwner(_x, _x2) {
|
|
|
14234
14238
|
|
|
14235
14239
|
function _getPodOwner() {
|
|
14236
14240
|
_getPodOwner = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(pod, store) {
|
|
14237
|
-
var podOwner, guess;
|
|
14241
|
+
var response, containerTurtle, podOwner, guess;
|
|
14238
14242
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
14239
14243
|
while (1) {
|
|
14240
14244
|
switch (_context.prev = _context.next) {
|
|
14241
14245
|
case 0:
|
|
14242
14246
|
_context.prev = 0;
|
|
14243
|
-
|
|
14244
|
-
store.
|
|
14245
|
-
|
|
14246
|
-
|
|
14247
|
+
|
|
14248
|
+
if (store.any(pod, null, _.ns.ldp('Container'), pod)) {
|
|
14249
|
+
_context.next = 7;
|
|
14250
|
+
break;
|
|
14251
|
+
}
|
|
14252
|
+
|
|
14253
|
+
_context.next = 4;
|
|
14254
|
+
return store.fetcher.webOperation('GET', pod.uri, store.fetcher.initFetchOptions(pod.uri, {
|
|
14255
|
+
headers: {
|
|
14256
|
+
accept: 'text/turtle'
|
|
14257
|
+
}
|
|
14258
|
+
}));
|
|
14247
14259
|
|
|
14248
14260
|
case 4:
|
|
14249
|
-
|
|
14261
|
+
response = _context.sent;
|
|
14262
|
+
containerTurtle = response.responseText;
|
|
14263
|
+
(0, _rdflib.parse)(containerTurtle, store, pod.uri, 'text/turtle');
|
|
14264
|
+
|
|
14265
|
+
case 7:
|
|
14266
|
+
_context.next = 13;
|
|
14267
|
+
break;
|
|
14268
|
+
|
|
14269
|
+
case 9:
|
|
14270
|
+
_context.prev = 9;
|
|
14250
14271
|
_context.t0 = _context["catch"](0);
|
|
14251
14272
|
console.error('Error loading pod ' + pod + ': ' + _context.t0);
|
|
14252
14273
|
return _context.abrupt("return", null);
|
|
14253
14274
|
|
|
14254
|
-
case
|
|
14275
|
+
case 13:
|
|
14255
14276
|
if (store.holds(pod, _.ns.rdf('type'), _.ns.space('Storage'), pod)) {
|
|
14256
|
-
_context.next =
|
|
14277
|
+
_context.next = 16;
|
|
14257
14278
|
break;
|
|
14258
14279
|
}
|
|
14259
14280
|
|
|
14260
14281
|
console.warn('Pod ' + pod + ' does not declare itself as a space:Storage');
|
|
14261
14282
|
return _context.abrupt("return", null);
|
|
14262
14283
|
|
|
14263
|
-
case
|
|
14284
|
+
case 16:
|
|
14264
14285
|
podOwner = store.any(pod, _.ns.solid('owner'), null, pod) || store.any(null, _.ns.space('storage'), pod, pod);
|
|
14265
14286
|
|
|
14266
14287
|
if (!podOwner) {
|
|
14267
|
-
_context.next =
|
|
14288
|
+
_context.next = 31;
|
|
14268
14289
|
break;
|
|
14269
14290
|
}
|
|
14270
14291
|
|
|
14271
|
-
_context.prev =
|
|
14272
|
-
// @ts-ignore LiveStore always has fetcher
|
|
14273
|
-
store.fetcher.load(podOwner.doc());
|
|
14292
|
+
_context.prev = 18;
|
|
14274
14293
|
_context.next = 21;
|
|
14294
|
+
return store.fetcher.load(podOwner.doc());
|
|
14295
|
+
|
|
14296
|
+
case 21:
|
|
14297
|
+
_context.next = 27;
|
|
14275
14298
|
break;
|
|
14276
14299
|
|
|
14277
|
-
case
|
|
14278
|
-
_context.prev =
|
|
14279
|
-
_context.t1 = _context["catch"](
|
|
14300
|
+
case 23:
|
|
14301
|
+
_context.prev = 23;
|
|
14302
|
+
_context.t1 = _context["catch"](18);
|
|
14280
14303
|
console.warn('Unable to load profile of pod owner ' + podOwner);
|
|
14281
14304
|
return _context.abrupt("return", null);
|
|
14282
14305
|
|
|
14283
|
-
case
|
|
14306
|
+
case 27:
|
|
14284
14307
|
if (!store.holds(podOwner, _.ns.space('storage'), pod, podOwner.doc())) {
|
|
14285
14308
|
console.warn("Pod owner ".concat(podOwner, " does NOT list pod ").concat(pod, " as their storage"));
|
|
14286
14309
|
}
|
|
14287
14310
|
|
|
14288
14311
|
return _context.abrupt("return", podOwner);
|
|
14289
14312
|
|
|
14290
|
-
case
|
|
14313
|
+
case 31:
|
|
14291
14314
|
// pod owner not declared in pod
|
|
14292
14315
|
// @@ TODO: This is given the structure that NSS provides
|
|
14293
14316
|
// This is a massive guess. For old pods which don't have owner link
|
|
14294
14317
|
guess = (0, _rdflib.sym)("".concat(pod.uri, "profile/card#me"));
|
|
14295
|
-
_context.prev =
|
|
14296
|
-
|
|
14297
|
-
store.fetcher.load(guess);
|
|
14298
|
-
|
|
14318
|
+
_context.prev = 32;
|
|
14319
|
+
_context.next = 35;
|
|
14320
|
+
return store.fetcher.load(guess);
|
|
14321
|
+
|
|
14322
|
+
case 35:
|
|
14323
|
+
_context.next = 41;
|
|
14299
14324
|
break;
|
|
14300
14325
|
|
|
14301
|
-
case
|
|
14302
|
-
_context.prev =
|
|
14303
|
-
_context.t2 = _context["catch"](
|
|
14326
|
+
case 37:
|
|
14327
|
+
_context.prev = 37;
|
|
14328
|
+
_context.t2 = _context["catch"](32);
|
|
14304
14329
|
console.error('Ooops. Guessed wrong pod owner webid {$guess} : can\'t load it.');
|
|
14305
14330
|
return _context.abrupt("return", null);
|
|
14306
14331
|
|
|
14307
|
-
case
|
|
14332
|
+
case 41:
|
|
14308
14333
|
if (!store.holds(guess, _.ns.space('storage'), pod, guess.doc())) {
|
|
14309
|
-
_context.next =
|
|
14334
|
+
_context.next = 44;
|
|
14310
14335
|
break;
|
|
14311
14336
|
}
|
|
14312
14337
|
|
|
14313
14338
|
console.warn('Using guessed pod owner webid but it links back.');
|
|
14314
14339
|
return _context.abrupt("return", guess);
|
|
14315
14340
|
|
|
14316
|
-
case
|
|
14341
|
+
case 44:
|
|
14317
14342
|
return _context.abrupt("return", null);
|
|
14318
14343
|
|
|
14319
|
-
case
|
|
14344
|
+
case 45:
|
|
14320
14345
|
case "end":
|
|
14321
14346
|
return _context.stop();
|
|
14322
14347
|
}
|
|
14323
14348
|
}
|
|
14324
|
-
}, _callee, null, [[0,
|
|
14349
|
+
}, _callee, null, [[0, 9], [18, 23], [32, 37]]);
|
|
14325
14350
|
}));
|
|
14326
14351
|
return _getPodOwner.apply(this, arguments);
|
|
14327
14352
|
}
|
|
@@ -15167,28 +15192,26 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
15167
15192
|
}));
|
|
15168
15193
|
exports.versionInfo = void 0;
|
|
15169
15194
|
var versionInfo = {
|
|
15170
|
-
buildTime: '2022-
|
|
15171
|
-
commit: '
|
|
15195
|
+
buildTime: '2022-04-14T16:35:17Z',
|
|
15196
|
+
commit: 'deb2e922d6e6ae79a8dc9b2702fefa134ba9c14a',
|
|
15172
15197
|
npmInfo: {
|
|
15173
15198
|
'solid-ui': '2.4.21',
|
|
15174
|
-
npm: '
|
|
15175
|
-
|
|
15176
|
-
v8: '9.4.146.24-node.20',
|
|
15177
|
-
uv: '1.43.0',
|
|
15178
|
-
zlib: '1.2.11',
|
|
15199
|
+
npm: '6.14.13',
|
|
15200
|
+
ares: '1.17.1',
|
|
15179
15201
|
brotli: '1.0.9',
|
|
15180
|
-
|
|
15181
|
-
|
|
15182
|
-
|
|
15202
|
+
cldr: '39.0',
|
|
15203
|
+
icu: '69.1',
|
|
15204
|
+
llhttp: '2.1.3',
|
|
15205
|
+
modules: '83',
|
|
15183
15206
|
napi: '8',
|
|
15184
|
-
|
|
15185
|
-
|
|
15186
|
-
|
|
15187
|
-
|
|
15188
|
-
|
|
15189
|
-
|
|
15190
|
-
|
|
15191
|
-
|
|
15207
|
+
nghttp2: '1.42.0',
|
|
15208
|
+
node: '14.17.3',
|
|
15209
|
+
openssl: '1.1.1k',
|
|
15210
|
+
tz: '2021a',
|
|
15211
|
+
unicode: '13.0',
|
|
15212
|
+
uv: '1.41.0',
|
|
15213
|
+
v8: '8.4.371.23-node.67',
|
|
15214
|
+
zlib: '1.2.11'
|
|
15192
15215
|
}
|
|
15193
15216
|
};
|
|
15194
15217
|
exports.versionInfo = versionInfo;
|
|
@@ -20753,7 +20776,7 @@ function queryESCODataByName(_x, _x2, _x3) {
|
|
|
20753
20776
|
*
|
|
20754
20777
|
* Wikidata bug: https://phabricator.wikimedia.org/T283962
|
|
20755
20778
|
* This will not be needed whn that WDQS bug fixed.
|
|
20756
|
-
* This is aptured in https://github.com/
|
|
20779
|
+
* This is aptured in https://github.com/solidos/solid-ui/issues/403
|
|
20757
20780
|
*/
|
|
20758
20781
|
|
|
20759
20782
|
|
|
@@ -25726,6 +25749,31 @@ function freeze(object, oc) {
|
|
|
25726
25749
|
return oc && typeof oc.freeze === 'function' ? oc.freeze(object) : object
|
|
25727
25750
|
}
|
|
25728
25751
|
|
|
25752
|
+
/**
|
|
25753
|
+
* Since we can not rely on `Object.assign` we provide a simplified version
|
|
25754
|
+
* that is sufficient for our needs.
|
|
25755
|
+
*
|
|
25756
|
+
* @param {Object} target
|
|
25757
|
+
* @param {Object | null | undefined} source
|
|
25758
|
+
*
|
|
25759
|
+
* @returns {Object} target
|
|
25760
|
+
* @throws TypeError if target is not an object
|
|
25761
|
+
*
|
|
25762
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
|
|
25763
|
+
* @see https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.assign
|
|
25764
|
+
*/
|
|
25765
|
+
function assign(target, source) {
|
|
25766
|
+
if (target === null || typeof target !== 'object') {
|
|
25767
|
+
throw new TypeError('target is not an object')
|
|
25768
|
+
}
|
|
25769
|
+
for (var key in source) {
|
|
25770
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
25771
|
+
target[key] = source[key]
|
|
25772
|
+
}
|
|
25773
|
+
}
|
|
25774
|
+
return target
|
|
25775
|
+
}
|
|
25776
|
+
|
|
25729
25777
|
/**
|
|
25730
25778
|
* All mime types that are allowed as input to `DOMParser.parseFromString`
|
|
25731
25779
|
*
|
|
@@ -25843,6 +25891,7 @@ var NAMESPACE = freeze({
|
|
|
25843
25891
|
XMLNS: 'http://www.w3.org/2000/xmlns/',
|
|
25844
25892
|
})
|
|
25845
25893
|
|
|
25894
|
+
exports.assign = assign;
|
|
25846
25895
|
exports.freeze = freeze;
|
|
25847
25896
|
exports.MIME_TYPE = MIME_TYPE;
|
|
25848
25897
|
exports.NAMESPACE = NAMESPACE;
|
|
@@ -27377,9 +27426,10 @@ function needNamespaceDefine(node, isHTML, visibleNamespaces) {
|
|
|
27377
27426
|
* are serialized as their entity references, so they will be preserved.
|
|
27378
27427
|
* (In contrast to whitespace literals in the input which are normalized to spaces)
|
|
27379
27428
|
* @see https://www.w3.org/TR/xml11/#AVNormalize
|
|
27429
|
+
* @see https://w3c.github.io/DOM-Parsing/#serializing-an-element-s-attributes
|
|
27380
27430
|
*/
|
|
27381
27431
|
function addSerializedAttribute(buf, qualifiedName, value) {
|
|
27382
|
-
buf.push(' ', qualifiedName, '="', value.replace(/[
|
|
27432
|
+
buf.push(' ', qualifiedName, '="', value.replace(/[<>&"\t\n\r]/g, _xmlEncoder), '"')
|
|
27383
27433
|
}
|
|
27384
27434
|
|
|
27385
27435
|
function serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){
|
|
@@ -27524,10 +27574,10 @@ function serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){
|
|
|
27524
27574
|
* and does not include the CDATA-section-close delimiter, `]]>`.
|
|
27525
27575
|
*
|
|
27526
27576
|
* @see https://www.w3.org/TR/xml/#NT-CharData
|
|
27577
|
+
* @see https://w3c.github.io/DOM-Parsing/#xml-serializing-a-text-node
|
|
27527
27578
|
*/
|
|
27528
27579
|
return buf.push(node.data
|
|
27529
|
-
.replace(/[
|
|
27530
|
-
.replace(/]]>/g, ']]>')
|
|
27580
|
+
.replace(/[<&>]/g,_xmlEncoder)
|
|
27531
27581
|
);
|
|
27532
27582
|
case CDATA_SECTION_NODE:
|
|
27533
27583
|
return buf.push( '<![CDATA[',node.data,']]>');
|
|
@@ -65783,7 +65833,7 @@ function offlineTestID() {
|
|
|
65783
65833
|
return (0, rdflib_1.sym)($SolidTestEnvironment.username);
|
|
65784
65834
|
}
|
|
65785
65835
|
// hack that makes SolidOS work in offline mode by adding the webId directly in html
|
|
65786
|
-
// example usage: https://github.com/
|
|
65836
|
+
// example usage: https://github.com/solidos/mashlib/blob/29b8b53c46bf02e0e219f0bacd51b0e9951001dd/test/contact/local.html#L37
|
|
65787
65837
|
if (typeof document !== 'undefined' &&
|
|
65788
65838
|
document.location &&
|
|
65789
65839
|
('' + document.location).slice(0, 16) === 'http://localhost') {
|
|
@@ -66937,7 +66987,7 @@ var _fetch = function (url, requestInit) { return __awaiter(void 0, void 0, void
|
|
|
66937
66987
|
var omitCreds;
|
|
66938
66988
|
return __generator(this, function (_a) {
|
|
66939
66989
|
omitCreds = requestInit && requestInit.credentials && requestInit.credentials == 'omit';
|
|
66940
|
-
if (authSession_1.authSession.info.webId && !omitCreds) { // see https://github.com/
|
|
66990
|
+
if (authSession_1.authSession.info.webId && !omitCreds) { // see https://github.com/solidos/solidos/issues/114
|
|
66941
66991
|
// In fact ftech should respect crentials omit itself
|
|
66942
66992
|
return [2 /*return*/, authSession_1.authSession.fetch(url, requestInit)];
|
|
66943
66993
|
}
|
|
@@ -67168,7 +67218,7 @@ function ensureLoadedPreferences(context) {
|
|
|
67168
67218
|
* Resolves with the same context, outputting
|
|
67169
67219
|
* output: index.public, index.private
|
|
67170
67220
|
* @@ This is a very bizare function
|
|
67171
|
-
* @see https://github.com/
|
|
67221
|
+
* @see https://github.com/solidos/solid/blob/main/proposals/data-discovery.md#discoverability
|
|
67172
67222
|
*/
|
|
67173
67223
|
function loadIndex(context, isPublic) {
|
|
67174
67224
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -67231,7 +67281,7 @@ function loadTypeIndexes(context) {
|
|
|
67231
67281
|
exports.loadTypeIndexes = loadTypeIndexes;
|
|
67232
67282
|
/**
|
|
67233
67283
|
* Resolves with the same context, outputting
|
|
67234
|
-
* @see https://github.com/
|
|
67284
|
+
* @see https://github.com/solidos/solid/blob/main/proposals/data-discovery.md#discoverability
|
|
67235
67285
|
*/
|
|
67236
67286
|
function ensureTypeIndexes(context, agent) {
|
|
67237
67287
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -67259,7 +67309,7 @@ exports.ensureTypeIndexes = ensureTypeIndexes;
|
|
|
67259
67309
|
* Many reasons for failing including script not having permission etc
|
|
67260
67310
|
*
|
|
67261
67311
|
* Adds its output to the context
|
|
67262
|
-
* @see https://github.com/
|
|
67312
|
+
* @see https://github.com/solidos/solid/blob/main/proposals/data-discovery.md#discoverability
|
|
67263
67313
|
*/
|
|
67264
67314
|
function ensureOneTypeIndex(context, isPublic, agent) {
|
|
67265
67315
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -67412,7 +67462,7 @@ function registerInTypeIndex(context, instance, theClass, isPublic, agent // Def
|
|
|
67412
67462
|
index = indexes[0];
|
|
67413
67463
|
registration = (0, uri_1.newThing)(index);
|
|
67414
67464
|
ins = [
|
|
67415
|
-
// See https://github.com/
|
|
67465
|
+
// See https://github.com/solidos/solid/blob/main/proposals/data-discovery.md
|
|
67416
67466
|
(0, rdflib_1.st)(registration, exports.ns.rdf('type'), exports.ns.solid('TypeRegistration'), index),
|
|
67417
67467
|
(0, rdflib_1.st)(registration, exports.ns.solid('forClass'), theClass, index),
|
|
67418
67468
|
(0, rdflib_1.st)(registration, exports.ns.solid('instance'), instance, index)
|
|
@@ -67516,7 +67566,7 @@ var UtilityLogic = /** @class */ (function () {
|
|
|
67516
67566
|
});
|
|
67517
67567
|
});
|
|
67518
67568
|
};
|
|
67519
|
-
// Copied from https://github.com/
|
|
67569
|
+
// Copied from https://github.com/solidos/web-access-control-tests/blob/v3.0.0/test/surface/delete.test.ts#L5
|
|
67520
67570
|
UtilityLogic.prototype.setSinglePeerAccess = function (options) {
|
|
67521
67571
|
return __awaiter(this, void 0, void 0, function () {
|
|
67522
67572
|
var str, aclDocUrl;
|
|
@@ -67604,7 +67654,7 @@ var UtilityLogic = /** @class */ (function () {
|
|
|
67604
67654
|
headers: {
|
|
67605
67655
|
"Content-Type": "text/turtle",
|
|
67606
67656
|
"If-None-Match": "*",
|
|
67607
|
-
Link: '<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"', // See https://github.com/
|
|
67657
|
+
Link: '<http://www.w3.org/ns/ldp#BasicContainer>; rel="type"', // See https://github.com/solidos/node-solid-server/issues/1465
|
|
67608
67658
|
},
|
|
67609
67659
|
body: " ", // work around https://github.com/michielbdejong/community-server/issues/4#issuecomment-776222863
|
|
67610
67660
|
})];
|
|
@@ -76850,8 +76900,9 @@ class LocalJWKSet {
|
|
|
76850
76900
|
}
|
|
76851
76901
|
async getKey(protectedHeader, token) {
|
|
76852
76902
|
const { alg, kid } = { ...protectedHeader, ...token.header };
|
|
76903
|
+
const kty = getKtyFromAlg(alg);
|
|
76853
76904
|
const candidates = this._jwks.keys.filter((jwk) => {
|
|
76854
|
-
let candidate =
|
|
76905
|
+
let candidate = kty === jwk.kty;
|
|
76855
76906
|
if (candidate && typeof kid === 'string') {
|
|
76856
76907
|
candidate = kid === jwk.kid;
|
|
76857
76908
|
}
|
|
@@ -78068,21 +78119,15 @@ function lengthAndInput(input) {
|
|
|
78068
78119
|
}
|
|
78069
78120
|
async function concatKdf(secret, bits, value) {
|
|
78070
78121
|
const iterations = Math.ceil((bits >> 3) / 32);
|
|
78071
|
-
|
|
78072
|
-
for (let iter =
|
|
78122
|
+
const res = new Uint8Array(iterations * 32);
|
|
78123
|
+
for (let iter = 0; iter < iterations; iter++) {
|
|
78073
78124
|
const buf = new Uint8Array(4 + secret.length + value.length);
|
|
78074
|
-
buf.set(uint32be(iter));
|
|
78125
|
+
buf.set(uint32be(iter + 1));
|
|
78075
78126
|
buf.set(secret, 4);
|
|
78076
78127
|
buf.set(value, 4 + secret.length);
|
|
78077
|
-
|
|
78078
|
-
res = await (0,_runtime_digest_js__WEBPACK_IMPORTED_MODULE_0__["default"])('sha256', buf);
|
|
78079
|
-
}
|
|
78080
|
-
else {
|
|
78081
|
-
res = concat(res, await (0,_runtime_digest_js__WEBPACK_IMPORTED_MODULE_0__["default"])('sha256', buf));
|
|
78082
|
-
}
|
|
78128
|
+
res.set(await (0,_runtime_digest_js__WEBPACK_IMPORTED_MODULE_0__["default"])('sha256', buf), iter * 32);
|
|
78083
78129
|
}
|
|
78084
|
-
|
|
78085
|
-
return res;
|
|
78130
|
+
return res.slice(0, bits >> 3);
|
|
78086
78131
|
}
|
|
78087
78132
|
|
|
78088
78133
|
|
|
@@ -79297,9 +79342,12 @@ const encode = (input) => {
|
|
|
79297
79342
|
return encodeBase64(input).replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_');
|
|
79298
79343
|
};
|
|
79299
79344
|
const decodeBase64 = (encoded) => {
|
|
79300
|
-
|
|
79301
|
-
|
|
79302
|
-
|
|
79345
|
+
const binary = atob(encoded);
|
|
79346
|
+
const bytes = new Uint8Array(binary.length);
|
|
79347
|
+
for (let i = 0; i < binary.length; i++) {
|
|
79348
|
+
bytes[i] = binary.charCodeAt(i);
|
|
79349
|
+
}
|
|
79350
|
+
return bytes;
|
|
79303
79351
|
};
|
|
79304
79352
|
const decode = (input) => {
|
|
79305
79353
|
let encoded = input;
|