@stacksjs/types 0.74.29 → 0.74.31

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.
package/dist/model.d.ts CHANGED
@@ -144,6 +144,12 @@ export declare interface SeedOptions {
144
144
  count: number
145
145
  fixtures?: Array<Record<string, unknown>>
146
146
  }
147
+ /** Which attributes `traits.useActivityLog` records. See the trait's docblock. */
148
+ declare interface ActivityLogOption {
149
+ logOnly?: string[]
150
+ include?: string[]
151
+ exclude?: string[]
152
+ }
147
153
  export declare interface Relations {
148
154
  hasOne: HasOne<ModelNames> | ModelNames[]
149
155
  hasMany: HasMany<ModelNames> | ModelNames[]
@@ -203,6 +209,7 @@ export declare interface ModelOptions extends Base {
203
209
  useApi?: ApiOptions | boolean
204
210
  observe?: string[] | boolean
205
211
  billable?: boolean
212
+ useActivityLog?: boolean | ActivityLogOption
206
213
  likeable?: boolean | LikeableOptions
207
214
  sharding?: ShardingOptions
208
215
  }
package/dist/ui.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- // Local mirror of crosswind's `Options` shape so we don't bring crosswind
2
- // into @stacksjs/types as a hard dependency. Apps that import these types
3
- // only need the structural surface (shortcuts/theme/variants); when full
4
- // crosswind type fidelity is needed, projects can import directly from
5
- // `crosswind`.
6
- declare interface CrosswindOptions {
1
+ // Local mirror of the CSS engine's config shape so we don't bring
2
+ // @stacksjs/ts-css into @stacksjs/types as a hard dependency. Apps that
3
+ // import these types only need the structural surface
4
+ // (shortcuts/theme/variants); when full fidelity is needed, projects can
5
+ // import `CssConfig` from `@stacksjs/ts-css/engine` directly.
6
+ declare interface CssConfig {
7
7
  shortcuts?: unknown
8
8
  theme?: unknown
9
9
  variants?: unknown
@@ -37,13 +37,13 @@ export declare interface UiOptions {
37
37
  fonts?: any
38
38
  useWebFonts?: boolean | WebFontsProviders
39
39
  icons: Icon | Icon[]
40
- theme: CrosswindOptions['theme']
41
- variants: CrosswindOptions['variants']
40
+ theme: CssConfig['theme']
41
+ variants: CssConfig['variants']
42
42
  }
43
43
  export type Font = 'inter' | 'mona' | 'hubot';
44
44
  export type Icon = 'heroicons' | 'hugeicons';
45
45
  export type WebFontsProviders = 'google' | 'bunny' | 'fontshare';
46
- export type Shortcuts = CrosswindOptions['shortcuts'];
46
+ export type Shortcuts = CssConfig['shortcuts'];
47
47
  export type UiConfig = Partial<UiOptions>;
48
48
  /**
49
49
  * **Style Reset — Preset**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.74.29",
4
+ "version": "0.74.31",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -58,11 +58,11 @@
58
58
  "dependencies": {
59
59
  "@stacksjs/bunpress": "^0.2.8",
60
60
  "@stacksjs/clapp": "^0.2.12",
61
- "@stacksjs/events": "0.74.29",
62
- "@stacksjs/strings": "0.74.29",
61
+ "@stacksjs/events": "0.74.31",
62
+ "@stacksjs/strings": "0.74.31",
63
63
  "@stacksjs/stx": "^0.2.274",
64
64
  "@stacksjs/ts-validation": "^0.5.6",
65
- "bun-query-builder": "^0.2.68"
65
+ "bun-query-builder": "^0.2.69"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "meilisearch": "^0.59.0"
@@ -73,7 +73,7 @@
73
73
  }
74
74
  },
75
75
  "devDependencies": {
76
- "@stacksjs/validation": "0.74.29",
76
+ "@stacksjs/validation": "0.74.31",
77
77
  "better-dx": "^0.2.24",
78
78
  "meilisearch": "^0.59.0"
79
79
  },