@wervt/nuxt 0.2.15 → 0.3.0
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 -1
- package/dist/dev.d.ts +5 -0
- package/dist/dev.js +23 -3
- package/dist/module.js +50 -7
- package/dist/provision.d.ts +5 -1
- package/dist/provision.js +12 -1
- package/dist/route-tools.js +44 -0
- package/dist/runtime/app/useShape.d.ts +32 -11
- package/dist/runtime/app/useShape.js +104 -42
- package/dist/runtime/email/components.d.ts +71 -10
- package/dist/runtime/email/components.js +445 -98
- package/dist/runtime/email/render.js +4 -0
- package/dist/runtime/server/index.d.ts +5 -3
- package/dist/runtime/server/index.js +4 -3
- package/dist/runtime/server/mcp.js +2 -6
- package/dist/runtime/server/seed.d.ts +18 -0
- package/dist/runtime/server/seed.js +27 -0
- package/dist/runtime/server/shape.d.ts +12 -5
- package/dist/runtime/server/shape.js +3 -1
- package/dist/runtime/server/tool-handlers.d.ts +5 -0
- package/dist/runtime/server/tool-handlers.js +37 -13
- package/dist/runtime/server/tools.d.ts +36 -0
- package/dist/runtime/server/tools.js +53 -1
- package/dist/runtime/server/validate.d.ts +1 -0
- package/dist/runtime/server/validate.js +1 -1
- package/dist/runtime/shared/shape.d.ts +18 -0
- package/dist/runtime/shared/shape.js +16 -0
- package/dist/seed.js +52 -0
- package/dist/shapes.js +70 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionKey } from "vue";
|
|
1
|
+
import { InjectionKey, PropType } from "vue";
|
|
2
2
|
//#region src/runtime/email/components.d.ts
|
|
3
3
|
/** The template's subject, handed to renderEmail() while rendering. */
|
|
4
4
|
export declare const SUBJECT_KEY: InjectionKey<(subject: string) => void>;
|
|
@@ -6,19 +6,31 @@ export declare const emailTheme: {
|
|
|
6
6
|
page: string;
|
|
7
7
|
card: string;
|
|
8
8
|
border: string;
|
|
9
|
+
rule: string;
|
|
9
10
|
text: string;
|
|
10
11
|
highlighted: string;
|
|
11
12
|
muted: string;
|
|
12
13
|
dimmed: string;
|
|
14
|
+
accent: string;
|
|
15
|
+
accentSoft: string;
|
|
16
|
+
accentBorder: string;
|
|
17
|
+
band: string;
|
|
18
|
+
bandText: string;
|
|
19
|
+
bandDimmed: string;
|
|
13
20
|
button: string;
|
|
14
21
|
buttonText: string;
|
|
15
22
|
codeBackground: string;
|
|
16
23
|
radius: string;
|
|
17
24
|
font: string;
|
|
18
25
|
mono: string;
|
|
26
|
+
/** Where the logo images live. PNG, because Gmail and Outlook don't show SVG. */
|
|
27
|
+
assets: string;
|
|
28
|
+
site: string;
|
|
29
|
+
docs: string;
|
|
19
30
|
};
|
|
20
31
|
/**
|
|
21
|
-
* The whole email: document, preheader,
|
|
32
|
+
* The whole email: document, preheader, header with the logo, body and footer. Put it at the
|
|
33
|
+
* root of every template.
|
|
22
34
|
*
|
|
23
35
|
* ```vue
|
|
24
36
|
* <WervtEmail subject="Your code" app="kontor"> … </WervtEmail>
|
|
@@ -30,7 +42,7 @@ export declare const WervtEmail: import("vue").DefineComponent<import("vue").Ext
|
|
|
30
42
|
type: StringConstructor;
|
|
31
43
|
required: true;
|
|
32
44
|
};
|
|
33
|
-
/**
|
|
45
|
+
/** The app that sends the mail, shown in the header and the footer. */
|
|
34
46
|
app: {
|
|
35
47
|
type: StringConstructor;
|
|
36
48
|
default: string;
|
|
@@ -40,11 +52,16 @@ export declare const WervtEmail: import("vue").DefineComponent<import("vue").Ext
|
|
|
40
52
|
type: StringConstructor;
|
|
41
53
|
default: string;
|
|
42
54
|
};
|
|
43
|
-
/** Replaces the footer
|
|
55
|
+
/** Replaces the footer's "Sent by <app> via wervt" line. */
|
|
44
56
|
footer: {
|
|
45
57
|
type: StringConstructor;
|
|
46
58
|
default: string;
|
|
47
59
|
};
|
|
60
|
+
/** Why the recipient got this mail, shown small in the footer. */
|
|
61
|
+
reason: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
48
65
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
49
66
|
[key: string]: any;
|
|
50
67
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -53,7 +70,7 @@ export declare const WervtEmail: import("vue").DefineComponent<import("vue").Ext
|
|
|
53
70
|
type: StringConstructor;
|
|
54
71
|
required: true;
|
|
55
72
|
};
|
|
56
|
-
/**
|
|
73
|
+
/** The app that sends the mail, shown in the header and the footer. */
|
|
57
74
|
app: {
|
|
58
75
|
type: StringConstructor;
|
|
59
76
|
default: string;
|
|
@@ -63,19 +80,39 @@ export declare const WervtEmail: import("vue").DefineComponent<import("vue").Ext
|
|
|
63
80
|
type: StringConstructor;
|
|
64
81
|
default: string;
|
|
65
82
|
};
|
|
66
|
-
/** Replaces the footer
|
|
83
|
+
/** Replaces the footer's "Sent by <app> via wervt" line. */
|
|
67
84
|
footer: {
|
|
68
85
|
type: StringConstructor;
|
|
69
86
|
default: string;
|
|
70
87
|
};
|
|
88
|
+
/** Why the recipient got this mail, shown small in the footer. */
|
|
89
|
+
reason: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
71
93
|
}>> & Readonly<{}>, {
|
|
72
94
|
app: string;
|
|
73
95
|
preview: string;
|
|
74
96
|
footer: string;
|
|
97
|
+
reason: string;
|
|
75
98
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
76
|
-
export declare const EmailHeading: import("vue").DefineComponent<
|
|
99
|
+
export declare const EmailHeading: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
100
|
+
/** A short label above the heading, in the landing page's mono eyebrow style. */
|
|
101
|
+
eyebrow: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
}>, () => (import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
77
106
|
[key: string]: any;
|
|
78
|
-
}
|
|
107
|
+
}> | null)[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
108
|
+
/** A short label above the heading, in the landing page's mono eyebrow style. */
|
|
109
|
+
eyebrow: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
}>> & Readonly<{}>, {
|
|
114
|
+
eyebrow: string;
|
|
115
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
79
116
|
export declare const EmailText: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
80
117
|
[key: string]: any;
|
|
81
118
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -102,6 +139,11 @@ export declare const EmailButton: import("vue").DefineComponent<import("vue").Ex
|
|
|
102
139
|
type: StringConstructor;
|
|
103
140
|
required: true;
|
|
104
141
|
};
|
|
142
|
+
/** `primary` is the landing page's blue; `neutral` the dashboard's black. */
|
|
143
|
+
color: {
|
|
144
|
+
type: PropType<'primary' | 'neutral'>;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
105
147
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
106
148
|
[key: string]: any;
|
|
107
149
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -109,13 +151,25 @@ export declare const EmailButton: import("vue").DefineComponent<import("vue").Ex
|
|
|
109
151
|
type: StringConstructor;
|
|
110
152
|
required: true;
|
|
111
153
|
};
|
|
112
|
-
|
|
154
|
+
/** `primary` is the landing page's blue; `neutral` the dashboard's black. */
|
|
155
|
+
color: {
|
|
156
|
+
type: PropType<'primary' | 'neutral'>;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
}>> & Readonly<{}>, {
|
|
160
|
+
color: "neutral" | "primary";
|
|
161
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
113
162
|
/** A one-time code, large and spaced so it reads (and copies) easily. */
|
|
114
163
|
export declare const EmailCode: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
115
164
|
code: {
|
|
116
165
|
type: StringConstructor;
|
|
117
166
|
required: true;
|
|
118
167
|
};
|
|
168
|
+
/** A small line under the code, e.g. when it expires. */
|
|
169
|
+
caption: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
119
173
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
120
174
|
[key: string]: any;
|
|
121
175
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -123,7 +177,14 @@ export declare const EmailCode: import("vue").DefineComponent<import("vue").Extr
|
|
|
123
177
|
type: StringConstructor;
|
|
124
178
|
required: true;
|
|
125
179
|
};
|
|
126
|
-
|
|
180
|
+
/** A small line under the code, e.g. when it expires. */
|
|
181
|
+
caption: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
default: string;
|
|
184
|
+
};
|
|
185
|
+
}>> & Readonly<{}>, {
|
|
186
|
+
caption: string;
|
|
187
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
127
188
|
export declare const EmailDivider: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
128
189
|
[key: string]: any;
|
|
129
190
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|