@stacksjs/types 0.46.4 → 0.47.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.
package/dist/app.d.ts CHANGED
@@ -116,12 +116,4 @@ export interface AppOptions {
116
116
  * @default string "aes-256-cbc"
117
117
  */
118
118
  cipher: string;
119
- /**
120
- * **Font**
121
- *
122
- * Description WIP.
123
- *
124
- * @default object
125
- */
126
- font: object;
127
119
  }
package/dist/cli.d.ts CHANGED
@@ -218,7 +218,8 @@ export declare const enum Action {
218
218
  Test = "test",
219
219
  TestUi = "test-ui",
220
220
  TestCoverage = "test-coverage",
221
- Typecheck = "typecheck"
221
+ Typecheck = "typecheck",
222
+ KeyGenerate = "key-generate"
222
223
  }
223
224
  export type { CAC as CLI } from 'cac';
224
225
  export type { ExecaReturnValue as CommandResult } from 'execa';
package/dist/cli.mjs CHANGED
@@ -67,5 +67,6 @@ export var Action = /* @__PURE__ */ ((Action2) => {
67
67
  Action2["TestUi"] = "test-ui";
68
68
  Action2["TestCoverage"] = "test-coverage";
69
69
  Action2["Typecheck"] = "typecheck";
70
+ Action2["KeyGenerate"] = "key-generate";
70
71
  return Action2;
71
72
  })(Action || {});
package/dist/debug.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export interface DebugOptions {
2
- driver: string;
2
+ driver?: string;
3
3
  enabled: boolean;
4
4
  host: string;
5
5
  port: number;
package/dist/deploy.d.ts CHANGED
@@ -7,5 +7,5 @@ export interface DeployOptions {
7
7
  * @default string 'netlify'
8
8
  * @see https://stacksjs.dev/docs/components
9
9
  */
10
- host: 'netlify' | 'vercel';
10
+ driver: 'netlify' | 'vercel';
11
11
  }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * **Events**
3
+ *
4
+ * This configuration defines all of your events. Because Stacks is full-typed, you may
5
+ * hover any of the options below and the definitions will be provided. In case you
6
+ * have any questions, feel free to reach out via Discord or GitHub Discussions.
7
+ *
8
+ * @example To fire an event, you may use any of the following approaches:
9
+ * ```ts
10
+ * useEvent('user:registered', { name: 'Chris'})
11
+ * dispatch('user:registered', { name: 'Chris'})
12
+ * ````
13
+
14
+ * @example To capture an event, you may use any of the following approaches:
15
+ * ```ts
16
+ * useListen('user:registered', (user) => console.log(user))
17
+ * listen('user:registered', (user) => console.log(user))
18
+ * ```
19
+ */
20
+ export interface Events {
21
+ [key: string]: any;
22
+ }
File without changes
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './deploy';
8
8
  export * from './debug';
9
9
  export * from './docs';
10
10
  export * from './errors';
11
+ export * from './events';
11
12
  export * from './exit-code';
12
13
  export * from './fs';
13
14
  export * from './git';
package/dist/index.mjs CHANGED
@@ -8,6 +8,7 @@ export * from "./deploy.mjs";
8
8
  export * from "./debug.mjs";
9
9
  export * from "./docs.mjs";
10
10
  export * from "./errors.mjs";
11
+ export * from "./events.mjs";
11
12
  export * from "./exit-code.mjs";
12
13
  export * from "./fs.mjs";
13
14
  export * from "./git.mjs";
@@ -1,10 +1,8 @@
1
1
  import type { IChatOptions, IEmailOptions, ISendMessageSuccessResponse, ISmsOptions } from '@novu/stateless';
2
2
  export interface NotificationOptions {
3
3
  driver?: string;
4
- novu: {
5
- key: string;
6
- };
7
4
  email: {
5
+ purgeCSS: boolean;
8
6
  sendgrid: {
9
7
  key: string;
10
8
  from: string;
package/dist/ui.d.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  import type { UserShortcuts } from 'unocss';
2
2
  export type Font = 'inter' | 'mona' | 'hubot';
3
3
  export type Icon = 'heroicon-outline' | 'heroicon-solid';
4
- export type WebFontsProviders = 'google' | 'bunny' | 'fontshare' | 'none';
4
+ export type WebFontsProviders = 'google' | 'bunny' | 'fontshare';
5
+ export interface FontInfo {
6
+ title: string;
7
+ text: string;
8
+ }
9
+ export type FontFor = 'email' | 'desktop' | 'mobile' | 'web';
5
10
  export interface WebFontMeta {
6
11
  name: string;
7
12
  weights?: (string | number)[];
@@ -113,31 +118,36 @@ export interface UiOptions {
113
118
  /**
114
119
  * **Fonts**
115
120
  *
116
- * Define the local fonts you want to use. By default, Stacks provides
117
- * support for several local font providers. You may set this value
118
- * to `null` if you prefer not utilize any local fonts.
121
+ * Define the fonts you want to use. By default, Stacks provides support
122
+ * for several local font providers. You may set this value to
123
+ * `null` if you prefer not utilize any local fonts.
119
124
  *
120
125
  * @see https://stacks.ow3.org/fonts
121
- * @example
126
+ * @example applies the same font for all platforms _(web, email, desktop, and mobile)_
122
127
  * ```ts
123
- * fonts: 'mona-lisa'
128
+ * fonts: {
129
+ * title: 'Mona',
130
+ * text: 'Hubot'
131
+ * }
124
132
  * ```
125
- */
126
- fonts?: Record<string, WebFontMeta | string | (WebFontMeta | string)[]>;
127
- /**
128
- * **Web Fonts**
129
- *
130
- * Define the web fonts you want to use. By default, Stacks provides
131
- * support for several web font providers. You may set this value
132
- * to `null` if you prefer not utilize any web fonts.
133
- *
134
- * @see https://stacks.ow3.org/fonts
135
133
  * @example
136
134
  * ```ts
137
- * webFonts: 'inter'
135
+ * fonts: {
136
+ * web: {
137
+ * title: 'Inter',
138
+ * text: 'Mona'
139
+ * },
140
+ * desktop: {
141
+ * title: 'Mona',
142
+ * text: 'Inter'
143
+ * },
144
+ * }
138
145
  * ```
139
146
  */
140
- webFonts?: Record<string, WebFontMeta | string | (WebFontMeta | string)[]>;
147
+ fonts?: Record<FontFor, FontInfo> | {
148
+ [key in FontFor]: FontInfo;
149
+ };
150
+ useWebFonts?: boolean | WebFontsProviders;
141
151
  /**
142
152
  * **Icon Sets**
143
153
  *
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.46.4",
5
- "packageManager": "pnpm@7.19.0",
4
+ "version": "0.47.1",
5
+ "packageManager": "pnpm@7.21.0",
6
6
  "description": "The Stacks framework types.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -34,10 +34,10 @@
34
34
  ],
35
35
  "engines": {
36
36
  "node": ">=v18.12.1",
37
- "pnpm": ">=7.19.0"
37
+ "pnpm": ">=7.21.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@mdit-vue/plugin-component": "^0.11.1",
40
+ "@mdit-vue/plugin-component": "^0.11.2",
41
41
  "@mdit-vue/plugin-frontmatter": "^0.11.1",
42
42
  "@mdit-vue/types": "^0.11.0",
43
43
  "@rollup/pluginutils": "^5.0.2",
@@ -47,7 +47,7 @@
47
47
  "@types/fs-extra": "^9.0.13",
48
48
  "@types/markdown-it-link-attributes": "^3.0.1",
49
49
  "@types/minimatch": "^5.1.2",
50
- "@types/node": "^18.11.17",
50
+ "@types/node": "^18.11.18",
51
51
  "@types/nprogress": "^0.2.0",
52
52
  "@types/pluralize": "^0.0.29",
53
53
  "@types/prompts": "^2.4.2",