@spotto/contract 1.0.70-alpha.29 → 1.0.70-alpha.30
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.
|
@@ -151,6 +151,29 @@ export interface NamedHomeLayout {
|
|
|
151
151
|
id: string;
|
|
152
152
|
/** User-authored name, shown in the Home's layout switcher. */
|
|
153
153
|
name: string;
|
|
154
|
+
/**
|
|
155
|
+
* Icon NAME from the client's curated set (kebab-case, e.g. `ambulance`) —
|
|
156
|
+
* never a URL or markup, exactly as `HeroWidgetPresentation.icon` works. The
|
|
157
|
+
* client resolves the name to a component and falls back to a default mark on
|
|
158
|
+
* one it doesn't recognise, which is why the API bounds the string rather
|
|
159
|
+
* than enumerating the set: adding an icon is then a client release, not an
|
|
160
|
+
* API deploy.
|
|
161
|
+
*
|
|
162
|
+
* A layout's mark is how it is recognised in the switcher, ahead of reading
|
|
163
|
+
* its name — a set of task layouts very often shares a shape (scan-shaped
|
|
164
|
+
* work looks like scan-shaped work), so what distinguishes them has to be
|
|
165
|
+
* chosen rather than derived. Absent on every layout stored before this
|
|
166
|
+
* shipped, so readers need a fallback.
|
|
167
|
+
*/
|
|
168
|
+
icon?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Colour NAME from the client's curated set (e.g. `amber`), on the same terms
|
|
171
|
+
* as `icon`: a name resolved client-side against a known vocabulary, not a
|
|
172
|
+
* hex value. Bounding a name rather than accepting a colour keeps a user from
|
|
173
|
+
* choosing something illegible, keeps light and dark mode in the client's
|
|
174
|
+
* hands, and keeps adding a colour a client release.
|
|
175
|
+
*/
|
|
176
|
+
colour?: string;
|
|
154
177
|
/** Flat, ordered widget list; geometry lives on each widget's `gridPos`. */
|
|
155
178
|
widgets: HomeWidget[];
|
|
156
179
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.70-alpha.
|
|
4
|
+
"version": "1.0.70-alpha.30",
|
|
5
5
|
"description": "Spotto's API Contract type definitions",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"@types/geojson": "^7946.0.11",
|
|
19
19
|
"shx": "^0.3.4"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "9caf97c8f4e52cb486fbab552b004095df38d579"
|
|
22
22
|
}
|