@stacksjs/types 0.53.1 → 0.56.3
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/index.d.ts +2111 -39
- package/dist/index.mjs +112 -39
- package/package.json +24 -18
- package/dist/app.d.ts +0 -108
- package/dist/app.mjs +0 -0
- package/dist/auto-imports.d.ts +0 -1
- package/dist/auto-imports.mjs +0 -0
- package/dist/build.d.ts +0 -2
- package/dist/build.mjs +0 -0
- package/dist/cache.d.ts +0 -69
- package/dist/cache.mjs +0 -0
- package/dist/cdn.d.ts +0 -15
- package/dist/cdn.mjs +0 -0
- package/dist/cli.d.ts +0 -278
- package/dist/cli.mjs +0 -86
- package/dist/components.d.ts +0 -60
- package/dist/components.mjs +0 -0
- package/dist/cron-jobs.d.ts +0 -16
- package/dist/cron-jobs.mjs +0 -0
- package/dist/database.d.ts +0 -32
- package/dist/database.mjs +0 -0
- package/dist/debug.d.ts +0 -6
- package/dist/debug.mjs +0 -0
- package/dist/deploy.d.ts +0 -9
- package/dist/deploy.mjs +0 -0
- package/dist/dns.d.ts +0 -43
- package/dist/dns.mjs +0 -0
- package/dist/docs.d.ts +0 -3
- package/dist/docs.mjs +0 -0
- package/dist/errors.d.ts +0 -1
- package/dist/errors.mjs +0 -6
- package/dist/events.d.ts +0 -22
- package/dist/events.mjs +0 -0
- package/dist/exit-code.d.ts +0 -10
- package/dist/exit-code.mjs +0 -6
- package/dist/fs.d.ts +0 -27
- package/dist/fs.mjs +0 -0
- package/dist/git.d.ts +0 -128
- package/dist/git.mjs +0 -0
- package/dist/hashing.d.ts +0 -102
- package/dist/hashing.mjs +0 -0
- package/dist/i18n.d.ts +0 -19
- package/dist/i18n.mjs +0 -0
- package/dist/inspect.d.ts +0 -9
- package/dist/inspect.mjs +0 -0
- package/dist/layout.d.ts +0 -7
- package/dist/layout.mjs +0 -0
- package/dist/library.d.ts +0 -132
- package/dist/library.mjs +0 -0
- package/dist/manifest.d.ts +0 -9
- package/dist/manifest.mjs +0 -0
- package/dist/markdown.d.ts +0 -167
- package/dist/markdown.mjs +0 -0
- package/dist/model.d.ts +0 -40
- package/dist/model.mjs +0 -0
- package/dist/notifications.d.ts +0 -164
- package/dist/notifications.mjs +0 -0
- package/dist/pages.d.ts +0 -10
- package/dist/pages.mjs +0 -0
- package/dist/payments.d.ts +0 -59
- package/dist/payments.mjs +0 -0
- package/dist/promise.d.ts +0 -1
- package/dist/promise.mjs +0 -0
- package/dist/pwa.d.ts +0 -7
- package/dist/pwa.mjs +0 -0
- package/dist/reactivity.d.ts +0 -1
- package/dist/reactivity.mjs +0 -0
- package/dist/router.d.ts +0 -42
- package/dist/router.mjs +0 -0
- package/dist/search-engine.d.ts +0 -143
- package/dist/search-engine.mjs +0 -0
- package/dist/ssg.d.ts +0 -2
- package/dist/ssg.mjs +0 -0
- package/dist/stacks.d.ts +0 -163
- package/dist/stacks.mjs +0 -0
- package/dist/tables.d.ts +0 -52
- package/dist/tables.mjs +0 -0
- package/dist/ui.d.ts +0 -180
- package/dist/ui.mjs +0 -0
- package/dist/utils.d.ts +0 -30
- package/dist/utils.mjs +0 -0
package/dist/git.d.ts
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* **Git Options**
|
|
3
|
-
*
|
|
4
|
-
* This configuration defines all of your git options. Because Stacks is fully-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
|
-
export interface GitOptions {
|
|
9
|
-
/**
|
|
10
|
-
* **Git Hooks**
|
|
11
|
-
*
|
|
12
|
-
* The git hooks to use.
|
|
13
|
-
*
|
|
14
|
-
* @see https://git-scm.com/docs/githooks
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* git: {
|
|
18
|
-
* hooks: {
|
|
19
|
-
* 'pre-commit': 'lint-staged',
|
|
20
|
-
* }
|
|
21
|
-
* }
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
hooks: GitHooks;
|
|
25
|
-
/**
|
|
26
|
-
* **Git Commit Scopes**
|
|
27
|
-
*
|
|
28
|
-
* The git commit scopes to use.
|
|
29
|
-
*
|
|
30
|
-
* @see https://stacksjs.dev/docs/git/scopes
|
|
31
|
-
* @example
|
|
32
|
-
* git: [
|
|
33
|
-
* scopes: [
|
|
34
|
-
* '', 'ci', 'deps', 'dx', 'release', 'readme', 'test', 'actions', 'build', 'cli',
|
|
35
|
-
* 'config', 'examples', 'functions', 'modules', 'pages', 'router', 'scripts',
|
|
36
|
-
* 'ui', 'utils', 'arrays', 'collections', 'fs', 'objects', 'strings',
|
|
37
|
-
* ]
|
|
38
|
-
* ]
|
|
39
|
-
*/
|
|
40
|
-
scopes: string[];
|
|
41
|
-
/**
|
|
42
|
-
* **Git Commit Types**
|
|
43
|
-
*
|
|
44
|
-
* The git commit types to use.
|
|
45
|
-
*
|
|
46
|
-
* @default array
|
|
47
|
-
* @see https://stacksjs.dev/docs/git/types
|
|
48
|
-
* @see https://www.conventionalcommits.org/en/v1.0.0/
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* git: [
|
|
52
|
-
* types: [
|
|
53
|
-
* 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test',
|
|
54
|
-
* ]
|
|
55
|
-
* ]
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
types: {
|
|
59
|
-
value: string;
|
|
60
|
-
name: string;
|
|
61
|
-
emoji: string;
|
|
62
|
-
}[];
|
|
63
|
-
/**
|
|
64
|
-
* **Messages—Options**
|
|
65
|
-
*
|
|
66
|
-
* The git messages/prompts to use.
|
|
67
|
-
*
|
|
68
|
-
* @default object
|
|
69
|
-
* @example
|
|
70
|
-
* ```ts
|
|
71
|
-
* messages: {
|
|
72
|
-
* type: 'Select the type of change that you\'re committing:',
|
|
73
|
-
* scope: 'Denote the SCOPE of this change:',
|
|
74
|
-
* subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
|
|
75
|
-
* body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
|
|
76
|
-
* breaking: 'List any BREAKING CHANGES (optional):\n',
|
|
77
|
-
* footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n',
|
|
78
|
-
* confirmCommit: 'Are you sure you want to proceed with the commit above?',
|
|
79
|
-
* }
|
|
80
|
-
* ```
|
|
81
|
-
* @see https://stacksjs.dev/docs/git/messages
|
|
82
|
-
*/
|
|
83
|
-
messages: {
|
|
84
|
-
type: string;
|
|
85
|
-
scope: string;
|
|
86
|
-
customScope: string;
|
|
87
|
-
subject: string;
|
|
88
|
-
body: string;
|
|
89
|
-
breaking: string;
|
|
90
|
-
footerPrefixesSelect: string;
|
|
91
|
-
customFooterPrefixes: string;
|
|
92
|
-
footer: string;
|
|
93
|
-
confirmCommit: string;
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
interface Hooks {
|
|
97
|
-
'applypatch-msg'?: string;
|
|
98
|
-
'pre-applypatch'?: string;
|
|
99
|
-
'post-applypatch'?: string;
|
|
100
|
-
'pre-commit'?: string;
|
|
101
|
-
'pre-merge-commit'?: string;
|
|
102
|
-
'prepare-commit-msg'?: string;
|
|
103
|
-
'commit-msg'?: string;
|
|
104
|
-
'post-commit'?: string;
|
|
105
|
-
'pre-rebase'?: string;
|
|
106
|
-
'post-checkout'?: string;
|
|
107
|
-
'post-merge'?: string;
|
|
108
|
-
'pre-push'?: string;
|
|
109
|
-
'pre-receive'?: string;
|
|
110
|
-
'update'?: string;
|
|
111
|
-
'proc-receive'?: string;
|
|
112
|
-
'post-receive'?: string;
|
|
113
|
-
'post-update'?: string;
|
|
114
|
-
'reference-transaction'?: string;
|
|
115
|
-
'push-to-checkout'?: string;
|
|
116
|
-
'pre-auto-gc'?: string;
|
|
117
|
-
'post-rewrite'?: string;
|
|
118
|
-
'sendemail-validate'?: string;
|
|
119
|
-
'fsmonitor-watchman'?: string;
|
|
120
|
-
'p4-changelist'?: string;
|
|
121
|
-
'p4-prepare-changelist'?: string;
|
|
122
|
-
'p4-post-changelist'?: string;
|
|
123
|
-
'p4-pre-submit'?: string;
|
|
124
|
-
'post-index-change'?: string;
|
|
125
|
-
}
|
|
126
|
-
export interface GitHooks extends Hooks {
|
|
127
|
-
}
|
|
128
|
-
export {};
|
package/dist/git.mjs
DELETED
|
File without changes
|
package/dist/hashing.d.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Stacks runtime provides secure Bcrypt & Argon2 hashing for storing user passwords.
|
|
3
|
-
* If you are using one of the Laravel application starter kits, Bcrypt will be used for
|
|
4
|
-
* registration and authentication by default.
|
|
5
|
-
*
|
|
6
|
-
* Bcrypt is a great choice for hashing passwords because its "work factor" is adjustable, which
|
|
7
|
-
* means that the time it takes to generate a hash can be increased as hardware power increases.
|
|
8
|
-
* When hashing passwords, slow is good. The longer an algorithm takes to hash a password, the
|
|
9
|
-
* longer it takes malicious users to generate "rainbow tables" of all possible string hash
|
|
10
|
-
* values that may be used in brute force attacks against applications.
|
|
11
|
-
*
|
|
12
|
-
* @see https://stacksjs.dev/docs/hashing
|
|
13
|
-
*/
|
|
14
|
-
export interface HashingOptions {
|
|
15
|
-
/**
|
|
16
|
-
* **Hashing Driver**
|
|
17
|
-
*
|
|
18
|
-
* This option controls the default hash driver that will be used to hash
|
|
19
|
-
* passwords for your application. By default, the bcrypt algorithm is
|
|
20
|
-
* used; however, you remain free to modify this option if you wish.
|
|
21
|
-
*
|
|
22
|
-
* @see https://stacksjs.dev/docs/hashing
|
|
23
|
-
*/
|
|
24
|
-
driver: 'argon' | 'bcrypt';
|
|
25
|
-
/**
|
|
26
|
-
* **Bcrypt Option**
|
|
27
|
-
*
|
|
28
|
-
* Here you may specify the configuration options that should be used when
|
|
29
|
-
* passwords are hashed using the Bcrypt algorithm. This will allow you
|
|
30
|
-
* to control the amount of time it takes to hash the given password.
|
|
31
|
-
*
|
|
32
|
-
* @see https://stacksjs.dev/docs/hashing
|
|
33
|
-
*/
|
|
34
|
-
bcrypt?: BcryptOptions;
|
|
35
|
-
/**
|
|
36
|
-
* **Argon Options**
|
|
37
|
-
*
|
|
38
|
-
* Here you may specify the configuration options that should be used when
|
|
39
|
-
* passwords are hashed using the Argon algorithm. These will allow you
|
|
40
|
-
* to control the amount of time it takes to hash the given password.
|
|
41
|
-
*
|
|
42
|
-
* @see https://stacksjs.dev/docs/hashing
|
|
43
|
-
*/
|
|
44
|
-
argon?: ArgonOptions;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* **Bcrypt Options**
|
|
48
|
-
*
|
|
49
|
-
* Here you may specify the configuration options that should be used when
|
|
50
|
-
* passwords are hashed using the Bcrypt algorithm. This will allow you
|
|
51
|
-
* to control the amount of time it takes to hash the given password.
|
|
52
|
-
*
|
|
53
|
-
* @see https://stacksjs.dev/docs/hashing
|
|
54
|
-
*/
|
|
55
|
-
export interface BcryptOptions {
|
|
56
|
-
/**
|
|
57
|
-
* Bcrypt salt rounds.
|
|
58
|
-
*
|
|
59
|
-
* @default number 10
|
|
60
|
-
* @see https://stacksjs.dev/docs/hashing
|
|
61
|
-
*/
|
|
62
|
-
rounds?: number;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* **Argon Options**
|
|
66
|
-
*
|
|
67
|
-
* Here you may specify the configuration options that should be used when
|
|
68
|
-
* passwords are hashed using the Argon algorithm. These will allow you
|
|
69
|
-
* to control the amount of time it takes to hash the given password.
|
|
70
|
-
*
|
|
71
|
-
* @see https://stacksjs.dev/docs/hashing
|
|
72
|
-
*/
|
|
73
|
-
export interface ArgonOptions {
|
|
74
|
-
/**
|
|
75
|
-
* **Argon Memory**
|
|
76
|
-
*
|
|
77
|
-
* Amount of memory (in kibibytes) to use.
|
|
78
|
-
*
|
|
79
|
-
* @default number 65536
|
|
80
|
-
* @see https://stacksjs.dev/docs/hashing
|
|
81
|
-
*/
|
|
82
|
-
memory?: number;
|
|
83
|
-
/**
|
|
84
|
-
* **Argon Parallelism**
|
|
85
|
-
*
|
|
86
|
-
* Degree of parallelism (i.e. number of threads).
|
|
87
|
-
*
|
|
88
|
-
* @default number 1
|
|
89
|
-
* @see https://stacksjs.dev/docs/hashing
|
|
90
|
-
*/
|
|
91
|
-
threads?: number;
|
|
92
|
-
/**
|
|
93
|
-
* **Argon time**
|
|
94
|
-
*
|
|
95
|
-
* Execution time.
|
|
96
|
-
*
|
|
97
|
-
* @default number 1
|
|
98
|
-
* @see https://stacksjs.dev/docs/hashing
|
|
99
|
-
*/
|
|
100
|
-
time?: number;
|
|
101
|
-
}
|
|
102
|
-
export type HashAlgorithm = 'md4' | 'md5' | 'sha1' | 'sha256' | 'sha384' | 'sha512' | 'ripemd128' | 'ripemd160' | 'tiger128' | 'tiger160' | 'tiger192' | 'crc32' | 'crc32b';
|
package/dist/hashing.mjs
DELETED
|
File without changes
|
package/dist/i18n.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
interface VitePluginVueI18nOptions {
|
|
2
|
-
forceStringify?: boolean;
|
|
3
|
-
runtimeOnly?: boolean;
|
|
4
|
-
compositionOnly?: boolean;
|
|
5
|
-
fullInstall?: boolean;
|
|
6
|
-
include?: string | string[];
|
|
7
|
-
defaultSFCLang?: 'json' | 'json5' | 'yml' | 'yaml';
|
|
8
|
-
globalSFCScope?: boolean;
|
|
9
|
-
useVueI18nImportName?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* **Internationalization Options**
|
|
13
|
-
*
|
|
14
|
-
* The i18n option.
|
|
15
|
-
*
|
|
16
|
-
* @see https://github.com/intlify/bundle-tools/blob/main/packages/vite-plugin-vue-i18n/src/options.ts
|
|
17
|
-
*/
|
|
18
|
-
export type i18nOptions = VitePluginVueI18nOptions;
|
|
19
|
-
export {};
|
package/dist/i18n.mjs
DELETED
|
File without changes
|
package/dist/inspect.d.ts
DELETED
package/dist/inspect.mjs
DELETED
|
File without changes
|
package/dist/layout.d.ts
DELETED
package/dist/layout.mjs
DELETED
|
File without changes
|
package/dist/library.d.ts
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import type { TagsOptions } from './components';
|
|
2
|
-
/**
|
|
3
|
-
* **Library Options**
|
|
4
|
-
*
|
|
5
|
-
* This configuration defines all of your library options. Because Stacks is fully-typed, you
|
|
6
|
-
* may hover any of the options below and the definitions will be provided. In case you
|
|
7
|
-
* have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
8
|
-
*/
|
|
9
|
-
export interface LibraryOptions {
|
|
10
|
-
/**
|
|
11
|
-
* The base name of your library/libraries.
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* The name of your organization (parent).
|
|
16
|
-
*/
|
|
17
|
-
parentName: string | null;
|
|
18
|
-
/**
|
|
19
|
-
* The package registry to use.
|
|
20
|
-
*/
|
|
21
|
-
packageRegistry: 'npm';
|
|
22
|
-
/**
|
|
23
|
-
* The path of your repository.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* "your-org/your-repo"
|
|
27
|
-
*/
|
|
28
|
-
repository: string;
|
|
29
|
-
/**
|
|
30
|
-
* The list of accepted SPDX licenses.
|
|
31
|
-
* When developing OS packages, you may want to utilize an OSI approved license.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* "MIT"
|
|
35
|
-
* @see https://opensource.org/licenses
|
|
36
|
-
*/
|
|
37
|
-
license: LicenseType;
|
|
38
|
-
/**
|
|
39
|
-
* The author's name of the library.
|
|
40
|
-
*/
|
|
41
|
-
author: string;
|
|
42
|
-
/**
|
|
43
|
-
* A list of all the contributors.
|
|
44
|
-
*/
|
|
45
|
-
contributors: string[];
|
|
46
|
-
/**
|
|
47
|
-
* The default language used within your stack.
|
|
48
|
-
*/
|
|
49
|
-
defaultLanguage: LanguageCode;
|
|
50
|
-
/**
|
|
51
|
-
* The Vue component library options.
|
|
52
|
-
*/
|
|
53
|
-
vueComponents: LibraryBuildOptions;
|
|
54
|
-
/**
|
|
55
|
-
* The Web Component library options.
|
|
56
|
-
*/
|
|
57
|
-
webComponents: LibraryBuildOptions;
|
|
58
|
-
/**
|
|
59
|
-
* The Web Component library options.
|
|
60
|
-
*/
|
|
61
|
-
functions: LibraryBuildOptions;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* The list of available options to build your library.
|
|
65
|
-
*/
|
|
66
|
-
export interface LibraryBuildOptions {
|
|
67
|
-
/**
|
|
68
|
-
* The name of your library as published to npm.
|
|
69
|
-
*/
|
|
70
|
-
name: string;
|
|
71
|
-
/**
|
|
72
|
-
* The description of your library as published to npm.
|
|
73
|
-
*/
|
|
74
|
-
description: string;
|
|
75
|
-
/**
|
|
76
|
-
* The keywords of your library as published to npm.
|
|
77
|
-
*/
|
|
78
|
-
keywords: string[];
|
|
79
|
-
/**
|
|
80
|
-
* Should your library include an IIFE build?
|
|
81
|
-
* (Immediately Invoked Function Expression)
|
|
82
|
-
* @default false
|
|
83
|
-
*/
|
|
84
|
-
shouldBuildIife?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Should your library generate a sourcemap?
|
|
87
|
-
* @default false
|
|
88
|
-
*/
|
|
89
|
-
shouldGenerateSourcemap?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* This is where you define the functions/composables that need to be included
|
|
92
|
-
* in your library. For example, including your `counter` function to be
|
|
93
|
-
* built would require `../functions/counter.ts` to be present.
|
|
94
|
-
*/
|
|
95
|
-
functions?: string[];
|
|
96
|
-
/**
|
|
97
|
-
* This is where you define the components that need to be included in
|
|
98
|
-
* your library. For example, including your `HelloWorld` to be built
|
|
99
|
-
* would require `../components/HelloWorld.vue` to be present.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* {
|
|
103
|
-
* tags: [{
|
|
104
|
-
* name: 'HelloWorld' // export { default as HelloWorld } from './components/HelloWorld.vue'
|
|
105
|
-
* }]
|
|
106
|
-
* }
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
* {
|
|
110
|
-
* tags: [{
|
|
111
|
-
* name: ['HelloWorld', 'AppHelloWorld'] // export { default as AppHelloWorld } from './components/HelloWorld.vue'
|
|
112
|
-
* }]
|
|
113
|
-
* }
|
|
114
|
-
*/
|
|
115
|
-
tags?: TagsOptions;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* The name of your "Stack" which generally is your library name
|
|
119
|
-
* or a concatenation of your organization & library name.
|
|
120
|
-
*/
|
|
121
|
-
export type StackName = string;
|
|
122
|
-
/**
|
|
123
|
-
* The list of accepted SPDX licenses.
|
|
124
|
-
* When developing OS packages, you may want to utilize an OSI approved license.
|
|
125
|
-
* @see https://opensource.org/licenses
|
|
126
|
-
*/
|
|
127
|
-
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';
|
|
128
|
-
/**
|
|
129
|
-
* The list of accepted language codes.
|
|
130
|
-
* @see https://meta.wikimedia.org/wiki/Template:List_of_language_names_ordered_by_code
|
|
131
|
-
*/
|
|
132
|
-
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/library.mjs
DELETED
|
File without changes
|
package/dist/manifest.d.ts
DELETED
package/dist/manifest.mjs
DELETED
|
File without changes
|
package/dist/markdown.d.ts
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import type MarkdownIt from 'markdown-it';
|
|
2
|
-
import type { ComponentPluginOptions } from '@mdit-vue/plugin-component';
|
|
3
|
-
import type { FrontmatterPluginOptions } from '@mdit-vue/plugin-frontmatter';
|
|
4
|
-
import type { MarkdownItEnv } from '@mdit-vue/types';
|
|
5
|
-
import type { FilterPattern } from '@rollup/pluginutils';
|
|
6
|
-
/** a `<meta />` property in HTML is defined with the following name/values */
|
|
7
|
-
export interface MetaProperty {
|
|
8
|
-
key?: string;
|
|
9
|
-
/**
|
|
10
|
-
* the "name" property used by Facebook and other providers who
|
|
11
|
-
* use the Open Graph standards
|
|
12
|
-
*/
|
|
13
|
-
property?: string;
|
|
14
|
-
/**
|
|
15
|
-
* used by google to identify the "name" of the name/value pair
|
|
16
|
-
*/
|
|
17
|
-
itemprop?: string;
|
|
18
|
-
/**
|
|
19
|
-
* used by Twitter to indicate the "name" field in a meta properties
|
|
20
|
-
* name/value pairing
|
|
21
|
-
*/
|
|
22
|
-
name?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The value of the meta property
|
|
25
|
-
*/
|
|
26
|
-
content?: any;
|
|
27
|
-
[key: string]: unknown;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Frontmatter content is represented as key/value dictionary
|
|
31
|
-
*/
|
|
32
|
-
export interface Frontmatter {
|
|
33
|
-
title?: string;
|
|
34
|
-
name?: string;
|
|
35
|
-
description?: string;
|
|
36
|
-
meta?: MetaProperty[];
|
|
37
|
-
[key: string]: unknown;
|
|
38
|
-
}
|
|
39
|
-
export interface Options {
|
|
40
|
-
/**
|
|
41
|
-
* Explicitly set the Vue version
|
|
42
|
-
*
|
|
43
|
-
* @default auto detected
|
|
44
|
-
*/
|
|
45
|
-
vueVersion?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Enable head support, need to install @vueuse/head and register to App in main.js
|
|
48
|
-
*
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
headEnabled?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* The head field in frontmatter used to be used for @vueuse/head
|
|
54
|
-
*
|
|
55
|
-
* When an empty string is passed, it will use the root properties of the frontmatter
|
|
56
|
-
*
|
|
57
|
-
* @default ''
|
|
58
|
-
*/
|
|
59
|
-
headField?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Parse for frontmatter
|
|
62
|
-
*
|
|
63
|
-
* @default true
|
|
64
|
-
*/
|
|
65
|
-
frontmatter?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Parse for excerpt
|
|
68
|
-
*
|
|
69
|
-
* If `true`, it will be passed to `frontmatterPreprocess` as `frontmatter.excerpt`, replacing the `excerpt` key in frontmatter, if there's any
|
|
70
|
-
*
|
|
71
|
-
* @default false
|
|
72
|
-
*/
|
|
73
|
-
excerpt?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Remove custom SFC block
|
|
76
|
-
*
|
|
77
|
-
* @default ['route']
|
|
78
|
-
*/
|
|
79
|
-
customSfcBlocks?: string[];
|
|
80
|
-
/**
|
|
81
|
-
* Options passed to [@mdit-vue/plugin-component](https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-component)
|
|
82
|
-
*/
|
|
83
|
-
componentOptions?: ComponentPluginOptions;
|
|
84
|
-
/**
|
|
85
|
-
* Options passed to [@mdit-vue/plugin-frontmatter](https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-frontmatter)
|
|
86
|
-
*/
|
|
87
|
-
frontmatterOptions?: FrontmatterPluginOptions;
|
|
88
|
-
/**
|
|
89
|
-
* Custom function to provide defaults to the frontmatter and
|
|
90
|
-
* move certain attributes into the "meta" category.
|
|
91
|
-
*
|
|
92
|
-
* Note: _overriding this will remove built-in functionality setting
|
|
93
|
-
* "meta" properties and the built-in "head" support. Do this only
|
|
94
|
-
* if you know what you're doing._
|
|
95
|
-
*/
|
|
96
|
-
frontmatterPreprocess?: (frontmatter: Frontmatter, options: ResolvedOptions) => {
|
|
97
|
-
head: Record<string, any>;
|
|
98
|
-
frontmatter: Frontmatter;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Expose frontmatter via expose API
|
|
102
|
-
*
|
|
103
|
-
* @default true
|
|
104
|
-
*/
|
|
105
|
-
exposeFrontmatter?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Expose excerpt via expose API
|
|
108
|
-
*
|
|
109
|
-
* @default false
|
|
110
|
-
*/
|
|
111
|
-
exposeExcerpt?: boolean;
|
|
112
|
-
/**
|
|
113
|
-
* Add `v-pre` to `<code>` tag to escape curly brackets interpolation
|
|
114
|
-
*
|
|
115
|
-
* @see https://github.com/antfu/vite-plugin-vue-markdown/issues/14
|
|
116
|
-
* @default true
|
|
117
|
-
*/
|
|
118
|
-
escapeCodeTagInterpolation?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Options passed to Markdown It
|
|
121
|
-
*/
|
|
122
|
-
markdownItOptions?: MarkdownIt.Options;
|
|
123
|
-
/**
|
|
124
|
-
* Plugins for Markdown It
|
|
125
|
-
*/
|
|
126
|
-
markdownItUses?: (MarkdownIt.PluginSimple | [MarkdownIt.PluginSimple | MarkdownIt.PluginWithOptions<any>, any] | any)[];
|
|
127
|
-
/**
|
|
128
|
-
* A function providing the Markdown It instance gets the ability to apply custom
|
|
129
|
-
* settings/plugins
|
|
130
|
-
*/
|
|
131
|
-
markdownItSetup?: (MarkdownIt: MarkdownIt) => void;
|
|
132
|
-
/**
|
|
133
|
-
* Class names for wrapper div
|
|
134
|
-
*
|
|
135
|
-
* @default 'markdown-body'
|
|
136
|
-
*/
|
|
137
|
-
wrapperClasses?: string | string[];
|
|
138
|
-
/**
|
|
139
|
-
* Component name to wrapper with
|
|
140
|
-
*
|
|
141
|
-
* @default undefined
|
|
142
|
-
*/
|
|
143
|
-
wrapperComponent?: string | undefined | null;
|
|
144
|
-
/**
|
|
145
|
-
* Custom transformations apply before and after the markdown transformation
|
|
146
|
-
*/
|
|
147
|
-
transforms?: {
|
|
148
|
-
before?: (code: string, id: string) => string;
|
|
149
|
-
after?: (code: string, id: string) => string;
|
|
150
|
-
};
|
|
151
|
-
include?: FilterPattern;
|
|
152
|
-
exclude?: FilterPattern;
|
|
153
|
-
}
|
|
154
|
-
export interface ResolvedOptions extends Required<Options> {
|
|
155
|
-
wrapperClasses: string;
|
|
156
|
-
}
|
|
157
|
-
export interface MarkdownEnv extends MarkdownItEnv {
|
|
158
|
-
id: string;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* **Markdown Options**
|
|
162
|
-
*
|
|
163
|
-
* The Markdown options.
|
|
164
|
-
*
|
|
165
|
-
* @see https://github.com/mdit-vue/vite-plugin-vue-markdown/blob/main/src/types.ts
|
|
166
|
-
*/
|
|
167
|
-
export type MarkdownOptions = Options;
|
package/dist/markdown.mjs
DELETED
|
File without changes
|
package/dist/model.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ZodBoolean as Boolean, ZodDate as Date, ZodNumber as Number, ZodString as String } from 'zod';
|
|
2
|
-
import type { SearchIndexSettings } from './search-engine';
|
|
3
|
-
export interface SeedOptions {
|
|
4
|
-
count: number;
|
|
5
|
-
}
|
|
6
|
-
export interface TimestampOptions {
|
|
7
|
-
createdAt?: string;
|
|
8
|
-
updatedAt?: string;
|
|
9
|
-
deletedAt?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Model.
|
|
13
|
-
*/
|
|
14
|
-
export interface Model {
|
|
15
|
-
name?: string;
|
|
16
|
-
table?: string;
|
|
17
|
-
fields: Fields;
|
|
18
|
-
hasOne?: string;
|
|
19
|
-
hasMany?: string;
|
|
20
|
-
belongsToMany?: string;
|
|
21
|
-
hasThrough?: {
|
|
22
|
-
model: string;
|
|
23
|
-
through: string;
|
|
24
|
-
using: string;
|
|
25
|
-
};
|
|
26
|
-
seedable?: boolean | SeedOptions;
|
|
27
|
-
useSeed?: boolean | SeedOptions;
|
|
28
|
-
searchable?: boolean | SearchIndexSettings;
|
|
29
|
-
useSearch?: boolean | SearchIndexSettings;
|
|
30
|
-
useTimestamps?: boolean | TimestampOptions;
|
|
31
|
-
}
|
|
32
|
-
export interface Fields {
|
|
33
|
-
[key: string]: {
|
|
34
|
-
default?: boolean;
|
|
35
|
-
unique?: boolean;
|
|
36
|
-
required?: boolean;
|
|
37
|
-
factory?: () => any;
|
|
38
|
-
validation?: String | Number | Boolean | Date;
|
|
39
|
-
};
|
|
40
|
-
}
|
package/dist/model.mjs
DELETED
|
File without changes
|