@dodona/papyros 0.3.0 → 0.3.4

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.
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Draw a circle using an HTML svg element
2
+ * Draw a spinning circle to represent a loading animation
3
3
  * @param {string} id HTML id for this element
4
- * @param {string} color The color of the circle
4
+ * @param {string} borderColors The tailwind color classes for the borders of the circle
5
5
  * @return {string} A string representation of the circle
6
6
  */
7
- export declare const svgCircle: (id: string, color: string) => string;
7
+ export declare const spinningCircle: (id: string, borderColors: string) => string;
8
8
  /**
9
9
  * Wrap text (best a single character) in a circle to provide information to the user
10
10
  * @param {string} content The symbol in the circle, e.g. ? of !
@@ -39,4 +39,10 @@ export declare function removeSelection(selectId: string): void;
39
39
  */
40
40
  export declare function parseData(data: string, contentType?: string): any;
41
41
  export declare function downloadResults(data: string, filename: string): void;
42
+ /**
43
+ * Obtain the url of the current page without hashes, identifiers, query params, ...
44
+ * @param {boolean} endingSlash Whether the url should end in a slash
45
+ * @return {string} The current url
46
+ */
47
+ export declare function cleanCurrentUrl(endingSlash?: boolean): string;
42
48
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodona/papyros",
3
- "version": "0.3.0",
3
+ "version": "0.3.4",
4
4
  "private": false,
5
5
  "homepage": ".",
6
6
  "devDependencies": {