@getpaseo/protocol 0.4.0 → 0.5.0-beta.2

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.
@@ -0,0 +1,9 @@
1
+ export declare const WORKSPACE_LABEL_COLORS: readonly ["violet", "sky", "emerald", "orange", "pink", "indigo", "teal", "red", "amber", "blue"];
2
+ export type WorkspaceLabelColor = (typeof WORKSPACE_LABEL_COLORS)[number];
3
+ export interface WorkspaceLabelDefinition {
4
+ name: string;
5
+ color: WorkspaceLabelColor;
6
+ }
7
+ export declare function normalizeWorkspaceLabelName(name: string): string;
8
+ export declare function workspaceLabelKey(name: string): string;
9
+ //# sourceMappingURL=workspace-labels.d.ts.map
@@ -0,0 +1,19 @@
1
+ export const WORKSPACE_LABEL_COLORS = [
2
+ "violet",
3
+ "sky",
4
+ "emerald",
5
+ "orange",
6
+ "pink",
7
+ "indigo",
8
+ "teal",
9
+ "red",
10
+ "amber",
11
+ "blue",
12
+ ];
13
+ export function normalizeWorkspaceLabelName(name) {
14
+ return name.replace(/\s+/g, " ").trim();
15
+ }
16
+ export function workspaceLabelKey(name) {
17
+ return normalizeWorkspaceLabelName(name).toLowerCase();
18
+ }
19
+ //# sourceMappingURL=workspace-labels.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/protocol",
3
- "version": "0.4.0",
3
+ "version": "0.5.0-beta.2",
4
4
  "description": "Paseo shared protocol schemas and wire types",
5
5
  "files": [
6
6
  "dist",