@pathway-io/core 1.0.17 → 1.0.19

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -26,40 +26,75 @@ declare const colors: {
26
26
  };
27
27
  };
28
28
  declare const fonts: {
29
- readonly '3xl': {
29
+ readonly "3xl": {
30
30
  readonly size: 40;
31
31
  readonly lineHeight: 48;
32
- readonly fontFamily: "Helvetica-Now-Display";
32
+ readonly family: {
33
+ readonly light: "HelveticaNowDisplayLight";
34
+ readonly reg: "HelveticaNowDisplayRegular";
35
+ readonly med: "HelveticaNowDisplayMedium";
36
+ readonly bold: "HelveticaNowDisplayBold";
37
+ };
33
38
  };
34
- readonly '2xl': {
39
+ readonly "2xl": {
35
40
  readonly size: 28;
36
41
  readonly lineHeight: 36;
37
- readonly fontFamily: "Helvetica-Now-Display";
42
+ readonly family: {
43
+ readonly light: "HelveticaNowTextLight";
44
+ readonly reg: "HelveticaNowTextRegular";
45
+ readonly med: "HelveticaNowTextMedium";
46
+ readonly bold: "HelveticaNowTextBold";
47
+ };
38
48
  };
39
49
  readonly xl: {
40
50
  readonly size: 24;
41
51
  readonly lineHeight: 28;
42
- readonly fontFamily: "Helvetica-Now-Text";
52
+ readonly family: {
53
+ readonly light: "HelveticaNowTextLight";
54
+ readonly reg: "HelveticaNowTextRegular";
55
+ readonly med: "HelveticaNowTextMedium";
56
+ readonly bold: "HelveticaNowTextBold";
57
+ };
43
58
  };
44
59
  readonly lg: {
45
60
  readonly size: 20;
46
61
  readonly lineHeight: 28;
47
- readonly fontFamily: "Helvetica-Now-Text";
62
+ readonly family: {
63
+ readonly light: "HelveticaNowTextLight";
64
+ readonly reg: "HelveticaNowTextRegular";
65
+ readonly med: "HelveticaNowTextMedium";
66
+ readonly bold: "HelveticaNowTextBold";
67
+ };
48
68
  };
49
69
  readonly default: {
50
70
  readonly size: 16;
51
71
  readonly lineHeight: 22;
52
- readonly fontFamily: "Helvetica-Now-Text";
72
+ readonly family: {
73
+ readonly light: "HelveticaNowTextLight";
74
+ readonly reg: "HelveticaNowTextRegular";
75
+ readonly med: "HelveticaNowTextMedium";
76
+ readonly bold: "HelveticaNowTextBold";
77
+ };
53
78
  };
54
79
  readonly sm: {
55
80
  readonly size: 14;
56
81
  readonly lineHeight: 20;
57
- readonly fontFamily: "Helvetica-Now-Text";
82
+ readonly family: {
83
+ readonly light: "HelveticaNowMicroLight";
84
+ readonly reg: "HelveticaNowMicroRegular";
85
+ readonly med: "HelveticaNowMicroMedium";
86
+ readonly bold: "HelveticaNowMicroBold";
87
+ };
58
88
  };
59
89
  readonly xs: {
60
90
  readonly size: 12;
61
91
  readonly lineHeight: 18;
62
- readonly fontFamily: "Helvetica-Now-Text";
92
+ readonly family: {
93
+ readonly light: "HelveticaNowMicroLight";
94
+ readonly reg: "HelveticaNowMicroRegular";
95
+ readonly med: "HelveticaNowMicroMedium";
96
+ readonly bold: "HelveticaNowMicroBold";
97
+ };
63
98
  };
64
99
  };
65
100
 
@@ -116,6 +151,7 @@ type User = {
116
151
  lastSignedInAt?: Date;
117
152
  signInCount: number;
118
153
  role: UserRole;
154
+ pictureUrl?: string;
119
155
  };
120
156
 
121
157
  export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateInput, type MessageListCoercedQueryParams, type MessageListQueryParams, type User, type UserRole, colors, fonts };
package/dist/index.d.ts CHANGED
@@ -26,40 +26,75 @@ declare const colors: {
26
26
  };
27
27
  };
28
28
  declare const fonts: {
29
- readonly '3xl': {
29
+ readonly "3xl": {
30
30
  readonly size: 40;
31
31
  readonly lineHeight: 48;
32
- readonly fontFamily: "Helvetica-Now-Display";
32
+ readonly family: {
33
+ readonly light: "HelveticaNowDisplayLight";
34
+ readonly reg: "HelveticaNowDisplayRegular";
35
+ readonly med: "HelveticaNowDisplayMedium";
36
+ readonly bold: "HelveticaNowDisplayBold";
37
+ };
33
38
  };
34
- readonly '2xl': {
39
+ readonly "2xl": {
35
40
  readonly size: 28;
36
41
  readonly lineHeight: 36;
37
- readonly fontFamily: "Helvetica-Now-Display";
42
+ readonly family: {
43
+ readonly light: "HelveticaNowTextLight";
44
+ readonly reg: "HelveticaNowTextRegular";
45
+ readonly med: "HelveticaNowTextMedium";
46
+ readonly bold: "HelveticaNowTextBold";
47
+ };
38
48
  };
39
49
  readonly xl: {
40
50
  readonly size: 24;
41
51
  readonly lineHeight: 28;
42
- readonly fontFamily: "Helvetica-Now-Text";
52
+ readonly family: {
53
+ readonly light: "HelveticaNowTextLight";
54
+ readonly reg: "HelveticaNowTextRegular";
55
+ readonly med: "HelveticaNowTextMedium";
56
+ readonly bold: "HelveticaNowTextBold";
57
+ };
43
58
  };
44
59
  readonly lg: {
45
60
  readonly size: 20;
46
61
  readonly lineHeight: 28;
47
- readonly fontFamily: "Helvetica-Now-Text";
62
+ readonly family: {
63
+ readonly light: "HelveticaNowTextLight";
64
+ readonly reg: "HelveticaNowTextRegular";
65
+ readonly med: "HelveticaNowTextMedium";
66
+ readonly bold: "HelveticaNowTextBold";
67
+ };
48
68
  };
49
69
  readonly default: {
50
70
  readonly size: 16;
51
71
  readonly lineHeight: 22;
52
- readonly fontFamily: "Helvetica-Now-Text";
72
+ readonly family: {
73
+ readonly light: "HelveticaNowTextLight";
74
+ readonly reg: "HelveticaNowTextRegular";
75
+ readonly med: "HelveticaNowTextMedium";
76
+ readonly bold: "HelveticaNowTextBold";
77
+ };
53
78
  };
54
79
  readonly sm: {
55
80
  readonly size: 14;
56
81
  readonly lineHeight: 20;
57
- readonly fontFamily: "Helvetica-Now-Text";
82
+ readonly family: {
83
+ readonly light: "HelveticaNowMicroLight";
84
+ readonly reg: "HelveticaNowMicroRegular";
85
+ readonly med: "HelveticaNowMicroMedium";
86
+ readonly bold: "HelveticaNowMicroBold";
87
+ };
58
88
  };
59
89
  readonly xs: {
60
90
  readonly size: 12;
61
91
  readonly lineHeight: 18;
62
- readonly fontFamily: "Helvetica-Now-Text";
92
+ readonly family: {
93
+ readonly light: "HelveticaNowMicroLight";
94
+ readonly reg: "HelveticaNowMicroRegular";
95
+ readonly med: "HelveticaNowMicroMedium";
96
+ readonly bold: "HelveticaNowMicroBold";
97
+ };
63
98
  };
64
99
  };
65
100
 
@@ -116,6 +151,7 @@ type User = {
116
151
  lastSignedInAt?: Date;
117
152
  signInCount: number;
118
153
  role: UserRole;
154
+ pictureUrl?: string;
119
155
  };
120
156
 
121
157
  export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateInput, type MessageListCoercedQueryParams, type MessageListQueryParams, type User, type UserRole, colors, fonts };
package/dist/index.js CHANGED
@@ -59,37 +59,72 @@ var fonts = {
59
59
  "3xl": {
60
60
  size: 40,
61
61
  lineHeight: 48,
62
- fontFamily: "Helvetica-Now-Display"
62
+ family: {
63
+ light: "HelveticaNowDisplayLight",
64
+ reg: "HelveticaNowDisplayRegular",
65
+ med: "HelveticaNowDisplayMedium",
66
+ bold: "HelveticaNowDisplayBold"
67
+ }
63
68
  },
64
69
  "2xl": {
65
70
  size: 28,
66
71
  lineHeight: 36,
67
- fontFamily: "Helvetica-Now-Display"
72
+ family: {
73
+ light: "HelveticaNowTextLight",
74
+ reg: "HelveticaNowTextRegular",
75
+ med: "HelveticaNowTextMedium",
76
+ bold: "HelveticaNowTextBold"
77
+ }
68
78
  },
69
79
  xl: {
70
80
  size: 24,
71
81
  lineHeight: 28,
72
- fontFamily: "Helvetica-Now-Text"
82
+ family: {
83
+ light: "HelveticaNowTextLight",
84
+ reg: "HelveticaNowTextRegular",
85
+ med: "HelveticaNowTextMedium",
86
+ bold: "HelveticaNowTextBold"
87
+ }
73
88
  },
74
89
  lg: {
75
90
  size: 20,
76
91
  lineHeight: 28,
77
- fontFamily: "Helvetica-Now-Text"
92
+ family: {
93
+ light: "HelveticaNowTextLight",
94
+ reg: "HelveticaNowTextRegular",
95
+ med: "HelveticaNowTextMedium",
96
+ bold: "HelveticaNowTextBold"
97
+ }
78
98
  },
79
99
  default: {
80
100
  size: 16,
81
101
  lineHeight: 22,
82
- fontFamily: "Helvetica-Now-Text"
102
+ family: {
103
+ light: "HelveticaNowTextLight",
104
+ reg: "HelveticaNowTextRegular",
105
+ med: "HelveticaNowTextMedium",
106
+ bold: "HelveticaNowTextBold"
107
+ }
83
108
  },
84
109
  sm: {
85
110
  size: 14,
86
111
  lineHeight: 20,
87
- fontFamily: "Helvetica-Now-Text"
112
+ family: {
113
+ light: "HelveticaNowMicroLight",
114
+ reg: "HelveticaNowMicroRegular",
115
+ med: "HelveticaNowMicroMedium",
116
+ bold: "HelveticaNowMicroBold"
117
+ }
88
118
  },
89
119
  xs: {
90
120
  size: 12,
91
121
  lineHeight: 18,
92
- fontFamily: "Helvetica-Now-Text"
122
+ family: {
123
+ light: "HelveticaNowMicroLight",
124
+ reg: "HelveticaNowMicroRegular",
125
+ med: "HelveticaNowMicroMedium",
126
+ bold: "HelveticaNowMicroBold"
127
+ }
93
128
  }
94
129
  };
95
130
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -32,37 +32,72 @@ var fonts = {
32
32
  "3xl": {
33
33
  size: 40,
34
34
  lineHeight: 48,
35
- fontFamily: "Helvetica-Now-Display"
35
+ family: {
36
+ light: "HelveticaNowDisplayLight",
37
+ reg: "HelveticaNowDisplayRegular",
38
+ med: "HelveticaNowDisplayMedium",
39
+ bold: "HelveticaNowDisplayBold"
40
+ }
36
41
  },
37
42
  "2xl": {
38
43
  size: 28,
39
44
  lineHeight: 36,
40
- fontFamily: "Helvetica-Now-Display"
45
+ family: {
46
+ light: "HelveticaNowTextLight",
47
+ reg: "HelveticaNowTextRegular",
48
+ med: "HelveticaNowTextMedium",
49
+ bold: "HelveticaNowTextBold"
50
+ }
41
51
  },
42
52
  xl: {
43
53
  size: 24,
44
54
  lineHeight: 28,
45
- fontFamily: "Helvetica-Now-Text"
55
+ family: {
56
+ light: "HelveticaNowTextLight",
57
+ reg: "HelveticaNowTextRegular",
58
+ med: "HelveticaNowTextMedium",
59
+ bold: "HelveticaNowTextBold"
60
+ }
46
61
  },
47
62
  lg: {
48
63
  size: 20,
49
64
  lineHeight: 28,
50
- fontFamily: "Helvetica-Now-Text"
65
+ family: {
66
+ light: "HelveticaNowTextLight",
67
+ reg: "HelveticaNowTextRegular",
68
+ med: "HelveticaNowTextMedium",
69
+ bold: "HelveticaNowTextBold"
70
+ }
51
71
  },
52
72
  default: {
53
73
  size: 16,
54
74
  lineHeight: 22,
55
- fontFamily: "Helvetica-Now-Text"
75
+ family: {
76
+ light: "HelveticaNowTextLight",
77
+ reg: "HelveticaNowTextRegular",
78
+ med: "HelveticaNowTextMedium",
79
+ bold: "HelveticaNowTextBold"
80
+ }
56
81
  },
57
82
  sm: {
58
83
  size: 14,
59
84
  lineHeight: 20,
60
- fontFamily: "Helvetica-Now-Text"
85
+ family: {
86
+ light: "HelveticaNowMicroLight",
87
+ reg: "HelveticaNowMicroRegular",
88
+ med: "HelveticaNowMicroMedium",
89
+ bold: "HelveticaNowMicroBold"
90
+ }
61
91
  },
62
92
  xs: {
63
93
  size: 12,
64
94
  lineHeight: 18,
65
- fontFamily: "Helvetica-Now-Text"
95
+ family: {
96
+ light: "HelveticaNowMicroLight",
97
+ reg: "HelveticaNowMicroRegular",
98
+ med: "HelveticaNowMicroMedium",
99
+ bold: "HelveticaNowMicroBold"
100
+ }
66
101
  }
67
102
  };
68
103
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathway-io/core",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Shared constants and types for Pathway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,69 +1,104 @@
1
1
  const gray = {
2
- 50: '#fafaf9',
3
- 100: '#f5f5f4',
4
- 200: '#e7e5e4',
5
- 300: '#d6d3d1',
6
- 400: '#a8a29e',
7
- 500: '#78716c',
8
- 600: '#57534e',
9
- 700: '#44403c',
10
- 800: '#292524',
11
- 900: '#1c1917',
12
- 950: '#0c0a09'
13
- }
2
+ 50: "#fafaf9",
3
+ 100: "#f5f5f4",
4
+ 200: "#e7e5e4",
5
+ 300: "#d6d3d1",
6
+ 400: "#a8a29e",
7
+ 500: "#78716c",
8
+ 600: "#57534e",
9
+ 700: "#44403c",
10
+ 800: "#292524",
11
+ 900: "#1c1917",
12
+ 950: "#0c0a09",
13
+ };
14
14
 
15
15
  const green = {
16
- 100: '#eeece8',
17
- 200: '#d1d5c3',
18
- 300: '#a3b18a',
19
- 400: '#7e9971',
20
- 500: '#588157',
21
- 600: '#3a5a40',
22
- 700: '#344e41',
23
- 800: '#23342b',
24
- 900: '#0b120f',
25
- 950: '#090f0c'
26
- }
16
+ 100: "#eeece8",
17
+ 200: "#d1d5c3",
18
+ 300: "#a3b18a",
19
+ 400: "#7e9971",
20
+ 500: "#588157",
21
+ 600: "#3a5a40",
22
+ 700: "#344e41",
23
+ 800: "#23342b",
24
+ 900: "#0b120f",
25
+ 950: "#090f0c",
26
+ };
27
27
 
28
28
  export const colors = {
29
29
  neutral: gray,
30
- primary: green
31
- } as const
30
+ primary: green,
31
+ } as const;
32
32
 
33
33
  export const fonts = {
34
- '3xl': {
34
+ "3xl": {
35
35
  size: 40,
36
36
  lineHeight: 48,
37
- fontFamily: 'Helvetica-Now-Display'
37
+ family: {
38
+ light: "HelveticaNowDisplayLight",
39
+ reg: "HelveticaNowDisplayRegular",
40
+ med: "HelveticaNowDisplayMedium",
41
+ bold: "HelveticaNowDisplayBold",
42
+ },
38
43
  },
39
- '2xl': {
44
+ "2xl": {
40
45
  size: 28,
41
46
  lineHeight: 36,
42
- fontFamily: 'Helvetica-Now-Display'
47
+ family: {
48
+ light: "HelveticaNowTextLight",
49
+ reg: "HelveticaNowTextRegular",
50
+ med: "HelveticaNowTextMedium",
51
+ bold: "HelveticaNowTextBold",
52
+ },
43
53
  },
44
54
  xl: {
45
55
  size: 24,
46
56
  lineHeight: 28,
47
- fontFamily: 'Helvetica-Now-Text'
57
+ family: {
58
+ light: "HelveticaNowTextLight",
59
+ reg: "HelveticaNowTextRegular",
60
+ med: "HelveticaNowTextMedium",
61
+ bold: "HelveticaNowTextBold",
62
+ },
48
63
  },
49
64
  lg: {
50
65
  size: 20,
51
66
  lineHeight: 28,
52
- fontFamily: 'Helvetica-Now-Text'
67
+ family: {
68
+ light: "HelveticaNowTextLight",
69
+ reg: "HelveticaNowTextRegular",
70
+ med: "HelveticaNowTextMedium",
71
+ bold: "HelveticaNowTextBold",
72
+ },
53
73
  },
54
74
  default: {
55
75
  size: 16,
56
76
  lineHeight: 22,
57
- fontFamily: 'Helvetica-Now-Text'
77
+ family: {
78
+ light: "HelveticaNowTextLight",
79
+ reg: "HelveticaNowTextRegular",
80
+ med: "HelveticaNowTextMedium",
81
+ bold: "HelveticaNowTextBold",
82
+ },
58
83
  },
59
84
  sm: {
60
85
  size: 14,
61
86
  lineHeight: 20,
62
- fontFamily: 'Helvetica-Now-Text'
87
+ family: {
88
+ light: "HelveticaNowMicroLight",
89
+ reg: "HelveticaNowMicroRegular",
90
+ med: "HelveticaNowMicroMedium",
91
+ bold: "HelveticaNowMicroBold",
92
+ },
63
93
  },
64
94
  xs: {
65
95
  size: 12,
66
96
  lineHeight: 18,
67
- fontFamily: 'Helvetica-Now-Text'
68
- }
69
- } as const
97
+ family: {
98
+ light: "HelveticaNowMicroLight",
99
+ reg: "HelveticaNowMicroRegular",
100
+ med: "HelveticaNowMicroMedium",
101
+ bold: "HelveticaNowMicroBold",
102
+ },
103
+ },
104
+ } as const;
package/src/types/user.ts CHANGED
@@ -13,4 +13,5 @@ export type User = {
13
13
  lastSignedInAt?: Date;
14
14
  signInCount: number;
15
15
  role: UserRole;
16
+ pictureUrl?: string;
16
17
  };