@stacksjs/types 0.42.2 → 0.43.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 +12 -12
- package/dist/cli.d.ts +11 -10
- package/dist/cli.mjs +8 -7
- package/dist/components.d.ts +3 -3
- package/dist/debug.d.ts +6 -0
- package/dist/debug.mjs +0 -0
- package/dist/deploy.d.ts +1 -1
- package/dist/git.d.ts +5 -5
- package/dist/hashing.d.ts +8 -8
- package/dist/i18n.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +2 -0
- package/dist/inspect.d.ts +1 -1
- package/dist/layout.d.ts +1 -1
- package/dist/library.d.ts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/notifications.d.ts +5 -0
- package/dist/notifications.mjs +0 -0
- package/dist/pages.d.ts +1 -1
- package/dist/pwa.d.ts +1 -1
- package/dist/search-engine.d.ts +42 -23
- package/dist/ui.d.ts +11 -11
- package/package.json +5 -5
package/dist/app.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* **Application Options**
|
|
3
3
|
*
|
|
4
4
|
* This configuration defines all of your application options. Because Stacks is full-typed,
|
|
5
5
|
* you may hover any of the options below and the definitions will be provided. In case
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export interface AppOptions {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* **Application Name**
|
|
11
11
|
*
|
|
12
12
|
* This value is the name of your application. This value is used when the
|
|
13
13
|
* framework needs to place the application's name in a log or any
|
|
@@ -17,7 +17,7 @@ export interface AppOptions {
|
|
|
17
17
|
*/
|
|
18
18
|
name: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* **Application Environment**
|
|
21
21
|
*
|
|
22
22
|
* This value determines the "environment" your application is currently
|
|
23
23
|
* running in. This may determine how you prefer to configure various
|
|
@@ -27,7 +27,7 @@ export interface AppOptions {
|
|
|
27
27
|
*/
|
|
28
28
|
env?: 'local' | 'development' | 'production';
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* **Application URL**
|
|
31
31
|
*
|
|
32
32
|
* This URL is used by the console to properly generate URLs when using
|
|
33
33
|
* the Artisan command line tool. You should set this to the root of
|
|
@@ -39,7 +39,7 @@ export interface AppOptions {
|
|
|
39
39
|
*/
|
|
40
40
|
url?: string;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* **Application Debug Mode**
|
|
43
43
|
*
|
|
44
44
|
* When your application is in debug mode, detailed error messages with
|
|
45
45
|
* stack traces will be shown on every error that occurs within your
|
|
@@ -49,7 +49,7 @@ export interface AppOptions {
|
|
|
49
49
|
*/
|
|
50
50
|
debug: boolean;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* **Application Port**
|
|
53
53
|
*
|
|
54
54
|
* This port is used when Stacks creates a server you. You should set
|
|
55
55
|
* a port that's not already in use by your machine. Stacks defaults
|
|
@@ -59,7 +59,7 @@ export interface AppOptions {
|
|
|
59
59
|
*/
|
|
60
60
|
port: number;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* **Encryption Key**
|
|
63
63
|
*
|
|
64
64
|
* This key is used by the Stacks encrypter service and should be set to
|
|
65
65
|
* a random, 32 character string, otherwise these encrypted strings will
|
|
@@ -67,7 +67,7 @@ export interface AppOptions {
|
|
|
67
67
|
*/
|
|
68
68
|
key?: string;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* **Application Timezone**
|
|
71
71
|
*
|
|
72
72
|
* Here you may specify the default timezone for your application, which
|
|
73
73
|
* will be used by Stacks and date-time functions. We have gone ahead
|
|
@@ -77,7 +77,7 @@ export interface AppOptions {
|
|
|
77
77
|
*/
|
|
78
78
|
timezone?: string;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* **Application Locale Configuration**
|
|
81
81
|
*
|
|
82
82
|
* The application locale determines the default locale that will be used
|
|
83
83
|
* by the translation service provider. You are free to set this value
|
|
@@ -89,7 +89,7 @@ export interface AppOptions {
|
|
|
89
89
|
*/
|
|
90
90
|
locale?: string;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* **Application Fallback Locale**
|
|
93
93
|
*
|
|
94
94
|
* The fallback locale determines the locale to use when the current one
|
|
95
95
|
* is not available. You may change the value to correspond to any of
|
|
@@ -99,7 +99,7 @@ export interface AppOptions {
|
|
|
99
99
|
*/
|
|
100
100
|
fallbackLocale: 'en';
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* **Integrated Development Environment**
|
|
103
103
|
*
|
|
104
104
|
* Currently, only VS Code is fully supported. While you may use Stacks with
|
|
105
105
|
* any editor, some of its tooling is VS Code specific. Hence, for the
|
|
@@ -109,7 +109,7 @@ export interface AppOptions {
|
|
|
109
109
|
*/
|
|
110
110
|
editor: string;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* **Cipher**
|
|
113
113
|
*
|
|
114
114
|
* Description WIP.
|
|
115
115
|
*
|
package/dist/cli.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ type SpinnerOptions = Ora;
|
|
|
24
24
|
*/
|
|
25
25
|
export interface CliOptions {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* **CLI Debug Level**
|
|
28
28
|
*
|
|
29
29
|
* When your application is in debug mode, a different level of information,
|
|
30
30
|
* like stack traces, will be shown on every error that occurs within the
|
|
@@ -34,7 +34,7 @@ export interface CliOptions {
|
|
|
34
34
|
*/
|
|
35
35
|
debug?: boolean;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* **Current Work Directory**
|
|
38
38
|
*
|
|
39
39
|
* Based on the `cwd` value, that's where the command...
|
|
40
40
|
*
|
|
@@ -42,7 +42,7 @@ export interface CliOptions {
|
|
|
42
42
|
*/
|
|
43
43
|
cwd?: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* **Loading Animation**
|
|
46
46
|
*
|
|
47
47
|
* Should the command show a loading animation?
|
|
48
48
|
* Please note, when debug mode is enabled,
|
|
@@ -133,7 +133,7 @@ export declare const enum NpmScript {
|
|
|
133
133
|
BuildFunctions = "build:functions",
|
|
134
134
|
BuildDocs = "build:docs",
|
|
135
135
|
BuildStacks = "build:stacks",
|
|
136
|
-
Clean = "
|
|
136
|
+
Clean = "rimraf ./pnpm-lock.yaml ./node_modules/ ./.stacks/**/node_modules",
|
|
137
137
|
Dev = "dev",
|
|
138
138
|
DevComponents = "dev:components",
|
|
139
139
|
DevDocs = "dev:docs",
|
|
@@ -142,16 +142,17 @@ export declare const enum NpmScript {
|
|
|
142
142
|
DevFunctions = "dev:functions",
|
|
143
143
|
Fresh = "fresh",
|
|
144
144
|
Update = "update",
|
|
145
|
-
UpdateDependencies = "update
|
|
145
|
+
UpdateDependencies = "pnpm update",
|
|
146
146
|
UpdateFramework = "update:framework",
|
|
147
147
|
UpdatePackageManager = "update:package-manager",
|
|
148
|
-
UpdateNode = "
|
|
149
|
-
Lint = "
|
|
148
|
+
UpdateNode = "pnpm env use",
|
|
149
|
+
Lint = "eslint .",
|
|
150
150
|
LintFix = "lint:fix",
|
|
151
151
|
MakeStack = "make:stack",
|
|
152
|
-
Test = "
|
|
153
|
-
|
|
154
|
-
TestCoverage = "
|
|
152
|
+
Test = "vitest --config .stacks/vitest.config.ts",
|
|
153
|
+
TestUi = "vitest --config .stacks/vitest.config.ts --ui",
|
|
154
|
+
TestCoverage = "vitest --config .stacks/vitest.config.ts --coverage",
|
|
155
|
+
TestTypes = "vue-tsc --noEmit",
|
|
155
156
|
Generate = "generate",
|
|
156
157
|
GenerateTypes = "generate:types",
|
|
157
158
|
GenerateEntries = "generate:entries",
|
package/dist/cli.mjs
CHANGED
|
@@ -5,7 +5,7 @@ export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
|
|
|
5
5
|
NpmScript2["BuildFunctions"] = "build:functions";
|
|
6
6
|
NpmScript2["BuildDocs"] = "build:docs";
|
|
7
7
|
NpmScript2["BuildStacks"] = "build:stacks";
|
|
8
|
-
NpmScript2["Clean"] = "
|
|
8
|
+
NpmScript2["Clean"] = "rimraf ./pnpm-lock.yaml ./node_modules/ ./.stacks/**/node_modules";
|
|
9
9
|
NpmScript2["Dev"] = "dev";
|
|
10
10
|
NpmScript2["DevComponents"] = "dev:components";
|
|
11
11
|
NpmScript2["DevDocs"] = "dev:docs";
|
|
@@ -14,16 +14,17 @@ export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
|
|
|
14
14
|
NpmScript2["DevFunctions"] = "dev:functions";
|
|
15
15
|
NpmScript2["Fresh"] = "fresh";
|
|
16
16
|
NpmScript2["Update"] = "update";
|
|
17
|
-
NpmScript2["UpdateDependencies"] = "update
|
|
17
|
+
NpmScript2["UpdateDependencies"] = "pnpm update";
|
|
18
18
|
NpmScript2["UpdateFramework"] = "update:framework";
|
|
19
19
|
NpmScript2["UpdatePackageManager"] = "update:package-manager";
|
|
20
|
-
NpmScript2["UpdateNode"] = "
|
|
21
|
-
NpmScript2["Lint"] = "
|
|
20
|
+
NpmScript2["UpdateNode"] = "pnpm env use";
|
|
21
|
+
NpmScript2["Lint"] = "eslint .";
|
|
22
22
|
NpmScript2["LintFix"] = "lint:fix";
|
|
23
23
|
NpmScript2["MakeStack"] = "make:stack";
|
|
24
|
-
NpmScript2["Test"] = "
|
|
25
|
-
NpmScript2["
|
|
26
|
-
NpmScript2["TestCoverage"] = "
|
|
24
|
+
NpmScript2["Test"] = "vitest --config .stacks/vitest.config.ts";
|
|
25
|
+
NpmScript2["TestUi"] = "vitest --config .stacks/vitest.config.ts --ui";
|
|
26
|
+
NpmScript2["TestCoverage"] = "vitest --config .stacks/vitest.config.ts --coverage";
|
|
27
|
+
NpmScript2["TestTypes"] = "vue-tsc --noEmit";
|
|
27
28
|
NpmScript2["Generate"] = "generate";
|
|
28
29
|
NpmScript2["GenerateTypes"] = "generate:types";
|
|
29
30
|
NpmScript2["GenerateEntries"] = "generate:entries";
|
package/dist/components.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Options } from 'unplugin-vue-components';
|
|
2
2
|
export interface TagOption {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* **Tag Name**
|
|
5
5
|
*
|
|
6
6
|
* This is the name of the component to be included in your library build.
|
|
7
7
|
* When defining a tag, ensure that the name corresponds to a file within
|
|
@@ -24,7 +24,7 @@ export interface TagOption {
|
|
|
24
24
|
*/
|
|
25
25
|
name: string | string[];
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* **Tag Description**
|
|
28
28
|
*
|
|
29
29
|
* This is the description of your component. This value is
|
|
30
30
|
* used when to provide additional information to IDEs.
|
|
@@ -37,7 +37,7 @@ export interface TagOption {
|
|
|
37
37
|
*/
|
|
38
38
|
description?: string;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* **Tag Attributes**
|
|
41
41
|
*
|
|
42
42
|
* These are your component's attributes. While it's an optional field, you should aim
|
|
43
43
|
* to define all of your component attributes here, to provide as much context
|
package/dist/debug.d.ts
ADDED
package/dist/debug.mjs
ADDED
|
File without changes
|
package/dist/deploy.d.ts
CHANGED
package/dist/git.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* **Git Options**
|
|
3
3
|
*
|
|
4
4
|
* This configuration defines all of your git options. Because Stacks is full-typed, you may
|
|
5
5
|
* hover any of the options below and the definitions will be provided. In case you
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export interface GitOptions {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* **Git Hooks**
|
|
11
11
|
*
|
|
12
12
|
* The git hooks to use.
|
|
13
13
|
*
|
|
@@ -23,7 +23,7 @@ export interface GitOptions {
|
|
|
23
23
|
*/
|
|
24
24
|
hooks: GitHooks;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* **Git Commit Scopes**
|
|
27
27
|
*
|
|
28
28
|
* The git commit scopes to use.
|
|
29
29
|
*
|
|
@@ -39,7 +39,7 @@ export interface GitOptions {
|
|
|
39
39
|
*/
|
|
40
40
|
scopes: string[];
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* **Git Commit Types**
|
|
43
43
|
*
|
|
44
44
|
* The git commit types to use.
|
|
45
45
|
*
|
|
@@ -61,7 +61,7 @@ export interface GitOptions {
|
|
|
61
61
|
emoji: string;
|
|
62
62
|
}[];
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* **Messages—Options**
|
|
65
65
|
*
|
|
66
66
|
* The git messages/prompts to use.
|
|
67
67
|
*
|
package/dist/hashing.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
export interface HashingOptions {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* **Hashing Driver**
|
|
17
17
|
*
|
|
18
18
|
* This option controls the default hash driver that will be used to hash
|
|
19
19
|
* passwords for your application. By default, the bcrypt algorithm is
|
|
@@ -23,7 +23,7 @@ export interface HashingOptions {
|
|
|
23
23
|
*/
|
|
24
24
|
driver: 'argon' | 'bcrypt';
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* **Bcrypt Option**
|
|
27
27
|
*
|
|
28
28
|
* Here you may specify the configuration options that should be used when
|
|
29
29
|
* passwords are hashed using the Bcrypt algorithm. This will allow you
|
|
@@ -33,7 +33,7 @@ export interface HashingOptions {
|
|
|
33
33
|
*/
|
|
34
34
|
bcrypt?: BcryptOptions;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* **Argon Options**
|
|
37
37
|
*
|
|
38
38
|
* Here you may specify the configuration options that should be used when
|
|
39
39
|
* passwords are hashed using the Argon algorithm. These will allow you
|
|
@@ -44,7 +44,7 @@ export interface HashingOptions {
|
|
|
44
44
|
argon?: ArgonOptions;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* **Bcrypt Options**
|
|
48
48
|
*
|
|
49
49
|
* Here you may specify the configuration options that should be used when
|
|
50
50
|
* passwords are hashed using the Bcrypt algorithm. This will allow you
|
|
@@ -62,7 +62,7 @@ export interface BcryptOptions {
|
|
|
62
62
|
rounds?: number;
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* **Argon Options**
|
|
66
66
|
*
|
|
67
67
|
* Here you may specify the configuration options that should be used when
|
|
68
68
|
* passwords are hashed using the Argon algorithm. These will allow you
|
|
@@ -72,7 +72,7 @@ export interface BcryptOptions {
|
|
|
72
72
|
*/
|
|
73
73
|
export interface ArgonOptions {
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* **Argon Memory**
|
|
76
76
|
*
|
|
77
77
|
* Amount of memory (in kibibytes) to use.
|
|
78
78
|
*
|
|
@@ -81,7 +81,7 @@ export interface ArgonOptions {
|
|
|
81
81
|
*/
|
|
82
82
|
memory?: number;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* **Argon Parallelism**
|
|
85
85
|
*
|
|
86
86
|
* Degree of parallelism (i.e. number of threads).
|
|
87
87
|
*
|
|
@@ -90,7 +90,7 @@ export interface ArgonOptions {
|
|
|
90
90
|
*/
|
|
91
91
|
threads?: number;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* **Argon time**
|
|
94
94
|
*
|
|
95
95
|
* Execution time.
|
|
96
96
|
*
|
package/dist/i18n.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './components';
|
|
|
5
5
|
export * from './cli';
|
|
6
6
|
export * from './database';
|
|
7
7
|
export * from './deploy';
|
|
8
|
+
export * from './debug';
|
|
8
9
|
export * from './docs';
|
|
9
10
|
export * from './errors';
|
|
10
11
|
export * from './exit-code';
|
|
@@ -17,6 +18,7 @@ export * from './layout';
|
|
|
17
18
|
export * from './library';
|
|
18
19
|
export * from './manifest';
|
|
19
20
|
export * from './markdown';
|
|
21
|
+
export * from './notifications';
|
|
20
22
|
export * from './pages';
|
|
21
23
|
export * from './promise';
|
|
22
24
|
export * from './pwa';
|
package/dist/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ export * from "./components.mjs";
|
|
|
5
5
|
export * from "./cli.mjs";
|
|
6
6
|
export * from "./database.mjs";
|
|
7
7
|
export * from "./deploy.mjs";
|
|
8
|
+
export * from "./debug.mjs";
|
|
8
9
|
export * from "./docs.mjs";
|
|
9
10
|
export * from "./errors.mjs";
|
|
10
11
|
export * from "./exit-code.mjs";
|
|
@@ -17,6 +18,7 @@ export * from "./layout.mjs";
|
|
|
17
18
|
export * from "./library.mjs";
|
|
18
19
|
export * from "./manifest.mjs";
|
|
19
20
|
export * from "./markdown.mjs";
|
|
21
|
+
export * from "./notifications.mjs";
|
|
20
22
|
export * from "./pages.mjs";
|
|
21
23
|
export * from "./promise.mjs";
|
|
22
24
|
export * from "./pwa.mjs";
|
package/dist/inspect.d.ts
CHANGED
package/dist/layout.d.ts
CHANGED
package/dist/library.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TagsOptions } from '.';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* **Library Options**
|
|
4
4
|
*
|
|
5
5
|
* This configuration defines all of your library options. Because Stacks is full-typed, you
|
|
6
6
|
* may hover any of the options below and the definitions will be provided. In case you
|
package/dist/markdown.d.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IChatOptions, IEmailOptions, ISendMessageSuccessResponse, ISmsOptions } from '@novu/stateless';
|
|
2
|
+
export type EmailOptions = IEmailOptions;
|
|
3
|
+
export type SendMessageSuccessResponse = ISendMessageSuccessResponse;
|
|
4
|
+
export type ChatOptions = IChatOptions;
|
|
5
|
+
export type SmsOptions = ISmsOptions;
|
|
File without changes
|
package/dist/pages.d.ts
CHANGED
package/dist/pwa.d.ts
CHANGED
package/dist/search-engine.d.ts
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import type { EnqueuedTask, Hits, Index, IndexOptions, IndexesResults, MeiliSearch, Document as Record, DocumentOptions as RecordOptions, Documents as Records, DocumentsResults as RecordsResults, Settings as SearchEngineSettings, SearchParams, SearchResponse } from 'meilisearch';
|
|
2
2
|
import type { MaybePromise } from '.';
|
|
3
|
-
|
|
3
|
+
type Search = any;
|
|
4
|
+
type Page = any;
|
|
5
|
+
type Pages = Page[];
|
|
6
|
+
type Filter = any;
|
|
7
|
+
type Filters = Filter[];
|
|
8
|
+
type Result = any;
|
|
9
|
+
type Results = Result[];
|
|
10
|
+
type SearchFilter = any;
|
|
11
|
+
type SearchFilters = SearchFilter[];
|
|
12
|
+
type Sorts = any;
|
|
13
|
+
type Sort = any;
|
|
4
14
|
export interface SearchEngineOptions {
|
|
5
15
|
/**
|
|
6
|
-
*
|
|
16
|
+
* **Search Engine Driver**
|
|
7
17
|
*
|
|
8
18
|
* The search engine to utilize.
|
|
9
19
|
*
|
|
@@ -11,8 +21,15 @@ export interface SearchEngineOptions {
|
|
|
11
21
|
* @see https://stacksjs.dev/docs/search-engine
|
|
12
22
|
*/
|
|
13
23
|
driver: 'meilisearch' | 'algolia';
|
|
24
|
+
meilisearch?: {
|
|
25
|
+
host: string;
|
|
26
|
+
apiKey: string;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export interface MeiliSearchOptions {
|
|
30
|
+
apiKey: string;
|
|
31
|
+
host: string;
|
|
14
32
|
}
|
|
15
|
-
type Search = any;
|
|
16
33
|
export interface SearchEngineDriver {
|
|
17
34
|
client: MeiliSearch;
|
|
18
35
|
createIndex: (name: string, options?: IndexOptions) => MaybePromise<EnqueuedTask>;
|
|
@@ -32,28 +49,29 @@ export interface SearchEngineDriver {
|
|
|
32
49
|
deleteAllRecords?: (indexName: string) => MaybePromise<EnqueuedTask>;
|
|
33
50
|
batchDeleteRecords?: (recordIds: string[] | number[], indexName: string) => MaybePromise<EnqueuedTask>;
|
|
34
51
|
search?: (query: string, indexName: string, options: SearchParams) => MaybePromise<Search>;
|
|
35
|
-
calculatePagination:
|
|
36
|
-
currentPage:
|
|
37
|
-
filterName:
|
|
38
|
-
filters:
|
|
39
|
-
goToNextPage:
|
|
40
|
-
goToPage:
|
|
41
|
-
goToPrevPage:
|
|
42
|
-
hits:
|
|
43
|
-
index:
|
|
44
|
-
|
|
45
|
-
perPage:
|
|
46
|
-
query:
|
|
47
|
-
results:
|
|
48
|
-
searchFilters:
|
|
49
|
-
searchParams:
|
|
50
|
-
setTotalHits:
|
|
51
|
-
sort:
|
|
52
|
-
sorts:
|
|
53
|
-
totalPages:
|
|
52
|
+
calculatePagination: Pages;
|
|
53
|
+
currentPage: Page;
|
|
54
|
+
filterName: string;
|
|
55
|
+
filters: Filters;
|
|
56
|
+
goToNextPage: () => Page;
|
|
57
|
+
goToPage: (pageNumber: number) => Page;
|
|
58
|
+
goToPrevPage: () => Page;
|
|
59
|
+
hits: Hits;
|
|
60
|
+
index: Index;
|
|
61
|
+
lastPage: Page;
|
|
62
|
+
perPage: number;
|
|
63
|
+
query: string;
|
|
64
|
+
results: Results;
|
|
65
|
+
searchFilters: SearchFilters;
|
|
66
|
+
searchParams: SearchParams;
|
|
67
|
+
setTotalHits: number;
|
|
68
|
+
sort: Sort;
|
|
69
|
+
sorts: Sorts;
|
|
70
|
+
totalPages: number;
|
|
54
71
|
}
|
|
72
|
+
export type SearchEngineDriverFactory<T> = (opts?: T) => SearchEngineDriver;
|
|
55
73
|
/**
|
|
56
|
-
*
|
|
74
|
+
* This interface is used to unify the persisting of data to localStorage
|
|
57
75
|
*/
|
|
58
76
|
export interface SearchEngineStorage {
|
|
59
77
|
/**
|
|
@@ -82,3 +100,4 @@ export interface SearchEngineStorage {
|
|
|
82
100
|
*/
|
|
83
101
|
currentPage: number;
|
|
84
102
|
}
|
|
103
|
+
export type { EnqueuedTask, Hits, Index, IndexOptions, IndexesResults, MeiliSearch, Record, RecordOptions, Records, RecordsResults, SearchEngineSettings, SearchParams, SearchResponse };
|
package/dist/ui.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface WebFontMeta {
|
|
|
9
9
|
provider?: WebFontsProviders;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* **UI Engine Options**
|
|
13
13
|
*
|
|
14
14
|
* This type defines all of your UI Engine options. Because Stacks is full-typed, you may
|
|
15
15
|
* hover any of the options below and the definitions will be provided. In case you
|
|
@@ -17,7 +17,7 @@ export interface WebFontMeta {
|
|
|
17
17
|
*/
|
|
18
18
|
export interface UiOptions {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* **Shortcuts**
|
|
21
21
|
*
|
|
22
22
|
* Shortcuts provide you with the ability to combine
|
|
23
23
|
* utility names for reusability purposes.
|
|
@@ -32,7 +32,7 @@ export interface UiOptions {
|
|
|
32
32
|
*/
|
|
33
33
|
shortcuts: Shortcuts;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* **Safelist**
|
|
36
36
|
*
|
|
37
37
|
* Use the `safelist` option to ensure the generation of
|
|
38
38
|
* those utility classes. This is useful when certain
|
|
@@ -49,7 +49,7 @@ export interface UiOptions {
|
|
|
49
49
|
*/
|
|
50
50
|
safelist: string;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* **Trigger String**
|
|
53
53
|
*
|
|
54
54
|
* The "trigger string" defines the class name markup
|
|
55
55
|
* you want to add into your components.
|
|
@@ -63,7 +63,7 @@ export interface UiOptions {
|
|
|
63
63
|
*/
|
|
64
64
|
trigger?: string;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* **Class Prefix**
|
|
67
67
|
*
|
|
68
68
|
* The prefix for the compiled class name. When transforming
|
|
69
69
|
* all utility classes into a single class, this prefix
|
|
@@ -78,7 +78,7 @@ export interface UiOptions {
|
|
|
78
78
|
*/
|
|
79
79
|
classPrefix?: string;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* **Hash Function**
|
|
82
82
|
*
|
|
83
83
|
* The hash function used to generate the class name.
|
|
84
84
|
*
|
|
@@ -96,7 +96,7 @@ export interface UiOptions {
|
|
|
96
96
|
*/
|
|
97
97
|
hashFn?: (str: string) => string;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* **CSS Resets—Preset**
|
|
100
100
|
*
|
|
101
101
|
* Define a standard of reset CSS stylesheets. By default, the Tailwind
|
|
102
102
|
* reset styles are utilized. You may set this value to `null`
|
|
@@ -111,7 +111,7 @@ export interface UiOptions {
|
|
|
111
111
|
*/
|
|
112
112
|
reset?: ResetPreset;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* **Fonts**
|
|
115
115
|
*
|
|
116
116
|
* Define the local fonts you want to use. By default, Stacks provides
|
|
117
117
|
* support for several local font providers. You may set this value
|
|
@@ -125,7 +125,7 @@ export interface UiOptions {
|
|
|
125
125
|
*/
|
|
126
126
|
fonts?: Record<string, WebFontMeta | string | (WebFontMeta | string)[]>;
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* **Web Fonts**
|
|
129
129
|
*
|
|
130
130
|
* Define the web fonts you want to use. By default, Stacks provides
|
|
131
131
|
* support for several web font providers. You may set this value
|
|
@@ -139,7 +139,7 @@ export interface UiOptions {
|
|
|
139
139
|
*/
|
|
140
140
|
webFonts?: Record<string, WebFontMeta | string | (WebFontMeta | string)[]>;
|
|
141
141
|
/**
|
|
142
|
-
*
|
|
142
|
+
* **Icon Sets**
|
|
143
143
|
*
|
|
144
144
|
* This value defines the icon sets you want to use. When using icons, they
|
|
145
145
|
* are displayed utilizing a technique called "icons in pure css."
|
|
@@ -160,7 +160,7 @@ export interface UiOptions {
|
|
|
160
160
|
}
|
|
161
161
|
export type Shortcuts = UserShortcuts;
|
|
162
162
|
/**
|
|
163
|
-
*
|
|
163
|
+
* **Style Reset — Preset**
|
|
164
164
|
*
|
|
165
165
|
* This value sets the "reset preset." A preset defines certain
|
|
166
166
|
* CSS defaults to be applied.
|
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.17.
|
|
4
|
+
"version": "0.43.1",
|
|
5
|
+
"packageManager": "pnpm@7.17.1",
|
|
6
6
|
"description": "The Stacks framework types.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=v18.12.1",
|
|
37
|
-
"pnpm": ">=7.17.
|
|
37
|
+
"pnpm": ">=7.17.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@mdit-vue/plugin-component": "^0.11.1",
|
|
@@ -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.10",
|
|
51
51
|
"@types/nprogress": "^0.2.0",
|
|
52
52
|
"@types/pluralize": "^0.0.29",
|
|
53
53
|
"@types/prompts": "^2.4.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"markdown-it": "^13.0.1",
|
|
56
56
|
"mkdist": "^1.0.0",
|
|
57
57
|
"typescript": "^4.9.3",
|
|
58
|
-
"unplugin-auto-import": "^0.
|
|
58
|
+
"unplugin-auto-import": "^0.12.0",
|
|
59
59
|
"unplugin-vue-components": "^0.22.11",
|
|
60
60
|
"vite-plugin-inspect": "^0.7.9",
|
|
61
61
|
"vite-plugin-vue-layouts": "^0.7.0",
|