@stephenchenorg/astro 8.0.0 → 8.1.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/dist/company-setting/index.d.ts +2 -2
- package/dist/form-validator/index.d.ts +9 -9
- package/dist/form-validator/index.js +1 -1
- package/dist/image/index.d.ts +4 -4
- package/dist/page/index.d.ts +3 -3
- package/dist/pagination-vue-server-side/index.d.ts +11 -11
- package/dist/query-params/index.d.ts +2 -2
- package/package.json +9 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as graphql0 from "graphql";
|
|
2
2
|
|
|
3
3
|
//#region src/company-setting/types.d.ts
|
|
4
4
|
interface DataCompanySetting {
|
|
@@ -42,6 +42,6 @@ declare function createCompanySetting(companySetting: Partial<CompanySetting>):
|
|
|
42
42
|
};
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/company-setting/fragments.d.ts
|
|
45
|
-
declare const companySettingFields:
|
|
45
|
+
declare const companySettingFields: graphql0.DocumentNode;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { CompanySetting, DataCompanySetting, companySettingFields, createCompanySetting };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue5 from "vue";
|
|
2
2
|
import { PropType } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/form-validator/types.d.ts
|
|
@@ -23,7 +23,7 @@ declare class FormValidator {
|
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/form-validator/components/FormField.d.ts
|
|
26
|
-
declare const FormField:
|
|
26
|
+
declare const FormField: vue5.DefineComponent<vue5.ExtractPropTypes<{
|
|
27
27
|
id: {
|
|
28
28
|
type: StringConstructor;
|
|
29
29
|
required: true;
|
|
@@ -32,9 +32,9 @@ declare const FormField: vue33.DefineComponent<vue33.ExtractPropTypes<{
|
|
|
32
32
|
type: PropType<FormRule[]>;
|
|
33
33
|
default: () => never[];
|
|
34
34
|
};
|
|
35
|
-
}>, () =>
|
|
35
|
+
}>, () => vue5.VNode<vue5.RendererNode, vue5.RendererElement, {
|
|
36
36
|
[key: string]: any;
|
|
37
|
-
}>[] | undefined, {}, {}, {},
|
|
37
|
+
}>[] | undefined, {}, {}, {}, vue5.ComponentOptionsMixin, vue5.ComponentOptionsMixin, {}, string, vue5.PublicProps, Readonly<vue5.ExtractPropTypes<{
|
|
38
38
|
id: {
|
|
39
39
|
type: StringConstructor;
|
|
40
40
|
required: true;
|
|
@@ -45,27 +45,27 @@ declare const FormField: vue33.DefineComponent<vue33.ExtractPropTypes<{
|
|
|
45
45
|
};
|
|
46
46
|
}>> & Readonly<{}>, {
|
|
47
47
|
rules: FormRule[];
|
|
48
|
-
}, {}, {}, {}, string,
|
|
48
|
+
}, {}, {}, {}, string, vue5.ComponentProvideOptions, true, {}, any>;
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/form-validator/components/FormValidatorProvider.d.ts
|
|
51
51
|
interface FormValidatorProviderExposed {
|
|
52
52
|
formValidator: () => FormValidator;
|
|
53
53
|
}
|
|
54
|
-
declare const FormValidatorProvider:
|
|
54
|
+
declare const FormValidatorProvider: vue5.DefineComponent<vue5.ExtractPropTypes<{
|
|
55
55
|
errors: {
|
|
56
56
|
type: PropType<FormErrors>;
|
|
57
57
|
default: () => {};
|
|
58
58
|
};
|
|
59
|
-
}>, () =>
|
|
59
|
+
}>, () => vue5.VNode<vue5.RendererNode, vue5.RendererElement, {
|
|
60
60
|
[key: string]: any;
|
|
61
|
-
}>[] | undefined, {}, {}, {},
|
|
61
|
+
}>[] | undefined, {}, {}, {}, vue5.ComponentOptionsMixin, vue5.ComponentOptionsMixin, {}, string, vue5.PublicProps, Readonly<vue5.ExtractPropTypes<{
|
|
62
62
|
errors: {
|
|
63
63
|
type: PropType<FormErrors>;
|
|
64
64
|
default: () => {};
|
|
65
65
|
};
|
|
66
66
|
}>> & Readonly<{}>, {
|
|
67
67
|
errors: FormErrors;
|
|
68
|
-
}, {}, {}, {}, string,
|
|
68
|
+
}, {}, {}, {}, string, vue5.ComponentProvideOptions, true, {}, any>;
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/form-validator/useFormValidator.d.ts
|
|
71
71
|
declare function useFormValidator(): FormValidator;
|
|
@@ -100,7 +100,7 @@ const FormValidatorProvider = defineComponent({
|
|
|
100
100
|
formValidator.setErrors(props.errors);
|
|
101
101
|
}, { deep: true });
|
|
102
102
|
expose({ formValidator: () => formValidator });
|
|
103
|
-
return () => slots.default?.();
|
|
103
|
+
return () => slots.default?.({ errors: formValidator.errors });
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
var FormValidatorProvider_default = FormValidatorProvider;
|
package/dist/image/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as graphql0 from "graphql";
|
|
2
2
|
|
|
3
3
|
//#region src/image/fragments.d.ts
|
|
4
|
-
declare const imageFields:
|
|
5
|
-
declare const coverFields:
|
|
6
|
-
declare const backgroundFields:
|
|
4
|
+
declare const imageFields: graphql0.DocumentNode;
|
|
5
|
+
declare const coverFields: graphql0.DocumentNode;
|
|
6
|
+
declare const backgroundFields: graphql0.DocumentNode;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/image/types.d.ts
|
|
9
9
|
interface ImageSource {
|
package/dist/page/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as graphql3 from "graphql";
|
|
2
2
|
|
|
3
3
|
//#region src/page/field/fragments.d.ts
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import * as graphql44 from "graphql";
|
|
|
6
6
|
* Page fields fragment requires explicit import image
|
|
7
7
|
* fields fragment `imageFields` from Image module.
|
|
8
8
|
*/
|
|
9
|
-
declare const pageFields:
|
|
9
|
+
declare const pageFields: graphql3.DocumentNode;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/page/types.d.ts
|
|
12
12
|
interface DataPage {
|
|
@@ -88,7 +88,7 @@ declare function pageTextField(fields: PageField[], key: string): string | null;
|
|
|
88
88
|
declare function pageImageFieldForBackground(fields: PageField[], key: string): string;
|
|
89
89
|
//#endregion
|
|
90
90
|
//#region src/page/seo-meta/fragments.d.ts
|
|
91
|
-
declare const seoMetaFields: (dummyClass: string) =>
|
|
91
|
+
declare const seoMetaFields: (dummyClass: string) => graphql3.DocumentNode;
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/page/seo-meta/helpers.d.ts
|
|
94
94
|
type UseSeoMetaOptions = Partial<Omit<PageMeta, 'title'>> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue25 from "vue";
|
|
2
2
|
import { MaybeRefOrGetter } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/pagination-vue-server-side/types.d.ts
|
|
@@ -16,16 +16,16 @@ declare function usePagination(options: {
|
|
|
16
16
|
perPage?: MaybeRefOrGetter<number | undefined>;
|
|
17
17
|
visiblePages?: MaybeRefOrGetter<number | undefined>;
|
|
18
18
|
}): {
|
|
19
|
-
items:
|
|
20
|
-
showPagination:
|
|
21
|
-
canFirst:
|
|
22
|
-
canPrev:
|
|
23
|
-
canNext:
|
|
24
|
-
canLast:
|
|
25
|
-
firstUrl:
|
|
26
|
-
prevUrl:
|
|
27
|
-
nextUrl:
|
|
28
|
-
lastUrl:
|
|
19
|
+
items: vue25.ComputedRef<number[]>;
|
|
20
|
+
showPagination: vue25.ComputedRef<boolean>;
|
|
21
|
+
canFirst: vue25.ComputedRef<boolean>;
|
|
22
|
+
canPrev: vue25.ComputedRef<boolean>;
|
|
23
|
+
canNext: vue25.ComputedRef<boolean>;
|
|
24
|
+
canLast: vue25.ComputedRef<boolean>;
|
|
25
|
+
firstUrl: vue25.ComputedRef<string>;
|
|
26
|
+
prevUrl: vue25.ComputedRef<string>;
|
|
27
|
+
nextUrl: vue25.ComputedRef<string>;
|
|
28
|
+
lastUrl: vue25.ComputedRef<string>;
|
|
29
29
|
getUrl: (page: number) => string;
|
|
30
30
|
};
|
|
31
31
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as nanostores0 from "nanostores";
|
|
2
2
|
import qs from "query-string";
|
|
3
3
|
|
|
4
4
|
//#region src/query-params/types.d.ts
|
|
@@ -13,7 +13,7 @@ interface UrlConfig {
|
|
|
13
13
|
declare function createUrlConfig(config: UrlConfig): UrlConfig;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/query-params/store.d.ts
|
|
16
|
-
declare const urlConfigStore:
|
|
16
|
+
declare const urlConfigStore: nanostores0.PreinitializedWritableAtom<UrlConfig> & object;
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/query-params/url.d.ts
|
|
19
19
|
declare global {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stephenchenorg/astro",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.1.0",
|
|
5
5
|
"description": "Stephenchenorg Astro 前端通用套件",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://stephenchenorg-astro.netlify.app",
|
|
@@ -104,14 +104,15 @@
|
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@astrojs/check": "^0.9.4",
|
|
106
106
|
"@astrojs/vue": "^5.1.0",
|
|
107
|
-
"@ycs77/eslint-config": "^
|
|
108
|
-
"astro": "^5.
|
|
109
|
-
"bumpp": "^10.2.
|
|
110
|
-
"eslint": "^9.
|
|
107
|
+
"@ycs77/eslint-config": "^5.0.0",
|
|
108
|
+
"astro": "^5.13.4",
|
|
109
|
+
"bumpp": "^10.2.3",
|
|
110
|
+
"eslint": "^9.34.0",
|
|
111
111
|
"eslint-plugin-astro": "^1.3.1",
|
|
112
|
-
"
|
|
113
|
-
"
|
|
112
|
+
"eslint-plugin-astro-explicit-wrapper": "^1.0.3",
|
|
113
|
+
"tsdown": "^0.14.2",
|
|
114
|
+
"typescript": "^5.9.2",
|
|
114
115
|
"vitest": "^3.2.4",
|
|
115
|
-
"vue": "^3.5.
|
|
116
|
+
"vue": "^3.5.20"
|
|
116
117
|
}
|
|
117
118
|
}
|