@stacksjs/stx 0.2.155 → 0.2.156
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/a11y.d.ts +87 -46
- package/dist/animation.d.ts +96 -42
- package/dist/appearance-bootstrap.d.ts +49 -15
- package/dist/asset-roots.d.ts +32 -0
- package/dist/asset-roots.js +7 -0
- package/dist/assets.d.ts +9 -7
- package/dist/async-components.d.ts +78 -56
- package/dist/auth.d.ts +3 -0
- package/dist/build-externalize.d.ts +40 -0
- package/dist/build-externalize.js +63 -0
- package/dist/build-id.d.ts +22 -22
- package/dist/build-message.d.ts +73 -2
- package/dist/build-message.js +47 -8
- package/dist/builtins/attrs.d.ts +14 -0
- package/dist/builtins/drawer.d.ts +22 -0
- package/dist/builtins/icon.d.ts +16 -2
- package/dist/builtins/index.d.ts +5 -15
- package/dist/builtins/modal.d.ts +24 -0
- package/dist/builtins/safe-image.d.ts +42 -0
- package/dist/builtins/stx-image.d.ts +27 -0
- package/dist/builtins/stx-link.d.ts +9 -0
- package/dist/builtins/stx-loading-indicator.d.ts +11 -0
- package/dist/builtins/suspense.d.ts +28 -0
- package/dist/builtins/toast.d.ts +17 -0
- package/dist/builtins/transition-group.d.ts +25 -0
- package/dist/caching.d.ts +12 -15
- package/dist/cli.js +1798 -908
- package/dist/client/directive.d.ts +7 -0
- package/dist/client/index.d.ts +0 -1
- package/dist/client-script-bundler.d.ts +63 -5
- package/dist/client-script-bundler.js +30 -2
- package/dist/client-script.d.ts +102 -47
- package/dist/client-script.js +15 -3
- package/dist/codemod.d.ts +56 -0
- package/dist/codemod.js +192 -0
- package/dist/color-mode-boot.d.ts +83 -65
- package/dist/component-client-factories.d.ts +1 -6
- package/dist/component-processing.d.ts +58 -49
- package/dist/component-processing.js +1 -1
- package/dist/component-registry.d.ts +94 -31
- package/dist/component-renderer.d.ts +18 -0
- package/dist/composable-loader.d.ts +24 -0
- package/dist/composable-loader.js +12 -9
- package/dist/composables/index.d.ts +7 -0
- package/dist/composables/index.js +1 -0
- package/dist/composables/use-fetch.js +30 -2
- package/dist/composables/use-form.d.ts +91 -0
- package/dist/composables/use-form.js +112 -0
- package/dist/composables.d.ts +64 -60
- package/dist/computed.d.ts +86 -92
- package/dist/conditionals.d.ts +24 -8
- package/dist/conditionals.js +16 -0
- package/dist/config.d.ts +34 -21
- package/dist/config.js +35 -14
- package/dist/craft.js +1476 -768
- package/dist/crosswind-config.d.ts +58 -0
- package/dist/crosswind-config.js +40 -0
- package/dist/csp.d.ts +107 -41
- package/dist/defer.d.ts +24 -0
- package/dist/dev-server/crosswind.d.ts +35 -26
- package/dist/dev-server/crosswind.js +2 -18
- package/dist/dev-server/serve-app.js +4 -3
- package/dist/dev-server/terminal-colors.d.ts +32 -32
- package/dist/directive-api.d.ts +86 -43
- package/dist/document-shell.d.ts +54 -41
- package/dist/dynamic-components.d.ts +9 -0
- package/dist/error-boundaries.d.ts +47 -41
- package/dist/error-handling.d.ts +1 -1
- package/dist/errors/codes.d.ts +51 -43
- package/dist/errors/formatter.d.ts +58 -38
- package/dist/errors/index.d.ts +5 -61
- package/dist/errors/logger.d.ts +114 -40
- package/dist/errors/sanitizer.d.ts +53 -23
- package/dist/errors/types.d.ts +44 -31
- package/dist/events.d.ts +86 -25
- package/dist/expressions.d.ts +50 -42
- package/dist/forms-validation.d.ts +138 -123
- package/dist/forms-validation.js +1 -90
- package/dist/forms.d.ts +120 -66
- package/dist/forms.js +31 -11
- package/dist/fragment-container.d.ts +57 -0
- package/dist/fragment-container.js +109 -0
- package/dist/framework-composables.d.ts +32 -0
- package/dist/head.d.ts +156 -114
- package/dist/heatmap.d.ts +152 -72
- package/dist/html-masking.d.ts +40 -34
- package/dist/hydration-runtime.d.ts +20 -24
- package/dist/i18n.d.ts +93 -32
- package/dist/image-optimization/auto-sibling.d.ts +32 -4
- package/dist/includes.d.ts +69 -7
- package/dist/index.d.ts +66 -0
- package/dist/index.js +23 -0
- package/dist/internal-markdown.d.ts +12 -8
- package/dist/island-chunking.d.ts +30 -13
- package/dist/keep-alive.d.ts +72 -52
- package/dist/layout-types.d.ts +45 -0
- package/dist/layout-types.js +56 -0
- package/dist/lazy-module.d.ts +10 -0
- package/dist/loops.d.ts +66 -0
- package/dist/loops.js +47 -6
- package/dist/markdown.d.ts +0 -1
- package/dist/media/image/component.d.ts +25 -9
- package/dist/media/image/directive.d.ts +15 -1
- package/dist/media/image/placeholder.d.ts +20 -9
- package/dist/media/image/processor/cache.d.ts +40 -18
- package/dist/media/image/processor/index.d.ts +1 -10
- package/dist/media/image/processor/optimizer.d.ts +12 -1
- package/dist/media/image/processor/responsive.d.ts +16 -6
- package/dist/media/image/srcset.d.ts +47 -50
- package/dist/media/shared/cache.d.ts +51 -31
- package/dist/media/shared/hash.d.ts +7 -0
- package/dist/media/types.d.ts +1235 -754
- package/dist/media/video/directive.d.ts +15 -1
- package/dist/media/video/index.d.ts +39 -17
- package/dist/media/video/processor/cache.d.ts +42 -19
- package/dist/media/video/processor/index.d.ts +1 -18
- package/dist/media/video/processor/streaming.d.ts +17 -10
- package/dist/media/video/processor/thumbnail.d.ts +21 -15
- package/dist/media/video/processor/transcoder.d.ts +11 -1
- package/dist/method-spoofing.d.ts +7 -0
- package/dist/middleware.d.ts +60 -0
- package/dist/owned-routes.d.ts +42 -0
- package/dist/owned-routes.js +26 -0
- package/dist/page-meta.d.ts +38 -0
- package/dist/page-meta.js +16 -0
- package/dist/parser/directive-parser.d.ts +57 -45
- package/dist/parser/expression-parser.d.ts +33 -35
- package/dist/parser/index.d.ts +4 -39
- package/dist/parser/tokenizer.d.ts +61 -49
- package/dist/partial-hydration.d.ts +82 -50
- package/dist/performance-utils.d.ts +217 -124
- package/dist/placeholder.d.ts +18 -9
- package/dist/plugin-system.d.ts +264 -115
- package/dist/process.d.ts +11 -6
- package/dist/process.js +21 -4
- package/dist/production-builder.js +7 -0
- package/dist/prop-sentinels.d.ts +11 -11
- package/dist/public-env.d.ts +14 -0
- package/dist/pwa/directives.d.ts +12 -3
- package/dist/pwa/inject.d.ts +10 -0
- package/dist/pwa/precache.d.ts +22 -16
- package/dist/pwa/service-worker.d.ts +12 -0
- package/dist/pwa.js +1318 -610
- package/dist/reactive-bindings.d.ts +34 -11
- package/dist/reactive.d.ts +58 -30
- package/dist/reactive.js +56 -31
- package/dist/render.js +1 -0
- package/dist/route-middleware.d.ts +2 -35
- package/dist/route-types.d.ts +134 -0
- package/dist/route-types.js +24 -0
- package/dist/router.d.ts +5 -7
- package/dist/routes.d.ts +1 -3
- package/dist/runtime-globals.d.ts +147 -24
- package/dist/runtime-globals.js +16 -1
- package/dist/runtime-injection.d.ts +8 -0
- package/dist/runtime-injection.js +33 -24
- package/dist/script-emit.d.ts +30 -0
- package/dist/script-json.d.ts +36 -0
- package/dist/script-json.js +6 -0
- package/dist/script-validation.d.ts +21 -4
- package/dist/seo.d.ts +118 -47
- package/dist/server-bindings.d.ts +21 -0
- package/dist/sfc-template.d.ts +8 -8
- package/dist/signal-processing.d.ts +35 -15
- package/dist/signals-api.d.ts +117 -58
- package/dist/signals-api.js +7 -4
- package/dist/signals.d.ts +24 -17
- package/dist/signals.js +765 -60
- package/dist/site-builder/build.js +8 -0
- package/dist/site-url.d.ts +46 -0
- package/dist/site-url.js +70 -0
- package/dist/slots.d.ts +86 -20
- package/dist/source-signature.d.ts +45 -0
- package/dist/source-signature.js +20 -0
- package/dist/ssg.d.ts +285 -142
- package/dist/ssg.js +1268 -556
- package/dist/state-dir.d.ts +4 -4
- package/dist/state-management.d.ts +0 -12
- package/dist/state-management.js +8 -25
- package/dist/store-imports.d.ts +23 -0
- package/dist/store-imports.js +3 -0
- package/dist/store-loader.d.ts +10 -0
- package/dist/store-loader.js +10 -9
- package/dist/story/analytics.d.ts +138 -60
- package/dist/story/bookmarks.d.ts +87 -34
- package/dist/story/cli.d.ts +123 -69
- package/dist/story/collect/scanner.d.ts +4 -0
- package/dist/story/collect/tree.d.ts +8 -1
- package/dist/story/commands/build.d.ts +11 -6
- package/dist/story/commands/dev.d.ts +15 -8
- package/dist/story/commands/preview.d.ts +13 -7
- package/dist/story/config-watcher.d.ts +20 -13
- package/dist/story/config.d.ts +11 -8
- package/dist/story/context.d.ts +14 -8
- package/dist/story/hmr.d.ts +24 -26
- package/dist/story/hot-swap.d.ts +34 -23
- package/dist/story/keyboard-shortcuts.d.ts +23 -18
- package/dist/story/output.d.ts +46 -44
- package/dist/story/performance.d.ts +107 -45
- package/dist/story/presets.d.ts +107 -41
- package/dist/story/renderer.d.ts +41 -27
- package/dist/story/search.d.ts +23 -12
- package/dist/story/server.d.ts +21 -11
- package/dist/story/setup.d.ts +23 -15
- package/dist/story/testing.d.ts +65 -40
- package/dist/story/types.d.ts +262 -160
- package/dist/streaming.d.ts +119 -57
- package/dist/stx-virtual-ts.d.ts +165 -0
- package/dist/stx-virtual-ts.js +372 -0
- package/dist/stx.d.ts +78 -1
- package/dist/style-scoping.d.ts +17 -4
- package/dist/suspense.d.ts +67 -52
- package/dist/teleport.d.ts +22 -0
- package/dist/template-tag-balance.d.ts +22 -6
- package/dist/transitions.d.ts +66 -55
- package/dist/typecheck.d.ts +77 -0
- package/dist/typecheck.js +156 -0
- package/dist/types/component-types.d.ts +187 -122
- package/dist/types/config-types.d.ts +758 -297
- package/dist/types/context-types.d.ts +46 -24
- package/dist/types/csp-types.d.ts +70 -66
- package/dist/types/directive-types.d.ts +211 -155
- package/dist/types/index.d.ts +6 -109
- package/dist/types/pwa-types.d.ts +273 -148
- package/dist/types.d.ts +0 -1
- package/dist/typescript-templates.d.ts +11 -0
- package/dist/unresolved-identifiers.d.ts +24 -22
- package/dist/unresolved-identifiers.js +2 -0
- package/dist/utils.d.ts +24 -21
- package/dist/validator.d.ts +28 -26
- package/dist/variable-extractor.d.ts +48 -13
- package/dist/variable-extractor.js +27 -4
- package/dist/view-composers.d.ts +80 -81
- package/dist/virtual-scrolling.d.ts +101 -81
- package/dist/vue-template.d.ts +23 -0
- package/dist/web-components/css-scoping.d.ts +21 -11
- package/dist/web-components.d.ts +81 -58
- package/dist/x-element.d.ts +0 -1
- package/package.json +5 -5
- package/stx.d.ts +78 -1
|
@@ -1,11 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component System Types
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Prop type definition for component prop validation
|
|
6
|
+
*/
|
|
7
|
+
export type PropType = 'string' | 'number' | 'boolean' | 'array' | 'object' | 'function' | 'any';
|
|
1
8
|
/**
|
|
2
9
|
* Component prop definition for validation
|
|
3
10
|
*/
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
export interface PropDefinition {
|
|
12
|
+
/** Type of the prop */
|
|
13
|
+
type: PropType | PropType[];
|
|
14
|
+
/** Whether the prop is required */
|
|
15
|
+
required?: boolean;
|
|
16
|
+
/** Default value if not provided */
|
|
17
|
+
default?: unknown;
|
|
18
|
+
/** Custom validator function */
|
|
19
|
+
validator?: (value: unknown) => boolean;
|
|
9
20
|
}
|
|
10
21
|
/**
|
|
11
22
|
* Component props schema for validation
|
|
@@ -19,165 +30,219 @@ export declare interface PropDefinition {
|
|
|
19
30
|
* }
|
|
20
31
|
* ```
|
|
21
32
|
*/
|
|
22
|
-
export
|
|
23
|
-
|
|
33
|
+
export interface ComponentPropsSchema {
|
|
34
|
+
[propName: string]: PropDefinition;
|
|
24
35
|
}
|
|
25
36
|
/**
|
|
26
37
|
* Component definition with metadata
|
|
27
38
|
*/
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
39
|
+
export interface ComponentDefinition {
|
|
40
|
+
/** Component name */
|
|
41
|
+
name: string;
|
|
42
|
+
/** Path to component file */
|
|
43
|
+
path?: string;
|
|
44
|
+
/** Props schema for validation */
|
|
45
|
+
props?: ComponentPropsSchema;
|
|
46
|
+
/** Component description for documentation */
|
|
47
|
+
description?: string;
|
|
33
48
|
}
|
|
34
49
|
/**
|
|
35
50
|
* Component configuration
|
|
36
51
|
*/
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
52
|
+
export interface ComponentConfig {
|
|
53
|
+
/** Enable prop validation */
|
|
54
|
+
validateProps?: boolean;
|
|
55
|
+
/** Component definitions for prop validation */
|
|
56
|
+
components?: Record<string, ComponentDefinition>;
|
|
40
57
|
}
|
|
41
58
|
/**
|
|
42
59
|
* Web component definition
|
|
43
60
|
*/
|
|
44
|
-
export
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
export interface WebComponent {
|
|
62
|
+
/** Name of the web component class */
|
|
63
|
+
name: string;
|
|
64
|
+
/** HTML tag to register (must include a hyphen) */
|
|
65
|
+
tag: string;
|
|
66
|
+
/** Path to the stx component file to convert */
|
|
67
|
+
file: string;
|
|
68
|
+
/** Optional element to extend (default: HTMLElement) */
|
|
69
|
+
extends?: string;
|
|
70
|
+
/** Whether to use shadow DOM (default: true) */
|
|
71
|
+
shadowDOM?: boolean;
|
|
72
|
+
/** Whether to use a template element (default: true) */
|
|
73
|
+
template?: boolean;
|
|
74
|
+
/** Path to an external stylesheet to link */
|
|
75
|
+
styleSource?: string;
|
|
76
|
+
/** List of attributes to observe */
|
|
77
|
+
attributes?: string[];
|
|
78
|
+
/** Description of the component for documentation */
|
|
79
|
+
description?: string;
|
|
80
|
+
/** Output format: 'js' (default) or 'ts' for TypeScript */
|
|
81
|
+
outputFormat?: 'js' | 'ts';
|
|
82
|
+
/** Type definitions for observed attributes (for TypeScript output) */
|
|
83
|
+
attributeTypes?: Record<string, 'string' | 'number' | 'boolean' | 'object'>;
|
|
56
84
|
}
|
|
57
85
|
/**
|
|
58
86
|
* Web components configuration
|
|
59
87
|
*/
|
|
60
|
-
export
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
88
|
+
export interface WebComponentConfig {
|
|
89
|
+
/** Enable web component integration */
|
|
90
|
+
enabled: boolean;
|
|
91
|
+
/** Directory to output web components */
|
|
92
|
+
outputDir: string;
|
|
93
|
+
/** Web components to build */
|
|
94
|
+
components: WebComponent[];
|
|
64
95
|
}
|
|
65
96
|
/** Reactive property emitted by the component-library compiler. */
|
|
66
|
-
export
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
97
|
+
export interface ComponentLibraryProperty {
|
|
98
|
+
type: 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
99
|
+
default?: unknown;
|
|
100
|
+
required?: boolean;
|
|
101
|
+
reflect?: boolean;
|
|
102
|
+
attribute?: string | false;
|
|
103
|
+
description?: string;
|
|
73
104
|
}
|
|
74
105
|
/** Public custom event emitted by a compiled component. */
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
|
|
106
|
+
export interface ComponentLibraryEvent {
|
|
107
|
+
description?: string;
|
|
108
|
+
detailType?: string;
|
|
78
109
|
}
|
|
79
110
|
/** One .stx source entry in a component-library build. */
|
|
80
|
-
export
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
111
|
+
export interface ComponentLibraryComponent {
|
|
112
|
+
file: string;
|
|
113
|
+
name?: string;
|
|
114
|
+
tag?: string;
|
|
115
|
+
description?: string;
|
|
116
|
+
shadowDOM?: boolean | 'open' | 'closed';
|
|
117
|
+
progressive?: boolean;
|
|
118
|
+
properties?: Record<string, ComponentLibraryProperty>;
|
|
119
|
+
events?: Record<string, ComponentLibraryEvent>;
|
|
120
|
+
methods?: Record<string, string>;
|
|
90
121
|
}
|
|
91
122
|
/** Build configuration for a standards-based web component library. */
|
|
92
|
-
export
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
123
|
+
export interface ComponentLibraryConfig {
|
|
124
|
+
/** Directory recursively scanned for .stx files. */
|
|
125
|
+
inputDir: string;
|
|
126
|
+
/** Build output directory. */
|
|
127
|
+
outputDir: string;
|
|
128
|
+
/** Prefix used for inferred custom-element tags. Defaults to "stx". */
|
|
129
|
+
prefix?: string;
|
|
130
|
+
/** Explicit entries. When omitted, every .stx file is discovered. */
|
|
131
|
+
components?: ComponentLibraryComponent[];
|
|
132
|
+
/** Default rendering mode. Light DOM is the progressive default. */
|
|
133
|
+
shadowDOM?: boolean | 'open' | 'closed';
|
|
134
|
+
/** Preserve server-rendered markup until a reactive update. */
|
|
135
|
+
progressive?: boolean;
|
|
136
|
+
/** Generate custom-elements.json. */
|
|
137
|
+
manifest?: boolean;
|
|
138
|
+
/** Generate per-component, JSX, and index declarations. */
|
|
139
|
+
declarations?: boolean;
|
|
140
|
+
/** Generate per-component and bundled CSS. */
|
|
141
|
+
css?: boolean;
|
|
142
|
+
/** Generate a single tree-shakeable ESM bundle. */
|
|
143
|
+
bundle?: boolean;
|
|
144
|
+
/** Minify JavaScript and CSS output. */
|
|
145
|
+
minify?: boolean;
|
|
146
|
+
/** Generate source maps for bundle.js. */
|
|
147
|
+
sourcemap?: boolean | 'inline' | 'external';
|
|
148
|
+
}
|
|
149
|
+
export interface ComponentLibraryBuildResult {
|
|
150
|
+
components: Array<{
|
|
151
|
+
name: string;
|
|
152
|
+
tag: string;
|
|
153
|
+
source: string;
|
|
154
|
+
module: string;
|
|
155
|
+
}>;
|
|
156
|
+
files: string[];
|
|
157
|
+
manifest?: string;
|
|
158
|
+
bundle?: string;
|
|
159
|
+
cssBundle?: string;
|
|
160
|
+
totalBytes: number;
|
|
118
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Documentation format options
|
|
164
|
+
*/
|
|
165
|
+
export type DocFormat = 'markdown' | 'html' | 'json';
|
|
119
166
|
/**
|
|
120
167
|
* Component property documentation
|
|
121
168
|
*/
|
|
122
|
-
export
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
169
|
+
export interface ComponentPropDoc {
|
|
170
|
+
/** Name of the property */
|
|
171
|
+
name: string;
|
|
172
|
+
/** Type of the property (e.g., string, number, boolean) */
|
|
173
|
+
type?: string;
|
|
174
|
+
/** Whether the property is required */
|
|
175
|
+
required?: boolean;
|
|
176
|
+
/** Default value if any */
|
|
177
|
+
default?: string;
|
|
178
|
+
/** Description of the property */
|
|
179
|
+
description?: string;
|
|
128
180
|
}
|
|
129
181
|
/**
|
|
130
182
|
* Component documentation
|
|
131
183
|
*/
|
|
132
|
-
export
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
184
|
+
export interface ComponentDoc {
|
|
185
|
+
/** Name of the component */
|
|
186
|
+
name: string;
|
|
187
|
+
/** File path */
|
|
188
|
+
path: string;
|
|
189
|
+
/** Component description */
|
|
190
|
+
description?: string;
|
|
191
|
+
/** Component properties/attributes */
|
|
192
|
+
props: ComponentPropDoc[];
|
|
193
|
+
/** Example usage */
|
|
194
|
+
example?: string;
|
|
195
|
+
/** Whether this is a web component */
|
|
196
|
+
isWebComponent?: boolean;
|
|
197
|
+
/** HTML tag if it's a web component */
|
|
198
|
+
tag?: string;
|
|
140
199
|
}
|
|
141
200
|
/**
|
|
142
201
|
* Template documentation
|
|
143
202
|
*/
|
|
144
|
-
export
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
203
|
+
export interface TemplateDoc {
|
|
204
|
+
/** Template name */
|
|
205
|
+
name: string;
|
|
206
|
+
/** File path */
|
|
207
|
+
path: string;
|
|
208
|
+
/** Description */
|
|
209
|
+
description?: string;
|
|
210
|
+
/** Used components */
|
|
211
|
+
components?: string[];
|
|
212
|
+
/** Used directives */
|
|
213
|
+
directives?: string[];
|
|
150
214
|
}
|
|
151
215
|
/**
|
|
152
216
|
* Directive documentation
|
|
153
217
|
*/
|
|
154
|
-
export
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
218
|
+
export interface DirectiveDoc {
|
|
219
|
+
/** Directive name */
|
|
220
|
+
name: string;
|
|
221
|
+
/** Description */
|
|
222
|
+
description?: string;
|
|
223
|
+
/** Has end tag */
|
|
224
|
+
hasEndTag: boolean;
|
|
225
|
+
/** Example usage */
|
|
226
|
+
example?: string;
|
|
159
227
|
}
|
|
160
228
|
/**
|
|
161
229
|
* Documentation generator configuration
|
|
162
230
|
*/
|
|
163
|
-
export
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
231
|
+
export interface DocGeneratorConfig {
|
|
232
|
+
/** Enable documentation generation */
|
|
233
|
+
enabled: boolean;
|
|
234
|
+
/** Output directory for documentation */
|
|
235
|
+
outputDir: string;
|
|
236
|
+
/** Format of generated documentation */
|
|
237
|
+
format: DocFormat;
|
|
238
|
+
/** Generate docs for components */
|
|
239
|
+
components: boolean;
|
|
240
|
+
/** Generate docs for templates */
|
|
241
|
+
templates: boolean;
|
|
242
|
+
/** Generate docs for directives */
|
|
243
|
+
directives: boolean;
|
|
244
|
+
/** Extra content to include in documentation */
|
|
245
|
+
extraContent?: string;
|
|
246
|
+
/** Custom template for documentation */
|
|
247
|
+
template?: string;
|
|
172
248
|
}
|
|
173
|
-
/**
|
|
174
|
-
* Component System Types
|
|
175
|
-
*/
|
|
176
|
-
/**
|
|
177
|
-
* Prop type definition for component prop validation
|
|
178
|
-
*/
|
|
179
|
-
export type PropType = 'string' | 'number' | 'boolean' | 'array' | 'object' | 'function' | 'any';
|
|
180
|
-
/**
|
|
181
|
-
* Documentation format options
|
|
182
|
-
*/
|
|
183
|
-
export type DocFormat = 'markdown' | 'html' | 'json';
|