@stacksjs/types 0.41.0 → 0.42.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/README.md +2 -2
- package/dist/auto-imports.d.ts +1 -1
- package/dist/cli.d.ts +28 -27
- package/dist/cli.mjs +1 -0
- package/dist/components.d.ts +2 -2
- package/dist/database.d.ts +1 -1
- package/dist/docs.d.ts +1 -1
- 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 +3 -3
- package/dist/markdown.d.ts +1 -1
- package/dist/pages.d.ts +1 -1
- package/dist/promise.d.ts +1 -0
- package/dist/promise.mjs +0 -0
- package/dist/pwa.d.ts +1 -1
- package/dist/search-engine.d.ts +84 -0
- package/dist/search-engine.mjs +0 -0
- package/dist/ssg.d.ts +1 -1
- package/dist/ui.d.ts +5 -5
- package/dist/utils.d.ts +7 -27
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ Please see our [releases](https://github.com/stacksjs/stacks/releases) page for
|
|
|
40
40
|
|
|
41
41
|
## 💪🏼 Contributing
|
|
42
42
|
|
|
43
|
-
Please
|
|
43
|
+
Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
|
|
44
44
|
|
|
45
45
|
## 🏝 Community
|
|
46
46
|
|
|
@@ -50,7 +50,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
50
50
|
|
|
51
51
|
For casual chit-chat with others using this package:
|
|
52
52
|
|
|
53
|
-
[Join the
|
|
53
|
+
[Join the Stacks Discord Server](https://discord.ow3.org)
|
|
54
54
|
|
|
55
55
|
## 📄 License
|
|
56
56
|
|
package/dist/auto-imports.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Options } from 'unplugin-auto-import/types';
|
|
2
|
-
export
|
|
2
|
+
export type AutoImportsOptions = Options;
|
package/dist/cli.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface IntroOptions {
|
|
|
18
18
|
*/
|
|
19
19
|
showPerformance?: boolean;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
type SpinnerOptions = Ora;
|
|
22
22
|
/**
|
|
23
23
|
* The options to pass to the CLI.
|
|
24
24
|
*/
|
|
@@ -53,55 +53,55 @@ export interface CliOptions {
|
|
|
53
53
|
shouldBeAnimated?: boolean | SpinnerOptions;
|
|
54
54
|
}
|
|
55
55
|
export type { Ora as SpinnerOptions } from 'ora';
|
|
56
|
-
export
|
|
57
|
-
export
|
|
56
|
+
export type ActionsOption = 'types';
|
|
57
|
+
export type ActionsOptions = {
|
|
58
58
|
[key in ActionsOption]?: boolean;
|
|
59
59
|
} & CliOptions;
|
|
60
|
-
export
|
|
61
|
-
export
|
|
60
|
+
export type BuildOption = 'components' | 'vueComponents' | 'webComponents' | 'elements' | 'functions' | 'docs' | 'pages' | 'stacks' | 'all';
|
|
61
|
+
export type BuildOptions = {
|
|
62
62
|
[key in BuildOption]: boolean;
|
|
63
63
|
} & CliOptions;
|
|
64
|
-
export
|
|
65
|
-
export
|
|
64
|
+
export type AddOption = 'table' | 'calendar' | 'all';
|
|
65
|
+
export type AddOptions = {
|
|
66
66
|
[key in AddOption]?: boolean;
|
|
67
67
|
} & CliOptions;
|
|
68
|
-
export
|
|
69
|
-
export
|
|
70
|
-
export
|
|
68
|
+
export type CreateStringOption = 'name';
|
|
69
|
+
export type CreateBooleanOption = 'ui' | 'components' | 'web-components' | 'vue' | 'pages' | 'functions' | 'api' | 'database';
|
|
70
|
+
export type CreateOptions = {
|
|
71
71
|
[key in CreateBooleanOption]: boolean;
|
|
72
72
|
} & {
|
|
73
73
|
[key in CreateStringOption]: string;
|
|
74
74
|
} & CliOptions;
|
|
75
|
-
export
|
|
76
|
-
export
|
|
75
|
+
export type DevOption = 'components' | 'docs' | 'pages' | 'functions' | 'desktop' | 'all';
|
|
76
|
+
export type DevOptions = {
|
|
77
77
|
[key in DevOption]: boolean;
|
|
78
78
|
} & CliOptions;
|
|
79
|
-
export
|
|
80
|
-
export
|
|
79
|
+
export type GeneratorOption = 'types' | 'entries' | 'webTypes' | 'customData' | 'ideHelpers' | 'vueCompatibility' | 'componentMeta';
|
|
80
|
+
export type GeneratorOptions = {
|
|
81
81
|
[key in GeneratorOption]?: boolean;
|
|
82
82
|
} & CliOptions;
|
|
83
|
-
export
|
|
84
|
-
export
|
|
83
|
+
export type LintOption = 'fix';
|
|
84
|
+
export type LintOptions = {
|
|
85
85
|
[key in LintOption]: boolean;
|
|
86
86
|
} & CliOptions;
|
|
87
|
-
export
|
|
88
|
-
export
|
|
89
|
-
export
|
|
87
|
+
export type MakeStringOption = 'name';
|
|
88
|
+
export type MakeBooleanOption = 'component' | 'page' | 'function' | 'language' | 'database' | 'migration' | 'factory' | 'notification' | 'stack';
|
|
89
|
+
export type MakeOptions = {
|
|
90
90
|
[key in MakeBooleanOption]: boolean;
|
|
91
91
|
} & {
|
|
92
92
|
[key in MakeStringOption]: string;
|
|
93
93
|
} & CliOptions;
|
|
94
|
-
export
|
|
95
|
-
export
|
|
96
|
-
export
|
|
94
|
+
export type UpdateString = 'version';
|
|
95
|
+
export type UpdateBoolean = 'framework' | 'dependencies' | 'packageManager' | 'node' | 'all' | 'force';
|
|
96
|
+
export type UpdateOptions = {
|
|
97
97
|
[key in UpdateString]: string;
|
|
98
98
|
} & {
|
|
99
99
|
[key in UpdateBoolean]: boolean;
|
|
100
100
|
} & CliOptions;
|
|
101
|
-
export
|
|
102
|
-
export
|
|
103
|
-
export
|
|
104
|
-
export
|
|
101
|
+
export type ExamplesString = 'version';
|
|
102
|
+
export type ExamplesBoolean = 'components' | 'vue' | 'webComponents' | 'elements' | 'all' | 'force';
|
|
103
|
+
export type ExamplesOption = ExamplesString & ExamplesBoolean | void;
|
|
104
|
+
export type ExamplesOptions = {
|
|
105
105
|
[key in ExamplesString]: string;
|
|
106
106
|
} & {
|
|
107
107
|
[key in ExamplesBoolean]: boolean;
|
|
@@ -122,7 +122,7 @@ export interface PreinstallOptions extends CliOptions {
|
|
|
122
122
|
}
|
|
123
123
|
export interface PrepublishOptions extends CliOptions {
|
|
124
124
|
}
|
|
125
|
-
export
|
|
125
|
+
export type LibEntryType = 'vue-components' | 'web-components' | 'functions' | 'all';
|
|
126
126
|
/**
|
|
127
127
|
* The available npm scripts within the Stacks toolkit.
|
|
128
128
|
*/
|
|
@@ -137,6 +137,7 @@ export declare const enum NpmScript {
|
|
|
137
137
|
Dev = "dev",
|
|
138
138
|
DevComponents = "dev:components",
|
|
139
139
|
DevDocs = "dev:docs",
|
|
140
|
+
DevDesktop = "dev:desktop",
|
|
140
141
|
DevPages = "dev:pages",
|
|
141
142
|
DevFunctions = "dev:functions",
|
|
142
143
|
Fresh = "fresh",
|
package/dist/cli.mjs
CHANGED
|
@@ -9,6 +9,7 @@ export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
|
|
|
9
9
|
NpmScript2["Dev"] = "dev";
|
|
10
10
|
NpmScript2["DevComponents"] = "dev:components";
|
|
11
11
|
NpmScript2["DevDocs"] = "dev:docs";
|
|
12
|
+
NpmScript2["DevDesktop"] = "dev:desktop";
|
|
12
13
|
NpmScript2["DevPages"] = "dev:pages";
|
|
13
14
|
NpmScript2["DevFunctions"] = "dev:functions";
|
|
14
15
|
NpmScript2["Fresh"] = "fresh";
|
package/dist/components.d.ts
CHANGED
package/dist/database.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PrismaClient } from '@prisma/client';
|
|
2
|
-
export
|
|
2
|
+
export type DatabaseClient = PrismaClient;
|
package/dist/docs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { UserConfig } from 'vitepress';
|
|
2
|
-
export
|
|
2
|
+
export type DocsConfig = UserConfig;
|
package/dist/i18n.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ interface VitePluginVueI18nOptions {
|
|
|
15
15
|
*
|
|
16
16
|
* @see https://github.com/intlify/bundle-tools/blob/main/packages/vite-plugin-vue-i18n/src/options.ts
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export type i18nOptions = VitePluginVueI18nOptions;
|
|
19
19
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,9 @@ export * from './library';
|
|
|
18
18
|
export * from './manifest';
|
|
19
19
|
export * from './markdown';
|
|
20
20
|
export * from './pages';
|
|
21
|
+
export * from './promise';
|
|
21
22
|
export * from './pwa';
|
|
23
|
+
export * from './search-engine';
|
|
22
24
|
export * from './ssg';
|
|
23
25
|
export * from './ui';
|
|
24
26
|
export * from './utils';
|
package/dist/index.mjs
CHANGED
|
@@ -18,7 +18,9 @@ export * from "./library.mjs";
|
|
|
18
18
|
export * from "./manifest.mjs";
|
|
19
19
|
export * from "./markdown.mjs";
|
|
20
20
|
export * from "./pages.mjs";
|
|
21
|
+
export * from "./promise.mjs";
|
|
21
22
|
export * from "./pwa.mjs";
|
|
23
|
+
export * from "./search-engine.mjs";
|
|
22
24
|
export * from "./ssg.mjs";
|
|
23
25
|
export * from "./ui.mjs";
|
|
24
26
|
export * from "./utils.mjs";
|
package/dist/inspect.d.ts
CHANGED
package/dist/layout.d.ts
CHANGED
package/dist/library.d.ts
CHANGED
|
@@ -114,15 +114,15 @@ export interface LibraryBuildOptions {
|
|
|
114
114
|
* The name of your "Stack" which generally is your library name
|
|
115
115
|
* or a concatenation of your organization & library name.
|
|
116
116
|
*/
|
|
117
|
-
export
|
|
117
|
+
export type StackName = string;
|
|
118
118
|
/**
|
|
119
119
|
* The list of accepted SPDX licenses.
|
|
120
120
|
* When developing OS packages, you may want to utilize an OSI approved license.
|
|
121
121
|
* @see https://opensource.org/licenses
|
|
122
122
|
*/
|
|
123
|
-
export
|
|
123
|
+
export type LicenseType = 'CC-BY-NC-ND-2.0' | 'SGI-B-2.0' | 'LPPL-1.3c' | 'NIST-PD-fallback' | 'libtiff' | 'XSkat' | 'PDDL-1.0' | 'KiCad-libraries-exception' | 'CC-BY-NC-SA-1.0' | 'GFDL-1.1-no-invariants-only' | 'Xerox' | 'LPPL-1.1' | 'VOSTROM' | 'UCL-1.0' | 'ADSL' | 'OSL-2.0' | 'AAL' | 'FDK-AAC' | 'W3C-20150513' | 'AFL-1.1' | 'W3C' | 'Sleepycat' | 'CECILL-1.1' | 'mpich2' | 'SISSL' | 'NLOD-1.0' | 'ANTLR-PD' | 'GPL-3.0-only' | 'gnuplot' | 'NLOD-2.0' | 'BSD-3-Clause-Open-MPI' | 'LiLiQ-P-1.1' | 'BSD-3-Clause-Clear' | 'FSFUL' | 'CC-BY-NC-SA-2.0-UK' | 'CERN-OHL-S-2.0' | 'Spencer-94' | 'CERN-OHL-1.2' | 'GFDL-1.1-or-later' | 'AGPL-1.0-or-later' | 'Wsuipa' | 'AML' | 'BSD-2-Clause' | 'DSDP' | 'CC-BY-2.5' | 'MIT-CMU' | 'Beerware' | 'Sendmail' | 'TU-Berlin-1.0' | 'CNRI-Jython' | 'mplus' | 'CPOL-1.02' | 'BSD-3-Clause-No-Nuclear-License-2014' | 'ISC' | 'CC-BY-SA-4.0' | 'Eurosym' | 'LGPL-3.0-only' | 'OLDAP-1.3' | 'GFDL-1.1-invariants-or-later' | 'Glulxe' | 'SimPL-2.0' | 'CDLA-Permissive-2.0' | 'GPL-2.0-with-font-exception' | 'OGL-UK-2.0' | 'CC-BY-SA-3.0-DE' | 'CC-BY-ND-1.0' | 'GFDL-1.1' | 'CC-BY-4.0' | 'OpenSSL' | 'TU-Berlin-2.0' | 'DOC' | 'GFDL-1.2-no-invariants-or-later' | 'QPL-1.0' | 'OLDAP-2.8' | 'OML' | 'OLDAP-2.7' | 'NIST-PD' | 'Bitstream-Vera' | 'GFDL-1.2-or-later' | 'OFL-1.1-RFN' | 'Bahyph' | 'Barr' | 'COIL-1.0' | 'GFDL-1.3' | 'CECILL-B' | 'JPNIC' | 'Zed' | 'ICU' | 'CC-BY-NC-SA-2.5' | 'CC-BY-ND-3.0-DE' | 'bzip2-1.0.5' | 'SPL-1.0' | 'YPL-1.0' | 'OSET-PL-2.1' | 'Noweb' | 'RPSL-1.0' | 'BSD-3-Clause-LBNL' | 'CDLA-Sharing-1.0' | 'CECILL-1.0' | 'AMPAS' | 'APAFML' | 'CC-BY-ND-3.0' | 'D-FSL-1.0' | 'CC-BY-NC-3.0' | 'libpng-2.0' | 'PolyForm-Noncommercial-1.0.0' | 'dvipdfm' | 'GFDL-1.3-or-later' | 'OGTSL' | 'NPL-1.1' | 'GPL-3.0' | 'CERN-OHL-P-2.0' | 'BlueOak-1.0.0' | 'AGPL-3.0-or-later' | 'blessing' | 'ImageMagick' | 'APSL-2.0' | 'MIT-advertising' | 'curl' | 'CC0-1.0' | 'Zimbra-1.4' | 'SSPL-1.0' | 'psutils' | 'CC-BY-SA-2.0-UK' | 'PSF-2.0' | 'Net-SNMP' | 'NAIST-2003' | 'GFDL-1.2-invariants-or-later' | 'SGI-B-1.0' | 'NBPL-1.0' | 'GFDL-1.2-invariants-only' | 'W3C-19980720' | 'OFL-1.0-no-RFN' | 'NetCDF' | 'TMate' | 'NOSL' | 'CNRI-Python-GPL-Compatible' | 'BSD-1-Clause' | 'CC-BY-NC-SA-3.0-DE' | 'BSD-3-Clause-Modification' | 'GLWTPL' | 'GFDL-1.3-only' | 'OLDAP-2.2' | 'CC-BY-ND-4.0' | 'CC-BY-NC-ND-3.0-DE' | 'EUPL-1.0' | 'Linux-OpenIB' | 'LGPL-2.0-or-later' | 'OSL-1.1' | 'Spencer-86' | 'LGPL-2.0' | 'CC-PDDC' | 'CC-BY-NC-ND-3.0' | 'CDL-1.0' | 'Elastic-2.0' | 'CC-BY-2.0' | 'BSD-3-Clause-No-Military-License' | 'IJG' | 'LPPL-1.3a' | 'SAX-PD' | 'BitTorrent-1.0' | 'OLDAP-2.0' | 'Giftware' | 'C-UDA-1.0' | 'LGPL-2.0+' | 'Rdisc' | 'GPL-2.0-with-classpath-exception' | 'CC-BY-3.0-US' | 'CDDL-1.0' | 'Xnet' | 'CPL-1.0' | 'LGPL-3.0-or-later' | 'NASA-1.3' | 'BUSL-1.1' | 'etalab-2.0' | 'MIT-open-group' | 'OLDAP-1.4' | 'GFDL-1.1-invariants-only' | 'RPL-1.1' | 'CC-BY-NC-ND-2.5' | 'FSFULLR' | 'Saxpath' | 'NTP-0' | 'SISSL-1.2' | 'GPL-3.0-or-later' | 'Apache-1.1' | 'CC-BY-SA-2.1-JP' | 'AGPL-3.0-only' | 'GPL-2.0-with-autoconf-exception' | 'Artistic-2.0' | 'App-s2p' | 'Unicode-DFS-2015' | 'diffmark' | 'SNIA' | 'CC-BY-SA-2.5' | 'Linux-man-pages-copyleft' | 'HPND-sell-variant' | 'ZPL-2.1' | 'BSD-4-Clause-UC' | 'LAL-1.2' | 'AGPL-1.0-only' | 'MIT-enna' | 'Condor-1.1' | 'Naumen' | 'GFDL-1.3-no-invariants-or-later' | 'RPL-1.5' | 'PolyForm-Small-Business-1.0.0' | 'EFL-1.0' | 'MirOS' | 'CC-BY-2.5-AU' | 'Afmparse' | 'MPL-2.0-no-copyleft-exception' | 'LiLiQ-Rplus-1.1' | 'AFL-1.2' | 'OSL-1.0' | 'GPL-1.0-only' | 'APSL-1.0' | 'OGL-Canada-2.0' | 'CPAL-1.0' | 'Latex2e' | 'Zend-2.0' | 'Unlicense' | 'xpp' | 'CC-BY-NC-1.0' | 'GPL-3.0-with-autoconf-exception' | 'CC-BY-NC-SA-3.0' | 'TCP-wrappers' | 'SCEA' | 'SSH-short' | 'CC-BY-3.0-NL' | 'SchemeReport' | 'CC-BY-3.0' | 'MPL-2.0' | 'Unicode-TOU' | 'CC-BY-NC-ND-1.0' | 'Entessa' | 'BSD-3-Clause-No-Nuclear-License' | 'SWL' | 'GFDL-1.2-no-invariants-only' | 'Parity-7.0.0' | 'OLDAP-2.2.1' | 'SGI-B-1.1' | 'FTL' | 'OLDAP-2.4' | 'CC-BY-NC-4.0' | 'bzip2-1.0.6' | 'copyleft-next-0.3.0' | 'MakeIndex' | 'NRL' | 'GFDL-1.3-invariants-or-later' | 'CC-BY-NC-2.0' | 'SugarCRM-1.1.3' | 'AFL-2.1' | 'GPL-2.0-only' | 'GFDL-1.3-invariants-only' | 'TORQUE-1.1' | 'Ruby' | 'X11' | 'Borceux' | 'Libpng' | 'X11-distribute-modifications-variant' | 'Frameworx-1.0' | 'NCGL-UK-2.0' | 'CECILL-2.1' | 'CC-BY-3.0-AT' | 'CNRI-Python' | 'NCSA' | 'gSOAP-1.3b' | 'EUPL-1.1' | 'AMDPLPA' | 'Imlib2' | 'CDDL-1.1' | 'WTFPL' | 'LPL-1.0' | 'EPL-1.0' | 'BSD-3-Clause-Attribution' | 'OSL-3.0' | 'RHeCos-1.1' | 'PHP-3.0' | 'BSD-Protection' | 'CC-BY-NC-3.0-DE' | 'APL-1.0' | 'EUDatagrid' | 'GPL-1.0' | 'SHL-0.5' | 'CC-BY-SA-2.0' | 'CC-BY-SA-3.0-AT' | 'CC-BY-NC-SA-3.0-IGO' | 'Adobe-2006' | 'Newsletr' | 'Nunit' | 'Multics' | 'OGL-UK-1.0' | 'Vim' | 'eCos-2.0' | 'Zimbra-1.3' | 'eGenix' | 'IBM-pibs' | 'BitTorrent-1.1' | 'OFL-1.1-no-RFN' | 'psfrag' | 'CC-BY-ND-2.0' | 'SHL-0.51' | 'FreeBSD-DOC' | 'Python-2.0' | 'Mup' | 'BSD-4-Clause-Shortened' | 'CC-BY-NC-SA-4.0' | 'HPND' | 'OLDAP-2.6' | 'MPL-1.1' | 'GPL-2.0-with-GCC-exception' | 'HaskellReport' | 'ECL-1.0' | 'LGPL-2.1-or-later' | 'OFL-1.0' | 'APSL-1.1' | 'MITNFA' | 'CECILL-2.0' | 'Crossword' | 'Aladdin' | 'Baekmuk' | 'XFree86-1.1' | 'GPL-1.0-or-later' | 'CERN-OHL-W-2.0' | 'CC-BY-SA-1.0' | 'NTP' | 'PHP-3.01' | 'OCLC-2.0' | 'CC-BY-3.0-DE' | 'CC-BY-NC-2.5' | 'Zlib' | 'CATOSL-1.1' | 'LGPL-3.0+' | 'CAL-1.0' | 'NPL-1.0' | 'SMLNJ' | 'GPL-2.0+' | 'OLDAP-2.5' | 'JasPer-2.0' | 'GPL-2.0-or-later' | 'BSD-2-Clause-Patent' | 'MS-RL' | 'CUA-OPL-1.0' | 'IPA' | 'NLPL' | 'O-UDA-1.0' | 'MIT-Modern-Variant' | 'OLDAP-1.2' | 'BSD-2-Clause-FreeBSD' | 'Info-ZIP' | 'CC-BY-NC-SA-2.0-FR' | '0BSD' | 'Unicode-DFS-2016' | 'OFL-1.0-RFN' | 'Intel' | 'AFL-2.0' | 'GL2PS' | 'TAPR-OHL-1.0' | 'Apache-1.0' | 'MTLL' | 'Motosoto' | 'RSA-MD' | 'Community-Spec-1.0' | 'ODC-By-1.0' | 'zlib-acknowledgement' | 'DL-DE-BY-2.0' | 'VSL-1.0' | 'LiLiQ-R-1.1' | 'OPL-1.0' | 'GPL-3.0+' | 'MulanPSL-2.0' | 'APSL-1.2' | 'OGDL-Taiwan-1.0' | 'RSCPL' | 'OGC-1.0' | 'EFL-2.0' | 'CAL-1.0-Combined-Work-Exception' | 'MS-PL' | 'Plexus' | 'Sendmail-8.23' | 'Cube' | 'JSON' | 'EUPL-1.2' | 'Adobe-Glyph' | 'FreeImage' | 'Watcom-1.0' | 'Jam' | 'Hippocratic-2.1' | 'OLDAP-2.0.1' | 'CC-BY-NC-SA-2.0' | 'Nokia' | 'OCCT-PL' | 'ErlPL-1.1' | 'TOSL' | 'OSL-2.1' | 'ClArtistic' | 'xinetd' | 'GPL-3.0-with-GCC-exception' | 'ODbL-1.0' | 'MIT' | 'LGPL-2.1+' | 'LGPL-2.1-only' | 'CrystalStacker' | 'ECL-2.0' | 'LPPL-1.0' | 'iMatix' | 'CC-BY-NC-ND-3.0-IGO' | 'BSD-Source-Code' | 'Parity-6.0.0' | 'TCL' | 'Arphic-1999' | 'CC-BY-SA-3.0' | 'Caldera' | 'AGPL-1.0' | 'IPL-1.0' | 'LAL-1.3' | 'EPICS' | 'NGPL' | 'DRL-1.0' | 'BSD-2-Clause-NetBSD' | 'ZPL-1.1' | 'GD' | 'LPPL-1.2' | 'Dotseqn' | 'Spencer-99' | 'OLDAP-2.3' | 'YPL-1.1' | 'Fair' | 'Qhull' | 'GFDL-1.1-no-invariants-or-later' | 'CECILL-C' | 'MulanPSL-1.0' | 'OLDAP-1.1' | 'OLDAP-2.1' | 'LPL-1.02' | 'UPL-1.0' | 'Abstyles' | 'ZPL-2.0' | 'MIT-0' | 'LGPL-2.0-only' | 'GFDL-1.3-no-invariants-only' | 'AGPL-3.0' | 'EPL-2.0' | 'AFL-3.0' | 'CDLA-Permissive-1.0' | 'Artistic-1.0' | 'CC-BY-NC-ND-4.0' | 'HTMLTIDY' | 'Glide' | 'FSFAP' | 'LGPLLR' | 'OGL-UK-3.0' | 'GFDL-1.2' | 'SSH-OpenSSH' | 'GFDL-1.1-only' | 'MIT-feh' | 'MPL-1.0' | 'PostgreSQL' | 'OLDAP-2.2.2' | 'SMPPL' | 'OFL-1.1' | 'Leptonica' | 'CERN-OHL-1.1' | 'BSD-3-Clause-No-Nuclear-Warranty' | 'CC-BY-ND-2.5' | 'CC-BY-1.0' | 'GFDL-1.2-only' | 'OPUBL-1.0' | 'libselinux-1.0' | 'BSD-3-Clause' | 'ANTLR-PD-fallback' | 'copyleft-next-0.3.1' | 'GPL-1.0+' | 'wxWindows' | 'LGPL-3.0' | 'LGPL-2.1' | 'StandardML-NJ' | 'BSD-4-Clause' | 'GPL-2.0-with-bison-exception' | 'Apache-2.0' | 'Artistic-1.0-cl8' | 'GPL-2.0' | 'Intel-ACPI' | 'BSL-1.0' | 'Artistic-1.0-Perl' | 'BSD-2-Clause-Views' | 'Interbase-1.0' | 'NPOSL-3.0';
|
|
124
124
|
/**
|
|
125
125
|
* The list of accepted language codes.
|
|
126
126
|
* @see https://meta.wikimedia.org/wiki/Template:List_of_language_names_ordered_by_code
|
|
127
127
|
*/
|
|
128
|
-
export
|
|
128
|
+
export type LanguageCode = 'aa' | 'ab' | 'af' | 'ak' | 'als' | 'am' | 'an' | 'ang' | 'ang' | 'ar' | 'arc' | 'as' | 'ast' | 'av' | 'awa' | 'ay' | 'az' | 'ba' | 'bar' | 'bat-smg' | 'bcl' | 'be' | 'be-x-old' | 'bg' | 'bh' | 'bi' | 'bm' | 'bn' | 'bo' | 'bpy' | 'br' | 'brx' | 'bs' | 'bug' | 'bxr' | 'ca' | 'cdo' | 'ce' | 'ceb' | 'ch' | 'cho' | 'chr' | 'chy' | 'ckb' | 'co' | 'cr' | 'cs' | 'csb' | 'cu' | 'cv' | 'cy' | 'da' | 'de' | 'diq' | 'dsb' | 'dv' | 'dz' | 'ee' | 'el' | 'en' | 'eo' | 'es' | 'et' | 'eu' | 'ext' | 'fa' | 'ff' | 'fi' | 'fiu-vro' | 'fj' | 'fo' | 'fr' | 'frp' | 'fur' | 'fy' | 'ga' | 'gan' | 'gbm' | 'gd' | 'gil' | 'gl' | 'gn' | 'got' | 'gu' | 'gv' | 'ha' | 'hak' | 'haw' | 'he' | 'hi' | 'ho' | 'hr' | 'ht' | 'hu' | 'hy' | 'hz' | 'ia' | 'id' | 'ie' | 'ig' | 'ii' | 'ik' | 'ilo' | 'inh' | 'io' | 'is' | 'it' | 'iu' | 'ja' | 'jbo' | 'jv' | 'ka' | 'kg' | 'ki' | 'kj' | 'kk' | 'kl' | 'km' | 'kn' | 'khw' | 'ko' | 'kr' | 'ks' | 'ksh' | 'ku' | 'kv' | 'kw' | 'ky' | 'la' | 'lad' | 'lan' | 'lb' | 'lg' | 'li' | 'lij' | 'lmo' | 'ln' | 'lo' | 'lzz' | 'lt' | 'lv' | 'map-bms' | 'mg' | 'man' | 'mh' | 'mi' | 'min' | 'mk' | 'ml' | 'mn' | 'mo' | 'mr' | 'mrh' | 'ms' | 'mt' | 'mus' | 'mwl' | 'my' | 'na' | 'nah' | 'nap' | 'nd' | 'nds' | 'nds-nl' | 'ne' | 'new' | 'ng' | 'nl' | 'nn' | 'no' | 'nr' | 'nso' | 'nrm' | 'nv' | 'ny' | 'oc' | 'oj' | 'om' | 'or' | 'os' | 'pa' | 'pag' | 'pam' | 'pap' | 'pdc' | 'pi' | 'pih' | 'pl' | 'pms' | 'ps' | 'pt' | 'qu' | 'rm' | 'rmy' | 'rn' | 'ro' | 'roa-rup' | 'ru' | 'rw' | 'sa' | 'sc' | 'scn' | 'sco' | 'sd' | 'se' | 'sg' | 'sh' | 'si' | 'sk' | 'sl' | 'sm' | 'sn' | 'so' | 'sq' | 'sr' | 'ss' | 'st' | 'su' | 'sv' | 'sw' | 'ta' | 'te' | 'tet' | 'tg' | 'th' | 'ti' | 'tk' | 'tl' | 'tlh' | 'tn' | 'to' | 'tpi' | 'tr' | 'ts' | 'tt' | 'tum' | 'tw' | 'ty' | 'udm' | 'ug' | 'uk' | 'ur' | 'uz' | 'uz_AF' | 've' | 'vi' | 'vec' | 'vls' | 'vo' | 'wa' | 'war' | 'wo' | 'xal' | 'xh' | 'xmf' | 'yi' | 'yo' | 'za' | 'zh' | 'zh-classical' | 'zh-min-nan' | 'zh-yue' | 'zu';
|
package/dist/markdown.d.ts
CHANGED
package/dist/pages.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type MaybePromise<T> = T | Promise<T>;
|
package/dist/promise.mjs
ADDED
|
File without changes
|
package/dist/pwa.d.ts
CHANGED
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
import type { MaybePromise } from '.';
|
|
3
|
+
export type { EnqueuedTask, Hits, Index, IndexOptions, IndexesResults, MeiliSearch, Record, RecordOptions, Records, RecordsResults, SearchEngineSettings, SearchParams, SearchResponse };
|
|
4
|
+
export interface SearchEngineOptions {
|
|
5
|
+
/**
|
|
6
|
+
* ### Search Engine Driver
|
|
7
|
+
*
|
|
8
|
+
* The search engine to utilize.
|
|
9
|
+
*
|
|
10
|
+
* @default string 'meilisearch'
|
|
11
|
+
* @see https://stacksjs.dev/docs/search-engine
|
|
12
|
+
*/
|
|
13
|
+
driver: 'meilisearch' | 'algolia';
|
|
14
|
+
}
|
|
15
|
+
type Search = any;
|
|
16
|
+
export interface SearchEngineDriver {
|
|
17
|
+
client: MeiliSearch;
|
|
18
|
+
createIndex: (name: string, options?: IndexOptions) => MaybePromise<EnqueuedTask>;
|
|
19
|
+
getIndex: (name: string) => MaybePromise<Index>;
|
|
20
|
+
updateIndex?: (name: string, options: IndexOptions) => MaybePromise<EnqueuedTask>;
|
|
21
|
+
deleteIndex?: (name: string) => MaybePromise<EnqueuedTask>;
|
|
22
|
+
updateIndexSettings: (name: string, settings: SearchEngineSettings) => MaybePromise<EnqueuedTask>;
|
|
23
|
+
listAllIndexes: () => MaybePromise<IndexesResults<Index[]>>;
|
|
24
|
+
listAllIndices: () => MaybePromise<IndexesResults<Index[]>>;
|
|
25
|
+
getRecord?: (key: string) => MaybePromise<Record>;
|
|
26
|
+
getRecords?: (key: string) => MaybePromise<RecordOptions>;
|
|
27
|
+
createRecord?: (record: Record, indexName: string, options: RecordOptions) => MaybePromise<EnqueuedTask>;
|
|
28
|
+
createRecords?: (records: Records, indexName: string, options: RecordOptions) => MaybePromise<EnqueuedTask>;
|
|
29
|
+
createOrReplaceRecord?: (record: Record, indexName: string, options: RecordOptions) => MaybePromise<EnqueuedTask>;
|
|
30
|
+
createOrUpdateRecord?: (record: Record, indexName: string, options: RecordOptions) => MaybePromise<EnqueuedTask>;
|
|
31
|
+
deleteRecord?: (recordId: string | number, indexName: string) => MaybePromise<EnqueuedTask>;
|
|
32
|
+
deleteAllRecords?: (indexName: string) => MaybePromise<EnqueuedTask>;
|
|
33
|
+
batchDeleteRecords?: (recordIds: string[] | number[], indexName: string) => MaybePromise<EnqueuedTask>;
|
|
34
|
+
search?: (query: string, indexName: string, options: SearchParams) => MaybePromise<Search>;
|
|
35
|
+
calculatePagination: any;
|
|
36
|
+
currentPage: any;
|
|
37
|
+
filterName: any;
|
|
38
|
+
filters: any;
|
|
39
|
+
goToNextPage: any;
|
|
40
|
+
goToPage: any;
|
|
41
|
+
goToPrevPage: any;
|
|
42
|
+
hits: any;
|
|
43
|
+
index: any;
|
|
44
|
+
lastPageNumber: any;
|
|
45
|
+
perPage: any;
|
|
46
|
+
query: any;
|
|
47
|
+
results: any;
|
|
48
|
+
searchFilters: any;
|
|
49
|
+
searchParams: any;
|
|
50
|
+
setTotalHits: any;
|
|
51
|
+
sort: any;
|
|
52
|
+
sorts: any;
|
|
53
|
+
totalPages: any;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* the TableStore interface is primarily used to unify the persisting of data to localStorage
|
|
57
|
+
*/
|
|
58
|
+
export interface SearchEngineStorage {
|
|
59
|
+
/**
|
|
60
|
+
* The search engine index name.
|
|
61
|
+
* i.e. the type of table, like `users`, `posts`, `products`, etc.
|
|
62
|
+
*/
|
|
63
|
+
index?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The search engine results object.
|
|
66
|
+
*/
|
|
67
|
+
results?: SearchResponse;
|
|
68
|
+
/**
|
|
69
|
+
* The search engine hits object.
|
|
70
|
+
*/
|
|
71
|
+
hits?: Hits;
|
|
72
|
+
/**
|
|
73
|
+
* The number of hits to be returned per page.
|
|
74
|
+
*
|
|
75
|
+
* @default number 20
|
|
76
|
+
*/
|
|
77
|
+
perPage: number;
|
|
78
|
+
/**
|
|
79
|
+
* The current page number.
|
|
80
|
+
*
|
|
81
|
+
* @default number 1
|
|
82
|
+
*/
|
|
83
|
+
currentPage: number;
|
|
84
|
+
}
|
|
File without changes
|
package/dist/ssg.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type ViteSSGContext } from '@stacksjs/types';
|
|
2
|
-
export
|
|
2
|
+
export type UserModule = (ctx: ViteSSGContext) => void;
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UserShortcuts } from 'unocss';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type Font = 'inter' | 'mona' | 'hubot';
|
|
3
|
+
export type Icon = 'heroicon-outline' | 'heroicon-solid';
|
|
4
|
+
export type WebFontsProviders = 'google' | 'bunny' | 'fontshare' | 'none';
|
|
5
5
|
export interface WebFontMeta {
|
|
6
6
|
name: string;
|
|
7
7
|
weights?: (string | number)[];
|
|
@@ -158,7 +158,7 @@ export interface UiOptions {
|
|
|
158
158
|
*/
|
|
159
159
|
icons: Icon | Icon[];
|
|
160
160
|
}
|
|
161
|
-
export
|
|
161
|
+
export type Shortcuts = UserShortcuts;
|
|
162
162
|
/**
|
|
163
163
|
* ### Style Reset — Preset
|
|
164
164
|
*
|
|
@@ -167,4 +167,4 @@ export declare type Shortcuts = UserShortcuts;
|
|
|
167
167
|
*
|
|
168
168
|
* @default "tailwind"
|
|
169
169
|
*/
|
|
170
|
-
export
|
|
170
|
+
export type ResetPreset = 'tailwind' | 'normalize' | 'sanitize' | 'eric-meyer' | 'antfu' | null;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Null or whatever.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type Nullable<T> = T | null | undefined;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Constructor.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
9
|
-
/**
|
|
10
|
-
* Array, or not yet
|
|
11
|
-
*/
|
|
12
|
-
export declare type Arrayable<T> = T | Array<T>;
|
|
13
|
-
/**
|
|
14
|
-
* Function
|
|
15
|
-
*/
|
|
16
|
-
export declare type Fn<T = void> = () => T;
|
|
17
|
-
/**
|
|
18
|
-
* Constructor
|
|
19
|
-
*/
|
|
20
|
-
export declare type Constructor<T = void> = new (...args: any[]) => T;
|
|
21
|
-
/**
|
|
22
|
-
* Infers the element type of an array
|
|
23
|
-
*/
|
|
24
|
-
export declare type ElementOf<T> = T extends (infer E)[] ? E : never;
|
|
8
|
+
export type Constructor<T = void> = new (...args: any[]) => T;
|
|
25
9
|
/**
|
|
26
10
|
* Defines an intersection type of all union items.
|
|
27
11
|
*
|
|
@@ -29,14 +13,10 @@ export declare type ElementOf<T> = T extends (infer E)[] ? E : never;
|
|
|
29
13
|
* @returns U items intersected
|
|
30
14
|
* @see https://stackoverflow.com/a/50375286/9259330
|
|
31
15
|
*/
|
|
32
|
-
export
|
|
33
|
-
|
|
34
|
-
* Infers the arguments type of a function
|
|
35
|
-
*/
|
|
36
|
-
export declare type ArgumentsType<T> = T extends ((...args: infer A) => any) ? A : never;
|
|
37
|
-
export declare type MergeInsertions<T> = T extends object ? {
|
|
16
|
+
export type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
|
|
17
|
+
export type MergeInsertions<T> = T extends object ? {
|
|
38
18
|
[K in keyof T]: MergeInsertions<T[K]>;
|
|
39
19
|
} : T;
|
|
40
|
-
export
|
|
20
|
+
export type DeepMerge<F, S> = MergeInsertions<{
|
|
41
21
|
[K in keyof F | keyof S]: K extends keyof S & keyof F ? DeepMerge<F[K], S[K]> : K extends keyof S ? S[K] : K extends keyof F ? F[K] : never;
|
|
42
22
|
}>;
|
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.42.1",
|
|
5
|
+
"packageManager": "pnpm@7.17.0",
|
|
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.
|
|
37
|
+
"pnpm": ">=7.17.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@mdit-vue/plugin-component": "^0.11.1",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"cac": "^6.7.14",
|
|
55
55
|
"markdown-it": "^13.0.1",
|
|
56
56
|
"mkdist": "^1.0.0",
|
|
57
|
-
"typescript": "^4.
|
|
58
|
-
"unplugin-auto-import": "^0.11.
|
|
59
|
-
"unplugin-vue-components": "^0.22.
|
|
60
|
-
"vite-plugin-inspect": "^0.7.
|
|
57
|
+
"typescript": "^4.9.3",
|
|
58
|
+
"unplugin-auto-import": "^0.11.5",
|
|
59
|
+
"unplugin-vue-components": "^0.22.11",
|
|
60
|
+
"vite-plugin-inspect": "^0.7.9",
|
|
61
61
|
"vite-plugin-vue-layouts": "^0.7.0",
|
|
62
|
-
"vite-ssg": "^0.
|
|
62
|
+
"vite-ssg": "^0.22.0",
|
|
63
63
|
"vitepress": "1.0.0-alpha.29"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|