solid-ui 2.4.22-90ab4764 → 2.4.22-9fa9e801
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/dist/main.js +7359 -8124
- package/dist/main.js.map +1 -1
- package/lib/acl/access-controller.js.map +1 -1
- package/lib/acl/access-groups.js.map +1 -1
- package/lib/acl/acl-control.js.map +1 -1
- package/lib/acl/acl.js.map +1 -1
- package/lib/acl/add-agent-buttons.js +0 -1
- package/lib/acl/add-agent-buttons.js.map +1 -1
- package/lib/acl/index.js.map +1 -1
- package/lib/acl/styles.js.map +1 -1
- package/lib/acl/types.js.map +1 -1
- package/lib/chat/bookmarks.js +1 -2
- package/lib/chat/bookmarks.js.map +1 -1
- package/lib/chat/chatLogic.js.map +1 -1
- package/lib/chat/dateFolder.js.map +1 -1
- package/lib/chat/infinite.js.map +1 -1
- package/lib/chat/message.js.map +1 -1
- package/lib/chat/messageTools.js.map +1 -1
- package/lib/chat/thread.js.map +1 -1
- package/lib/create/create.js.map +1 -1
- package/lib/create/index.js.map +1 -1
- package/lib/create/types.js.map +1 -1
- package/lib/debug.js.map +1 -1
- package/lib/folders.js.map +1 -1
- package/lib/footer/index.js.map +1 -1
- package/lib/footer/styleMap.js.map +1 -1
- package/lib/header/empty-profile.js.map +1 -1
- package/lib/header/index.js.map +1 -1
- package/lib/header/styleMap.js.map +1 -1
- package/lib/iconBase.js.map +1 -1
- package/lib/icons/solid_logo.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/jss/index.js.map +1 -1
- package/lib/log.js.map +1 -1
- package/lib/login/login.d.ts +0 -3
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +30 -38
- package/lib/login/login.js.map +1 -1
- package/lib/matrix/index.js.map +1 -1
- package/lib/matrix/matrix.js.map +1 -1
- package/lib/matrix/types.js.map +1 -1
- package/lib/media/index.js.map +1 -1
- package/lib/media/media-capture.js.map +1 -1
- package/lib/messageArea.js.map +1 -1
- package/lib/noun_Camera_1618446_000000.js.map +1 -1
- package/lib/ns.js.map +1 -1
- package/lib/pad.js.map +1 -1
- package/lib/participation.js.map +1 -1
- package/lib/preferences.js.map +1 -1
- package/lib/signup/config-default.js.map +1 -1
- package/lib/signup/signup.js.map +1 -1
- package/lib/stories/decorators.js.map +1 -1
- package/lib/style.js.map +1 -1
- package/lib/style_multiSelect.js.map +1 -1
- package/lib/table.js.map +1 -1
- package/lib/tabs.js.map +1 -1
- package/lib/typings.d.js.map +1 -1
- package/lib/utils/headerFooterHelpers.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/label.js.map +1 -1
- package/lib/versionInfo.d.ts +9 -9
- package/lib/versionInfo.js +13 -13
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/buttons/iconLinks.js.map +1 -1
- package/lib/widgets/buttons.js.map +1 -1
- package/lib/widgets/dragAndDrop.js.map +1 -1
- package/lib/widgets/error.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteBar.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteField.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +1 -1
- package/lib/widgets/forms/autocomplete/language.js.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
- package/lib/widgets/forms/basic.js.map +1 -1
- package/lib/widgets/forms/comment.js.map +1 -1
- package/lib/widgets/forms/fieldFunction.js.map +1 -1
- package/lib/widgets/forms/fieldParams.js.map +1 -1
- package/lib/widgets/forms/formStyle.js.map +1 -1
- package/lib/widgets/forms.js.map +1 -1
- package/lib/widgets/index.js.map +1 -1
- package/lib/widgets/multiSelect.js.map +1 -1
- package/lib/widgets/peoplePicker.js.map +1 -1
- package/lib/widgets/widgetHelpers.js.map +1 -1
- package/package.json +4 -2
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["dom","window","document","UI","authn","store","ns","rdf","acl","aclControl","create","createTypes","icons","language","log","login","matrix","media","messageArea","infiniteMessageArea","pad","participation","preferences","style","table","tabs","utils","widgets","versionInfo","initHeader","initFooter"],"sources":["../src/index.ts"],"sourcesContent":["/*\nThe MIT License (MIT)\n\nCopyright (c) 2015-2016 Solid\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nIf you would like to know more about the solid Solid project, please see\nhttps://github.com/solidos/solid\n*/\n'use strict'\n/**\n * Provides a Solid client helper object (which exposes various static modules).\n * @module solidUi.js\n * @main solidUi.js\n */\n\n/**\n * @class SolidUi\n * @static\n */\n\n// REMOVE @ts-ignore as you migrate files to TypeScript\nimport * as rdf from 'rdflib' // pull in first avoid cross-refs\n// @ts-ignore\nimport * as ns from './ns'\nimport { acl, aclControl } from './acl/index'\nimport { create } from './create/index'\n// @ts-ignore\nimport { icons } from './iconBase'\nimport * as language from './widgets/forms/autocomplete/language'\nimport * as log from './log'\nimport { matrix } from './matrix/index'\nimport { media } from './media/index'\n// @ts-ignore\nimport { messageArea } from './messageArea'\n// @ts-ignore\nimport { infiniteMessageArea } from './chat/infinite'\n// @ts-ignore\nimport * as pad from './pad'\n// @ts-ignore\nimport * as participation from './participation'\n// @ts-ignore\nimport * as preferences from './preferences'\n// @ts-ignore\nimport * as style from './style'\n// @ts-ignore\nimport { renderTableViewPane as table } from './table'\nimport * as tabs from './tabs'\n// @ts-ignore\nimport * as utils from './utils'\nimport * as login from './login/login'\nimport * as widgets from './widgets/index'\nimport { versionInfo } from './versionInfo'\nimport { initHeader } from './header'\nimport { initFooter } from './footer'\nimport * as createTypes from './create/types'\nimport { authn, store } from 'solid-logic'\n\nconst dom = window ? window.document : null // Idea that UI.dom can be adapted in non-browser environments\n\nif (typeof window !== 'undefined') {\n ;(<any>window).UI = {\n authn,\n store,\n ns,\n rdf,\n acl,\n aclControl,\n create,\n createTypes,\n dom,\n icons,\n language,\n log,\n login,\n matrix,\n media,\n messageArea,\n infiniteMessageArea,\n pad,\n participation,\n preferences,\n style,\n table,\n tabs,\n utils,\n widgets,\n versionInfo,\n initHeader,\n initFooter\n } // Simpler access by non-node scripts\n}\n\n// this variables are directly used in the storybook\nexport {\n authn,\n store,\n ns,\n rdf,\n acl,\n aclControl,\n create,\n createTypes,\n dom,\n icons,\n language,\n log,\n login,\n matrix,\n media,\n messageArea,\n infiniteMessageArea,\n pad,\n participation,\n preferences,\n style,\n table,\n tabs,\n utils,\n widgets,\n versionInfo,\n initHeader,\n initFooter\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;;;AAEA;;;;AACA;;AACA;;AAEA;;AAC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B,CADgC,CA8B/B;AACH,C,CAED"}
|
package/lib/jss/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["stylesheetsMap","Map","getClasses","insertionPoint","styles","stylesheet","getStylesheet","createStyleSheet","attach","cachedStylesheet","get","create","plugins","preset","set"],"sources":["../../src/jss/index.ts"],"sourcesContent":["/**\n * Contains [[getClasses]] and [[getStylesheet]] functions,\n * usable as wrappers around JSS (A CSS authoring tool).\n * See https://cssinjs.org/\n * @packageDocumentation\n */\n\nimport { create, Jss, Styles, StyleSheet } from 'jss'\nimport preset from 'jss-preset-default'\n\nconst stylesheetsMap = new Map<HTMLElement, Jss>()\n\n/**\n * returns a StyleSheet object.\n * See https://cssinjs.org/ for more info about JSS.\n * (despite the name, see https://github.com/solidos/solid-ui/issues/199)\n */\nexport function getClasses (insertionPoint: HTMLElement, styles: Partial<Styles>): StyleSheet {\n const stylesheet = getStylesheet(insertionPoint)\n return stylesheet.createStyleSheet(styles).attach()\n}\n\n/**\n * returns a JSS object.\n * See https://cssinjs.org/ for more info about JSS.\n * (despite the name, see https://github.com/solidos/solid-ui/issues/199)\n */\nexport function getStylesheet (insertionPoint: HTMLElement): Jss {\n const cachedStylesheet = stylesheetsMap.get(insertionPoint)\n if (cachedStylesheet) {\n return cachedStylesheet\n }\n const stylesheet = create({\n insertionPoint,\n plugins: preset().plugins\n })\n stylesheetsMap.set(insertionPoint, stylesheet)\n return stylesheet\n}\n"],"mappings":";;;;;;;;;;AAOA;;AACA;;AARA;AACA;AACA;AACA;AACA;AACA;AAKA,IAAMA,cAAc,GAAG,IAAIC,GAAJ,EAAvB;AAEA;AACA;AACA;AACA;AACA;;AACO,SAASC,UAAT,CAAqBC,cAArB,EAAkDC,MAAlD,EAAuF;EAC5F,IAAMC,UAAU,GAAGC,aAAa,CAACH,cAAD,CAAhC;EACA,OAAOE,UAAU,CAACE,gBAAX,CAA4BH,MAA5B,EAAoCI,MAApC,EAAP;AACD;AAED;AACA;AACA;AACA;AACA;;;AACO,SAASF,aAAT,CAAwBH,cAAxB,EAA0D;EAC/D,IAAMM,gBAAgB,GAAGT,cAAc,CAACU,GAAf,CAAmBP,cAAnB,CAAzB;;EACA,IAAIM,gBAAJ,EAAsB;IACpB,OAAOA,gBAAP;EACD;;EACD,IAAMJ,UAAU,GAAG,IAAAM,WAAA,EAAO;IACxBR,cAAc,EAAdA,cADwB;IAExBS,OAAO,EAAE,IAAAC,4BAAA,IAASD;EAFM,CAAP,CAAnB;EAIAZ,cAAc,CAACc,GAAf,CAAmBX,cAAnB,EAAmCE,UAAnC;EACA,OAAOA,UAAP;AACD"}
|
package/lib/log.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"log.js","names":["TERROR","TWARN","TMESG","TSUCCESS","TINFO","TDEBUG","TALL","LogLevel","_level","_ascending","_dom","document","_window","window","log","str","type","typestr","logArea","getElementById","addendum","createElement","setAttribute","now","Date","innerHTML","getHours","getMinutes","getSeconds","escapeForXML","insertBefore","firstChild","appendChild","console","msg","message","warn","debug","info","error","success","alert","clear","setLevel","level","dumpHTML","body","logAscending","logDescending","replace","setInternals"],"sources":["../src/log.ts"],"sourcesContent":["// /////////////////////// Logging\n//\n// bitmask levels\n// const TNONE = 0\n/** @internal */\nconst TERROR = 1\n/** @internal */\nconst TWARN = 2\n/** @internal */\nconst TMESG = 4\n/** @internal */\nconst TSUCCESS = 8\n/** @internal */\nconst TINFO = 16\n/** @internal */\nconst TDEBUG = 32\n/** @internal */\nconst TALL = 63\n\n/** @internal */\nexport enum LogLevel {\n Error = TERROR,\n Warning = TWARN,\n Message = TMESG,\n Success = TSUCCESS,\n Info = TINFO,\n Debug = TDEBUG,\n All = TALL\n}\n\n/** @internal */\nlet _level: number = TERROR + TWARN + TMESG\n/** @internal */\nlet _ascending: boolean = false\n/** @internal */\nlet _dom: HTMLDocument = document // must be able to override for tests\n/** @internal */\nlet _window: Window = window // must be able to override for tests\n\n/** @internal */\nfunction log (str: string, type: number = TMESG, typestr: string = 'mesg') {\n if (!(_level & type)) return // bitmask\n\n if (typeof _dom !== 'undefined') {\n const logArea = _dom.getElementById('status')\n if (!logArea) return\n\n const addendum = _dom.createElement('span')\n addendum.setAttribute('class', typestr)\n const now = new Date()\n addendum.innerHTML = `${now.getHours()}:${now.getMinutes()}:${now.getSeconds()} [${typestr}] ${escapeForXML(str)}<br/>`\n if (_ascending) {\n logArea.insertBefore(addendum, logArea.firstChild)\n } else {\n logArea.appendChild(addendum)\n }\n } else if (typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.log(str)\n }\n}\n\n/**\n * Adds a message to the element with id \"status\". The messages are prepended with\n * time and type of message, in this case [mesg].\n */\nexport function msg (message: string) {\n log(message)\n}\n\n/**\n * Adds a warning message to the element with id \"status\". The messages are\n * prepended with time and type of message, in this case [warn].\n */\nexport function warn (message: string): void {\n log(message, TWARN, 'warn')\n}\n\n/**\n * Adds a debugging message to the element with id \"status\". The messages are\n * prepended with time and type of message, in this case [dbug].\n */\nexport function debug (message: string): void {\n log(message, TDEBUG, 'dbug')\n}\n\n/**\n * Adds a info message to the element with id \"status\". The messages are\n * prepended with time and type of message, in this case [info].\n */\nexport function info (message: string): void {\n log(message, TINFO, 'info')\n}\n\n/**\n * Adds a error to the element with id \"status\". The messages are\n * prepended with time and type of message, in this case [eror].\n */\nexport function error (message: string): void {\n log(message, TERROR, 'eror')\n}\n\n/**\n * Adds a success message to the element with id \"status\". The messages are\n * prepended with time and type of message, in this case [good].\n */\nexport function success (message: string): void {\n log(message, TSUCCESS, 'good')\n}\n\n/**\n * Uses the global alert to send an alert. If global alert is not available, it\n * will output the message using the method [[warning]]s.\n */\nexport function alert (message: string): void {\n if (_window && typeof _window.alert !== 'undefined') {\n _window.alert(message)\n } else {\n warn(message)\n }\n}\n\n/**\n * Will clear the content of the element with id \"status\".\n */\nexport function clear (): void {\n const logArea = _dom?.getElementById('status')\n if (!logArea) return\n logArea.innerHTML = ''\n}\n\n/**\n * Lets you configure which types of messages will be shown. The module uses\n * [bitmask](https://en.wikipedia.org/wiki/Mask_(computing)) to filter which\n * types of messages should be shown. E.g. if you only want warning messages\n * to be shown, pass 2 to the function, if you want warning and success to be\n * shown, pass 10 (2+8). By passing the sum of all, 63, you'll show all\n * types of messages.\n *\n * - Error: 1\n * - Warning: 2\n * - Message: 4\n * - Success: 8\n * - Info: 16\n * - Debug: 32\n */\nexport function setLevel (level: number): void {\n _level = TALL\n debug('Log level is now ' + level)\n _level = level\n}\n\n/**\n * Will dump the current HTML using the [[debug]] method.\n */\nexport function dumpHTML (): void {\n if (!_dom) return\n const level = _level\n _level = TALL\n debug(_dom?.body?.innerHTML || '')\n _level = level\n}\n\n/**\n * Will start prepending messages the list of log messages.\n */\nexport function logAscending () {\n _ascending = true\n}\n\n/**\n * Will start appending messages the list of log messages. (This is default\n * behavior.)\n */\nexport function logDescending () {\n _ascending = false\n}\n\n/** @internal */\nexport function escapeForXML (str: string): string {\n // can be replaced with function utils module when migrating\n return str\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n}\n\n/** @internal */\nexport function setInternals (window, document) {\n _window = window\n _dom = document\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;;AACA;AACA,IAAMA,MAAM,GAAG,CAAf;AACA;;AACA,IAAMC,KAAK,GAAG,CAAd;AACA;;AACA,IAAMC,KAAK,GAAG,CAAd;AACA;;AACA,IAAMC,QAAQ,GAAG,CAAjB;AACA;;AACA,IAAMC,KAAK,GAAG,EAAd;AACA;;AACA,IAAMC,MAAM,GAAG,EAAf;AACA;;AACA,IAAMC,IAAI,GAAG,EAAb;AAEA;;IACYC,Q;AAUZ;;;;WAVYA,Q;EAAAA,Q,CAAAA,Q,YACFP,M;EADEO,Q,CAAAA,Q,cAEAN,K;EAFAM,Q,CAAAA,Q,cAGAL,K;EAHAK,Q,CAA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B;AACD;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACO,SAASkB,QAAT,CAAmBC,KAAnB,EAAwC;EAC7CpC,MAAM,GAAGF,IAAT;EACA+B,KAAK,CAAC,sBAAsBO,KAAvB,CAAL;EACApC,MAAM,GAAGoC,KAAT;AACD;AAED;AACA;AACA;;;AACO,SAASC,QAAT,GAA2B;EAAA;;EAChC,IAAI,CAACnC,IAAL,EAAW;EACX,IAAMkC,KAAK,GAAGpC,MAAd;EACAA,MAAM,GAAGF,IAAT;EACA+B,KAAK,CAAC,UAAA3B,IAAI,UAAJ,oDAAMoC,IAAN,0DAAYrB,SAAZ,KAAyB,EAA1B,CAAL;EACAjB,MAAM,GAAGoC,KAAT;AACD;AAED;AACA;AACA;;;AACO,SAASG,YAAT,GAAyB;EAC9BtC,UAAU,GAAG,IAAb;AACD;AAED;AACA;AACA;AACA;;;AACO,SAASuC,aAAT,GAA0B;EAC/BvC,UAAU,GAAG,KAAb;AACD;AAED;;;AACO,SAASoB,YAAT,CAAuBd,GAAvB,EAA4C;EACjD;EACA,OAAOA,GAAG,CACPkC,OADI,CACI,IADJ,EACU,OADV,EAEJA,OAFI,CAEI,IAFJ,EAEU,MAFV,EAGJA,OAHI,CAGI,IAHJ,EAGU,MAHV,CAAP;AAID;AAED;;;AACO,SAASC,YAAT,CAAuBrC,MAAvB,EAA+BF,QAA/B,EAAyC;EAC9CC,OAAO,GAAGC,MAAV;EACAH,IAAI,GAAGC,QAAP;AACD"}
|
package/lib/login/login.d.ts
CHANGED
|
@@ -51,9 +51,6 @@ export declare function ensureLoadedProfile(context: AuthenticationContext): Pro
|
|
|
51
51
|
/**
|
|
52
52
|
* Returns promise of context with arrays of symbols
|
|
53
53
|
*
|
|
54
|
-
* 2016-12-11 change to include forClass arc a la
|
|
55
|
-
* https://github.com/solid/solid/blob/main/proposals/data-discovery.md
|
|
56
|
-
* This is now legacy; should instead use solid-logic getAppInstances
|
|
57
54
|
* leaving the `isPublic` param undefined will bring in community index things, too
|
|
58
55
|
*/
|
|
59
56
|
export declare function findAppInstances(context: AuthenticationContext, theClass: NamedNode, isPublic?: boolean): Promise<AuthenticationContext>;
|
package/lib/login/login.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/login/login.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAa,SAAS,EAAM,MAAM,QAAQ,CAAA;AAGjD,OAAO,EACL,UAAU,EAAE,qBAAqB,EAKlC,MAAM,aAAa,CAAA;AAWpB;;;;GAIG;AAEH,wBAAgB,cAAc,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAwB9F;AAED;;;;;;;GAOG;AAEH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/login/login.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAa,SAAS,EAAM,MAAM,QAAQ,CAAA;AAGjD,OAAO,EACL,UAAU,EAAE,qBAAqB,EAKlC,MAAM,aAAa,CAAA;AAWpB;;;;GAIG;AAEH,wBAAgB,cAAc,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAwB9F;AAED;;;;;;;GAOG;AAEH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,CAuDhC;AAED;;;;;;GAMG;AAEH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,qBAAqB,GAC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AAW,CA0Pb;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,YAAY,EACjB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,GAC5D,WAAW,CAmBb;AACD;;;GAGG;AACH,wBAAsB,YAAY,IAAK,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAgB/D;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,GAC3B,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAGhC"}
|
package/lib/login/login.js
CHANGED
|
@@ -151,7 +151,7 @@ function _ensureLoadedPreferences() {
|
|
|
151
151
|
case 7:
|
|
152
152
|
context = _context4.sent;
|
|
153
153
|
_context4.next = 10;
|
|
154
|
-
return _solidLogic.
|
|
154
|
+
return (0, _solidLogic.loadPreferences)(context.me);
|
|
155
155
|
|
|
156
156
|
case 10:
|
|
157
157
|
preferencesFile = _context4.sent;
|
|
@@ -161,7 +161,7 @@ function _ensureLoadedPreferences() {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
context.preferencesFile = preferencesFile;
|
|
164
|
-
_context4.next =
|
|
164
|
+
_context4.next = 51;
|
|
165
165
|
break;
|
|
166
166
|
|
|
167
167
|
case 15:
|
|
@@ -175,7 +175,7 @@ function _ensureLoadedPreferences() {
|
|
|
175
175
|
|
|
176
176
|
m2 = 'Ooops - you are not authenticated (properly logged in) to for me to read your preference file. Try loggin out and logging in?';
|
|
177
177
|
(0, _log.alert)(m2);
|
|
178
|
-
_context4.next =
|
|
178
|
+
_context4.next = 51;
|
|
179
179
|
break;
|
|
180
180
|
|
|
181
181
|
case 22:
|
|
@@ -190,57 +190,53 @@ function _ensureLoadedPreferences() {
|
|
|
190
190
|
|
|
191
191
|
case 28:
|
|
192
192
|
if (!(_context4.t0 instanceof _solidLogic.SameOriginForbiddenError)) {
|
|
193
|
-
_context4.next =
|
|
193
|
+
_context4.next = 34;
|
|
194
194
|
break;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
m2 = 'You are not authorized to read your preference file. This may be because you are using an untrusted web app.';
|
|
198
198
|
debug.warn(m2);
|
|
199
|
-
_context4.
|
|
200
|
-
break;
|
|
199
|
+
return _context4.abrupt("return", context);
|
|
201
200
|
|
|
202
|
-
case
|
|
203
|
-
if (!(_context4.t0 instanceof _solidLogic.
|
|
204
|
-
_context4.next =
|
|
201
|
+
case 34:
|
|
202
|
+
if (!(_context4.t0 instanceof _solidLogic.NotEditableError)) {
|
|
203
|
+
_context4.next = 40;
|
|
205
204
|
break;
|
|
206
205
|
}
|
|
207
206
|
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
m2 = 'You are not authorized to edit your preference file. This may be because you are using an untrusted web app.';
|
|
208
|
+
debug.warn(m2);
|
|
209
|
+
return _context4.abrupt("return", context);
|
|
210
|
+
|
|
211
|
+
case 40:
|
|
212
|
+
if (!(_context4.t0 instanceof _solidLogic.WebOperationError)) {
|
|
213
|
+
_context4.next = 45;
|
|
210
214
|
break;
|
|
211
215
|
}
|
|
212
216
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
_context4.next = 40;
|
|
217
|
-
break;
|
|
218
|
-
|
|
219
|
-
case 39:
|
|
220
|
-
throw new Error("User declined to create a preference file at ".concat(_context4.t0.preferencesFile || '(?)'));
|
|
221
|
-
|
|
222
|
-
case 40:
|
|
223
|
-
_context4.next = 48;
|
|
217
|
+
m2 = 'You are not authorized to edit your preference file. This may be because you are using an untrusted web app.';
|
|
218
|
+
debug.warn(m2);
|
|
219
|
+
_context4.next = 51;
|
|
224
220
|
break;
|
|
225
221
|
|
|
226
|
-
case
|
|
222
|
+
case 45:
|
|
227
223
|
if (!(_context4.t0 instanceof _solidLogic.FetchError)) {
|
|
228
|
-
_context4.next =
|
|
224
|
+
_context4.next = 50;
|
|
229
225
|
break;
|
|
230
226
|
}
|
|
231
227
|
|
|
232
228
|
m2 = "Strange: Error ".concat(_context4.t0.status, " trying to read your preference file.").concat(_context4.t0.message);
|
|
233
229
|
(0, _log.alert)(m2);
|
|
234
|
-
_context4.next =
|
|
230
|
+
_context4.next = 51;
|
|
235
231
|
break;
|
|
236
232
|
|
|
237
|
-
case
|
|
233
|
+
case 50:
|
|
238
234
|
throw new Error("(via loadPrefs) ".concat(_context4.t0));
|
|
239
235
|
|
|
240
|
-
case
|
|
236
|
+
case 51:
|
|
241
237
|
return _context4.abrupt("return", context);
|
|
242
238
|
|
|
243
|
-
case
|
|
239
|
+
case 52:
|
|
244
240
|
case "end":
|
|
245
241
|
return _context4.stop();
|
|
246
242
|
}
|
|
@@ -256,9 +252,6 @@ function ensureLoadedProfile(_x2) {
|
|
|
256
252
|
/**
|
|
257
253
|
* Returns promise of context with arrays of symbols
|
|
258
254
|
*
|
|
259
|
-
* 2016-12-11 change to include forClass arc a la
|
|
260
|
-
* https://github.com/solid/solid/blob/main/proposals/data-discovery.md
|
|
261
|
-
* This is now legacy; should instead use solid-logic getAppInstances
|
|
262
255
|
* leaving the `isPublic` param undefined will bring in community index things, too
|
|
263
256
|
*/
|
|
264
257
|
|
|
@@ -294,7 +287,7 @@ function _ensureLoadedProfile() {
|
|
|
294
287
|
|
|
295
288
|
case 8:
|
|
296
289
|
_context5.next = 10;
|
|
297
|
-
return _solidLogic.
|
|
290
|
+
return (0, _solidLogic.loadProfile)(logInContext.me);
|
|
298
291
|
|
|
299
292
|
case 10:
|
|
300
293
|
context.publicProfile = _context5.sent;
|
|
@@ -341,7 +334,7 @@ function _findAppInstances() {
|
|
|
341
334
|
}
|
|
342
335
|
|
|
343
336
|
_context6.next = 3;
|
|
344
|
-
return (0, _solidLogic.getScopedAppInstances)(
|
|
337
|
+
return (0, _solidLogic.getScopedAppInstances)(theClass, context.me);
|
|
345
338
|
|
|
346
339
|
case 3:
|
|
347
340
|
_context6.t0 = _context6.sent;
|
|
@@ -410,8 +403,7 @@ function _registrationControl() {
|
|
|
410
403
|
};
|
|
411
404
|
|
|
412
405
|
registrationStatements = function _registrationStatemen(index) {
|
|
413
|
-
var registrations = _solidLogic.
|
|
414
|
-
|
|
406
|
+
var registrations = (0, _solidLogic.getRegistrations)(instance, theClass);
|
|
415
407
|
var reg = registrations.length ? registrations[0] : widgets.newThing(index);
|
|
416
408
|
return [(0, _rdflib.st)(reg, ns.solid('instance'), instance, index), (0, _rdflib.st)(reg, ns.solid('forClass'), theClass, index)];
|
|
417
409
|
};
|
|
@@ -444,7 +436,7 @@ function _registrationControl() {
|
|
|
444
436
|
case 12:
|
|
445
437
|
_context7.prev = 12;
|
|
446
438
|
_context7.next = 15;
|
|
447
|
-
return (0, _solidLogic.loadAllTypeIndexes)(
|
|
439
|
+
return (0, _solidLogic.loadAllTypeIndexes)(me);
|
|
448
440
|
|
|
449
441
|
case 15:
|
|
450
442
|
scopes = _context7.sent;
|
|
@@ -576,7 +568,7 @@ function _registrationList() {
|
|
|
576
568
|
headingRow = renderScopeHeadingRow(context, store, scope);
|
|
577
569
|
tbody.appendChild(headingRow);
|
|
578
570
|
_context9.next = 24;
|
|
579
|
-
return (0, _solidLogic.getScopedAppsFromIndex)(
|
|
571
|
+
return (0, _solidLogic.getScopedAppsFromIndex)(scope, options.type || null);
|
|
580
572
|
|
|
581
573
|
case 24:
|
|
582
574
|
items = _context9.sent;
|
|
@@ -596,7 +588,7 @@ function _registrationList() {
|
|
|
596
588
|
switch (_context8.prev = _context8.next) {
|
|
597
589
|
case 0:
|
|
598
590
|
_context8.next = 2;
|
|
599
|
-
return (0, _solidLogic.deleteTypeIndexRegistration)(
|
|
591
|
+
return (0, _solidLogic.deleteTypeIndexRegistration)(item);
|
|
600
592
|
|
|
601
593
|
case 2:
|
|
602
594
|
tbody.removeChild(row);
|