solid-ui 2.4.21 → 2.4.22-8f207a1d

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.
Files changed (244) hide show
  1. package/LICENSE.md +0 -0
  2. package/README.md +8 -8
  3. package/dist/index.html +0 -0
  4. package/dist/main.js +213 -165
  5. package/dist/main.js.map +1 -1
  6. package/lib/acl/access-controller.d.ts +0 -0
  7. package/lib/acl/access-controller.d.ts.map +0 -0
  8. package/lib/acl/access-controller.js +2 -2
  9. package/lib/acl/access-controller.js.map +1 -1
  10. package/lib/acl/access-groups.d.ts +1 -1
  11. package/lib/acl/access-groups.d.ts.map +0 -0
  12. package/lib/acl/access-groups.js +1 -1
  13. package/lib/acl/access-groups.js.map +1 -1
  14. package/lib/acl/acl-control.d.ts +2 -2
  15. package/lib/acl/acl-control.d.ts.map +0 -0
  16. package/lib/acl/acl-control.js +5 -5
  17. package/lib/acl/acl-control.js.map +1 -1
  18. package/lib/acl/acl.d.ts +1 -1
  19. package/lib/acl/acl.d.ts.map +0 -0
  20. package/lib/acl/acl.js +1 -1
  21. package/lib/acl/acl.js.map +1 -1
  22. package/lib/acl/add-agent-buttons.d.ts +1 -1
  23. package/lib/acl/add-agent-buttons.d.ts.map +0 -0
  24. package/lib/acl/add-agent-buttons.js +1 -1
  25. package/lib/acl/add-agent-buttons.js.map +1 -1
  26. package/lib/acl/index.d.ts +0 -0
  27. package/lib/acl/index.d.ts.map +0 -0
  28. package/lib/acl/index.js +0 -0
  29. package/lib/acl/index.js.map +0 -0
  30. package/lib/acl/styles.d.ts +1 -1
  31. package/lib/acl/styles.d.ts.map +0 -0
  32. package/lib/acl/styles.js +1 -1
  33. package/lib/acl/styles.js.map +1 -1
  34. package/lib/acl/types.d.ts +0 -0
  35. package/lib/acl/types.d.ts.map +0 -0
  36. package/lib/acl/types.js +0 -0
  37. package/lib/acl/types.js.map +0 -0
  38. package/lib/chat/bookmarks.js +0 -0
  39. package/lib/chat/bookmarks.js.map +0 -0
  40. package/lib/chat/chatLogic.js +0 -0
  41. package/lib/chat/chatLogic.js.map +0 -0
  42. package/lib/chat/dateFolder.js +0 -0
  43. package/lib/chat/dateFolder.js.map +0 -0
  44. package/lib/chat/infinite.js +0 -0
  45. package/lib/chat/infinite.js.map +1 -1
  46. package/lib/chat/message.js +0 -0
  47. package/lib/chat/message.js.map +0 -0
  48. package/lib/chat/messageTools.js +0 -0
  49. package/lib/chat/messageTools.js.map +0 -0
  50. package/lib/chat/thread.js +0 -0
  51. package/lib/chat/thread.js.map +0 -0
  52. package/lib/create/create.d.ts +0 -0
  53. package/lib/create/create.d.ts.map +0 -0
  54. package/lib/create/create.js +0 -0
  55. package/lib/create/create.js.map +0 -0
  56. package/lib/create/index.d.ts +0 -0
  57. package/lib/create/index.d.ts.map +0 -0
  58. package/lib/create/index.js +0 -0
  59. package/lib/create/index.js.map +0 -0
  60. package/lib/create/types.d.ts +0 -0
  61. package/lib/create/types.d.ts.map +0 -0
  62. package/lib/create/types.js +0 -0
  63. package/lib/create/types.js.map +0 -0
  64. package/lib/debug.d.ts +0 -0
  65. package/lib/debug.d.ts.map +0 -0
  66. package/lib/debug.js +0 -0
  67. package/lib/debug.js.map +0 -0
  68. package/lib/folders.js +0 -0
  69. package/lib/folders.js.map +0 -0
  70. package/lib/footer/index.d.ts +0 -0
  71. package/lib/footer/index.d.ts.map +0 -0
  72. package/lib/footer/index.js +0 -0
  73. package/lib/footer/index.js.map +0 -0
  74. package/lib/footer/styleMap.d.ts +0 -0
  75. package/lib/footer/styleMap.d.ts.map +0 -0
  76. package/lib/footer/styleMap.js +0 -0
  77. package/lib/footer/styleMap.js.map +0 -0
  78. package/lib/header/empty-profile.d.ts +0 -0
  79. package/lib/header/empty-profile.d.ts.map +0 -0
  80. package/lib/header/empty-profile.js +0 -0
  81. package/lib/header/empty-profile.js.map +0 -0
  82. package/lib/header/index.d.ts +0 -0
  83. package/lib/header/index.d.ts.map +0 -0
  84. package/lib/header/index.js +0 -0
  85. package/lib/header/index.js.map +0 -0
  86. package/lib/header/styleMap.d.ts +0 -0
  87. package/lib/header/styleMap.d.ts.map +0 -0
  88. package/lib/header/styleMap.js +0 -0
  89. package/lib/header/styleMap.js.map +0 -0
  90. package/lib/iconBase.d.ts +0 -0
  91. package/lib/iconBase.d.ts.map +1 -1
  92. package/lib/iconBase.js +2 -2
  93. package/lib/iconBase.js.map +1 -1
  94. package/lib/icons/solid_logo.d.ts +0 -0
  95. package/lib/icons/solid_logo.d.ts.map +0 -0
  96. package/lib/icons/solid_logo.js +0 -0
  97. package/lib/icons/solid_logo.js.map +0 -0
  98. package/lib/index.d.ts +0 -0
  99. package/lib/index.d.ts.map +0 -0
  100. package/lib/index.js +1 -1
  101. package/lib/index.js.map +1 -1
  102. package/lib/jss/index.d.ts +2 -2
  103. package/lib/jss/index.d.ts.map +0 -0
  104. package/lib/jss/index.js +2 -2
  105. package/lib/jss/index.js.map +1 -1
  106. package/lib/log.d.ts +0 -0
  107. package/lib/log.d.ts.map +0 -0
  108. package/lib/log.js +0 -0
  109. package/lib/log.js.map +0 -0
  110. package/lib/login/login.d.ts +57 -57
  111. package/lib/login/login.d.ts.map +1 -1
  112. package/lib/login/login.js +74 -72
  113. package/lib/login/login.js.map +1 -1
  114. package/lib/matrix/index.d.ts +0 -0
  115. package/lib/matrix/index.d.ts.map +0 -0
  116. package/lib/matrix/index.js +0 -0
  117. package/lib/matrix/index.js.map +0 -0
  118. package/lib/matrix/matrix.d.ts +0 -0
  119. package/lib/matrix/matrix.d.ts.map +0 -0
  120. package/lib/matrix/matrix.js +0 -0
  121. package/lib/matrix/matrix.js.map +0 -0
  122. package/lib/matrix/types.d.ts +0 -0
  123. package/lib/matrix/types.d.ts.map +0 -0
  124. package/lib/matrix/types.js +0 -0
  125. package/lib/matrix/types.js.map +0 -0
  126. package/lib/media/index.d.ts +0 -0
  127. package/lib/media/index.d.ts.map +0 -0
  128. package/lib/media/index.js +0 -0
  129. package/lib/media/index.js.map +0 -0
  130. package/lib/media/media-capture.d.ts +0 -0
  131. package/lib/media/media-capture.d.ts.map +0 -0
  132. package/lib/media/media-capture.js +0 -0
  133. package/lib/media/media-capture.js.map +0 -0
  134. package/lib/messageArea.js +0 -0
  135. package/lib/messageArea.js.map +0 -0
  136. package/lib/noun_Camera_1618446_000000.js +0 -0
  137. package/lib/noun_Camera_1618446_000000.js.map +0 -0
  138. package/lib/ns.js +0 -0
  139. package/lib/ns.js.map +0 -0
  140. package/lib/pad.d.ts +0 -0
  141. package/lib/pad.d.ts.map +0 -0
  142. package/lib/pad.js +0 -0
  143. package/lib/pad.js.map +0 -0
  144. package/lib/participation.d.ts +0 -0
  145. package/lib/participation.d.ts.map +0 -0
  146. package/lib/participation.js +1 -1
  147. package/lib/participation.js.map +1 -1
  148. package/lib/preferences.js +0 -0
  149. package/lib/preferences.js.map +0 -0
  150. package/lib/signup/config-default.js +0 -0
  151. package/lib/signup/config-default.js.map +0 -0
  152. package/lib/signup/signup.js +0 -0
  153. package/lib/signup/signup.js.map +0 -0
  154. package/lib/stories/decorators.js +0 -0
  155. package/lib/stories/decorators.js.map +0 -0
  156. package/lib/style.js +0 -0
  157. package/lib/style.js.map +0 -0
  158. package/lib/table.js +0 -0
  159. package/lib/table.js.map +0 -0
  160. package/lib/tabs.d.ts +1 -1
  161. package/lib/tabs.d.ts.map +1 -1
  162. package/lib/tabs.js +5 -3
  163. package/lib/tabs.js.map +1 -1
  164. package/lib/typings.d.js +0 -0
  165. package/lib/typings.d.js.map +0 -0
  166. package/lib/utils/headerFooterHelpers.d.ts +0 -0
  167. package/lib/utils/headerFooterHelpers.d.ts.map +1 -1
  168. package/lib/utils/headerFooterHelpers.js +51 -30
  169. package/lib/utils/headerFooterHelpers.js.map +1 -1
  170. package/lib/utils/index.js +0 -0
  171. package/lib/utils/index.js.map +0 -0
  172. package/lib/utils/label.d.ts +0 -0
  173. package/lib/utils/label.d.ts.map +0 -0
  174. package/lib/utils/label.js +0 -0
  175. package/lib/utils/label.js.map +0 -0
  176. package/lib/versionInfo.d.ts +9 -11
  177. package/lib/versionInfo.d.ts.map +1 -1
  178. package/lib/versionInfo.js +14 -16
  179. package/lib/versionInfo.js.map +1 -1
  180. package/lib/widgets/buttons/iconLinks.d.ts +0 -0
  181. package/lib/widgets/buttons/iconLinks.d.ts.map +0 -0
  182. package/lib/widgets/buttons/iconLinks.js +0 -0
  183. package/lib/widgets/buttons/iconLinks.js.map +0 -0
  184. package/lib/widgets/buttons.d.ts +0 -0
  185. package/lib/widgets/buttons.d.ts.map +0 -0
  186. package/lib/widgets/buttons.js +0 -0
  187. package/lib/widgets/buttons.js.map +0 -0
  188. package/lib/widgets/dragAndDrop.js +0 -0
  189. package/lib/widgets/dragAndDrop.js.map +0 -0
  190. package/lib/widgets/error.d.ts +0 -0
  191. package/lib/widgets/error.d.ts.map +0 -0
  192. package/lib/widgets/error.js +0 -0
  193. package/lib/widgets/error.js.map +0 -0
  194. package/lib/widgets/forms/autocomplete/autocompleteBar.d.ts +0 -0
  195. package/lib/widgets/forms/autocomplete/autocompleteBar.d.ts.map +0 -0
  196. package/lib/widgets/forms/autocomplete/autocompleteBar.js +0 -0
  197. package/lib/widgets/forms/autocomplete/autocompleteBar.js.map +0 -0
  198. package/lib/widgets/forms/autocomplete/autocompleteField.d.ts +0 -0
  199. package/lib/widgets/forms/autocomplete/autocompleteField.d.ts.map +0 -0
  200. package/lib/widgets/forms/autocomplete/autocompleteField.js +0 -0
  201. package/lib/widgets/forms/autocomplete/autocompleteField.js.map +0 -0
  202. package/lib/widgets/forms/autocomplete/autocompletePicker.d.ts +0 -0
  203. package/lib/widgets/forms/autocomplete/autocompletePicker.d.ts.map +0 -0
  204. package/lib/widgets/forms/autocomplete/autocompletePicker.js +0 -0
  205. package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +0 -0
  206. package/lib/widgets/forms/autocomplete/language.d.ts +0 -0
  207. package/lib/widgets/forms/autocomplete/language.d.ts.map +0 -0
  208. package/lib/widgets/forms/autocomplete/language.js +0 -0
  209. package/lib/widgets/forms/autocomplete/language.js.map +1 -1
  210. package/lib/widgets/forms/autocomplete/publicData.d.ts +0 -0
  211. package/lib/widgets/forms/autocomplete/publicData.d.ts.map +0 -0
  212. package/lib/widgets/forms/autocomplete/publicData.js +1 -1
  213. package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
  214. package/lib/widgets/forms/basic.d.ts +0 -0
  215. package/lib/widgets/forms/basic.d.ts.map +0 -0
  216. package/lib/widgets/forms/basic.js +0 -0
  217. package/lib/widgets/forms/basic.js.map +0 -0
  218. package/lib/widgets/forms/comment.d.ts +0 -0
  219. package/lib/widgets/forms/comment.d.ts.map +0 -0
  220. package/lib/widgets/forms/comment.js +0 -0
  221. package/lib/widgets/forms/comment.js.map +0 -0
  222. package/lib/widgets/forms/fieldFunction.d.ts +0 -0
  223. package/lib/widgets/forms/fieldFunction.d.ts.map +0 -0
  224. package/lib/widgets/forms/fieldFunction.js +0 -0
  225. package/lib/widgets/forms/fieldFunction.js.map +0 -0
  226. package/lib/widgets/forms/fieldParams.d.ts +0 -0
  227. package/lib/widgets/forms/fieldParams.d.ts.map +0 -0
  228. package/lib/widgets/forms/fieldParams.js +0 -0
  229. package/lib/widgets/forms/fieldParams.js.map +0 -0
  230. package/lib/widgets/forms/formStyle.d.ts +0 -0
  231. package/lib/widgets/forms/formStyle.d.ts.map +0 -0
  232. package/lib/widgets/forms/formStyle.js +0 -0
  233. package/lib/widgets/forms/formStyle.js.map +0 -0
  234. package/lib/widgets/forms.js +0 -0
  235. package/lib/widgets/forms.js.map +0 -0
  236. package/lib/widgets/index.js +0 -0
  237. package/lib/widgets/index.js.map +0 -0
  238. package/lib/widgets/peoplePicker.js +0 -0
  239. package/lib/widgets/peoplePicker.js.map +0 -0
  240. package/lib/widgets/widgetHelpers.d.ts +0 -0
  241. package/lib/widgets/widgetHelpers.d.ts.map +0 -0
  242. package/lib/widgets/widgetHelpers.js +0 -0
  243. package/lib/widgets/widgetHelpers.js.map +0 -0
  244. package/package.json +9 -8
@@ -26,10 +26,10 @@ import { PaneDefinition } from 'pane-registry';
26
26
  import { NamedNode } from 'rdflib';
27
27
  import { AppDetails, AuthenticationContext } from 'solid-logic';
28
28
  /**
29
- * Resolves with the logged in user's WebID
30
- *
31
- * @param context
32
- */
29
+ * Resolves with the logged in user's WebID
30
+ *
31
+ * @param context
32
+ */
33
33
  export declare function ensureLoggedIn(context: AuthenticationContext): Promise<AuthenticationContext>;
34
34
  /**
35
35
  * Loads preference file
@@ -49,19 +49,19 @@ export declare function ensureLoadedPreferences(context: AuthenticationContext):
49
49
  */
50
50
  export declare function ensureLoadedProfile(context: AuthenticationContext): Promise<AuthenticationContext>;
51
51
  /**
52
- * Returns promise of context with arrays of symbols
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
- */
52
+ * Returns promise of context with arrays of symbols
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
+ */
57
57
  export declare function findAppInstances(context: AuthenticationContext, theClass: NamedNode, isPublic?: boolean): Promise<AuthenticationContext>;
58
58
  /**
59
- * UI to control registration of instance
60
- */
59
+ * UI to control registration of instance
60
+ */
61
61
  export declare function registrationControl(context: AuthenticationContext, instance: any, theClass: any): Promise<AuthenticationContext | void>;
62
62
  /**
63
- * UI to List at all registered things
64
- */
63
+ * UI to List at all registered things
64
+ */
65
65
  export declare function registrationList(context0: AuthenticationContext, options: {
66
66
  private?: boolean;
67
67
  public?: boolean;
@@ -69,57 +69,57 @@ export declare function registrationList(context0: AuthenticationContext, option
69
69
  }): Promise<AuthenticationContext>;
70
70
  export declare function renderSignInPopup(dom: HTMLDocument): void;
71
71
  /**
72
- * Login status box
73
- *
74
- * A big sign-up/sign in box or a logout box depending on the state
75
- *
76
- * @param dom
77
- * @param listener
78
- *
79
- * @returns
80
- */
72
+ * Login status box
73
+ *
74
+ * A big sign-up/sign in box or a logout box depending on the state
75
+ *
76
+ * @param dom
77
+ * @param listener
78
+ *
79
+ * @returns
80
+ */
81
81
  export declare function loginStatusBox(dom: HTMLDocument, listener?: ((uri: string | null) => void) | null, options?: {
82
82
  buttonStyle?: string;
83
83
  }): HTMLElement;
84
84
  /**
85
- * Workspace selection etc
86
- * See https://github.com/solid/userguide/issues/16
87
- */
85
+ * Workspace selection etc
86
+ * See https://github.com/solidos/userguide/issues/16
87
+ */
88
88
  /**
89
- * Returns a UI object which, if it selects a workspace,
90
- * will callback(workspace, newBase).
91
- * See https://github.com/solid/userguide/issues/16 for more info on workspaces.
92
- *
93
- * If necessary, will get an account, preference file, etc. In sequence:
94
- *
95
- * - If not logged in, log in.
96
- * - Load preference file
97
- * - Prompt user for workspaces
98
- * - Allows the user to just type in a URI by hand
99
- *
100
- * Calls back with the workspace and the base URI
101
- *
102
- * @param dom
103
- * @param appDetails
104
- * @param callbackWS
105
- */
89
+ * Returns a UI object which, if it selects a workspace,
90
+ * will callback(workspace, newBase).
91
+ * See https://github.com/solidos/userguide/issues/16 for more info on workspaces.
92
+ *
93
+ * If necessary, will get an account, preference file, etc. In sequence:
94
+ *
95
+ * - If not logged in, log in.
96
+ * - Load preference file
97
+ * - Prompt user for workspaces
98
+ * - Allows the user to just type in a URI by hand
99
+ *
100
+ * Calls back with the workspace and the base URI
101
+ *
102
+ * @param dom
103
+ * @param appDetails
104
+ * @param callbackWS
105
+ */
106
106
  export declare function selectWorkspace(dom: HTMLDocument, appDetails: AppDetails, callbackWS: (workspace: string | null, newBase: string) => void): HTMLElement;
107
107
  /**
108
- * Creates a new instance of an app.
109
- *
110
- * An instance of an app could be e.g. an issue tracker for a given project,
111
- * or a chess game, or calendar, or a health/fitness record for a person.
112
- *
113
- * Note that this use of the term 'app' refers more to entries in the user's
114
- * type index than to actual software applications that use the personal data
115
- * to which these entries point.
116
- *
117
- * @param dom
118
- * @param appDetails
119
- * @param callback
120
- *
121
- * @returns A div with a button in it for making a new app instance
122
- */
108
+ * Creates a new instance of an app.
109
+ *
110
+ * An instance of an app could be e.g. an issue tracker for a given project,
111
+ * or a chess game, or calendar, or a health/fitness record for a person.
112
+ *
113
+ * Note that this use of the term 'app' refers more to entries in the user's
114
+ * type index than to actual software applications that use the personal data
115
+ * to which these entries point.
116
+ *
117
+ * @param dom
118
+ * @param appDetails
119
+ * @param callback
120
+ *
121
+ * @returns A div with a button in it for making a new app instance
122
+ */
123
123
  export declare function newAppInstance(dom: HTMLDocument, appDetails: AppDetails, callback: (workspace: string | null, newBase: string) => void): HTMLElement;
124
124
  /**
125
125
  * Retrieves whether the currently logged in user is a power user
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/login/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAa,SAAS,EAAiB,MAAM,QAAQ,CAAA;AAG5D,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAgN,MAAM,aAAa,CAAA;AAS7Q;;;;IAII;AAEJ,wBAAgB,cAAc,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAwB9F;AAED;;;;;;;GAOG;AAEH,wBAAsB,uBAAuB,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA2D7G;AAED;;;;;;GAMG;AAEH,wBAAsB,mBAAmB,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAmBzG;AAED;;;;;IAKI;AACJ,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,SAAS,EACnB,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAqEhC;AAED;;IAEI;AACJ,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,qBAAqB,EAC9B,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;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,YAAY,EACjB,QAAQ,GAAE,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,IAAW,EACtD,OAAO,GAAE;IACP,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GACL,WAAW,CAmFb;AAsBD;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,YAAY,EACjB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,GAC9D,WAAW,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"}
@@ -46,6 +46,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
46
46
 
47
47
  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; }
48
48
 
49
+ /* eslint-disable camelcase */
50
+
49
51
  /**
50
52
  * Signing in, signing up, profile and preferences reloading
51
53
  * Type index management
@@ -72,10 +74,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
72
74
  */
73
75
 
74
76
  /**
75
- * Resolves with the logged in user's WebID
76
- *
77
- * @param context
78
- */
77
+ * Resolves with the logged in user's WebID
78
+ *
79
+ * @param context
80
+ */
79
81
  // used to be logIn
80
82
  function ensureLoggedIn(context) {
81
83
  var me = _solidLogic.authn.currentUser();
@@ -269,11 +271,11 @@ function ensureLoadedProfile(_x3) {
269
271
  return _ensureLoadedProfile.apply(this, arguments);
270
272
  }
271
273
  /**
272
- * Returns promise of context with arrays of symbols
273
- *
274
- * 2016-12-11 change to include forClass arc a la
275
- * https://github.com/solid/solid/blob/main/proposals/data-discovery.md
276
- */
274
+ * Returns promise of context with arrays of symbols
275
+ *
276
+ * 2016-12-11 change to include forClass arc a la
277
+ * https://github.com/solid/solid/blob/main/proposals/data-discovery.md
278
+ */
277
279
 
278
280
 
279
281
  function _ensureLoadedProfile() {
@@ -341,8 +343,8 @@ function findAppInstances(_x4, _x5, _x6) {
341
343
  return _findAppInstances.apply(this, arguments);
342
344
  }
343
345
  /**
344
- * UI to control registration of instance
345
- */
346
+ * UI to control registration of instance
347
+ */
346
348
 
347
349
 
348
350
  function _findAppInstances() {
@@ -491,8 +493,8 @@ function registrationControl(_x7, _x8, _x9) {
491
493
  return _registrationControl.apply(this, arguments);
492
494
  }
493
495
  /**
494
- * UI to List at all registered things
495
- */
496
+ * UI to List at all registered things
497
+ */
496
498
 
497
499
 
498
500
  function _registrationControl() {
@@ -718,14 +720,14 @@ function getDefaultSignInButtonStyle() {
718
720
  return 'padding: 1em; border-radius:0.5em; font-size: 100%;';
719
721
  }
720
722
  /**
721
- * Bootstrapping identity
722
- * (Called by `loginStatusBox()`)
723
- *
724
- * @param dom
725
- * @param setUserCallback
726
- *
727
- * @returns
728
- */
723
+ * Bootstrapping identity
724
+ * (Called by `loginStatusBox()`)
725
+ *
726
+ * @param dom
727
+ * @param setUserCallback
728
+ *
729
+ * @returns
730
+ */
729
731
 
730
732
 
731
733
  function signInOrSignUpBox(dom, setUserCallback) {
@@ -803,8 +805,8 @@ function signInOrSignUpBox(dom, setUserCallback) {
803
805
 
804
806
  function renderSignInPopup(dom) {
805
807
  /**
806
- * Issuer Menu
807
- */
808
+ * Issuer Menu
809
+ */
808
810
  var issuerPopup = dom.createElement('div');
809
811
  issuerPopup.setAttribute('style', 'position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center;');
810
812
  dom.body.appendChild(issuerPopup);
@@ -818,7 +820,7 @@ function renderSignInPopup(dom) {
818
820
  issuerPopupBoxLabel.setAttribute('style', 'margin-right: 5px; font-weight: 800');
819
821
  issuerPopupBoxLabel.innerText = 'Select an identity provider';
820
822
  var issuerPopupBoxCloseButton = dom.createElement('button');
821
- issuerPopupBoxCloseButton.innerHTML = '<img src="https://solid.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">';
823
+ issuerPopupBoxCloseButton.innerHTML = '<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">';
822
824
  issuerPopupBoxCloseButton.setAttribute('style', 'background-color: transparent; border: none;');
823
825
  issuerPopupBoxCloseButton.addEventListener('click', function () {
824
826
  issuerPopup.remove();
@@ -871,8 +873,8 @@ function renderSignInPopup(dom) {
871
873
  };
872
874
  }();
873
875
  /**
874
- * Text-based idp selection
875
- */
876
+ * Text-based idp selection
877
+ */
876
878
 
877
879
 
878
880
  var issuerTextContainer = dom.createElement('div');
@@ -899,8 +901,8 @@ function renderSignInPopup(dom) {
899
901
  issuerTextContainer.appendChild(issuerTextInputContainer);
900
902
  issuerPopupBox.appendChild(issuerTextContainer);
901
903
  /**
902
- * Button-based idp selection
903
- */
904
+ * Button-based idp selection
905
+ */
904
906
 
905
907
  var issuerButtonContainer = dom.createElement('div');
906
908
  issuerButtonContainer.setAttribute('style', "\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");
@@ -920,15 +922,15 @@ function renderSignInPopup(dom) {
920
922
  issuerPopupBox.appendChild(issuerButtonContainer);
921
923
  }
922
924
  /**
923
- * Login status box
924
- *
925
- * A big sign-up/sign in box or a logout box depending on the state
926
- *
927
- * @param dom
928
- * @param listener
929
- *
930
- * @returns
931
- */
925
+ * Login status box
926
+ *
927
+ * A big sign-up/sign in box or a logout box depending on the state
928
+ *
929
+ * @param dom
930
+ * @param listener
931
+ *
932
+ * @returns
933
+ */
932
934
 
933
935
 
934
936
  function loginStatusBox(dom) {
@@ -1089,28 +1091,28 @@ _solidLogic.authSession.onLogout( /*#__PURE__*/(0, _asyncToGenerator2["default"]
1089
1091
  }, _callee2, null, [[2, 17]]);
1090
1092
  })));
1091
1093
  /**
1092
- * Workspace selection etc
1093
- * See https://github.com/solid/userguide/issues/16
1094
- */
1094
+ * Workspace selection etc
1095
+ * See https://github.com/solidos/userguide/issues/16
1096
+ */
1095
1097
 
1096
1098
  /**
1097
- * Returns a UI object which, if it selects a workspace,
1098
- * will callback(workspace, newBase).
1099
- * See https://github.com/solid/userguide/issues/16 for more info on workspaces.
1100
- *
1101
- * If necessary, will get an account, preference file, etc. In sequence:
1102
- *
1103
- * - If not logged in, log in.
1104
- * - Load preference file
1105
- * - Prompt user for workspaces
1106
- * - Allows the user to just type in a URI by hand
1107
- *
1108
- * Calls back with the workspace and the base URI
1109
- *
1110
- * @param dom
1111
- * @param appDetails
1112
- * @param callbackWS
1113
- */
1099
+ * Returns a UI object which, if it selects a workspace,
1100
+ * will callback(workspace, newBase).
1101
+ * See https://github.com/solidos/userguide/issues/16 for more info on workspaces.
1102
+ *
1103
+ * If necessary, will get an account, preference file, etc. In sequence:
1104
+ *
1105
+ * - If not logged in, log in.
1106
+ * - Load preference file
1107
+ * - Prompt user for workspaces
1108
+ * - Allows the user to just type in a URI by hand
1109
+ *
1110
+ * Calls back with the workspace and the base URI
1111
+ *
1112
+ * @param dom
1113
+ * @param appDetails
1114
+ * @param callbackWS
1115
+ */
1114
1116
 
1115
1117
 
1116
1118
  function selectWorkspace(dom, appDetails, callbackWS) {
@@ -1373,21 +1375,21 @@ function selectWorkspace(dom, appDetails, callbackWS) {
1373
1375
  } // selectWorkspace
1374
1376
 
1375
1377
  /**
1376
- * Creates a new instance of an app.
1377
- *
1378
- * An instance of an app could be e.g. an issue tracker for a given project,
1379
- * or a chess game, or calendar, or a health/fitness record for a person.
1380
- *
1381
- * Note that this use of the term 'app' refers more to entries in the user's
1382
- * type index than to actual software applications that use the personal data
1383
- * to which these entries point.
1384
- *
1385
- * @param dom
1386
- * @param appDetails
1387
- * @param callback
1388
- *
1389
- * @returns A div with a button in it for making a new app instance
1390
- */
1378
+ * Creates a new instance of an app.
1379
+ *
1380
+ * An instance of an app could be e.g. an issue tracker for a given project,
1381
+ * or a chess game, or calendar, or a health/fitness record for a person.
1382
+ *
1383
+ * Note that this use of the term 'app' refers more to entries in the user's
1384
+ * type index than to actual software applications that use the personal data
1385
+ * to which these entries point.
1386
+ *
1387
+ * @param dom
1388
+ * @param appDetails
1389
+ * @param callback
1390
+ *
1391
+ * @returns A div with a button in it for making a new app instance
1392
+ */
1391
1393
 
1392
1394
 
1393
1395
  function newAppInstance(dom, appDetails, callback) {