@stacksjs/types 0.47.2 → 0.48.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/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 interface TestOptions extends CliOptions {
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
@@ -99,3 +99,4 @@ export interface ArgonOptions {
99
99
  */
100
100
  time?: number;
101
101
  }
102
+ export type HashAlgorithm = 'md4' | 'md5' | 'sha1' | 'sha256' | 'sha384' | 'sha512' | 'ripemd128' | 'ripemd160' | 'tiger128' | 'tiger160' | 'tiger192' | 'crc32' | 'crc32b';
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";
@@ -1,5 +1,6 @@
1
1
  import type { IChatOptions, IEmailOptions, ISendMessageSuccessResponse, ISmsOptions } from '@novu/stateless';
2
2
  export interface NotificationOptions {
3
+ type?: string;
3
4
  driver?: string;
4
5
  email: {
5
6
  purgeCSS: boolean;
@@ -0,0 +1,2 @@
1
+ import type { Ref } from 'vue';
2
+ export type { Ref };
File without changes
@@ -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
+ }
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.47.2",
4
+ "version": "0.48.1",
5
5
  "packageManager": "pnpm@7.21.0",
6
6
  "description": "The Stacks framework types.",
7
7
  "author": "Chris Breuer",
@@ -57,10 +57,10 @@
57
57
  "typescript": "^4.9.4",
58
58
  "unplugin-auto-import": "^0.12.1",
59
59
  "unplugin-vue-components": "^0.22.12",
60
- "vite-plugin-inspect": "^0.7.11",
60
+ "vite-plugin-inspect": "^0.7.12",
61
61
  "vite-plugin-vue-layouts": "^0.7.0",
62
62
  "vite-ssg": "^0.22.1",
63
- "vitepress": "1.0.0-alpha.33"
63
+ "vitepress": "1.0.0-alpha.34"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "mkdist -d",