@stacksjs/types 0.47.4 → 0.48.2
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/cli.d.ts +11 -4
- package/dist/cli.mjs +6 -0
- package/dist/hashing.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +2 -0
- package/dist/notifications.d.ts +1 -0
- package/dist/reactivity.d.ts +2 -0
- package/dist/reactivity.mjs +0 -0
- package/dist/tables.d.ts +44 -0
- package/dist/tables.mjs +0 -0
- package/package.json +4 -3
package/dist/cli.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export type LintOption = 'fix';
|
|
|
107
107
|
export type LintOptions = {
|
|
108
108
|
[key in LintOption]: boolean;
|
|
109
109
|
} & CliOptions;
|
|
110
|
-
export type MakeStringOption = 'name';
|
|
110
|
+
export type MakeStringOption = 'name' | 'chat' | 'sms';
|
|
111
111
|
export type MakeBooleanOption = 'component' | 'page' | 'function' | 'language' | 'database' | 'migration' | 'factory' | 'notification' | 'stack';
|
|
112
112
|
export type MakeOptions = {
|
|
113
113
|
[key in MakeBooleanOption]: boolean;
|
|
@@ -129,8 +129,9 @@ export type ExamplesOptions = {
|
|
|
129
129
|
} & {
|
|
130
130
|
[key in ExamplesBoolean]: boolean;
|
|
131
131
|
} & CliOptions;
|
|
132
|
-
export
|
|
133
|
-
|
|
132
|
+
export type TestOptions = CliOptions & {
|
|
133
|
+
showReport?: boolean;
|
|
134
|
+
};
|
|
134
135
|
export interface CleanOptions extends CliOptions {
|
|
135
136
|
}
|
|
136
137
|
export interface CommitOptions extends CliOptions {
|
|
@@ -175,6 +176,8 @@ export declare const enum NpmScript {
|
|
|
175
176
|
LintFix = "eslint . --fix",
|
|
176
177
|
MakeStack = "make:stack",
|
|
177
178
|
Test = "vitest --config vitest.config.ts",
|
|
179
|
+
TestUnit = "vitest --config vitest.config.ts",
|
|
180
|
+
TestFeature = "playwright test --config playwright.config.ts",
|
|
178
181
|
TestUi = "vitest --config vitest.config.ts --ui",
|
|
179
182
|
TestCoverage = "vitest --config vitest.config.ts --coverage",
|
|
180
183
|
TestTypes = "vue-tsc --noEmit",
|
|
@@ -217,9 +220,13 @@ export declare const enum Action {
|
|
|
217
220
|
LintFix = "lint-fix",
|
|
218
221
|
Test = "test",
|
|
219
222
|
TestUi = "test-ui",
|
|
223
|
+
TestUnit = "test-unit",
|
|
224
|
+
TestFeature = "test-feature",
|
|
220
225
|
TestCoverage = "test-coverage",
|
|
226
|
+
ShowFeatureTestReport = "show-feature-test-report",
|
|
221
227
|
Typecheck = "typecheck",
|
|
222
|
-
KeyGenerate = "key-generate"
|
|
228
|
+
KeyGenerate = "key-generate",
|
|
229
|
+
MakeNotification = "make-notification"
|
|
223
230
|
}
|
|
224
231
|
export type { CAC as CLI } from 'cac';
|
|
225
232
|
export type { ExecaReturnValue as CommandResult } from 'execa';
|
package/dist/cli.mjs
CHANGED
|
@@ -22,6 +22,8 @@ export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
|
|
|
22
22
|
NpmScript2["LintFix"] = "eslint . --fix";
|
|
23
23
|
NpmScript2["MakeStack"] = "make:stack";
|
|
24
24
|
NpmScript2["Test"] = "vitest --config vitest.config.ts";
|
|
25
|
+
NpmScript2["TestUnit"] = "vitest --config vitest.config.ts";
|
|
26
|
+
NpmScript2["TestFeature"] = "playwright test --config playwright.config.ts";
|
|
25
27
|
NpmScript2["TestUi"] = "vitest --config vitest.config.ts --ui";
|
|
26
28
|
NpmScript2["TestCoverage"] = "vitest --config vitest.config.ts --coverage";
|
|
27
29
|
NpmScript2["TestTypes"] = "vue-tsc --noEmit";
|
|
@@ -65,8 +67,12 @@ export var Action = /* @__PURE__ */ ((Action2) => {
|
|
|
65
67
|
Action2["LintFix"] = "lint-fix";
|
|
66
68
|
Action2["Test"] = "test";
|
|
67
69
|
Action2["TestUi"] = "test-ui";
|
|
70
|
+
Action2["TestUnit"] = "test-unit";
|
|
71
|
+
Action2["TestFeature"] = "test-feature";
|
|
68
72
|
Action2["TestCoverage"] = "test-coverage";
|
|
73
|
+
Action2["ShowFeatureTestReport"] = "show-feature-test-report";
|
|
69
74
|
Action2["Typecheck"] = "typecheck";
|
|
70
75
|
Action2["KeyGenerate"] = "key-generate";
|
|
76
|
+
Action2["MakeNotification"] = "make-notification";
|
|
71
77
|
return Action2;
|
|
72
78
|
})(Action || {});
|
package/dist/hashing.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,9 @@ export * from './notifications';
|
|
|
23
23
|
export * from './pages';
|
|
24
24
|
export * from './promise';
|
|
25
25
|
export * from './pwa';
|
|
26
|
+
export * from './reactivity';
|
|
26
27
|
export * from './search-engine';
|
|
27
28
|
export * from './ssg';
|
|
29
|
+
export * from './tables';
|
|
28
30
|
export * from './ui';
|
|
29
31
|
export * from './utils';
|
package/dist/index.mjs
CHANGED
|
@@ -23,7 +23,9 @@ export * from "./notifications.mjs";
|
|
|
23
23
|
export * from "./pages.mjs";
|
|
24
24
|
export * from "./promise.mjs";
|
|
25
25
|
export * from "./pwa.mjs";
|
|
26
|
+
export * from "./reactivity.mjs";
|
|
26
27
|
export * from "./search-engine.mjs";
|
|
27
28
|
export * from "./ssg.mjs";
|
|
29
|
+
export * from "./tables.mjs";
|
|
28
30
|
export * from "./ui.mjs";
|
|
29
31
|
export * from "./utils.mjs";
|
package/dist/notifications.d.ts
CHANGED
|
File without changes
|
package/dist/tables.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Hits, SearchResponse } from 'meilisearch';
|
|
2
|
+
/**
|
|
3
|
+
* the TableStore interface is primarily used to unify the persisting of data to localStorage
|
|
4
|
+
*/
|
|
5
|
+
export interface TableStore {
|
|
6
|
+
/**
|
|
7
|
+
* The search engine index name.
|
|
8
|
+
* i.e. the type of table, like `users`, `posts`, `products`, etc.
|
|
9
|
+
*/
|
|
10
|
+
index: string;
|
|
11
|
+
/**
|
|
12
|
+
* The search engine results object.
|
|
13
|
+
*/
|
|
14
|
+
results?: SearchResponse<Record<string, any>>;
|
|
15
|
+
/**
|
|
16
|
+
* The search engine hits object.
|
|
17
|
+
*/
|
|
18
|
+
hits?: Hits;
|
|
19
|
+
columns: string[];
|
|
20
|
+
source?: string;
|
|
21
|
+
password?: string;
|
|
22
|
+
searchable?: string | boolean;
|
|
23
|
+
query?: string;
|
|
24
|
+
sortable?: string | boolean;
|
|
25
|
+
sort?: string;
|
|
26
|
+
sorts?: string | string[];
|
|
27
|
+
filterable?: string | boolean;
|
|
28
|
+
filters?: string | string[];
|
|
29
|
+
filterValue?: any[];
|
|
30
|
+
actionable?: string | boolean;
|
|
31
|
+
actions?: string | string[];
|
|
32
|
+
perPage: number;
|
|
33
|
+
selectable?: string | boolean;
|
|
34
|
+
selectedRows?: number[] | string[];
|
|
35
|
+
selectedAll?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The current page number
|
|
38
|
+
* @default 1
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof TableStore
|
|
41
|
+
* @example 1
|
|
42
|
+
*/
|
|
43
|
+
currentPage: number;
|
|
44
|
+
}
|
package/dist/tables.mjs
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.48.2",
|
|
5
5
|
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "The Stacks framework types.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
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
|
+
"@prisma/client": "^4.8.0",
|
|
43
44
|
"@rollup/pluginutils": "^5.0.2",
|
|
44
45
|
"@types/bcryptjs": "^2.4.2",
|
|
45
46
|
"@types/crypto-js": "^4.1.1",
|
|
@@ -57,10 +58,10 @@
|
|
|
57
58
|
"typescript": "^4.9.4",
|
|
58
59
|
"unplugin-auto-import": "^0.12.1",
|
|
59
60
|
"unplugin-vue-components": "^0.22.12",
|
|
60
|
-
"vite-plugin-inspect": "^0.7.
|
|
61
|
+
"vite-plugin-inspect": "^0.7.12",
|
|
61
62
|
"vite-plugin-vue-layouts": "^0.7.0",
|
|
62
63
|
"vite-ssg": "^0.22.1",
|
|
63
|
-
"vitepress": "1.0.0-alpha.
|
|
64
|
+
"vitepress": "1.0.0-alpha.34"
|
|
64
65
|
},
|
|
65
66
|
"scripts": {
|
|
66
67
|
"build": "mkdist -d",
|