lucid-extension-sdk 0.0.65 → 0.0.67
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/package.json
CHANGED
|
@@ -24,6 +24,10 @@ export declare enum FieldDisplayType {
|
|
|
24
24
|
* Given a URL, display a small image cropped into a circle in the lower-left of the card.
|
|
25
25
|
*/
|
|
26
26
|
ImageBadge = "ImageBadge",
|
|
27
|
+
/**
|
|
28
|
+
* Given a URL, display a small image cropped into a square in the lower-left of the card.
|
|
29
|
+
*/
|
|
30
|
+
SquareImageBadge = "SquareImageBadge",
|
|
27
31
|
/**
|
|
28
32
|
* Given a date, display a small calendar icon alongside a very short version of the date
|
|
29
33
|
* as a string, e.g. "Sep 9"
|
|
@@ -28,6 +28,10 @@ var FieldDisplayType;
|
|
|
28
28
|
* Given a URL, display a small image cropped into a circle in the lower-left of the card.
|
|
29
29
|
*/
|
|
30
30
|
FieldDisplayType["ImageBadge"] = "ImageBadge";
|
|
31
|
+
/**
|
|
32
|
+
* Given a URL, display a small image cropped into a square in the lower-left of the card.
|
|
33
|
+
*/
|
|
34
|
+
FieldDisplayType["SquareImageBadge"] = "SquareImageBadge";
|
|
31
35
|
/**
|
|
32
36
|
* Given a date, display a small calendar icon alongside a very short version of the date
|
|
33
37
|
* as a string, e.g. "Sep 9"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HumanReadableError = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* An error carrying a message that is good to be shown directly in the UI.
|
|
6
|
+
* These can be thrown from extensions and caught in core code.
|
|
7
|
+
*/
|
|
8
|
+
class HumanReadableError extends Error {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.name = 'HumanReadableError';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.HumanReadableError = HumanReadableError;
|