@globalbrain/sefirot 3.21.0 → 3.22.1

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.
@@ -38,10 +38,12 @@ function resolve(
38
38
  :role="onClick ? 'button' : null"
39
39
  @click="() => onClick?.(value, record)"
40
40
  >
41
- <div v-if="_image" class="avatar">
41
+ <div v-if="_image || _name" class="avatar">
42
42
  <SAvatar size="mini" :avatar="_image" :name="_name" />
43
43
  </div>
44
- <span v-if="_name" class="name">{{ _name }}</span>
44
+ <span v-if="_name" class="name">
45
+ {{ _name }}
46
+ </span>
45
47
  </SLink>
46
48
  </div>
47
49
  </template>
@@ -62,7 +64,7 @@ function resolve(
62
64
 
63
65
  .name {
64
66
  display: inline-block;
65
- margin-left: 12px;
67
+ margin-left: 8px;
66
68
  line-height: 24px;
67
69
  font-size: 14px;
68
70
  font-weight: 400;
package/lib/http/Http.ts CHANGED
@@ -6,9 +6,13 @@ import { stringify } from 'qs'
6
6
 
7
7
  export class Http {
8
8
  static base: string | undefined = undefined
9
- static xsrfUrl = '/api/csrf-cookie'
9
+ static xsrfUrl: string | false = '/api/csrf-cookie'
10
10
 
11
11
  private async ensureXsrfToken(): Promise<string | undefined> {
12
+ if (!Http.xsrfUrl) {
13
+ return undefined
14
+ }
15
+
12
16
  let xsrfToken = parseCookie(document.cookie)['XSRF-TOKEN']
13
17
 
14
18
  if (!xsrfToken) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
- "version": "3.21.0",
3
+ "version": "3.22.1",
4
4
  "packageManager": "pnpm@8.14.0",
5
5
  "description": "Vue Components for Global Brain Design System.",
6
6
  "author": "Kia Ishii <ka.ishii@globalbrains.com>",