@commonpub/layer 0.3.34 → 0.3.35

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.
@@ -75,7 +75,7 @@ const { hubs: hubsEnabled } = useFeatures();
75
75
  <i class="fa-solid fa-users"></i>
76
76
  </div>
77
77
  <div class="cpub-related-hub-info">
78
- <NuxtLink :to="hub.source === 'federated' ? `/federated-hubs/${hub.id}` : `/hubs/${hub.slug}`" class="cpub-related-hub-name">{{ hub.name }}</NuxtLink>
78
+ <NuxtLink :to="(hub as Record<string, unknown>).source === 'federated' ? `/federated-hubs/${hub.id}` : `/hubs/${hub.slug}`" class="cpub-related-hub-name">{{ hub.name }}</NuxtLink>
79
79
  <div class="cpub-related-hub-members">{{ hub.memberCount ?? 0 }} members</div>
80
80
  </div>
81
81
  <button class="cpub-btn-join-sm">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonpub/layer",
3
- "version": "0.3.34",
3
+ "version": "0.3.35",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [
@@ -46,13 +46,13 @@
46
46
  "zod": "^4.3.6",
47
47
  "@commonpub/auth": "0.5.0",
48
48
  "@commonpub/config": "0.7.1",
49
+ "@commonpub/docs": "0.5.2",
49
50
  "@commonpub/editor": "0.5.0",
50
51
  "@commonpub/learning": "0.5.0",
51
- "@commonpub/docs": "0.5.2",
52
52
  "@commonpub/protocol": "0.9.5",
53
- "@commonpub/server": "2.19.0",
54
- "@commonpub/schema": "0.8.13",
55
- "@commonpub/ui": "0.7.1"
53
+ "@commonpub/server": "2.19.1",
54
+ "@commonpub/ui": "0.7.1",
55
+ "@commonpub/schema": "0.8.13"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@testing-library/jest-dom": "^6.9.1",
package/pages/index.vue CHANGED
@@ -298,7 +298,7 @@ async function handleHubJoin(hubSlug: string): Promise<void> {
298
298
  <i v-else class="fa-solid fa-users"></i>
299
299
  </div>
300
300
  <div class="cpub-hub-info">
301
- <NuxtLink :to="hub.source === 'federated' ? `/federated-hubs/${hub.id}` : `/hubs/${hub.slug}`" class="cpub-hub-name">{{ hub.name }}</NuxtLink>
301
+ <NuxtLink :to="(hub as Record<string, unknown>).source === 'federated' ? `/federated-hubs/${hub.id}` : `/hubs/${hub.slug}`" class="cpub-hub-name">{{ hub.name }}</NuxtLink>
302
302
  <div class="cpub-hub-members">{{ hub.memberCount ?? 0 }} members</div>
303
303
  </div>
304
304
  <button v-if="joinedHubs.has(hub.slug)" class="cpub-btn-joined" disabled><i class="fa-solid fa-check"></i> Joined</button>
package/pages/search.vue CHANGED
@@ -327,7 +327,7 @@ const { data: relatedCommunities } = await useFetch('/api/hubs', {
327
327
  <NuxtLink
328
328
  v-for="hub in results.items"
329
329
  :key="hub.id"
330
- :to="hub.source === 'federated' ? `/federated-hubs/${hub.id}` : `/hubs/${hub.slug}`"
330
+ :to="(hub as Record<string, unknown>).source === 'federated' ? `/federated-hubs/${hub.id}` : `/hubs/${hub.slug}`"
331
331
  class="cpub-search-hub-card"
332
332
  >
333
333
  <div class="cpub-search-hub-icon">
@@ -340,7 +340,7 @@ const { data: relatedCommunities } = await useFetch('/api/hubs', {
340
340
  <div class="cpub-search-hub-meta">
341
341
  <span><i class="fa-solid fa-users"></i> {{ hub.memberCount ?? 0 }} members</span>
342
342
  <span><i class="fa-solid fa-message"></i> {{ hub.postCount ?? 0 }} posts</span>
343
- <span v-if="hub.source === 'federated'" class="cpub-search-hub-fed"><i class="fa-solid fa-globe"></i> Federated</span>
343
+ <span v-if="(hub as Record<string, unknown>).source === 'federated'" class="cpub-search-hub-fed"><i class="fa-solid fa-globe"></i> Federated</span>
344
344
  </div>
345
345
  </div>
346
346
  </NuxtLink>