@stacksjs/types 0.74.66 → 0.74.68

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.
Files changed (2) hide show
  1. package/dist/images.d.ts +14 -0
  2. package/package.json +5 -5
package/dist/images.d.ts CHANGED
@@ -27,12 +27,25 @@ export declare interface ImageFontConfig {
27
27
  title: string
28
28
  body?: string
29
29
  }
30
+ /**
31
+ * Type sizes on a social card, in pixels on the 1200px-wide card.
32
+ *
33
+ * A card is drawn at 1200px and mostly seen at 300-500px: in a chat thread the
34
+ * default subtitle lands near 7px and the eyebrow near 6px. A card that has to
35
+ * read small wants all three larger, and fewer words.
36
+ */
37
+ export declare interface SocialCardTextConfig {
38
+ titleSize?: number
39
+ eyebrowSize?: number
40
+ subtitleSize?: number
41
+ }
30
42
  export declare interface SocialCardPageConfig {
31
43
  path: string
32
44
  title: string
33
45
  eyebrow?: string
34
46
  subtitle?: string
35
47
  foreground?: string
48
+ text?: SocialCardTextConfig
36
49
  }
37
50
  export declare interface SocialCardsConfig {
38
51
  enabled?: boolean
@@ -50,6 +63,7 @@ export declare interface SocialCardsConfig {
50
63
  color?: ImageColor
51
64
  mutedColor?: ImageColor
52
65
  accent?: ImageColor
66
+ text?: SocialCardTextConfig
53
67
  pages?: SocialCardPageConfig[]
54
68
  }
55
69
  export declare interface AppStoreSlideConfig {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.74.66",
4
+ "version": "0.74.68",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -58,9 +58,9 @@
58
58
  "dependencies": {
59
59
  "@stacksjs/bunpress": "^0.2.8",
60
60
  "@stacksjs/clapp": "^0.2.12",
61
- "@stacksjs/events": "0.74.66",
62
- "@stacksjs/strings": "0.74.66",
63
- "@stacksjs/stx": "^0.2.306",
61
+ "@stacksjs/events": "0.74.68",
62
+ "@stacksjs/strings": "0.74.68",
63
+ "@stacksjs/stx": "^0.2.307",
64
64
  "@stacksjs/ts-validation": "^0.5.6",
65
65
  "bun-query-builder": "^0.2.70"
66
66
  },
@@ -73,7 +73,7 @@
73
73
  }
74
74
  },
75
75
  "devDependencies": {
76
- "@stacksjs/validation": "0.74.66",
76
+ "@stacksjs/validation": "0.74.68",
77
77
  "better-dx": "^0.2.24",
78
78
  "meilisearch": "^0.59.0"
79
79
  },