@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 +0 -8
- package/dist/cli.d.ts +2 -1
- package/dist/cli.mjs +1 -0
- package/dist/debug.d.ts +1 -1
- package/dist/deploy.d.ts +1 -1
- package/dist/events.d.ts +22 -0
- package/dist/events.mjs +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/notifications.d.ts +1 -3
- package/dist/ui.d.ts +28 -18
- package/package.json +5 -5
package/dist/app.d.ts
CHANGED
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
package/dist/debug.d.ts
CHANGED
package/dist/deploy.d.ts
CHANGED
package/dist/events.d.ts
ADDED
|
@@ -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
|
+
}
|
package/dist/events.mjs
ADDED
|
File without changes
|
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
package/dist/notifications.d.ts
CHANGED
|
@@ -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'
|
|
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
|
|
117
|
-
*
|
|
118
|
-
*
|
|
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:
|
|
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
|
-
*
|
|
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
|
-
|
|
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.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
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.
|
|
37
|
+
"pnpm": ">=7.21.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@mdit-vue/plugin-component": "^0.11.
|
|
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.
|
|
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",
|